/* =====================================================================
   CHERUB WAITLIST · LAYOUT AND COMPONENTS
   Uses the values in tokens.css. Sections appear in page order.
   ===================================================================== */

/* ---------- Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-cobalt-deep); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-cobalt); outline-offset: 3px; }
.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: 200; padding: 10px 16px;
  background: var(--color-ink); color: #fff; border-radius: var(--radius-pill); text-decoration: none;
}
.skip:focus { top: 16px; }

/* Grain sits behind all content, so it only textures the background.
   Text, photos and white cards stay clean. Opacity lives in tokens.css. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-image); background-size: var(--grain-size);
  opacity: var(--grain-opacity);
}
/* Base grid. Two layers, both behind everything; colours and column count are --grid-* in
   tokens.css, and the content snaps to the columns.
   1. The two outer edge lines: fixed, so they run unbroken down the whole page.
   2. The column lines between them (.grid-cols in index.html): they scroll with the page and
      fade out above the hero wardrobe, coming back below it. js/grid.js tells them where the
      wardrobe is (--cols-hide-*); without it they simply run the full length.
   */
body::after {
  content: ""; position: fixed; top: 0; bottom: 0; left: 50%; z-index: -1; pointer-events: none;
  width: min(100% - 2 * var(--gutter), var(--content-max)); translate: -50% 0;
  background-image: linear-gradient(to right, var(--grid-edge) 1px, transparent 1px), linear-gradient(to left, var(--grid-edge) 1px, transparent 1px);
  background-repeat: no-repeat;
}
.page { position: relative; }
.grid-cols {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; pointer-events: none;
  width: min(100% - 2 * var(--gutter), var(--content-max)); translate: -50% 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / var(--grid-cols)) 100%;
  --fade: 160px;   /* length of each fade */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--cols-hide-from, 1000000px) - var(--fade)), transparent var(--cols-hide-from, 1000000px), transparent var(--cols-hide-to, 1000000px), #000 calc(var(--cols-hide-to, 1000000px) + var(--fade)));
  mask-image: linear-gradient(to bottom, #000 calc(var(--cols-hide-from, 1000000px) - var(--fade)), transparent var(--cols-hide-from, 1000000px), transparent var(--cols-hide-to, 1000000px), #000 calc(var(--cols-hide-to, 1000000px) + var(--fade)));
}
/* Full-width rules between the sections */
.hero, .features, .faq, .footer { border-top: var(--border) solid var(--grid-edge); }
@media (max-width: 900px) { :root { --grid-cols: 8; } }
@media (max-width: 560px) { :root { --grid-cols: 4; } }

/* A patch of grained paper, used behind icons that sit on a drawn line. */
.paper { position: relative; isolation: isolate; background: var(--color-paper); }
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: var(--grain-image); background-size: var(--grain-size); opacity: var(--grain-opacity);
}

.container {
  width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--space-section); position: relative; }

.eyebrow {
  font: 700 var(--text-label) / 16px var(--font-ui); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--color-cobalt);
}
.h2 {
  font-family: var(--font-display); font-weight: var(--weight-heading); font-size: var(--text-h2);
  line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance;
}
.section__head { display: grid; gap: var(--space-md); max-width: min(100%, calc(100% * 8 / var(--grid-cols))); /* 8 columns */ margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-muted); max-width: var(--text-max); text-wrap: pretty; }

/* Hand-written notes and line drawings */
.hand { font-family: var(--font-hand); font-size: var(--text-hand); line-height: 1; color: var(--color-hand); letter-spacing: 0; }
.line-art { fill: none; stroke: var(--color-line-art); stroke-width: var(--border-strong); stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.line-art path { vector-effect: non-scaling-stroke; }
/* Paths that animate need pathLength="1"; this keeps them visible at rest. */
/* Drawn lines show in full at rest. Before they draw in, js/motion.js sets --dash
   per stroke (bigger than 1 when a drawing is scaled up) so the whole line hides. */
[data-draw] [pathLength] { stroke-dasharray: none; }
[data-draw].is-waiting [pathLength] { stroke-dasharray: var(--dash, 1); stroke-dashoffset: var(--dash, 1); }
[data-reveal].is-waiting { opacity: 0; }

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--radius-pill); border: 0;
  font: 600 15px/20px var(--font-ui); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.98); }
/* Paper plane icon on the Join the waitlist buttons (Phosphor, Regular). The envelope intro's
   plane lands on it; .is-landing hides it until the plane arrives, .is-landed gives it a nudge. */
.btn__icon { flex: none; width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }
.btn--nav .btn__icon, .dock .btn__icon { width: 16px; height: 16px; }
.btn__icon.is-landing { opacity: 0; }
.btn__icon.is-landed { animation: plane-landed 0.6s var(--ease-out); }
@keyframes plane-landed { 0% { transform: translate(-3px, 3px) scale(0.9); } 45% { transform: translate(2px, -2px) scale(1.12); } 100% { transform: none; } }
.btn.is-landed { animation: btn-landed 0.5s var(--ease-out); }
@keyframes btn-landed { 40% { transform: scale(1.04); } }
.btn--primary { background: var(--color-cobalt); color: var(--color-on-cobalt); }
.btn--primary:hover { background: var(--color-cobalt-deep); color: var(--color-on-cobalt); }
.btn--secondary { background: var(--color-surface); color: var(--color-ink); box-shadow: inset 0 0 0 var(--border) var(--color-line); }
.btn--secondary:hover { background: var(--color-line-soft); color: var(--color-ink); }
.btn--ghost { height: 40px; padding: 0 16px; background: transparent; color: var(--color-cobalt); }
.btn--ghost:hover { background: var(--color-cobalt-mist); }
.btn--nav { height: 42px; padding: 0 20px; font-size: 14px; } /* the smaller primary button in the nav bar */
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Nav ------------------------------------------------------ */
.nav { position: relative; z-index: 10; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em;
  color: var(--color-cobalt); text-decoration: none; line-height: 1;
}

/* ---------- 1 · Hero ------------------------------------------------- */
.hero { position: relative; padding-block: clamp(24px, 5vw, 72px) clamp(72px, 10vw, 140px); }
.hero__copy { position: relative; z-index: 2; max-width: min(100%, calc(100% * 8 / var(--grid-cols))); /* 8 columns */ margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; margin-bottom: var(--space-lg);
  border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: inset 0 0 0 var(--border) var(--color-line);
  font: 600 var(--text-label) / 16px var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-ink);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-cobalt); }
.hero__title {
  font-family: var(--font-display); font-weight: var(--weight-hero); font-size: var(--text-hero);
  line-height: 0.98; letter-spacing: var(--tracking-display); text-wrap: balance;
}
.hero__lead { margin-top: var(--space-lg); max-width: 54ch; font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-muted); text-wrap: pretty; }

/* Hero photos: each print is placed with --left/--right/--top/--bottom,
   sized with --w and tilted with --r (set inline in index.html). */
.hero__prints { position: absolute; inset: 0; z-index: 1; max-width: 1440px; margin-inline: auto; pointer-events: none; }
.print {
  position: absolute; margin: 0; width: var(--w, 180px); pointer-events: auto;
  left: var(--left, auto); right: var(--right, auto); top: var(--top, auto); bottom: var(--bottom, auto);
  rotate: var(--r, 0deg);
}
.print__float { position: relative; animation: float var(--float-duration) var(--ease-in-out) infinite alternate; animation-delay: var(--float-delay, 0s); }
.print__frame {
  position: relative; padding: var(--photo-border); background: var(--color-surface); box-shadow: var(--shadow-print);
  transition: transform var(--dur-base) var(--ease-out);
}
.print:hover .print__frame { transform: translateY(var(--print-hover-lift)) rotate(calc(var(--r, 0deg) * var(--print-hover-straighten) * -1)); }
.print__frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: var(--photo-filter); background: var(--color-line-soft); }
.print__tape {
  position: absolute; z-index: 2; top: -10px; left: 50%; width: 64px; height: 20px; translate: -50% 0; rotate: var(--tape-r, -4deg);
  background: var(--tape-color); box-shadow: 0 1px 1px rgba(23, 24, 27, calc(0.06 * var(--shadow-strength)));
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 90%, 6% 100%, 0 92%);
}
.note { position: absolute; top: calc(100% + var(--note-gap, 2px)); left: var(--note-left, 12%); display: flex; align-items: flex-end; gap: 2px; white-space: nowrap; margin: 0; }
.note__text { rotate: var(--note-r, -4deg); padding-bottom: 0.1em; }
.note__arrow { width: 30px; height: 38px; flex: none; }

@keyframes float {
  from { transform: translateY(calc(var(--float-distance) * -1)); }
  to   { transform: translateY(var(--float-distance)); }
}

/* Sign-up block (shared by the hero and the cobalt band) */
.join { position: relative; width: 100%; max-width: 520px; margin-top: clamp(88px, 10vw, 112px); }
.join__cherub { position: absolute; left: 50%; bottom: calc(100% - 14px); width: clamp(128px, 14vw, 156px); translate: -50% 0; z-index: 3; pointer-events: none; }
.waitlist { position: relative; z-index: 2; }
.waitlist__row {
  display: flex; gap: 6px; padding: 6px; background: var(--color-surface); border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--border) var(--color-line), 0 10px 30px -18px rgba(23, 24, 27, calc(0.35 * var(--shadow-strength)));
  transition: box-shadow var(--dur-fast) ease;
}
.waitlist__row:focus-within { box-shadow: inset 0 0 0 var(--border-strong) var(--color-cobalt), 0 10px 30px -18px rgba(36, 56, 255, calc(0.45 * var(--shadow-strength))); }
.waitlist.has-error .waitlist__row { box-shadow: inset 0 0 0 var(--border-strong) var(--color-error); }
.waitlist__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; background: transparent;
  font-size: 16px; /* 16px stops iOS Safari zooming */ color: var(--color-ink); outline: none;
}
.waitlist__input::placeholder { color: #656c72; }
.waitlist__msg { min-height: 20px; margin-top: 10px; font-size: var(--text-small); line-height: 20px; color: var(--color-error); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fineprint { margin-top: 4px; max-width: 46ch; font-size: 13px; line-height: 19px; color: var(--color-ink-muted); text-align: center; }
.fineprint a { color: inherit; }

/* After sign-up */
.done {
  position: relative; z-index: 2; display: grid; gap: var(--space-md); padding: clamp(20px, 3vw, 28px); text-align: left;
  background: var(--color-surface); border-radius: var(--radius-sheet); box-shadow: inset 0 0 0 var(--border) var(--color-line), 0 18px 40px -24px rgba(23, 24, 27, calc(0.35 * var(--shadow-strength)));
}
.done__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; color: var(--color-ink); }
.done__tick { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--color-cobalt); display: grid; place-items: center; }
.done__tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__text { font-size: 15px; line-height: 22px; color: var(--color-ink-muted); overflow-wrap: anywhere; }
.done__text strong { color: var(--color-ink); font-weight: 600; }
.followup { display: grid; gap: var(--space-md); padding-top: var(--space-md); border-top: var(--border) solid var(--color-line-soft); }
.followup fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.followup legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--color-ink); }
.followup__actions { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.followup__msg { font-size: var(--text-small); color: var(--color-success); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--color-field); box-shadow: inset 0 0 0 var(--border) var(--color-line); font-size: 14px; font-weight: 500; color: var(--color-ink);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.chip input:checked + span { background: var(--color-cobalt); color: var(--color-on-cobalt); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--color-cobalt); outline-offset: 2px; }
/* High Contrast drops the fill and shadow, so a chip needs an edge, and a picked one the highlight. */
@media (forced-colors: active) {
  .chip span { border: 1px solid ButtonText; }
  .chip input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}
.selects { display: flex; gap: 8px; flex-wrap: wrap; }
/* "Not sure yet" beside the month and year, as tall as them. */
.selects .chip span { height: 44px; padding: 0 18px; }
.select:disabled { opacity: 0.5; cursor: not-allowed; }
.select {
  height: 44px; padding: 0 40px 0 16px; border: 0; border-radius: var(--radius-pill); background-color: var(--color-field);
  box-shadow: inset 0 0 0 var(--border) var(--color-line); font-size: 16px; color: var(--color-ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23565c61' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* ---------- 2 · Explore, Wallet, Closet ----------------------------- */
/* The feature panels follow one another across all 12 columns of the page grid,
   joined edge to edge into one ruled block. */
.stack { position: relative; container-type: inline-size; /* its width is the page grid's, so 100cqw / columns = one column */ }

/* Progress line on the page grid's left edge, beside the panels. It fills in cobalt as the
   panels pass the middle of the screen (--progress, set by js/progress.js). A bow sits where
   each panel starts, on its top rule: grey until reached, then it draws itself in cobalt (loops
   first, then the tails), and the bow of the panel you're on sways. Scrolling back up undraws.
   The bow's shape is BOW at the top of js/progress.js. Hidden below 900px wide. */
.progress { position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 0; pointer-events: none; }
.progress__fill {
  position: absolute; top: 0; left: -1px; width: 3px; height: 100%; border-radius: 2px; background: var(--color-cobalt);
  transform-origin: 50% 0; transform: scaleY(var(--progress, 0));
}
.progress__bow { position: absolute; left: 0; top: var(--at); width: 40px; height: 32px; margin: -12px 0 0 -20px; transform-origin: 20px 12px; transition: scale var(--dur-base) var(--ease-out); }
.progress__bow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.progress__bow path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.progress__bow-track path { stroke: #b9bcc2; }
.progress__bow-ink path { stroke: var(--color-cobalt); stroke-dasharray: 1 2; stroke-dashoffset: 1; /* the long gap stops round caps leaving dots */ transition: stroke-dashoffset 0.6s var(--ease-out) var(--bow-delay, 0s); }
.progress__bow-ink path:nth-child(n+3) { --bow-delay: 0.35s; } /* tails start after the loops */
.progress__bow.is-reached .progress__bow-ink path { stroke-dashoffset: 0; }
.progress__bow-knot { fill: #b9bcc2; transition: fill var(--dur-base) ease; }
.progress__bow.is-reached .progress__bow-knot { fill: var(--color-cobalt); }
.progress__bow.is-current { scale: 1.2; animation: bow-sway 3.2s ease-in-out infinite; }
@keyframes bow-sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.motion-off .progress__bow, .motion-off .progress__bow * { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .progress__bow, .progress__bow * { transition: none; animation: none; } }
@media (max-width: 900px) { .progress { display: none; } }

.feature {
  position: relative; height: var(--card-h);
  --card-pad: clamp(32px, 4vw, 56px);
  /* Laid on the page grid: the panel's own columns line up with the page's column lines */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; padding: 0; align-items: stretch;
  overflow: hidden; isolation: isolate; border-radius: var(--feature-radius);
  /* Plain paper behind the text (no column lines), framed by a rule. It is opaque, so the
     page's column lines stop at the frame. */
  background-color: var(--color-paper);
  box-shadow: inset 0 0 0 var(--border) var(--feature-rule);
}
/* The paper's grain, as on the page behind */
.feature::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: var(--grain-image); background-size: var(--grain-size); opacity: var(--grain-opacity); }
/* Text: the left 6 columns, with the same space above and below */
.feature__copy { grid-column: 1 / span 6; align-self: center; padding: var(--card-pad); }
/* Visual: the right 6 columns, starting on the centre line, on a pale blue tint. */
.feature__visual {
  grid-column: 7 / -1; position: relative; isolation: isolate;
  padding: var(--card-pad) clamp(16px, 2vw, 28px);
}
#closet { --feature-visual-bg: var(--feature-bg-closet); }
#wallet { --feature-visual-bg: var(--feature-bg-wallet); }
#explore { --feature-visual-bg: var(--feature-bg-explore); }
.feature:not(.feature--split) .feature__visual { background-color: var(--feature-visual-bg); box-shadow: inset var(--border) 0 0 var(--feature-rule); }
/* The frame is drawn on top, so the visual's tint never hides the panel's edge (or the page's right edge line) */
.feature::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 var(--border) var(--feature-rule); }
.feature + .feature { margin-top: calc(var(--border) * -1); } /* share the rule between panels */
.feature__copy { display: grid; gap: var(--space-md); align-content: center; }
.feature__label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 var(--text-label) / 16px var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-cobalt);
}
.feature__label svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); line-height: 1.08; letter-spacing: var(--tracking-display); text-wrap: balance; }
.feature__text { font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-muted); }
.feature__visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 100%; min-height: 0; }
/* The whole phone fits inside the card: its width is worked out from the card's height
   (a phone is about 2.09 times taller than wide) */
.feature__visual--phone .phone { width: calc((var(--card-h) - 2 * var(--card-pad) - 20px) / 2.09); max-width: 260px; }
/* A note beside the phone, lower than the paragraph, pointing at the screen */
.note.note--side { top: var(--note-top, 64%); left: auto; right: calc(100% + 4px); align-items: center; gap: 4px; }
.note--side .note__arrow { width: 48px; height: 32px; }

/* Scroll-filled headline: js/motion.js sets --fill (0 to 1) on each word */
/* Tighter spacing around the features so the page doesn't open up big empty gaps */
.features { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
/* The last panel's bottom edge is the FAQs' top rule: no empty strip between the two lines */
.features .stack { margin-bottom: calc(var(--border) * -1); }
.features .section__head { max-width: min(100%, calc(100% * 10 / var(--grid-cols))); /* 10 columns */ margin-bottom: clamp(64px, 9vw, 136px); } /* space between the headline and the first card */
.scroll-text {
  font-family: var(--font-display); font-weight: var(--weight-hero); font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.06; letter-spacing: var(--tracking-display); text-wrap: balance; color: var(--scroll-text-to);
}
.scroll-text [data-accent] { color: var(--scroll-text-accent); } /* still state when motion is off */
.st-word { --fill: 1; color: color-mix(in srgb, var(--scroll-text-to) calc(var(--fill) * 100%), var(--scroll-text-from)); }
.st-word--accent { color: color-mix(in srgb, var(--scroll-text-accent) calc(var(--fill) * 100%), var(--scroll-text-from)); }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .st-word { color: var(--scroll-text-to); opacity: calc(0.25 + 0.75 * var(--fill)); }
  .st-word--accent { color: var(--scroll-text-accent); }
}

/* Explore: the app screen in a device frame */
.phone { position: relative; margin: 0 auto; width: 100%; max-width: 300px; }

/* Device frame: titanium edge, black bezel, rounded screen, Dynamic Island, side buttons.
   Proportions follow a 6.1-inch phone, scaled from the frame width. */
.phone__frame {
  --edge: 3px;
  position: relative; padding: var(--edge); border-radius: 17.5% / 8.2%;
  filter: drop-shadow(0 30px 40px rgba(23, 24, 27, calc(0.22 * var(--shadow-strength)))) drop-shadow(0 6px 10px rgba(23, 24, 27, calc(0.12 * var(--shadow-strength))));
  background:
    linear-gradient(90deg, #8d9196 0%, #d4d7da 6%, #7c8085 14%, #a9adb1 50%, #7c8085 86%, #d4d7da 94%, #8d9196 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(23, 24, 27, 0.35);
}
.phone__bezel { padding: 3.4%; border-radius: 16.6% / 7.8%; background: #0b0b0c; box-shadow: inset 0 0 0 1px #2a2a2c; }
.phone__screen { position: relative; overflow: hidden; border-radius: 13.6% / 6.3%; background: #fff; }
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__island { position: absolute; top: 2.6%; left: 50%; width: 32%; aspect-ratio: 3.4; translate: -50% 0; border-radius: 999px; background: #000; }
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #6f7378, #c9ccd0 60%, #8d9196); }
.phone__btn--action { left: -2px; top: 17%; height: 4.6%; }
.phone__btn--vol-up { left: -2px; top: 24.5%; height: 8.4%; }
.phone__btn--vol-down { left: -2px; top: 34.5%; height: 8.4%; }
.phone__btn--power { right: -2px; top: 26%; height: 12.5%; }

/* Wallet: a paper slip of store credit with a gift card behind it */
.wallet { position: relative; margin: 0; width: min(100%, 330px); }
.giftcard {
  position: absolute; top: -40px; right: -64px; width: 228px; aspect-ratio: 1.586; rotate: 9deg;
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px;
  border-radius: 14px; background: var(--color-cobalt); color: var(--color-on-cobalt); box-shadow: var(--shadow-print);
}
.giftcard__label { font: 700 var(--text-label) / 16px var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-cobalt-soft); }
.giftcard__amount { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.slip-shadow { position: relative; z-index: 1; rotate: -3deg; filter: drop-shadow(0 1px 1px rgba(23, 24, 27, calc(0.08 * var(--shadow-strength)))) drop-shadow(0 16px 18px rgba(23, 24, 27, calc(0.16 * var(--shadow-strength)))); }
.slip {
  --zigzag: 9px;
  padding: 26px 22px 36px; background: var(--color-surface);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zigzag)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zigzag)) 100%;
}
.slip__head { display: flex; align-items: center; gap: 10px; }
.slip__head svg { width: 24px; height: 24px; }
.slip__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.slip__count { margin-left: auto; font-size: 13px; color: var(--color-ink-muted); }
.slip__rows { display: grid; gap: 12px; margin: 20px 0 0; font-size: 15px; }
.slip__rows div { display: flex; align-items: baseline; gap: 8px; }
.slip__rows dt { display: flex; flex: 1; align-items: baseline; gap: 8px; font-weight: 500; }
.slip__rows dt::after { content: ""; flex: 1; border-bottom: var(--border-strong) dotted var(--color-line); }
.slip__rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.slip__total {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: var(--border-strong) dashed var(--color-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
/* Printing in: js/wallet.js arms the slip, then adds .is-printing when it comes into view.
   Each row's store name rises into place, its dotted leader draws across and the amount
   counts up. Pace: --slip-step (gap between rows) and --slip-rise (each line's rise). */
.slip { --slip-step: 160ms; --slip-rise: 600ms; }
.slip__count, .slip__rows dt, .slip__rows dd { overflow: hidden; }
.slip__count > span, .slip__rows dt > span, .slip__rows dd > span { display: inline-block; }
.slip.is-armed .slip__count > span, .slip.is-armed .slip__rows dt > span, .slip.is-armed .slip__rows dd > span { transform: translateY(110%); }
.slip.is-armed .slip__rows dt::after { transform: scaleX(0); transform-origin: 0 50%; }
.slip.is-armed .slip__total { opacity: 0; transform: translateY(8px); }
.slip.is-printing .slip__count > span { transform: none; transition: transform var(--slip-rise) var(--ease-out); }
.slip.is-printing .slip__rows dt > span, .slip.is-printing .slip__rows dd > span {
  transform: none; transition: transform var(--slip-rise) var(--ease-out) calc(120ms + var(--row) * var(--slip-step));
}
.slip.is-printing .slip__rows dt::after { transform: scaleX(1); transition: transform 500ms var(--ease-out) calc(220ms + var(--row) * var(--slip-step)); }
.slip.is-printing .slip__total { opacity: 1; transform: none; transition: opacity 400ms ease, transform 500ms var(--ease-out); transition-delay: calc(200ms + 4 * var(--slip-step)); }

/* ---------- Explore walkthrough --------------------------------------
   A 13-second loop of the app's own screens (Figma, "B · Explore and shop"):
   tap the Mimi Gown on Explore, its product page pushes in, tap + and the
   Save to an event sheet slides up, save to two events, a toast confirms,
   then back to Explore. js/walkthrough.js plays it while the phone is on
   screen. Screens: img/app/explore.webp, product.webp, save-sheet.webp.
   Timing lives in the keyframes below (percentages of --walk-loop). */
.phone__screen[data-walk] { --walk-loop: 13s; container-type: inline-size; }
.walk__layer { position: absolute; inset: 0; pointer-events: none; }
.walk__layer, .walk__explore { animation-duration: var(--walk-loop); animation-iteration-count: infinite; animation-play-state: paused; animation-fill-mode: both; }
[data-walk].is-playing .walk__layer, [data-walk].is-playing .walk__explore { animation-play-state: running; }
.walk__explore { animation-name: walk-explore; }
.walk__product { background: #fff; animation-name: walk-product; }
.walk__product img { display: block; width: 100%; height: auto; }
.walk__saved {
  position: absolute; inset: auto; left: 53.6%; top: 94.1%; width: 9.2cqw; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #cfd2d6; animation-name: walk-saved;
}
.walk__saved svg { width: 45%; height: 45%; fill: none; stroke: #17181b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.walk__dim { background: rgba(0, 0, 0, 0.41); animation-name: walk-dim; }
.walk__sheet { top: auto; animation-name: walk-sheet; }
.walk__sheet img { display: block; width: 100%; height: auto; }
.walk__toast {
  inset: auto 4% 12.5% 4%; display: flex; align-items: center; gap: 2.4cqw; padding: 3cqw 3.6cqw; border-radius: 3cqw;
  background: #17181b; color: #fff; font: 500 3.3cqw/1.25 var(--font-ui); letter-spacing: 0; animation-name: walk-toast;
}
.walk__toast svg { flex: none; width: 4.4cqw; height: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.walk__toast span { flex: 1; }
.walk__toast b { font-weight: 600; color: #aeb6ff; }
.walk__tap {
  inset: auto; width: 12cqw; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: rgba(23, 24, 27, 0.22); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); animation-name: walk-tap;
}
.phone__island { z-index: 2; }
@keyframes walk-explore {
  0%, 15.38% { transform: none; filter: none; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
  19.23%, 78.46% { transform: translateX(-25%); filter: brightness(0.9); animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
  82.31%, 100% { transform: none; filter: none; }
}
@keyframes walk-product {
  0%, 15.38% { transform: translateX(100%); animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
  19.23%, 78.46% { transform: none; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
  82.31%, 100% { transform: translateX(100%); }
}
@keyframes walk-dim {
  0%, 36.15% { opacity: 0; }
  39.23%, 54.62% { opacity: 1; }
  57.69%, 100% { opacity: 0; }
}
@keyframes walk-sheet {
  0%, 36.15% { transform: translateY(100%); animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
  39.62%, 54.62% { transform: none; animation-timing-function: cubic-bezier(0.5, 0, 0.75, 0.3); }
  57.69%, 100% { transform: translateY(100%); }
}
@keyframes walk-saved {
  0%, 57.69% { opacity: 0; scale: 0.6; }
  59.62%, 81.54% { opacity: 1; scale: 1; }
  82.31%, 100% { opacity: 0; scale: 1; }
}
@keyframes walk-toast {
  0%, 58.46% { opacity: 0; transform: translateY(25%); }
  60.77%, 73.08% { opacity: 1; transform: none; }
  75.38%, 100% { opacity: 0; transform: translateY(10%); }
}
@keyframes walk-tap {
  0% { left: 26%; top: 34%; opacity: 0; }
  10.77% { left: 26%; top: 34%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  11.92% { left: 26%; top: 34%; opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  13.23% { left: 26%; top: 34%; opacity: 0.9; transform: translate(-50%, -50%) scale(0.82); }
  14.62% { left: 26%; top: 34%; opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
  32.31% { left: 53.6%; top: 94.1%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  33.46% { left: 53.6%; top: 94.1%; opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  34.77% { left: 53.6%; top: 94.1%; opacity: 0.9; transform: translate(-50%, -50%) scale(0.82); }
  36.15% { left: 53.6%; top: 94.1%; opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
  50.77% { left: 50%; top: 94%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  51.92% { left: 50%; top: 94%; opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  53.23% { left: 50%; top: 94%; opacity: 0.9; transform: translate(-50%, -50%) scale(0.82); }
  54.62% { left: 50%; top: 94%; opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
  75.38% { left: 8.7%; top: 8.3%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  76.54% { left: 8.7%; top: 8.3%; opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  77.85% { left: 8.7%; top: 8.3%; opacity: 0.9; transform: translate(-50%, -50%) scale(0.82); }
  79.23% { left: 8.7%; top: 8.3%; opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
  100% { left: 26%; top: 34%; opacity: 0; }
}
/* Motion off: the Explore screen on its own */
.motion-off .walk__layer { display: none; }
.motion-off .walk__explore { animation: none; }
@media (prefers-reduced-motion: reduce) { .walk__layer { display: none; } .walk__explore { animation: none; } }

/* Extension card: two flat panels, copy on the left and a cobalt panel on the right.
   The panel shows the top-right corner of a browser window down to about its middle:
   the toolbar with the Cherub icon, its popup, and the product's Add to cart.
   The whole window is laid out at 1280px wide (browser bar and page together) and
   js/browser-mock.js scales it so --crop of its width fits the panel. Raise --crop to
   show more of the page at a smaller size, lower it to zoom in. */
.feature__visual--panel { --crop: 0.58; --pad-t: 88px; --pad-r: 40px; display: block; height: 100%; padding: 0; overflow: hidden; background: var(--feature-bg-extension); isolation: isolate; }
.feature__visual--panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-image); background-size: var(--grain-size); opacity: var(--grain-opacity); }
/* The divider between text and visual, drawn on top because the browser window runs off this
   panel's left edge (the other panels draw it as an inset edge on their visual) */
.feature__visual--panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 5; width: var(--border); background: var(--feature-rule); pointer-events: none; }
.pdp { position: absolute; inset: 0; margin: 0; }

.browser {
  position: absolute; top: var(--pad-t); right: var(--pad-r); width: 1280px; transform: scale(var(--page-scale, 0.6)); transform-origin: 100% 0;
  border-radius: 14px; overflow: hidden; background: #fff; font-family: var(--font-ui); letter-spacing: 0; color: #1f1f1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 40px 80px -30px rgba(10, 18, 60, calc(0.45 * var(--shadow-strength)));
}
.browser__tabs { display: flex; align-items: flex-end; gap: 4px; height: 46px; padding: 0 14px 0 18px; background: #dde1e7; }
.browser__dots { display: flex; gap: 8px; align-self: center; margin-right: 18px; }
.browser__dots i { width: 13px; height: 13px; border-radius: 50%; }
.browser__dots i:nth-child(1) { background: #f26b5e; } .browser__dots i:nth-child(2) { background: #f4bf4f; } .browser__dots i:nth-child(3) { background: #5fc454; }
.browser__tab { display: flex; align-items: center; gap: 10px; width: 250px; height: 36px; padding: 0 12px 0 14px; border-radius: 10px 10px 0 0; font-size: 13px; color: #4a4f57; white-space: nowrap; overflow: hidden; }
.browser__tab.is-on { background: #f6f7f9; color: #1f1f1f; }
.browser__tab b { margin-left: auto; font-weight: 400; font-size: 15px; color: #80868f; }
.browser__fav { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 4px; background: #1b1b1b; color: #fff; font: 600 9px/1 Georgia, serif; font-style: normal; }
.browser__newtab { align-self: center; padding: 0 10px; font-size: 20px; color: #5f6368; }
.browser__bar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; background: #f6f7f9; border-bottom: 1px solid #e1e3e7; }
.browser__navs { display: flex; gap: 6px; }
.browser__navs svg, .browser__tool svg { width: 34px; height: 34px; padding: 7px; fill: none; stroke: #5f6368; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.browser__navs svg:nth-child(2) { stroke: #b9bdc3; }
.browser__tool:last-child svg { fill: #5f6368; stroke: none; }
.browser__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 18px; background: #e9ecf0; font-size: 14px; color: #3c4043; white-space: nowrap; }
.browser__url > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.browser__url svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; }
.browser__url .browser__star { width: 20px; height: 20px; stroke: #5f6368; stroke-width: 1.6; stroke-linejoin: round; }
.browser__ext { position: relative; display: grid; place-items: center; width: 38px; height: 34px; border-radius: 9px; }
.browser__ext.is-on { background: var(--color-cobalt-mist); box-shadow: inset 0 0 0 1.5px var(--color-cobalt); }
.browser__ext img { width: 30px; height: auto; }
.browser__ext b { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--color-cobalt); color: #fff; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px #f6f7f9; }
.browser__avatar { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 2px; border-radius: 50%; background: #cfd6de; }
.browser__avatar svg { width: 22px; height: 22px; fill: none; stroke: #5d6772; stroke-width: 1.7; stroke-linecap: round; }

/* The store's product page, inside the 1280px window */
.store { color: #1b1b1b; background: #fff; }
.store p { margin: 0; }
.store__promo { padding: 10px 0; text-align: center; font-size: 13px; background: #1b1b1b; color: #f3efe8; letter-spacing: 0.02em; }
.store__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 64px; border-bottom: 1px solid #ececec; }
.store__nav { display: flex; gap: 22px; font-size: 13px; color: #3a3a3a; white-space: nowrap; }
.store__logo { font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: 0.22em; color: #111; }
.store__icons { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.store__icons svg { width: 22px; height: 22px; fill: none; stroke: #1b1b1b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.store__bag { position: relative; display: grid; }
.store__bag b { position: absolute; right: -7px; top: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 10px; font-weight: 600; }
.store__crumb { padding: 18px 64px 16px; font-size: 13px; color: #8a8a8a; }
.store__crumb i { font-style: normal; margin: 0 6px; color: #c4c4c4; }
.store__crumb b { font-weight: 500; color: #1b1b1b; }
.store__main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding: 0 64px 48px; }
.store__gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.store__thumbs { display: grid; gap: 12px; }
.store__thumbs i { display: block; aspect-ratio: 4 / 5; background: #f2f0ec url("../img/photos/extension-product.webp") center / cover no-repeat; outline: 1px solid #e6e3de; }
.store__thumbs i.is-on { outline: 2px solid #1b1b1b; outline-offset: 2px; }
.store__photo { position: relative; background: #f2f0ec; }
.store__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.store__tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; background: #fff; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.store__info { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.store__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8a8a; }
.store__name { font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; color: #111; }
.store__rating { font-size: 13px; color: #555; } .store__rating span { color: #1b1b1b; letter-spacing: 2px; margin-right: 4px; } .store__rating u { margin-left: 6px; color: #8a8a8a; }
.store__price { margin-top: 4px; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.store__pay { font-size: 13px; color: #6a6a6a; }
.store__row { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: #6a6a6a; } .store__row b { color: #1b1b1b; font-weight: 500; } .store__row u { font-size: 13px; color: #1b1b1b; }
.store__swatches { display: flex; gap: 10px; }
.store__swatches i { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.store__swatches i.is-on { outline: 1.5px solid #1b1b1b; outline-offset: 3px; }
.store__sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.store__sizes i { display: grid; place-items: center; height: 44px; font-style: normal; font-size: 14px; border: 1px solid #d9d9d9; background: #fff; color: #1b1b1b; }
.store__sizes i.is-on { border: 1.5px solid #1b1b1b; font-weight: 600; }
.store__sizes i.is-out { color: #b9b9b9; background: linear-gradient(to top right, transparent calc(50% - 0.5px), #d9d9d9 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.store__cart { position: relative; display: grid; place-items: center; height: 54px; margin-top: 8px; background: #1b1b1b; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; animation: pdp-press 4.5s ease-in-out infinite; }
.store__wish { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid #d9d9d9; font-size: 14px; }
.store__wish svg { width: 18px; height: 18px; fill: none; stroke: #1b1b1b; stroke-width: 1.5; }
.store__perks { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: #555; }
.store__perks li::before { content: "✓"; margin-right: 8px; color: #1b1b1b; }

/* The cursor pressing Add to cart, on a loop */
.pdp-cursor { position: absolute; left: 64%; top: 46%; width: 34px; height: 34px; fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, calc(0.3 * var(--shadow-strength)))); animation: pdp-cursor 4.5s ease-in-out infinite; }
@keyframes pdp-press { 0%, 52%, 70%, 100% { transform: scale(1); background: #1b1b1b; } 58% { transform: scale(0.98); background: #3a3a3a; } }
@keyframes pdp-cursor { 0% { translate: 40px 50px; } 40%, 100% { translate: 0 0; } 58% { scale: 0.9; } 66% { scale: 1; } }

/* The extension's popup, hanging from its toolbar icon (sizes are in the 1280px window) */
.ext-pop {
  position: absolute; z-index: 2; top: 100px; right: 124px; width: 420px; display: grid; gap: 12px; padding: 16px;
  border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 50px -18px rgba(10, 18, 60, calc(0.45 * var(--shadow-strength)));
}
.ext-pop__head { display: flex; align-items: center; gap: 10px; }
.ext-pop__head img { width: 38px; height: 38px; object-fit: contain; padding: 3px; border-radius: 10px; background: var(--color-cobalt-mist); }
.ext-pop__head b { flex: 1; font-size: 17px; font-weight: 600; color: var(--color-ink); }
.ext-pop__tick { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--color-cobalt); fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ext-pop__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--color-paper); }
.ext-pop__item img { width: 50px; height: 62px; object-fit: cover; border-radius: 7px; }
.ext-pop__item span { display: grid; gap: 3px; font-size: 13.5px; line-height: 17px; color: var(--color-ink-muted); }
.ext-pop__item b { font-size: 15.5px; font-weight: 600; color: var(--color-ink); }
.ext-pop__board { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--color-line); font-size: 14px; color: var(--color-ink-muted); }
.ext-pop__board b { flex: 1; font-weight: 600; color: var(--color-ink); }
.ext-pop__board svg { width: 14px; height: 14px; fill: none; stroke: var(--color-ink-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ext-pop__btn { display: grid; place-items: center; height: 42px; border-radius: var(--radius-pill); background: var(--color-cobalt); color: #fff; font-size: 15px; font-weight: 600; }

/* Hand-drawn note in the panel's top margin, pointing down at the extension icon.
   js/browser-mock.js sets --ext-x to the middle of the icon. */
.note.note--ext { top: auto; left: auto; right: calc(100% - var(--ext-x, 90%) - 8px); bottom: calc(100% - var(--pad-t) + 6px); align-items: flex-start; gap: 0; }
.note--ext .note__text { padding-top: 4px; }
.motion-off .store__cart, .motion-off .pdp-cursor { animation: none; }
@media (prefers-reduced-motion: reduce) { .store__cart, .pdp-cursor { animation: none; } }

/* Closet: event boards, as in the app */
.boards { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.board {
  position: relative; margin: 0; width: clamp(168px, 19vw, 236px); padding: 8px 8px 12px; rotate: var(--r, 0deg);
  background: var(--color-surface); border-radius: var(--radius-panel); box-shadow: inset 0 0 0 var(--border) var(--color-line-soft), var(--shadow-print);
}
.board + .board { margin-left: -16px; margin-top: 48px; }
.board__collage { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: var(--radius-card); overflow: hidden; }
.board__collage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--photo-filter); background: var(--color-line-soft); }
.board__caption { display: grid; gap: 2px; padding: 10px 4px 0; }
.board__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: -0.02em; }
.board__meta { font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }

/* ---------- 3 · Questions ------------------------------------------- */
.faq { padding-top: clamp(56px, 7vw, 96px); }
/* One centred column: heading on top, questions below */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(24px, 4vw, 40px); }
.faq__grid .section__head { margin: 0 auto; text-align: center; justify-items: center; }
.faq__list { width: 100%; max-width: min(100%, calc(100% * 8 / var(--grid-cols))); } /* 8 columns */
.qa { border-top: var(--border) solid var(--color-line); }
.qa:last-child { border-bottom: var(--border) solid var(--color-line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px; line-height: 24px; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; width: 20px; height: 20px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: var(--border-strong); margin-top: -0.75px; background: var(--color-cobalt); transition: rotate var(--dur-base) var(--ease-out); }
.qa__icon::after { rotate: 90deg; }
.qa[open] .qa__icon::after { rotate: 0deg; }
.qa__body { padding: 0 0 24px; max-width: var(--text-max); color: var(--color-ink-muted); line-height: 24px; }

/* ---------- 4 · Cobalt band ----------------------------------------- */
/* The closing sign-up is an embossed invitation card laid on the page */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100% - 2 * var(--gutter), var(--content-max)); margin-inline: auto; /* edge to edge on the grid */
  padding-block: clamp(88px, 12vw, 160px); border-radius: var(--invite-radius);
  background: var(--color-cobalt); color: var(--color-on-cobalt);
  box-shadow: 0 1px 2px rgba(0, 10, 80, calc(0.2 * var(--shadow-strength))), 0 30px 60px -32px rgba(0, 10, 80, calc(0.5 * var(--shadow-strength)));
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--emboss-image); background-size: auto var(--emboss-size);
  background-position: center; background-repeat: repeat-x; opacity: var(--emboss-opacity);
  /* Softer behind the heading and form so the text stays easy to read */
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(0, 0, 0, var(--emboss-centre)) 0%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(0, 0, 0, var(--emboss-centre)) 0%, #000 100%);
}
.band__frame { position: absolute; inset: clamp(10px, 1.6vw, 18px); border: 1px solid var(--invite-frame); border-radius: 2px; pointer-events: none; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-image); background-size: var(--grain-size); opacity: var(--grain-opacity-band); }
.band__inner { display: grid; justify-items: center; text-align: center; padding-inline: 0; }
/* The closing form spans 6 of the card's 12 columns (6 of 8 on tablets, all 4 on phones) */
.band .join { max-width: min(100%, calc(100% * 6 / var(--grid-cols))); }
@media (max-width: 560px) { .band__inner { padding-inline: 20px; } .band .join { max-width: 100%; } }
.band .eyebrow { color: var(--color-cobalt-soft); }
.band__title { margin-top: var(--space-md); max-width: 16ch; color: #fff; font-family: var(--font-display); font-weight: var(--weight-hero); font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1; letter-spacing: var(--tracking-display); text-wrap: balance; }
.band .join { margin-top: clamp(104px, 11vw, 128px); }
.band .waitlist__row { box-shadow: 0 16px 40px -20px rgba(0, 10, 80, calc(0.6 * var(--shadow-strength))); }
/* The row's own ring is replaced above, so the field carries it, at every width */
.band .waitlist__input:focus { box-shadow: inset 0 0 0 var(--border-strong) var(--color-cobalt); border-radius: var(--radius-pill); }
.band .waitlist__msg { color: #fff; }
.band .fineprint { color: rgba(255, 255, 255, 0.88); }

/* ---------- 5 · Footer ---------------------------------------------- */
.footer { padding-block: clamp(56px, 8vw, 96px) max(32px, env(safe-area-inset-bottom, 0px)); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: var(--space-lg); padding-bottom: clamp(40px, 6vw, 72px); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); font-size: 15px; }
.footer__links a { color: var(--color-ink); text-decoration: none; border-bottom: var(--border) solid var(--color-line); }
.footer__links a:hover { color: var(--color-cobalt); border-color: var(--color-cobalt); }
.footer__email { user-select: all; }
.footer__mark { position: relative; }
.footer__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.footer__mark text { font-family: var(--font-display); font-weight: 900; fill: var(--color-cobalt); }
/* Centred over the R of CHERUB. If the wordmark's size or spacing changes, adjust left. */
.footer__cherub { position: absolute; left: 61.1%; bottom: 80%; width: clamp(88px, 14vw, 180px); translate: -50% 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-lg); font-size: 13px; color: var(--color-ink-muted); }
.footer__legal a { color: inherit; }

/* ---------- Bottom dock (appears once both forms are off screen) ----- */
.dock {
  position: fixed; z-index: 120; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: -50% 160%;
  display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 var(--border) var(--color-line), 0 16px 36px -18px rgba(23, 24, 27, calc(0.45 * var(--shadow-strength)));
  transition: translate var(--dur-base) var(--ease-out), opacity var(--dur-base) ease; opacity: 0;
}
.dock.is-visible { translate: -50% 0; opacity: 1; }
.dock .wordmark { font-size: 16px; }
.dock .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Privacy page -------------------------------------------- */
.legal { max-width: 720px; padding-block: 40px 96px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: var(--tracking-display); margin: 24px 0 16px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal p, .legal li { line-height: 26px; color: var(--color-ink); }
.legal p + p { margin-top: 12px; }
.legal .draft { padding: 12px 16px; border-radius: var(--radius-panel); background: #fff3dc; color: #82530d; font-size: 14px; }

/* ---------- Responsive ---------------------------------------------- */
/* Below 1180px the photos move into a row above the headline */
@media (max-width: 1180px) {
  .hero__prints {
    position: relative; inset: auto; display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2vw, 24px);
    padding: 18px 0 56px; margin-bottom: var(--space-md);
  }
  .print { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: clamp(104px, 18vw, 170px); }
  .print:nth-child(2) { margin-top: 30px; }
  .print:nth-child(4) { margin-top: 16px; }
  .note { --note-left: 2%; }
  /* Earlier photos sit above later ones so their notes aren't covered */
  .print:nth-child(1) { z-index: 4; } .print:nth-child(2) { z-index: 3; } .print:nth-child(3) { z-index: 2; }
  .note__text { font-size: 1.3rem; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  /* Cards stop pinning on tablets and phones and simply follow each other */
  .feature { --card-pad: clamp(24px, 5vw, 40px); position: relative; top: auto; height: auto; grid-template-columns: minmax(0, 1fr); scale: none; }
  /* Stacked: text above, the visual below it across the full width, the rule between them */
  .feature__copy, .feature__visual { grid-column: 1; }
  .feature:not(.feature--split) .feature__visual { box-shadow: inset 0 var(--border) 0 var(--feature-rule); }
  .feature__visual--panel::after { bottom: auto; right: 0; width: auto; height: var(--border); }
  .feature + .feature { margin-top: calc(var(--border) * -1); }
  .feature__visual { height: auto; padding: var(--card-pad) var(--card-pad) 56px; }
  .feature__visual--phone { height: auto; padding-bottom: var(--card-pad); }
  .feature__visual--phone .phone { width: min(220px, 58vw); }
  /* Room above the wallet for the gift card, which pokes out above the slip */
  .wallet { margin-top: 64px; }
  /* Extension card: copy above, the cobalt panel below. Its height follows the browser's scale
     so the Add to cart button stays in view. */
  .feature__visual--panel { --crop: 0.62; --pad-t: 72px; --pad-r: 24px; height: calc(var(--pad-t) + 720px * var(--page-scale, 0.6)); padding: 0; }
}
@media (max-width: 560px) {
  .btn--nav { height: 38px; padding: 0 14px; font-size: 13px; }
  .nav .nav__cherub { width: 48px; }
  .btn--nav .btn__icon { display: none; } /* no room in the nav on phones */
  .print:nth-child(4) { display: none; }
  .print { width: 29vw; }
  .hero__prints { gap: 4px; padding-bottom: 8px; }
  .note { display: none; }
  .feature__visual--panel { --pad-t: 28px; } /* the hand-drawn note is hidden on phones */
  .waitlist__row { flex-direction: column; padding: 0; background: transparent; box-shadow: none; gap: 10px; }
  .waitlist__input { flex: none; width: 100%; }
  .waitlist__row:focus-within { box-shadow: none; }
  .waitlist__input { height: 52px; background: var(--color-surface); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--border) var(--color-line); text-align: center; }
  .waitlist__input:focus { box-shadow: inset 0 0 0 var(--border-strong) var(--color-cobalt); }
  .waitlist.has-error .waitlist__row { box-shadow: none; }
  .waitlist.has-error .waitlist__input { box-shadow: inset 0 0 0 var(--border-strong) var(--color-error); }
  .waitlist__btn { width: 100%; height: 52px; }
  /* On cobalt, keep the field and button together on a white card */
  .band .waitlist__row { padding: 6px; background: var(--color-surface); border-radius: 30px; box-shadow: 0 16px 40px -20px rgba(0, 10, 80, calc(0.6 * var(--shadow-strength))); gap: 6px; }
  .band .waitlist__input { box-shadow: none; background: transparent; height: 48px; }
  .band .waitlist__btn { height: 48px; }
  .footer__top { justify-content: flex-start; }
  .wallet { width: min(100%, 290px); margin-right: 36px; }
  .giftcard { width: 176px; top: -44px; right: -40px; padding: 14px 16px; }
  .giftcard__amount { font-size: 19px; }
  .board { width: 45vw; }
  .board + .board { margin-left: -14px; margin-top: 40px; }
  .boards__note .note__text { white-space: normal; }
}

/* Very narrow phones: no room for the cherub between the wordmark and the button */
@media (max-width: 349px) { .nav__cherub { display: none; } }

/* Motion off: by setting (js/config.js) or by the visitor's system setting */
.motion-off .print__float { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print__float { animation: none; }
  .print__frame, .dock, .btn { transition: none; }
}
