/* Basqet landing page (Oct 23, 2026; the hero is the demo, Nov 1): this file is the page's own styles and the tokens the whole site
   shares. The phone's internals (the app screens and sheets the engine renders) are screen.css, which loads first; this
   file loads after it so the page's few overrides win at equal specificity. Mobile first; one typeface pair (Instrument
   Serif for every headline, Figtree for everything else; the Rubik wordmark is the logo, and Rubik stays inside the
   phone); one motion (200 ms, one ease); purple is the door to Basqet+, green is Basqet. */

/* Fonts, self-hosted (Figtree, Instrument Serif, Rubik: SIL Open Font License), the latin and latin-ext subsets as Google Fonts cuts them. Swap on arrival; the latin files are preloaded from the head. */
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/figtree-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/figtree-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/figtree-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/figtree-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrumentserif-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrumentserif-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrumentserif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrumentserif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/rubik-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/rubik-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  /* shared with screen.css: the phone's colours. Dark mode never changes these, so the phone's content stays light. */
  --cream: #F5F1E8; --paper: #FFFDF8; --ink: #16211B; --forest: #1D4A34; --forest-2: #163B2A; --green: #0F7D43;
  --mint: #7FE0A6; --tint: #E2EFE4; --sand: #E4DDCC; --line: #D9D1BF; --muted: #5E6A62; --body: #3E4A43; --yellow: #F5C518;
  --ss: #D2363C; --nf: #F5C518; --so: #1E7B3F; --wm: #1D63C4; --sw: #8B1E2F; --fc: #C4540A;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --ease-out: cubic-bezier(.22, .8, .24, 1); --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-card: 0 1px 0 rgba(22,33,27,.04), 0 30px 60px -32px rgba(22,33,27,.45);
  /* Basqet+: one purple, a deep plum. --plum-light is the colour on cream, paper and white (7.3:1 on cream); --plum-dark
     is the same colour re-tuned for the dark page (7.4:1 on #1C1F1B, 4.5:1 on the forest green). --plum is whichever
     the page is using; --plum-ink is the text on it. Purple marks the door to every paid feature, never the room, and
     never shares an element with green. */
  --plum-light: #5B3F8F; --plum-dark: #B9A2E8;
  --plum: var(--plum-light); --plum-ink: #FFFFFF;
  /* the page: these change in dark mode */
  --pg: var(--cream); --pg-card: var(--paper); --pg-ink: var(--ink); --pg-body: var(--body); --pg-muted: var(--muted);
  --pg-line: var(--line); --pg-green: var(--green); --pg-brand: var(--forest); --pg-field: #FFFFFF;
  --ease: cubic-bezier(.22, .8, .24, 1); --t: 200ms;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif; --sans: Figtree, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) and (max-width: 899px) { html .hcl { color: #F5F1E8; } html .hcs { color: rgba(245, 241, 232, .95); } }
@media (prefers-color-scheme: dark) {
  :root { --plum: var(--plum-dark); --plum-ink: #16211B; --pg: #1C1F1B; --pg-card: #262A26; --pg-ink: #F1EEE6; --pg-body: #C9CFC9; --pg-muted: #9AA59D; --pg-line: #3A403A; --pg-green: var(--mint); --pg-brand: var(--mint); --pg-field: #262A26; }
  /* the phone keeps the light purple with white on it, whatever the page is doing */
  .scr, .stamp { --plum: var(--plum-light); --plum-ink: #FFFFFF; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* one light, top-left and slightly warm (Nov 9, 2026; docs/tokens.json depth): every shadow on the page falls below-right, every highlight sits top-left. The page is a gentle gradient, lighter at the top. */
:root { --pg-grad: linear-gradient(180deg, #FAF7F0 0%, #F3EFE6 60%, #F1ECE2 100%); }
@media (prefers-color-scheme: dark) { :root { --pg-grad: linear-gradient(180deg, #22261F 0%, #1C1F1B 50%, #171A16 100%); } }
/* the lit backdrop (Nov 9, late): a soft radial light top-left over the gradient, and a tiling grain over everything (3% in light, 4.5% in dark) */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); --light-pool: radial-gradient(ellipse 70% 45% at 15% 0%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%); }
@media (prefers-color-scheme: dark) { :root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); --light-pool: radial-gradient(ellipse 70% 45% at 15% 0%, rgba(140, 200, 165, .14), rgba(140, 200, 165, 0) 70%); } }
body { margin: 0; background-color: var(--pg); background-image: var(--grain), var(--light-pool), var(--pg-grad); background-repeat: repeat, no-repeat, no-repeat; background-size: 160px 160px, 100% 100%, 100% 100%; color: var(--pg-ink); font-family: var(--sans); line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; line-height: 1.04; text-wrap: balance; }
em.i { font-style: italic; font-weight: inherit; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
img, svg { display: block; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--pg-card); color: var(--pg-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--pg-green); outline-offset: 3px; }
section { scroll-margin-top: 16px; }

/* ---------- the only motion on the page: 200 ms, one ease. Buttons lift 1 px on hover over 120 ms; chips press 1 px.
   Every button has an explicit height as well as its minimum (Oct 29): a <button> with native appearance can ignore min-height
   on some phones and collapse to a bar. ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; height: 52px; padding: 0 24px; border-radius: 14px; background: var(--plum); color: var(--plum-ink); font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform 120ms var(--ease); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn.sm { min-height: 42px; height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.stc { transition: transform 120ms var(--ease); }
.stc:active { transform: translateY(1px); }

/* ---------- Basqet+: the door, never the room ---------- */
.ptag { display: inline-flex; align-items: center; font: 700 11px/1.5 var(--sans); letter-spacing: .01em; color: var(--plum-ink); background: var(--plum); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
/* the + mark: a small purple rounded square with a white plus, about a cap tall in its sentence; the same mark in the hero
   sentence and on the price card; in the hero it is a link to the price card and reads "plus" */
.pmark { display: inline-block; position: relative; width: .7em; height: .7em; vertical-align: -.02em; border-radius: .18em; background: var(--plum); margin: 0 .2em; text-decoration: none; }
.pmark i { position: absolute; inset: 0; }
.pmark i::before, .pmark i::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--plum-ink); border-radius: 1px; }
.pmark i::before { width: 56%; height: 12%; } .pmark i::after { width: 12%; height: 56%; }
a.pmark::after { content: ''; position: absolute; inset: -12px; } /* a 24 px hit area around the small mark */
html.ready .pmark { animation: pop 150ms var(--ease-pop) both; }
@keyframes pop { from { transform: scale(.3); } to { transform: none; } }

/* ---------- the nav: the brand and the door, nothing else; 48 px on phones, 64 on desktop, static (nothing on the page sticks or is fixed) ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 12px; }
.top .btn.sm { min-height: 32px; height: 32px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 800 21px Rubik, var(--sans); letter-spacing: -.02em; text-decoration: none; color: var(--pg-ink); }
.brand .mark { width: 26px; height: 26px; color: var(--pg-brand); overflow: visible; }

/* ---------- the phone frame (Nov 1, 2026): the one component a phone is drawn with. 300 × 650 (iPhone proportions) at --pfw: 300px,
   a dark frame with a 44 px radius and a soft shadow, the screen inset a thirtieth of the width (so the film, the engine's own 336 × 756
   screen with its status bar at 2×, fills it exactly), scaled by --pfw alone. ---------- */
.pframe { --pfw: 300px; position: relative; flex: none; width: var(--pfw); aspect-ratio: 300 / 650; border-radius: calc(var(--pfw) * 44 / 300); background: #0F1512; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px #3a4a41, inset 0 1px 0 3px rgba(255, 255, 255, .06); }
.pscr { position: absolute; inset: calc(var(--pfw) / 30); border-radius: calc(var(--pfw) * 34 / 300); overflow: hidden; background: #F6F2E9; }
.pscr img, .pscr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; background: #F6F2E9; }

/* ---------- the hero is the demo (Nov 1, 2026), phones first. The page is the nav, the hero, the two buttons, then the sections; nothing
   sticks, nothing is fixed, and no rule anywhere sizes from svh, dvh or vh: app.js reads the viewport's height once at load into --svh
   (pixels) and uses it only to size the frame once. The hero on a phone: the headline (44 px) and the + sentence centred, the frame
   (300 × 650, or narrower, picked once at load so the two buttons sit inside the first viewport; --hfw from app.js) centred on a soft
   mint glow, the caption under it (the serif line at 26 px, the sentence at 17), the five dots, then Try it yourself (green) and Get
   early access (purple), full width, 16 px apart. The captions are stacked in one grid cell, so the block is as tall as the tallest
   and nothing else moves when the chapter changes; the captions hand over with opacity and an 8 px rise (.hc, Nov 22). ---------- */
/* Nov 11: the hero clips sideways only (the glow may run past its top and bottom, and off the page's edge), and the grain runs across the whole hero, fading out over its last 240 px, so the lit backdrop has no edge anywhere */
.hero { position: relative; padding: 0 0 24px; overflow-x: clip; --hgrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --glow: 47, 107, 75; --ga1: .36; --ga2: .16; --ga3: .09; }
.hero::before { content: ''; position: absolute; inset: -100px 0 -80px; z-index: -1; pointer-events: none; background: var(--hgrain) 0 0 / 180px 180px; -webkit-mask-image: linear-gradient(#000 calc(100% - 240px), transparent); mask-image: linear-gradient(#000 calc(100% - 240px), transparent); } /* it starts above the page's top, behind the nav, so it has no top edge either */
@media (prefers-color-scheme: dark) { .hero { --hgrain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --glow: 127, 224, 166; --ga1: .3; --ga2: .13; --ga3: .08; } }
@media (prefers-color-scheme: dark) and (max-width: 899px) { .hero { --ga1: .2; --ga2: .08; --ga3: 0; } }
.hgrid { position: relative; display: flex; flex-direction: column; align-items: center; }
.hleft { display: contents; }
.hcopy { order: 0; text-align: center; }
/* the phone hero (Nov 2): nav 48, the headline on one line at 40 px, 12, the phone, 12, the caption, the dots, and the dots end 12 px
   above the viewport's bottom edge; the phone takes every pixel left (app.js, once at load). The two buttons sit just below the fold. */
.hero h1 { font-size: 40px; line-height: 1; letter-spacing: -.015em; color: var(--pg-ink); white-space: nowrap; }
/* the frame on its glow: mint light with a fine grain, a soft disc behind the phone, sized from the frame */
.hfilm { order: 1; position: relative; margin-top: 12px; display: grid; place-items: center; perspective: 1200px; perspective-origin: 50% 40%; }
/* the phone is still (Nov 11): no idle drift on phones, no pointer or scroll parallax on desktop; a soft radial glow of lighter forest behind it, and a large, soft shadow below-right so it sits in space */
/* the phone as an object in space (Nov 9, late; tokens depth.landing.phone): a large soft shadow below and behind it, a tighter contact shadow at its base, a rim highlight on its top-left edge; it sits in a pool of light with a faint second ring further out */
.hfilm .pframe { --float: rgba(28, 24, 16, .28); --contact: rgba(28, 24, 16, .3); background: url(assets/phone-frame.svg) center / 100% 100% no-repeat; box-shadow: 0 12px 24px -8px var(--contact); }
/* the float shadow (Nov 11): the same soft shadow (the frame less 20 px, 60 px down, a 200 px falloff) built from two crossed gradient ramps instead of a 120 px box-shadow blur, which browsers clip to a box on 2× screens: that box was the hard edge left of and under the phone. It overflows the frame and never needs room in the layout. */
.hfilm .pframe::before { content: ''; position: absolute; inset: -20px -80px -140px; z-index: -1; pointer-events: none; background: var(--float); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.07) 40px, rgba(0,0,0,0.27) 80px, rgba(0,0,0,0.5) 100px, rgba(0,0,0,0.73) 120px, rgba(0,0,0,0.93) 160px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) calc(100% - 200px), rgba(0,0,0,0.93) calc(100% - 160px), rgba(0,0,0,0.73) calc(100% - 120px), rgba(0,0,0,0.5) calc(100% - 100px), rgba(0,0,0,0.27) calc(100% - 80px), rgba(0,0,0,0.07) calc(100% - 40px), rgba(0,0,0,0) calc(100% - 0px)), linear-gradient(180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.07) 40px, rgba(0,0,0,0.27) 80px, rgba(0,0,0,0.5) 100px, rgba(0,0,0,0.73) 120px, rgba(0,0,0,0.93) 160px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) calc(100% - 200px), rgba(0,0,0,0.93) calc(100% - 160px), rgba(0,0,0,0.73) calc(100% - 120px), rgba(0,0,0,0.5) calc(100% - 100px), rgba(0,0,0,0.27) calc(100% - 80px), rgba(0,0,0,0.07) calc(100% - 40px), rgba(0,0,0,0) calc(100% - 0px)); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.07) 40px, rgba(0,0,0,0.27) 80px, rgba(0,0,0,0.5) 100px, rgba(0,0,0,0.73) 120px, rgba(0,0,0,0.93) 160px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) calc(100% - 200px), rgba(0,0,0,0.93) calc(100% - 160px), rgba(0,0,0,0.73) calc(100% - 120px), rgba(0,0,0,0.5) calc(100% - 100px), rgba(0,0,0,0.27) calc(100% - 80px), rgba(0,0,0,0.07) calc(100% - 40px), rgba(0,0,0,0) calc(100% - 0px)), linear-gradient(180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.07) 40px, rgba(0,0,0,0.27) 80px, rgba(0,0,0,0.5) 100px, rgba(0,0,0,0.73) 120px, rgba(0,0,0,0.93) 160px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) calc(100% - 200px), rgba(0,0,0,0.93) calc(100% - 160px), rgba(0,0,0,0.73) calc(100% - 120px), rgba(0,0,0,0.5) calc(100% - 100px), rgba(0,0,0,0.27) calc(100% - 80px), rgba(0,0,0,0.07) calc(100% - 40px), rgba(0,0,0,0) calc(100% - 0px)); -webkit-mask-composite: source-in; mask-composite: intersect; }
/* the device (Nov 9, late): a drawn frame (assets/phone-frame.svg: bezel gradient, lit top-left rim, keys), the film inside, and a faint diagonal glare over the film */
.hfilm .pscr::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .04) 28%, rgba(255, 255, 255, 0) 46%); }
@media (prefers-color-scheme: dark) { .hfilm .pframe { --float: rgba(4, 14, 9, .6); --contact: rgba(4, 14, 9, .5); } .lift { background: rgba(36, 42, 38, .66); border-color: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); } .lift .lsh { box-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 56px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { html.js .hero.in.go .hfilm { animation: none; opacity: 1; translate: none; } }
/* the glow (Nov 11): two closest-side radials, so both reach zero inside the box on every side and the box itself never shows; the box may overflow the hero and the page */
.hfilm::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--hfw, 300px) * 3.4); height: calc(var(--hfw, 300px) * 3.4); translate: -50% -50%; z-index: -1; pointer-events: none; background: radial-gradient(circle closest-side at 46% 44%, rgba(var(--glow), var(--ga1)) 0%, rgba(var(--glow), var(--ga2)) 41%, rgba(var(--glow), 0) 76%), radial-gradient(circle closest-side at 46% 44%, rgba(var(--glow), 0) 80%, rgba(var(--glow), var(--ga3)) 88%, rgba(var(--glow), 0) 100%); }
.hframe { --pfw: var(--hfw, 300px); }
/* the lift-out card (Nov 2; presence Nov 3): placed and sized by app.js over the phone, wider than it when its parts need it, never wider
   than the content. A cream card with a hairline mint border, 20 px corners, a tight contact shadow and a soft deep-green ambient one, and
   a 2 px mint glow along its top edge that fades in as it lands. Its parts are canvases, whole rows of the screen drawn every frame from
   the film itself (app.js). The card moves with transform and opacity only, on its own layer (Nov 8); its shadow is a child that fades,
   never an animated box-shadow. It rises out of its spot, and while it is up the screen behind dims to 80%, with a faint mint ghost where
   the card came from. */
/* the lift-out as an object (Nov 9): it rises on a slight 3D path (translateZ in the hero's 1200 px perspective, a 1.5° tilt that settles flat as it lands; app.js), with a 1 px top-left highlight and, in .lsh, a tight shadow and a wide one that move away below-right as it rises, as a cast shadow grows and softens with height. The screen behind dims to 80% (.pdim, Nov 22: an opacity fade; the 1 px blur went with the filter). */
.lift { position: absolute; left: 0; top: 0; z-index: 4; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); opacity: 0; visibility: hidden; pointer-events: none; transform-origin: 0 0; transform: translateZ(0); will-change: transform, opacity; backface-visibility: hidden; transform-style: preserve-3d; }
.lift.up { opacity: 1; visibility: visible; }
.lift .lsh { position: absolute; inset: -1px; border-radius: 20px; box-shadow: 0 2px 6px rgba(60, 50, 30, .12), 0 24px 56px rgba(60, 50, 30, .3); opacity: 0; pointer-events: none; will-change: opacity, transform; transform: translateZ(-1px); z-index: -1; }
.lift canvas { display: block; border-radius: 6px; background: #F6F2E9; }
.lift::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; border-radius: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 20%, rgba(255, 255, 255, .95) 80%, rgba(255, 255, 255, 0)); opacity: 0; transition: opacity 360ms var(--ease); }
/* the one quiet highlight (Nov 8): a soft mint ring over the one thing in the card that changes, drawn by app.js from film.json's focus as the card lands; one slow pulse, then gone. Chapter 5 has no card: the same ring sits on the phone screen itself (.inplace, film.json's marks) */
.lhi { position: absolute; z-index: 2; will-change: opacity; pointer-events: none; border-radius: 10px; border: 2px solid rgba(127, 224, 166, .95); box-shadow: 0 0 0 4px rgba(127, 224, 166, .16); opacity: 0; animation: lhiPulse 1.6s var(--ease) both; }
@keyframes lhiPulse { 0% { opacity: 0; } 18% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
.lhi.inplace { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .lhi { animation: none; opacity: .9; } }
.lift.landed::before { opacity: 1; }
.lrow { display: flex; justify-content: flex-start; align-items: flex-start; gap: 16px; }
.lrow + .lrow { margin-top: 8px; }
.lift.div .lrow + .lrow { padding-top: 8px; border-top: 1px solid #E4DDCC; }
/* the ghost where the card came from: a faint mint outline on the blurred screen */
.lghost { position: absolute; z-index: 3; pointer-events: none; border-radius: 8px; border: 1.5px solid rgba(127, 224, 166, .5); opacity: 0; transition: opacity 240ms var(--ease); }
.lghost.on { opacity: 1; }
/* Directed (Nov 22, 2026): everything that moves in the hero while the film plays moves with transform and opacity only.
   .pcam is the camera, a layer the size of the screen that app.js scales and shifts along film.json's track (one animation, kept on
   the film's clock); the video and .pover (the fingertip, the cards' outlines, the ring on the saved figure) ride on it, so they
   stay on the picture wherever it goes. .pstat is the status bar, drawn from the film's own frames and shown only while the camera
   is off the whole screen: the phone's clock and island stay where a phone has them and the app moves beneath. .pdim is the dim
   behind a card: black at 20%, which is what brightness(.8) drew, as an opacity fade (the 1 px blur is gone with the filter). */
.pcam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform, opacity; }
.pover { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pstat { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; opacity: 0; transition: opacity 160ms linear; }
.pstat.on { opacity: 1; }
.pdim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: 0; transition: opacity 300ms var(--ease); will-change: opacity; }
.hfilm.dim .pdim { opacity: .2; }
/* the fingertip (film.json touches): a soft disc that presses in where a tap lands a beat before the app answers, with one ring
   that opens and fades; on a swipe or a drag the disc travels with the finger. Made ahead of the tap and reused (app.js), sized by --d and placed by a transform, on the camera's layer or
   on the card when the tap is on something the card holds. Dark glass with a light rim, so it reads on cream, white and the green buttons. */
.ftouch { position: absolute; left: 0; top: 0; z-index: 4; width: 0; height: 0; pointer-events: none; will-change: transform; }
.ftouch i { position: absolute; left: calc(var(--d, 30px) / -2); top: calc(var(--d, 30px) / -2); width: var(--d, 30px); height: var(--d, 30px); border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.ftouch .fdot { background: rgba(22, 40, 30, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .78), 0 1px 3px rgba(12, 24, 18, .24); }
.ftouch .fring { border: 1.5px solid rgba(22, 40, 30, .34); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: reduce) { .lift::before, .lghost, .pdim, .pstat { transition: none; } }
/* the play button, only when the film does not autoplay (reduced motion, or a browser that refused): one disc over the first frame */
.fplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: rgba(22, 33, 27, .8); color: #FFFFFF; display: grid; place-items: center; padding-left: 3px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.fplay[hidden] { display: none; }
/* the caption and the dots */
/* Nothing of the film paints over the words (Nov 22, 2026). .hfilm is its own stacking context (perspective), so its float shadow
   (.pframe::before, 140 px below the frame), its glow and a card's cast shadow were drawn over the caption under the phone: in dark
   mode the title was set #F5F1E8 and drew #B7B6AE. The headline, the caption with its dots and the buttons sit one layer above the
   film; the shadow and the glow stay behind them, and the lift-out's dim is on the video alone, inside the screen's clip (.pscr). */
.hcopy, .hcap, .hact { position: relative; z-index: 1; }
.hcap { order: 2; width: 100%; margin-top: 12px; text-align: center; }
.hcaps { display: grid; }
/* the handover (Nov 22): the caption that is leaving lifts 6 px and fades in 200 ms, and only then the next one rises 8 px into
   place over 420 ms (the two are never on screen together); transform and opacity only, and the block never changes size */
.hc { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 200ms cubic-bezier(.4, 0, 1, 1), transform 200ms cubic-bezier(.4, 0, 1, 1); }
.hc.out { transform: translateY(-6px); }
.hc.on { opacity: 1; transform: none; transition: opacity 360ms cubic-bezier(.2, .7, .2, 1) 220ms, transform 420ms cubic-bezier(.2, .7, .2, 1) 220ms; }
@media (prefers-reduced-motion: reduce) { .hc, .hc.on, .hc.out { transform: none; transition: opacity 240ms var(--ease); } }
/* the captions under the phone (Nov 3): the line at 32 px in full cream, the sentence at 19 px in 95% cream, 8 px apart, on the dark page;
   on the light page the same sizes in the page's ink (cream on cream would not read) */
.hcl { font: 400 32px/1.05 var(--serif); letter-spacing: -.01em; color: var(--pg-ink); text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hcs { margin: 8px auto 0; max-width: 36ch; font: 400 19px/1.35 var(--sans); color: color-mix(in srgb, var(--pg-ink) 95%, transparent); text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hdots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.hdots button { width: 32px; height: 24px; display: grid; place-items: center; }
/* the dot and its long form are two shapes in one cell: the dot fades as the pill opens (transform and opacity, no width change) */
.hdots button::before, .hdots button::after { content: ''; grid-area: 1 / 1; height: 6px; border-radius: 3px; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.hdots button::before { width: 6px; background: color-mix(in srgb, var(--pg-ink) 24%, transparent); }
.hdots button::after { width: 24px; background: var(--pg-green); opacity: 0; transform: scaleX(.25); }
.hdots button[aria-current="true"]::before { opacity: 0; }
.hdots button[aria-current="true"]::after { opacity: 1; transform: none; }
/* the two buttons: Try it yourself, then Get early access, full width, 16 px apart */
.hact { order: 3; display: grid; gap: 16px; width: 100%; margin-top: 16px; }
/* the entrance (Nov 2): once the phone is sized (app.js adds .in), the headline fades up over 300 ms, then 150 ms after it the phone
   rises 24 px and fades in over 400 ms; the film starts as the phone lands, and the first caption and the dots fade in with it (.go).
   With reduced motion nothing rises: everything is simply there, and the film still plays. Without JavaScript nothing is hidden. */
html.js .hero h1, html.js .hfilm, html.js .hcap { opacity: 0; }
html.js .hero.in h1 { animation: hup 300ms var(--ease) both; }
html.js .hero.in .hfilm { animation: hrise 400ms var(--ease) 150ms both; }
html.js .hero .hcap { transition: opacity 300ms var(--ease); }
html.js .hero.go .hcap { opacity: 1; }
@keyframes hup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hrise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .hero.in h1, html.js .hero.in .hfilm { animation: none; opacity: 1; } html.js .hero .hcap { transition: none; } }
.hact .btn { width: 100%; }
/* Try it yourself: a real button, the green with white on it (5.3:1), the same in dark mode */
.btn.try { background: var(--green); color: #FFFFFF; }
@media (min-width: 900px) {
  /* Desktop (Nov 1, 2026): a 1200 px wrap on 48 px gutters in two columns. Left, one stack, centred on the frame: the headline at
     72 px and the + sentence, the caption (the serif line at 36 px, the sentence at 17) with the dots under it, then the two buttons
     side by side. Right, the 320 × 693 frame centred on its glow. The nav is 64 px with the full pill. */
  .wrap { width: min(100% - 96px, 1200px); }
  .top { height: 64px; }
  .top .btn.sm { min-height: 42px; height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
  .hero { padding: 16px 0 0; }
  .hgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 46%); column-gap: 32px; align-items: center; }
  .hleft { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0; }
  .hcopy { text-align: left; }
  .hero h1 { font-size: 72px; max-width: 11ch; white-space: normal; }
  .hcap { margin-top: 40px; text-align: left; }
  .hcl { font-size: 36px; }
  .hcs { color: var(--pg-body); }
  .hcs { margin: 6px 0 0; max-width: 36ch; font-size: 17px; }
  .hdots { justify-content: flex-start; margin: 8px 0 0 -4px; } /* the first dot's bar starts on the text's left edge */
  .hact { grid-template-columns: auto auto; justify-content: start; width: auto; margin-top: 32px; }
  .hact .btn { width: auto; min-width: 220px; }
  .hfilm { margin: 0; min-height: 741px; }
  .hframe { --pfw: 320px; --hfw: 320px; }
  .hfilm::before { width: 1088px; height: 1088px; }
  .hfilm::before { width: 896px; height: 896px; }
}

/* ---------- the phone: the frame is in screen.css; the screen renders at the engine's 336 px design width and scales to
   fit (--k from app.js), so rows keep their layout at every size ---------- */
.phone { user-select: none; -webkit-user-select: none; }
.phone .screen > .scr { inset: auto; top: 0; left: 0; width: calc(100% / var(--k, 1)); height: calc(100% / var(--k, 1)); transform: scale(var(--k, 1)); transform-origin: 0 0; }
/* the stamp: "Basqet approved", a rubber stamp in the top right corner of the printed receipt, placed by app.js in the slip's
   own clear top margin so it never sits on a line of text; it lands with a 150 ms pop */
.stamp { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 2.5px solid var(--forest); border-radius: 7px; color: var(--forest); font: 800 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transform-origin: center; transform: translate(-50%, -50%) rotate(-9deg) scale(var(--k, 1)); opacity: 0; mix-blend-mode: multiply; }
.stamp .mark { width: 13px; height: 13px; }
.stamp.on { opacity: .92; animation: approved 150ms var(--ease-pop) both; }
.stamp[hidden] { display: none; }
@keyframes approved { from { transform: translate(-50%, -50%) rotate(-9deg) scale(calc(var(--k, 1) * 1.7)); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-9deg) scale(var(--k, 1)); opacity: .92; } }

/* ---------- how Q works: the five stops and the worked example, nothing else ---------- */
.qsec { padding: 72px 0 24px; }
.qsec h2, .faq h2, .join h2 { font-size: clamp(38px, 5vw, 50px); }
.stops { list-style: none; margin: 28px 0 0; padding: 0; max-width: 560px; }
.stops li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--pg-line); font: 400 16px/1.45 var(--sans); color: var(--pg-body); }
.stops li:last-child { border-bottom: 1px solid var(--pg-line); }
.stops b { font-weight: 700; color: var(--pg-ink); }
.stops li.def b::after { content: 'default'; display: block; font: 600 11px/1.4 var(--sans); color: var(--pg-muted); }
.qsec { padding-bottom: 8px; }

/* ---------- what a family keeps: the worked example on a receipt slip, the same torn-edge cream slip as the app's receipt
   (the slip stays cream in dark mode, as receipts do: it uses the phone's fixed tokens, never the page's). Engine figures
   (app.js): the average near you, Basqet's pick, the week kept, the year. ---------- */
.kept { padding: 56px 0 24px; }
.kept h2 { font-size: clamp(38px, 5vw, 50px); }
.qsent, .ksent { margin-top: 14px; font: 400 17px/1.5 var(--sans); color: var(--pg-body); max-width: 40ch; text-wrap: pretty; }
.kwrap { margin: 28px auto 0; max-width: 420px; padding: 0 16px; }
.kslip { position: relative; background: var(--paper); color: var(--ink); padding: 60px 20px 22px; display: grid; gap: 10px; font: 500 15px/1.4 var(--sans); border-radius: 0 0 6px 6px; filter: drop-shadow(0 14px 22px rgba(20,30,24,.14)); clip-path: polygon(0 6px, 2% 2px, 5% 8px, 11% 3px, 14% 7px, 21% 1px, 24% 6px, 30% 4px, 36% 8px, 39% 2px, 46% 7px, 52% 3px, 56% 8px, 63% 1px, 67% 5px, 74% 8px, 78% 2px, 85% 6px, 90% 1px, 94% 7px, 100% 4px, 100% 100%, 0 100%); }
.kl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--muted); }
.kl b { font-weight: 600; color: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; }
.krule { border-top: 1px dashed var(--sand); margin: 2px 0; }
.kl.sum { color: var(--green); font-size: 17px; }
.kl.sum b { font-weight: 800; }
.kyear { margin-top: 2px; font: 400 32px/1.1 var(--serif); color: var(--green); letter-spacing: -.01em; }
.kyear b { font-weight: 400; font-variant-numeric: tabular-nums; }
/* the stamp in the slip's top right corner, in its clear top margin; it out-ranks .stamp.on so the receipt's landing pop never moves it */
.kslip .kstamp.on { left: auto; right: 16px; top: 14px; transform: rotate(-9deg); animation: none; opacity: .92; --k: 1; }
.kwrap .wlist { margin-top: 14px; }
.kwrap .wlist summary { justify-content: center; }
.wlist { margin-top: 10px; font: 500 14px/1.4 var(--sans); color: var(--pg-body); }
.wlist summary { cursor: pointer; font-weight: 600; color: var(--pg-green); min-height: 44px; display: flex; align-items: center; }
.wlist ul { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--pg-line); }
.wlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--pg-line); }
.wlist li span { font-weight: 700; color: var(--pg-ink); }
.wlist li small { grid-column: 1; font: 500 12px var(--sans); color: var(--pg-muted); }
.wlist li .stc { grid-column: 2; grid-row: 1 / span 2; font-size: 10px; padding: 2px 7px; }
.wlist li b { grid-column: 3; grid-row: 1 / span 2; font: 700 14px var(--sans); color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.wtotal { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 0; font: 600 14px var(--sans); }
.wtotal b { font: 700 16px var(--sans); color: var(--pg-green); font-variant-numeric: tabular-nums; }

/* ---------- price: one card, the purple on its edge and in the mark ---------- */
.price { padding: 48px 0 24px; }
/* the lead line into the price (Nov 2): the hero's old sentence, unchanged, with its purple + mark */
.plead { margin: 0 0 20px; max-width: 34ch; font: 400 18px/1.45 var(--sans); color: var(--pg-body); text-wrap: balance; }
.plead .bq { color: var(--pg-brand); font-weight: 600; }
.pcard { background: var(--pg-card); border: 1px solid var(--pg-line); border-top: 4px solid var(--plum); border-radius: 20px; padding: 26px 24px 24px; max-width: 480px; }
.pname { font: 400 30px/1 var(--serif); color: var(--pg-ink); display: flex; align-items: center; }
.pname .pmark { margin-left: .12em; }
.pbig { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; font: 400 clamp(60px, 11vw, 78px)/1 var(--serif); color: var(--pg-ink); letter-spacing: -.02em; }
.pbig span { font: 400 18px var(--sans); color: var(--pg-body); }
.pweek { margin-top: 6px; font: 400 15px/1.5 var(--sans); color: var(--pg-body); }
.psub { margin-top: 12px; font: 600 16px var(--sans); color: var(--pg-ink); }
.pline { margin-top: 8px; font: 400 15px/1.5 var(--sans); color: var(--pg-body); }
.pcard .btn { margin-top: 20px; width: 100%; }

/* ---------- faq ---------- */
.faq { padding: 48px 0 24px; }
.faqlist { margin-top: 20px; max-width: 680px; border-top: 1px solid var(--pg-line); }
.faqlist details { border-bottom: 1px solid var(--pg-line); }
.faqlist summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font: 600 17px/1.35 var(--sans); color: var(--pg-ink); }
.faqlist summary::-webkit-details-marker { display: none; }
.faqplus { flex: none; width: 14px; height: 14px; position: relative; }
.faqplus::before, .faqplus::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--pg-muted); border-radius: 1px; }
.faqplus::before { width: 14px; height: 2px; } .faqplus::after { width: 2px; height: 14px; }
details[open] .faqplus::after { display: none; }
.faqlist p { padding: 0 0 18px; font: 400 16px/1.55 var(--sans); color: var(--pg-body); max-width: 60ch; text-wrap: pretty; }

/* ---------- sign-up, once ---------- */
.join { padding: 48px 0 72px; }
.jsent { margin-top: 14px; font: 400 18px/1.45 var(--sans); color: var(--pg-body); max-width: 40ch; } /* the founding line under the heading (Nov 22) */
.form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; max-width: 520px; }
/* Where do you shop most? (Nov 16, 2026): one optional question under the postal code, a row of chips that wraps; each chip is a
   checkbox, 44 px high, filled when ticked */
.form .fshops { flex: 0 0 100%; min-width: 0; margin: 6px 0 2px; padding: 0; border: 0; }
.form .fshops legend { padding: 0; margin-bottom: 10px; font: 600 16px/1.3 var(--sans); color: var(--pg-ink); }
.form .fshops legend span { margin-left: 6px; font-weight: 500; font-size: 14px; color: var(--pg-muted); }
.form .fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .fchip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.form .fchip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.form .fchip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pg-line); background: var(--pg-field); color: var(--pg-ink); font: 600 15px/1 var(--sans); transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.form .fchip input:checked + span { background: var(--pg-brand); border-color: var(--pg-brand); color: var(--pg); }
.form .fchip input:focus-visible + span { outline: 2px solid var(--pg-brand); outline-offset: 2px; }
/* the one line a ticked store can bring up under the chips (Nov 23: Costco) */
.form .fhint { margin: 12px 0 0; max-width: 46ch; font: 500 15px/1.45 var(--sans); color: var(--pg-body); text-wrap: pretty; }
.form .fhint[hidden] { display: none; }
.form > .btn { flex: 0 0 auto; }
.form input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--pg-line); background: var(--pg-field); color: var(--pg-ink); font: 500 16px var(--sans); }
.form input::placeholder { color: var(--pg-muted); }
.form .fpost { flex: 0 1 196px; text-transform: uppercase; }
.form .fpost::placeholder { text-transform: none; }
/* the honeypot: off screen, out of the tab order, hidden from screen readers */
.form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* the confirmation that takes the form's place */
.joined { margin-top: 20px; max-width: 520px; }
.joined b { display: block; font: 400 30px/1.1 var(--serif); color: var(--pg-ink); }
.joined span { display: block; margin-top: 8px; font: 400 17px/1.5 var(--sans); color: var(--pg-body); }
@media (max-width: 519px) { .form { flex-direction: column; flex-wrap: nowrap; } .form .btn { width: 100%; } .form .fpost { flex-basis: auto; } .form .fshops { flex: none; } }
.note { margin-top: 12px; font: 500 14px/1.5 var(--sans); color: var(--pg-muted); max-width: 52ch; }
.note.msg { color: var(--pg-ink); }
.note[hidden] { display: none; }

/* ---------- footer ---------- */
.sitefoot { background: var(--forest); color: #F5F1E8; padding: 36px 0 44px; }
.sitefoot .wrap { display: grid; gap: 18px; }
.sitefoot .brand { color: #F5F1E8; }
.sitefoot .brand .mark { color: var(--mint); }
.made { font: 500 15px/1.5 var(--sans); color: #D8E6DC; }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 600 14px var(--sans); }
.sitefoot nav a { text-decoration: none; opacity: .9; display: inline-flex; align-items: center; min-height: 44px; }
.sitefoot nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.legal { font: 500 12.5px/1.5 var(--sans); color: #BFD6C6; max-width: 70ch; }
.credits { font: 500 12px/1.5 var(--sans); color: #BFD6C6; max-width: 70ch; }
.credits summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.credits a { color: inherit; }

/* ---------- Try it yourself: the app full-screen, exactly like a first real open. Phones: the screen is the viewport (the
   density rules in screen.css). Desktop: the phone centred on the dark green. One muted line under the chips, once. ---------- */
html.demo-open body { position: fixed; width: 100%; overflow: hidden; }
.takeover { position: fixed; inset: 0; z-index: 200; background: var(--forest-2); display: flex; align-items: center; justify-content: center; }
.takeover[hidden] { display: none; }
.tclose { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,241,232,.14); color: #F5F1E8; font: 400 26px/1 var(--sans); display: grid; place-items: center; padding: 0 0 3px; }
.takeover .phone { width: auto; max-width: none; height: min(740px, 100% - 48px); aspect-ratio: 360 / 740; } /* of the takeover's own box (inset 0), never a vh unit */
.thint { position: absolute; left: 16px; right: 16px; top: 0; z-index: 3; text-align: center; font: 500 13px/1.4 var(--sans); color: var(--muted); pointer-events: none; opacity: 0; transition: opacity var(--t) var(--ease); }
.thint.in { opacity: 1; }
.thint[hidden] { display: none; }
@media (max-width: 767px) {
  .takeover { background: #F6F2E9; display: block; }
  .takeover .phone { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; background: #F6F2E9; }
  .takeover .phone .screen { inset: 0; border-radius: 0; }
  .takeover .scr { padding-top: calc(28px + env(safe-area-inset-top)); } /* the screen's backdrop runs to the very top; the close button sits in this inset (Nov 9, late) */
  .takeover .scr { border-radius: 0; }
  .takeover .scr .status { display: none; }
  .tclose { top: calc(2px + env(safe-area-inset-top)); right: 8px; width: 28px; height: 28px; background: rgba(22,33,27,.08); color: var(--ink); font-size: 18px; padding-bottom: 2px; }
}
/* the full-screen Try it follows the system on a phone (Nov 8): the page around the screen takes the dark page colour too; app.js sets .scr.dark */
@media (max-width: 767px) and (prefers-color-scheme: dark) {
  .takeover, .takeover .phone { background: #163527; }
  .tclose { background: rgba(255, 255, 255, .1); color: #F2F0E8; }
}

/* ---------- Basqet+ inside the phone: the door is purple (the Basqet+ tags, the Q mark button, TOP PICK on the store sheet,
   the Save more sparkle); the room keeps its greens (the leaf, the Q badges, the store colours) ---------- */
.scr .plus, .scr .ghd .plus, .scr .sheet .ghd .plus, .scr .abtn.find .plus, .scr .hcard .abtn .plus, .scr .bar .plus, .scr .shopact .plus { background: var(--plum); color: var(--plum-ink); }
.scr .qmark { background: var(--plum); color: var(--plum-ink); box-shadow: 0 10px 22px -10px rgba(91,63,143,.6); }
.scr .t3 .bt { background: var(--plum); color: var(--plum-ink); }
.scr .sparkb { color: var(--plum); background: var(--plum-soft, #EFEAF8); }
.scr .sparkb em { background: var(--plum); color: var(--plum-ink); }
.scr .sparkb.off { color: var(--muted); background: var(--soft); }

/* ---------- reduced motion: nothing on the page moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html.ready .pmark, .stamp.on { animation: none; }
  .thint, .btn, .stc, .hdots button::before, .hc { transition: none; }
  .btn:hover, .stc:active { transform: none; }
}
/* ---------- Just one thing? (Oct 28): Search, the one-item answer. A small live card, not a phone: the field, the five stops as
   one segmented scale (they are an order, cheapest to best), then every store's pick for the word, cheapest first, the gap
   to the cheapest in muted text. The card follows the page's light and dark; the store chips and Q badges keep their own colours. ---------- */
.find { padding: 64px 0 8px; }
.find h2 { font-size: clamp(38px, 5vw, 50px); margin-top: 8px; }
.fsent { margin-top: 12px; font: 400 18px/1.45 var(--sans); color: var(--pg-body); max-width: 30ch; }
.fcard { margin-top: 24px; background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--shadow-card); max-width: 480px; min-height: 520px; box-sizing: border-box; display: flex; flex-direction: column; } /* Nov 8: a fixed height that fits the field, the chips and five rows, so typing fills the card in place and nothing on the page reflows */
.ffield { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--pg-field); border: 1.5px solid var(--pg-line); color: var(--pg-muted); transition: border-color var(--t) var(--ease); }
.ffield:focus-within, .fcard.typing .ffield { border-color: var(--pg-green); }
.ffield input { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 0; background: none; padding: 0; color: var(--pg-ink); font: 600 18px var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.ffield input::placeholder { color: var(--pg-muted); font-weight: 500; }
.ffield input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fstops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 10px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--pg-line) 45%, transparent); }
.fstops button { min-height: 34px; padding: 0 2px; border: 0; border-radius: 9px; background: none; color: var(--pg-body); font: 600 12.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.fstops button[aria-pressed="true"] { background: var(--pg-brand); color: var(--pg); }
.fhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 14px 0 4px; min-height: 22px; font: 400 13px/1.4 var(--sans); color: var(--pg-muted); }
.fhead b { font: 700 16px/1.3 var(--sans); color: var(--pg-ink); }
.fhead .for, .ftry { color: var(--pg-muted); }
.fhead button, .ftry button { border: 0; background: none; padding: 4px 2px; min-height: 32px; color: var(--pg-green); font: 600 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.frows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pg-line); min-height: 300px; }
.fnote { margin-top: auto; padding-top: 10px; }
/* a row (Nov 2): one layout and one set of styles for every item at every stop. Left: the store chip, the product with its brand (16 px,
   the page's ink, up to two lines) and its one reason (14 px, the ink at 60%). Right: the Q badge and the price (18 px bold), and under
   them the gap to the cheapest (14 px, the ink at 60%), BEST on the first row. Nothing dims, indents or changes weight with the stop. */
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 10px; align-items: center; height: 60px; box-sizing: border-box; padding: 0; border-bottom: 1px solid var(--pg-line); transition: transform 320ms var(--ease); }
.fl { display: contents; }
.fl .stc { font-size: 11px; padding: 3px 8px; white-space: nowrap; justify-self: start; }
.fl .stc + .fname { grid-column: 2; }
.fname { grid-column: 2; align-self: end; font: 600 15px/1.25 var(--sans); color: var(--pg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fwhy { grid-column: 2; align-self: start; font: 400 13px/1.3 var(--sans); color: color-mix(in srgb, var(--pg-ink) 60%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.frow .stc { grid-row: 1 / 3; }
.fr { grid-column: 3; grid-row: 1 / 3; display: grid; justify-items: end; align-content: center; gap: 3px; text-align: right; }
.fprice { display: flex; align-items: center; gap: 8px; }
.fprice > b { font: 700 16px/1.2 var(--sans); color: var(--pg-ink); font-variant-numeric: tabular-nums; }
/* before a search: five ghosted placeholder rows, the shapes of a row in the line colour */
.frow.ghost { pointer-events: none; }
.frow.ghost i { display: block; border-radius: 6px; background: var(--pg-line); opacity: .55; }
.frow.ghost .gchip { width: 64px; height: 20px; border-radius: 999px; grid-row: 1 / 3; }
.frow.ghost .gname { grid-column: 2; align-self: end; width: 62%; height: 12px; }
.frow.ghost .gwhy { grid-column: 2; align-self: start; width: 40%; height: 9px; margin-top: 6px; }
.frow.ghost .gprice { grid-column: 3; grid-row: 1 / 3; width: 48px; height: 14px; justify-self: end; }
.fprice .qb b { color: var(--pg-ink); font-size: 12px; min-width: 0; }
.fgap { font: 400 13px/1.2 var(--sans); color: color-mix(in srgb, var(--pg-ink) 60%, transparent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fns { font: 400 13px/1.2 var(--sans); color: color-mix(in srgb, var(--pg-ink) 60%, transparent); }
.fbest.closest { background: var(--pg-line); color: var(--pg-body); } /* nothing meets the tier: the closest, not a pick (Nov 8) */
.fbest { font: 800 10px/1 Rubik, var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: var(--plum); color: var(--plum-ink); padding: 4px 8px; border-radius: 999px; }
.frows.in .frow { animation: frIn 340ms var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes frIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fmiss { display: grid; gap: 4px; padding: 18px 0 16px; min-height: 120px; align-content: start; border-bottom: 1px solid var(--pg-line); font: 400 14px/1.45 var(--sans); color: var(--pg-body); }
.fmiss b { font: 700 16px var(--sans); color: var(--pg-ink); }
.ftry { font-size: 13px; }
.fnote { margin-top: 10px; font: 500 12px/1.4 var(--sans); color: var(--pg-muted); }
@media (min-width: 900px) {
  /* Desktop sections (Oct 29, 2026): a 120 px rhythm down the 1200 px wrap. Search as a 480 px card beside its words; the
     five stops as a serif table on a 2 px bar (the slider drawn once, Good's tick and name in green); the kept slip
     alone and centred at 420 px; the price card alone at 480 px; the FAQ in two columns of four; the sign-up full width
     on the forest green with the light purple button, the footer a shade darker under it. */
  .find { padding: 120px 0 0; }
  .fgrid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; column-gap: 64px; align-items: center; } /* two columns from the start (Nov 8): the words left, the card right at 480 px, its height fixed */
  .fcard { margin-top: 0; max-width: 480px; width: 480px; }
  .fsent { font-size: 20px; }
  .qsec { padding: 120px 0 0; }
  .stops { max-width: none; margin-top: 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--pg-ink); }
  .stops li { display: block; position: relative; padding: 22px 0 0; border: 0; }
  .stops li:last-child { border-bottom: 0; }
  .stops li::before { content: ''; position: absolute; left: 0; top: -2px; width: 2px; height: 14px; background: var(--pg-ink); }
  .stops b { display: block; font: 400 34px/1.05 var(--serif); letter-spacing: -.01em; }
  .stops span { display: block; margin-top: 10px; max-width: 18ch; }
  .stops li.def::before, .stops li.def::after { background: var(--pg-green); }
  .stops li.def b { color: var(--pg-green); }
  .stops li.def b::after { display: inline-block; margin-left: 10px; vertical-align: 7px; font: 600 12px/1.4 var(--sans); color: var(--pg-muted); }
  .kept { padding: 120px 0 0; text-align: center; }
  .ksent { margin-inline: auto; }
  .kwrap { margin-top: 36px; max-width: 420px; padding: 0; }
  .wlist { text-align: left; }
  .price { padding: 120px 0 0; }
  .pcard { margin-inline: auto; max-width: 480px; padding: 32px 32px 28px; text-align: center; }
  .plead { margin: 0 auto 28px; max-width: none; text-align: center; font-size: 22px; }
  .pname, .pbig { justify-content: center; }
  .faq { padding: 120px 0; }
  .faqlist { max-width: none; margin-top: 32px; border-top: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; grid-template-rows: repeat(4, auto); grid-auto-flow: column; align-items: start; }
  .faqlist details:nth-child(4n + 1) { border-top: 1px solid var(--pg-line); }
  .join { padding: 120px 0 112px; background: var(--forest); color: #F5F1E8; text-align: center; }
  .join h2 { color: #F5F1E8; }
  .jsent { margin: 16px auto 0; font-size: 20px; color: #D8E6DC; }
  .form { margin: 28px auto 0; max-width: 680px; justify-content: center; }
  .form .fshops { margin-top: 14px; }
  .form .fshops legend { margin: 0 auto 12px; color: #F5F1E8; }
  .form .fshops legend span { color: #BFD6C6; }
  .form .fchips { justify-content: center; }
  .form .fchip span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #F5F1E8; }
  .form .fchip input:checked + span { background: var(--mint); border-color: var(--mint); color: #16211B; }
  .form .fchip input:focus-visible + span { outline-color: var(--mint); }
  .form .fhint { margin: 14px auto 0; max-width: none; color: #D8E6DC; }
  .form > .btn { margin-top: 10px; min-width: 240px; }
  .joined { margin: 28px auto 0; }
  .joined b { color: #F5F1E8; } .joined span { color: #D8E6DC; }
  .form input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #F5F1E8; }
  .form input::placeholder { color: #BFD6C6; }
  .join .btn { background: var(--plum-dark); color: #16211B; }
  .join :focus-visible { outline-color: var(--mint); }
  .note { margin: 14px auto 0; color: #BFD6C6; }
  .note.msg { color: #F5F1E8; }
  .sitefoot { background: var(--forest-2); }
}
@media (prefers-reduced-motion: reduce) { .frow, .frows.in .frow, .ffield, .fstops button { animation: none; transition: none; } }
