/*
 * Page-specific styles for /products/tkfx.
 *
 * Mobile-only Traktor controller. Port of the design's inline <style>
 * block in `Imaginando TKFX.html` + the chrome from the shared
 * `product-sections.css` (tutorials, dl-grid, req-grid, help-grid)
 * inlined here with bare class names — same convention as the
 * product-template port.
 *
 * 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.
 *
 * NOT-quite-the-same in /style.css (overridden below):
 *   .sec-head — global is sized for homepage scale; design wants larger
 *               h2 with accent on em and a mono right-column .meta.
 *   .hero     — global .hero is the homepage hero scale; the design's
 *               product hero is larger (clamp(72px,11vw,180px) h1, taller
 *               padding). Overridden below.
 *
 * --tkfx-2 is a lighter lime used only by the per-deck FX bar gradient
 * in the unused decorative ZoneVisual; declared here to keep the gradient
 * defined even if we wire it up later.
 */

:root, :root[data-theme="dark"] { --tkfx-2: #dcff7a; }
:root[data-theme="light"], html[data-theme="light"] { --tkfx-2: #a4d200; }

/* ============================================================
 * Section heading override — design uses the larger product
 * scale (clamp(38px,5vw,72px)) with a green serif accent on em.
 * Mono right-column meta caption.
 * ============================================================ */
.sec-head { margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  max-width: none;
  margin: 8px 0 0;
}
.sec-head h2 em { 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
 * ============================================================ */
/* ============================================================
 * HERO — TKFX tint + visual only. Chrome is shared (`.phero-*` in
 * public/style.css, via +productHero — refs #444). TKFX keeps its
 * gradient + wider lede; the visual is the UI screenshot (the old
 * 3D/tilt/tablet variants were dropped).
 * ============================================================ */
.phero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%);
}
.phero .lede { max-width: 50ch; }
@media (max-width: 1000px) { .hero-img-col { margin-top: 0; } }

/* ============================================================
 * 03 · CONTROL — zone switcher (Decks/FX) with image swap
 * ============================================================ */
.control-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 1000px) { .control-grid { grid-template-columns: 1fr; } }
.zone-list { display: flex; flex-direction: column; gap: 10px; }
.zlist {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
}
.zlist:hover { border-color: var(--line-strong); }
.zlist.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--card)), var(--card));
}
.zlist .zix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  grid-row: 1 / 3;
}
.zlist.active .zix { color: var(--accent); }
.zlist .zname {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.zlist .zdesc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin-top: 6px;
  text-wrap: pretty;
}

.zone-stage {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  min-height: 580px;
}
.stage-pad { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.stage-pad.active { display: flex; animation: tkfx-shotFade 0.35s ease-out both; }
@keyframes tkfx-shotFade { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: scale(1); } }
.zone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* ============================================================
 * 04 · FEATURES MOSAIC — TKFX-specific 12-col grid with
 * featured full-width tile in lime-on-ink + half-width tiles
 * ============================================================ */
.ftile {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ftile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.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.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.ftile p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
  flex: 1;
}
.ftile.featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ftile.featured p { color: rgba(0, 0, 0, 0.7); }
.ftile.featured .ix { color: rgba(0, 0, 0, 0.5); }

/* ============================================================
 * 05 · SETUP — 4 step cards w/ accent number + hint pills
 * ============================================================ */
.setup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .setup-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .setup-grid { grid-template-columns: 1fr; } }
.step-card {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.step-card .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 6px;
}
.step-card h4 { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.005em; line-height: 1.25; margin: 0; text-wrap: balance; }
.step-card p { margin: 0; color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; flex: 1; text-wrap: pretty; }
.step-card .hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  padding: 5px 9px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  display: inline-block;
}
.step-card a.hint.hint-link {
  text-decoration: none;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.step-card a.hint.hint-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.step-card .hint-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; align-self: flex-start; }

@media (max-width: 900px) { .tut-grid { grid-template-columns: 1fr; } }

/* ============================================================
 * 09 · REQUIREMENTS — 2-cell (iPad + iPhone) for mobile-only
 * Same .req-grid shape as UBRIDGE / template, scoped here.
 * ============================================================ */
.req-grid { gap: 0; }
.req-grid .req:last-child { border-right: 0; }
@media (max-width: 520px) {
  .req-grid .req { border-right: 0; }
}

/* ============================================================
 * 11 · HELP — manual + YouTube + chat
 * ============================================================ */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }
.hcard {
  position: relative;
  border: 0.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease;
  color: inherit;
}
.hcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.hcard .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.hcard .icon svg { width: 20px; height: 20px; }
.hcard .kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.hcard h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
.hcard h4 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.hcard p { margin: 0; color: var(--fg-dim); font-size: 13.5px; line-height: 1.5; flex: 1; }
.hcard .more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hcard .more .arrow { transition: transform 0.25s ease; }
.hcard:hover .more .arrow { transform: translateX(3px); }
