/* WakeNudge website. One stylesheet for every page. Tokens, radii and motion mirror the Android app:
   ui/theme/Color.kt (Material You roles), Shapes.kt (28 dp groups with 6 dp inner corners, 36-44 dp hero cards,
   cookie and sunny blobs) and Motion.kt (springs). The warm "sunrise" scheme is the one the app's screenshots show;
   html[data-seed="night"] is the app's own brand palette (Color.kt) for phones without wallpaper colours. */

:root {
  color-scheme: light dark;
  /* light: cream surfaces, peach containers */
  --bg: #FFF9F4; --sc-lowest: #FFFFFF; --sc-low: #FCF3EC; --sc: #F8EDE4; --sc-high: #F3E7DD; --sc-highest: #EFE1D5;
  --on-bg: #201A15; --on-sv: #524438; --outline: #847467; --outline-v: #D3C4B7;
  --primary: #825424; --on-primary: #FFFFFF; --primary-c: #FFDCBF; --on-primary-c: #2A1800;
  --secondary: #765F47; --secondary-c: #F3DFCD; --on-secondary-c: #251909;
  --tertiary: #6A652A; --on-tertiary: #FFFFFF; --tertiary-c: #EFE7B0; --on-tertiary-c: #1F1C00;
  --shape-tint: rgb(255 255 255 / .55);
  --sun-1: #FFD86E; --sun-2: #FF8458;
  /* the phone screens are always the app's dark theme, whatever the page theme is */
  --ap-bg: #130D08; --ap-card: #271E16; --ap-key: #2F251B; --ap-primary: #F0BD8D; --ap-on-primary: #4C2E0D;
  --ap-pc: #6F4A25; --ap-text: #EBE1D8; --ap-muted: #D5C3B5;

  --r-xs: 10px; --r-s: 16px; --r-m: 24px; --r-l: 32px; --r-xl: 44px; --r-group: 28px; --r-inner: 6px;
  --out: cubic-bezier(.23, 1, .32, 1);
  --spring-fast: cubic-bezier(.34, 1.45, .64, 1);
  --spring: cubic-bezier(.3, 1.2, .5, 1);
  --spring-slow: cubic-bezier(.3, 1.1, .5, 1);
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130D08; --sc-lowest: #0E0804; --sc-low: #1A130D; --sc: #201811; --sc-high: #271E16; --sc-highest: #2F251B;
    --on-bg: #EBE1D8; --on-sv: #D5C3B5; --outline: #9E8E81; --outline-v: #51443A;
    --primary: #F0BD8D; --on-primary: #4C2E0D; --primary-c: #6F4A25; --on-primary-c: #FFDCBF;
    --secondary: #DDC2A7; --secondary-c: #544432; --on-secondary-c: #F0E0D0;
    --tertiary: #E7DEA3; --on-tertiary: #3D3A12; --tertiary-c: #534F28; --on-tertiary-c: #F0E9C2;
    --shape-tint: rgb(255 255 255 / .08);
  }
}
/* The app's brand palette (Color.kt): night indigo, sunrise coral. Chosen with the colour dots in the hero. */
:root[data-seed="night"] {
  --bg: #FCF8FF; --sc-lowest: #FFFFFF; --sc-low: #F6F2FA; --sc: #F0ECF4; --sc-high: #EBE6EF; --sc-highest: #E5E1E9;
  --on-bg: #1C1B20; --on-sv: #48454F; --outline: #79757F; --outline-v: #C9C4D0;
  --primary: #5646C4; --on-primary: #FFFFFF; --primary-c: #E5DFFF; --on-primary-c: #190068;
  --secondary: #605C72; --secondary-c: #E6DFF9; --on-secondary-c: #1D192C;
  --tertiary: #9A4524; --on-tertiary: #FFFFFF; --tertiary-c: #FFDBCD; --on-tertiary-c: #390C00;
}
@media (prefers-color-scheme: dark) {
  :root[data-seed="night"] {
    --bg: #141318; --sc-lowest: #0F0D13; --sc-low: #1C1B20; --sc: #201F25; --sc-high: #2B292F; --sc-highest: #36343A;
    --on-bg: #E5E1E9; --on-sv: #C9C4D0; --outline: #938F99; --outline-v: #48454F;
    --primary: #C8BFFF; --on-primary: #2B1A96; --primary-c: #402FAC; --on-primary-c: #E5DFFF;
    --secondary: #C9C3DC; --secondary-c: #484459; --on-secondary-c: #E6DFF9;
    --tertiary: #FFB59C; --on-tertiary: #5A1B00; --tertiary-c: #7B2F0E; --on-tertiary-c: #FFDBCD;
  }
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-fast: linear(0, 0.047, 0.151, 0.286, 0.463, 0.606, 0.734, 0.843, 0.945, 1.006, 1.049, 1.078, 1.087, 1.088, 1.081, 1.068, 1.056, 1.043, 1.03, 1.018, 1.009, 1.003, 0.997, 0.994, 0.993, 0.992, 0.993, 0.993, 0.994, 0.996, 0.997, 0.998, 0.999, 1, 1, 1, 1.001, 1.001, 1.001, 1.001, 1);
    --spring: linear(0, 0.031, 0.1, 0.192, 0.294, 0.397, 0.497, 0.589, 0.671, 0.742, 0.803, 0.853, 0.894, 0.927, 0.953, 0.972, 0.986, 0.997, 1.004, 1.008, 1.011, 1.012, 1.012, 1.012, 1.011, 1.01, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001, 1, 1, 1, 1, 1);
    --spring-slow: linear(0, 0.022, 0.083, 0.167, 0.264, 0.364, 0.462, 0.554, 0.637, 0.711, 0.775, 0.822, 0.868, 0.905, 0.935, 0.958, 0.976, 0.989, 0.999, 1.005, 1.01, 1.012, 1.013, 1.013, 1.013, 1.012, 1.011, 1.009, 1.008, 1.007, 1.005, 1.005, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001, 1, 1, 1);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; accent-color: var(--primary); }
body { margin: 0; background: var(--bg); color: var(--on-bg); font: 400 1.0625rem/1.6 Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; overflow-wrap: break-word; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--primary-c); color: var(--on-primary-c); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }
button, .btn, summary, a { touch-action: manipulation; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--sc-highest); padding: .1em .4em; border-radius: 8px; overflow-wrap: anywhere; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; transition: top .2s var(--out); }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 720px) { :root { --gut: max(28px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

/* ---------- type ---------- */
h1 { font-size: clamp(2.35rem, .9rem + 4.2vw, 4rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.sub { margin-top: 18px; max-width: 34em; color: var(--on-sv); font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; }
.clock { font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.sec { padding-block: clamp(64px, 11vw, 148px); }
.sec-tight { padding-top: 0; }

/* ---------- icons and shapes ---------- */
.gl { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic { position: relative; display: grid; place-items: center; width: 52px; aspect-ratio: 1; flex: none; color: var(--on-secondary-c); transition: color 200ms var(--out); }
.ic .bg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--secondary-c); transition: fill 200ms var(--out), transform var(--d-s, 500ms) var(--spring); }
.ic > :not(.bg) { position: relative; }
.ic-on { color: var(--on-primary); }
.ic-on .bg { fill: var(--primary); }
.shape { position: absolute; pointer-events: none; color: var(--shape-tint); }
.shape svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------- buttons (pill, spring press like the app's pressScale) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-weight: 600; font-size: 1.0625rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 440ms var(--spring-fast), background-color 160ms; }
.btn:active { transform: scale(.94); transition-duration: 90ms; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-cta { background: var(--primary); color: var(--on-primary); }
.btn-tonal { background: var(--secondary-c); color: var(--on-secondary-c); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 40%, transparent); } /* taste-skill-ignore: the app's outlined button */
.btn .gl { width: 20px; height: 20px; stroke-width: 2.2; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-cta:hover { background: color-mix(in srgb, var(--primary) 90%, var(--on-primary)); }
  .btn-tonal:hover { background: color-mix(in srgb, var(--secondary-c) 86%, var(--on-secondary-c)); }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  .btn:active { transform: scale(.94); }
}

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color 250ms, box-shadow 250ms; }
.hdr.is-stuck { background: color-mix(in srgb, var(--sc) 94%, transparent); box-shadow: 0 8px 24px -16px rgb(0 0 0 / .45); } /* taste-skill-ignore: sticky bar */
@supports (backdrop-filter: blur(1px)) { .hdr.is-stuck { background: color-mix(in srgb, var(--sc) 66%, transparent); backdrop-filter: blur(18px) saturate(1.5); } } /* taste-skill-ignore: glass bar, asked for */
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; transition: rotate 700ms var(--spring), scale 500ms var(--spring-fast); }
@media (hover: hover) and (pointer: fine) { .brand:hover img { rotate: 28deg; scale: 1.14; } }
.brand:active img { scale: .9; transition-duration: 80ms; }
.nav { margin-left: auto; }
.nav ul { display: none; }
.hdr .btn { margin-left: auto; }
.nav + .btn { margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--on-sv); font-weight: 500; font-size: .9375rem; text-decoration: none; transition: background-color 160ms, color 160ms; }
.nav a:hover { background: var(--sc-high); color: var(--on-bg); }
@media (min-width: 860px) { .nav ul { display: flex; gap: 2px; } }

/* ---------- hero: the app's "next alarm" card, grown up ---------- */
.hero-wrap { padding: 0 8px; }
.hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; border-radius: var(--r-l); background: var(--primary-c); color: var(--on-primary-c); }
/* a soft mesh of the palette's own colours behind everything */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(56% 62% at 84% 42%, color-mix(in srgb, var(--primary) 36%, transparent), transparent 72%), radial-gradient(44% 52% at 6% 98%, color-mix(in srgb, var(--tertiary) 24%, transparent), transparent 70%); } /* taste-skill-ignore: mesh behind the phones */
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 36px 20px 32px; }
/* on a phone the order is: headline, the real screens, then the words and the buttons */
.hero-copy { display: contents; }
.hero-copy > * { order: 4; }
.hero-copy > h1 { order: 0; }
.hero-copy > h1, .hero-copy > .lead { position: relative; z-index: 5; } /* nothing floats over the words */
.stage { order: 1; }
.hero-copy > .lead { order: 2; }
.hero-copy > .cta-row { order: 3; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 8px; max-width: 31em; font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem); line-height: 1.5; opacity: .95; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-row .btn { flex: 1 1 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); } /* taste-skill-ignore: the app's outlined chip */
.hero-note { margin-top: 16px; font-size: .9375rem; opacity: .85; }
.hero-note a { color: inherit; }
.hero .shape.cookie { width: min(88vw, 640px); aspect-ratio: 1; right: -26%; top: -22%; }
.hero .shape.clover { width: min(46vw, 300px); aspect-ratio: 1; left: -12%; bottom: -10%; }
.seeds { display: flex; align-items: center; gap: 0; margin-top: 12px; font-size: .875rem; opacity: .92; }
.seeds > span { margin-right: 10px; }
.seeds button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.seeds button svg { position: absolute; inset: 8px; width: 28px; height: 28px; fill: var(--c); transition: scale 520ms var(--spring-fast), rotate 700ms var(--spring); }
.seeds button[aria-pressed="true"] svg { scale: 1.25; rotate: 40deg; }
.seeds button::before { content: ""; position: absolute; inset: 3px; border: 2px solid transparent; border-radius: 50%; transition: border-color 200ms; }
.seeds button[aria-pressed="true"]::before { border-color: currentColor; }
.seeds button:active svg { scale: .85; transition-duration: 80ms; }
.seeds .s-sun { --c: #F0BD8D; }
.seeds .s-night { --c: #5646C4; }

/* the stage: three real phones in real perspective, a rotating cookie behind them */
.stage { --w: min(100vw - 16px, 520px); position: relative; width: var(--w); height: calc(var(--w) * 1.2); margin: 44px auto 12px; perspective: 1500px; touch-action: pan-y; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; animation: sway 10s ease-in-out infinite; }
.stage.is-tilt .rig { animation: none; }
.orb { position: absolute; left: 50%; top: 52%; z-index: 0; width: 142%; aspect-ratio: 1; translate: -50% -50%; transform: translateZ(-240px); color: color-mix(in srgb, var(--primary) 30%, transparent); }
.orb svg { display: block; width: 100%; height: 100%; fill: currentColor; animation: spin 120s linear infinite; }
.rbadge { position: absolute; z-index: 4; right: 9%; top: -8%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; transform: translateZ(150px); }
.rbadge img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgb(0 0 0 / .35)); /* taste-skill-ignore: floats in front of the phones */ animation: buzz 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.rbadge .pulse { inset: -4%; border-color: var(--primary); }
.pulse { position: absolute; inset: 14%; border-radius: 50%; border: 2px solid var(--on-primary-c); opacity: 0; animation: ring 3.9s var(--out) infinite; }
.pulse:nth-of-type(2) { animation-delay: 1.3s; }
.pulse:nth-of-type(3) { animation-delay: 2.6s; }
.slot { position: absolute; margin: 0; }
.slot .phone { animation: bob 7s ease-in-out infinite; }
.s-c { left: 22%; top: 0; z-index: 3; transform: translateZ(80px); }
.s-c .phone { --pw: calc(var(--w) * .56); }
.s-l { left: -6%; top: 13%; transform: translateZ(-20px) rotateY(26deg) rotateZ(-3deg); }
.s-r { right: -6%; top: 13%; transform: translateZ(-20px) rotateY(-26deg) rotateZ(3deg); }
.s-l .phone, .s-r .phone { --pw: calc(var(--w) * .44); }
.s-l .phone { animation-delay: -2.2s; }
.s-r .phone { animation-delay: -4.4s; }
@media (min-width: 900px) {
  .hero { border-radius: var(--r-xl); }
  .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 16px; padding: 64px 56px 56px; }
  .hero-copy { display: block; }
  .hero-copy > * { order: 0; }
  .hero .lead { margin-top: 20px; }
  .cta-row { margin-top: 28px; }
  .cta-row .btn { flex: 0 0 auto; }
  .stage { --w: min(37vw, 490px); height: calc(var(--w) * .86); margin: 0 auto; }
  .s-c { left: 25%; }
  .s-c .phone { --pw: calc(var(--w) * .5); }
  .s-l { left: -1%; }
  .s-r { right: -1%; }
  .s-l .phone, .s-r .phone { --pw: calc(var(--w) * .4); }
  .rbadge { right: 1%; top: -9%; width: 25%; }
}
@media (min-width: 1100px) { .hero-in { padding-inline: 72px; } }
@media (min-width: 1264px) { .hero-in { padding-inline: var(--gut); } } /* text lines up with the header and every section */
@keyframes sway { 0%, 100% { rotate: 0 1 0 0deg; } 25% { rotate: 0 1 0 7deg; } 75% { rotate: 0 1 0 -7deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ring { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- device frame, built in CSS ---------- */
.phone { --pw: 280px; position: relative; display: block; width: var(--pw); max-width: 100%; margin: 0; padding: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .15); background: #0B0806; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 calc(var(--pw) * .16) calc(var(--pw) * .24) calc(var(--pw) * -.1) rgb(0 0 0 / .6), 0 2px 5px rgb(0 0 0 / .35); } /* taste-skill-ignore: device frame, a real interface fragment */
.phone::before { content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--pw) * .064); width: calc(var(--pw) * .042); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #030201; box-shadow: 0 0 0 calc(var(--pw) * .007) #1B1713; } /* taste-skill-ignore: device frame, a real interface fragment */
.phone::after { content: ""; position: absolute; z-index: 2; inset: calc(var(--pw) * .03); border-radius: calc(var(--pw) * .12); pointer-events: none; background: linear-gradient(112deg, rgb(255 255 255 / .17), rgb(255 255 255 / 0) 34%); } /* taste-skill-ignore: device frame, a real interface fragment */
.phone img, .phone .screen { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; border-radius: calc(var(--pw) * .12); background: var(--ap-bg); }
.phone-swap { position: relative; display: block; aspect-ratio: 1 / 2; border-radius: calc(var(--pw) * .12); background: var(--ap-bg); overflow: hidden; }
/* the next screen wipes in from the top; the one under it leaves only once it is covered */
.phone-swap img { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path 0s linear 640ms; }
.phone-swap img:first-child { clip-path: inset(0); }
.js .phone-swap img:first-child { clip-path: inset(0 0 100% 0); }
.js .phone-swap img.on, .phone-swap img.on { z-index: 1; clip-path: inset(0); transition: clip-path 640ms var(--out); }
.cap { margin-top: 14px; font-size: .9375rem; line-height: 1.4; color: var(--on-sv); text-align: center; text-wrap: balance; }
.cap b { display: block; margin-bottom: 2px; color: var(--on-bg); font-size: 1.0625rem; font-weight: 650; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- two-column rows ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.duo-media { display: grid; justify-items: center; }
.duo-media .phone { --pw: min(64vw, 300px); }
.duo-media > .phone { animation: bob 8s ease-in-out infinite; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(32px, 5vw, 80px); }
  .duo.flip { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
  .duo.flip .duo-media { order: -1; }
  .duo-media .phone { --pw: min(26vw, 320px); }
  .duo-sticky { position: sticky; top: 96px; }
}
.pair { position: relative; width: min(100%, 420px); height: min(120vw, 560px); perspective: 1400px; margin-inline: auto; }
.pair .slot { transition: transform 600ms var(--spring); }
.pair .p1 { left: 0; top: 0; z-index: 2; transform: rotateY(14deg) rotateZ(-2deg); }
.pair .p2 { right: 0; top: 11%; transform: rotateY(-14deg) rotateZ(2.5deg); }
.pair .phone { --pw: min(48vw, 238px); animation: bob 7.5s ease-in-out infinite; }
.pair .p2 .phone { animation-delay: -3.5s; }
@media (min-width: 900px) { .pair { height: min(40vw, 580px); } .pair .phone { --pw: min(19vw, 250px); } }

/* ---------- segmented groups: big outer corners, tight inner ones, 2 px apart (SettingsGroup) ---------- */
.seg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 28px; }
.seg > * { background: var(--sc-high); border-radius: var(--r-inner); }
.seg > :first-child { border-top-left-radius: var(--r-group); border-top-right-radius: var(--r-group); }
.seg > :last-child { border-bottom-left-radius: var(--r-group); border-bottom-right-radius: var(--r-group); }
.row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.row h3 { font-size: 1.0625rem; }
.row p { margin-top: 2px; font-size: .9375rem; line-height: 1.45; color: var(--on-sv); }
.step { display: flex; width: 100%; align-items: center; gap: 16px; padding: 16px 20px; border: 0; text-align: left; cursor: pointer; background: var(--sc-high); border-radius: inherit; transition: background-color 220ms var(--out), color 220ms, scale 420ms var(--spring-fast); }
.step:active { scale: .98; transition-duration: 90ms; }
.step .tx b { display: block; font-size: 1.1875rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.step .tx span { display: block; margin-top: 3px; font-size: .9375rem; line-height: 1.45; color: var(--on-sv); transition: color 220ms; }
.step[aria-pressed="true"] { background: var(--primary-c); color: var(--on-primary-c); }
.step[aria-pressed="true"] .tx span { color: inherit; }
.step[aria-pressed="true"] .ic { color: var(--on-primary); }
.step[aria-pressed="true"] .ic .bg { fill: var(--primary); }
.step .ic .bg { transform: scale(.94); }
.step[aria-pressed="true"] .ic .bg { transform: scale(1.06) rotate(14deg); }
.seg > li { list-style: none; }
.seg > li > .step { border-radius: inherit; }
@media (hover: hover) and (pointer: fine) { .step:hover { background: var(--sc-highest); } .step[aria-pressed="true"]:hover { background: var(--primary-c); } }

/* ---------- the ringing icon ---------- */
.ringer { position: relative; display: grid; place-items: center; width: 128px; aspect-ratio: 1; }
.ringer img { position: relative; width: 60%; height: auto; animation: buzz 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.ringer .pulse { inset: 8%; border-color: var(--primary); }
.is-done .ringer .pulse, .is-done .ringer img { animation: none; }
@keyframes buzz { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: -9deg; } 78% { rotate: 8deg; } 82% { rotate: -6deg; } 86% { rotate: 4deg; } 90% { rotate: 0deg; } }

/* ---------- mission demo: a faithful little copy of the app's math mission ---------- */
.demo .phone { --pw: min(76vw, 330px); }
.demo .duo { align-items: center; }
.demo .screen { display: flex; flex-direction: column; gap: calc(var(--pw) * .03); padding: calc(var(--pw) * .105) calc(var(--pw) * .05) calc(var(--pw) * .05); color: var(--ap-text); font-size: calc(var(--pw) * .048); }
.demo .top { display: flex; justify-content: space-between; align-items: center; padding-inline: calc(var(--pw) * .02); }
.demo .tag { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ap-primary); }
.demo .time { font-size: 3.6em; color: var(--ap-text); text-align: center; margin-top: .1em; }
.demo .state { min-height: 3.1em; text-align: center; font-size: .96em; color: var(--ap-muted); }
.demo .sum { display: grid; place-items: center; min-height: 3.5em; border-radius: calc(var(--pw) * .07); background: var(--ap-card); font-size: 1.6em; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.demo .ans { display: grid; place-items: center; min-height: 2.6em; border-radius: calc(var(--pw) * .07); background: color-mix(in srgb, var(--ap-card) 70%, var(--ap-bg)); font-size: 1.4em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ap-text); }
.demo .ans.ph { color: color-mix(in srgb, var(--ap-muted) 78%, var(--ap-bg)); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--pw) * .022); margin-top: auto; }
.keys button { min-height: 44px; height: calc(var(--pw) * .16); border: 0; border-radius: calc(var(--pw) * .06); background: var(--ap-key); color: var(--ap-text); font-size: 1.5em; font-weight: 500; cursor: pointer; transition: transform 420ms var(--spring-fast), background-color 140ms; }
.keys button:active { transform: scale(.92); transition-duration: 80ms; }
.keys .k-del { background: var(--ap-pc); color: #FFDCBF; }
.keys .k-ok { background: var(--ap-primary); color: var(--ap-on-primary); }
.keys button:disabled { opacity: .35; cursor: default; transform: none; }
.keys .gl { width: 1.1em; height: 1.1em; }
.demo [data-state="no"] .ans { animation: nope 360ms var(--out); outline: 2px solid #FFB4AB; }
.demo [data-state="done"] .sum { background: var(--ap-primary); color: var(--ap-on-primary); }
.demo [data-state="done"] .state { color: var(--ap-primary); font-weight: 600; }
.demo .again { display: none; }
.demo [data-state="done"] .again { display: block; }
.demo [data-state="done"] .keys { display: none; }
.demo .again button { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--ap-primary); color: var(--ap-on-primary); font-weight: 600; font-size: 1.1em; cursor: pointer; }
.demo .tag .gl { width: 1.2em; height: 1.2em; }
@keyframes nope { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.demo-note { margin-top: 20px; font-size: .9375rem; color: var(--on-sv); }
.level { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { min-height: 44px; padding: 0 22px; border: 1.5px solid var(--outline-v); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; transition: background-color 200ms, border-color 200ms, scale 420ms var(--spring-fast); }
.chip[aria-pressed="true"] { background: var(--secondary-c); border-color: transparent; color: var(--on-secondary-c); }
.chip:active { scale: .94; transition-duration: 80ms; }
.demo .bell { position: relative; display: grid; place-items: center; width: 2.2em; aspect-ratio: 1; color: var(--ap-primary); }
.demo .bell .gl { position: relative; width: 1.3em; height: 1.3em; animation: buzz 3.2s ease-in-out infinite; transform-origin: 50% 20%; }
.demo .bell .pulse { inset: 0; border-color: var(--ap-primary); animation-duration: 2.4s; }
.demo.is-done .bell .gl, .demo.is-done .bell .pulse { animation: none; }

/* ---------- coverflow ---------- */
.cf { position: relative; }
.cf-track { --cw: clamp(206px, 56vw, 268px); position: relative; overflow-x: auto; overscroll-behavior-x: contain; padding: 36px 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 900px; -webkit-overflow-scrolling: touch; }
.cf-list { display: flex; width: max-content; gap: calc(var(--cw) * -.16); padding-inline: calc(50vw - var(--cw) / 2); }
.cf-track::-webkit-scrollbar { display: none; }
.cf-track:focus-visible { outline-offset: -4px; border-radius: var(--r-l); }
.cf-slide { position: relative; flex: 0 0 var(--cw); scroll-snap-align: center; scroll-snap-stop: always; cursor: pointer; }
.cf-slide .phone { --pw: var(--cw); }
.cf-slide .cap { width: var(--cw); }
.cf-bar { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 4px; padding-inline: var(--gut); }
.cf-btns { display: none; gap: 12px; }
.js .cf-btns { display: flex; }
.cf-btns button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--secondary-c); color: var(--on-secondary-c); cursor: pointer; transition: transform 440ms var(--spring-fast), background-color 160ms; }
.cf-btns button:active { transform: scale(.9); transition-duration: 80ms; }
.cf-btns button:disabled { opacity: .4; cursor: default; }
.cf-btns .prev .gl { rotate: 180deg; }
.cf-dots { display: flex; gap: 8px; }
.cf-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--outline-v); transition: width 400ms var(--spring-fast), background-color 200ms; }
.cf-dots i.on { width: 26px; background: var(--primary); }

/* ---------- mission cards ---------- */
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
.mc { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 16px 16px; border-radius: var(--r-m); background: var(--sc-high); overflow: hidden; isolation: isolate; }
.mc .ic { width: 48px; }
.mc h3 { font-size: 1.0625rem; }
.mc p { margin-top: 2px; font-size: .9375rem; line-height: 1.42; color: var(--on-sv); }
.need { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--secondary-c); color: var(--on-secondary-c); font-size: .875rem; font-weight: 600; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mgrid { gap: 12px; } }
.tilt::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .22), transparent 55%); transition: opacity 250ms; } /* taste-skill-ignore: hover glare on a tilting card */
@media (hover: hover) and (pointer: fine) {
  .tilt { transition: transform 500ms var(--spring); will-change: transform; }
  .tilt.is-on { transition-duration: 120ms; transition-timing-function: var(--out); }
  .tilt.is-on::after { opacity: 1; }
}

/* ---------- reliability ---------- */
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .ic { width: 40px; }
.checks .ic .gl { width: 20px; height: 20px; }
.checks p { padding-top: 5px; }
.callout { display: flex; gap: 16px; margin-top: 32px; padding: 22px; border-radius: var(--r-l); background: var(--tertiary-c); color: var(--on-tertiary-c); }
.callout .ic { color: var(--on-tertiary); }
.callout .ic .bg { fill: var(--tertiary); }
.callout h3 { font-size: 1.1875rem; }
.callout p { margin-top: 6px; line-height: 1.5; max-width: 62ch; }
.callout a { color: inherit; }

/* ---------- privacy ---------- */
.note { display: flex; gap: 16px; margin-top: 12px; padding: 22px; border-radius: var(--r-l); background: var(--secondary-c); color: var(--on-secondary-c); }
.note p { margin-top: 6px; line-height: 1.5; max-width: 62ch; }
.note .ic { color: var(--secondary-c); }
.note .ic .bg { fill: var(--secondary); }
.note a { color: inherit; }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- install ---------- */
.install { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: clamp(24px, 5vw, 64px); border-radius: var(--r-l); background: var(--primary-c); color: var(--on-primary-c); }
.install .shape { right: -12%; top: -30%; width: min(70vw, 460px); aspect-ratio: 1; }
.install .seg > * { background: rgb(255 255 255 / .08); background: color-mix(in srgb, var(--on-primary-c) 9%, transparent); }
.install .row { align-items: flex-start; }
.install .row p { color: inherit; }
.install .ic { color: var(--on-primary); }
.install .ic .bg { fill: var(--primary); }
.num { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); font-size: 1.1875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.install pre { margin: 10px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: var(--r-s); background: rgb(0 0 0 / .28); color: #FFF; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.install code { background: rgb(0 0 0 / .2); color: inherit; }
.install pre code { background: none; padding: 0; }
.dl-card { display: grid; gap: 14px; align-content: start; }
.dl-card .btn { width: 100%; }
.dl-card p { font-size: .9375rem; line-height: 1.5; max-width: 62ch; }
@media (min-width: 900px) { .install { border-radius: var(--r-xl); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq h2 { text-align: center; }
details { overflow: hidden; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; rotate: 45deg; translate: 0 -3px; transition: rotate 400ms var(--spring-fast), translate 400ms var(--spring-fast); }
details[open] summary::after { rotate: 225deg; translate: 0 3px; }
details[open] { background: var(--sc-highest); }
details p { padding: 0 20px 20px; color: var(--on-sv); line-height: 1.6; max-width: 62ch; }

/* ---------- final call to action ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: grid; justify-items: center; gap: 24px; padding: clamp(40px, 8vw, 96px) 20px; border-radius: var(--r-l); background: var(--primary); color: var(--on-primary); text-align: center; }
.final .shape { color: rgb(0 0 0 / .07); }
.final .shape.a { width: min(80vw, 520px); aspect-ratio: 1; left: -14%; top: -30%; }
.final .shape.b { width: min(60vw, 380px); aspect-ratio: 1; right: -8%; bottom: -34%; }
.final h2 { max-width: 14em; }
.final .btn-cta { background: var(--on-primary); color: var(--primary); }
.final .btn-ghost { color: var(--on-primary); }
.final .ringer .pulse { border-color: var(--on-primary); }
@media (min-width: 900px) { .final { border-radius: var(--r-xl); } }

/* ---------- footer ---------- */
.ftr { margin-top: clamp(56px, 8vw, 104px); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--sc-low); color: var(--on-sv); font-size: .9375rem; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.row > div, .step .tx, .mc > div, .callout > div, .note > div, .checks p { min-width: 0; }
.ftr-id p { margin-top: 8px; max-width: 26em; }
.ftr .brand { color: var(--on-bg); }
.ftr-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ftr-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-bg); }
.ftr-fine { margin-top: 28px; font-size: .875rem; }
@media (min-width: 720px) { .ftr-grid { grid-template-columns: 1.2fr 1.5fr; } .ftr-links { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 32px; } }

/* ---------- download dock: phones only, once the hero has scrolled away ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--sc) 90%, transparent); box-shadow: 0 -12px 28px -18px rgb(0 0 0 / .5); transform: translateY(115%); transition: transform 560ms var(--spring-slow); } /* taste-skill-ignore: sticky bar */
@supports (backdrop-filter: blur(1px)) { .dock { background: color-mix(in srgb, var(--sc) 70%, transparent); backdrop-filter: blur(18px) saturate(1.5); } } /* taste-skill-ignore: glass bar, asked for */
.dock.on { transform: none; }
.dock .btn { width: 100%; max-width: 440px; }
@media (min-width: 720px) { .dock { display: none; } }

/* ---------- reveal on scroll (only once the script has marked the page) ---------- */
.js .rv { transition: opacity 600ms var(--out), translate 1000ms var(--spring-slow); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv:not(.in) { opacity: 0; translate: 0 44px; }

/* ---------- long-form pages (privacy policy) and 404 ---------- */
.page-prose .hdr { background: var(--bg); }
.prose { max-width: 800px; padding-block: 40px 8px; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.4rem); margin-bottom: 18px; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -.02em; margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 1.3em; list-style: revert; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--outline-v); margin: 32px 0; }
.prose blockquote { margin: 16px 0; padding: 6px 18px; border-radius: var(--r-s); background: var(--sc-high); }
.table-scroll { overflow-x: auto; margin: 18px 0; border-radius: var(--r-m); background: var(--sc-high); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--outline-v); }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--sc-highest); }
.notfound { display: grid; justify-items: start; gap: 18px; padding-block: clamp(56px, 12vw, 140px); }
.notfound .clock { font-size: clamp(5rem, 24vw, 12rem); color: var(--primary); }

/* ---------- small phones: tighter rows so the words keep their room ---------- */
@media (max-width: 479px) {
  .install { padding: 22px 10px; }
  .install h2 { padding-inline: 8px; }
  .row, .step { gap: 12px; padding: 14px; }
  .ic { width: 44px; }
  .mc { padding: 14px; gap: 12px; }
  .callout, .note { flex-direction: column; gap: 12px; padding: 20px; }
  .final { padding-inline: 16px; }
  summary { padding-inline: 16px; }
  details p { padding-inline: 16px; }
}

/* ---------- motion off: reduced motion, saved data ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .rv:not(.in) { opacity: 1; translate: none; }
  .rv, .btn, .step, .keys button, .tilt, .cf-btns button, .ic .bg { transition-duration: .01ms !important; }
  .stage .rig { transform: none !important; }
  .step[aria-pressed="true"] .ic .bg { transform: none; }
}
@media (prefers-reduced-data: reduce) {
  .shape, .pulse { display: none; }
  }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
