/* Cobalt: the main site theme and test variant A. Poster blue, blush, wide display type. */
:root {
  --bg: #ffffff; --surface: #ffffff; --alt: #f1f3fb; --fg: #0b1033; --muted: #545b7a; --line: #dde1ee;
  --accent: #2b3bff; --cta: #2b3bff; --cta-fg: #fff; --hi: #ffc6d6; --opt-on: #eef0ff;
  --display: 'Unbounded', system-ui, sans-serif; --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 700; --display-track: -0.04em; --display-lh: 1.02;
  --radius: 16px; --radius-lg: 30px;
  --foot-bg: #0b1033;
}
h1 { font-size: clamp(36px, 6.2vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 54px); }
.brand { font-family: var(--display); }
.brand b { color: var(--accent); }

/* Hero: full-bleed cobalt; the demo video sits on the baseline like a stage riser */
.hero { background: var(--accent); color: #fff; padding-top: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: end; gap: 56px; } }
.hero-copy { padding-bottom: clamp(8px, 3vw, 72px); }
.hero .lede { color: #dfe3ff; }
.hero .btn { background: #fff; border-color: #fff; color: var(--fg); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: #dfe3ff; font-size: 15px; }
.hero-facts strong { color: #fff; }
.hero-media { position: relative; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: #1b1410; }
.hero-media > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-media .inset {
  position: absolute; right: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); width: clamp(150px, 34%, 240px);
  background: #fff; color: var(--fg); border-radius: var(--radius); padding: 8px 8px 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: rotate(-3deg);
}
.hero-media .inset img { border-radius: calc(var(--radius) - 6px); aspect-ratio: 600 / 336; object-fit: cover; }
.hero-media .inset span { display: block; font-size: 13px; font-weight: 700; margin: 8px 4px 0; }

/* Product duo */
.duo { display: grid; gap: 20px; }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; } }
.tile { display: grid; grid-template-rows: auto 1fr; background: var(--alt); border-radius: var(--radius-lg); overflow: hidden; }
.tile-img { background: #fff; margin: 12px 12px 0; border-radius: calc(var(--radius-lg) - 10px); }
.tile-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tile-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.tile-body h3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.tile-body p { margin: 0; color: var(--muted); }
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.tile-price { font-family: var(--display); font-weight: 700; font-size: 24px; }
.both-row { margin-top: 20px; display: grid; gap: 18px; align-items: center; background: var(--fg); color: #fff; border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
@media (min-width: 720px) { .both-row { grid-template-columns: 220px 1fr auto; } }
.both-row video { border-radius: var(--radius); width: 100%; aspect-ratio: 600 / 338; object-fit: cover; }
.both-row p { margin: 4px 0 0; color: #c9cdf0; }
.both-row .btn { background: var(--hi); border-color: var(--hi); color: var(--fg); }

/* Fit finder over the product duo */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.finder > span { font-weight: 700; margin-right: 6px; }
.finder button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; }
.finder button:hover { border-color: var(--accent); }
.finder button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.finder-out { flex-basis: 100%; margin: 4px 0 0; min-height: 1.6em; font-weight: 600; }
.finder-out a { color: var(--accent); }
.tile { transition: opacity .25s, transform .25s; }
.tile.dim { opacity: .4; transform: scale(.985); }

/* Scroll-scrubbed unfold */
.scrub { height: 240vh; background: var(--fg); color: #fff; --p: 0; }
.scrub-stick { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; align-content: center; gap: 28px; }
@media (min-width: 900px) { .scrub-stick { grid-template-columns: .8fr 1.2fr; align-items: center; } }
.scrub .lede { color: #c9cdf0; }
.scrub video { width: 100%; aspect-ratio: 600 / 350; object-fit: cover; border-radius: var(--radius-lg); background: #e9e6e1; }
.scrub-bar { height: 4px; margin-top: 24px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; max-width: 320px; }
.scrub-bar i { display: block; height: 100%; background: var(--hi); transform-origin: left; transform: scaleX(var(--p)); }
@media (prefers-reduced-motion: reduce) { .scrub { height: auto; padding: 80px 0; } .scrub-stick { position: static; height: auto; } .scrub-bar { display: none; } }

/* Real-world photo mosaic */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic figure:not(:first-child) { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; height: 640px; }
  .mosaic figure:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .mosaic figure:not(:first-child) { aspect-ratio: auto; }
}
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--fg); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Feature rows */
.feat { display: grid; gap: 14px; }
.feat .frame { aspect-ratio: 1; background: #fff; }
.feat .frame img { object-fit: contain; }
.feat p { color: var(--muted); margin: 0; }

/* Promise band */
.promise { background: var(--hi); }
.promise h3 { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; }
.promise p { margin: 0; color: #4a3442; }

/* Product page */
.pdp { display: grid; gap: clamp(24px, 4vw, 56px); padding-top: clamp(20px, 3vw, 40px); }
@media (min-width: 720px) { .pdp { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.panel { position: sticky; top: 88px; }
@media (max-width: 719px) { .panel { position: static; } }
.panel h1 { font-size: clamp(34px, 4.4vw, 56px); }
.panel .lede { margin-top: 12px; font-size: 18px; }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.gallery > * { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery > :first-child { grid-column: 1 / -1; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery .photo img { object-fit: cover; }
@media (max-width: 719px) {
  .gallery { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .gallery > * { flex: 0 0 86%; scroll-snap-align: center; }
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.other { display: grid; gap: 18px; align-items: center; background: var(--alt); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); }
@media (min-width: 720px) { .other { grid-template-columns: 200px 1fr auto; } }
.other img { background: #fff; border-radius: var(--radius); aspect-ratio: 1; object-fit: contain; }
.other p { margin: 4px 0 0; color: var(--muted); }

/* Variant A: buy box in the hero */
.lp-hero { background: var(--accent); color: #fff; padding: clamp(20px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); }
.lp-hero .lede { color: #dfe3ff; }
.lp-hero .buy { border-color: var(--fg); }
.lp-hero .top-note { color: #dfe3ff; }
.lp-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .lp-grid { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 48px; } }
.lp-hero .clip { border-radius: var(--radius-lg); overflow: hidden; margin-top: 24px; }
.lp-hero .clip video { width: 100%; aspect-ratio: 600 / 350; object-fit: cover; }
