/* Landing pages (/ = A/B switch, /a, /b; QUEUE M3). Colours come from
   brand/tokens.css (the one token set); this file only lays the page out.
   Mobile-first, 16 px gutters, light + dark, reduced motion respected. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* A/B switch: <html data-variant> is set before the page is sent (the edge
   middleware for /, landing_variants.py for /a and /b); the other is removed. */
html:not([data-variant="b"]) .only-b { display: none !important; }
html[data-variant="b"] .only-a { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.gold { color: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px;
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 28px; height: 4px; border-radius: 4px; flex: none;
  background: linear-gradient(90deg, var(--text) 0 50%, #e1ae45 50% 100%); }
h1, h2, h3 { letter-spacing: -0.02em; overflow-wrap: anywhere; }
h2 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; font-weight: 800; }
.sec { padding: 72px 0; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head h2 { margin-top: 12px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.sec.tint { background: var(--card); border-block: 1px solid var(--line); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; line-height: 0; margin-right: auto; }
.logo img { height: 32px; width: auto; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
}
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
.nav-links { display: none; gap: 24px; font-size: 15px; font-weight: 700; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text);
  font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* STORE BADGES */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 48px; width: auto; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* HERO (shared bones) */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before { /* the mirror seam: a soft gold glow behind the product */
  content: ''; position: absolute; inset: -10% -30% auto 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(225, 174, 69, 0.22), transparent);
  pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 36px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 72px); line-height: 1.02; font-weight: 800;
  margin: 14px 0 16px; letter-spacing: -0.035em; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 24px; }

/* Variant A: the explainer video */
.hero-media { position: relative; border-radius: 28px; overflow: hidden; background: #111111;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  aspect-ratio: 9 / 16; width: 100%; max-width: 420px; justify-self: center; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity .4s; }
.hero-media video.is-playing, .hero-media video[controls] { opacity: 1; }
.play-demo { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; background: #f5f2ec; color: #111111; white-space: nowrap; }
/* Sound on (A's hero): swaps the muted loop for the voiceover cut, on a tap only */
.sound-toggle { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex;
  align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; cursor: pointer;
  border-radius: 999px; font: inherit; font-weight: 800; font-size: 14px;
  background: rgba(17, 17, 17, 0.72); color: #f5f2ec; border: 1px solid rgba(245, 242, 236, 0.32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle:not(.on) .waves { display: none; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-a .wrap { justify-items: center; text-align: center; }
  .hero-a .lead { margin-inline: auto; }
  .hero-a .stores { justify-content: center; }
  .hero-a .eyebrow { justify-content: center; }
  .hero-a .hero-media { aspect-ratio: 16 / 9; max-width: 1040px; border-radius: 24px; }
}

/* Variant B: a real result */
.result { background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18); width: 100%; max-width: 480px;
  justify-self: center; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.look { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 3;
  border: 3px solid transparent; }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look.win { border-color: #e1ae45; box-shadow: 0 0 0 4px rgba(225, 174, 69, 0.25),
  0 12px 40px rgba(225, 174, 69, 0.45); }
.chip { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.92); color: #111111; }
.look.win .chip { background: var(--gold-grad); }
.verdict { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 16px 4px 4px; }
.verdict strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.verdict .score { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.verdict .score small { font-size: 15px; color: var(--muted); font-weight: 700; }
.occasion { font-size: 13px; color: var(--muted); margin: 0 4px 12px; font-weight: 700; }
.bars { display: grid; gap: 10px; margin: 0 4px; }
.bar { display: grid; grid-template-columns: 112px 1fr 24px; gap: 4px 10px; align-items: center;
  font-size: 13px; }
.bar .label { grid-row: span 2; font-weight: 700; }
.track { display: block; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.track.thin { height: 4px; }
.fill { display: block; height: 100%; width: calc(var(--v) * 10%); border-radius: inherit;
  background: var(--gold-grad); transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.track.thin .fill { background: var(--muted); opacity: 0.6; }
.bar .num { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar .num.muted { color: var(--muted); font-weight: 600; font-size: 12px; }
.js .bars:not(.in) .fill { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } .js .bars:not(.in) .fill { transform: none; } }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 12px 4px 0; }
.legend span::before { content: ''; display: inline-block; width: 14px; height: 4px;
  border-radius: 4px; margin-right: 6px; vertical-align: middle; background: var(--gold-grad); }
.legend span + span::before { background: var(--muted); opacity: 0.6; }
.boost { margin: 14px 4px 4px; padding: 12px 14px; border-radius: 14px; font-size: 14px;
  background: var(--notice-bg); color: var(--notice-text); }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
@media (min-width: 900px) {
  .hero-b .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
  .hero-b .result { justify-self: end; }
}

/* HOW IT WORKS (A) */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* SCROLL STRIPS (clips in A, real screens in B): scroll inside, never the page */
.strip { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px;
  scrollbar-width: thin; overscroll-behavior-x: contain; }
.strip > * { scroll-snap-align: center; }
.clip { width: 62vw; max-width: 220px; }
.clip-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: #111111; border: 1px solid var(--line); }
.clip-frame video { width: 100%; height: 100%; object-fit: cover; }
.creator { width: 62vw; max-width: 220px; }
.clip figcaption, .screen figcaption { font-size: 14px; font-weight: 700; margin-top: 10px; }
.screen { width: 58vw; max-width: 230px; }
.screen img { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 1290 / 2796;
  width: 100%; height: auto; background: #111111; }
@media (min-width: 1040px) {
  .strip { overflow: visible; margin: 0; padding: 4px 0 0; grid-auto-flow: row; }
  .strip.clips { grid-template-columns: repeat(5, 1fr); }
  .strip.screens { grid-template-columns: repeat(6, 1fr); }
  .strip.creators { grid-template-columns: repeat(5, 1fr); }
  .clip, .screen, .creator { width: auto; max-width: none; }
}

/* CREATORS: the YouTube demo, a thumbnail until pressed (then the iframe) */
.yt { max-width: 760px; margin: 40px auto 0; }
.yt-play, .yt iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #111111; }
.yt-play { padding: 0; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; }
.yt-btn { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center;
  gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--gold-grad); color: #111111; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform .15s; }
.yt-btn svg { width: 20px; height: 20px; }
.yt-play:hover .yt-btn { transform: scale(1.04); }

/* COMPARISON (B) */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px;
  table-layout: fixed; }
.compare th, .compare td { padding: 12px 8px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); overflow-wrap: break-word; hyphens: auto; }
.compare thead th { font-size: 13px; font-weight: 800; border-bottom: 2px solid var(--line); }
.compare th:first-child { width: 25%; }
.compare tbody th { font-weight: 700; color: var(--muted); }
@media (max-width: 759px) { .compare { font-size: 13px; } .compare th, .compare td { padding: 10px 6px; } }
.compare .us { background: color-mix(in srgb, #e1ae45 12%, transparent); font-weight: 700; }
.compare thead .us { border-radius: 14px 14px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 14px 14px; }
.yes::before { content: '✓ '; color: var(--gold); font-weight: 800; }
.no { color: var(--muted); }
@media (min-width: 760px) { .compare { font-size: 16px; } .compare th, .compare td { padding: 16px; } }

/* FEATURES */
.features { display: grid; gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--notice-bg); color: var(--notice-text); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 639px) { /* compact on phones: icon beside the text */
  .feature { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; }
  .feature .ico { grid-row: span 2; margin: 0; }
  .steps li { padding: 16px 18px; }
  .steps li::before { margin-bottom: 4px; }
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 800;
  font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.faq details p a { color: var(--text); }

/* BLOG CARDS (generated by news/build.py between the blog-cards markers) */
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 28px; }
.blog-head a { font-weight: 800; color: var(--gold); text-decoration: none; }
.posts { display: grid; gap: 14px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; text-decoration: none; background: var(--bg);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .2s; }
.post:hover { transform: translateY(-3px); }
.post .art { height: 96px; position: relative; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--card) 0 50%, color-mix(in srgb, #e1ae45 18%, var(--card)) 50%); }
.post .art::after { /* the split-mirror seam */ content: ''; position: absolute; left: 50%; top: 22px;
  bottom: 22px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--gold-grad); }
.post .art img { width: 100%; height: 100%; object-fit: cover; }
.post .art:has(img)::after { display: none; }
.post .body { padding: 18px 20px 22px; }
.post time { font-size: 12px; color: var(--muted); font-weight: 700; }
.post h3 { font-size: 17px; line-height: 1.3; margin: 6px 0 8px; }
.post p { font-size: 14px; color: var(--muted); }

/* FINAL CTA */
.cta { background: #111111; color: #f5f2ec; border-radius: 28px; border: 1px solid var(--line); padding: 40px 22px;
  position: relative; overflow: hidden; text-align: center; }
.cta::after { content: ''; position: absolute; inset: 0 0 0 50%;
  background: linear-gradient(180deg, rgba(225, 174, 69, 0.16), rgba(225, 174, 69, 0.02));
  pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #f5f2ec; max-width: 640px; margin: 14px auto 12px; }
.cta p { color: #b3ada3; margin-bottom: 24px; }
.cta .stores { justify-content: center; }
.cta .eyebrow { color: #b3ada3; justify-content: center; }
.cta .eyebrow::before { background: linear-gradient(90deg, #f5f2ec 0 50%, #e1ae45 50% 100%); }
@media (min-width: 760px) { .cta { padding: 64px 40px; } }

/* FOOTER */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 72px; font-size: 14px; }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .copy { color: var(--muted); }
