/* ================= Product pages: storytelling (Phase 3) ================= */
/* Per-app accent. --accent is for text and lines, --accent-btn / --accent-ink for filled buttons.
   All pairs meet WCAG AA (4.5:1) in both themes. */
:root { --accent: var(--blue); --accent-btn: var(--blue); --accent-ink: #fff; --accent-glow: rgba(0, 113, 227, .22); --accent-tint: rgba(0, 113, 227, .10); }
.app-notchevsr { --accent: #c4186a; --accent-btn: #c4186a; --accent-ink: #fff; --accent-glow: rgba(255, 79, 151, .30); --accent-tint: rgba(255, 79, 151, .12); --accent-2: rgba(120, 80, 255, .22); }
.app-claudenotchev { --accent: #b4440e; --accent-btn: #b4440e; --accent-ink: #fff; --accent-glow: rgba(217, 119, 87, .32); --accent-tint: rgba(217, 119, 87, .13); --accent-2: rgba(245, 197, 66, .18); }
.app-vinylev { --accent: #6a40e8; --accent-btn: #6a40e8; --accent-ink: #fff; --accent-glow: rgba(140, 110, 255, .30); --accent-tint: rgba(140, 110, 255, .12); --accent-2: rgba(255, 95, 168, .16); }
.app-quickroulettespin { --accent: #0d7a3c; --accent-btn: #0d7a3c; --accent-ink: #fff; --accent-glow: rgba(15, 140, 68, .28); --accent-tint: rgba(15, 140, 68, .12); --accent-2: rgba(230, 195, 110, .22); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-notchevsr { --accent: #ff7ab6; --accent-btn: #ff7ab6; --accent-ink: #1a0010; }
  :root:not([data-theme="light"]) .app-claudenotchev { --accent: #ff9a6b; --accent-btn: #ff9a6b; --accent-ink: #1f0d04; }
  :root:not([data-theme="light"]) .app-vinylev { --accent: #b9a3ff; --accent-btn: #b9a3ff; --accent-ink: #160c33; }
  :root:not([data-theme="light"]) .app-quickroulettespin { --accent: #e6c36e; --accent-btn: #e6c36e; --accent-ink: #241a03; }
}
:root[data-theme="dark"] .app-notchevsr { --accent: #ff7ab6; --accent-btn: #ff7ab6; --accent-ink: #1a0010; }
:root[data-theme="dark"] .app-claudenotchev { --accent: #ff9a6b; --accent-btn: #ff9a6b; --accent-ink: #1f0d04; }
:root[data-theme="dark"] .app-vinylev { --accent: #b9a3ff; --accent-btn: #b9a3ff; --accent-ink: #160c33; }
:root[data-theme="dark"] .app-quickroulettespin { --accent: #e6c36e; --accent-btn: #e6c36e; --accent-ink: #241a03; }

.pill.accent { background: var(--accent-btn); color: var(--accent-ink); }
.pill.accent:hover { background: color-mix(in srgb, var(--accent-btn) 88%, var(--ink)); }
.lnav .pill { background: var(--accent-btn); color: var(--accent-ink); }
.feat .dot { background: var(--accent); }
.eyebrow { margin: 0 0 10px; font-size: 17px; font-weight: 600; color: var(--accent); letter-spacing: -.01em; }

/* Hero: accent glow behind the title */
.p-hero { position: relative; isolation: isolate; overflow-x: clip; }
.p-hero::before {
  content: ""; position: absolute; left: 50%; top: 40%; z-index: -1; width: min(130vw, 1100px); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side at 42% 50%, var(--accent-glow), transparent 72%), radial-gradient(closest-side at 64% 46%, var(--accent-2, transparent), transparent 70%);
  pointer-events: none;
}

/* Larger, more central stage */
.stage-wrap { max-width: 1180px; }
.stage { height: clamp(400px, 50vw, 600px); border-radius: 32px; box-shadow: 0 50px 100px -50px var(--accent-glow); }

/* Scroll-linked entrance: CSS scroll-driven animations where supported, IntersectionObserver (stage.js) otherwise */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stage-frame { animation: stageIn linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .spot { animation: spotIn linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
  html.reveal-io .stage-frame:not(.in), html.reveal-io .spot:not(.in) { opacity: .2; transform: translateY(64px) scale(.95); }
  html.reveal-io .stage-frame, html.reveal-io .spot { transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
}
@keyframes stageIn { from { opacity: .25; transform: translateY(80px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes spotIn { from { opacity: .15; transform: translateY(56px); } to { opacity: 1; transform: none; } }

/* ---------- Feature spotlights ---------- */
.spots { max-width: 1180px; margin: 0 auto; padding-block: 120px 0; }
.spots > h2, .more-feats > h2, .gallery-sec > h2, .specs-sec > h2, .faq-sec > h2 {
  margin: 0 0 40px; text-align: center; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; text-wrap: balance;
}
.spot {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
}
.spot:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot:nth-of-type(even) .spot-copy { order: 2; }
.spot-copy h3 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
.spot-copy .eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 17px; }
.spot-copy p:not(.eyebrow) { margin: 18px 0 0; max-width: 40ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); }
.spot-vis { container-type: inline-size; margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -48px var(--accent-glow), 0 0 0 1px color-mix(in srgb, var(--line) 50%, transparent); }
.spot-vis .stage { height: clamp(320px, 34vw, 440px); border-radius: 0; box-shadow: none; }
/* Spotlight visuals are stills: frozen, purposeful states of the stage art */
.still, .still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .menubar { display: none; }

/* ---------- More features ---------- */
.more-feats { max-width: 1024px; margin: 0 auto; padding-block: 96px 0; }

/* ---------- Gallery (scroll-snap carousel) ---------- */
.gallery-sec { max-width: 1180px; margin: 0 auto; padding-block: 120px 0; }
.g-track {
  --gw: min(86%, 880px);   /* slide width */
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 4px 0 16px; scrollbar-width: none;
}
/* Real spacers at both ends (browsers don't reliably let you scroll into a scroller's end padding),
   so the first and last slides can be centred like the others. */
.g-track::before, .g-track::after { content: ""; flex: 0 0 max(0px, calc((100% - var(--gw)) / 2 - 20px)); }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 20px; }
.g-slide { flex: 0 0 var(--gw); margin: 0; scroll-snap-align: center; }
.g-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; background: var(--tile); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.g-slide figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); }
.g-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.g-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: color-mix(in srgb, var(--line) 55%, transparent); color: var(--ink); cursor: pointer; }
.g-btn:hover { background: color-mix(in srgb, var(--line) 85%, transparent); }
.g-btn:disabled { opacity: .35; cursor: default; }
.g-btn svg { width: 14px; height: 14px; }
.g-dots { display: flex; gap: 10px; }
.g-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 28%, transparent); cursor: pointer; }
.g-dot[aria-current="true"] { background: var(--ink); width: 22px; border-radius: 4px; }
.g-ctrl { display: none; }
html.stage-js .g-ctrl { display: flex; }

/* ---------- Tech specs ---------- */
.specs-sec { max-width: 1024px; margin: 0 auto; padding-block: 120px 0; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.specs dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.specs dd small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-sec { max-width: 860px; margin: 0 auto; padding-block: 120px 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; font-size: 19px; font-weight: 600; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq .a { padding-bottom: 22px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.faq .a p { margin: 0 0 10px; }
.faq .a ol { margin: 0 0 10px; padding-left: 1.3em; }
.faq .a li { margin-bottom: 6px; }
.faq code { overflow-wrap: anywhere; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: .88em; background: color-mix(in srgb, var(--line) 50%, transparent); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- Closer band ---------- */
.closer-band {
  margin: 120px auto 0; max-width: 1180px; border-radius: 32px; text-align: center;
  padding: clamp(56px, 8vw, 104px) 24px;
  background:
    radial-gradient(70% 120% at 15% 0%, var(--accent-glow), transparent 60%),
    radial-gradient(70% 120% at 90% 100%, var(--accent-2, transparent), transparent 60%),
    linear-gradient(180deg, var(--accent-tint), var(--accent-tint)), var(--tile);
}
.closer-band .icon { display: block; width: 88px; height: 88px; margin: 0 auto 20px; }
.closer-band .icon img, .closer-band .icon svg { width: 100%; height: 100%; display: block; }
.closer-band h2 { margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 1.03; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.closer-band .tagline { margin: 14px auto 0; max-width: 40ch; font-size: 21px; color: var(--muted); }
.closer-band .cta { margin-top: 28px; }
.closer-band .req { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .spot, .spot:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .spot:nth-of-type(even) .spot-copy { order: 0; }
  .spot-copy { text-align: center; }
  .spot-copy p { margin-inline: auto; }
}
@media (max-width: 734px) {
  .stage { height: 440px; }
  .spots, .more-feats, .gallery-sec, .specs-sec, .faq-sec { padding-top: 72px; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 18px; }
  .stage { border-radius: 22px; }
  .spot-vis { border-radius: 22px; }
  .closer-band { margin-top: 72px; border-radius: 24px; }
  .g-track { --gw: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .g-track { scroll-behavior: auto; }
}

/* ================= Download experience (Phase 4) ================= */
.dl-meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-alt { margin: 18px auto 0; max-width: 460px; padding: 16px 18px; border-radius: 16px; background: var(--tile); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); font-size: 15px; }
.dl-alt p { margin: 0; color: var(--muted); }
.dl-alt-btns { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dl-alt-btns button, .dl-alt-btns a {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 15px;
  padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.dl-alt-btns a:hover, .dl-alt-btns button:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.dl-status { margin-top: 8px !important; min-height: 1.2em; font-size: 13px; }
.closer-band .dl-meta { margin-top: 6px; }

/* What's new */
.whats-new { max-width: 1024px; margin: 0 auto; padding-block: 120px 0; }
.wn-card { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--tile); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 50%, transparent); }
.wn-card h2 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.07; font-weight: 700; letter-spacing: -.035em; }
.wn-card ul { margin: 0 0 22px; padding-left: 1.2em; display: grid; gap: 10px; font-size: 18px; line-height: 1.5; }
.wn-card li::marker { color: var(--accent); }

/* How to install */
.install { max-width: 1024px; margin: 0 auto; padding-block: 120px 0; }
.install h2 { margin: 0 0 40px; text-align: center; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { background: var(--tile); border-radius: 22px; padding: 30px 26px; }
.st-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.st-ic svg { width: 32px; height: 32px; }
.st-n { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.steps h3 { margin: 4px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 734px) {
  .whats-new, .install { padding-top: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
