/* Styles for the public pages (home, terms, privacy, not found). Static HTML, no JavaScript;
   light and dark follow the visitor's system through light-dark(). The tokens are the app's
   Blossom mood (docs/ARCHITECTURE.md section 8) on the layout language of an Astryx neutral
   page: soft surfaces, large radii, one accent. The art is the product, so pictures are large
   and the chrome is quiet. Text colours are checked for 4.5:1 in tests/contrast.test.ts.
   The build appends a generated part: marker positions, the ticker walk, each world's tint. */

@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url('/fonts/nunito-latin.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('/fonts/lora-latin.woff2') format('woff2'); }
@property --week { syntax: '<integer>'; inherits: true; initial-value: 20; }
@property --trail-week { syntax: '<integer>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#fffaf6, #17131a);
  --surface: light-dark(#ffffff, #241e28);
  --soft: light-dark(#fff1ec, #221c26);
  --softer: light-dark(#fff6f2, #1d1820);
  --text: light-dark(#2c272e, #f3f1ea);
  --text-2: light-dark(#4a4347, #d9d4d0);
  --muted: light-dark(#6b6468, #b3adb0);
  --border: light-dark(#2c272e1f, #f3f1ea24);
  --chip: light-dark(#2c272e0f, #f3f1ea1a);
  --ink: light-dark(#2c272e, #f3f1ea);
  --on-ink: light-dark(#ffffff, #1b161d);
  --brand: light-dark(#b8325d, #ff9db6);
  --brand-fill: #c94670;
  --brand-soft: light-dark(#fde4ea, #40222e);
  --violet: light-dark(#6d32d6, #c3a6ff);
  --peach: light-dark(#f18b78, #8a4638);
  --dark: #1c1620;
  --on-dark: #f3f1ea;
  --on-dark-muted: #c2bbc0;
  --ok: light-dark(#1d6b45, #7ddba8);
  --ok-soft: light-dark(#dff5e6, #17382a);
  --shadow-s: light-dark(0 1px 2px rgb(60 20 30 / 0.08), 0 1px 2px rgb(0 0 0 / 0.5)), light-dark(0 8px 20px rgb(150 60 80 / 0.12), 0 8px 20px rgb(0 0 0 / 0.45));
  --shadow-l: light-dark(0 2px 4px rgb(60 20 30 / 0.08), 0 2px 4px rgb(0 0 0 / 0.5)), light-dark(0 30px 70px rgb(140 50 80 / 0.24), 0 30px 70px rgb(0 0 0 / 0.6));
  --gutter: 28px;
  --wrap: 1160px;
  /* Where the page's content column starts, for rows that scroll edge to edge. */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; background: var(--bg); color: var(--text); font: 600 17px/1.55 Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: normal; color: var(--brand); }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- top bar */
header.top { display: flex; align-items: center; gap: 20px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 26%; }
.top nav { display: flex; gap: 6px; margin: 0 auto; font-size: 15.5px; }
.top nav a { text-decoration: none; color: var(--text-2); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--chip); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15.5px; text-decoration: none; white-space: nowrap; background: var(--chip); color: var(--text); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }

/* ---- hero */
.stage { position: relative; overflow: clip; margin: 10px; border-radius: 36px;
  background:
    radial-gradient(60% 70% at 78% 62%, light-dark(#ffd3c4, #5a2a3f) 0%, transparent 70%),
    radial-gradient(50% 60% at 100% 0%, light-dark(#f3d9ff, #33224f) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, light-dark(#ffe3ea, #3a1f2c) 0%, transparent 70%),
    light-dark(#fff3ee, #1f1822); }
.stage > .wrap { position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 32px; align-items: center; min-height: min(760px, 86vh); padding: 24px 0 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 15px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: 0 0 0 1px var(--border); font-size: 14px; font-weight: 800; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-fill); }
h1 { margin: 22px 0 22px; max-width: 12ch; font-size: clamp(44px, 6.3vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 900; text-wrap: balance; }
h1 em { background: linear-gradient(100deg, var(--brand) 10%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.lead { max-width: 34ch; margin: 0 0 30px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }

/* store buttons: our own drawing, not the stores' badge artwork */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Get the app" on a computer (and on a phone while its store is not live) comes to /#get: the page
   moves only as far as needed to show the buttons and the line under them, keeping the headline above
   in view; where they are already in the first screen it stays at the top. */
#get { scroll-margin-top: calc(100svh - 120px); }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 18px; background: var(--ink); color: var(--on-ink); text-decoration: none; line-height: 1.15; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 700; opacity: 0.85; }
.store b { display: block; font-size: 18px; font-weight: 800; }
.store.soon { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border), var(--shadow-s); }
a.store:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }

/* the hero picture: a phone home screen with the three widgets on it */
.hero-art { position: relative; display: grid; place-items: center; --dw: clamp(250px, 26vw, 330px); padding: 12px 0; }
.glow { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, light-dark(#ffffffd9, #ff9db62e), transparent); filter: blur(10px); }
.device { position: relative; width: var(--dw); aspect-ratio: 9 / 19.2; padding: calc(var(--dw) * 0.028); border-radius: calc(var(--dw) * 0.16); background: linear-gradient(145deg, #3a3340, #17131a); box-shadow: var(--shadow-l), inset 0 0 0 1.5px #ffffff26; rotate: 3deg; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--dw) * 0.134); background: #20303a; container-type: inline-size; }
/* The wallpaper is softened, as with the phone's own "blur home screen" setting, so the widgets
   drawn from the same art stand clear of it. Scaled a little so the blur keeps the edges filled. */
.screen .wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2.4cqw) saturate(0.8) brightness(0.8); scale: 1.12; }
.status { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 5cqw 8cqw 0; color: #fff; font-size: 4.4cqw; line-height: 1; text-shadow: 0 1px 3px rgb(0 0 0 / 0.4); }
.island { position: absolute; left: 50%; top: 3.6cqw; width: 30cqw; height: 8.6cqw; translate: -50% 0; border-radius: 99px; background: #0b090c; }
.bars { width: 15cqw; height: 3.6cqw; border-radius: 1.2cqw; background: linear-gradient(90deg, #fff 0 22%, transparent 22% 30%, #fff 30% 52%, transparent 52% 62%, #fff 62%); opacity: 0.95; }
.home { position: absolute; inset: 17cqw 6.5cqw auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5.2cqw 4.6cqw; }
.home > .w { grid-column: span 2; box-shadow: 0 2cqw 5cqw rgb(0 0 0 / 0.28); }
.home > .wide { grid-column: span 4; aspect-ratio: 2.12 / 1; }
.apps { grid-column: span 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4.6cqw; }
.app { display: block; aspect-ratio: 1; margin: 0 9%; border-radius: 24%; background: #ffffff59; box-shadow: inset 0 0 0 0.3cqw #ffffff40; backdrop-filter: blur(6px); }
.app.a1 { background: #ffffff40; }
.app.a2 { background: #ffffff6e; }
.dock { position: absolute; inset: auto 4cqw 4cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4.6cqw; padding: 4cqw 3.4cqw; border-radius: 9cqw; background: #ffffff38; backdrop-filter: blur(10px); }
.hero-art > .float { position: absolute; }
.f-ticker { left: 50%; bottom: 13%; width: calc(var(--dw) * 1.18); margin-left: calc(var(--dw) * -1.12); rotate: -7deg; z-index: 2; box-shadow: var(--shadow-l); }
.f-square { left: 50%; top: 13%; width: calc(var(--dw) * 0.46); margin-left: calc(var(--dw) * 0.5); rotate: 9deg; z-index: 2; box-shadow: var(--shadow-l); }
.hero-art .device { z-index: 1; }

/* ---- widgets drawn in HTML over the app's art. Sizes are container units, so a widget
        looks the same at any size; the numbers follow the widget spec's layout fractions. */
.w { position: relative; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-s); container-type: inline-size; }
.w > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-ticker { aspect-ratio: 4 / 1; border-radius: 5.5% / 22%; }
.w-tall { aspect-ratio: 2.12 / 1; border-radius: 8% / 17%; }
/* Companion sizes follow the apps (TickerLayout: 0.42 / 0.55 / 0.70 of the 4:1 band, i.e. 10.5 / 13.75 / 17.5 % of its width);
   the pictured tickers use the large one so the companion is clearly seen. */
.marker { position: absolute; width: 17.5%; translate: -50% -50%; filter: drop-shadow(0 0.6cqw 1cqw rgb(0 0 0 / 0.35)); }
.w .label { position: absolute; left: 50%; bottom: 6%; translate: -50% 0; padding: 0.5cqw 2.8cqw; border-radius: 999px; background: #fffffff0; color: #2c272e; font-size: 3.5cqw; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.w-tall .label { bottom: 9%; font-size: 5.4cqw; padding: 0.6cqw 4cqw; }
.w-tall .marker { width: 17.5%; }

.w-square { aspect-ratio: 1; border-radius: 15.5%; color: #fff; font-family: Lora, Georgia, serif; font-weight: 700; line-height: 1; text-align: center;
  --v: 22; --l: calc(var(--v) * 0.32); --block: calc(var(--v) + 1.6 * var(--l)); --cy: calc(94 - var(--block) / 2); --shade: 12 10 16; --ts: 0 0.44cqw 1.5cqw rgb(0 0 0 / 0.45); }
.w-square.sz-s { --v: 16; }
.w-square.sz-l { --v: 30; }
.w-square.pos-top { --cy: calc(6 + var(--block) / 2); }
.w-square.pos-center { --cy: 50; }
.w-square.sans { font-family: inherit; font-weight: 800; }
.w-square.thin { font-weight: 500; }
.w-square.ink { color: #3a3340; --shade: 255 255 255; --ts: 0 0.44cqw 1.5cqw rgb(255 255 255 / 0.33); }
.w-square.flat { --ts: none; }
.w-square .num, .w-square .cap { position: absolute; left: 0; right: 0; z-index: 1; translate: 0 -50%; text-shadow: var(--ts); white-space: nowrap; }
.w-square .num { top: calc((var(--cy) - 0.75 * var(--l)) * 1cqw); font-size: calc(var(--v) * 1cqw); }
.w-square .cap { top: calc((var(--cy) + 0.52 * var(--v)) * 1cqw); font-size: min(calc(var(--l) * 1cqw), 6.2cqw); letter-spacing: 0.14em; padding-left: 0.14em; }
.w-square[class*='ov-']::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--shade) / var(--oa)), transparent 62%); }
.w-square.ov-soft { --oa: 0.24; }
.w-square.ov-strong { --oa: 0.42; }
.w-square.pos-top[class*='ov-']::after { background: linear-gradient(to bottom, rgb(var(--shade) / var(--oa)), transparent 62%); }
.w-square.pos-center[class*='ov-']::after { inset: 31% 9%; border-radius: 26% / 56%; background: rgb(var(--shade) / var(--oa)); }
.w-custom .glow { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(30 20 35 / 0.5), rgb(30 20 35 / 0.22) 55%, transparent); }
.w-custom .g-ring { right: -2%; top: -2%; width: 66%; height: 66%; }
.w-custom .g-words { left: 4%; right: 4%; bottom: 6%; height: 30%; }
.w-custom .ring { position: absolute; z-index: 2; right: 8%; top: 8%; width: 50%; height: 50%; }
.w-custom .rnum { position: absolute; z-index: 2; right: 8%; top: 8%; width: 50%; height: 50%; display: grid; place-items: center; font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 19cqw; }
.w-custom .words { position: absolute; z-index: 2; left: 0; right: 0; bottom: 13%; font-size: 10.5cqw; font-weight: 600; text-shadow: 0 0.4cqw 1.6cqw rgb(0 0 0 / 0.35); white-space: nowrap; }

.w-journey { text-align: left; aspect-ratio: 2 / 1; border-radius: 8.5% / 17%; color: #2c272e; background: linear-gradient(120deg, #ffe9ee, #ffe6dc); line-height: 1.1; --fill: #c94670; }
.w-journey .in { position: absolute; inset: 0; padding: 8cqw 7.5cqw 0; }
.w-journey .head { display: block; font-size: 4.3cqw; font-weight: 800; color: #4a4347; }
.w-journey .num { display: block; margin-top: 1.2cqw; font-size: 19cqw; font-weight: 900; letter-spacing: -0.02em; }
.w-journey .sup { font-size: 4.6cqw; font-weight: 800; color: #4a4347; }
.w-journey .pic { position: absolute; right: 6.5cqw; top: 7cqw; width: 30cqw; height: auto; }
.w-journey .bar { position: absolute; left: 7.5cqw; right: 7.5cqw; bottom: 6.5cqw; height: 2.2cqw; border-radius: 99px; background: #2c272e1f; }
.wide.w-journey .in { padding-top: 6.4cqw; }
.wide.w-journey .num { font-size: 17cqw; margin-top: 0.6cqw; }
.wide.w-journey .bar { bottom: 5.4cqw; }
.w-journey .bar i { display: block; height: 100%; border-radius: 99px; background: var(--fill); }

/* ---- sections: one point each */
.sheet { flex: 1; display: flex; flex-direction: column; }
.sheet > .wrap { flex: 1; display: flex; flex-direction: column; }
.sheet > .wrap > main { flex: 1; }
.feature { padding: clamp(72px, 9vw, 132px) 0 0; }
h2 { margin: 0 0 16px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sub { margin: 0; max-width: 48ch; color: var(--text-2); font-size: clamp(17.5px, 1.5vw, 20px); line-height: 1.5; text-wrap: pretty; }
.intro { margin-bottom: clamp(32px, 4vw, 52px); }
.intro.center { text-align: center; }
.intro.center h2, .intro.center .sub { margin-left: auto; margin-right: auto; }
.intro.center h2 { max-width: 22ch; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.fine { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.fine.center { max-width: 62ch; margin: 28px auto 0; text-align: center; }
.fine a { color: var(--brand); text-underline-offset: 3px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.tag.free { background: var(--ok-soft); color: var(--ok); }
.tag.plus { background: var(--brand-soft); color: var(--brand); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.two .intro { margin-bottom: 0; }
/* A column never grows to fit a row that scrolls sideways inside it (the reviews on a phone). */
.two > * { min-width: 0; }
.sub.second { margin-top: 16px; }

/* a few confident numbers under the hero */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 72px) 0 0; }
.stats dt { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.stats dd { margin: 6px 0 0; max-width: 26ch; color: var(--text-2); font-size: 16.5px; line-height: 1.4; }
/* Each figure is centred in its column under a small picture made from the app's art. */
.stats > div { text-align: center; }
.stats dd { margin-inline: auto; }
.sv { position: relative; display: block; width: 132px; height: 100px; margin: 0 auto 18px; }
.sv .w { box-shadow: 0 8px 18px rgb(60 20 40 / 0.18); }
.sv-pair .pair-art { position: absolute; left: 50%; top: 4px; width: 88px; height: 88px; translate: -50% 0; border-radius: 22%; object-fit: cover; box-shadow: 0 8px 18px rgb(60 20 40 / 0.18); }
.sv-pair .pair-co { position: absolute; left: calc(50% + 18px); bottom: -6px; width: 46px; height: 46px; rotate: -8deg; filter: drop-shadow(0 4px 6px rgb(60 20 40 / 0.25)); }
.sv-fan .fan { position: absolute; top: 12px; width: 74px; }
.sv-fan .f0 { left: 2px; rotate: -12deg; }
.sv-fan .f1 { left: 29px; top: 4px; z-index: 1; }
.sv-fan .f2 { left: 56px; rotate: 12deg; }
.sv-zero .w { position: absolute; left: 50%; top: 4px; width: 88px; translate: -50% 0; rotate: 4deg; }

/* settings shown the way the editor shows them: a name and its choices, one of them chosen */
.options { display: grid; gap: 12px; margin-top: 28px; }
/* A setting: its name in a column of its own, its chips beside it; chips that wrap line up under
   the first chip, never under the name. */
.chips { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 6px 12px; margin: 0; }
.chips b { padding-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chips .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.chip.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.chip.serif { font-family: Lora, Georgia, serif; }

/* ticker: the widest thing on the page */
/* The ticker demo is no wider than its art can stay sharp (the art is 1500 px wide, the column at most 1104). It keeps
   its corners on the picture, so a label can sit below it. */
.w-ticker.demo { overflow: visible; width: 100%; background: none; box-shadow: none; transition: margin-bottom 0.3s ease; }
.demo > .art { border-radius: inherit; box-shadow: var(--shadow-l); }
.demo .marker { width: 13.75%; transition: width 0.3s ease; }
.demo .label { font-size: 2.6cqw; box-shadow: var(--shadow-s); transition: bottom 0.3s ease, opacity 0.2s ease; }
.counting::after { counter-reset: week var(--week); content: 'Week ' counter(week); }

/* The ticker's options work: each chip is a radio button, and the demo follows the choice. */
.pick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.chip { cursor: pointer; transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
label.chip:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.pick:checked + .chip { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.pick:focus-visible + .chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.try { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--brand); }
.more { max-width: 68ch; margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--softer); box-shadow: inset 0 0 0 1px var(--border); font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
#widgets:has(#tk-says-left:checked) .counting::after { counter-reset: d calc(280 - var(--week) * 7); content: counter(d) ' days to go'; }
#widgets:has(#tk-says-passed:checked) .counting::after { counter-reset: d calc(var(--week) * 7); content: counter(d) ' days pregnant'; }
#widgets:has(#tk-says-weekday:checked) .counting::after { content: counter(week) '+0'; }
#widgets:has(#tk-says-own:checked) .counting::after { content: 'Until we meet'; }
#widgets:has(#tk-label-below:checked) .w-ticker.demo { margin-bottom: 6%; }
#widgets:has(#tk-label-below:checked) .demo .label { bottom: -8%; translate: -50% 100%; }
#widgets:has(#tk-label-none:checked) .demo .label { opacity: 0; }
#widgets:has(#tk-size-s:checked) .demo .marker { width: 10.5%; }
#widgets:has(#tk-size-l:checked) .demo .marker { width: 17.5%; }
#widgets .options { margin-top: 36px; }

/* The live square: every variant is in the page and the chosen ones show (rules generated by
   squareDemo); without :has it stays the default look, which these rules give. */
.sq-live { max-width: 400px; margin: 0 auto; box-shadow: var(--shadow-l); }
.sq-live .art { transition: opacity 0.35s ease; }
.sq-live .art:not(.a-forest) { opacity: 0; }
.sq-live .num, .sq-live .cap { transition: top 0.35s ease, font-size 0.35s ease; }
.sq-live .num:not(.m-daysLeft), .sq-live .cap:not(.std.m-daysLeft) { display: none; }
.w-journey { transition: background 0.3s ease; }

/* journey card and stories */
.card-demo { max-width: 520px; width: 100%; margin: 0 auto; }
.card-demo .w { box-shadow: var(--shadow-l); }
.moods { margin-top: 20px; }
.mood { width: 16px; height: 16px; border-radius: 50%; }
.mood.blossom { background: linear-gradient(135deg, #ed6487, #f18b78); }
.mood.aurora { background: linear-gradient(135deg, #268cc8, #2cc5b5); }
.mood.meadow { background: linear-gradient(135deg, #43966d, #e7a33b); }
.mood.sunset { background: linear-gradient(135deg, #e86946, #f2a23e); }
.stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.story { padding: 22px; border-radius: 28px; background: var(--soft); }
.story-baby { background: light-dark(#ffe9ee, #2c1c24); }
.story-fruit { background: light-dark(#fff0dc, #2b2218); }
.story-nest { background: light-dark(#f4ecdf, #26211a); }
.story-pot { background: light-dark(#e9f4e2, #1b2520); }
.story header { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.story p { margin: 6px 0 16px; font-size: 15.5px; color: var(--text-2); }
.weeks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.weeks li { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.weeks img { width: 62%; margin-bottom: 20%; }
/* Each sample names its week, so the row reads as a story growing. */
.weeks span { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* Sideways rows (ideas; collections on a phone): swiped or scrolled, snapping to a card, with no
   scrollbar drawn; the next card peeks in at the edge to show there is more. */
.worlds, .ideas { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 8px var(--edge) 28px; scrollbar-width: none; }
.worlds::-webkit-scrollbar, .ideas::-webkit-scrollbar { display: none; }
/* Collections: compact cards (cover, name, ticker) in one sideways row, like the ideas. */
.world { flex: 0 0 min(74vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 10px; border-radius: 28px; --tint: 201 70 112;
  background: light-dark(color-mix(in srgb, rgb(var(--tint)) 15%, #ffffff), color-mix(in srgb, rgb(var(--tint)) 20%, #241e28)); box-shadow: inset 0 0 0 1px color-mix(in srgb, rgb(var(--tint)) 22%, transparent); }
.cover { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .tag { position: absolute; left: 10px; top: 10px; background: #fffffff0; color: #2c272e; }
.about { padding: 0 6px; }
.about h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; }
.about p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.world .w-ticker { box-shadow: none; }
/* The last card: more worlds join Plus over time. */
.world.coming { --tint: 156 90 220; background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, rgb(var(--tint)) 35%, transparent); }
.world.coming .cover { display: grid; place-items: center; background: linear-gradient(135deg, light-dark(#fde4ee, #3a2335), light-dark(#ece2ff, #2a2347)); }
.world.coming .faces { display: flex; }
.world.coming .co { width: 84px; height: 84px; margin: 0 -8px; filter: drop-shadow(0 6px 10px rgb(60 20 60 / 0.25)); }
.world.coming .co:nth-child(2) { translate: 0 -14px; }
.world.coming .about p { font-size: 14.5px; line-height: 1.45; }

/* ideas: the row from Explore */
.idea { flex: 0 0 clamp(170px, 46vw, 220px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--muted); }
.idea .w { margin-bottom: 8px; }
.idea b { color: var(--text); font-size: 17px; font-weight: 800; }

/* editor */
.phones { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(12px, 2.4vw, 28px); max-width: 620px; width: 100%; margin: 0 auto; }
.phone { padding: 2.6%; border-radius: 15.5% / 7.2%; background: linear-gradient(145deg, #3a3340, #17131a); box-shadow: var(--shadow-l); }
.phone img { display: block; width: 100%; border-radius: 13.5% / 6.2%; }
.phone video { display: block; width: 100%; height: auto; border-radius: 13.5% / 6.2%; background: var(--soft); }
/* The clip plays by itself, muted and in a loop; for anyone who asks for less motion it is a still. */
.phone .still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .phone .clip { display: none; }
  .phone .still { display: block; }
}
.phones .phone:nth-child(2) { margin-top: 18%; }
.phones.level .phone:nth-child(2) { margin-top: 0; }
.layer-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.layer-kinds li { padding: 7px 14px; border-radius: 999px; background: var(--softer); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; font-weight: 700; color: var(--text-2); }

/* privacy: a dark band */
.band { margin: clamp(72px, 9vw, 132px) 10px 0; padding: clamp(56px, 7vw, 104px) 0; border-radius: 36px; color: var(--on-dark);
  /* Dark, but lit: a rose glow from the top right, violet from the bottom left and a warm haze
     between them, so no side of the band is flat black. */
  background:
    radial-gradient(55% 75% at 92% 0%, #b8325d8c, transparent 70%),
    radial-gradient(50% 80% at 4% 100%, #6d32d68a, transparent 70%),
    radial-gradient(40% 60% at 70% 95%, #f18b7840, transparent 70%),
    radial-gradient(35% 55% at 10% 10%, #ff9db629, transparent 70%),
    linear-gradient(120deg, #2c1a33, #1f1724 48%, #251c3d); }
.band .eyebrow, .band em { color: #ff9db6; }
.band h2 { max-width: 16ch; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; color: var(--on-dark-muted); font-size: 16.5px; }
.promises li { padding: 22px 22px 24px; border-radius: 22px; background: linear-gradient(160deg, #ffffff17, #ffffff08); box-shadow: inset 0 0 0 1px #ffffff1f; backdrop-filter: blur(6px); }
.promises b { display: block; margin-bottom: 6px; color: var(--on-dark); font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.band .fine { color: var(--on-dark-muted); }
.band .fine a { color: #ff9db6; }

/* Plans: two cards side by side; Plus is the lit one, each shows its collections' art. */
.plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; padding: clamp(26px, 3.4vw, 38px); border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-s); }
.plan.plus { background: radial-gradient(70% 60% at 100% 0%, light-dark(#f3d9ff, #3a2456), transparent 70%), radial-gradient(60% 60% at 0% 100%, light-dark(#ffd9cf, #4a2335), transparent 70%), light-dark(#fff0f3, #2a1d2c); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-l); }
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }
.plan.plus h3 { color: var(--brand); }
.plan .badge { padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #b8325d, #6d32d6); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; }
.plan .lede { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
/* One row however many collections there are: the squares share the width and get smaller. */
.thumbs { display: flex; margin: 22px 0 6px; padding-left: 8px; }
/* Plus ends its fan with a "+": more collections join it over time. */
.thumbs .plus-more { display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--brand); background: var(--brand-soft); rotate: 4deg; translate: 0 4px; }
.thumbs .thumb { flex: 0 1 60px; min-width: 0; height: auto; aspect-ratio: 1; margin-left: -10px; border-radius: 17px; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 6px 14px rgb(60 20 40 / 0.2); }
.plus .thumbs .thumb { box-shadow: 0 0 0 3px light-dark(#fff0f3, #2a1d2c), 0 6px 14px rgb(60 20 40 / 0.22); }
.thumbs .thumb:nth-child(odd) { rotate: -4deg; }
.thumbs .thumb:nth-child(even) { rotate: 4deg; translate: 0 4px; }
.feats { margin: 18px 0 0; }
.feats div { padding: 14px 0; border-top: 1px solid var(--border); }
.feats dt { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plus .feats dt { color: var(--brand); }
.feats dd { margin: 4px 0 0; font-size: 16.5px; line-height: 1.45; color: var(--text); }

/* plus: free and Plus side by side */

/* questions */
/* Questions: cards in two balanced columns, each with a topic icon; a plus that turns into a
   cross when the answer is open. Native <details>, no script. */
.faq { columns: 2 360px; column-gap: 18px; max-width: 1040px; margin: 0 auto; }
.q { break-inside: avoid; margin: 0 0 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-s); transition: box-shadow 0.2s ease; --tone: var(--brand); --tone-soft: var(--brand-soft); }
.q:nth-child(4n+2) { --tone: var(--violet); --tone-soft: light-dark(#efe6ff, #2e2347); }
.q:nth-child(4n+3) { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.q:nth-child(4n+4) { --tone: light-dark(#b4532f, #ffb59e); --tone-soft: light-dark(#ffe9df, #3b2620); }
.q[open] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 45%, transparent), var(--shadow-s); }
.q summary { display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 20px; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 800; line-height: 1.3; border-radius: 22px; }
.q summary::-webkit-details-marker { display: none; }
.q summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.q summary > span { flex: 1; }
.toggle { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); transition: rotate 0.25s ease, background 0.2s ease; }
.toggle::before, .toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--text-2); translate: -50% -50%; }
.toggle::after { rotate: 90deg; }
.q[open] .toggle { rotate: 45deg; background: var(--tone-soft); }
.q[open] .toggle::before, .q[open] .toggle::after { background: var(--tone); }
.q p { margin: 0; padding: 0 20px 20px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.ask { display: flex; align-items: center; gap: 14px; max-width: 1040px; margin: 10px auto 0; padding: 18px 20px; border-radius: 22px; background: linear-gradient(120deg, var(--brand-soft), light-dark(#efe6ff, #2e2347)); color: var(--text-2); font-size: 16.5px; }
.ask b { color: var(--text); }
.ask a { color: var(--brand); font-weight: 800; text-underline-offset: 3px; }

/* "Get the app", always within reach: a floating button that shows once the hero's own buttons
   have scrolled away (where the browser can tell; elsewhere it is simply always there). /get
   sends a phone to its own store. */
.get-float { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 22px; background: var(--ink); color: var(--on-ink); text-decoration: none; box-shadow: var(--shadow-l); line-height: 1.15; }
.get-float img { border-radius: 12px; }
.get-float b { display: block; font-size: 16.5px; font-weight: 900; }
.get-float small { display: block; font-size: 12.5px; font-weight: 700; opacity: 0.75; }
.get-float .go { width: 22px; height: 22px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.2s ease; }
.get-float:hover .go { translate: 3px 0; }
.get-float:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@supports (animation-timeline: scroll()) {
  .get-float { animation: float-in linear both; animation-timeline: scroll(root); animation-range: 40vh 75vh; }
}
@keyframes float-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }

.closing { margin: clamp(72px, 9vw, 132px) 0 clamp(48px, 6vw, 88px); padding: clamp(56px, 8vw, 112px) 24px; border-radius: 36px; text-align: center;
  background: radial-gradient(60% 90% at 50% 120%, light-dark(#ffc9b8, #5a2a3f), transparent 70%), radial-gradient(50% 70% at 0% 0%, light-dark(#f3d9ff, #33224f), transparent 70%), light-dark(#ffe9ee, #241a26); }
.closing h2 { max-width: 14ch; margin: 0 auto 14px; }
.closing .sub { margin: 0 auto; }
.closing .stores { justify-content: center; margin-top: 30px; }
.closing .w-ticker { max-width: 720px; margin: clamp(36px, 5vw, 56px) auto 0; box-shadow: var(--shadow-l); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding: 30px 0 44px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
footer .brand { font-size: 16px; color: var(--text); }
footer nav { display: flex; gap: 4px; }
footer nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; }
footer nav a:hover { color: var(--text); background: var(--chip); }
footer p { margin: 0; max-width: 72ch; }
footer p:last-child { text-align: right; }
footer p a { text-underline-offset: 3px; }

/* ---- terms, privacy, not found */
.stage.plain { border-radius: 28px; }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 88px; font-size: 17.5px; line-height: 1.65; }
.doc h1 { max-width: none; margin: 0 0 10px; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; }
.doc h2 { margin: 48px 0 12px; font-size: 25px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--brand); text-underline-offset: 3px; }
.doc .dated { margin: 0 0 28px; color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15.5px; line-height: 1.5; }
.doc th, .doc td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--text-2); }
.doc th { background: var(--soft); color: var(--text); }
.lost { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.lost h1 { max-width: none; margin: 0 0 14px; font-size: clamp(38px, 5vw, 60px); }
.lost p { margin: 0 0 30px; color: var(--text-2); }

/* ---- motion, only for visitors who have not asked for less */
@media (prefers-reduced-motion: no-preference) {
  /* a calm entrance */
  .hero-text > * { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.06s; }
  .hero-text > :nth-child(3) { animation-delay: 0.12s; }
  .hero-text > :nth-child(4) { animation-delay: 0.18s; }
  .hero-text > :nth-child(5) { animation-delay: 0.24s; }
  /* The store buttons are where "Get the app" lands (/#get): they only fade in, because the browser
     scrolls to an element where it is drawn and a rising one would end up above the place. */
  #get { animation-name: appear; }
  .device { animation: arrive 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  .f-ticker { animation: slide 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both, bob 8s ease-in-out 1.6s infinite alternate; }
  .f-square { animation: slide 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both, bob 10s ease-in-out 1.8s infinite alternate-reverse; }
  .glow { animation: breathe 9s ease-in-out infinite alternate; }

  /* the ticker's companion walks the strip while the label counts the weeks */
  .demo .marker { left: 0; top: 0; animation: walk 18s linear infinite; }
  .counting { animation: weeks 18s linear infinite; }

  .cover img { transition: scale 0.8s ease; }
  .world:hover .cover img { scale: 1.04; }

  /* sections rise into place as they scroll into view, where the browser can tie an animation to scrolling */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes appear { from { opacity: 0; } }
@keyframes arrive { from { opacity: 0; translate: 0 40px; rotate: 7deg; } }
@keyframes slide { from { opacity: 0; translate: -40px 16px; } }
@keyframes bob { to { translate: 0 -10px; } }
@keyframes breathe { to { scale: 1.08; opacity: 0.8; } }

/* ---- smaller screens */
/* Tablets: the section links get a row of their own under the name, the switch and the button. */
@media (max-width: 1120px) {
  header.top { flex-wrap: wrap; row-gap: 8px; padding-bottom: 14px; }
  .top nav { order: 3; flex: 1 0 100%; justify-content: center; margin: 0; }
}
@media (max-width: 700px) {
  .top nav { display: none; }
  header.top { padding-bottom: 22px; }
}
@media (max-width: 1040px) {
  header.top { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 12px 0 56px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  h1, .lead { margin-left: auto; margin-right: auto; }
  h1 { max-width: 12ch; }
  .stores { justify-content: center; }
  .hero-art { --dw: clamp(230px, 40vw, 320px); padding-top: 24px; }
  .two { grid-template-columns: 1fr; }
  .two.flip > :first-child { order: 0; }
  .two > .intro { order: -1; }
  /* The square sits between its heading and its options, so a choice is seen as it is made. */
  #square .two { row-gap: 0; }
  #square .intro { display: contents; }
  #square .intro > * { order: -2; }
  #square .sq-stage { order: -1; margin: 28px 0 8px; }
  #square .intro > .options { order: 0; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  /* The story cards become a row to swipe, like the collections. */
  .stories { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .stories::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
  /* On a phone the button runs along the bottom, and the page ends with room for it. */
  .get-float { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .get-float .go { margin-left: auto; }
  body { padding-bottom: 84px; }
  .q p { padding-left: 20px; }
  /* On a phone each of the square's settings is one line that scrolls sideways, so the square
     and its options fit on the screen together. */
  #square .sq-live { max-width: min(400px, 62vw); }
  #square .options { gap: 6px; }
  #square .chips { grid-template-columns: 76px minmax(0, 1fr); align-items: center; }
  #square .chips b { padding-top: 0; }
  #square .chips .opts { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding: 3px var(--gutter) 3px 2px; scrollbar-width: none; }
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .stage, .band { margin-left: 6px; margin-right: 6px; border-radius: 28px; }
  .brand { font-size: 17px; }
  .top .btn { padding: 10px 16px; }
  .hero-art { --dw: min(66vw, 280px); }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .chips b { padding-top: 0; }
  .f-square { margin-left: calc(var(--dw) * 0.2); top: 2%; width: calc(var(--dw) * 0.38); }
  .demo .label { font-size: 3.6cqw; }
  .w-ticker.demo { width: 100%; }
  .stories { gap: 12px; }
  .story { padding: 16px; border-radius: 24px; }
  .worlds, .ideas { gap: 14px; }
  .promises { gap: 20px; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
  footer nav { margin-left: -12px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .doc td { border: 0; border-top: 1px solid var(--border); }
  .doc td:first-child { border-top: 0; background: var(--soft); color: var(--text); font-weight: 800; }
}
@media (max-width: 480px) {
  .promises { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .stores { flex-wrap: nowrap; width: 100%; }
  .store { flex: 1 1 0; min-width: 0; gap: 8px; padding: 8px 12px; text-align: left; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 11px; }
  .store b { font-size: 16px; }
}

/* ---- companions: the app's own characters, where a page would otherwise put an icon ---- */
.co { display: block; width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(60 20 40 / 0.18)); }
.promises .co { width: 60px; height: 60px; margin-bottom: 12px; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.35)); }
.ask .co { flex: none; width: 56px; height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .promises li:hover .co, .ask:hover .co { animation: wiggle 0.7s ease-in-out; }
}
@keyframes wiggle { 30% { transform: rotate(-9deg) scale(1.06); } 60% { transform: rotate(7deg) scale(1.06); } }

/* ---- the story: told as the pot grows (2016, the years between, now), then what parents said ---- */
#story { overflow: hidden; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 40px auto 0; padding: 0; list-style: none; counter-reset: none; }
/* The path the pot grows along, behind the pictures. */
.timeline::before { content: ''; position: absolute; left: 16%; right: 16%; top: 62px; border-top: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
.timeline li { position: relative; text-align: center; }
.timeline .pic { display: grid; place-items: center; width: 124px; height: 124px; margin: 0 auto 16px; border-radius: 34%; background: light-dark(#e9f4e2, #1b2520); box-shadow: 0 0 0 8px var(--bg), var(--shadow-s); }
.timeline .pic img { width: 76%; height: auto; }
.timeline li:nth-child(2) .pic { width: 140px; height: 140px; margin-top: -8px; }
.timeline li:nth-child(3) .pic { width: 156px; height: 156px; margin-top: -16px; background: light-dark(#fde4ea, #40222e); }
.timeline b { display: block; font-size: 22px; font-weight: 900; color: var(--brand); }
.timeline p { max-width: 30ch; margin: 6px auto 0; color: var(--text-2); font-size: 16.5px; line-height: 1.55; }
#story .sign { margin: 26px auto 0; text-align: center; font-size: 17px; font-weight: 800; color: var(--text); }
#story .sign::before { content: "\2014\00a0"; color: var(--brand); }
/* Reviews laid out as a store shows them: plain cards, an avatar, the reviewer, small stars. */
.said { max-width: 1040px; margin: 64px auto 0; }
.said-from { margin: 0 0 16px; text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); }
.reviews { columns: 3 280px; column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.reviews li { break-inside: avoid; margin: 0 0 16px; }
.review { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgb(0 0 0 / 0.04); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #c7d2fe; color: #fff; }
.reviews li:nth-child(4n+2) .avatar { background: #f9a8d4; }
.reviews li:nth-child(4n+3) .avatar { background: #86efac; }
.reviews li:nth-child(4n+4) .avatar { background: #fcd34d; }
.avatar svg { width: 22px; height: 22px; fill: currentColor; }
.who { display: grid; gap: 2px; min-width: 0; }
.who b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.review .stars { color: #01875f; font-size: 12px; letter-spacing: 1px; line-height: 1; }
.review blockquote { margin: 0; font-size: 15.5px; font-weight: 400; line-height: 1.55; color: var(--text-2); }
.review small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* On a phone each step is a row: the pot beside its words, the path running down the pots. */
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 54px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); }
  .timeline li { display: grid; grid-template-columns: 108px 1fr; gap: 0 16px; align-items: center; text-align: left; }
  .timeline li .pic, .timeline li:nth-child(n) .pic { grid-row: span 2; width: 108px; height: 108px; margin: 0; }
  .timeline b { align-self: end; }
  .timeline p { align-self: start; margin: 4px 0 0; }
  /* The reviews swipe sideways on a phone, the next card peeking in. */
  .reviews { columns: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews li { flex: 0 0 min(78vw, 300px); margin: 0; scroll-snap-align: start; }
  .review { height: 100%; box-sizing: border-box; }
}

/* ---- the trail: as the page scrolls, the sun walks from week 0 to week 40 along a thin line at
        the top of the window. Driven by scrolling alone (no script, nothing runs when still);
        browsers without scroll-driven animation simply do not show it. */
.trail { display: none; }
@supports (animation-timeline: scroll()) {
  .trail { display: block; position: fixed; top: 12px; left: 16px; right: 16px; z-index: 30; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); pointer-events: none;
    animation: float-in linear both; animation-timeline: scroll(root); animation-range: 20vh 45vh; }
  .trail::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #ed6487, #8b5cf6); transform-origin: left; animation: trail-fill linear both; animation-timeline: scroll(root); }
  .walker { position: absolute; left: 0; top: -15px; display: flex; align-items: center; gap: 2px; animation: trail-walk linear both; animation-timeline: scroll(root); }
  .walker img { width: 32px; height: 32px; filter: drop-shadow(0 3px 5px rgb(60 20 40 / 0.25)); }
  .trail-week { padding: 2px 8px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 11.5px; font-weight: 800; white-space: nowrap; animation: trail-weeks linear both; animation-timeline: scroll(root); }
  .trail-week::after { counter-reset: tw var(--trail-week); content: 'Week ' counter(tw); }
}
@keyframes trail-fill { from { transform: scaleX(0); } }
@keyframes trail-walk { from { transform: translateX(-8px); } to { transform: translateX(calc(100vw - 32px - 104px)); } }
@keyframes trail-weeks { from { --trail-week: 0; } to { --trail-week: 40; } }

/* ---- appearance: the header's switch (match the device, light, dark) is a small form; the Worker
        keeps the choice in a cookie and sends every page with data-theme already set. Every colour
        follows color-scheme through light-dark(); pictures made for one appearance carry .on-light
        or .on-dark and only the shown one is downloaded. ---- */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] .on-dark, :root[data-theme="dark"] .on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .on-dark { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .on-light { display: none; } }
.theme { display: flex; gap: 2px; margin: 0 10px 0 auto; padding: 3px; border-radius: 999px; background: var(--chip); }
.theme button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.theme button:hover { color: var(--text); }
.theme button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-s); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme svg .fill { fill: currentColor; stroke: none; }
/* On a narrow phone the header keeps the icon, the switch and the button; the name is the page's. */
@media (max-width: 520px) {
  header.top { gap: 10px; }
  header.top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .theme { margin-right: 0; }
  .theme button { width: 28px; height: 28px; }
}

/* ---- generated by scripts/build-public.mjs from content/ */
.mk-hero-tall { left: 27.6%; top: 48.14%; }
.pg-hero { width: 23.6%; }
.mk-float { left: 18.72%; top: 50.63%; }
.mk-closing { left: 90.55%; top: 52.08%; }
@keyframes walk {
  0.00% { transform: translate(8.73cqw, 11.393cqw); }
  10.75% { transform: translate(19.21cqw, 11.572cqw); }
  21.50% { transform: translate(29.7cqw, 11.572cqw); }
  32.25% { transform: translate(40.28cqw, 11.303cqw); }
  43.00% { transform: translate(50.59cqw, 11.572cqw); }
  53.75% { transform: translate(60.71cqw, 11.662cqw); }
  64.50% { transform: translate(70.93cqw, 11.755cqw); }
  75.25% { transform: translate(81.33cqw, 11.755cqw); }
  86.00% { transform: translate(90.91cqw, 12.205cqw); }
  100% { transform: translate(90.91cqw, 12.205cqw); }
}
@keyframes weeks { from { --week: 0; } 86%, to { --week: 40; } }
.mk-demo { left: 50.59%; top: 46.29%; }
#square:has(#sq-art-forest:checked) .sq-live .art { opacity: 0; }
#square:has(#sq-art-forest:checked) .sq-live .art.a-forest { opacity: 1; }
#square:has(#sq-art-night:checked) .sq-live .art { opacity: 0; }
#square:has(#sq-art-night:checked) .sq-live .art.a-night { opacity: 1; }
#square:has(#sq-art-reef:checked) .sq-live .art { opacity: 0; }
#square:has(#sq-art-reef:checked) .sq-live .art.a-reef { opacity: 1; }
#square:has(#sq-art-flower:checked) .sq-live .art { opacity: 0; }
#square:has(#sq-art-flower:checked) .sq-live .art.a-flower { opacity: 1; }
#square:has(#sq-count-daysLeft:checked) .sq-live .num { display: none; }
#square:has(#sq-count-daysLeft:checked) .sq-live .num.m-daysLeft { display: block; }
#square:has(#sq-count-daysLeft:checked):has(#sq-cap-std:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-daysLeft:checked):has(#sq-cap-std:checked) .sq-live .cap.std.m-daysLeft { display: block; }
#square:has(#sq-count-daysLeft:checked):has(#sq-cap-own:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-daysLeft:checked):has(#sq-cap-own:checked) .sq-live .cap.own { display: block; }
#square:has(#sq-count-daysLeft:checked):has(#sq-cap-none:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weeksLeft:checked) .sq-live .num { display: none; }
#square:has(#sq-count-weeksLeft:checked) .sq-live .num.m-weeksLeft { display: block; }
#square:has(#sq-count-weeksLeft:checked):has(#sq-cap-std:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weeksLeft:checked):has(#sq-cap-std:checked) .sq-live .cap.std.m-weeksLeft { display: block; }
#square:has(#sq-count-weeksLeft:checked):has(#sq-cap-own:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weeksLeft:checked):has(#sq-cap-own:checked) .sq-live .cap.own { display: block; }
#square:has(#sq-count-weeksLeft:checked):has(#sq-cap-none:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weekDay:checked) .sq-live .num { display: none; }
#square:has(#sq-count-weekDay:checked) .sq-live .num.m-weekDay { display: block; }
#square:has(#sq-count-weekDay:checked):has(#sq-cap-std:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weekDay:checked):has(#sq-cap-std:checked) .sq-live .cap.std.m-weekDay { display: block; }
#square:has(#sq-count-weekDay:checked):has(#sq-cap-own:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-weekDay:checked):has(#sq-cap-own:checked) .sq-live .cap.own { display: block; }
#square:has(#sq-count-weekDay:checked):has(#sq-cap-none:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-daysPassed:checked) .sq-live .num { display: none; }
#square:has(#sq-count-daysPassed:checked) .sq-live .num.m-daysPassed { display: block; }
#square:has(#sq-count-daysPassed:checked):has(#sq-cap-std:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-daysPassed:checked):has(#sq-cap-std:checked) .sq-live .cap.std.m-daysPassed { display: block; }
#square:has(#sq-count-daysPassed:checked):has(#sq-cap-own:checked) .sq-live .cap { display: none; }
#square:has(#sq-count-daysPassed:checked):has(#sq-cap-own:checked) .sq-live .cap.own { display: block; }
#square:has(#sq-count-daysPassed:checked):has(#sq-cap-none:checked) .sq-live .cap { display: none; }
#square:has(#sq-size-s:checked) .sq-live { --v: 16; }
#square:has(#sq-size-m:checked) .sq-live { --v: 22; }
#square:has(#sq-size-l:checked) .sq-live { --v: 30; }
#square:has(#sq-type-sans:checked) .sq-live { font-family: inherit; font-weight: 800; }
#square:has(#sq-place-top:checked) .sq-live { --cy: calc(6 + var(--block) / 2); }
#square:has(#sq-place-top:checked) .sq-live::after { background: linear-gradient(to bottom, rgb(var(--shade) / var(--oa)), transparent 62%); }
#square:has(#sq-place-center:checked) .sq-live { --cy: 50; }
#square:has(#sq-place-center:checked) .sq-live::after { display: none; }
.w-journey.blossom { background: linear-gradient(120deg, #ffe9ee, #ffe6dc); --fill: #c94670; }
#journeys:has(#jr-mood-blossom:checked) .card-demo .w-journey { background: linear-gradient(120deg, #ffe9ee, #ffe6dc); --fill: #c94670; }
.w-journey.aurora { background: linear-gradient(120deg, #e5f1fb, #d9f3ee); --fill: #1768b0; }
#journeys:has(#jr-mood-aurora:checked) .card-demo .w-journey { background: linear-gradient(120deg, #e5f1fb, #d9f3ee); --fill: #1768b0; }
.w-journey.meadow { background: linear-gradient(120deg, #eef7e6, #fdf3d9); --fill: #287651; }
#journeys:has(#jr-mood-meadow:checked) .card-demo .w-journey { background: linear-gradient(120deg, #eef7e6, #fdf3d9); --fill: #287651; }
.w-journey.sunset { background: linear-gradient(120deg, #fff0dd, #f9e3ec); --fill: #c84e37; }
#journeys:has(#jr-mood-sunset:checked) .card-demo .w-journey { background: linear-gradient(120deg, #fff0dd, #f9e3ec); --fill: #c84e37; }
.pg-demo { width: 60.0%; }
.world-forest { --tint: 72 168 248; }
.mk-w-forest { left: 50.59%; top: 46.29%; }
.world-sweets { --tint: 248 184 184; }
.mk-w-sweets { left: 49.55%; top: 44.85%; }
.world-drawing { --tint: 8 8 8; }
.mk-w-drawing { left: 48.73%; top: 48.1%; }
.world-flower { --tint: 248 136 152; }
.mk-w-flower { left: 57.19%; top: 51.36%; }
.world-night { --tint: 8 8 56; }
.mk-w-night { left: 50.59%; top: 47.74%; }
.world-reef { --tint: 8 152 248; }
.mk-w-reef { left: 50.9%; top: 51.36%; }
.world-toys { --tint: 232 200 152; }
.mk-w-toys { left: 55.88%; top: 48.1%; }
