/* /downloads/ (templates/downloads.html) — matching landing-v3.css Dark Rounded Studio Design System */
:root {
  --bg: #050506;
  --bg-alt: #0b0b0d;
  --surface: #121215;
  --surface-2: #19191d;
  --border: #242429;
  --border-subtle: #1a1a1f;
  --border-strong: #36363e;

  --ink: #f5f5f7;
  --ink-2: #a6a6ae;
  --ink-3: #75757e;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --word: "Orbitron", sans-serif;

  --max: 1240px;
  --kz-max: 1240px;
  --kz-bg: #050506;
  --gutter: clamp(20px, 4vw, 48px);
  --g: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 7vw, 108px);
  --head-gap: clamp(36px, 3.8vw, 48px);
  --r-pill: 999px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  letter-spacing: -0.008em;
}
.kzh {
  background: rgba(5, 5, 6, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.kzh.scrolled { border-bottom-color: var(--border-subtle); }
.kzh-mark { font-size: 19px; letter-spacing: 0.06em; }
.kzh-nav a { font-size: 14.5px; color: var(--ink-2); }
.kzh-nav a:hover, .kzh-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.kzh-end > .kzk.sec.sm {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
  background: linear-gradient(180deg, #ffffff 0%, #ebebef 100%);
  color: #09090b;
  border-color: rgba(255, 255, 255, 0.92);
}
.kzf { border-top: 1px solid var(--border-subtle); background: var(--bg); }
.kzf-in { padding-top: 36px; padding-bottom: 44px; font-size: 13.5px; }

.kzd { padding: 0; }
:where(.kzd) :where(h1, h2, h3, p, ul, ol, dl, dt, dd) { margin: 0; padding: 0; }
:where(.kzd) :where(ul, ol) { list-style: none; }
.kzd .w { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- Section Rhythm & Atmospheric Backdrop ---- */
.sec { padding: var(--sec-y) 0; }
.sec-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.has-bg { position: relative; overflow: hidden; }
.has-bg > .w { position: relative; z-index: 1; }
.sec-bg {
  position: absolute;
  inset: 0 -8% auto;
  height: 680px;
  opacity: 0.22;
  filter: blur(6px) saturate(1.18);
  transform: scale(1.28) rotate(3deg);
  transform-origin: center top;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 42%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 42%, transparent 92%);
}
.sec-bg .app-el { aspect-ratio: 1440 / 900; }
.sec-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 68% at 50% 34%, rgba(5, 5, 6, 0.44), rgba(5, 5, 6, 0.96));
}

/* ---- Modular Type Scale ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 580;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 {
  font-size: 21px;
  font-weight: 560;
  line-height: 1.24;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.lede {
  margin-top: 16px;
  max-width: 52ch;
  font-size: clamp(17px, 1.32vw, 19.5px);
  font-weight: 420;
  line-height: 1.54;
  color: var(--ink-2);
  text-wrap: pretty;
}
.fine, .kzd .kzp-meta { font-size: 13.5px; line-height: 1.56; color: var(--ink-3); }

/* ---- Buttons (style both .btn and existing partial .kzk pills identically) ---- */
.kzd .kzk, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.012em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}
.kzd .kzk svg, .btn svg { width: 17px; height: 17px; flex: none; }
.kzd .kzk.pri, .btn-white {
  background: linear-gradient(180deg, #ffffff 0%, #ebebef 100%);
  color: #09090b;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 24px -10px rgba(255, 255, 255, 0.24);
}
.kzd .kzk.pri:hover, .btn-white:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  transform: translateY(-1px);
  color: #09090b;
}
.kzd .kzk.sec, .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--border-strong);
}
.kzd .kzk.sec:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.kzd .kzk[aria-disabled="true"] { opacity: 0.5; cursor: default; transform: none; }
.btn-lg, .dl-head .kzk.pri { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-sm, .kzd .kzk.sm { height: 38px; padding: 0 18px; font-size: 13.5px; }

/* ---- Brushed Dark-Titanium Double-Bezel Frame ---- */
.app-box {
  position: relative;
  padding: 9px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 56px 140px -24px rgba(0, 0, 0, 0.98);
}
.app-box > .app-el {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
  aspect-ratio: 1440 / 900;
}
.app-el { display: block; width: 100%; background: #101016; }
.app-el > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================================
   1. DOWNLOADS HERO — SPLIT 5/7 (COPY & DOWNLOAD LEFT, TITANIUM CAPTURE RIGHT)
   ============================================================================ */
.dl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 6.5vw, 96px) 0 clamp(64px, 7vw, 100px);
}
.dl-hero .w { position: relative; z-index: 1; }
.na-hero-bg {
  position: absolute;
  inset: -6% -10% auto;
  height: 760px;
  opacity: 0.4;
  filter: blur(4px) saturate(1.25);
  transform: scale(1.36) rotate(-4deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 30%, transparent 85%);
  mask-image: linear-gradient(#000 0, #000 30%, transparent 85%);
}
.na-hero-bg .app-el { aspect-ratio: 1440 / 900; }
.na-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 40%, rgba(5, 5, 6, 0.52), rgba(5, 5, 6, 0.94));
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 56px;
  align-items: center;
}
.dl-head { text-align: left; }
.dl-head h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.044em;
  color: var(--ink);
  text-wrap: balance;
}
.dl-head .kzd-sub { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.dl-head .kzd-key { margin-top: 28px; }
.dl-head .kzp-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px 14px;
  margin-top: 0;
}
.dl-head .kzp-meta { margin-top: 16px; }
.dl-head .kzp-meta + .kzp-meta { margin-top: 4px; }
.dl-also { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.dl-also a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.16s;
}
.dl-also a:hover { text-decoration-color: var(--ink); }

/* ============================================================================
   2. THREE STEPS — OPEN RULED GRID
   ============================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 44px;
  margin-top: var(--head-gap);
}
.steps-grid li { padding-top: 22px; border-top: 1px solid var(--border); }
.steps-grid li.highlight { border-top-color: rgba(255, 255, 255, 0.45); }
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.steps-grid li.highlight .step-num { color: var(--ink); }
.steps-grid h3 { margin-bottom: 10px; }
.steps-grid p { font-size: 15px; line-height: 1.58; color: var(--ink-2); }

/* ============================================================================
   3. EVERY PLATFORM — OPEN HORIZONTAL ROWS (NO HEAVY CARDS)
   ============================================================================ */
.plats-list { margin-top: var(--head-gap); border-top: 1px solid var(--border); }
.plat-row {
  display: grid;
  grid-template-columns: minmax(210px, 3.2fr) minmax(0, 6fr) auto;
  gap: 24px 44px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.plat-id { display: flex; flex-direction: column; gap: 10px; }
.plat-title { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.plat-title svg { width: 20px; height: 20px; color: var(--ink); flex: none; }
.plat-title h3 { font-size: 23px; font-weight: 580; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.kzd-you {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1;
}
.plat-meta { display: grid; gap: 4px; }

.plat-req {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  padding-top: 2px;
}
.plat-req div { display: flex; flex-direction: column; gap: 4px; }
.plat-req dt { font-size: 12px; font-weight: 550; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.plat-req dd { font-size: 14.5px; line-height: 1.48; color: var(--ink-2); }

.plat-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 2px; }
.plat-cta .kzp-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 0; }
.plat-cta .kzk, .plat-cta .btn { min-width: 196px; }
.plat-cta .kzk.sec:first-child:not([aria-disabled="true"]) {
  background: linear-gradient(180deg, #ffffff 0%, #ebebef 100%);
  color: #09090b;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 24px -10px rgba(255, 255, 255, 0.24);
}
.plat-cta .kzk.sec:first-child:not([aria-disabled="true"]):hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: #09090b;
}
.plat-cta .kzp-meta { display: none; }

/* Previous versions accordion */
.prev-acc { margin-top: 32px; border-bottom: 1px solid var(--border); }
.prev-acc summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 16px;
  font-weight: 560;
  color: var(--ink);
}
.prev-acc summary::-webkit-details-marker { display: none; }
.prev-acc summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-3);
}
.prev-acc[open] summary::after { content: "\2212"; color: var(--ink); }
.prev-list { padding-bottom: 20px; display: grid; gap: 12px; }
.prev-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14.5px;
}
.prev-list b { font-weight: 600; color: var(--ink); }
.prev-ver { display: flex; align-items: center; gap: 16px; color: var(--ink-2); }

/* Open Help Footer Line */
.help-line {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.help-line p { max-width: 68ch; font-size: 14.5px; line-height: 1.58; color: var(--ink-2); }
.help-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.help-line a:hover { text-decoration-color: var(--ink); }
.help-links { display: flex; flex-wrap: wrap; gap: 10px; }
.help-links a { text-decoration: none; }

@media (max-width: 1000px) {
  .steps-grid, .dl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plat-cta, .plat-cta .kzp-acts { align-items: flex-start; }
}
@media (max-width: 640px) {
  .plat-req { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plat-cta .kzp-acts { width: 100%; }
  .dl-head .kzk, .plat-cta .kzk, .plat-cta .btn { width: 100%; }
}
