/* positionapp.xyz v3.
   Tokens mirror ios/Position/Design/DS.swift. Fonts are the app's own files, subset to Latin and self-hosted:
   Bricolage Grotesque (display), Manrope (text).
   Shape rule: buttons and inputs are pills (999px); panels are 32px; tiles inside panels 24px; the phone frame has its own device radius.
   One accent (the app's green). The deep green "Position Card" material is the page's one bold surface. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #FAF8F4;
  --raised: #FFFFFF;
  --tile: #EFEDE8;
  --line: #E3E2E0;
  --ink: #0B0F14;
  --ink2: #3A4354;
  --muted: #5E5D5C;
  --accent: #159C79;
  --accent-text: #0B6B52;
  --button: #0B6B52;
  --button-ink: #FFFFFF;
  --button-hover: #095A45;
  --field: #FFFFFF;
  --field-edge: #82817F;
  --ring: rgba(11, 15, 20, .08);
  --focus: #159C79;
  --deep-1: #0F3F31;
  --deep-2: #0B1A16;
  --on-deep: #F4F2EE;
  --on-deep-2: #B9C7C1;
  --mint: #7EE0BD;
  --error: #B42D30;
  --shadow-phone: 0 50px 90px -40px rgba(12, 40, 30, .45), 0 18px 36px -24px rgba(12, 40, 30, .35);
  --shadow-soft: 0 24px 60px -36px rgba(30, 40, 30, .35);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --maxw: 1240px;
  --gutter: 16px;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B0F14; --raised: #121A22; --tile: #141C25; --line: #26303C; --ink: #F4F2EE; --ink2: #C7CDD6; --muted: #9AA3B2;
    --accent: #5FE3B8; --accent-text: #5FE3B8; --button: #5FE3B8; --button-ink: #06231A; --button-hover: #7EE0BD;
    --field: #121A22; --field-edge: #6B7685; --ring: rgba(255, 255, 255, .1); --focus: #5FE3B8;
    --deep-1: #0F3A2E; --deep-2: #0A1512; --error: #FF8A8C;
    --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 18px 36px -24px rgba(0, 0, 0, .7);
    --shadow-soft: 0 24px 60px -36px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0B0F14; --raised: #121A22; --tile: #141C25; --line: #26303C; --ink: #F4F2EE; --ink2: #C7CDD6; --muted: #9AA3B2;
  --accent: #5FE3B8; --accent-text: #5FE3B8; --button: #5FE3B8; --button-ink: #06231A; --button-hover: #7EE0BD;
  --field: #121A22; --field-edge: #6B7685; --ring: rgba(255, 255, 255, .1); --focus: #5FE3B8;
  --deep-1: #0F3A2E; --deep-2: #0A1512; --error: #FF8A8C;
  --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 18px 36px -24px rgba(0, 0, 0, .7);
  --shadow-soft: 0 24px 60px -36px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
section[id], h2, h3, .chapter { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 17px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--raised); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale */
.h-xl { font-size: clamp(44px, 7.2vw, 108px); line-height: .9; letter-spacing: -0.05em; }
.h-l { font-size: clamp(40px, 6.2vw, 84px); line-height: .94; letter-spacing: -0.045em; }
.h-m { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.035em; }
.h-s { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 34ch; }
.body { color: var(--ink2); max-width: 44ch; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons: pills with a visible edge on any background */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 0; font: 700 16px/1 "Manrope", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--button); color: var(--button-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px rgba(11, 107, 82, .7); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--button-hover); } }
.btn-quiet { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field-edge); }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-on-deep { background: var(--on-deep); color: #0B1A16; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 94%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.top::after { content: ""; position: absolute; inset: auto 0 -12px 0; height: 12px; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--ground) 60%, transparent), transparent); opacity: 0; transition: opacity 200ms ease; }
.top.scrolled::after { opacity: 1; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 21px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav .link { display: none; color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .nav .link:hover { color: var(--ink); background: var(--ring); } }
@media (min-width: 960px) { .nav .link { display: inline-block; } .nav .btn { margin-left: 8px; } }

/* Phone frame around real recordings and screenshots. The recordings include the island and the screen corners. */
.device { position: relative; width: 100%; aspect-ratio: 1206 / 2622; border-radius: 14.2% / 6.6%; padding: 2.9%;
  background: linear-gradient(145deg, #2A3038, #0D1015 40%, #1B2027); box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255,255,255,.12); }
.device .screen { position: absolute; inset: 2.9%; border-radius: 11.8% / 5.45%; overflow: hidden; background: #000; isolation: isolate; }
.device .screen > img, .device .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .screen > video { opacity: 0; transition: opacity 300ms ease; }
.device .screen > video.ready { opacity: 1; }

/* Hero */
.hero { padding: 20px 0 0; overflow: clip; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero h1 { max-width: 9.6ch; }
.hero .lede { margin-top: 16px; }
.hero .join { margin-top: 22px; }
.hero-stage { position: relative; display: grid; place-items: center; padding: 16px 0 0; }
.hero-stage::before { content: ""; position: absolute; inset: 18% -40px 0 -40px; border-radius: 40px 40px 0 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(126, 224, 189, .35), transparent 70%), linear-gradient(180deg, var(--deep-1), var(--deep-2)); }
.hero-stage .device { width: min(74vw, 320px); margin-bottom: -18%; }
@media (min-width: 960px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 24px; min-height: min(720px, calc(100dvh - 64px)); }
  .hero-copy { padding-bottom: 56px; }
  .hero-stage { align-self: end; padding-top: 72px; }
  .hero-stage::before { inset: 14% -12% 0 -12%; border-radius: 48px 48px 0 0; }
  .hero-stage .device { width: 340px; margin-bottom: -96px; }
}
/* One load-in moment for the hero, nothing else animates on its own */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .join, .hero-stage .device { animation: rise 900ms var(--ease-out) both; }
  .hero .lede { animation-delay: 80ms; }
  .hero .join { animation-delay: 160ms; }
  .hero-stage .device { animation: lift 1100ms var(--ease-out) 120ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lift { from { opacity: 0; transform: translateY(60px) scale(.96); } }

/* Hero reel: one loop of real recordings; the caption chip floats over the phone's top edge and names each moment.
   The tilt wrapper takes the pointer tilt (site.js), so the device keeps its own load-in animation. */
.hero-tilt { position: relative; transform-style: preserve-3d; }
.hero-cap { position: absolute; left: 50%; top: 0; z-index: 2; transform: translate(-50%, -50%) translateZ(36px);
  display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--raised) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--ring), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.hero-cap-toggle { position: relative; flex: none; display: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px;
  background: var(--button); color: var(--button-ink); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.js .hero-cap-toggle { display: grid; }
.hero-cap-toggle::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; } /* 44 px target */
.hero-cap-toggle:active { transform: scale(.94); }
.hero-cap-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .hero-cap-toggle:hover { background: var(--button-hover); } }
.hero-cap-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.hero-cap-toggle[data-state="pause"] .i-play, .hero-cap-toggle[data-state="play"] .i-pause { opacity: 0; transform: scale(.6); }
.hero-cap-col { display: grid; gap: 7px; padding-left: 2px; }
html:not(.js) .hero-cap { padding-left: 20px; }
.hero-cap-text { display: grid; font: 700 15px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.hero-cap-text > span { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(9px); filter: blur(3px);
  transition: opacity 260ms ease, transform 420ms var(--ease-out), filter 300ms ease; }
.hero-cap-text > span.on { opacity: 1; transform: none; filter: none; transition-delay: 90ms; }
.hero-cap-text > span.was { transform: translateY(-9px); }
.hero-cap-track { position: relative; height: 2px; border-radius: 2px; background: var(--ring); overflow: hidden; }
.hero-cap-track i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.hero-stage { padding-top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-cap { animation: cap-in 700ms var(--ease-out) 650ms both; }
}
@keyframes cap-in { from { opacity: 0; transform: translate(-50%, -30%) translateZ(36px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-cap-text > span, .hero-cap-text > span.was { transform: none; filter: none; }
}
@media (min-width: 960px) { .hero-stage { padding-top: 72px; } }

/* Waitlist form (hero and closing block share it) */
.join-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.join-label { flex: 1 1 100%; display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; color: var(--ink); }
.join-field { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--field-edge);
  background: var(--field); color: var(--ink); font: 600 17px/1 "Manrope", sans-serif; transition: border-color 160ms ease, box-shadow 160ms ease; }
.join-field::placeholder { color: var(--muted); opacity: 1; }
.join-field:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.join-field[aria-invalid="true"] { border-color: var(--error); }
.join-form .btn { height: 56px; flex: 0 0 auto; padding: 0 26px; }
@media (max-width: 479px) { .join-form .btn { flex: 1 1 100%; } }
.join-help { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.join-help.error { color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Story: one sticky stage on desktop, a phone per chapter on phones */
.story { padding: 140px 0 40px; }
.story-head { max-width: 15ch; }
.story-grid { display: grid; gap: 0; margin-top: 24px; }
.chapter { padding: 56px 0; display: grid; gap: 28px; }
.chapter .h-l { max-width: 11ch; }
.chapter .body { font-size: 18px; }
.chapter .device { width: min(72vw, 300px); margin: 8px auto 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; color: var(--ink2); }
.chip img { width: 26px; height: 26px; border-radius: 50%; }
.stage { display: none; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .chapter { min-height: 88vh; align-content: center; padding: 0; }
  .chapter .device { display: none; }
  .chapter h3, .chapter .body { color: var(--muted); transition: color 400ms ease; }
  .chapter h3 { color: color-mix(in srgb, var(--muted) 70%, var(--ground)); }
  .chapter.active h3 { color: var(--ink); }
  .chapter.active .body { color: var(--ink2); }
  .stage { display: block; position: sticky; top: 80px; height: calc(100vh - 104px); min-height: 600px; border-radius: 40px; overflow: hidden;
    background: radial-gradient(70% 50% at 50% 8%, rgba(126, 224, 189, .32), transparent 70%), linear-gradient(180deg, var(--deep-1), var(--deep-2)); }
  .stage .device { position: absolute; left: 50%; top: 50%; height: min(84%, 700px); width: auto; transform: translate(-50%, -50%); }
  .stage .screen > figure { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 420ms ease; }
  .stage .screen > figure.on { opacity: 1; }
  .stage .screen > figure img, .stage .screen > figure video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .stage-dots { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
  .stage-dots span { width: 6px; height: 22px; border-radius: 3px; background: rgba(244, 242, 238, .25); transition: background-color 300ms ease, height 300ms var(--ease-out); }
  .stage-dots span.on { background: var(--mint); height: 40px; }
}
.chapter .device .screen video, .stage video { opacity: 0; transition: opacity 300ms ease; }
.chapter .device .screen video.ready, .stage video.ready { opacity: 1; }

/* Baskets: a real sequence, so numbered */
.basket { padding: 120px 0; }
.basket-head { display: grid; gap: 18px; max-width: 760px; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.steps::-webkit-scrollbar { display: none; }
.step { scroll-snap-align: center; display: grid; gap: 22px; align-content: start; }
.step .device { width: 100%; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--ground); font: 800 15px/1 var(--display); }
.step h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.1; margin-top: 12px; font-weight: 700; }
.step p { color: var(--ink2); margin-top: 8px; font-size: 16px; }
.quote { font-family: var(--display); font-weight: 700; color: var(--ink); }
@media (min-width: 1100px) {
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 64px 0 0; padding: 0; gap: 28px; }
  .step:nth-child(even) { margin-top: 72px; }
}

/* Promises: founder-voice claims in an asymmetric bento */
.promises { padding: 40px 0 120px; }
.bento { display: grid; gap: 16px; }
.cell { position: relative; min-height: min-content; border-radius: 32px; overflow: hidden; padding: 32px; background: var(--tile); display: grid; align-content: start; gap: 12px; }
.cell p { color: var(--ink2); max-width: 34ch; font-size: 18px; }
.cell-deep { background: radial-gradient(80% 70% at 80% 100%, rgba(126, 224, 189, .28), transparent 70%), linear-gradient(160deg, var(--deep-1), var(--deep-2)); color: var(--on-deep); }
.cell-deep p { color: var(--on-deep-2); }
.cell-instant { min-height: 0; }
.lens { position: relative; margin-top: 20px; border-radius: 28px; overflow: hidden; aspect-ratio: 960 / 764; background: #F4F3EF;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -30px rgba(0,0,0,.6); }
.lens img, .lens video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens video { opacity: 0; transition: opacity 300ms ease; }
.lens video.ready { opacity: 1; }
.cell-raised { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.fee-proof { margin-top: 16px; border-radius: 20px; overflow: hidden; background: #fff; padding: 10px 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); max-width: 440px; }
.fee-proof img { width: 100%; }
/* Logo band under the hero: real logos, one marquee on the page */
.logos-band { padding: 44px 0 0; position: relative; z-index: 1; background: var(--ground); }
.logos-band .marquee { margin: 0; }
.marquee { margin: 18px -32px 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 14px; width: max-content; padding: 4px 0; }
.marquee li img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.35); background: #fff; }
@media (prefers-reduced-motion: no-preference) { .marquee ul { animation: slide 40s linear infinite; } }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto; }
  .cell-instant { grid-row: span 2; align-content: space-between; }
  .cell-wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .cell { padding: 40px; }
}

/* Riva */
.riva { padding: 120px 0; }
.riva-grid { display: grid; gap: 48px; align-items: center; }
.riva-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 0 auto; width: 100%; }
.riva-phones .device:last-child { transform: translateY(48px); }
.riva-points { display: grid; gap: 14px; margin-top: 28px; }
.riva-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink2); }
.riva-points svg { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
@media (min-width: 960px) { .riva-grid { grid-template-columns: .9fr 1.1fr; } }

/* Everyday: a quiet grid of the rest of the app */
.everyday { padding: 40px 0 120px; }
.everyday-grid { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
.mini { border-radius: 28px; background: var(--tile); padding: 28px 28px 0; overflow: hidden; display: grid; gap: 8px; grid-template-rows: auto auto 1fr; }
.mini h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 700; }
.mini p { color: var(--ink2); font-size: 16px; max-width: 32ch; }
.mini .peek { align-self: end; margin: 18px auto 0; width: min(100%, 260px); aspect-ratio: 1206 / 1500; border-radius: 36px 36px 0 0; overflow: hidden;
  box-shadow: 0 0 0 7px #11161C, 0 30px 50px -30px rgba(0,0,0,.5); background: #000; }
.mini .peek img { width: 100%; height: auto; }
@media (min-width: 720px) {
  .everyday-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 32px; padding-top: 40px; }
  .mini-wide h3 { grid-row: 2; }
  .mini-wide p { grid-row: 3; }
  .mini-wide > :not(.peek) { grid-column: 1; }
  .mini-wide .peek { grid-column: 2; grid-row: 1 / -1; width: min(100%, 300px); }
  .mini-wide h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; font-weight: 800; }
  .mini-wide p { font-size: 18px; }
}

/* Security: the one full deep panel */
.keys { padding: 0 0 120px; }
.keys-card { border-radius: 40px; padding: 56px 24px; color: var(--on-deep); overflow: hidden; position: relative;
  background: radial-gradient(60% 60% at 90% 0%, rgba(126, 224, 189, .25), transparent 70%), linear-gradient(170deg, var(--deep-1), var(--deep-2) 75%); }
.keys-card .h-l { max-width: 9ch; }
.keys-card .lede { color: var(--on-deep-2); margin-top: 20px; }
.keys-list { display: grid; gap: 28px; margin-top: 48px; }
.keys-list li { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(244, 242, 238, .16); }
.keys-list strong { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--on-deep); }
.keys-list span { color: var(--on-deep-2); font-size: 16px; }
@media (min-width: 720px) { .keys-card { padding: 72px 64px; } .keys-list { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
@media (min-width: 1100px) { .keys-list { grid-template-columns: repeat(4, 1fr); } }

/* Film */
.film-sec { padding: 0 0 120px; }
.film-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.film { position: relative; margin: 0; border-radius: 32px; overflow: hidden; background: #F7F4ED; aspect-ratio: 16 / 9; box-shadow: inset 0 0 0 1px var(--line); }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity 300ms ease; }
.film.playing video { opacity: 1; }
.film-play { position: absolute; left: 20px; bottom: 20px; }
.film.playing .film-play { opacity: 0; pointer-events: none; }
.film-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.film-tools button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11, 15, 20, .72); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.film-tools svg { width: 20px; height: 20px; fill: currentColor; }
.film-tools [hidden] { display: none; }
@media (max-width: 719px) { .film { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; } }

/* Waitlist block */
.waitlist { padding: 0 0 120px; }
.waitlist-card { border-radius: 40px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); padding: 48px 24px; display: grid; gap: 48px; }
.waitlist-card .h-l { max-width: 10ch; }
.waitlist-card .lede { margin-top: 18px; }
.waitlist-card .join { margin-top: 28px; }
.next { display: grid; gap: 18px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.next li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tile); font: 800 15px/1 var(--display); color: var(--ink); }
.next strong { display: block; font-weight: 700; color: var(--ink); }
.next span { color: var(--ink2); font-size: 16px; }
.device-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: 24px; background: var(--tile); margin-top: 28px; }
.device-note img { width: 108px; height: 108px; border-radius: 14px; background: #fff; padding: 8px; }
.device-note strong { display: block; font-weight: 700; }
.device-note span { color: var(--ink2); font-size: 15px; }
@media (hover: none), (max-width: 719px) { .device-note .qr { display: none; } .device-note { grid-template-columns: 1fr; } }
@media (min-width: 960px) { .waitlist-card { grid-template-columns: 1.1fr .9fr; padding: 72px 64px; align-items: start; } }

/* After signup */
.joined { display: grid; gap: 22px; }
.joined[hidden] { display: none; }
.joined:focus { outline: none; }
.joined .follow { color: var(--ink2); font-size: 15px; }
.joined .follow a { color: var(--accent-text); font-weight: 700; }
.joined-title { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -0.025em; }
.confirm-note { display: grid; gap: 12px; justify-items: start; padding: 18px 20px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.confirm-note p { color: var(--ink); font-weight: 600; }
.share strong { font-weight: 700; color: var(--ink); }
.share > span { color: var(--ink2); font-size: 15px; }
.share > .share-count { color: var(--accent-text); font-weight: 700; }
.hero .joined { max-width: 560px; }
.hero .joined .place b { font-size: clamp(48px, 6vw, 72px); }
.place { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.place b { font: 800 clamp(56px, 8vw, 96px)/.9 var(--display); letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.place span { color: var(--ink2); font-weight: 600; }
.share { display: grid; gap: 10px; padding: 20px; border-radius: 24px; background: var(--tile); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-link { flex: 1 1 100%; min-width: 0; height: 48px; display: flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--field);
  box-shadow: inset 0 0 0 1.5px var(--field-edge); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); user-select: all; }
.share .btn { min-height: 48px; }
.joined .next { margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) { .joined:not([hidden]) { animation: rise 600ms var(--ease-out) both; } }

/* FAQ */
.qa { padding: 0 0 120px; }
.qa-grid { display: grid; gap: 32px; }
.qa-list details { border-bottom: 1px solid var(--line); }
.qa-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0;
  font: 700 19px/1.3 "Manrope", sans-serif; color: var(--ink); min-height: 44px; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(var(--ink2), var(--ink2)) center / 12px 2px no-repeat, linear-gradient(var(--ink2), var(--ink2)) center / 2px 12px no-repeat, var(--tile);
  transition: transform 250ms var(--ease-out); }
.qa-list details[open] summary::after { transform: rotate(45deg); }
.qa-list details p { color: var(--ink2); padding: 0 0 22px; max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .qa-list { interpolate-size: allow-keywords; }
  .qa-list details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
  .qa-list details[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { .qa-list details::details-content { transition: none; } }
}
@media (min-width: 960px) { .qa-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .qa-grid h2 { position: sticky; top: 100px; align-self: start; } }

/* Footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--ink2); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--ink); text-decoration: underline; } }
.foot .risk { max-width: 72ch; line-height: 1.6; }
.foot .brand { font-size: 19px; }

/* Plain pages (privacy, terms, support, waitlist status) */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); line-height: .98; letter-spacing: -0.045em; }
.page .lede { margin-top: 16px; font-size: 19px; color: var(--ink2); max-width: 46ch; }
.page h2 { font-size: 26px; margin-top: 44px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.page p, .page li { color: var(--ink2); margin-top: 12px; }
.page ul { padding-left: 20px; list-style: disc; }
.page .note { margin-top: 24px; padding: 20px; border-radius: 20px; background: var(--tile); }
.status-card { margin-top: 32px; border-radius: 32px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); padding: 32px 24px; display: grid; gap: 22px; }
@media (min-width: 720px) { .status-card { padding: 44px; } }
.page .next li { margin-top: 0; }

/* Scroll reveal for content blocks (JS adds .js; reduced motion skips it) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .top { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage, :root:not([data-theme="light"]) .keys-card, :root:not([data-theme="light"]) .cell-deep { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); } }
:root[data-theme="dark"] .stage, :root[data-theme="dark"] .keys-card, :root[data-theme="dark"] .cell-deep { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.ts-box { margin-top: 12px; }
