/* Recibe marketing site: tokens, landing page, and the not-found/get states.
   Mobile-first; breakpoints at 720px and 1040px. */

@font-face { font-family: "Fraunces"; src: url(/site/fonts/fraunces-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/site/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/site/fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FAF4EA; --card: #FFFFFF; --ink: #2A1F17; --ink2: #6E5D4D; --line: #E8DCCB;
  --accent: #B83E24; --accent-ink: #FFFFFF; --honey: #E9A23B; --herb: #36703A;
  --alt: color-mix(in srgb, var(--card) 60%, var(--bg));
  --tile: color-mix(in srgb, var(--honey) 18%, var(--bg));
  --shadow-soft: 0 10px 24px rgb(60 35 15 / .14);
  --shadow-drop: drop-shadow(0 24px 48px rgb(60 35 15 / .25));
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --gutter: clamp(16px, 5vw, 48px); --max: 1160px;
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --section-y: clamp(56px, 10vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -120px; z-index: 30; padding: 12px 18px; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-soft); }
.skip:focus { top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: transform .15s var(--ease), background-color .15s var(--ease); }
.button:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.button:active { transform: scale(.97); }
.button-small { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: .9375rem; }

.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Store badges: one per platform on phones, both (plus QR) on desktop and without JS */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges a { display: inline-block; min-height: 48px; border-radius: 10px; transition: transform .15s var(--ease); }
.badges a:active { transform: scale(.97); }
.badges img { height: 50px; width: auto; display: block; }
/* The Play badge art carries its own clear space (41 of 250px each side): scale it so the visible badge matches the App Store one. */
.badges [data-store="android"] img { height: 74px; max-width: none; margin: -12px; } /* max-width: none, or the shrink-wrapped link squeezes the art */
html[data-platform="ios"] [data-store="android"], html[data-platform="android"] [data-store="ios"] { display: none; }
html[data-platform="ios"] [data-desktop-only], html[data-platform="android"] [data-desktop-only] { display: none; }

.qr { display: flex; align-items: center; gap: 16px; }
.qr img { display: block; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; }
.qr p { font-size: .875rem; line-height: 1.45; color: var(--ink2); max-width: 26ch; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding-inline: var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 1.25rem/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a:not(.button) { display: none; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--ink); transition: color .15s var(--ease); }
.site-header nav a:not(.button):hover { color: var(--accent); }
@media (min-width: 720px) {
  .site-header nav { gap: 12px; }
  .site-header nav a:not(.button) { display: inline-flex; }
  .site-header nav .button { margin-left: 8px; }
}

/* Hero: copy, then the "recipe card on the counter" stage */
.hero { display: grid; gap: 40px; padding: clamp(8px, 3vw, 32px) var(--pad-x) var(--section-y); }
.hero h1 { font-size: clamp(3rem, 9vw, 5.25rem); line-height: 1; letter-spacing: -0.025em; margin: 14px 0 18px; }
.hero .lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink2); max-width: 34ch; margin-bottom: 28px; }
.hero .qr { margin-top: 32px; }

.hero-stage { position: relative; width: 100%; max-width: 400px; height: 440px; margin-inline: auto; }
.recipe-card { position: absolute; left: 0; top: 52px; width: 180px; transform: rotate(-7deg); border-radius: 4px; box-shadow: 0 14px 30px rgb(60 35 15 / .2); overflow: hidden; }
.recipe-card img { display: block; width: 100%; height: auto; }
.hero-phone { position: absolute; right: 0; top: 0; width: 200px; height: auto; filter: var(--shadow-drop); }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: var(--shadow-soft); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--herb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--herb) 22%, transparent); }
.chip-list::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--herb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chip-scan { left: 72px; top: 30px; }
.chip-list { left: max(0px, calc(100% - 290px)); bottom: 36px; }

.scan-line { position: absolute; inset-inline: 0; height: 3px; top: 12%; background: linear-gradient(90deg, transparent, var(--honey), transparent); box-shadow: 0 0 14px var(--honey); animation: scan 2.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }

@media (max-width: 379px) {
  .recipe-card { width: 170px; }
  .hero-phone { width: 184px; }
}
@media (min-width: 720px) {
  .hero-stage { max-width: 520px; height: 540px; }
  .recipe-card { width: 230px; top: 90px; left: 12px; }
  .hero-phone { width: 250px; right: 12px; }
  .chip-scan { left: 110px; top: 66px; }
  .chip-list { left: auto; right: 170px; bottom: 44px; }
}
@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding-top: 24px; padding-bottom: 48px; }
  .hero-stage { max-width: 540px; height: 600px; margin-inline: auto 0; }
  .recipe-card { width: 260px; top: 120px; left: 0; }
  .hero-phone { width: 280px; right: 0; top: 6px; }
  .chip-scan { left: 118px; top: 94px; }
  .chip-list { right: 196px; bottom: 36px; }
}

/* Try-it demos: section layout */
.demo { display: grid; gap: 32px; align-items: center; padding: var(--section-y) var(--pad-x); }
.demo h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 12px 0 16px; }
.demo-copy p:not(.kicker) { font-size: 1.125rem; color: var(--ink2); max-width: 38ch; }
.demo-stage { min-height: 420px; min-width: 0; }
#try-shop { background: var(--alt); }
@media (min-width: 1040px) {
  .demo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; }
  .demo-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .demo-flip .demo-copy { order: 2; }
  .demo-stage { min-height: 460px; }
}

/* Try-it demos: the stages (built by landing.js). Sized in their own container so they
   fit a 460px-tall slot on desktop and 360px-wide phones. */
.demo-stage {
  container-type: inline-size; display: grid; align-content: center;
  --sunk: #F4E9D8; --ok: var(--herb); --frame: #1C1714; --notch: #1C1714; --ring: var(--line); --plank: #C9A274; --plank-ink: #3B2A1C;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* No data-route means the inline router never ran (JS off or links.js blocked): the stages stay empty, so drop them. */
html:not([data-route]) .demo-stage { display: none; }
.demo-ui { min-width: 0; }
.demo-ui p { margin: 0; }
.demo-ui .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.demo-ui .button:disabled { background: var(--sunk); color: var(--ink2); cursor: default; }
.demo-ui .button[aria-disabled="true"] { opacity: .8; cursor: progress; }
.demo-ui .button[aria-disabled="true"]:hover { background: var(--accent); }
.demo-ui .button:disabled:active, .demo-ui .button[aria-disabled="true"]:active { transform: none; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button-quiet:hover { background: var(--sunk); }
.demo-status { display: flex; align-items: flex-start; gap: 8px; min-height: 1.45em; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ink2); }
.demo-status:not(:empty)::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok) var(--check) center / 12px no-repeat; }
.fi { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunk); }
.fi img { display: block; width: 18px; height: 18px; }
/* Collapsing wrapper: a row or book leaves (or arrives) without shoving its neighbours. */
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s var(--ease) .12s, opacity .18s var(--ease), transform .18s var(--ease); }
.fold > .fold-in { min-height: 0; overflow: hidden; }
.fold.is-out { grid-template-rows: 0fr; opacity: 0; transform: translateX(10px); }
.fold[hidden] { display: none; }

/* Scan */
.scan-ui { display: grid; gap: 18px; }
.scan-cam { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.scan-act { display: grid; gap: 12px; justify-items: start; }
.scan-shot { position: relative; overflow: hidden; padding: 7px; border-radius: 12px; background: var(--tile); }
.scan-shot img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 6px 14px rgb(60 35 15 / .18); }
/* Viewfinder corners */
.scan-shot::before { content: ""; position: absolute; inset: 3px; pointer-events: none; --c: var(--honey);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 3px, linear-gradient(var(--c), var(--c)) left top / 3px 16px,
    linear-gradient(var(--c), var(--c)) right top / 16px 3px, linear-gradient(var(--c), var(--c)) right top / 3px 16px,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 3px, linear-gradient(var(--c), var(--c)) left bottom / 3px 16px,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 3px, linear-gradient(var(--c), var(--c)) right bottom / 3px 16px;
  background-repeat: no-repeat; border-radius: 4px; z-index: 1; }
.scan-sweep { position: absolute; inset: 0; opacity: 0; transform: translateY(-100%); pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--honey) 30%, transparent) calc(100% - 3px), var(--honey) calc(100% - 3px)); }
.scan-shot.is-scanning .scan-sweep { animation: sweep .9s cubic-bezier(.45, 0, .55, 1) both; }
@keyframes sweep { 0% { opacity: 1; transform: translateY(-100%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
.scan-btn { min-width: 9.5em; }
.scan-form { min-width: 0; padding: 14px 16px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-soft); font-size: .8125rem; line-height: 18px; }
.scan-head { margin-bottom: 10px !important; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; line-height: 1; text-transform: uppercase; color: var(--accent); }
.scan-form dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; margin: 0; }
.scan-field { min-width: 0; }
.scan-field.wide { grid-column: 1 / -1; }
.scan-form dt { margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; line-height: 14px; text-transform: uppercase; color: var(--ink2); }
.scan-form dd { margin: 0; }
/* Ingredients read down each column, in the order they fill. */
.scan-list { display: grid; gap: 3px 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; }
ol.scan-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; counter-reset: step; }
.scan-list li { position: relative; padding-left: 14px; --in: 14px; }
ul.scan-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--honey); }
ol.scan-list li { padding-left: 18px; --in: 18px; counter-increment: step; }
ol.scan-list li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 600; color: var(--accent); }
/* A value: placeholder bar shaped like its text, with the text fading in over it. */
.sv { position: relative; display: block; }
.sv.box { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-weight: 600; }
.sv.box .sv-tx { top: 6px; left: 9px; right: 9px; }
.sv.scan-name { font: 600 1rem/20px var(--serif); }
.sv-sk { color: transparent; background: var(--sunk); border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; user-select: none; transition: opacity .25s var(--ease); }
.sv-tx { position: absolute; top: 0; left: var(--in, 0); right: 0; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.sv.is-filled .sv-sk { opacity: 0; }
.sv.is-filled .sv-tx { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@container (min-width: 480px) {
  .scan-ui { grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 18px; }
  .scan-cam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scan-act { justify-items: stretch; }
  .scan-btn { min-width: 0; }
  .scan-ui .demo-status { font-size: .875rem; }
}
@container (min-width: 580px) {
  .scan-ui { grid-template-columns: 184px minmax(0, 1fr); gap: 22px; }
}

/* Shop */
.shop-ui { display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.shop-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-finish { min-width: 11.6em; }
.shop-list { display: grid; padding: 4px 14px 8px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-soft); }
.shop-aisle-h { display: flex; align-items: center; gap: 7px; padding-top: 10px; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; line-height: 16px; text-transform: uppercase; color: var(--ink2); }
.shop-aisle-h .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.shop-aisle:nth-child(2) .dot { background: var(--honey); }
.shop-aisle:nth-child(3) .dot { background: var(--ink2); }
.shop-aisle:nth-child(4) .dot { background: var(--accent); }
.shop-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 4px; font-size: .9375rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shop-row input { flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--ink2); border-radius: 50%; background: transparent center / 14px no-repeat; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.shop-row input:checked { border-color: var(--ok); background-color: var(--ok); background-image: var(--check); }
.shop-row input:active { transform: scale(.88); }
.shop-row .fi { transition: opacity .2s var(--ease); }
.shop-row .nm { position: relative; min-width: 0; transition: color .2s var(--ease); }
.shop-row .nm::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; border-radius: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .22s var(--ease); }
.is-done .shop-row .nm { color: var(--ink2); }
.is-done .shop-row .nm::after { transform: scaleX(1); }
.is-done .shop-row .fi { opacity: .5; }
.shop-empty { padding: 14px 0 6px; color: var(--ink2); font-weight: 600; }
.shop-empty[hidden] { display: none; }
.shop-pantry { margin-top: auto; padding: 12px 14px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-soft); }
.shop-pantry-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; }
.shop-pantry-t { display: flex; align-items: center; gap: 8px; font: 600 1.0625rem/1.2 var(--serif); }
.shop-pantry-t .fi { width: 26px; height: 26px; }
.shop-pantry-h .demo-status { font-size: .875rem; }
.shelves { display: grid; gap: 6px; }
/* Each shelf: chips sit on a wooden plank that carries the shelf's name. */
.shelf { display: flex; flex-direction: column; }
.shelf-chips { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 5px; min-height: 38px; margin: 0; padding: 4px 2px; list-style: none; }
.shelf-h { height: 16px; padding: 0 8px; border-radius: 3px; background: var(--plank); color: var(--plank-ink); font-size: .625rem; font-weight: 600; letter-spacing: .12em; line-height: 16px; text-transform: uppercase; box-shadow: 0 2px 0 color-mix(in srgb, var(--plank) 60%, #000); }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--sunk); font-size: .8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.pchip .fi { width: 22px; height: 22px; border-radius: 50%; background: var(--card); }
.pchip .fi img { width: 15px; height: 15px; }
.pchip.is-new { animation: chip-in .25s var(--ease) both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-12px); } }
@container (min-width: 440px) {
  .shop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; align-items: start; }
  .shop-aisle:nth-child(1) { grid-area: 1 / 1; }
  .shop-aisle:nth-child(2) { grid-area: 1 / 2; }
  .shop-aisle:nth-child(3) { grid-area: 2 / 1; }
  .shop-aisle:nth-child(4) { grid-area: 2 / 2; }
  .shop-empty { grid-column: 1 / -1; }
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 1040px) { .shop-ui { min-height: 460px; } }

/* Share */
.share-ui { display: grid; gap: 14px; }
.share-phones { display: flex; justify-content: center; align-items: center; }
.share-col { flex: 0 1 232px; min-width: 0; display: grid; justify-items: center; gap: 8px; }
.share-who { display: inline-flex; align-items: center; gap: 7px; font-size: .9375rem; font-weight: 600; line-height: 22px; }
.share-who::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.share-jen::before { background: var(--honey); }
.phone { position: relative; width: 100%; height: 384px; overflow: hidden; border: 10px solid var(--frame); border-radius: 28px; background: var(--bg); box-shadow: 0 0 0 1.5px var(--ring), var(--shadow-soft); }
.phone-notch { display: block; width: 58px; height: 16px; margin: 6px auto 0; border-radius: 999px; background: var(--notch); }
.phone-screen { padding: 6px 9px 0; }
.phone-title { margin: 2px 3px 10px !important; font: 600 1.3125rem/1.2 var(--serif); letter-spacing: -0.01em; }
.books { display: grid; gap: 8px; }
.books > .fold { margin-top: -8px; }
.books > .fold > .fold-in > .book-card { margin-top: 8px; }
.book-card { border-radius: 12px; background: var(--card); box-shadow: 0 2px 8px rgb(60 35 15 / .08); }
.book { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 9px 10px; }
.book-sw { flex: none; width: 28px; height: 36px; border-radius: 3px 7px 7px 3px; background: linear-gradient(90deg, rgb(0 0 0 / .24) 0 4px, rgb(255 255 255 / .16) 4px 5px, transparent 5px), var(--sw); }
.sw-terra { --sw: #C63A1E; } .sw-herb { --sw: #36703A; } .sw-honey { --sw: #E9A23B; }
.book-tx { display: grid; justify-items: start; min-width: 0; }
.book-nm { font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.book-mt { font-size: .75rem; line-height: 1.35; color: var(--ink2); }
.shared-tag { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: color-mix(in srgb, var(--ok) 80%, var(--ink)); font-size: .6875rem; font-weight: 600; line-height: 1.4; }
.share-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: none; color: var(--ink); font: 600 .8125rem/1.25 var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.track { flex: none; width: 44px; height: 26px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink2) 70%, var(--card)); transition: background-color .2s var(--ease); }
.thumb { display: block; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .22s var(--ease); }
.share-switch[aria-checked="true"] .track { background: var(--ok); }
.share-switch[aria-checked="true"] .thumb { transform: translateX(18px); }
.share-switch:active .thumb { width: 23px; }
.share-switch[aria-checked="true"]:active .thumb { transform: translateX(15px); }
.phone-tabs { position: absolute; inset: auto 0 0; display: flex; justify-content: space-around; align-items: center; height: 40px; padding: 0 10px 4px; border-top: 1px solid var(--line); background: var(--card); }
.phone-tabs span { width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--ink2) 30%, transparent); }
.phone-tabs .on { width: 30px; border-radius: 999px; background: var(--accent); }
/* The sync pulse: a dot runs the dashed line from your phone to Jen's. */
.share-link { position: relative; flex: 1 1 36px; min-width: 26px; max-width: 110px; height: 12px; margin-top: 30px; }
.share-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; border-top: 2px dashed color-mix(in srgb, var(--ink2) 55%, transparent); }
.share-run { position: absolute; inset: 0; }
.share-dot { position: absolute; left: -6px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 30%, transparent); opacity: 0; }
.share-link.is-pulsing .share-run { animation: run-x .7s cubic-bezier(.45, 0, .55, 1) both; }
.share-link.is-pulsing .share-dot { animation: blip .7s linear both; }
@keyframes run-x { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes run-y { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes blip { 0%, 100% { opacity: 0; } 12%, 88% { opacity: 1; } }
.share-ui > .demo-status { justify-content: center; text-align: left; }
@media (max-width: 479px) {
  .share-phones { flex-direction: column; }
  .share-col { flex: none; width: min(100%, 288px); }
  .phone { height: 282px; }
  .phone-tabs { display: none; }
  .share-link { flex: none; width: 12px; height: 40px; min-width: 0; margin: 4px 0 0; }
  .share-link::before { left: 5px; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--ink2) 55%, transparent); }
  .share-dot { left: 0; top: -6px; }
  .share-link.is-pulsing .share-run { animation-name: run-y; }
}

/* Everything else */
.features { padding: var(--section-y) var(--pad-x); border-top: 1px solid var(--line); }
.features h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 14ch; margin-bottom: 40px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 56px; }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.feature-list img { display: block; width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--tile); }
.feature-list h3 { font-size: 1.25rem; margin: 9px 0 6px; }
.feature-list p { color: var(--ink2); max-width: 42ch; }
@media (min-width: 720px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
  /* An odd number of items leaves the last one alone in a two-column row; span it so it
     doesn't look like a mistake, and keep its text from stretching full width. */
  .feature-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-list li:last-child:nth-child(odd) p { max-width: 42ch; }
}
@media (min-width: 1040px) {
  .features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 64px; align-items: start; }
  .features h2 { margin-bottom: 0; }
}

/* FAQ */
.faq { box-sizing: content-box; max-width: 46rem; margin-inline: auto; padding: clamp(24px, 4vw, 48px) var(--gutter) var(--section-y); }
.faq h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; transition: color .15s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0; height: 0; border-inline: 6px solid transparent; border-top: 7px solid var(--accent); transition: transform .2s var(--ease); }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--ink2); max-width: 62ch; padding-bottom: 22px; }
.faq details a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* Final call to action */
.get-app { margin: 0 max(var(--gutter), calc((100% - 64rem) / 2)) var(--section-y); padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 64px); border-radius: 28px; background: var(--alt); border: 1px solid var(--line); text-align: center; }
.get-app h2 { font-size: clamp(2rem, 5vw, 3rem); }
.get-app > p { color: var(--ink2); font-size: 1.125rem; max-width: 34ch; margin: 14px auto 28px; }
.get-app .badges { justify-content: center; }
.get-app .qr { flex-direction: column; gap: 10px; margin-top: 32px; }
.get-app .qr p { max-width: none; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 24px var(--pad-x) 32px; border-top: 1px solid var(--line); color: var(--ink2); font-size: .9375rem; }
.site-footer .brand { font-size: 1.0625rem; gap: 8px; }
.site-footer .brand img { border-radius: 6px; }
.site-footer nav { display: flex; gap: 8px; margin-right: auto; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Phone sticky download bar (shown by landing.js once the hero badge scrolls away) */
.sticky-get { position: fixed; inset: auto 0 0 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(0); transition: transform .25s var(--ease); z-index: 20; }
.sticky-get .button { width: 100%; }
.sticky-get.is-off { transform: translateY(110%); }
@media (min-width: 720px) { .sticky-get { display: none !important; } }
html.has-sticky body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
/* Keyboard focus scrolls clear of the bar instead of landing under it. */
html.has-sticky { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Not-found and /get states */
.state { display: none; min-height: 100vh; padding-top: 20vh; }
.state-inner { max-width: 32rem; margin: 0 auto; padding: 0 20px 64px; text-align: center; }
.state h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.01em; margin: 0 0 12px; }
.state-inner p { color: var(--ink2); margin: 0 0 16px; }
.state-inner .badges { justify-content: center; margin: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scan-line { display: none; }
  .demo-stage *, .demo-stage *::before, .demo-stage *::after { transition-delay: 0s !important; }
}
