/* Groove site. Layout concept: one cord runs down the whole page, from the hero knot to the closing knot.
   White sections hold the problem; lagoon sections hold what Groove does. Values follow design/DESIGN.md. */

:root {
  /* Colour: the app's Palette and CardTone values, light first. */
  --page: #FFFFFF;
  --ink: #202124;
  --ink-2: #5F6368;
  --ink-3: #80868B;
  /* Brand: study E, mango and forest (Pillar Story, "Colour study 2"). The "lagoon" names are the coloured sections,
     now mango. */
  --forest: #24561C;
  --leaf: #6CC04A;
  --lagoon: #FFB12E;
  --lagoon-hi: #FFE27A;
  --lagoon-lo: #FF9A1F;
  --on-lagoon: #2B1600;
  --on-lagoon-2: rgba(43, 22, 0, .86);
  --on-lagoon-3: rgba(43, 22, 0, .8);
  --line: #24561C;          /* the brand line and the knot's line */
  --loops: #6CC04A;         /* the knot's loops */
  --accent: #24561C;        /* the coloured words and links */
  --tt-on-colour: #2B1600;  /* the strong words of a headline on mango */
  --marker-bg: #24561C; --marker-ink: #FFFFFF;
  --store-on-colour: rgba(255, 255, 255, .55);
  --teal: var(--line);
  --blue: var(--loops);
  --cord-page: var(--line);
  --cord-lagoon: var(--line);
  --cord-shadow: #2B1600;   /* the soft shadow under the cord, as under the app's tube */
  --cord-shadow-o: .13;
  --plan: #3C4043;
  --surface: #FFFFFF;
  --surface-ring: rgba(32, 33, 36, .06);
  --lift: rgba(43, 22, 0, .14);
  --lift-soft: rgba(43, 22, 0, .09);
  --obj-shadow: rgba(43, 22, 0, .18);
  --button: #202124;
  --on-button: #FFFFFF;
  --glow: rgba(36, 86, 28, .26);
  --focus: #4C8DFF;
  --scrim: rgba(6, 30, 28, .28);
  --sheet: rgba(255, 255, 255, .94);
  --field: #F1F3F3;
  --field-line: rgba(32, 33, 36, .14);
  --alert: #D93025;
  --training-soft: #E2F8EC; --training: #1FC27A;
  --fueling-soft: #FFECE3;  --fueling: #FF7A45;
  --recovery-soft: #EEF1FC; --recovery: #27336F;
  --goal-soft: #FBF4E3;     --goal: #DDA933;
  --phrase: #1F55C8;        --phrase-soft: #EEF1FC;
  --off-day: #FFFFFF;

  /* Type: one family, the system face (SF Pro on Apple devices). */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --t-mark: clamp(32px, 2.2vw + 20px, 52px);
  --t-display: clamp(42px, 4.9vw + 6px, 80px);
  --t-title: clamp(32px, 2.9vw + 18px, 60px);
  --t-lede: clamp(19px, .55vw + 16px, 24px);
  --t-body: clamp(17px, .25vw + 15px, 19px);
  --t-close: clamp(19px, .3vw + 16px, 21px);
  --t-ui: 17px;
  --t-ui-2: 15px;
  --t-date: 13px;

  /* Space: 4 px steps. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --g: 24px;            /* side gutter */
  --content: 1140px;

  /* Motion: the app's curves. */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-press: cubic-bezier(.23, 1, .32, 1);
  --knot-w: 110px;
  --cord-w: 10px;
  --hero-knot: clamp(132px, 6vw + 64px, 168px);
  --close-knot: 170px;
  --rail-x: calc(100% - 12px);
  --rail-l: 12px;
  --rail-turn: 10px;
  --soft: #F5F6F6;
  --cell: #FFFFFF;
  --groove-ink: var(--accent);
  --glass: rgba(255, 255, 255, .72);
  --glass-ring: rgba(32, 33, 36, .08);
  --dusk: #3E5C76;
  --alert-wash: #FCE8E6; --alert-ink: #D93025;
  --good-wash: #E2F8EC; --good-ink: #0E9A5C;
  --nav-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #120E0A; --ink: #F5EFE6; --ink-2: #B3AA9E; --ink-3: #8C8378;
    --lagoon: #1E1711; --lagoon-hi: #261D15; --lagoon-lo: #18120D; /* warm, nearly flat: no coloured glow */
    --on-lagoon: #FFF4E2; --on-lagoon-2: rgba(255, 244, 226, .82); --on-lagoon-3: rgba(255, 244, 226, .64);
    --line: #5B8F45; --loops: #93BF78; --accent: #FFB12E; --tt-on-colour: #FFB12E; --marker-bg: #FFB12E; --marker-ink: #2B1600; --store-on-colour: rgba(255, 241, 220, .1);
    --cord-shadow: #000000; --cord-shadow-o: .4; --soft: #1A1510; --cell: #1E1813; --glass: rgba(30, 24, 19, .74); --glass-ring: rgba(255, 255, 255, .1); --dusk: #24384A; --alert-wash: #3D1D1B; --alert-ink: #FF8A80; --good-wash: #1A362B; --good-ink: #3DDC8E; --plan: #A1A1A8;
    --surface: #1C1C1E; --surface-ring: rgba(255, 255, 255, .06); --lift: rgba(0, 0, 0, .42); --lift-soft: rgba(0, 0, 0, .3);
    --obj-shadow: rgba(0, 0, 0, .45); --button: #F5EFE6; --on-button: #1A120A; --glow: rgba(255, 177, 46, .3);
    --scrim: rgba(0, 0, 0, .55); --sheet: rgba(28, 28, 30, .94); --field: #282828; --field-line: rgba(255, 255, 255, .14);
    --alert: #FF8A80;
    --training-soft: #1A362B; --training: #3DDC8E;
    --fueling-soft: #3E291E;  --fueling: #FF9363;
    --recovery-soft: #222B4D; --recovery: #5465C2;
    --goal-soft: #3D331C;     --goal: #DDA933;
    --phrase: #9DB4FF;        --phrase-soft: #222B4D;
    --off-day: rgba(255, 255, 255, .11);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #120E0A; --ink: #F5EFE6; --ink-2: #B3AA9E; --ink-3: #8C8378;
  --lagoon: #1E1711; --lagoon-hi: #261D15; --lagoon-lo: #18120D; /* warm, nearly flat: no coloured glow */
  --on-lagoon: #FFF4E2; --on-lagoon-2: rgba(255, 244, 226, .82); --on-lagoon-3: rgba(255, 244, 226, .64);
  --line: #5B8F45; --loops: #93BF78; --accent: #FFB12E; --tt-on-colour: #FFB12E; --marker-bg: #FFB12E; --marker-ink: #2B1600; --store-on-colour: rgba(255, 241, 220, .1);
  --cord-shadow: #000000; --cord-shadow-o: .4; --soft: #1A1510; --cell: #1E1813; --glass: rgba(30, 24, 19, .74); --glass-ring: rgba(255, 255, 255, .1); --dusk: #24384A; --alert-wash: #3D1D1B; --alert-ink: #FF8A80; --good-wash: #1A362B; --good-ink: #3DDC8E; --plan: #A1A1A8;
  --surface: #1C1C1E; --surface-ring: rgba(255, 255, 255, .06); --lift: rgba(0, 0, 0, .42); --lift-soft: rgba(0, 0, 0, .3);
  --obj-shadow: rgba(0, 0, 0, .45); --button: #F5EFE6; --on-button: #1A120A; --glow: rgba(255, 177, 46, .3);
  --scrim: rgba(0, 0, 0, .55); --sheet: rgba(28, 28, 30, .94); --field: #282828; --field-line: rgba(255, 255, 255, .14);
  --alert: #FF8A80;
  --training-soft: #1A362B; --training: #3DDC8E;
  --fueling-soft: #3E291E;  --fueling: #FF9363;
  --recovery-soft: #222B4D; --recovery: #5465C2;
  --goal-soft: #3D331C;     --goal: #DDA933;
  --phrase: #9DB4FF;        --phrase-soft: #222B4D;
  --off-day: rgba(255, 255, 255, .11);
  color-scheme: dark;
}

@media (min-width: 900px) {
  :root { --g: 48px; --knot-w: 170px; --cord-w: 15px; --hero-knot: clamp(200px, 15vw, 240px); --close-knot: clamp(230px, 20vw, 300px); --rail-x: calc(100% - 24px); --rail-l: 24px; --rail-turn: 10px; }
}

/* ---------- Base ---------- */
*, *::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: 400 var(--t-body)/1.45 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -100px; z-index: 50; background: var(--button); color: var(--on-button); padding: var(--s3) var(--s4); border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + var(--s3)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%; max-width: calc(var(--content) + 2 * var(--g)); margin-inline: auto;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px));
  padding-right: max(var(--g), env(safe-area-inset-right, 0px));
}

main { position: relative; }
.wide { width: 100%; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wide { padding-left: max(calc(var(--g) + 16px), env(safe-area-inset-left, 0px)); padding-right: max(calc(var(--g) + 88px), env(safe-area-inset-right, 0px)); } }

/* ---------- The brand line: hero knot, the bending week, the closing knot ---------- */
.cord { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.js .cord:not(.is-painted) { opacity: 0; }
.cord__shadow { display: none; } /* the mark has no shadow (store shot 1) */
.cord__shadow .cord__body { fill: var(--cord-shadow); }
.cord__body--hero, .cord__body--close { fill: var(--line); }
.cord__wave { fill: none; stroke: var(--line); stroke-width: var(--cord-w); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.knot-art { color: var(--line); }
.knot-art .k-blue, .knot-art .k-over.is-loop { stroke: var(--loops); }
.knot-art path { fill: none; stroke-linejoin: round; stroke-width: var(--kw); }
.knot-art .k-blue { stroke-linecap: butt; }
.knot-art .k-over { stroke-linecap: butt; opacity: 0; transition: opacity .25s var(--ease); }
.knot-art.is-set .k-over { opacity: 1; }
.knot-art:not(.is-whole) .k-blue { visibility: hidden; }
.knot-art .k-light { stroke-width: calc(var(--kw) * .5); stroke-linecap: round; }

/* ---------- Sections ---------- */
.sec { position: relative; }
.sec > *:not(.pin) { position: relative; z-index: 2; }
.sec--lagoon { color: var(--on-lagoon); }
.sec--lagoon::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 45% at 50% 0%, var(--lagoon-hi) 0%, transparent 70%),
    radial-gradient(90% 40% at 50% 100%, var(--lagoon-lo) 0%, transparent 80%),
    var(--lagoon);
  /* Soft edges: the lagoon fades in from the page and out again. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 160px), #000 calc(100% - var(--fade, 160px)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 160px), #000 calc(100% - var(--fade, 160px)), transparent 100%);
}
/* A fine grain over the lagoon, so its gradients never band into rings. */
.sec--lagoon::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 160px), #000 calc(100% - var(--fade, 160px)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade, 160px), #000 calc(100% - var(--fade, 160px)), transparent 100%);
}
.hero.sec--lagoon::before, .hero.sec--lagoon::after { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 160px)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 160px)), transparent); }
.close::after { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade)); }
.sec h2 { font-size: var(--t-title); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.sec__text p { font-size: var(--t-body); color: var(--ink-2); margin-top: var(--s4); max-width: 34em; }
.sec--lagoon .sec__text p { color: var(--on-lagoon-2); }

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--page); }
.nav { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 0; right: 0; display: flex; justify-content: center; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: var(--s4); width: min(760px, 100%); height: var(--nav-h); padding: 0 8px 0 16px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 .5px var(--glass-ring), 0 6px 20px rgba(0, 0, 0, .07); }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__brand svg { width: 34px; height: 22px; overflow: visible; --ka: var(--teal); --kb: var(--blue); }
.nav__links { display: flex; gap: var(--s5); margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 8px; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: var(--s2); display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--button); color: var(--on-button); text-decoration: none; font-size: 15px; font-weight: 600; transition: transform .2s var(--ease-press); }
.nav__cta:active { transform: scale(.96); }
@media (max-width: 699.98px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---------- 1 Hero ---------- */
.hero { position: relative; }
.hero__in { position: relative; z-index: 2; display: grid; gap: var(--s7); padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 56px); padding-bottom: 300px; }
.hero__title { font-size: var(--t-display); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero__l1, .hero__l2 { display: block; }
.hero { color: var(--on-lagoon); }
.hero__l2 { color: var(--on-lagoon); }
.hero__l2 .w--bends { position: relative; isolation: isolate; color: var(--marker-ink); padding: 0 .14em .02em; margin-left: .02em; }
/* The marker behind "bends": its end state is the page without script; with script it wipes in as the word lands. */
.hero__l2 .w--bends::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: .18em; background: var(--marker-bg); transform-origin: left center; }
.hero__lede { margin-top: var(--s5); font-size: var(--t-lede); line-height: 1.35; color: var(--on-lagoon-2); max-width: 22em; }
.hero__cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.hero__cta--center { justify-content: center; margin-top: var(--s2); }
.hero__device { margin: 0; justify-self: center; }
.hero__knot { margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero .knot--hero { width: var(--hero-knot); }
.hero .pin--lead { left: 0; top: auto; bottom: 0; }
.hero { --fade: 120px; }
.hero__in { padding-bottom: 128px; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 136px; }
  .hero__device { justify-self: end; }
}

/* The store: Apple's badge once the owner adds the link and the artwork; until then, plain words. */
.store { display: inline-flex; }
.store img { height: 54px; width: auto; display: block; }
.store__soon { display: inline-flex; align-items: center; height: 54px; padding: 0 22px; border-radius: 27px; background: var(--field); color: var(--ink); font-size: 17px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--glass-ring); }
.sec--lagoon .store__soon { background: var(--store-on-colour); color: var(--on-lagoon); }
.early { color: var(--groove-ink); font-weight: 600; text-decoration: none; font-size: 17px; }
.early:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- A device: a neutral frame around the app's screen (Apple's bezel is to be placed by the owner). ---------- */
/* Apple's iPhone 18 Pro bezel (1350 x 2760 px at 3x: 450 x 920 points) over the app screen (402 x 874 points at 24, 23),
   as it is: no shadow, tilt or crop. Without the bezel file the screen gets a neutral frame. */
.device { --k: .7; position: relative; width: calc(450px * var(--k)); height: calc(920px * var(--k)); }
@media (max-width: 899.98px) { .device { --k: var(--mk, .6); } }
.bezel img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.device.no-bezel .bezel { display: none; }
.device.no-bezel .screen { border-radius: 52px; box-shadow: 0 0 0 1px var(--glass-ring), 0 40px 90px rgba(6, 44, 40, .16); }
.screen { position: absolute; left: calc(24px * var(--k)); top: calc(23px * var(--k)); width: 402px; height: 874px; transform: scale(var(--k)); transform-origin: 0 0; border-radius: 60px; overflow: hidden; background: var(--page); color: var(--ink); font-size: 17px; }
.sb { position: absolute; top: 21px; left: 46px; right: 38px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sb__r { display: flex; align-items: flex-end; gap: 2px; }
.sb__r i { width: 3px; background: var(--ink); border-radius: 1px; }
.sb__r i:nth-child(1) { height: 5px; } .sb__r i:nth-child(2) { height: 7px; } .sb__r i:nth-child(3) { height: 9px; margin-right: 5px; }
.sb__wifi { width: 17px; height: 12px; margin-right: 5px; align-self: center; }
.sb__r b { width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; box-sizing: border-box; background: linear-gradient(var(--ink), var(--ink)) 1.5px 1.5px / calc(100% - 3px) calc(100% - 3px) no-repeat; }
.tb { position: absolute; top: 62px; left: 18px; right: 18px; display: flex; justify-content: space-between; }
.gb { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--glass); box-shadow: inset 0 0 0 .5px var(--glass-ring), 0 6px 20px rgba(0, 0, 0, .07); }
.gb svg, .composer svg { width: 22px; height: 22px; }
.chat { position: absolute; top: 122px; left: 18px; right: 18px; display: flex; flex-direction: column; gap: 22px; }
.stamp { align-self: center; font-size: 13px; color: var(--ink-3); }
.me { align-self: flex-end; max-width: 80%; background: var(--field); border-radius: 20px; padding: 10px 14px; font-size: 17px; line-height: 23px; }
.coach { display: flex; flex-direction: column; gap: 14px; }
.say { font-size: 17px; line-height: 25px; text-wrap: pretty; }
.dock { position: absolute; left: 14px; right: 14px; bottom: 34px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; gap: 8px; justify-content: flex-end; }
.chips span, .btns span { height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; background: var(--field); font-size: 15px; font-weight: 600; }
.composer { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 8px 0 6px; border-radius: 26px; background: var(--glass); box-shadow: inset 0 0 0 .5px var(--glass-ring), 0 6px 20px rgba(0, 0, 0, .08); color: var(--ink); }
.composer__cam { width: 40px; height: 40px; border-radius: 20px; background: var(--button); color: var(--on-button); display: flex; align-items: center; justify-content: center; }
.composer__field { flex: 1; color: var(--ink-3); font-size: 17px; padding-left: 8px; }
.composer__i { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }

/* ---------- Works with ---------- */
.works { position: relative; z-index: 2; }
.works__in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s4) var(--s8); padding-block: var(--s6) var(--s8); }
.works p { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.works svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }

/* The knot: the logo, a forest line with leaf loops (in dark, a leaf line with mango loops). */
.knot { display: block; width: var(--knot-w); aspect-ratio: 196 / 125; position: relative; }
.knot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.knot { --ka: var(--teal); --kb: var(--blue); }
.js-knot { transform-origin: 50% 60%; cursor: grab; touch-action: manipulation; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 56px; padding: 0 30px; border-radius: 999px; background: var(--button); color: var(--on-button);
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; position: relative;
  transition: transform .2s var(--ease-press), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { .btn { height: 60px; padding: 0 32px; font-size: 19px; } }
.btn:hover { box-shadow: 0 10px 28px var(--glow); transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: .14s; }
.btn--block { width: 100%; }
.btn--quiet { background: transparent; color: var(--ink-2); }
.btn--quiet:hover { box-shadow: none; color: var(--ink); }
.btn__dots { display: none; gap: 5px; }
.btn__dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; animation: dot 1s var(--ease) infinite; }
.btn__dots i:nth-child(2) { animation-delay: .15s; } .btn__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__label { display: none; }
.btn.is-busy .btn__dots { display: inline-flex; }

/* ---------- Drawn objects ---------- */
.obj { display: block; position: relative; }
.obj svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 8px var(--obj-shadow)); transition: transform .45s var(--ease); }
.obj use { transform-box: fill-box; }
.obj:hover svg, .obj.is-poked svg { transform: translateY(-4px) scale(1.05); }
/* Each object answers in its own way. */
.obj--moon:hover svg, .obj--moon.is-poked svg { transform: rotate(-10deg) scale(1.05); }
.obj--moon:hover .p-stars, .obj--moon.is-poked .p-stars { animation: twinkle 1.1s var(--ease) both; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 30% { opacity: .2; } 60% { opacity: 1; transform: scale(1.15); } }
.obj--cloud:hover .p-drops, .obj--cloud.is-poked .p-drops { animation: rain .9s cubic-bezier(.5, 0, .75, .4) 2; }
@keyframes rain { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.obj--case:hover svg, .obj--case.is-poked svg { animation: hop .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-14px) rotate(-5deg); } 70% { transform: translateY(0) scaleY(.94); } 100% { transform: none; } }
.p-flame { transform-origin: 50% 100%; }
.obj--diya:hover .p-flame, .obj--diya.is-poked .p-flame { animation: flicker .8s ease-in-out 2; }
@keyframes flicker { 0%, 100% { transform: none; } 25% { transform: scale(1.08, .92) skewX(-6deg); } 50% { transform: scale(.94, 1.1) skewX(5deg); } 75% { transform: scale(1.05, .96) skewX(-3deg); } }
.obj--thali:hover svg, .obj--thali.is-poked svg { transform: rotate(14deg) scale(1.03); }
.obj--barbell:hover svg, .obj--barbell.is-poked svg { animation: lift .8s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes lift { 0% { transform: none; } 40% { transform: translateY(-18px); } 60% { transform: translateY(-18px); } 100% { transform: none; } }
.p-door { transition: opacity .3s var(--ease); }
.obj--house:hover .p-door, .obj--house.is-poked .p-door { opacity: .4; }
.p-cloth { transform-origin: 0% 50%; }
.obj--flag:hover .p-cloth, .obj--flag.is-poked .p-cloth { animation: wave 1.2s ease-in-out; }
@keyframes wave { 0%, 100% { transform: none; } 25% { transform: skewY(4deg) scaleX(.96); } 50% { transform: skewY(-3deg) scaleX(1.02); } 75% { transform: skewY(2deg); } }

/* ---------- App UI: pills, cards, rows (from the app's Card and Pill) ---------- */
.coin { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; }
.coin svg { width: 24px; height: 24px; }
.coin--lg { width: 48px; height: 48px; }
.coin--lg svg { width: 26px; height: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  font-size: var(--t-ui); font-weight: 600; color: var(--ink); white-space: nowrap;
  box-shadow: 0 0 0 4px var(--surface), 0 10px 26px var(--lift);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pill--training { background: var(--training-soft); } .pill--training .coin { background: var(--training); }
.pill--recovery { background: var(--recovery-soft); } .pill--recovery .coin { background: var(--recovery); }
.pill:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 4px var(--surface), 0 16px 34px var(--lift); }

.card {
  width: 332px; max-width: 100%; padding: 16px; border-radius: 30px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--surface-ring), 0 20px 44px var(--lift);
  display: flex; flex-direction: column; gap: 14px;
}
.card--tight { width: 312px; padding: 4px; border-radius: 22px; }
.card__say { font-size: 17px; line-height: 25px; text-wrap: balance; }
.phrase { color: var(--phrase); background: var(--phrase-soft); border-radius: 6px; padding: 1px 3px; margin: 0 -3px; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.row { display: flex; gap: 12px; align-items: center; border-radius: 22px; padding: 14px; }
.row--stack { flex-direction: column; align-items: stretch; }
.row__head { display: flex; gap: 12px; align-items: center; }
.row__t { font-size: 17px; line-height: 22px; font-weight: 600; }
.row__s { font-size: 15px; line-height: 20px; color: var(--ink-2); margin-top: 1px; }
.row__grow { flex: 1; min-width: 0; }
.row__time { font-size: var(--t-date); color: var(--ink-2); align-self: center; }
.row--training { background: var(--training-soft); } .row--training .coin { background: var(--training); }
.row--fueling { background: var(--fueling-soft); } .row--fueling .coin { background: var(--fueling); }
.row--goal { background: var(--goal-soft); } .row--goal .coin { background: var(--goal); }
.row--meal { border-radius: 18px; padding: 10px 14px 10px 10px; gap: 10px; }
.row--meal .coin { width: 36px; height: 36px; } .row--meal .coin svg { width: 19px; height: 19px; }
.days { display: flex; gap: 5px; }
.days span { flex: 1 1 0; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; background: var(--off-day); color: var(--ink-2); }
.days .on { background: var(--training); color: #FFFFFF; }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.tilt.is-tilting { transition: transform .12s linear, box-shadow .3s var(--ease); box-shadow: 0 0 0 1px var(--surface-ring), 0 30px 60px var(--lift); }

/* ---------- The week: a fixed plan, then the same week bending ---------- */
.problem { padding-block: clamp(80px, 11vh, 120px) clamp(72px, 9vh, 110px); }
.turn { padding-block: clamp(110px, 13vh, 150px) clamp(110px, 13vh, 150px); --amp: 34px; }
.week { position: relative; z-index: 2; display: grid; margin: var(--s8) 0 0; padding: 0; list-style: none; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.day__ev { display: block; width: 72px; height: 72px; }
.day__pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--field); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.day__label { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sec--lagoon .day__label { color: var(--on-lagoon-3); }
/* The plan: a late night, rain, a trip and Diwali land on their days and cross them out, quietly. */
.week--plan .day--event .day__ev { opacity: 0; transform: translateY(-12px) scale(.9); transition: opacity .5s var(--ease), transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.week--plan .day--event.is-hit .day__ev { opacity: 1; transform: none; }
.week--plan .day--event.is-hit .day__pill { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--field-line); text-decoration: line-through; text-decoration-thickness: 1.5px; transition-delay: .25s; }
.week__end { margin-top: var(--s6); font-size: 19px; font-weight: 600; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.problem.is-done .week__end { opacity: 1; transform: none; }
/* The bend: the same days sit on one sine wave; the four the week hit change, one after another. */
.week--bend .day__pill { --tone: var(--surface); }
.week--bend .pill { padding: 4px 14px 4px 4px; height: 44px; gap: 8px; font-size: 15px; box-shadow: 0 0 0 4px var(--surface), 0 10px 26px var(--lift); }
.week--bend .pill .coin { width: 36px; height: 36px; } .week--bend .pill .coin svg { width: 20px; height: 20px; }
.week--bend .now { display: none; }
.week--bend .day--event:not(.is-bent) .pill { background: var(--field); }
.week--bend .day--event:not(.is-bent) .pill .coin { background: var(--ink-3); }
.week--bend .day--event.is-bent .was { display: none; }
.week--bend .day--event.is-bent .now { display: inline; }
.week--bend .day--event.is-bent .day__pill { animation: settle .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes settle { 0% { scale: .92; } 100% { scale: 1; } }
@media (min-width: 900px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .week--bend { margin-top: calc(var(--s8) + var(--amp)); margin-bottom: var(--amp); }
  .week--bend .day:nth-child(odd) { transform: translateY(calc(var(--amp) * -1)); }
  .week--bend .day:nth-child(even) { transform: translateY(var(--amp)); }
  .week__end { text-align: center; }
}
@media (max-width: 1180px) and (min-width: 900px) { .day__pill, .week--bend .pill { font-size: 14px; } .week--bend .pill .coin { width: 30px; height: 30px; } }
@media (max-width: 899.98px) {
  .turn { --amp: 26px; }
  .week { gap: 10px; }
  .week--bend { gap: 22px; }
  .ui--bend { padding-top: 104px; }
  .ui--bend .ui__obj { width: 84px; height: 84px; top: 0; right: 8px; }
  .ui--goal { flex-direction: column; align-items: flex-start; }
  .ui--goal .ui__obj { width: 84px; height: 84px; }
  .ui--goal .row { width: 100%; }
  .tt { font-size: clamp(24px, 4vw + 10px, 30px); }
  .day { flex-direction: row; gap: 12px; }
  .day__label { order: -1; width: 46px; flex: none; }
  .day__ev { width: 48px; height: 48px; flex: none; }
  .day__pill { width: 176px; justify-content: flex-start; flex: none; }
  .week--bend .day:nth-child(odd) .day__pill, .week--bend .day:nth-child(odd) .day__ev { transform: translateX(calc(var(--amp) * -1)); }
  .week--bend .day:nth-child(even) .day__pill, .week--bend .day:nth-child(even) .day__ev { transform: translateX(var(--amp)); }
  .week--bend .day__ev { order: 2; }
  .week--bend .day__label { margin-right: var(--amp); }
}

/* ---------- Two-tone statements ---------- */
.tt { font-size: clamp(26px, 1.9vw + 14px, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-2); text-wrap: balance; max-width: 26em; }
.tt b { color: var(--groove-ink); font-weight: 700; }
.sec--lagoon .tt { color: var(--on-lagoon-2); } .sec--lagoon .tt b { color: var(--tt-on-colour); }
.tt--sm { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; font-weight: 600; }
.cell .tt, .col .tt { font-size: 21px; line-height: 1.35; letter-spacing: -0.012em; font-weight: 600; color: var(--ink-2); }
.cell .tt b, .col .tt b { color: var(--groove-ink); }
h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

/* Small app parts used across the page */
.coin--sm { width: 28px; height: 28px; } .coin--sm svg { width: 16px; height: 16px; }
.c-training { background: var(--training); } .c-fueling { background: var(--fueling); } .c-recovery { background: var(--recovery); } .c-plain { background: #4F5B66; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 20px; background: var(--cell); box-shadow: 0 0 0 1px var(--surface-ring), 0 6px 16px var(--lift-soft); font-size: 15px; font-weight: 600; }
.why { display: flex; flex-wrap: wrap; gap: 8px; }
.sig { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px; border-radius: 19px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.sig svg { width: 17px; height: 17px; }
.sig--bad { background: var(--alert-wash); } .sig--bad svg { color: var(--alert-ink); }
.sig--good { background: var(--good-wash); } .sig--good svg { color: var(--good-ink); }
.state { align-self: flex-start; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--good-wash); color: var(--ink); font-size: 15px; font-weight: 600; }
.state--ink { background: var(--button); color: var(--on-button); }
.btns { display: flex; gap: 8px; }
.foot-note, .ui .foot { font-size: 13px; color: var(--ink-3); }
.panel { background: var(--cell); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 1px var(--surface-ring), 0 20px 44px var(--lift); }
.banner { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border-radius: 20px; background: var(--cell); color: var(--ink-2); font-size: 15px; box-shadow: 0 0 0 1px var(--surface-ring), 0 10px 24px var(--lift-soft); }
.banner svg { width: 16px; height: 16px; flex: none; } .banner b { color: var(--ink); font-weight: 600; margin-left: 4px; white-space: nowrap; }

/* ---------- How it works ---------- */
.how { padding-block: clamp(110px, 13vh, 150px) clamp(80px, 10vh, 120px); }
.steps { display: grid; gap: var(--s7); margin: var(--s7) 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: var(--s5); }
.step h3 { display: flex; align-items: center; gap: 12px; }
.n { width: 30px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--button); color: var(--on-button); font-size: 15px; font-weight: 700; flex: none; }
.ui { display: flex; flex-direction: column; gap: 12px; }
.step .ui { flex: 1; min-height: 236px; justify-content: center; padding: 24px; border-radius: 28px; background: var(--soft); }
.sw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cell); font-size: 15px; font-weight: 600; }
.sw i { margin-left: auto; width: 46px; height: 28px; border-radius: 14px; background: var(--field-line); position: relative; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw i.on { background: var(--training); } .sw i.on::after { left: 20px; }
.ui--tell .me { align-self: flex-start; max-width: 100%; }
.ui--tell .composer { background: var(--cell); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- What it does: the bento ---------- */
.feats { padding-block: clamp(120px, 14vh, 170px); }
.bento { display: grid; gap: var(--s5); }
.cell { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s5); padding: 28px; border-radius: 32px; background: var(--cell); color: var(--ink); box-shadow: 0 0 0 1px var(--surface-ring), 0 30px 60px var(--lift-soft); }
.cell .ui { margin-top: auto; }
.cell--b .ui { margin-top: 0; }
.ui__obj { position: absolute; width: 120px; height: 120px; }
.ui--bend { position: relative; padding-top: 40px; }
.ui--bend .ui__obj { right: 8px; top: -30px; }
.ui--bend .panel { max-width: 440px; }
.ui--food { position: relative; padding-top: 128px; }
.ui--food .ui__obj { right: 4px; top: 0; width: 116px; height: 116px; }
.ui--texts { gap: 8px; padding: 22px 14px; margin-inline: -8px; border-radius: 24px; background: radial-gradient(120% 90% at 30% 0%, #6F8FAA 0%, transparent 60%), radial-gradient(90% 60% at 80% 100%, #24384A 0%, transparent 70%), var(--dusk); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #111; }
.note img { border-radius: 9px; flex: none; }
.note p { font-size: 15px; line-height: 20px; }
.note__h { display: flex; justify-content: space-between; } .note__h span { color: rgba(17, 17, 17, .55); font-size: 13px; }
.note--back { opacity: .8; transform: scale(.96); }
.ui--goal { position: relative; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.ui--goal .ui__obj { position: static; width: 84px; height: 84px; flex: none; }
.ui--goal .row { width: 100%; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento { grid-template-areas: "a a a a b b" "a a a a f f" "c c d d e e"; }
  .cell--a { grid-area: a; } .cell--b { grid-area: b; } .cell--f { grid-area: f; }
  .cell--c { grid-area: c; } .cell--d { grid-area: d; } .cell--e { grid-area: e; }
  .ui--goal .row { max-width: none; }
}

/* ---------- Training, food and sleep ---------- */
.covers { padding-block: clamp(110px, 13vh, 160px) clamp(90px, 11vh, 130px); }
.cols { display: grid; gap: var(--s5); margin-top: var(--s7); }
.col { display: flex; flex-direction: column; gap: var(--s2); padding: 28px; border-radius: 30px; background: var(--soft); }
.col { gap: var(--s5); }
.chips-k { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-k span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--cell); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chips-k svg { width: 15px; height: 15px; }
.row--recovery { background: var(--recovery-soft); } .row--recovery .coin { background: var(--recovery); }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Apple Health ---------- */
.health { padding-block: clamp(120px, 14vh, 170px); }
.types { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s7) 0 0; padding: 0; list-style: none; max-width: 980px; }
.types li { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: var(--cell); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 8px 20px var(--lift-soft); }
.types svg { width: 18px; height: 18px; color: var(--ink-2); }
.quiet { margin-top: var(--s8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.quiet__k { font-size: 17px; font-weight: 600; color: var(--on-lagoon); }

/* ---------- Privacy ---------- */
.privacy { padding-block: clamp(110px, 13vh, 160px) clamp(90px, 11vh, 130px); }
.facts { display: grid; gap: var(--s5); margin-top: var(--s7); }
.fact { display: flex; flex-direction: column; gap: var(--s2); padding: 26px; border-radius: 28px; background: var(--soft); }
.fact .coin { width: 40px; height: 40px; margin-bottom: var(--s3); } .fact .coin svg { width: 21px; height: 21px; }
.fact h3 { font-size: 18px; }
.privacy__how { margin-top: var(--s6); color: var(--ink-2); max-width: 46em; }
.privacy__how a, .qa a { color: var(--groove-ink); font-weight: 600; text-underline-offset: 4px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Questions ---------- */
.faq { padding-block: clamp(60px, 8vh, 90px) clamp(110px, 13vh, 160px); }
.faq__in { display: grid; gap: var(--s6); }
.qa { border-top: 1px solid var(--surface-ring); }
.qa details { border-bottom: 1px solid var(--surface-ring); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 22px 0; font-size: 19px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.2px solid var(--ink-2); border-bottom: 2.2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.qa p { color: var(--ink-2); padding-bottom: 22px; max-width: 40em; }
@media (min-width: 900px) { .faq__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s8); } }

/* ---------- 6 Close ---------- */
.close { padding-top: clamp(150px, 17vh, 200px); text-align: center; --fade: 120px; }
.close::before { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade)); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade)); }
.close__knot { width: var(--close-knot); margin-inline: auto; position: relative; z-index: 2; }
.close .knot--close { width: var(--close-knot); }
.close__knot .pin { left: calc(var(--close-knot) * -.45); top: calc(var(--close-knot) * .59); }
.close__text { display: flex; flex-direction: column; align-items: center; gap: var(--s5); margin-top: clamp(40px, 6vh, 72px); }
.close .close__title { font-size: clamp(30px, 1.8vw + 18px, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--on-lagoon); }
.close .close__line { font-size: 19px; color: var(--on-lagoon-2); margin-top: calc(var(--s3) * -1); }
.foot { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; padding-block: clamp(72px, 10vh, 112px) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); font-size: var(--t-ui-2); color: var(--on-lagoon-2); text-align: left; }
.foot nav { display: flex; gap: var(--s5); }
.foot a { color: inherit; text-decoration: none; padding-block: var(--s2); }
.foot a:hover { color: var(--on-lagoon); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero first frame: complete within 0.4 s ---------- */
/* The headline, subline and store land at once (0.3 s fades). The marker wipes in behind "bends" from 0.3 s, and the word
   turns from ink to the marker's ink as the wipe passes each letter. The line and the knot follow, done by 1.5 s (main.js). */
.js .hero .w { display: inline-block; animation: word .3s var(--ease) both; animation-delay: calc(var(--i) * .02s); }
.js .hero .w--bends::before { animation: wipe .3s linear .3s both; }
.js .hero .w--bends span { animation: inkTurn .05s steps(1, end) both; animation-delay: calc(.325s + var(--c) * .05s); } /* each letter turns as the wipe reaches its middle */
.js .hero .hero__lede { animation: rise .3s var(--ease) .05s both; }
.js .hero .hero__cta { animation: rise .3s var(--ease) .1s both; }
@keyframes word { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: none; } }
@keyframes inkTurn { from { color: var(--on-lagoon); } to { color: var(--marker-ink); } }

/* Without script the knot and its line are drawn still, from the mark (the tail line is at 0.593 of the knot's width). */
.knot__static { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html:not(.js) .hero { overflow-x: clip; }
html:not(.js) .hero__knot { position: relative; }
html:not(.js) .hero__knot::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: calc(var(--hero-knot) * .5427); height: calc(var(--hero-knot) * .0954); background: var(--line); }

/* ---------- Reduced motion: final states, plain fades ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .2s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  .knot-art .k-over { transition: none !important; }
  .js .hero .w, .js .hero .w--bends::before, .js .hero .w--bends span, .js .hero .hero__lede, .js .hero .hero__cta { animation: none !important; }
  .obj:hover svg, .obj.is-poked svg, .pill:hover, .btn:hover { transform: none !important; animation: none !important; }
  .obj:hover use, .obj.is-poked use { animation: none !important; }
  .problem.is-shaking .week-wrap { animation: none; }
  }
