/* ithara.online — one stylesheet for the three pages.
   The system is "Ithara, unified" (docs/DESIGN.md): the warm clay world, Fraunces for display, the
   system font for text, the black-figure dark mode. Every text colour below is at least 4.5:1 on the
   ground it sits on (measured; see website/README.md). Fonts and images are served from this site:
   no request leaves ithara.online. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff") format("woff");
  font-weight: 380 620;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #F4ECE1;
  --surface: #FCF8F2;
  --sunk: #ECE2D4;
  --ink: #2A1D15;
  --ink-2: #6B5647;
  --line: rgba(42, 29, 21, .12);
  --line-2: rgba(42, 29, 21, .22);
  --press: rgba(42, 29, 21, .06);
  --clay: #C4622D;          /* fills only */
  --clay-ink: #9C4520;      /* text */
  --clay-soft: rgba(196, 98, 45, .12);
  --olive: #6B7A3A;
  --olive-ink: #556229;
  --olive-soft: rgba(107, 122, 58, .16);
  --ochre: #D9A441;
  --ochre-ink: #653D05;
  --ochre-soft: rgba(217, 164, 65, .26);
  --btn: #2A1D15;           /* the ink capsule */
  --btn-ink: #F4ECE1;
  --liquid: #9C4520;        /* hold to send: the clay tide */
  --hero-a: #A9512C;
  --hero-b: #8F4224;
  --hero-ink: #FFF7F0;
  --hero-muted: #FCEADF;
  --hero-line: rgba(255, 247, 240, .38);
  --frame: #241913;
  --frame-rim: rgba(255, 236, 214, .16);
  --glass: rgba(246, 239, 229, .66);
  --glass-solid: rgba(246, 239, 229, .96);
  --glass-rim: rgba(255, 255, 255, .85);
  --shadow: 0 1px 2px rgba(42, 29, 21, .05), 0 12px 30px -18px rgba(42, 29, 21, .3);
  --shadow-device: 0 60px 90px -50px rgba(74, 42, 20, .55), 0 24px 40px -28px rgba(74, 42, 20, .35);
  --font-d: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-t: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --e-soft: cubic-bezier(.2, .9, .25, 1);
  --e-bouncy: cubic-bezier(.3, 1.35, .4, 1);
  --gutter: 20px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #15100D;
    --surface: #211915;
    --sunk: #2B221C;
    --ink: #F3E9DA;
    --ink-2: #BFAE9C;
    --line: rgba(243, 233, 218, .11);
    --line-2: rgba(243, 233, 218, .22);
    --press: rgba(243, 233, 218, .07);
    --clay: #E07A45;
    --clay-ink: #EE9466;
    --clay-soft: rgba(224, 122, 69, .16);
    --olive: #A3B46A;
    --olive-ink: #B4C47E;
    --olive-soft: rgba(163, 180, 106, .16);
    --ochre: #E8B85A;
    --ochre-ink: #EFC873;
    --ochre-soft: rgba(232, 184, 90, .18);
    --btn: #F3E9DA;
    --btn-ink: #15100D;
    --liquid: #E07A45;
    --hero-a: #A84E22;
    --hero-b: #6E2F14;
    --hero-ink: #FFF3EA;
    --hero-muted: #FCEADF;
    --hero-line: rgba(255, 243, 234, .32);
    --frame: #0A0706;
    --frame-rim: rgba(255, 232, 208, .2);
    --glass: rgba(28, 21, 17, .62);
    --glass-solid: rgba(28, 21, 17, .96);
    --glass-rim: rgba(255, 232, 208, .22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --shadow-device: 0 60px 90px -50px rgba(0, 0, 0, .9), 0 24px 40px -28px rgba(0, 0, 0, .7);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--font-t);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); font-weight: 460; font-optical-sizing: auto; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--clay-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--clay-soft); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.d { font-family: var(--font-d); font-optical-sizing: auto; font-weight: 460; letter-spacing: -.015em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--clay-ink); }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- the glass header
   Full width and clear at the top; scrolled, it gathers into a floating glass capsule (the app's chrome). */
.site-head { position: sticky; top: 0; z-index: 50; padding: 10px 10px 0; pointer-events: none; }
.site-head .bar {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: calc(var(--max) - 2 * var(--gutter) + 40px);
  margin-inline: auto;
  min-height: 56px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: transparent;
  transition: max-width .55s var(--e-soft), background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-head .bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-rim), transparent 45%, var(--line) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
}
.is-scrolled .site-head .bar {
  max-width: 760px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 10px 30px -14px rgba(42, 29, 21, .28), 0 1px 3px rgba(42, 29, 21, .06);
}
.is-scrolled .site-head .bar::before { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .site-head .bar { background: var(--glass-solid); }
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-height: 44px; padding-right: 4px; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--font-d); font-size: 23px; font-weight: 480; letter-spacing: -.01em; line-height: 1; }
/* the lap of honour (the app icon's mark): ten olive leaves turning one way round a runner, the gap ahead of him the
   leaf earned on race day. Drawn from the icon's own geometry (ios/release/icon/make_icon.py). */
#lap-mark .lf, .lap .lf { fill: var(--olive); }
#lap-mark .rn, .lap .rn { fill: none; stroke: var(--ink); stroke-width: 4.44; stroke-linecap: round; stroke-linejoin: round; }
#lap-mark .hd, .lap .hd { fill: var(--clay); }
.lap { display: block; overflow: visible; }
.lap .sprout, .lap .chase { transform-box: fill-box; transform-origin: center; }
/* the runner's stride: 1.3 units up and back, 0.42 s each way, while the mark is in sight */
.lap .bob { animation: lap-bob .42s ease-in-out infinite alternate; animation-play-state: paused; }
.lap.is-on .bob { animation-play-state: running; }
@keyframes lap-bob { from { transform: translateY(0); } to { transform: translateY(-1.3px); } }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background-color .2s ease, transform .2s var(--e-soft);
}
.site-nav a:hover { background: var(--press); }
.site-nav a:active { transform: scale(.96); }
.site-nav a[aria-current="page"] { color: var(--clay-ink); }
.site-nav .wide { display: none; }
@media (min-width: 720px) { .site-nav .wide { display: inline-flex; } }

/* ---------------------------------------------------------------- buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--e-soft), box-shadow .3s ease, background-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -14px rgba(42, 29, 21, .6); }
.btn-ink:hover { text-decoration: none; box-shadow: 0 14px 30px -14px rgba(42, 29, 21, .7); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--e-soft); }
.btn:hover svg { transform: translateY(2px); }

.pill-status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.pill-status i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--olive); opacity: 0;
  animation: beacon 2.6s var(--e-soft) infinite;
}
@keyframes beacon { 0% { transform: scale(.5); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* A placeholder that must be replaced before launch: dashed, labelled, never a link. */
.placeholder {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 8px 20px; border-radius: 14px;
  border: 1.5px dashed currentColor; font-size: 15px; font-weight: 600; line-height: 1.25;
}
.placeholder small { font-size: 12px; font-weight: 500; opacity: .86; letter-spacing: .02em; }

/* to fill / to confirm, inside the draft notice */
mark.tbd {
  background: var(--ochre-soft); color: var(--ink); padding: .05em .35em; border-radius: 5px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 500;
}

/* ---------------------------------------------------------------- reveal (only with JavaScript) */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity .7s var(--e-soft), transform .8s var(--e-soft), filter .7s var(--e-soft);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------------- the device frame */
.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .168);
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1px var(--frame-rim),
    inset 0 0 0 calc(var(--w) * .011) rgba(0, 0, 0, .55),
    var(--shadow-device);
  flex: none;
}
.device::after { /* the Dynamic Island */
  content: ""; position: absolute; z-index: 3; left: 50%; top: calc(var(--w) * .058);
  width: calc(var(--w) * .292); height: calc(var(--w) * .086); transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.device .screen {
  position: relative; overflow: hidden; aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * .138); background: var(--ground);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* clip children to the radius in Safari */
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.shot-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 96px; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -12px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px; }
.site-foot nav a:hover { background: var(--press); }
.site-foot .fine { font-size: 13px; color: var(--ink-2); }

/* ======================================================================== HOME */

/* ---- hero */
.hero { position: relative; isolation: isolate; padding-top: 12px; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(8px, 3vh, 40px); }
/* the hero's mark: the reveal (the designer's LapMark): the runner comes in, then the leaves sprout one by one round
   the ring, each to 122 % and back; scrolled away, it rises a little and fades */
.hero-mark {
  width: clamp(132px, 32vw, 176px); height: auto; aspect-ratio: 1; margin-bottom: clamp(10px, 2.4vh, 26px);
  transform: translateY(calc(var(--p, 0) * -28px)) scale(calc(1 - var(--p, 0) * .08)); opacity: calc(1 - var(--p, 0) * .7);
}
.js .hero-mark .lap-runner { animation: lap-in .42s ease .1s both; }
.js .hero-mark .sprout { animation: lap-sprout .3s ease both; animation-delay: calc(.64s + var(--i) * .198s); }
@keyframes lap-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes lap-sprout { 0% { transform: scale(0); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.hero-title { font-size: clamp(46px, 10.5vw, 100px); line-height: .98; letter-spacing: -.028em; margin-top: 14px; max-width: 11ch; font-weight: 450; }
.hero .lede { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-device { display: flex; flex-direction: column; align-items: center; margin-top: clamp(44px, 6vh, 64px); perspective: 1400px; }
.hero-device .device {
  --w: clamp(250px, 27vw, 330px);
  transform-origin: 50% 0;
  transform: translateY(calc((1 - var(--p, 1)) * 70px)) rotateX(calc((1 - var(--p, 1)) * 16deg)) scale(calc(.93 + var(--p, 1) * .07));
  will-change: transform;
}

/* ---- the statement, and the line drawn under it */
.statement { padding-block: clamp(96px, 16vh, 168px) clamp(40px, 8vh, 80px); }
.statement-text {
  font-family: var(--font-d); font-optical-sizing: auto; font-weight: 420;
  font-size: clamp(28px, 4.6vw, 54px); line-height: 1.14; letter-spacing: -.02em; max-width: 21em; text-wrap: balance;
}
.statement-text .w { transition: opacity .25s linear; }
.js .statement-text .w { opacity: var(--o, .2); }
.statement-text em { font-style: normal; color: var(--clay-ink); }
.season { margin: clamp(40px, 7vh, 72px) 0 0; }
.season svg { width: 100%; height: auto; overflow: visible; }
.season .band { fill: var(--olive-soft); }
.season .expected { fill: none; stroke: var(--olive); stroke-width: 1.5; opacity: .75; }
.season .goal { fill: none; stroke: var(--clay); stroke-width: 2.5; stroke-dasharray: 9 8; stroke-linecap: round; }
.season .axis { stroke: var(--line-2); stroke-width: 1; }
.season .today-rule { stroke: var(--ink-2); stroke-width: 1; opacity: .5; }
.season text { font-family: var(--font-t); font-size: 15px; fill: var(--ink-2); }
.season text.strong { fill: var(--ink); font-weight: 600; }
.season text.clay { fill: var(--clay-ink); font-weight: 600; }
.season text.olive { fill: var(--olive-ink); font-weight: 600; }
.season .cp { fill: var(--surface); stroke: var(--clay); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--e-bouncy), fill .3s ease; }
.js .season .cp { transform: scale(0); }
.js .season .cp.is-on { transform: scale(1); }
.season .you { fill: var(--clay); stroke: var(--ground); stroke-width: 3; }
.season .you-halo { fill: var(--clay); opacity: .18; }
.season-axis { display: flex; justify-content: space-between; margin: 10px 0 0; padding: 0 2%; font-size: 14px; font-weight: 600; color: var(--ink); }
.season-key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.season-key li { display: inline-flex; align-items: center; gap: 8px; }
.season-key i { display: inline-block; flex: none; }
.season-key .k-goal { width: 22px; height: 0; border-top: 2.5px dashed var(--clay); }
.season-key .k-band { width: 18px; height: 12px; border-radius: 3px; background: var(--olive-soft); box-shadow: inset 0 0 0 1.5px var(--olive); }
.season-key .k-cp { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--clay); background: var(--surface); }
.season-key .k-you { width: 12px; height: 12px; border-radius: 50%; background: var(--clay); }
.season svg.tall { display: none; }
.season svg.tall .goal { stroke-width: 6; stroke-dasharray: 18 15; }
.season svg.tall .expected { stroke-width: 3; }
.season svg.tall .cp, .season svg.tall .you { stroke-width: 5.5; }
.season svg.tall .axis, .season svg.tall .today-rule { stroke-width: 2.5; }
@media (max-width: 640px) {
  .season svg.wide { display: none; }
  .season svg.tall { display: block; }
}

/* ---- how it works: the steps beside one sticky phone */
.how { padding-top: clamp(64px, 10vh, 120px); }
.how-head { margin-bottom: clamp(24px, 5vh, 56px); }
.how-head h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; margin-top: 12px; max-width: 14ch; }
.how-grid { position: relative; }
.steps { list-style: none; position: relative; }
.step { position: relative; padding: 40px 0 56px 44px; }
.step-dot {
  position: absolute; left: 3px; top: 46px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background-color .4s ease, box-shadow .4s ease, transform .5s var(--e-bouncy);
}
.step.is-past .step-dot { background: var(--olive); box-shadow: inset 0 0 0 2px var(--olive); }
.step.is-active .step-dot { background: var(--clay); box-shadow: inset 0 0 0 2px var(--clay), 0 0 0 6px var(--clay-soft); transform: scale(1.08); }
.steps-rail { position: absolute; left: 11px; top: 56px; bottom: 56px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-rail i { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--olive), var(--clay)); border-radius: 2px; }
.step .eyebrow { display: block; }
.step h3 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.04; margin-top: 10px; }
.step p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.step p strong { color: var(--ink); font-weight: 600; }
.step .device { --w: min(76vw, 290px); margin: 36px auto 0; }
.js .step .device { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .8s var(--e-soft), transform 1s var(--e-soft); }
.js .step .device.is-in { opacity: 1; transform: none; }
.how-stage { display: none; }

@media (min-width: 960px) {
  .how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 56px; }
  .step-dot { top: calc(50% - 9px); }
  .steps-rail { top: 46vh; bottom: 46vh; }
  .js .step:not(.is-active) h3, .js .step:not(.is-active) p, .js .step:not(.is-active) .eyebrow { opacity: .32; }
  .step h3, .step p, .step .eyebrow { transition: opacity .5s ease; }
  .step .device { display: none; }
  .how-stage { display: block; position: relative; }
  .stage-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; perspective: 1600px; }
  .stage-sticky .device {
    --w: min(318px, calc((100vh - 120px) * .44));
    transform: rotateY(calc((var(--p, .5) - .5) * -10deg)) rotateX(calc((var(--p, .5) - .5) * 4deg));
    will-change: transform;
  }
  .stage-sticky .screen picture {
    position: absolute; inset: 0;
    opacity: 0; transform: translateY(5%) scale(.97);
    transition: opacity .55s var(--e-soft), transform .7s var(--e-soft);
  }
  .stage-sticky .screen picture.is-before { transform: translateY(-5%) scale(.97); }
  .stage-sticky .screen picture.is-on { opacity: 1; transform: none; }
  .stage-sticky .screen picture img { width: 100%; height: 100%; }
}
html:not(.js) .how-stage { display: none; }
html:not(.js) .step .device { display: block; }

/* ---- the Watch, and the hold to send */
.watch { padding-top: clamp(96px, 14vh, 160px); display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .watch { grid-template-columns: 1fr 1fr; gap: 72px; } }
.watch h2, .more h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.03; margin-top: 12px; }
.watch-copy p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.session {
  background: var(--surface); border-radius: 28px; padding: 22px 20px 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  max-width: 460px; width: 100%; justify-self: center;
}
.session .eyebrow { color: var(--ink-2); }
.session h3 { font-size: 27px; line-height: 1.1; margin-top: 8px; }
.session .meta { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.session ol { list-style: none; margin: 18px 0 20px; border-top: 1px solid var(--line); }
.session li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 16px; }
.session li b { font-weight: 600; }
.session li span { color: var(--ink-2); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.session .alert-chip { display: inline-block; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-ink); font-size: 12px; font-weight: 600; vertical-align: 1px; }

.hold {
  --fill: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 22px 0 9px;
  border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink);
  font-size: 17px; font-weight: 600; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: transform .35s var(--e-bouncy);
}
.hold.is-holding { transform: scale(.98); transition-duration: .18s; }
.hold .tide { position: absolute; inset: 0; z-index: -1; transform: translateY(calc((1 - var(--fill)) * 112%)); }
.hold .tide svg { position: absolute; left: 0; top: -9px; width: 200%; height: 10px; fill: var(--liquid); animation: tide 1.6s linear infinite; }
.hold .tide::after { content: ""; position: absolute; inset: 0; background: var(--liquid); }
@keyframes tide { to { transform: translateX(-50%); } }
.hold .ring { position: relative; width: 40px; height: 40px; flex: none; }
.hold .ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.hold .ring circle { fill: none; stroke-width: 2; }
.hold .ring .track { stroke: currentColor; opacity: .28; }
.hold .ring .fill { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--fill))); }
.hold .ring .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.hold .ring .glyph svg { width: 18px; height: 18px; transform: none; }
.hold .tick { display: none; }
.hold.is-sent .tick { display: block; }
.hold.is-sent .watch-glyph { display: none; }
.hold .tick path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.hold.is-sent .tick path { animation: draw .45s var(--e-soft) .05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hold-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); min-height: 3em; }

/* ---- more: the coach, one friend, your data */
.more { padding-top: clamp(96px, 14vh, 160px); }
.cards { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card {
  background: var(--surface); border-radius: 26px; padding: 26px 24px 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform .4s var(--e-soft), box-shadow .4s ease;
}
.card:hover { transform: translateY(-3px); }
.card .mark { height: 56px; display: flex; align-items: center; }
.card .mark .mini-lap { width: 52px; height: 52px; }
/* the coach card: a bright leaf runs laps round the runner (the app's wait), a lap in 1.5 s, while it is in sight */
.mini-lap .chase { animation: lap-chase 1.5s linear infinite both; animation-delay: calc(var(--i) * .15s - 1.5s); animation-play-state: paused; }
.mini-lap.is-on .chase { animation-play-state: running; }
@keyframes lap-chase { 0% { opacity: 1; transform: scale(1.1); } 35%, 100% { opacity: .25; transform: scale(.84); } }
.card h3 { font-size: 27px; line-height: 1.1; margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); }
.card a { font-weight: 600; }

/* ---- the clay card: the call to action, in the colour of Today's card */
.cta { padding-top: clamp(96px, 14vh, 160px); }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink);
  box-shadow: 0 40px 70px -40px rgba(120, 50, 20, .7);
}
.cta-card h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.0; max-width: 13ch; letter-spacing: -.025em; }
.cta-card p { margin-top: 18px; max-width: 30em; font-size: 18px; color: var(--hero-muted); }
.cta-card .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta-card .pill-status { background: rgba(42, 16, 6, .2); color: var(--hero-ink); box-shadow: inset 0 0 0 1px var(--hero-line); }
.cta-card .pill-status i, .cta-card .pill-status i::after { background: #DCE6A8; border-color: #DCE6A8; }
.cta-card .pill-status i::after { background: transparent; }
.cta-card .placeholder { color: var(--hero-ink); }
.cta-card .ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(90deg, var(--hero-line) 0 1px, transparent 1px 12px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--hero-line) 0 1px, transparent 1px 60px) bottom / 100% 18px no-repeat; }

/* ======================================================================== DOC PAGES (privacy, support) */
.doc-head { padding: clamp(40px, 8vh, 88px) 0 8px; }
.doc-head h1 { font-size: clamp(46px, 8vw, 88px); line-height: 1; letter-spacing: -.028em; font-weight: 450; }
.doc-head .lede { margin-top: 18px; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 34em; }
.doc-meta { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.draft {
  margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--ochre-soft); color: var(--ochre-ink);
  font-size: 15px; line-height: 1.5; box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .45);
}
.draft strong { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.doc { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; }
  .toc nav { position: sticky; top: 96px; }
  .toc ol { list-style: none; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .2s ease, border-color .3s ease; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-current { color: var(--ink); border-left-color: var(--clay); }
}
.prose { max-width: 760px; }
.prose section { padding-top: 8px; }
.prose section + section { margin-top: 48px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; }
.prose h3 { font-size: 21px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 12px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }
.prose .num { color: var(--clay-ink); font-family: var(--font-d); margin-right: 10px; }
.summary-card { margin-top: 0; padding: 26px 24px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.summary-card h2 { font-size: 26px; }
.summary-card ul li { margin-top: 12px; }
.table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; background: var(--sunk); }
td:first-child { font-weight: 600; min-width: 9em; }
@media (max-width: 560px) {
  /* rows become cards on a phone: no sideways scrolling */
  .stack thead { display: none; }
  .stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { display: block; padding: 2px 0; border: 0; }
  .stack td + td { color: var(--ink-2); }
  .stack td[data-label]::before { content: attr(data-label) " · "; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
}

/* support */
.contact {
  margin-top: 32px; padding: 26px 24px; border-radius: 26px; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink);
  display: grid; gap: 12px; max-width: 760px; box-shadow: 0 30px 60px -36px rgba(120, 50, 20, .7);
}
.contact .eyebrow { color: var(--hero-muted); }
.contact a.mail { color: var(--hero-ink); font-family: var(--font-d); font-size: clamp(26px, 5vw, 40px); line-height: 1.1; text-decoration: none; word-break: break-word; }
.contact a.mail:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contact p { color: var(--hero-muted); max-width: 36em; }
.faq-col { margin-top: 56px; }
@media (min-width: 1000px) {
  .support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; margin-top: 40px; }
  .support-grid .contact { grid-column: 2; grid-row: 1; position: sticky; top: 96px; margin-top: 0; }
  .support-grid .faq-col { grid-column: 1; grid-row: 1; margin-top: 0; }
  .support-grid .contact a.mail { font-size: 28px; }
}
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(26px, 3.4vw, 34px); }
.faqs { margin-top: 14px; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 2px; font-size: 18px; font-weight: 600; line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); transition: transform .45s var(--e-bouncy), background-color .3s ease; }
details.faq summary .chev svg { width: 14px; height: 14px; }
details.faq[open] summary .chev { transform: rotate(45deg); background: var(--clay-soft); }
details.faq .answer { overflow: hidden; }
details.faq .answer > div { padding: 0 2px 22px; color: var(--ink-2); }
details.faq .answer p + p, details.faq .answer p + ul, details.faq .answer ul + p { margin-top: 10px; }
details.faq .answer ul { list-style: none; margin-top: 10px; }
details.faq .answer ul li { position: relative; padding-left: 20px; margin-top: 6px; }
details.faq .answer ul li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
details.faq .answer strong { color: var(--ink); font-weight: 600; }

/* ======================================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none; filter: none; transition: opacity .3s ease; }
  .hero-device .device, .stage-sticky .device { transform: none !important; }
  .js .step .device { transform: none; transition: opacity .3s ease; }
  .stage-sticky .screen picture, .stage-sticky .screen picture.is-before { transform: none; transition: opacity .3s ease; }
  .js .statement-text .w { opacity: 1; }
  .js .season .cp { transform: none; }
  .hold, .hold.is-holding { transform: none; }
  .hold .tide svg { animation: none; }
  .card:hover { transform: none; }
  .lap .bob, .lap .chase, .js .hero-mark .lap-runner, .js .hero-mark .sprout { animation: none !important; }
  .hero-mark { transform: none; opacity: 1; }
  .pill-status i::after { display: none; }
  .site-head .bar { transition: none; }
}
.steps-col { position: relative; }
