/* Dripverse download page (index-v4.html) — WET INK tokens, brand-kit.md v1.0 */
:root {
  --ink: #0E0D0C; --ink-900: #161514; --ink-800: #1E1D1B; --ink-700: #2B2A27; --ink-600: #3A3835;
  --gray-400: #A8A49B; --bone: #F2EFE9; --bone-100: #EBE7DE; --bone-300: #D6D1C4;
  --drip: #FF2E87; --drip-400: #FF5CA0; --drip-300: #FF85B5; --drip-600: #E01670; --drip-700: #B80F59;
  --green-700: #186B45; --red-700: #C81E33;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --ui: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --gutter: 20px; --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 500 16px/25px var(--ui); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 88px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- voices ---------- */
.display { font-family: var(--display); font-variation-settings: 'wdth' 62, 'wght' 900; font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .96; margin: 0; text-wrap: balance; }
.eyebrow { font: 700 12px/16px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gray-400); }
.lead { font-size: 19px; line-height: 29px; color: var(--gray-400); }

/* ---------- buttons (kit 9) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 700 16px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 80ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .steps button:focus-visible, .seg button:focus-visible, .nav a:focus-visible, .foot a:focus-visible, .qr__x:focus-visible { outline: 2px solid var(--drip); outline-offset: 3px; }
.btn--primary { background: var(--drip); color: var(--ink); }
.btn--primary:hover { background: var(--drip-400); }
.btn--primary:active { background: var(--drip-300); }   /* press lightens, never darkens */
.btn--quiet { background: var(--ink-800); color: var(--bone); box-shadow: inset 0 0 0 1px var(--ink-600); }
.btn--quiet:hover { background: var(--ink-700); }
.btn--quiet:active { background: var(--ink-600); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- nav: one centred floating pill, flat ink, no glass, no shadow ---------- */
.nav { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top)); left: 0; right: 0; width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 7px 7px 7px 20px; background: var(--ink-900); border: 1px solid var(--ink-700); border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; border-radius: 8px; }
.brand .drop { height: 22px; width: auto; fill: var(--drip); }
.brand .word { height: 26px; width: auto; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { white-space: nowrap; font: 500 15px/44px var(--ui); color: var(--gray-400); text-decoration: none; border-radius: 8px; transition: color 160ms var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav .btn.is-accent { background: var(--drip); color: var(--ink); box-shadow: none; }
.nav .btn.is-accent:hover { background: var(--drip-400); }
.nav .btn.is-accent:active { background: var(--drip-300); }
@media (max-width: 719px) {
  .nav { width: calc(100% - 2 * var(--gutter)); justify-content: space-between; gap: 12px; padding-left: 16px; }
  .nav__links { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(128px + env(safe-area-inset-top)) 0 96px; text-align: center; overflow: hidden; }
.hero__h { font-size: clamp(64px, 7.5vw, 96px); line-height: .96; }
.hero__sub { max-width: 34em; margin: 20px auto 0; text-wrap: balance; font-size: 19px; line-height: 29px; color: var(--gray-400); }
@media (max-width: 719px) {
  .hero { padding-top: calc(104px + env(safe-area-inset-top)); padding-bottom: 72px; }
  .hero__h { font-size: clamp(56px, 17.5vw, 84px); }
  .hero__h span { display: block; }
  .hero__sub { font-size: 17px; line-height: 26px; margin-top: 16px; }
}

/* the download control: one pink pill, store pills stay ink */
.dl { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.dl__stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dl__when { font: 400 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }

/* stage = floating layer + phone + step tabs */
.stage { position: relative; margin-top: 56px; }
.phone { position: relative; width: clamp(236px, 26vw, 300px); margin: 0 auto; padding: 8px; background: var(--ink-900); border: 1px solid var(--ink-600); border-radius: 40px; }
.phone__screen { position: relative; aspect-ratio: 9 / 20; overflow: hidden; border-radius: 32px; background: var(--ink); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease); }
.phone__screen img.is-on { opacity: 1; }
.steps { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.steps button { position: relative; min-height: 44px; padding: 0 12px; border: 0; background: none; cursor: pointer; font: 700 12px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gray-400); border-radius: 8px; transition: color 160ms var(--ease); }
.steps button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: transparent; transition: background-color 160ms var(--ease); }
.steps button[aria-pressed="true"] { color: var(--bone); }
.steps button[aria-pressed="true"]::after { background: var(--drip); }   /* the sanctioned active tick */
.steps__cap { min-height: 25px; margin-top: 6px; color: var(--bone-300); }

/* floating layer. Wide: scattered beside the phone, slow bob. Narrow: one drifting row above the phone. */
.float { margin: 0 calc(-1 * var(--gutter)) 28px; overflow: hidden; }
.float__track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.float__item { flex: none; margin: 0 12px 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink-800); box-shadow: inset 0 0 0 1px var(--ink-700); color: var(--bone); font: 500 15px/1 var(--ui); white-space: nowrap; }
@media (min-width: 1024px) {
  .float { position: absolute; inset: 0; margin: 0; overflow: visible; pointer-events: none; }
  .float__track { display: block; width: auto; animation: none; }
  .float__item { position: absolute; top: var(--t); margin: 0; animation: bob var(--d, 6s) ease-in-out var(--dl, 0s) infinite; }
  .float__item[data-side="L"] { right: calc(50% + 170px + var(--o) * 1vw); }
  .float__item[data-side="R"] { left: calc(50% + 170px + var(--o) * 1vw); }
  .float__item.is-clone { display: none; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- three beats ---------- */
.how { padding: 112px 0; border-top: 1px solid var(--ink-700); }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.beat h2 { font-size: 64px; line-height: 62px; }
.beat p { margin-top: 12px; color: var(--gray-400); max-width: 30em; min-height: 100px; }
.shot { position: relative; margin: 28px 0 0; background: var(--ink-900); border: 1px solid var(--ink-700); border-radius: 12px; overflow: hidden; }
.shot img { width: 100%; border-radius: 0; }
.shot figcaption { padding: 12px 14px; border-top: 1px solid var(--ink-700); font: 400 12px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); }
/* registration ticks: 1px ink.600, 8px arms, on the art corners */
.shot::before, .shot::after { content: ""; position: absolute; z-index: 1; width: 8px; height: 8px; border: 0 solid var(--ink-600); pointer-events: none; }
.shot::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.shot::after { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
@media (max-width: 899px) {
  .how { padding: 80px 0; }
  .beats { grid-template-columns: 1fr; gap: 64px; }
  .beat h2 { font-size: 56px; line-height: 54px; }
  .beat p { min-height: 0; }
  .shot { max-width: 320px; }
}

/* ---------- styles strip ---------- */
.styles { padding: 112px 0; border-top: 1px solid var(--ink-700); overflow: hidden; }
.styles h2 { font-size: clamp(48px, 6vw, 64px); }
.styles .lead { margin-top: 16px; max-width: 30em; }
.marq { margin-top: 40px; overflow: hidden; }
.marq + .marq { margin-top: 16px; }
.marq__track { display: flex; width: max-content; animation: marq var(--dur, 80s) linear infinite; }
.marq--rev .marq__track { animation-direction: reverse; }
.marq:hover .marq__track, .float:hover .float__track { animation-play-state: paused; }
.marq img { flex: none; width: 150px; height: 200px; margin-right: 20px; object-fit: contain; border-radius: 0; }
.families { margin-top: 36px; font: 400 12px/22px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }
@media (max-width: 719px) {
  .styles { padding: 80px 0; }
  .marq img { width: 108px; height: 144px; margin-right: 14px; }
}

/* ---------- what you get: paper section ---------- */
.paper { background: var(--bone); color: var(--ink); padding: 112px 0; }
.paper .eyebrow, .paper .lead { color: var(--ink-700); }
.paper__grid { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'head phone' 'facts phone'; column-gap: 64px; align-items: center; }
.paper__head { grid-area: head; align-self: end; }
.paper .facts { grid-area: facts; align-self: start; }
.paper .phone { grid-area: phone; }
.paper h2 { font-size: clamp(48px, 6vw, 64px); margin-top: 14px; }
.paper .lead { margin-top: 16px; max-width: 26em; }
.seg { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; background: var(--bone-100); border: 1px solid var(--bone-300); border-radius: 999px; }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px/1 var(--ui); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.paper .seg button:focus-visible { outline-color: var(--drip-600); }
.facts { list-style: none; margin: 36px 0 0; padding: 0; max-width: 30em; }
.facts li { padding: 14px 0; border-top: 1px solid var(--bone-300); color: var(--ink-700); }
.facts b { display: block; font-weight: 700; color: var(--ink); }
.phone--paper { background: var(--ink); border-color: var(--ink); }
.blanks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.blank { margin: 0; background: var(--bone-100); border: 1px solid var(--bone-300); border-radius: 12px; overflow: hidden; }
.blank img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.blank figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--bone-300); font-weight: 700; }
.blank figcaption span { font: 400 16px/22px var(--mono); color: var(--ink-700); white-space: nowrap; }
@media (max-width: 899px) {
  .paper { padding: 80px 0; }
  .paper__grid { grid-template-columns: 1fr; grid-template-areas: 'head' 'phone' 'facts'; row-gap: 40px; }
  .paper .facts { margin-top: 0; }
  .blanks { grid-template-columns: 1fr; margin-top: 56px; }
  .blank { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .blank figcaption { border-top: 0; border-left: 1px solid var(--bone-300); align-self: stretch; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; }
}

/* ---------- closing + footer ---------- */
.close { padding: 128px 0 112px; text-align: center; }
.close .lockup { display: inline-flex; align-items: center; gap: 10px; }
.close .lockup .drop { height: 34px; width: auto; fill: var(--drip); }
.close .lockup .word { height: 40px; width: auto; }
.close h2 { margin-top: 28px; font-size: clamp(56px, 8vw, 96px); }
.close .lead { margin-top: 16px; }
.noscript-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.noscript-form input { min-height: 52px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink-800); color: var(--bone); font: 500 16px var(--ui); }
.foot { border-top: 1px solid var(--ink-700); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.foot a { font-size: 14px; line-height: 44px; color: var(--gray-400); text-decoration: none; border-radius: 8px; }
.foot a:hover { color: var(--bone); }
.foot small { font: 400 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }
@media (max-width: 719px) { .close { padding: 96px 0 88px; } .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- QR card: desktop only, after the store is live. ink.800 panel + hairline, no shadow ---------- */
.qr { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: none; align-items: center; gap: 14px; padding: 12px 40px 12px 12px; background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: 12px; }
.qr__code { width: 84px; height: 84px; padding: 7px; background: var(--bone); border-radius: 8px; }
.qr__code svg { display: block; width: 100%; height: 100%; fill: var(--ink); }
.qr__t { font-weight: 700; line-height: 22px; }
.qr__s { font-size: 14px; line-height: 20px; color: var(--gray-400); }
.qr__x { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--gray-400); font-size: 20px; line-height: 1; cursor: pointer; }
.qr__x:hover { color: var(--bone); }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .store-live .qr:not(.is-closed) { display: flex; } }

/* ---------- sticky button: phones only (a phone cannot scan its own screen) ---------- */
.sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--ink-700); transform: translateY(110%); transition: transform 240ms var(--ease); }
.sticky .btn { width: 100%; }
.sticky.is-on { transform: none; }
@media (max-width: 719px) { .sticky { display: block; } }

.preview-note { position: fixed; z-index: 60; left: 12px; bottom: 12px; padding: 8px 12px; background: var(--bone); color: var(--ink); border-radius: 8px; font: 700 12px/16px var(--mono); letter-spacing: .06em; }
@media (max-width: 719px) { .preview-note { bottom: auto; top: 84px; } }

/* ---------- waitlist modal: the Paper Flip (pattern from index-v3.html) ---------- */
.dv-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.dv-modal.is-open { display: block; }
.dv-modal__scrim { position: absolute; inset: 0; background: rgba(14, 13, 12, .72); }
.dv-modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 460px); max-height: 92vh; overflow: auto; background: var(--bone); color: var(--ink); border-radius: 20px; padding: 34px 30px 26px; animation: dv-flip 240ms var(--ease); }
@keyframes dv-flip { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dv-modal__panel::before, .dv-modal__panel::after { content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid var(--ink-600); opacity: .5; }
.dv-modal__panel::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.dv-modal__panel::after { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.dv-modal__eyebrow { font: 700 12px/16px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--drip-700); }
.dv-modal__title { font-size: clamp(32px, 6vw, 42px); margin: 10px 0 12px; }
.dv-modal__body { font-size: 15px; line-height: 1.55; color: var(--ink-700); margin: 0 0 20px; }
.dv-modal__form { display: flex; flex-direction: column; gap: 10px; }
.dv-modal__label { font: 400 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-700); margin: 6px 0 -4px; }
.dv-modal__input { font: 500 16px var(--ui); padding: 14px 16px; border-radius: 8px; border: 1px solid var(--bone-300); background: var(--bone-100); color: var(--ink); outline: none; }
.dv-modal__input::placeholder { color: var(--ink-600); opacity: .8; }
.dv-modal__input:focus { border-color: var(--drip-600); box-shadow: 0 0 0 1px var(--drip-600); }
.dv-modal__submit[disabled] { opacity: .55; cursor: default; }
.dv-modal__micro { font: 400 12px/16px var(--mono); color: var(--ink-700); margin: 14px 0 0; }
.dv-modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-700); font-size: 22px; line-height: 1; cursor: pointer; }
.dv-modal__close:hover { color: var(--ink); }
.dv-modal__close:focus-visible, .dv-modal .btn:focus-visible { outline: 2px solid var(--drip-600); outline-offset: 3px; }
.dv-modal__done { display: none; }
.dv-modal.is-done .dv-modal__form, .dv-modal.is-done .dv-modal__body { display: none; }
.dv-modal.is-done .dv-modal__done { display: block; }
.dv-modal__done p { line-height: 1.55; color: var(--ink-700); }
.dv-modal__done .big { font: 700 16px/22px var(--mono); color: var(--green-700); letter-spacing: .04em; }
.dv-modal__done .wish { font-size: 26px; color: var(--ink); margin: 6px 0 12px; }
.dv-modal__err { display: none; font: 400 12px/16px var(--mono); color: var(--red-700); margin-top: 4px; }
.dv-modal.has-err .dv-modal__err { display: block; }

/* ---------- reduced motion: nothing moves by itself (kit 7) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float__item, .float__track, .marq__track, .dv-modal__panel { animation: none !important; }
  .btn, .sticky { transition: none; }
  .phone__screen img { transition-duration: 160ms; }
  .marq { overflow-x: auto; }
  .is-clone { display: none !important; }
  .float__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 10px; padding: 0 var(--gutter); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) { .float__item { transform: rotate(var(--r, 0deg)); } }
