/* Dawnlet website · the "dawn" design system.
 *
 * Lifted from the app's guided tour (ios2/Dawnlet/Settings/Onboarding) rather than from the reels:
 * the app's own neutrals (AppPalette) and module hues (DawnletColors), every illustration drawn
 * inside a soft accent-washed "stage" with a 28px continuous corner, an uppercase eyebrow chip
 * over a bold rounded title, and a white highlights card with hairline dividers under it.
 *
 * The illustrations are miniatures built from the same primitives as OnboardingKit.swift -
 * bars for text, pills, glyph tiles - not screenshots. Every size inside a stage is in `em`, and
 * the stage sets its font-size from its own width (container query units), so a miniature keeps
 * its proportions at any size, the way the app's stage does at a fixed 228pt.
 *
 * Motion mirrors the tour too: one spring (response 0.55, damping 0.8, sampled into `linear()`
 * below) with 60ms staggers. A stage plays its entrance when it scrolls into view and resets,
 * instantly, once it is fully out of view, so it plays again on the way back - the app's
 * `isActive` rule. The *final* state is the default everywhere; the "before" state only applies
 * under `html.js`, so a page whose script never runs is simply complete. Reduced motion skips
 * straight to the end.
 *
 * Every page loads this file. Reading pages add dawn-doc.css on top (prose, TOC, tables,
 * callouts, legal rows, forms).
 */

@font-face {
  font-family: "Fredoka";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/fredoka-variable.woff2") format("woff2-variations"), url("../fonts/fredoka-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/karla-variable.woff2") format("woff2-variations"), url("../fonts/karla-variable.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------- */

:root {
  /* AppPalette */
  --bg: #FAF9F7;
  --card: #FFFFFF;
  --line: #EAE7E2;
  --ink: #181818;
  /* AppPalette.subtext is #8F8A84; body copy on the web is longer than the app's, so it sits a
     step darker to clear 4.5:1. The miniatures keep the app's own value. */
  --sub: #6F6A64;
  --mini-sub: #8F8A84;
  --on-vibrant: #181818;
  --nav-bg: rgba(250, 249, 247, .78);
  --shadow: 0 1px 2px rgba(24, 24, 24, .04), 0 8px 24px rgba(24, 24, 24, .05);
  --shadow-lg: 0 2px 8px rgba(24, 24, 24, .05), 0 24px 56px rgba(24, 24, 24, .10);
  --bezel: #1A1A1A;
  /* How far an accent is darkened to be read as text on a pale wash. */
  --text-mix: black 26%;

  /* DawnletColors / AppPalette accents - fixed across appearances, as in the app. */
  --sun: #D9714A;
  --coral: #FF5D5D;
  --green: #5C8A6A;
  --blue: #4E86A0;
  --purple: #8670A8;
  --pink: #FF9FC0;
  --week: #FFB84D;   /* AppPalette.planWeekAccent */
  --month: #9D7BFF;  /* AppPalette.planMonthAccent */

  --display: ui-rounded, "SF Pro Rounded", "Fredoka", -apple-system, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Karla", system-ui, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  /* .spring(response: 0.55, dampingFraction: 0.8), sampled over 0.8s. */
  --spring: cubic-bezier(.3, 1.1, .4, 1);
  --spring-dur: .8s;
  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0591, 0.1922, 0.3512, 0.5073, 0.645, 0.758, 0.8454, 0.9095, 0.9541, 0.9832, 1.0009, 1.0104, 1.0144, 1.0151, 1.0138, 1.0117, 1.0092, 1.0069, 1.0049, 1.0033, 1.0021, 1.0012, 1.0006, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171717;
    --card: #1F1F1F;
    --line: #333333;
    --ink: #F5F3F0;
    --sub: #A39E98;
    --mini-sub: #9A9590;
    --nav-bg: rgba(23, 23, 23, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .5);
    --bezel: #3A3A3A;
    --text-mix: white 22%;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171717;
  --card: #1F1F1F;
  --line: #333333;
  --ink: #F5F3F0;
  --sub: #A39E98;
  --mini-sub: #9A9590;
  --nav-bg: rgba(23, 23, 23, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .5);
  --bezel: #3A3A3A;
  --text-mix: white 22%;
  color-scheme: dark;
}

/* Every block that has an accent sets --a; everything inside derives from it. */
[data-accent="sun"] { --a: var(--sun); }
[data-accent="coral"] { --a: var(--coral); }
[data-accent="green"] { --a: var(--green); }
[data-accent="blue"] { --a: var(--blue); }
[data-accent="purple"] { --a: var(--purple); }
[data-accent="week"] { --a: var(--week); }
[data-accent="month"] { --a: var(--month); }
[data-accent] { --a-text: color-mix(in oklab, var(--a), var(--text-mix)); }

/* ---- Base --------------------------------------------------------------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 12px; }

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

/* Light/dark screenshot twins. */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* ---- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 12px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 7px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--line); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 999px; background: var(--line); color: var(--ink);
  font-size: 18px; cursor: pointer; transition: transform .2s var(--ease);
}
.icon-btn:hover { transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sunglyph { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .sunglyph { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .theme-toggle { margin-left: auto; }
  .nav-links {
    position: absolute; top: 64px; left: 12px; right: 12px;
    flex-direction: column; gap: 0; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: opacity .2s var(--ease), transform .3s var(--spring);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--ink); }
}

/* ---- Type pieces -------------------------------------------------------- */

/* The page's eyebrow chip: symbol + uppercase label in the accent, on a 14% wash. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--a, var(--sun)) 14%, transparent);
  color: var(--a-text, var(--sun));
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
}
.eyebrow .i { font-size: 13px; stroke-width: 2.4; }

.pill {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  background: var(--line); color: var(--sub);
}
.pill.plus { background: color-mix(in srgb, var(--sun) 15%, transparent); color: color-mix(in oklab, var(--sun), var(--text-mix)); }

.title { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin-top: 18px; }
.blurb { margin-top: 14px; font-size: 1.1rem; color: var(--sub); max-width: 34em; }

.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 700; font-size: 15px; color: var(--a-text, var(--sun)); text-decoration: none; }
.more .i { transition: transform .25s var(--ease); }
.more:hover .i { transform: translateX(3px); }

/* The highlights card: three rows, symbol in the accent, hairline dividers. */
.highlights { margin: 22px 0 0; padding: 0 16px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.highlights li { display: flex; align-items: baseline; gap: 13px; padding: 13px 0; font-size: 15.5px; line-height: 1.45; }
.highlights li + li { border-top: 1px solid var(--line); }
.highlights .i { position: relative; top: .14em; font-size: 16px; color: var(--a, var(--sun)); }
.highlights .pill { margin-left: auto; align-self: center; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--a, var(--sun)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--a, var(--sun)) 32%, transparent); }
.btn-quiet { background: var(--line); color: var(--ink); }
/* Apple's "Download on the App Store" badge, used as-is (Apple's artwork, never redrawn): black
   in light mode, white in dark, swapped the same way as the screenshot twins. 46px tall to sit level
   with the .btn beside it - Apple's minimum on screen is 40px. */
.store-badge { display: inline-flex; border-radius: 9px; transition: transform .25s var(--spring); }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: scale(.97); }
.store-badge img { height: 46px; width: auto; display: block; }
.store-badge .badge-dark, .ph-badge .badge-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store-badge .badge-light, :root:not([data-theme="light"]) .ph-badge .badge-light { display: none; }
  :root:not([data-theme="light"]) .store-badge .badge-dark, :root:not([data-theme="light"]) .ph-badge .badge-dark { display: block; }
}
:root[data-theme="dark"] .store-badge .badge-light, :root[data-theme="dark"] .ph-badge .badge-light { display: none; }
:root[data-theme="dark"] .store-badge .badge-dark, :root[data-theme="dark"] .ph-badge .badge-dark { display: block; }
.btn .i { font-size: 15px; stroke-width: 2.6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ph-badge { display: inline-flex; border-radius: 9px; transition: transform .25s var(--spring); }
.ph-badge:hover { transform: translateY(-1px); }
.ph-badge:active { transform: scale(.97); }
.ph-badge img { height: 46px; width: auto; display: block; }
.tour-link { margin-top: 14px; }

/* ---- Reveal (copy rising into place) ------------------------------------ */

.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) var(--d, 0s), transform var(--spring-dur) var(--spring) var(--d, 0s);
}

/* ---- Stage -------------------------------------------------------------- */

/* OnboardingStage: accent 20% -> 5% wash, a 22% hairline, 28px corner. Its font-size is a
   fraction of its own width, so 1em inside it is the app's 10pt at an iPhone-sized stage. */
.stage-wrap { container-type: inline-size; }
.stage {
  position: relative; overflow: hidden;
  aspect-ratio: 35 / 23;
  padding: 1.8em;
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 20%, transparent), color-mix(in srgb, var(--a) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--a) 22%, transparent);
  font-size: calc(100cqw / 35);
  line-height: 1;
  display: grid; place-items: center;
  color: var(--ink);
}
.stage.tall { aspect-ratio: 35 / 26; }

/* Mini primitives (OnboardingKit). */
.m-panel { background: var(--card); border: 1px solid var(--line); border-radius: 1.4em; padding: 1em; }
.m-line { display: block; height: .6em; width: var(--w, 7.8em); border-radius: 99em; background: color-mix(in srgb, var(--mini-sub) var(--o, 35%), transparent); }
.m-line.s { height: .4em; --o: 22%; }
.m-glyph {
  display: inline-grid; place-items: center; flex: none;
  width: var(--g, 2.6em); height: var(--g, 2.6em); border-radius: calc(var(--g, 2.6em) * .3);
  background: color-mix(in srgb, var(--t, var(--a)) 18%, transparent); color: var(--t, var(--a));
}
.m-glyph .i { font-size: calc(var(--g, 2.6em) * .5); stroke-width: 2.4; }
.m-pill {
  display: inline-flex; align-items: center; padding: .3em .7em; border-radius: 99em;
  font: 700 .9em/1.15 var(--display); white-space: nowrap;
  background: color-mix(in srgb, var(--t, var(--a)) 16%, transparent); color: color-mix(in oklab, var(--t, var(--a)), var(--text-mix));
}
.m-pill.on { background: var(--t, var(--a)); color: var(--on-vibrant); }

.m-row { display: flex; align-items: center; gap: .8em; }
.m-row .m-glyph { --g: 2em; }
.m-row .lines { display: grid; gap: .4em; }
.m-row .lines .m-line:last-child { width: calc(var(--w, 7.8em) * .55); height: .4em; --o: 22%; }
.m-row .state { position: relative; margin-left: auto; width: 1.25em; height: 1.25em; }
.m-row .state > * { position: absolute; inset: 0; transition: opacity .35s var(--ease) var(--td, 0s), transform .5s var(--spring) var(--td, 0s); }
.m-row .state .ring { border: .14em solid color-mix(in srgb, var(--mini-sub) 45%, transparent); border-radius: 50%; }
.m-row .state .tick { display: grid; place-items: center; border-radius: 50%; background: var(--t, var(--a)); color: var(--on-vibrant); opacity: 0; transform: scale(.6); }
.m-row .state .tick .i { font-size: .8em; stroke-width: 3.6; }
.m-row.done .state .ring { opacity: 0; }
.m-row.done .state .tick { opacity: 1; transform: none; }
.m-row.done .lines .m-line { --o: 25%; }

.m-head { display: flex; align-items: center; gap: .6em; color: var(--t, var(--a)); }
.m-head .i { font-size: .9em; stroke-width: 2.8; }
.m-head .m-line { height: .5em; --o: 45%; }
.m-head .chev { margin-left: auto; color: color-mix(in srgb, var(--mini-sub) 60%, transparent); font-size: .75em; }

.m-week { display: flex; gap: .5em; padding-bottom: 1.1em; }
.m-week span {
  position: relative; display: grid; place-items: center;
  width: 1.4em; height: 1.4em; border-radius: 50%;
  background: color-mix(in srgb, var(--a) 12%, transparent); color: var(--on-vibrant);
}
.m-week span::after { content: attr(data-d); position: absolute; top: 1.95em; font: 700 .7em/1 var(--body); color: var(--mini-sub); }
.m-week span.on { background: var(--a); }
.m-week span .i { font-size: .75em; stroke-width: 3.8; }
.m-week span.skip { color: color-mix(in srgb, var(--a) 80%, var(--ink)); }

.m-bars { display: flex; align-items: flex-end; gap: .5em; height: var(--h, 5.4em); }
.m-bars i { display: block; width: .9em; height: calc(var(--h, 5.4em) * var(--v)); min-height: .3em; border-radius: 99em; background: linear-gradient(var(--t, var(--a)), color-mix(in srgb, var(--t, var(--a)) 55%, transparent)); transform-origin: bottom; transition: transform .45s var(--ease) calc(var(--k, 0) * 40ms); }

.m-tile { flex: 1; padding: .8em; border-radius: 1em; background: var(--card); border: 1px solid var(--line); }
.m-tile b { display: block; font: 700 1.7em/1 var(--display); color: var(--t, var(--a)); }
.m-tile small { display: block; margin-top: .3em; font: 600 .8em/1 var(--body); color: var(--mini-sub); }

/* ---- Hero --------------------------------------------------------------- */

.hero { padding: 56px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin-top: 26px; letter-spacing: -.03em; }
.hero .blurb { font-size: 1.2rem; }
.hero .stage { aspect-ratio: 1 / .86; }

/* Welcome: five cards scattered round the stage converge and fade; one day is left. */
.welcome { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.welcome .scatter {
  position: absolute; display: flex; align-items: center; gap: .7em; padding: .8em; border-radius: 1.2em;
  transition: transform var(--spring-dur) var(--spring) calc(var(--i) * 60ms), opacity .45s var(--ease) calc(var(--i) * 60ms + 120ms);
  transform: translate(0, 0) scale(.7); opacity: 0;
}
.welcome .scatter .m-glyph { --g: 2.2em; }
.welcome .scatter .lines { display: grid; gap: .4em; }
/* ...and land on three miniature devices showing that same day: iPad, iPhone, Watch. Each screen
   scales its own contents through font-size, so the miniatures inside are the same primitives. */
.trio { position: relative; width: 31.4em; height: 21em; }
.dev { position: absolute; bottom: 0; padding: .42em; background: var(--bezel); box-shadow: var(--shadow-lg); }
.dev .scr { height: 100%; overflow: hidden; background: var(--bg); display: grid; align-content: start; }
.dev.ipad { left: 0; bottom: 1.6em; width: 19em; height: 13.6em; border-radius: 1.5em; }
.dev.ipad .scr { border-radius: 1.1em; font-size: .6em; padding: 1.4em; grid-template-columns: 2.6em 1fr; gap: 1.4em; }
.dev.iphone { left: 15.6em; width: 9.2em; height: 19em; border-radius: 2em; z-index: 1; }
.dev.iphone .scr { border-radius: 1.6em; font-size: .66em; padding: 1.2em .8em; gap: .9em; }
.dev.iphone .m-panel, .dev.watch .wrow { padding: .7em; }
.dev.iphone .m-row .lines, .dev.watch .m-row .lines { --w: 4.2em !important; }
.dev.watch .m-row .lines { --w: 2.4em !important; }
.dev.watch .m-row { gap: .5em; }
.dev.watch { left: 25.8em; bottom: 3.2em; width: 5.6em; height: 6.6em; border-radius: 1.8em; }
.dev.watch::before, .dev.watch::after { content: ""; position: absolute; left: .9em; right: .9em; height: 1.6em; background: color-mix(in srgb, var(--bezel) 70%, var(--sun)); z-index: -1; }
.dev.watch::before { top: -1.3em; border-radius: .6em .6em 0 0; }
.dev.watch::after { bottom: -1.3em; border-radius: 0 0 .6em .6em; }
.dev.watch .scr { border-radius: 1.45em; font-size: .52em; padding: 1em .8em; gap: .7em; background: #000; }
.dev .side { display: grid; align-content: start; gap: .9em; padding-top: .3em; }
.dev .side .m-glyph { --g: 2.2em; }
.dev .main { display: grid; align-content: start; gap: 1em; }
.dev .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.dev .m-panel { display: grid; gap: .8em; padding: .9em; border-radius: 1.2em; }
.dev .daytitle { display: flex; align-items: center; gap: .6em; }
.dev .daytitle b { font: 700 1.8em/1 var(--display); }
.dev .daytitle small { font: 600 1em/1 var(--body); color: var(--mini-sub); }
.dev .daytitle .m-pill { margin-left: auto; }
.dev .island { justify-self: center; width: 4.4em; height: 1.3em; border-radius: 99em; background: var(--bezel); margin-bottom: .2em; }
.dev.iphone .m-week { gap: .3em; padding-bottom: 1em; }
.dev.iphone .m-week span { width: 1.3em; height: 1.3em; }
.dev.watch .clock { justify-self: end; font: 700 1.3em/1 var(--display); color: var(--sun); }
.dev.watch .wrow { display: flex; align-items: center; gap: .6em; padding: .7em; border-radius: 1.2em; background: #1F1F1F; }
.dev.watch .wrow .m-line { --o: 60%; }
.dev.watch .m-row .state .ring { border-color: rgba(255,255,255,.35); }

/* The logo, front and centre: the icon with a warm glow, and the name beside it. */
.lockup { display: flex; align-items: center; gap: 18px; }
.lockup img { width: 84px; height: 84px; border-radius: 22%; box-shadow: 0 1px 0 rgba(24,24,24,.04), 0 14px 34px color-mix(in srgb, var(--sun) 38%, transparent); }
.lockup .name { display: block; font: 700 2.1rem/1 var(--display); letter-spacing: -.02em; }
.lockup .tag { display: block; margin-top: 6px; font-size: 1.02rem; color: var(--sub); }
/* One quiet line under the buttons naming the three devices. */
.platforms { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--sub); }
.platforms .i { font-size: 16px; color: var(--sun); }
.platforms .i:last-of-type { margin-right: 4px; }

.js .stage:not(.is-active) .welcome .scatter { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; transition: none; }


/* ---- Tour --------------------------------------------------------------- */

.tour { padding: 40px 0 24px; }
.tour-head { text-align: center; max-width: 720px; margin: 0 auto; }
.tour-head .title { margin-top: 18px; }
.tour-head .blurb { margin: 14px auto 0; }

/* The tour's header + segmented progress, pinned under the nav while the chapters scroll. */
.progress {
  position: sticky; top: 64px; z-index: 40;
  margin-top: 36px; padding: 12px 0 14px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.progress .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.progress .count { font: 700 13px/1 var(--body); color: var(--sub); font-variant-numeric: tabular-nums; min-width: 6.6em; }
.progress .segs { display: flex; gap: 6px; }
.progress .segs a { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s var(--ease); }
.progress .segs a.on { background: var(--a, var(--sun)); }
.progress .steppers { display: flex; gap: 8px; }
.progress .icon-btn { width: 34px; height: 34px; font-size: 15px; }
.progress .icon-btn.next { background: var(--a, var(--sun)); color: #fff; }
.progress .icon-btn .i { stroke-width: 2.6; }
.progress .icon-btn:disabled { opacity: .35; cursor: default; transform: none; }

.chapter { padding: 72px 0; }
.chapter .container { display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; align-items: center; }
.chapter:nth-of-type(even) .stage-wrap { order: 2; }
.chapter .copy { max-width: 500px; }
.chapter .eyebrow-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Shape: the tab bar walks, the panel above it follows. */
.shape { width: 100%; display: grid; gap: 1em; }
.shape .screen { position: relative; height: 12.6em; padding: 1.2em; }
.shape .screen > div { position: absolute; inset: 1.2em; display: grid; align-content: start; gap: .9em; opacity: 0; transform: translateY(.5em); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.shape[data-tab="0"] .screen > [data-p="0"],
.shape[data-tab="1"] .screen > [data-p="1"],
.shape[data-tab="2"] .screen > [data-p="2"],
.shape[data-tab="3"] .screen > [data-p="3"],
.shape[data-tab="4"] .screen > [data-p="4"] { opacity: 1; transform: none; }
.shape .clock { font: 700 3.2em/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.shape .moods { display: flex; gap: .6em; }
.shape .moods span { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: color-mix(in srgb, var(--t) 15%, transparent); color: var(--t); }
.shape .moods span.on { background: var(--t); color: #fff; }
.shape .moods .i { font-size: 1.2em; }
.shape .glances { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.shape .glance { display: flex; align-items: center; gap: .6em; padding: .7em .8em; border-radius: 1em; border: 1px solid var(--line); }
.shape .glance b { font: 700 1.45em/1 var(--display); }
.shape .glance b em { font-style: normal; font-size: .62em; color: var(--t); margin-left: .2em; }
.shape .glance small { display: block; margin-top: .3em; font: 600 .8em/1 var(--body); color: var(--mini-sub); }
.shape .glance svg { flex: 1; height: 2.4em; min-width: 0; overflow: visible; }
.shape .glance polyline { fill: none; stroke: var(--t); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.tabbar { display: flex; padding: .4em; }
.tabbar span { flex: 1; display: grid; justify-items: center; gap: .35em; padding: .75em 0; border-radius: 1em; color: color-mix(in srgb, var(--mini-sub) 65%, transparent); transition: color .4s var(--ease), background .4s var(--ease); }
.tabbar span .i { font-size: 1.5em; stroke-width: 2.2; }
.tabbar span small { font: 700 .75em/1 var(--body); }
.shape[data-tab="0"] .tabbar span:nth-child(1),
.shape[data-tab="1"] .tabbar span:nth-child(2),
.shape[data-tab="2"] .tabbar span:nth-child(3),
.shape[data-tab="3"] .tabbar span:nth-child(4),
.shape[data-tab="4"] .tabbar span:nth-child(5) { color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }

/* Month: a grid with a trip filling in a day at a time. */
.month { display: flex; align-items: center; gap: 2em; width: 100%; }
.month .grid { display: grid; grid-template-columns: repeat(7, 2.3em); gap: .5em; }
.month .grid i {
  position: relative; display: block; width: 2.3em; height: 2.3em; border-radius: .55em;
  background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  transition: background .25s var(--ease) calc(var(--k, 0) * 110ms);
}
.month .grid i.dot::after { content: ""; position: absolute; inset: 0; margin: auto; width: .45em; height: .45em; border-radius: 50%; background: var(--a); }
.month .grid i.today { border: .16em solid var(--a); }
.month .grid i.trip { background: color-mix(in srgb, var(--a) 55%, transparent); }
.month .grid i.trip.dot::after { display: none; }
.month .side { display: grid; gap: .9em; justify-items: start; }
.month .side .m-pill { transition: opacity .3s var(--ease) .4s; }
.js .stage:not(.is-active) .month .grid i.trip { background: color-mix(in srgb, var(--card) 85%, transparent); transition: none; }
.js .stage:not(.is-active) .month .grid i.trip.dot::after { display: block; }
.js .stage:not(.is-active) .month .side .m-pill { opacity: 0; transition: none; }

/* Week, Day, Capture, Momentum, Reminders, Ready all share one staggered rise. */
[data-rise] { transition: transform var(--spring-dur) var(--spring) calc(var(--i, 0) * 60ms), opacity .45s var(--ease) calc(var(--i, 0) * 60ms); }
.js .stage:not(.is-active) [data-rise] { opacity: 0; transform: translateY(1.4em); transition: none; }
.js .stage:not(.is-active) [data-rise="down"] { transform: translateY(-1em); }
.js .stage:not(.is-active) [data-rise="left"] { transform: translateX(-1.4em); }
.js .stage:not(.is-active) [data-rise="drop"] { transform: translateY(-3.6em); }
.js .stage:not(.is-active) [data-rise="pop"] { transform: translateY(-1.8em) scale(.4); transform-origin: top center; }
.js .stage:not(.is-active) [data-rise="grow"] { transform: scale(.86); }
.js .stage:not(.is-active) .m-row.done .state > * { transition: none; }
.js .stage:not(.is-active) .m-row.later .state .ring { opacity: 1; }
.js .stage:not(.is-active) .m-row.later .state .tick { opacity: 0; transform: scale(.6); }
.js .stage:not(.is-active) .m-row.later .lines .m-line { --o: 35%; }
.js .stage:not(.is-active) .m-bars i { transform: scaleY(0); transition: none; }

.week { width: 100%; display: grid; gap: 1.4em; }
.week .m-week { justify-self: center; font-size: 1.35em; gap: .6em; }
.week .m-panel { display: grid; gap: .9em; }
.week .skipline { display: flex; align-items: center; gap: .6em; color: var(--a-text); }
.week .skipline .i { font-size: 1em; stroke-width: 2.8; }
.week .skipline small { font: 600 .9em/1 var(--body); color: var(--mini-sub); }

.dayview { width: 100%; display: grid; gap: .6em; }
.dayview .m-panel { display: grid; gap: .55em; padding: .75em .8em; border-radius: 1.2em; }

.capture { width: 100%; display: grid; justify-items: center; gap: 1em; }
.capture .m-panel { width: 100%; display: grid; gap: .8em; }
.capture .plus {
  display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%;
  background: var(--a); color: var(--on-vibrant);
  box-shadow: 0 .3em 1em color-mix(in srgb, var(--a) 40%, transparent);
  transition: box-shadow .4s var(--ease);
}
.capture .plus .i { font-size: 1.3em; stroke-width: 3; }
.js .stage:not(.is-active) .capture .plus { box-shadow: none; }
.capture .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em; max-width: 24em; }
.capture .chips .m-pill { font-size: 1.05em; padding: .4em .9em; }

.momentum { width: 100%; display: flex; align-items: flex-start; gap: .9em; }
.momentum .log { display: grid; gap: .65em; padding: .9em; border-radius: 1.2em; }
.momentum .log span { display: flex; align-items: center; gap: .45em; color: var(--a); }
.momentum .log .i { font-size: .8em; stroke-width: 3.6; }
.momentum .log .m-line { --w: 1.7em; height: .4em; --o: 30%; }
.momentum .arrow { margin-top: 2.6em; color: color-mix(in srgb, var(--a) 70%, transparent); font-size: 1.1em; }
.momentum .arrow .i { stroke-width: 2.8; }
.momentum .derived { flex: 1; display: grid; gap: .8em; }
.momentum .derived .m-panel { display: grid; place-items: center; padding: .9em; }
.momentum .tiles { display: flex; gap: .8em; }
.momentum .m-week { justify-self: center; }

.reminders { width: 100%; height: 100%; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .8em; }
.reminders .m-panel { display: flex; align-items: center; gap: .8em; padding: .8em; border-radius: 1.2em; box-shadow: var(--shadow); }
.reminders .m-panel .m-glyph { --g: 2.2em; }
.reminders .m-panel .lines { display: grid; gap: .35em; }
.reminders .m-panel .lines small { font: 700 .75em/1 var(--body); color: var(--mini-sub); margin-left: auto; }
.reminders .device { grid-row: 5; display: flex; align-items: center; gap: 1em; }
.reminders .phone-mini {
  display: grid; place-items: center; width: 3em; height: 4.6em; border-radius: .7em;
  background: var(--card); border: .14em solid color-mix(in srgb, var(--a) 50%, transparent); color: var(--a);
  box-shadow: 0 0 1.2em color-mix(in srgb, var(--a) 35%, transparent);
}
.reminders .phone-mini .i { font-size: 1.3em; }
.reminders .device div { display: grid; gap: .5em; justify-items: start; }
.reminders .quiet { display: flex; align-items: center; gap: .5em; color: var(--a); }
.reminders .quiet .i { font-size: .9em; }

/* Ready: a sun comes up, the three first moves tick themselves off. */
.ready { position: relative; width: 100%; display: grid; justify-items: center; gap: 1.2em; }
.ready .sunrise { position: relative; width: 12em; height: 6.4em; overflow: hidden; }
.ready .sunrise .glow { position: absolute; left: 50%; bottom: -4.7em; width: 11em; height: 11em; margin-left: -5.5em; border-radius: 50%; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--a) 35%, transparent) 40%, transparent); }
.ready .sunrise .disc { position: absolute; left: 50%; bottom: -3em; width: 7.6em; height: 7.6em; margin-left: -3.8em; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FFB27F, var(--a) 70%); box-shadow: 0 0 2.4em color-mix(in srgb, var(--a) 45%, transparent); transition: transform 1.1s var(--spring) .1s; }
.ready .sunrise .rays { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; transition: opacity .6s var(--ease) .5s; }
.ready .sunrise .rays i { position: absolute; left: -.2em; bottom: 0; width: .4em; height: 1.3em; border-radius: 99em; background: color-mix(in srgb, var(--a) 70%, transparent); transform: rotate(var(--r)) translateY(-4.8em); transform-origin: 50% 100%; }
.ready .sunrise::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--a) 40%, transparent); }
.js .stage:not(.is-active) .ready .sunrise .disc { transform: translateY(5em); transition: none; }
.js .stage:not(.is-active) .ready .sunrise .rays { opacity: 0; transition: none; }
.ready .m-panel { width: min(100%, 26em); display: grid; gap: .9em; position: relative; z-index: 1; }
.ready .confetti i { position: absolute; width: .6em; height: .6em; border-radius: 50%; background: var(--c); opacity: .55; transition: opacity .4s var(--ease) .3s, transform 1.2s var(--spring) .3s; }
.js .stage:not(.is-active) .ready .confetti i { opacity: 0; transform: translateY(1em) scale(.5); transition: none; }

/* ---- Devices ------------------------------------------------------------ */

.band { padding: 96px 0; }
.band-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.band-head .blurb { margin: 14px auto 0; }

.devices-stage {
  position: relative; padding: 56px 24px 0; border-radius: 32px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 20%, transparent), color-mix(in srgb, var(--a) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--a) 22%, transparent);
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 40px);
}
.frame { background: var(--bezel); box-shadow: var(--shadow-lg); flex: none; }
.frame img { width: 100%; height: auto; }
.frame.ipad { width: min(56%, 560px); padding: 10px; border-radius: 26px 26px 0 0; padding-bottom: 0; }
.frame.ipad img { border-radius: 16px 16px 0 0; }
.frame.phone { width: min(22%, 220px); padding: 7px; border-radius: 34px 34px 0 0; padding-bottom: 0; }
.frame.phone img { border-radius: 27px 27px 0 0; aspect-ratio: 640 / 1180; object-fit: cover; object-position: top; }
.frame.watch { width: min(13%, 128px); padding: 7px; border-radius: 34px; margin-bottom: 40px; }
.frame.watch img { border-radius: 27px; }

.device-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.device-notes .note { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.device-notes .note .m-glyph { --g: 38px; border-radius: 11px; margin-bottom: 14px; }
.device-notes .note .m-glyph .i { font-size: 19px; }
.device-notes h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.device-notes p { margin-top: 8px; color: var(--sub); font-size: 15.5px; }

/* Light/dark and portrait/landscape: two cards under the devices stage, each a pair of whole devices. */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.mode { display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.mode-stage {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 28px);
  flex: 1; padding: 28px 16px 20px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 18%, transparent), color-mix(in srgb, var(--a) 5%, transparent));
}
.mode-stage figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.mode-stage .m-pill { gap: .4em; }
.mode .frame.phone { width: clamp(84px, 13vw, 140px); padding: 5px; border-radius: 24px; }
.mode .frame.phone img { border-radius: 19px; aspect-ratio: auto; }
.mode .frame.ipad { padding: 6px; border-radius: 16px; }
.mode .frame.ipad img { border-radius: 11px; }
.mode .frame.ipad.portrait { width: clamp(96px, 14vw, 156px); }
.mode .frame.ipad.landscape { width: clamp(140px, 21vw, 232px); }
.mode h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.mode p { margin-top: 8px; color: var(--sub); font-size: 15.5px; }

/* Real screens. All six side by side on a wide screen; below that, a carousel showing three (tablet)
   or one (phone) whole phones at a time, snapping a phone at a time, with arrows and dots that
   dawn.js builds. --per is how many fit in view - the script reads it, so set it only here. */
.carousel { --per: 6; max-width: 1140px; margin: 56px auto 0; padding: 0 20px; }
.screens {
  display: grid; grid-auto-flow: column; gap: 20px;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 20px) / var(--per));
  padding: 6px 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; scroll-snap-align: start; }
.screens .frame.phone { width: 100%; padding: 6px; border-radius: 30px; }
.screens .frame.phone img { border-radius: 24px; aspect-ratio: auto; }
.carousel-nav { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.carousel-nav .icon-btn .i { stroke-width: 2.6; }
.carousel-nav .icon-btn:disabled { opacity: .35; cursor: default; transform: none; }
.carousel-nav .dots { display: flex; gap: 7px; }
.carousel-nav .dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .3s var(--spring), background .3s var(--ease); }
.carousel-nav .dots button[aria-current="true"] { width: 20px; background: var(--a, var(--sun)); }
@media (max-width: 960px) {
  .carousel { --per: 3; }
  .carousel-nav { display: flex; }
}
@media (max-width: 640px) {
  .carousel { --per: 1; }
  /* One phone per view: keep it to a readable size rather than the full column width. */
  .screens .frame.phone { width: min(68%, 250px); margin: 0 auto; }
}
.screens figcaption { margin-top: 14px; text-align: center; font: 700 15px/1.3 var(--display); }
.screens figcaption small { display: block; margin-top: 3px; font: 500 13.5px/1.4 var(--body); color: var(--sub); }

/* ---- Modules ------------------------------------------------------------ */

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { display: flex; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.module .m-glyph { --g: 40px; border-radius: 12px; }
.module .m-glyph .i { font-size: 20px; }
.module h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.module p { margin-top: 5px; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.module .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---- Privacy ------------------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.nope { width: 100%; display: grid; gap: .7em; }
.nope .m-panel { display: flex; align-items: center; gap: .8em; padding: .75em 1em; border-radius: 1.2em; font: 700 1.3em/1.1 var(--display); }
.nope .m-panel .x { display: grid; place-items: center; width: 1.6em; height: 1.6em; margin-left: auto; border-radius: 50%; background: color-mix(in srgb, var(--a) 16%, transparent); color: var(--a); }
.nope .m-panel .x .i { font-size: .8em; stroke-width: 3.4; }
.nope .m-panel > .i { font-size: 1.1em; color: var(--a); }

/* ---- Pricing ------------------------------------------------------------ */

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.price { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.price.plus { border: 1.5px solid color-mix(in srgb, var(--sun) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--sun) 9%, var(--card)), var(--card) 55%); }
.price .tier { display: flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); }
.price .amount { margin-top: 18px; font: 700 2.6rem/1 var(--display); letter-spacing: -.03em; }
.price .amount small { font: 600 15px/1 var(--body); color: var(--sub); letter-spacing: 0; }
.price .alt { margin-top: 8px; font-size: 15px; color: var(--sub); }
.price ul { margin: 22px 0 0; padding: 0; list-style: none; }
/* The home page's comparison cards reuse the pricing cards (see #compare) */
.prices.compare .price { display: flex; flex-direction: column; }
.prices.compare .alt { margin-top: 12px; }
.prices.compare .more { margin-top: auto; padding-top: 18px; }
.price li { display: flex; gap: 11px; padding: 10px 0; font-size: 15.5px; line-height: 1.45; border-top: 1px solid var(--line); }
.price li .i { position: relative; top: .2em; font-size: 15px; color: var(--sun); stroke-width: 3; }
.line-note { max-width: 920px; margin: 20px auto 0; padding: 22px 26px; border-radius: 20px; background: color-mix(in srgb, var(--sun) 8%, transparent); border: 1px solid color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sub); font-size: 15.5px; }
.line-note strong { color: var(--ink); }

/* ---- FAQ ---------------------------------------------------------------- */

.faq { max-width: 780px; margin: 0 auto; padding: 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 20px 4px; cursor: pointer; list-style: none; font: 700 1.08rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-left: auto; color: var(--sub); font-size: 16px; stroke-width: 2.6; transition: transform .35s var(--spring); }
.faq details[open] summary .i { transform: rotate(90deg); }
.faq details p { padding: 0 4px 20px; color: var(--sub); font-size: 15.5px; }

/* ---- End card ----------------------------------------------------------- */

.endcard { padding: 96px 0 112px; }
.endcard .split { grid-template-columns: 1fr 1fr; }

/* ---- Footer ------------------------------------------------------------- */

.footer { padding: 48px 0 36px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--sub); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--ink); }
.footer p { margin-top: 12px; max-width: 26em; }
.footer h4 { font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 12px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .social a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.footer .social .i { font-size: 17px; }
.footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .container, .chapter .container, .split, .endcard .split { grid-template-columns: 1fr; gap: 36px; }
  .hero .stage-wrap { order: -1; }
  .chapter:nth-of-type(even) .stage-wrap { order: 0; }
  .chapter .copy { max-width: none; }
  .chapter { padding: 48px 0; }
  .modules { grid-template-columns: 1fr 1fr; }
  .device-notes { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .split .stage-wrap { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 20px; }
  .band { padding: 72px 0; }
  .modules, .prices { grid-template-columns: 1fr; }
  .progress .container { grid-template-columns: 1fr auto; row-gap: 10px; }
  .progress .segs { grid-column: 1 / -1; grid-row: 2; }
  .devices-stage { padding: 32px 12px 0; }
  .devices-stage { gap: 10px; }
  .frame.ipad { width: 54%; padding: 5px 5px 0; border-radius: 14px 14px 0 0; }
  .frame.ipad img { border-radius: 10px 10px 0 0; }
  .frame.phone { width: 22%; padding: 3px 3px 0; border-radius: 15px 15px 0 0; }
  .frame.phone img { border-radius: 12px 12px 0 0; }
  .frame.watch { width: 15%; padding: 3px; border-radius: 16px; margin-bottom: 18px; }
  .frame.watch img { border-radius: 13px; }
  .mode .frame.phone { width: 34%; padding: 4px; border-radius: 18px; }
  .mode .frame.phone img { border-radius: 14px; }
  .mode .frame.ipad { padding: 4px 4px; border-radius: 11px; }
  .mode .frame.ipad img { border-radius: 8px; }
  .mode .frame.ipad.portrait { width: 34%; }
  .mode .frame.ipad.landscape { width: 52%; }
  .footer .cols { grid-template-columns: 1fr; }
  .price { padding: 24px; }
}

/* ---- Reduced motion: straight to the end -------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
