/* Homepage styles — 2026-08 redesign (Andy's Figma mock, node 210:524).
   Archivo is the only web font. Tokens below are the typography contract:
   Display / H1 / H2 / H3 / Body1 / Body2 (mobile sizes from Figma, desktop
   sizes scale up via clamp). Shared by index.html and uikit.html.
   The legacy styles.css still serves the other static pages — don't merge. */

:root {
  /* Color tokens (from Figma) */
  --bg: #f5f5f5;
  --ink: #090d0e;
  --accent: #ce3300;
  --muted: #4d4d4d;
  --dark-bg: #090d0e;
  --on-dark: #f5f5f5;

  /* Type tokens: Figma mobile sizes -> desktop via clamp */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display-size: clamp(46px, 2.8vw + 34px, 76px);   /* Mobile/Display 46/500/1.0 */
  --h1-size: clamp(40px, 1.9vw + 32px, 60px);        /* Mobile/H1 40/600/1.0 */
  --h2-size: clamp(32px, 1.3vw + 27px, 46px);        /* Mobile/H2 32/500/1.0 */
  --h3-size: clamp(21px, 0.3vw + 20px, 24px);        /* Mobile/H3 21/600/1.2 */
  --body1-size: clamp(15px, 0.2vw + 14px, 17px);     /* Mobile/Body1 15/400/1.5 */
  --body2-size: 14px;                                /* Body2 14/400/1.5 */
}

/* Self-hosted Archivo (variable, wght 400-700). Self-hosted so the type
   actually renders on first visit — a Google Fonts stylesheet + display=optional
   misses the swap window every cold load. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Reset (minimal) ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--body1-size);
  line-height: 1.5;
  /* clip, not hidden: `overflow-x: hidden` computes overflow-y to auto and
     makes <body> a scroll container, which strands every view() timeline on
     the page against a scrollport that never scrolls. */
  overflow-x: clip;
}
/* -webkit-touch-callout: without it an iOS long-press on the hero record opens the
   Save Image callout, which fires touchcancel and restarts the spin mid-press. */
img { display: block; max-width: 100%; height: auto; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ── Typography classes (the contract) ───────────────────────────────── */
.display { font-size: var(--display-size); font-weight: 500; line-height: 1; }
.h1      { font-size: var(--h1-size);      font-weight: 600; line-height: 1; }
.h2      { font-size: var(--h2-size);      font-weight: 500; line-height: 1; }
.h3      { font-size: var(--h3-size);      font-weight: 600; line-height: 1.2; }
.body1   { font-size: var(--body1-size);   font-weight: 400; line-height: 1.5; }
.body2   { font-size: var(--body2-size);   font-weight: 400; line-height: 1.5; }
.label {  /* small uppercase utility text (logo, social row) */
  font-size: 12px; font-weight: 400; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.accent { color: var(--accent); }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── Header / masthead ───────────────────────────────────────────────── */
/* Logo offsets from production myplastic.app (measured), except the top, which
   Andy asked to raise: 48/24 on mobile, 48/48 from 640, 48/80 from 1024 (prod
   is 96 below 1024). The 1440 shell sits OUTSIDE the
   padding — same as production's `max-w-[1440px] mx-auto pl-[80px]` — so past
   1600 the logo keeps tracking the shell rather than the viewport edge.
   Overrides .container's 1100/24; .hero-art still escapes to the viewport via
   its own `right: calc(50% - 50vw)`. */
.masthead {
  position: relative;
  max-width: 1440px;
  padding-top: 48px;   /* production sits at 96 below 1024; Andy wants it higher */
  padding-inline: 24px;
  min-height: 276px;
}
@media (min-width: 640px)  { .masthead { padding-inline: 48px; } }
@media (min-width: 1024px) {
  .masthead {
    padding-inline: 80px;
    /* The record is taller than the 276px floor from 1024 up, and it is absolutely
       positioned — without this the headline runs under it (measured: 41px). Tracks
       the art exactly: height = width x 570/556. */
    min-height: calc(clamp(340px, 25vw, 500px) * 570 / 556);
  }
}
.logo { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 2; }
.logo .logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
}
.logo .logo-tag { color: var(--accent); font-size: 9px; letter-spacing: 0; }
@media (min-width: 640px) { .logo .logo-tag { font-size: 11px; } }
@media (min-width: 900px) {
  .logo { gap: 0; }
  .logo .logo-name { font-size: 18px; text-transform: uppercase; }
}
/* right pins to the viewport edge (not the 1100px container) so the record's
   hard-cut edge always bleeds off-screen */
.hero-art { position: absolute; top: 0; right: calc(50% - 50vw); pointer-events: none; z-index: 1; }
.hero-record-wrap {
  position: relative;
  overflow: hidden;      /* clips the label disc where it runs past the record art */
  pointer-events: auto;  /* hover/press drive the vinyl physics in home.js */
}
/* Widths ported verbatim from production myplastic.app (measured, not guessed):
   45vw under 640, 25vw to 767, 20vw to 1023, then 25vw clamped to 340–500. */
.hero-art .hero-record { display: block; width: 45vw; height: auto; }
@media (min-width: 640px)  { .hero-art .hero-record { width: 25vw; } }
@media (min-width: 768px)  { .hero-art .hero-record { width: 20vw; } }
@media (min-width: 1024px) { .hero-art .hero-record { width: clamp(340px, 25vw, 500px); } }
/* Production label geometry: centre at (91.9%, 7.1%) of the record art,
   diameter 66% of its width. */
.record-label-pos {
  position: absolute; left: 91.9%; top: 7.1%;
  width: 66%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.record-label-spin { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.record-label-spin img { width: 100%; height: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 30px; margin-top: -80px; padding-top: 27px;
}
.hero-primary { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-copy .display { max-width: 9ch; }
.hero-title-line { display: inline; }
.hero-copy .body1 { max-width: 34ch; }
@media (min-width: 900px) {
  .hero { margin-top: 0; transform: translateY(-10vh); }
  .hero-primary { transform: translateY(-32px); }
  .hero-copy .display { max-width: none; }
  .hero-title-line { display: block; white-space: nowrap; }
  .hero-copy .body1 { max-width: 44ch; }
}
.store-badge img { height: 50px; width: auto; }
.store-badge { display: inline-block; transition: opacity 0.2s; }
@media (hover: hover) { .store-badge:hover { opacity: 0.8; } }
/* Store row. Default state shows BOTH badges — that is what every crawler,
   LLM fetcher and no-JS visitor gets, so the page always states that Android
   exists. home.js then narrows it to the one store that applies: Android phone
   -> Android only, iPhone/iPad -> App Store only, desktop -> both. Never the
   other way round: hiding by default would let a fetcher conclude we are
   iOS-only. */
.get-app { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.is-android .get-app .store-badge { display: none; }
.is-ios .get-app .android-badge { display: none; }
.android-badge {
  display: flex; flex-direction: column; justify-content: center;
  height: 50px; padding-inline: 18px;
  border: 1px solid currentColor; border-radius: 8px;
  color: var(--ink); text-decoration: none;
  transition: opacity 0.2s;
}
.android-badge-sub  { font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.android-badge-main { font-size: 17px; line-height: 1.2; font-weight: 500; }
@media (hover: hover) { .android-badge:hover { opacity: 0.7; } }
.cta-copy .get-app { justify-content: flex-start; }
.cta-copy .android-badge { height: 40px; padding-inline: 14px; }
.cta-copy .android-badge-sub  { font-size: 9px; }
.cta-copy .android-badge-main { font-size: 14px; }

/* Proof row: Red Dot badge + rating laurel */
.proof {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  padding-block: 48px 8px;
}
.proof-reddot { height: 48px; width: auto; }
.rating { position: relative; display: flex; flex-direction: column; align-items: center; padding-inline: 28px; }
.rating .rating-score { display: flex; align-items: center; gap: 3px; }
.rating .rating-star { color: #12120d; flex-shrink: 0; }
.rating .rating-value { font-size: 28px; font-weight: 700; line-height: 1; }
.rating .rating-count { font-size: 12px; line-height: 1.6; color: #12120d; }
/* rating-leaf.svg is a 21x48 upright branch (laurel.png was a 626 square), so
   it is sized by height and mirrored for the right side. */
.rating .laurel { position: absolute; top: 50%; height: 40px; width: auto; transform: translateY(-50%); }
.rating .laurel--left { left: 0; }
.rating .laurel--right { right: 0; transform: translateY(-50%) scaleX(-1); }

/* ── Features ────────────────────────────────────────────────────────── */
.features { padding-block: 96px 104px; }
.feature-stage { display: flex; flex-direction: column; gap: 81px; }
.feature-video-window,
.feature-text-window { display: contents; }
.feature { display: flex; flex-direction: column; gap: 32px; }
.feature-media {
  width: 100%; aspect-ratio: 351 / 383;
  border-radius: 8px; overflow: hidden; background: #e7e7e7;
}
.feature-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video block carries the source's own ratio (2160x2880) so the frame is
   never cropped; the still blocks keep the 351/383 crop window. */
.feature-media--video { aspect-ratio: 2160 / 2880; }
.feature-text { display: flex; flex-direction: column; gap: 16px; }
.feature-text .body1 { opacity: 0.8; max-width: 46ch; }
@media (min-width: 900px) {
  .feature { flex-direction: row; align-items: center; gap: 56px; }
  .feature-stage > .feature:nth-child(even) { flex-direction: row-reverse; }
  .feature-media { flex: 0 0 460px; }
  .feature-text { flex: 1; }
}

/* Desktop scroll story. The tall section contains a sticky viewport stage;
   GSAP only scrubs its children, so the stage cannot escape over the hero. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.has-feature-story { scroll-behavior: auto; }
  .has-feature-story .features {
    position: relative;
    height: calc(100dvh + 200dvh);
    padding-block: 0;
    background: var(--bg);
  }
  .has-feature-story .feature-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    max-width: none;
    padding-inline: 0;
    overflow: hidden;
  }
  .has-feature-story .feature {
    --feature-stage-gutter: clamp(48px, 8vw, 160px);
    --feature-gap: clamp(32px, 5vw, 96px);
    --feature-copy-min: 240px;
    --feature-media-width: min(
      60dvh,
      calc(100vw - var(--feature-stage-gutter) - var(--feature-gap) - var(--feature-copy-min))
    );
    position: absolute;
    inset: 0;
    width: min(
      calc(100% - var(--feature-stage-gutter)),
      calc(var(--feature-media-width) + var(--feature-gap) + 500px)
    );
    margin-inline: auto;
    display: grid;
    grid-template-columns: var(--feature-media-width) minmax(var(--feature-copy-min), 1fr);
    gap: var(--feature-gap);
    align-items: center;
    visibility: hidden;
    pointer-events: none;
  }
  .has-feature-story .feature:first-child { visibility: visible; }
  .has-feature-story .feature-video-window {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 1200;
    overflow: hidden;
    border-radius: 16px;
    justify-self: start;
  }
  .has-feature-story .feature:first-child .feature-video-window { background: #d5d5d5; }
  .has-feature-story .feature-text-window {
    display: flex;
    align-items: center;
    width: min(100%, 500px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
  .has-feature-story .feature-media {
    width: 100%;
    height: 100%;
    aspect-ratio: 900 / 1200;
    background: #d5d5d5;
    border-radius: 0;
    will-change: transform;
  }
  .has-feature-story .feature-text {
    width: 100%;
    will-change: transform, opacity;
  }
}

/* ── Dark "why" section ──────────────────────────────────────────────── */
.why {
  background: var(--dark-bg); color: var(--on-dark); padding-block: 65px 0;
  /* clip, not hidden: `overflow: hidden` would make this a scroll container
     and the rolling band's view() timeline would resolve against it (and
     never advance) instead of against the page. */
  overflow-x: clip;
}
.why-title { text-align: center; margin-bottom: 64px; }
.why-cards { display: flex; flex-direction: column; gap: 110px; max-width: 700px; margin-inline: auto; }
.why-card { display: flex; flex-direction: column; gap: 24px; width: min(100%, 269px); }
.why-card:nth-child(even) { align-self: flex-end; }
.why-card-media { border-radius: 8px; overflow: hidden; background: #1a1f21; }
.why-card-media img { width: 100%; height: 100%; object-fit: cover; }
.why-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-card-text { display: flex; flex-direction: column; gap: 12px; }
.why-card-text .h3 { color: #fff; }
.why-card-text .body1 { color: var(--on-dark); opacity: 0.8; }
@media (min-width: 900px) {
  .why { margin-block: 120px; }
  .why-card { width: 360px; }
}

/* Per-card media crops (approximate Figma crop windows; images are
   full-height app screenshots until final art lands) */
.media-allmedia    { aspect-ratio: 1206 / 868; }

/* Three screens on one card, advancing every 2000ms like a carousel: the
   incoming frame pushes the outgoing one out to the left rather than fading
   over it. The track is 4 frames wide and steps 0 -> -25% -> -50% -> -75%,
   holding 1500ms and gliding 500ms; the 4th frame is a clone of the 1st, so
   the snap back to 0 at the end of the cycle lands on an identical image and
   is invisible. Cycle = 3 x 2000ms. */
.media-swap { position: relative; background: #f4f4f4; overflow: hidden; }
.media-swap-track {
  display: flex; width: 400%;
  animation: none;
}
.media-swap--ready .media-swap-track { animation: media-swap 6000ms ease-out infinite; }
.media-swap-track img { flex: 0 0 25%; width: 25%; height: auto; display: block; }
@keyframes media-swap {
  0%,      25%     { transform: translate3d(0, 0, 0); }
  33.333%, 58.333% { transform: translate3d(-25%, 0, 0); }
  66.667%, 91.667% { transform: translate3d(-50%, 0, 0); }
  100%             { transform: translate3d(-75%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .media-swap--ready .media-swap-track { animation: none; }
}
}
.media-sync { aspect-ratio: 804 / 714; background: #f5f5f5; }
.media-sync img { display: block; object-fit: contain; object-position: center; }
.media-inventory {
  position: relative;
  aspect-ratio: 4 / 3;
  contain: size;
  padding: 4px 3px 4px 4px;
  border: 1px solid #aeb4b6;
  border-radius: 4px;
  overflow: visible;
  background: transparent;
}
.inventory-fill-viewport {
  position: absolute;
  inset: 4px 3px 4px 4px;
  overflow: hidden;
}
.inventory-emoji-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.inventory-emoji {
  position: absolute;
  top: 0;
  font-size: 27px;
  line-height: 1;
  opacity: 0;
  translate: -50% calc(-100% - 12px);
  animation: inventory-emoji-appear 1200ms cubic-bezier(.25, 1, .5, 1) forwards;
  will-change: transform, opacity;
}
@keyframes inventory-emoji-appear {
  0% { opacity: 0; transform: translateY(-15px); }
  25% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
.inventory-fill-track {
  display: flex;
  gap: 1px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.inventory-strip {
  flex: 0 0 3px;
  width: 3px;
  height: 100%;
  overflow: hidden;
}
.inventory-strip img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.inventory-fill--pending .inventory-fill-track {
  clip-path: inset(0 100% 0 0);
}
.media-anniversary {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 3%;
  aspect-ratio: 1206 / 1325;
  padding: 2.5%;
  overflow: hidden;
  background: #f5f5f5;
}
.anniversary-art {
  position: relative;
  min-height: 0;
}
.why-card-media .anniversary-cover,
.why-card-media .anniversary-record {
  position: absolute;
  left: 7%;
  bottom: 0;
  width: 70%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.why-card-media .anniversary-record {
  z-index: 1;
  left: 13%;
  width: 64%;
  transform: translate3d(calc(30px + 10%), 0, 0);
  transform-origin: 50% 50%;
  will-change: transform;
}
.why-card-media .anniversary-cover {
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}
.why-card-media .anniversary-metadata {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.anniversary-card--scroll-linked .anniversary-record {
  transform: translate3d(var(--anniversary-record-x, 0px), 0, 0);
}
.anniversary-confetti {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
.anniversary-confetti-piece {
  position: absolute;
  top: 0;
  left: var(--confetti-left);
  width: var(--confetti-width);
  height: var(--confetti-height);
  border-radius: 1px;
  opacity: 0;
  transform: translate3d(0, var(--confetti-start), 0) rotate(var(--confetti-rotation));
  will-change: transform, opacity;
}
.anniversary-confetti-piece--circle {
  border-radius: 50%;
}
.anniversary-card--celebrating .anniversary-confetti-piece {
  animation: anniversary-confetti-fall var(--confetti-duration) ease-in var(--confetti-delay) both;
}
@keyframes anniversary-confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, var(--confetti-start), 0) rotate(var(--confetti-rotation));
  }
  25% {
    opacity: 1;
    transform: translate3d(var(--confetti-wobble), var(--confetti-quarter), 0) rotate(calc(var(--confetti-rotation) + 135deg));
  }
  50% {
    opacity: 1;
    transform: translate3d(var(--confetti-drift), var(--confetti-half), 0) rotate(calc(var(--confetti-rotation) + 310deg));
  }
  75% {
    opacity: 0;
    transform: translate3d(var(--confetti-wobble), var(--confetti-three-quarter), 0) rotate(calc(var(--confetti-rotation) + 500deg));
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), var(--confetti-fall), 0) rotate(calc(var(--confetti-rotation) + 680deg));
  }
}
.media-sort { aspect-ratio: 838 / 588; border-radius: 10px; background: #f5f5f5; }
.media-sort img { display: block; object-fit: contain; object-position: center; }
.media-streaming { aspect-ratio: 720 / 368; }
.media-deepdive {
  aspect-ratio: 812 / 390;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.4vw, 20px);
  color: #fff;
  background: linear-gradient(135deg, #763685 0%, #d7392e 100%);
}
.deepdive-panel-title {
  flex: 0 0 auto;
  margin-bottom: clamp(10px, 1.15vw, 16px);
  font-size: clamp(14px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1;
}
.deepdive-cover-stack {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.deepdive-album {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}
.deepdive-album:last-child {
  flex: 0 0 auto;
  aspect-ratio: 1;
}
.deepdive-album img {
  position: absolute;
  inset: 0 auto 0 0;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: -2px 0 2px rgba(0, 0, 0, 0.25);
}
.deepdive-album:last-child img { position: relative; }

.media-wishlist {
  position: relative;
  isolation: isolate;
  aspect-ratio: 538 / 510;
  overflow: hidden;
  background: transparent;
}
.wishlist-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--stack-z);
  width: 70.4%;
  aspect-ratio: 1;
  overflow: hidden;
  opacity: 1;
  background: #d8dcdd;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transform: translate3d(-50%, -50%, 0) translate3d(var(--stack-x), var(--stack-y), 0) rotate(var(--stack-angle));
  transform-origin: center;
}
.wishlist-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wishlist-stack--pending .wishlist-cover { opacity: 0; }
.wishlist-stack--active .wishlist-cover {
  animation: wishlist-cover-land 320ms cubic-bezier(.16, 1, .3, 1) var(--stack-delay) both;
  will-change: transform, opacity;
}
@keyframes wishlist-cover-land {
  from {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--stack-x), calc(var(--stack-y) + 18px), 0) rotate(0deg) scale(.78);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) translate3d(var(--stack-x), var(--stack-y), 0) rotate(var(--stack-angle)) scale(1);
  }
}
/* "And sooo much mooore" separator inside the dark section */
.more-band { padding-block: 160px 120px; }
@media (min-width: 900px) {
  .more-band { padding: 280px 0 320px; }
}

/* ── Rolling separator ──────────────────────────────────────────────────────
   The six circular covers replace the two groups of O letters. The strip and
   every cover share one view timeline: page scroll moves the line horizontally
   while home.js converts that exact pixel travel into contact-patch rotation.
   The text-only fallback keeps the full phrase readable for reduced motion and
   browsers without scroll-driven animations. */
.roll {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow-x: clip;
  view-timeline-name: --roll-line;
  view-timeline-inset: 10% 10%;
  --roll-size: clamp(64px, 7vw, 112px);
  --roll-disc-size: clamp(45px, 5vw, 80px);
  --roll-start: 100vw;
  --roll-end: -100%;
  --roll-turn: 0deg;
}
@media (min-width: 900px) {
  .roll {
    --roll-size: clamp(83.2px, 9.1vw, 145.6px);
    --roll-disc-size: clamp(58.5px, 6.5vw, 104px);
  }
}
.roll-fallback {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}
.roll-strip {
  display: none;
  align-items: center;
  gap: clamp(28px, 2.8vw, 52px);
}
.roll-word-group {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.25vw, 6px);
  flex: 0 0 auto;
}
.roll-word {
  flex: 0 0 auto;
  color: #fff;
  font-size: var(--roll-size);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.roll-dot {
  display: none;
  width: var(--roll-disc-size);
  height: var(--roll-disc-size);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #2a2f31;
}
.roll-dot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (min-width: 900px) {
  .roll-dot img {
    scale: 1.05;
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .roll-fallback { display: none; }
    .roll-strip {
      display: flex;
      width: max-content;
      justify-content: flex-start;
    }
    .roll-dot { display: block; }
    .roll-strip, .roll-dot {
      animation: linear both;
      animation-timeline: --roll-line;
      animation-range: entry 0% exit 100%;
    }
    .roll-strip { animation-name: roll-travel; }
    .roll-dot { animation-name: roll-turn; }
  }
}
@keyframes roll-travel {
  from { transform: translate3d(var(--roll-start), 0, 0); }
  to   { transform: translate3d(var(--roll-end), 0, 0); }
}
@keyframes roll-turn {
  from { rotate: 0deg; }
  to   { rotate: var(--roll-turn); }
}
/* ── Personas ("Perfect for") ────────────────────────────────────────── */
.personas { padding-block: 96px; display: flex; flex-direction: column; gap: 53px; }
.personas-list { display: flex; flex-direction: column; gap: 60px; }
.persona { display: flex; flex-direction: column; gap: 10px; max-width: 314px; }
.persona img { width: 32px; height: 32px; }
@media (min-width: 900px) {
  .personas-list { flex-direction: row; gap: 48px; }
  .persona { flex: 1; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding-block: 152px 96px; display: flex; flex-direction: column; gap: 23px; max-width: 760px; }
@media (min-width: 900px) { .faq { max-width: 960px; } }
.faq-item .faq-q { font-weight: 700; }
.faq-item .faq-a { color: var(--muted); }

/* ── Final CTA + footer ──────────────────────────────────────────────── */
.cta { display: flex; flex-direction: column; align-items: center; padding-top: 32px; }
.cta-phone-media { position: relative; width: 281.25px; flex: 0 0 auto; }
.cta-phone { width: 100%; }
.cta-scan-rotor {
  position: absolute;
  left: 50.251%;
  top: 43.776%;
  width: 18.162%;
  translate: -50% -50%;
  rotate: 0deg;
  animation: cta-scan-rotate 14s linear infinite;
  pointer-events: none;
}
.cta-scan-rotor img { width: 100%; }
@keyframes cta-scan-rotate {
  to { rotate: 360deg; }
}
.cta-copy { display: flex; flex-direction: column; gap: 25px; width: 100%; padding-top: 48px; }
.cta-title { font-size: clamp(63px, 4vw + 48px, 88px); font-weight: 500; line-height: 1; }
.cta-copy .store-badge img { height: 40px; }
@media (min-width: 900px) {
  .cta { flex-direction: row; align-items: center; justify-content: center; gap: 64px; }
  .cta-phone-media { width: 350px; }
  .cta-copy { width: auto; padding-top: 0; }
}

.site-footer { padding-block: 66px 40px; display: flex; flex-direction: column; gap: 40px; }
.social-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.social-row .pair { display: flex; gap: 8px; align-items: center; }
.social-row .pair span { opacity: 0.62; } /* 0.5 fails WCAG AA contrast on #f5f5f5 */
@media (hover: hover) { .social-row a:hover { opacity: 0.6; } }
.footnotes { display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.5; color: rgba(0, 0, 0, 0.55); }
.footnotes a { text-decoration: underline; }
/* Four links now, not two — must wrap or TERMS pushes past 320px. */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(0, 0, 0, 0.6); }
@media (hover: hover) { .legal-links a:hover { color: var(--ink); } }

/* ── Scroll-reveal (driven by home.js) ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .inventory-fill-track { clip-path: none !important; }
  .cta-scan-rotor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Cookie banner (unchanged behavior, restyled with tokens) ────────── */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 100; }
.cookie-card {
  max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px; padding: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.cookie-card p { font-size: 12px; margin-bottom: 16px; color: rgba(0, 0, 0, 0.8); }
.cookie-card p a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions button { padding: 10px 22px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background-color 0.2s; }
.cookie-actions .cookie-accept { background: var(--accent); color: #fff; padding-inline: 37px; }
.cookie-accept:hover { background: #b02b00; }
.cookie-close { background: transparent; border: 0; color: var(--muted); transition: opacity 0.2s; }
.cookie-close:hover { background: transparent; opacity: 0.65; }
