/* Marketing page. App demonstrations use the iOS tokens from DESIGN.md and docs/demo-data.md values. */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --band: #0f1110;
  --line: rgba(238, 240, 230, 0.09);
  --line-strong: rgba(238, 240, 230, 0.18);
  --fg: #f4f6ee;
  --fg-2: rgba(235, 235, 245, 0.7);
  --fg-3: rgba(235, 235, 245, 0.55);
  --accent: #5dbb63;
  --on-accent: #06210a;
  --accent-soft: rgba(93, 187, 99, 0.16);
  --card: #1c1c1e;
  --raised: #2c2c2e;
  --separator: rgba(84, 84, 88, 0.6);
  --label-2: rgba(235, 235, 245, 0.6);
  --track: rgba(238, 240, 230, 0.12);
  --track-fill: rgba(238, 240, 230, 0.5);
  --amber: #f4c153;
  --salmon: #f17784;
  --glow-deep: rgba(46, 125, 58, 0.42);
  --glow-light: rgba(93, 187, 99, 0.2);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --display: Fredoka, var(--body);
  /* One demonstration unit. Scaled screens redefine it, so the same components draw at any size. */
  --u: 1px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 8rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 50; top: 0.75rem; left: 0.75rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .wrap { padding-inline: 2rem; } }

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.name, .wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.name { font-size: 1.06em; }
.h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.02; }
.h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.05; }
.lead { margin-top: 1.25rem; max-width: 32rem; color: var(--fg-2); font-size: 1.0625rem; }

/* Header: solid by default, transparent over the hero once the script knows the scroll position. */
.top { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(8, 9, 10, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color 200ms, border-color 200ms; }
.js .top.at-top { border-bottom-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top-row { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; flex-shrink: 0; min-height: 44px; align-items: center; gap: 0.625rem; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.logo-wordmark { display: block; flex-shrink: 0; color: var(--fg); }
.pill { display: inline-flex; flex-shrink: 0; white-space: nowrap; min-height: 44px; align-items: center; gap: 0.25rem; padding: 0 0.75rem 0 1rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: border-color 150ms, background-color 150ms; }
.pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.pill svg { width: 1.125rem; height: 1.125rem; }
@media (max-width: 359px) {
  .top-row { gap: 0.5rem; }
  .pill { padding: 0 0.375rem 0 0.5rem; font-size: 0.75rem; }
}

/* Hero */
.hero { position: relative; margin-top: -4rem; overflow: hidden; }
.hero::before { position: absolute; top: -20%; right: -10%; width: min(70rem, 120vw); height: 52rem; pointer-events: none; content: ""; background: radial-gradient(40% 45% at 70% 40%, var(--glow-deep), transparent 70%), radial-gradient(35% 40% at 85% 65%, var(--glow-light), transparent 70%); }
.hero-grid { position: relative; display: grid; align-items: center; gap: 2.5rem; padding-top: 6rem; padding-bottom: 5rem; }
@media (min-width: 640px) { .hero-grid { gap: 3.5rem; padding-top: 8rem; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-top: 9rem; padding-bottom: 7rem; } }
.hero-title { font-size: clamp(3rem, 8vw, 5.75rem); line-height: 0.95; }
.hero-lead { margin-top: 1.25rem; max-width: 34rem; color: var(--fg-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
@media (min-width: 640px) { .hero-lead { margin-top: 1.75rem; } }
.hero-note { margin-top: 1rem; color: var(--fg-3); font-size: 0.9375rem; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { width: auto; height: 52px; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store { display: flex; min-height: 52px; flex-direction: column; justify-content: center; padding: 0.375rem 1.125rem; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(28, 28, 30, 0.6); line-height: 1.25; }
.store-name { font-size: 1rem; font-weight: 600; }
.store-state { color: var(--fg-3); font-size: 0.8125rem; }

/* Demonstration phone. Its screen is drawn at the captured 393 units and scales with the frame. */
.hero-demo { display: flex; flex-direction: column; align-items: center; }
.phone { width: min(20.5rem, 78vw); aspect-ratio: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 2.75rem; background: #111210; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); }
.screen { position: relative; aspect-ratio: 393 / 852; overflow: hidden; border-radius: 2.25rem; background: var(--bg); container-type: inline-size; }
.ios { --u: calc(100cqw / 393); position: absolute; inset: 0; padding: calc(59 * var(--u)) calc(16 * var(--u)) 0; font-size: calc(17 * var(--u)); }
.status { position: absolute; top: 0; right: 0; left: 0; display: flex; height: calc(59 * var(--u)); align-items: center; justify-content: space-between; padding: 0 calc(30 * var(--u)) 0 calc(49 * var(--u)); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: calc(17 * var(--u)); font-weight: 600; line-height: calc(20 * var(--u)); font-variant-numeric: tabular-nums; color: #fff; }
.status-icons { display: block; width: calc(89 * var(--u)); height: calc(16 * var(--u)); }
.toolbar { display: flex; min-height: calc(44 * var(--u)); margin-bottom: calc(20 * var(--u)); align-items: center; justify-content: space-between; }
.app-brand { display: flex; height: calc(44 * var(--u)); align-items: center; gap: calc(12 * var(--u)); color: #fff; }
.app-brand img { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
.app-brand span { font-family: Fredoka, var(--body); font-weight: 450; font-size: calc(100 / 3 * var(--u)); line-height: calc(40 * var(--u)); letter-spacing: calc(-2 / 3 * var(--u)); }
.header-actions { display: flex; height: calc(44 * var(--u)); align-items: center; gap: calc(2 * var(--u)); padding: 0 calc(4 * var(--u)); color: #fff; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px) saturate(1.2); }
.header-actions img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); margin: 0 calc(7 * var(--u)); }
.header-actions svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); margin: 0 calc(6 * var(--u)); }
.scenes { display: grid; }
.scene { grid-area: 1 / 1; transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), filter 450ms cubic-bezier(0.16, 1, 0.3, 1); }
.scene[data-scene="after"] { visibility: hidden; opacity: 0; }
.hero-demo.is-after .scene[data-scene="base"] { visibility: hidden; opacity: 0; filter: blur(6px); }
.hero-demo.is-after .scene[data-scene="after"] { visibility: visible; opacity: 1; }
.hero-demo.is-after .arow.is-new { animation: arrive-row 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.tap-ring { position: absolute; width: calc(56 * var(--u)); height: calc(56 * var(--u)); border: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.85); border-radius: 50%; opacity: 0; pointer-events: none; }
.hero-demo.is-tap .tap-ring { animation: tap 650ms ease-out both; }
.hero-demo.is-tap [data-hero-tap] { transform: scale(0.92); }
.hero-demo figcaption { margin-top: 1.5rem; }
.hero-steps { display: flex; justify-content: center; gap: 1rem; color: var(--fg-3); font-size: 0.8125rem; white-space: nowrap; }
@media (min-width: 640px) { .hero-steps { gap: 1.5rem; } }
.hero-steps span { display: flex; align-items: center; gap: 0.5rem; transition: color 300ms; }
.hero-steps span::before { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); content: ""; transition: background-color 300ms; }
.hero-steps span.is-current { color: var(--fg); }
.hero-steps span.is-current::before { background: var(--accent); }

/* App components, after the native iOS rows. */
.sec-head { margin: calc(24 * var(--u)) 0 calc(7 * var(--u)); padding: 0 calc(14 * var(--u)); color: var(--label-2); font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.4; }
.scene > .sec-head:first-child, .step-demo .reveal:first-child > .sec-head:first-child, .split .reveal > .sec-head:first-child { margin-top: 0; }
.sec-head-action { display: flex; align-items: flex-end; justify-content: space-between; }
.plain-action { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); color: var(--accent); font-size: calc(15 * var(--u)); font-weight: 600; }
.plain-action svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.sec-foot { margin-top: calc(7 * var(--u)); padding: 0 calc(14 * var(--u)); color: var(--label-2); font-size: calc(13 * var(--u)); line-height: 1.4; }
.card { overflow: hidden; border-radius: calc(26 * var(--u)); background: var(--card); }
.arow { position: relative; display: flex; min-height: calc(80 * var(--u)); align-items: center; gap: calc(14 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); line-height: 1.3; }
.arow.is-selected { background: var(--accent-soft); }
.arow + .arow::before, .lrow + .lrow::before, .frow + .frow::before { position: absolute; top: 0; right: 0; left: calc(78 * var(--u)); height: 1px; background: var(--separator); content: ""; transform-origin: top; }
/* Separators draw one physical pixel, as on the iPhone. */
@media (min-resolution: 2dppx) { .arow + .arow::before, .lrow + .lrow::before, .frow + .frow::before { transform: scaleY(0.5); } }
@media (min-resolution: 3dppx) { .arow + .arow::before, .lrow + .lrow::before, .frow + .frow::before { transform: scaleY(calc(1 / 3)); } }
.tile { display: flex; width: calc(48 * var(--u)); height: calc(48 * var(--u)); flex-shrink: 0; align-items: center; justify-content: center; border-radius: calc(14.4 * var(--u)); }
.tile svg { width: 50%; height: 50%; }
.c0 { color: #f52d8a; background: rgba(245, 45, 138, 0.18); }
.c1 { color: #8b5cf6; background: rgba(139, 92, 246, 0.18); }
.c2 { color: #228af0; background: rgba(34, 138, 240, 0.18); }
.c3 { color: #5dbb63; background: rgba(93, 187, 99, 0.18); }
.c4 { color: #fb923c; background: rgba(251, 146, 60, 0.18); }
.arow-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: calc(5 * var(--u)); }
.arow-name { font-size: calc(17 * var(--u)); font-weight: 600; line-height: calc(22 * var(--u)); }
.arow-sub { color: var(--label-2); font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
/* Subtitle fit: full words when they fit on one line, the native short forms otherwise. */
.arow-sub .short { display: none; }
.step-demo .card, .split .card { container-type: inline-size; }
@container (max-width: 370px) {
  .arow-sub .full { display: none; }
  .arow-sub .short { display: inline; }
}
.late-text, .far-text { display: inline-flex; align-items: center; gap: calc(3 * var(--u)); font-weight: 600; white-space: nowrap; }
.late-text { color: var(--amber); }
.far-text { color: var(--salmon); }
.late-text svg, .far-text svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.arow-by { display: flex; align-items: center; gap: calc(4 * var(--u)); color: var(--label-2); font-size: calc(13 * var(--u)); line-height: 1; }
.arow-by img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.bar { display: block; height: calc(4 * var(--u)); overflow: hidden; border-radius: 999px; background: var(--track); }
.bar > span, .wbar > span { display: block; height: 100%; border-radius: inherit; background: var(--track-fill); }
.bar.late > span { background: var(--amber); }
.bar.far > span { background: var(--salmon); }
.p0 { width: 0; }
.p3 { width: 3.33%; }
.p67 { width: 66.67%; }
.p83 { width: 83.33%; }
.p86 { width: 85.71%; }
.p100 { width: 100%; }
.check { display: flex; width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: transform 150ms; }
.check.due { background: var(--accent); color: var(--on-accent); }
.check svg { width: 55%; height: 55%; }
[data-demo-island] .check { border: calc(2 * var(--u)) solid rgba(93, 187, 99, 0.5); background: transparent; color: var(--accent); }
[data-demo-island] .check.due { border-width: calc(2.6 * var(--u)); border-color: var(--accent); }
[data-demo-island] .check.doneToday { border: 0; background: var(--accent-soft); }
[data-demo-island] .check svg { display: none; }
[data-demo-island] .check.doneToday svg { display: block; }
.lrow { position: relative; display: flex; min-height: calc(52 * var(--u)); align-items: center; gap: calc(14 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)); line-height: 1.3; }
.lrow + .lrow::before { left: calc(16 * var(--u)); }
.list .lrow > span:first-child:not(.ricon):not(.you-sumling) { flex: 1; }
.history .lrow + .lrow::before, .list .lrow:has(.ricon, .you-sumling) + .lrow::before { left: calc(64 * var(--u)); }
.lrow .val { color: var(--label-2); }
.seg { display: flex; flex: none; gap: calc(3 * var(--u)); padding: calc(3 * var(--u)); border-radius: 999px; background: rgba(120, 120, 128, 0.32); font-size: calc(15 * var(--u)); font-weight: 600; line-height: calc(20 * var(--u)); }
.seg span { display: flex; min-width: calc(64 * var(--u)); min-height: calc(32 * var(--u)); align-items: center; justify-content: center; padding: 0 calc(14 * var(--u)); border-radius: 999px; color: var(--label-2); }
.seg .is-on { background: var(--accent); color: var(--on-accent); }
.lrow img { width: calc(34 * var(--u)); height: calc(34 * var(--u)); flex-shrink: 0; }
.lrow-text { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.lrow-text small { color: var(--label-2); font-size: calc(13 * var(--u)); }
.ricon { display: flex; width: calc(30 * var(--u)); height: calc(30 * var(--u)); flex-shrink: 0; align-items: center; justify-content: center; border-radius: calc(8 * var(--u)); background: var(--raised); color: var(--fg); }
.ricon svg { width: 62%; height: 62%; }
.chev { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex-shrink: 0; color: rgba(235, 235, 245, 0.3); }
.you-sumling { display: flex; flex-shrink: 0; }
.you-sumling img { width: 40px; height: 40px; }

/* Story */
.story { position: relative; }
.story-intro { max-width: 42rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.people { display: flex; gap: 1.25rem; margin-top: 1.75rem; }
.people li { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; color: var(--fg-2); font-size: 0.8125rem; font-weight: 600; }
.people img { width: 64px; height: 64px; }
.step { position: relative; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.day-bar { position: sticky; z-index: 20; top: 4rem; display: flex; height: 3.5rem; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: -1.25rem; padding-inline: 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 640px) { .day-bar { margin-inline: -2rem; padding-inline: 2rem; } }
.day { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.day-state { display: flex; flex-shrink: 0; align-items: center; gap: 0.375rem; color: var(--fg-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-state img { width: 32px; height: 32px; }
.step-grid { display: grid; gap: 2.5rem; padding-block: 3rem 4rem; }
@media (min-width: 1024px) {
  .step-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 4rem; padding-block: 5rem; }
  .step-copy { position: sticky; top: 10rem; align-self: start; }
}
.step-copy p { max-width: 30rem; margin-top: 1rem; color: var(--fg-2); }
/* Below 375 px the app demonstrations scale down like the same screen on a smaller phone. */
.step-demo, .split .reveal { --u: min(1px, calc(100vw / 375)); }
.step-demo { display: flex; width: 100%; max-width: 27rem; min-width: 0; flex-direction: column; gap: 1.5rem; }
.split > .reveal { width: 100%; max-width: 27rem; }

.mood-card { display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1rem 1.25rem; border-radius: 26px; background: var(--card); text-align: center; }
.mood-hero img { width: 128px; height: 128px; }
.mood-note { max-width: 18.75rem; margin-top: 0.75rem; color: var(--label-2); font-size: 0.8125rem; line-height: 1.4; }
.moods { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; margin-top: 1.25rem; }
.moods li { display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0.125rem; border-radius: 16px; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.moods img { width: 56px; height: 56px; margin-bottom: 0.25rem; }
.moods small { color: var(--label-2); font-size: 0.75rem; font-weight: 400; }
.moods .is-current { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }

/* Home screen with the native widgets, drawn at 370 units. */
.home { container-type: inline-size; padding: 0; border-radius: 28px; background: radial-gradient(120% 80% at 20% 0%, #1f3a22 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #16262c 0%, transparent 60%), #0b0d0b; }
.home-grid { --u: calc(100cqw / 370); display: grid; grid-template-columns: repeat(2, calc(158 * var(--u))); gap: calc(22 * var(--u)); justify-content: center; padding: calc(22 * var(--u)) 0; }
.widget { border-radius: calc(22 * var(--u)); background: #141613; color: #f4f6ee; font-size: calc(14 * var(--u)); line-height: 1.25; }
.widget-large { display: grid; grid-column: 1 / -1; height: calc(354 * var(--u)); grid-template-rows: repeat(3, 1fr); padding: calc(16 * var(--u)); }
.wrow { position: relative; display: flex; align-items: center; gap: calc(10 * var(--u)); }
.wrow + .wrow { border-top: 1px solid rgb(38, 41, 34); }
.wrow .tile { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: calc(11 * var(--u)); }
.wsumling { width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex-shrink: 0; }
.wrow-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.wrow-name { overflow: hidden; font-weight: 500; white-space: nowrap; }
.wbar { display: block; height: calc(3 * var(--u)); margin: calc(5 * var(--u)) 0 calc(4 * var(--u)); overflow: hidden; border-radius: 999px; background: rgb(51, 53, 47); }
.wbar > span { background: rgb(142, 146, 132); }
.wbar.late > span { background: var(--amber); }
.wsub { color: rgb(196, 200, 184); font-size: calc(11 * var(--u)); white-space: nowrap; }
.wsub b { font-weight: 500; }
.wcheck { display: flex; width: calc(38 * var(--u)); height: calc(38 * var(--u)); flex-shrink: 0; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgb(31, 58, 34); color: var(--accent); font: inherit; transition: transform 150ms, background-color 200ms, color 200ms; }
.wcheck.due { background: var(--accent); color: var(--on-accent); }
.wcheck svg { width: 50%; height: 50%; }
.wcheck.big { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
button.wcheck { cursor: pointer; }
button.wcheck:active { transform: scale(0.92); }
button.wcheck:focus-visible { outline-offset: 2px; }
.widget-small { display: flex; height: calc(158 * var(--u)); flex-direction: column; justify-content: flex-end; padding: calc(16 * var(--u)); font-size: calc(13 * var(--u)); }
.wsmall-top { display: flex; min-height: 0; flex: 1; align-items: flex-start; justify-content: space-between; margin-bottom: calc(4 * var(--u)); }
.wsmall-sumling { width: calc(76 * var(--u)); height: calc(76 * var(--u)); margin-inline: auto; align-self: center; }
.widget-small .wbar { margin-top: calc(5 * var(--u)); }
.app-slot { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; justify-items: center; }
.app-slot img { width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-radius: calc(14 * var(--u)); }
.app-slot span { grid-column: 1; margin-top: calc(5 * var(--u)); color: rgba(255, 255, 255, 0.9); font-size: calc(12 * var(--u)); }
.widget-hint { color: var(--fg-3); font-size: 0.9375rem; }
.demo-status { min-height: 1.5em; color: var(--fg-3); font-size: 0.875rem; text-align: center; }
.demo-status button { padding: 0.25rem 0.5rem; border: 0; border-radius: 6px; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.hop { animation: hop 700ms cubic-bezier(0.16, 1, 0.3, 1); }

/* Sections after the story */
.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }
.deferred { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.band { border-block: 1px solid var(--line); background: var(--band); }
.split { display: grid; gap: 2.5rem; padding-block: 5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: center; gap: 4rem; padding-block: 7rem; } }
.also { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.frow { position: relative; display: flex; gap: 1rem; padding: 1rem 1.25rem; }
.frow + .frow::before { left: 3.75rem; }
.frow b { display: block; margin-bottom: 0.125rem; color: var(--fg); font-size: 1rem; }
.frow > span:last-child { color: var(--label-2); font-size: 0.9375rem; line-height: 1.5; }
.frow .ricon { width: 36px; height: 36px; margin-top: 0.125rem; border-radius: 10px; }
.trust { align-items: start; }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-copy { display: flex; flex-direction: column; gap: 1.25rem; color: var(--fg-2); font-size: 1.0625rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { display: flex; min-height: 36px; align-items: center; padding: 0 0.875rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(28, 28, 30, 0.7); color: var(--fg); font-size: 0.8125rem; }
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: 6px; outline-offset: 2px; }
.faq details p { max-width: 40rem; padding-bottom: 1.25rem; color: var(--fg-2); font-size: 1rem; }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; color: var(--fg-3); }
.faq-icon::before, .faq-icon::after { position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 1px; background: currentColor; content: ""; transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }

.closing { position: relative; border-top: 1px solid var(--line); }
.closing::before { position: absolute; inset: auto 0 0 0; height: min(40rem, 100%); pointer-events: none; content: ""; background: radial-gradient(45% 70% at 50% 100%, var(--glow-light), transparent 70%); }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: 6rem; text-align: center; }
@media (min-width: 1024px) { .closing-inner { padding-block: 8rem; } }
.sumling-row { display: grid; width: min(100%, 34rem); grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.25rem; }
.sumling-row li, .sumling-row button { display: flex; width: 100%; }
.sumling-row img { width: 100%; height: auto; }
.closing-title { max-width: 16ch; margin-top: 2rem; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; }
.closing .stores { justify-content: center; margin-top: 2.5rem; }

.universe { padding-block: 72px; border-top: 1px solid var(--line); }
.universe h2 { margin-bottom: 24px; font-size: 28px; }
.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.app-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--fg); text-decoration: none; }
.app-card img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; }
.app-card-copy { min-width: 0; overflow-wrap: anywhere; }
.app-card-name { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.app-card-tagline { color: var(--fg-2); font-size: 15px; }
.app-card-chevron { margin-left: auto; color: var(--fg-3); font-size: 20px; }

.foot { --fg: oklch(95.615% 0.0155 306.41); --fg-3: oklch(69.537% 0.0461 299.94); background: oklch(15.98% 0.0129 300.18); border-top: 1px solid color-mix(in oklch, var(--fg) 7%, transparent); font-family: "Noto Sans", var(--body); font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
.foot-row { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 2.5rem 1.5rem; color: var(--fg-3); font-size: 0.875rem; }
@media (min-width: 640px) { .foot-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot-brand { display: flex; align-items: center; gap: 0.75rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot nav a { color: var(--fg-3); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot nav a:focus-visible { outline: auto 1px oklch(64.06% 0.2565 8.07 / 0.5); outline-offset: 1px; }

/* Interactive Sumlings, added by the script. */
.poke { display: inline-flex; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }

@keyframes arrive { from { opacity: 0; filter: blur(6px); transform: translateY(28px) scale(0.98); } to { opacity: 1; filter: none; transform: none; } }
@keyframes arrive-row { from { background: var(--accent-soft); } to { background: transparent; } }
@keyframes tap { 0% { opacity: 0; transform: scale(1.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }
@keyframes hop { 0%, 100% { transform: none; } 30% { transform: translateY(-14%) scale(1.04, 0.97); } 60% { transform: translateY(2%) scale(0.98, 1.02); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }

@media (prefers-reduced-motion: no-preference) {
  .store-badge, .app-card { transition: transform 150ms ease-out; }
  .store-badge:hover, .store-badge:focus-visible, .app-card:hover, .app-card:focus-visible { transform: translateY(-1px); }
  .float img { animation: float 4.2s ease-in-out infinite; }
  .people li:nth-child(2) img { animation-delay: -1.6s; }
  @supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
    .reveal { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.ios .scene > .sec-head:first-child { display: flex; min-height: calc(28 * var(--u)); align-items: center; margin-bottom: calc(6 * var(--u)); line-height: calc(18 * var(--u)); }

.static-ring { position: relative; display: flex; flex: none; width: calc(46 * var(--u)); height: calc(46 * var(--u)); align-items: center; justify-content: center; }
.static-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.static-ring .tile { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; }
.static-ring .tile svg { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.arow { gap: calc(10 * var(--u)); }
.arow-main { margin-left: calc(4 * var(--u)); }
.arow + .arow { margin-top: calc(var(--u) / 3); }
.ios .scene > .sec-head { display: flex; min-height: calc(28 * var(--u)); align-items: center; margin: calc(24 * var(--u)) 0 calc(6 * var(--u)); line-height: calc(18 * var(--u)); }
.ios .scene > .sec-head:first-child { margin-top: 0; }

.foot-credits { padding-bottom: 2.5rem; }
.foot-credits p { max-width: 90ch; margin: 0; color: var(--fg-3); font-size: 12px; line-height: 1.625; text-wrap: pretty; }
