/*
 * Page-specific styles for /products/tv3.
 *
 * Port of the design's inline <style> block in `Imaginando TV3.html`.
 * Same convention as the GRFX / DLYM / K7D / TKFX / UBRIDGE pages —
 * product-detail chrome (.product-nav, .sec-head, .hero, .req-grid…)
 * is duplicated here intentionally. Hoist into /style.css once
 * the relevant block recurs across a fifth+ product page.
 *
 * Already in /style.css (intentionally NOT duplicated):
 *   :root tokens, html/body/a/button resets, ::selection, .mono, .wrap,
 *   .btn / .btn.primary / .btn.ghost / .btn .arrow, .section, .reveal.
 *
 * TV3-only chrome:
 *   .acid-box      — hero card framing the TV3 UI screenshot.
 *   .mosaic        — 12-col features grid (shared shape with TKFX).
 *   .fv-*          — per-tile decorative visuals (generator bars,
 *                    midi drop, osc icons, dist mode pills, filter
 *                    curve, scale pills, acidboy params row).
 *   .pcol          — 3 pricing columns with one featured + ribbon.
 *   .split         — DRC-style 2-col edu/mobile block.
 *
 * Palette: lime accent, `var(--accent)` (global site accent — no per-page
 * override needed, unlike GRFX which adds --grfx-accent-2).
 */

/* ============================================================
 * Section heading override — product-detail scale.
 * ============================================================ */
.sec-head { margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: none;
  margin: 8px 0 0;
}
.sec-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.sec-head .meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  max-width: 30ch;
}

/* ============================================================
 * HERO (#overview) — TV3 tint only. Chrome is shared (`.phero-*` in
 * public/style.css, via +productHero — refs #444); the visual is
 * the acid-box card below.
 * ============================================================ */
.phero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
}
.phero h2 { max-width: 22ch; }
.phero .lede { max-width: 50ch; }
@media (max-width: 1100px) {
  .phero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

/* Acid box — frames the TV3 UI screenshot. The handoff's elaborate
 * .ab-head / .acid-boy / .ab-piano / .ab-seq sub-chrome is dead
 * code in the design (the React just drops the image inside),
 * so we ship the simpler frame. */
.acid-box {
  position: relative;
  align-self: start;
  margin-top: 44px;
  aspect-ratio: 1050 / 590;
  border-radius: 6px;
  border: 0.5px solid var(--line-strong);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1c1c20 0%, #0e0e12 60%, #07070a 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.acid-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.acid-box img { display: block; width: 100%; height: auto; }

/* ============================================================
 * FEATURES — 12-col mosaic + per-tile decorative visuals
 * ============================================================ */
.ftile {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: var(--card, #0e0e12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-height: 280px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ftile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ftile.featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, var(--card, #0e0e12)), var(--card, #0e0e12));
  border-color: color-mix(in oklab, var(--accent) 30%, var(--line));
}
.ftile .ix {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.ftile h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.ftile h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.ftile p { margin: 0; color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; text-wrap: pretty; max-width: 50ch; }
.ftile .vis {
  margin-top: auto;
  height: 120px;
  border-top: 0.5px dashed var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) { .span-12, .span-8, .span-6, .span-4, .span-3 { grid-column: span 2; } }

/* Per-tile decorative visuals. Static SVG / CSS — no JS. */
.fv-svg { width: 100%; height: 100%; max-height: 120px; }

.fv-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  border: 0.5px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.fv-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* osc — 3 oscillator icon cards joined by `+` glyphs */
.fv-osc { display: flex; gap: 18px; align-items: center; justify-content: center; width: 100%; }
.fv-osc .o { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fv-osc .icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 0.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #14141a, #0a0a0c);
}
.fv-osc .icon svg { width: 34px; height: 34px; color: var(--accent); }
.fv-osc .o .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--fg-faint); text-transform: uppercase; }
.fv-plus { font-family: var(--display); color: var(--fg-faint); font-size: 18px; }

/* dist — 4 mode pills (one lit) with mini transfer curves */
.fv-dist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.fv-dist .d {
  padding: 10px 6px;
  border: 0.5px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #14141a, #0a0a0c);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fv-dist .d.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--card, #0e0e12)); }
.fv-dist .d .lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--fg-faint); text-transform: uppercase; }
.fv-dist .d.on .lbl { color: var(--accent); }
.fv-dist .d svg { width: 34px; height: 18px; color: var(--accent); }

/* midi — file glyph + arrow + DAW pill.
 * Sized to fit inside the 120px `.vis` box (≈105px usable after its
 * padding/border) — the stack must not spill past the tile edge. */
.fv-midi { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.fv-midi .file {
  width: 44px;
  height: 50px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px;
}
.fv-midi .file::before {
  content: "MIDI";
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.fv-midi .file::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: linear-gradient(225deg, transparent 50%, color-mix(in oklab, var(--accent) 40%, var(--card, #0e0e12)) 50%);
  border-left: 1px dashed var(--accent);
  border-bottom: 1px dashed var(--accent);
}
.fv-midi .arrow { font-family: var(--mono); font-size: 14px; line-height: 1; color: var(--accent); }

/* scales — pill cloud, one lit (Pent. Min) + a "+9 more" overflow */
.fv-scales { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-content: center; max-width: 280px; }
.fv-scales .s {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  border: 0.5px solid var(--line-strong);
  color: var(--fg-dim);
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.fv-scales .s.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.fv-filter { position: relative; width: 100%; height: 100%; }
.fv-filter svg { width: 100%; height: 100%; }

/* ============================================================
 * REQUIREMENTS — 4-cell grid, no section id (kept out of nav).
 * ============================================================ */
.req-grid { background: var(--card, #0e0e12); }
.req-grid .req:nth-child(4n) { border-right: 0; }
.req-grid .req:nth-last-child(-n+4) { border-bottom: 0; }
@media (max-width: 900px) {
  .req-grid .req:nth-child(odd) { border-right: 0.5px solid var(--line); }
}

/* HELP — 2-col grid override (2 cards). The .hcard card styling is shared
 * in /style.css; only the column count differs from the 3-card default. */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }
