@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/doseproof/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/doseproof/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("/doseproof/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url("/doseproof/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("/doseproof/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 500; font-display: swap; src: url("/doseproof/fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2") format("woff2"); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--sun); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.45; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band--ink :focus-visible { outline-color: var(--sun); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--sun); padding: 10px 16px; border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }
html:not(.js-ready) [data-js-only] { display: none !important; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Layout */
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(640px, 100% - 32px); }
.band { padding-block: 72px; border-top: var(--border-object) solid var(--ink); }
.band--sun { background: var(--sun); }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: var(--paper); }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* Type */
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 11vw, 96px); line-height: 0.95; letter-spacing: -0.02em; margin: 12px 0 16px; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 7vw, 56px); line-height: 1; letter-spacing: -0.02em; margin: 8px 0 28px; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; margin: 6px 0; }
.kicker, .mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.kicker { margin: 0; }
.kicker--sun { color: var(--sun); }
.lede { font-size: 19px; max-width: 34ch; margin: 0 0 24px; }
.lede--light { color: var(--paper); max-width: 40ch; }

/* Controls */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: var(--border-control) solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-small); transition: transform 0.12s, box-shadow 0.12s; }
.pill:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-card); }
.pill:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.pill--ink { background: var(--ink); color: var(--sun); }
.pill--lg { min-height: 52px; padding: 14px 24px; font-size: 18px; }
.card { background: var(--surface); border: var(--border-control) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 18px; }
.linkish { background: none; border: 0; padding: 8px 0; font: 600 15px var(--font-body); color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px max(16px, calc((100% - 1120px) / 2)); background: var(--sun); border-bottom: var(--border-control) solid var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }

/* Hero */
.hero { border-top: 0; padding-block: 40px 72px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }

/* Tap stage (hero video + try it) */
.stage { position: relative; aspect-ratio: 5 / 4; background: var(--sun-soft); border: var(--border-object) solid var(--ink); border-radius: var(--radius-panel); box-shadow: var(--shadow-card); overflow: hidden; }
.stage--interactive { background: var(--sun); max-width: 640px; margin-inline: auto; }
.stage__scene { position: absolute; inset: 0; }
.bottle { position: absolute; right: 12%; bottom: 10%; width: 26%; aspect-ratio: 314 / 654; }
.bottle__art { display: block; width: 100%; height: 100%; overflow: visible; }
.phone { position: absolute; left: 10%; top: 10%; z-index: 2; width: 34%; aspect-ratio: 9 / 18; container-type: inline-size; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage.is-near .phone { transform: translate(88%, 8%) rotate(-8deg); }
.stage--interactive .phone { cursor: grab; touch-action: none; }
.phone.is-dragging { transition: none; cursor: grabbing; }
.phone__screen { position: absolute; inset: 3% 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16% 8px 8px; text-align: center; background: var(--sun); border-radius: 11% / 5.3%; }
/* Status bar and glass glare sit over the screen, as on the phone in the hero video. */
.phone__status { position: absolute; z-index: 1; left: 6%; right: 6%; top: 3%; height: 7.5%; display: flex; align-items: center; justify-content: space-between; padding: 1.5cqi 9cqi 0; pointer-events: none; }
.phone__time { font: 700 6.2cqi/1 var(--font-body); }
.phone__cam { position: absolute; left: 50%; top: 22%; width: 7cqi; aspect-ratio: 1; margin-left: -3.5cqi; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5cqi color-mix(in srgb, var(--ink) 85%, var(--surface)); }
.phone__icons { width: 18cqi; height: auto; }
.phone__gloss { position: absolute; z-index: 1; inset: 3% 6%; border-radius: 11% / 5.3%; overflow: hidden; pointer-events: none; }
.phone__gloss i { position: absolute; left: -36%; top: -40%; width: 58%; height: 180%; background: color-mix(in srgb, var(--surface) 20%, transparent); transform: rotate(28deg); }
.stage[data-status="logged"] .phone__screen, .stage[data-status="already-taken"] .phone__screen { background: var(--surface); }
.phone__badge { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: var(--border-object) solid var(--ink); box-shadow: var(--shadow-small); font: 800 clamp(18px, 14cqi, 40px)/1 var(--font-display); }
.stage[data-status="logged"] .phone__badge { background: var(--good-wash); color: var(--good); }
.stage[data-status="already-taken"] .phone__badge { background: var(--sun); }
.phone__kicker { margin: 0; font-size: clamp(10px, 5.6cqi, 14px); }
.phone__title { margin: 0; font: 800 clamp(13px, 9.5cqi, 24px)/1.05 var(--font-display); }
.phone__detail { margin: 0; font-size: clamp(11px, 5.8cqi, 15px); line-height: 1.3; }
.ripple { position: absolute; left: 47.8%; top: 61.2%; z-index: 3; width: 40px; height: 40px; margin: -20px; border: var(--border-object) solid var(--ink); border-radius: 50%; opacity: 0; pointer-events: none; }
.ripple.is-on { animation: ripple 0.7s ease-out; }
@keyframes ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.stage--video { background: var(--sun); }
.stage__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The hero loop starts muted (browsers only autoplay muted video); this pill turns its sound on and off. */
.stage__sound { position: absolute; right: 12px; bottom: 12px; z-index: 1; min-height: 40px; padding: 8px 14px; font-size: 15px; }
.sound__icon { width: 20px; height: 20px; }
.stage__sound[aria-pressed="true"] .sound__off, .stage__sound[aria-pressed="false"] .sound__on { display: none; }

/* Illustrations shared with the hero video: colours come from the tokens, shades are mixed from them. */
.ill .f-ink { fill: var(--ink); }
.ill .f-ink-soft { fill: var(--ink-soft); }
.ill .f-sun { fill: var(--sun); }
.ill .f-amber { fill: var(--amber); }
.ill .f-amber-d { fill: color-mix(in srgb, var(--amber) 85%, var(--ink)); }
.ill .f-amber-dd { fill: color-mix(in srgb, var(--amber) 65%, var(--ink)); }
.ill .f-paper { fill: var(--paper); }
.ill .f-surface { fill: var(--surface); }
.ill .f-foil { fill: color-mix(in srgb, var(--paper) 90%, var(--ink)); }
.ill .f-foil-d { fill: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.ill .f-lid { fill: color-mix(in srgb, var(--ink) 88%, var(--surface)); }
.ill .f-well { fill: color-mix(in srgb, var(--paper) 88%, var(--amber)); }
.ill .f-none { fill: none; }
.ill .s-ink { stroke: var(--ink); }
.ill .s-paper { stroke: var(--paper); }
.ill .s-sun { stroke: var(--sun); }
.ill-mono { font-family: var(--font-mono); font-weight: 500; }
.ill-display { font-family: var(--font-display); font-weight: 800; }
.ill-body { font-family: var(--font-body); font-weight: 700; }
.ill-body-regular { font-family: var(--font-body); font-weight: 400; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.steps p { margin: 0; }
.steps__art { display: block; width: 100%; height: auto; margin: 2px 0 16px; overflow: visible; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Swipe the pile */
#problem { overflow-x: clip; } /* swiped-away cards fly off-screen without widening the page */
.pile { display: grid; gap: 14px; max-width: 520px; margin-inline: auto; }
.note { background: var(--surface); border: var(--border-control) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-card); padding: 16px 18px; }
.note__app { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; }
.note__icon { display: block; flex: none; width: 18px; height: 18px; }
.note__title { margin: 0 0 4px; font-weight: 700; }
.note__body { margin: 0; }
.note--final { background: var(--ink); color: var(--sun); text-align: center; padding: 36px 18px; }
.note__big { margin: 0; font: 800 clamp(32px, 8vw, 52px)/1 var(--font-display); }
.pile.is-live { gap: 0; }
.pile.is-live > .note { grid-area: 1 / 1; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s; touch-action: pan-y; user-select: none; }
.pile.is-live > .note[data-pos="0"] { z-index: 4; cursor: grab; }
.pile.is-live > .note[data-pos="1"] { z-index: 3; transform: translateY(12px) scale(0.96); }
.pile.is-live > .note[data-pos="2"] { z-index: 2; transform: translateY(24px) scale(0.92); }
.pile.is-live > .note[data-pos="3"] { z-index: 1; transform: translateY(36px) scale(0.88); }
.pile.is-live > .note[data-pos="gone"] { transform: translateX(var(--fly, 140%)) rotate(12deg); opacity: 0; pointer-events: none; }
.pile.is-live > .note.is-dragging { transition: none; cursor: grabbing; }
.pile__controls { display: flex; justify-content: center; gap: 12px; margin-top: 56px; }

/* Two receipts */
.receipts { display: grid; gap: 20px; max-width: 760px; }
@media (min-width: 720px) { .receipts { grid-template-columns: 1fr 1fr; } }
.receipt { margin: 0; padding: 20px 20px 28px; background: var(--paper); border: var(--border-control) solid var(--ink); box-shadow: var(--shadow-card); font-family: var(--font-mono); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s; }
.receipt--other { transform: rotate(-2deg); }
.receipt--ours { background: var(--surface); transform: rotate(1.5deg); }
/* Hidden only once main.js has started (it sets .js-ready), so a failed script never hides content. */
html.js-ready .receipt[data-reveal]:not(.is-in) { transform: translateY(24px); opacity: 0; }
.receipt dl { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; padding-block: 12px; border-block: var(--border-control) dashed var(--ink); font-size: 18px; }
.receipt dt, .receipt dd { margin: 0; }
.receipt--ours dd { color: var(--good); }
.receipt__note { margin: 0; font-family: var(--font-body); }
.receipt--other .receipt__note { color: var(--ink-soft); }

/* 0 bytes */
.zero { margin: 12px 0 20px; color: var(--sun); font: 800 clamp(72px, 22vw, 200px)/0.9 var(--font-display); letter-spacing: -0.04em; }
.zero__unit { font-size: 0.4em; letter-spacing: -0.01em; }

/* Waitlist form (no-JS) and chat */
.form { display: grid; gap: 24px; }
.q { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.q legend, .q__label { margin-bottom: 10px; padding: 0; font: 700 20px/1.2 var(--font-display); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; background: var(--surface); border: var(--border-control) solid var(--ink); border-radius: var(--radius-pill); box-shadow: var(--shadow-small); font-weight: 700; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--sun); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field { width: 100%; min-height: 52px; padding: 12px 16px; background: var(--surface); color: var(--ink); border: var(--border-control) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-small); font: 400 18px var(--font-body); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; font-size: 14px; }
.chat { display: grid; gap: 16px; }
.chat__log { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bubble { max-width: 85%; padding: 12px 16px; border: var(--border-control) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-small); animation: pop 0.25s ease-out; }
.bubble--them { justify-self: start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble--me { justify-self: end; background: var(--ink); color: var(--sun); border-bottom-right-radius: 6px; font-weight: 700; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.chat__input { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form { display: flex; gap: 10px; width: 100%; }
.inline-form .field { flex: 1; min-width: 0; }
.leave { display: grid; gap: 10px; max-width: 520px; margin-top: 12px; }
.chat__error { width: 100%; margin: 0; color: var(--bad); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--surface); border: var(--border-control) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-small); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font: 700 19px/1.2 var(--font-display); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; }

/* Footer and simple pages */
.footer { padding-block: 32px 48px; background: var(--sun); border-top: var(--border-object) solid var(--ink); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer nav { display: flex; gap: 18px; }
.footer p { margin: 0; }
.prose { max-width: 68ch; }
.prose h2 { font: 800 26px/1.1 var(--font-display); margin: 32px 0 8px; }
