/* spurt.day (WEB1r, design/plan/WEB1r_site_plan.md). The page sets in Atkinson Hyperlegible Next; the pieces of the app
   set in Inter, as the app does, from the app's own tokens (design/build_s9_kit.py palette_data, the default theme). */

@font-face {
  font-family: "Atkinson Next";
  src: url("/fonts/atkinson-next-v2.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter App";
  src: url("/fonts/inter-app-v1.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f9f8f4;
  --card: #ffffff;
  --raised: #ffffff;
  --ink: #141924;
  --ink2: #5d636f;
  --hair: #e5e3de;
  --accent: #1d4ed8;
  --on-accent: #ffffff;
  --accent-tint: #e4edff;
  --go: #f59e0b;
  --on-go: #1c1105;
  --go-tint: #ffedd9;
  --done: #15803d;
  --tray: rgba(118, 118, 128, 0.24);
  --chip-edge: rgba(20, 25, 36, 0.33);
  --ring-track: rgba(20, 25, 36, 0.14);
  --float-fill: rgba(255, 255, 255, 0.88);
  --float-edge: rgba(20, 25, 36, 0.26);
  --stage: #f1efe8;
  --shadow: 0 1px 2px rgba(20, 25, 36, 0.06), 0 12px 32px rgba(20, 25, 36, 0.08);
  --page-font: "Atkinson Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --app-font: "Inter App", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c0e14;
    --card: #17191f;
    --raised: #22252b;
    --ink: #edeef1;
    --ink2: #a3a8b1;
    --hair: #2b2e34;
    --accent: #6b92e8;
    --on-accent: #0b1220;
    --accent-tint: #1b263d;
    --go: #fcaa38;
    --on-go: #1c1105;
    --go-tint: #34220b;
    --done: #5cc475;
    --tray: rgba(118, 118, 128, 0.28);
    --chip-edge: rgba(237, 238, 241, 0.34);
    --ring-track: rgba(237, 238, 241, 0.2);
    --float-fill: rgba(34, 37, 43, 0.88);
    --float-edge: rgba(237, 238, 241, 0.22);
    --stage: #12141b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--page-font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink2);
  text-align: center;
}

.link-like {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The bar: the mark and the name, one link. Not sticky: the page is short enough to read without it. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.bar nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 2px;
}

.bar nav a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.18rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34rem;
}

.prose p + p {
  margin-top: 1em;
}

.prose {
  max-width: 34rem;
}

.muted {
  color: var(--ink2);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-weight: 700;
}

.soon svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* The opening: the words left, the working picker right; stacked under 900 pt. */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 32px 88px;
}

.hero h1 {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 72px;
    padding-block: 56px 120px;
  }
}

/* A section: a hairline above, then its own arrangement. */
.section {
  border-top: 1px solid var(--hair);
  padding: 72px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.split h2 {
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .split.piece-first > .stage {
    order: -1;
  }
}

/* The stage an app piece sits on: the app's own page colour, a little deeper, so the white cards read as the app's. */
.stage {
  background: var(--stage);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  justify-content: center;
}

@media (max-width: 480px) {
  .stage {
    padding: 16px;
    border-radius: 22px;
  }
}

/* Left out on purpose: a plain list, two columns on wide screens. */
.omit h2 {
  margin-bottom: 12px;
}

.omit .prose {
  margin-bottom: 36px;
}

.omit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 56px;
}

@media (min-width: 900px) {
  .omit ul {
    grid-template-columns: 1fr 1fr;
  }
}

.omit li {
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}

.omit li strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* The details: a definition list in columns. */
.details h2 {
  margin-bottom: 40px;
}

.details dl {
  margin: 0;
  display: grid;
  gap: 32px 48px;
}

@media (min-width: 700px) {
  .details dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .details dl {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.details dt {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.details dd {
  margin: 0;
  color: var(--ink2);
}

/* Questions on the home page and on /faq. */
.qa h2 {
  margin-bottom: 8px;
}

.qa-list {
  margin-top: 32px;
  max-width: 44rem;
}

.qa-item {
  padding: 26px 0;
  border-top: 1px solid var(--hair);
}

.qa-item h3 {
  margin-bottom: 10px;
}

.qa-item p + p,
.qa-item p + ul,
.qa-item ul + p {
  margin-top: 0.8em;
}

.qa-item ul {
  margin: 0;
  padding-left: 1.2em;
}

.qa-item li + li {
  margin-top: 0.35em;
}

.more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
}

/* /faq: the groups and their own contents list. */
.page-head {
  padding-block: 40px 24px;
}

.page-head h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.toc {
  margin: 32px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 700;
}

.group {
  padding: 48px 0 16px;
}

.group > h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.compare {
  width: 100%;
  max-width: 52rem;
  border-collapse: collapse;
  margin: 28px 0 8px;
  font-size: 1rem;
}

.compare caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 10px;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-top: 1px solid var(--hair);
}

.compare th[scope="row"] {
  font-weight: 800;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

/* Legal and plain pages. */
.doc {
  max-width: 44rem;
  padding-block: 32px 80px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.doc h2 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.6em;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 0.9em;
}

.doc ul {
  margin: 0;
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 0.4em;
}

.updated {
  color: var(--ink2);
  font-size: 1rem;
}

/* Guides: a narrower reading measure, the way back to the list, and the sources. */
.bar nav {
  display: flex;
  gap: 4px 22px;
}

.guide {
  max-width: 40rem;
}

.crumbs {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.guide .lead,
.guides .lead {
  max-width: none;
  margin-top: 18px;
}

.sources {
  font-size: 1rem;
  color: var(--ink2);
}

.doc .sources li + li {
  margin-top: 0.7em;
}

.next {
  margin-top: 2.4em;
  font-weight: 700;
}

.guide-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.doc .guide-list {
  padding: 0;
  margin-top: 36px;
}

.guide-list li {
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}

.doc .guide-list li + li {
  margin-top: 0;
}

.guide-list li:last-child {
  border-bottom: 1px solid var(--hair);
}

.guide-list h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.guide-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-list h2 a:hover {
  text-decoration: underline;
}

.guide-list p {
  margin-top: 8px;
  color: var(--ink2);
}

/* The footer. */
.foot {
  border-top: 1px solid var(--hair);
  padding: 40px 0 56px;
  font-size: 1rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.foot nav a:hover {
  text-decoration: underline;
}

.foot .updated {
  margin-top: 20px;
}

/* ---------------------------------------------------------------------------------------------------------------------
   The app's pieces. Sizes and colours are the app's: 17/600 titles, 15 text, 13 lines; 16 pt cards with a hairline;
   14 pt option cards on the tray, the chosen one tinted with an accent edge; capsule buttons.
   ------------------------------------------------------------------------------------------------------------------ */

.app {
  font-family: var(--app-font);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  width: 100%;
  max-width: 380px;
}

.screen {
  background: var(--page);
  border: 1px solid var(--hair);
  border-radius: 40px;
  padding: 26px 18px 22px;
  box-shadow: var(--shadow);
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 2px 14px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 56px;
}

.app-row + .app-row {
  border-top: 1px solid var(--hair);
}

.app-row .t {
  font-size: 16px;
  font-weight: 500;
}

.app-row .l {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 2px;
}

.app-row.grey .t {
  color: var(--ink2);
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink2);
}

.tick.on {
  background: var(--done);
  border-color: var(--done);
  position: relative;
}

.tick.on::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--card);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.app-row.struck .t {
  color: var(--ink2);
  text-decoration: line-through;
}

.app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 4px 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
}

.app-head a {
  font-weight: 600;
  text-decoration: none;
}

/* The picker. */
.q {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 2px 14px;
}

.times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.opt {
  font: inherit;
  color: var(--ink);
  background: var(--tray);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 9px 4px 8px;
  text-align: center;
  cursor: pointer;
  min-height: 56px;
}

.opt b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.opt small {
  display: block;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.75;
}

.opt[aria-checked="true"] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}

.opt[aria-checked="true"] b {
  font-weight: 700;
}

.opt[aria-checked="true"] small {
  color: var(--accent);
  opacity: 1;
}

.energy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  background: var(--tray);
  border-radius: 16px;
  padding: 3px;
}

.seg {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 13px;
  padding: 7px 4px;
  cursor: pointer;
  min-height: 48px;
}

.seg b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.seg small {
  display: block;
  font-size: 12px;
  opacity: 0.75;
}

.seg[aria-checked="true"] {
  background: var(--raised);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.seg[aria-checked="true"] small {
  opacity: 1;
}

.deck {
  margin-top: 22px;
  min-height: 338px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.task {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 16px 18px;
  transition: opacity 0.18s ease;
}

.task.fade {
  opacity: 0;
}

.why {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.why.accent {
  color: var(--accent);
}

.task-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}

.task-line {
  font-size: 13px;
  color: var(--ink2);
}

.task-note {
  font-size: 14px;
  color: var(--ink2);
  margin-top: 10px;
}

.under {
  text-align: center;
  font-size: 13px;
  color: var(--ink2);
  margin: 10px 0 16px;
  min-height: 18px;
}

.btns {
  display: grid;
  gap: 8px;
}

.btns .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cap {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--ink);
  background: var(--tray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cap.go {
  background: var(--go);
  color: var(--on-go);
}

.cap .check {
  width: 14px;
  height: 8px;
  border: solid var(--done);
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translateY(-2px);
}

.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0 4px;
}

.ring {
  width: 148px;
  height: 148px;
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring .track {
  stroke: var(--ring-track);
}

.ring .left {
  stroke: var(--accent);
  stroke-linecap: round;
}

.ring text {
  fill: var(--ink);
  font-family: var(--app-font);
  font-size: 30px;
  font-weight: 700;
}

.timer .task-title {
  margin-top: 14px;
}

.done-line {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: 36px;
}

.done-sub {
  text-align: center;
  color: var(--ink2);
  margin: 6px 0 28px;
}

/* Today's ring card. */
.today-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 16px;
}

.ring-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.day-ring {
  width: 64px;
  height: 64px;
  flex: none;
}

.day-ring path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.day-ring .seg-off {
  stroke: var(--ring-track);
}

.day-ring .seg-on {
  stroke: var(--accent);
}

.day-ring text {
  fill: var(--ink);
  font-family: var(--app-font);
  font-size: 15px;
  font-weight: 700;
}

.ring-say b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.ring-say span {
  font-size: 13px;
  color: var(--ink2);
}

.now {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
}

/* A shared list. */
.people {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink2);
  margin: 0 4px 6px;
}

.joined {
  font-size: 13px;
  color: var(--ink2);
  margin: 0 4px 14px;
}

/* The tab bar with the raised Spurt button. */
.tabs {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: var(--float-fill);
  border: 1px solid var(--float-edge);
  border-radius: 999px;
  padding: 8px 10px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink2);
}

.tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 44px;
}

.tabs i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--ink2);
  opacity: 0.55;
}

.tabs .spurt-tab i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-top: -26px;
  opacity: 1;
  background: linear-gradient(#fbaa1e, #f39204);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs .spurt-tab svg {
  width: 26px;
  height: 26px;
}

.tabs .on {
  color: var(--accent);
}

.tabs .on i {
  background: var(--accent);
  opacity: 1;
}

/* Several mode of the + sheet. */
.sheet {
  background: var(--page);
  border: 1px solid var(--hair);
  border-radius: 28px 28px 20px 20px;
  padding: 10px 16px 18px;
  box-shadow: var(--shadow);
}

.grab {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--tray);
  margin: 0 auto 12px;
}

.sheet-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 12px;
}

.x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tray);
  position: relative;
}

.x::before,
.x::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 12px;
  height: 2px;
  background: var(--ink2);
  transform: rotate(45deg);
}

.x::after {
  transform: rotate(-45deg);
}

.sheet-head b {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--tray);
  border-radius: 10px;
  padding: 2px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.modes span {
  padding: 6px 0;
  border-radius: 8px;
}

.modes .on {
  background: var(--raised);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.lines {
  background: var(--card);
  border: 1px solid var(--chip-edge);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.wide {
  width: 100%;
}

.cap.primary {
  background: var(--accent);
  color: var(--on-accent);
}

/* Reduce Motion: nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .task {
    transition: none;
  }
}

/* The invite page (/j) keeps its own small layout. */
.invite {
  max-width: 30rem;
  padding-block: 48px 40px;
  text-align: center;
  margin: 0 auto;
}

.invite .mark {
  margin: 0 auto 20px;
  border-radius: 14px;
}

.invite h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.code-card {
  margin: 24px auto;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 22px;
}

.code {
  font-family: var(--app-font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.badge img {
  margin: 8px auto 0;
}

.open,
.note {
  margin-top: 16px;
  color: var(--ink2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
