/* ==========================================================================
   TikTok Live Download — "On-Air" design system
   Dark broadcast-studio hero  →  bright, readable guide below.
   Color is functional: LIVE red = action/on-air · cyan = enabled/verified.
   ========================================================================== */

:root {
  /* Ink (dark broadcast base) */
  --ink:       #0A0C12;
  --ink-1:     #11151F;
  --ink-2:     #171D2A;
  --ink-3:     #222A3A;
  --ink-line:  #2B3446;

  /* Paper (light guide body) */
  --paper:     #FBFBFD;
  --paper-2:   #F1F3F7;
  --paper-3:   #E7EAF1;
  --line:      #E2E6EE;

  /* Text */
  --on-dark:       #EEF1F6;
  --on-dark-soft:  #A5AEBE;
  --on-light:      #141A24;
  --on-light-soft: #5A6474;

  /* Signal colors */
  --live:      #FF2D55;   /* primary action + on-air */
  --live-ink:  #D11a3f;
  --cyan:      #16D6C9;   /* enabled / verified / working */
  --cyan-deep: #0C8C84;
  --gold:      #FFC24B;   /* gifts / highlights */

  /* Type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--live); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   HEADER / NAV  (dark, sticky)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.6); animation: pulse 2s infinite;
}
.brand-text { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--on-dark); }
.brand-sub { color: var(--live); margin-left: 2px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  color: var(--on-dark-soft); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--on-dark); background: var(--ink-2); }
.nav-link[aria-current="page"] { color: var(--on-dark); }
.nav-link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: var(--live);
}
.nav-cta {
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  background: var(--cyan); padding: 9px 16px; border-radius: 9px;
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22, 214, 201, 0.3); }
.nav-toggle { display: none; }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(5, 7, 12, 0.6);
  opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px);
}
.drawer-scrim.is-open { opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: 120; width: min(82vw, 330px); height: 100%;
  background: var(--ink-1); border-left: 1px solid var(--ink-line);
  padding: 18px 18px 28px; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close { background: none; border: 0; color: var(--on-dark-soft); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.drawer-link {
  color: var(--on-dark); font-weight: 600; font-size: 17px; padding: 13px 12px;
  border-radius: 10px; border-bottom: 1px solid var(--ink-2);
}
.drawer-link[aria-current="page"] { color: var(--live); }
.drawer-cta {
  margin-top: 14px; text-align: center; background: var(--live); color: #fff;
  font-weight: 700; padding: 14px; border-radius: 11px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-live { background: var(--live); color: #fff; box-shadow: 0 8px 24px rgba(255, 45, 85, 0.32); }
.btn-live:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 45, 85, 0.44); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--ink-line); }
.btn-ghost:hover { border-color: var(--on-dark-soft); background: var(--ink-2); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 214, 201, 0.34); }
.btn-light { background: var(--on-light); color: #fff; }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================================
   HERO  (dark broadcast studio)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 45, 85, 0.18), transparent 60%),
    radial-gradient(700px 480px at 5% 110%, rgba(22, 214, 201, 0.14), transparent 55%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 72px 20px 84px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--on-dark); background: var(--ink-2); border: 1px solid var(--ink-line);
  padding: 7px 14px 7px 11px; border-radius: 100px; margin-bottom: 22px;
}
.hero-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
.hero-badge b { color: var(--live); font-family: var(--mono); font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 .on { color: var(--live); }
.hero-lead { font-size: 18.5px; color: var(--on-dark-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--cyan); }
.hero-stat span { font-size: 12.5px; color: var(--on-dark-soft); }

/* The going-live phone — the one memorable element */
.phone { justify-self: center; width: 268px; max-width: 80vw; }
.phone-frame {
  position: relative; border-radius: 38px; padding: 11px;
  background: linear-gradient(160deg, #262d3b, #0e1118);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone-screen {
  position: relative; border-radius: 28px; aspect-ratio: 9 / 19; overflow: hidden;
  background: linear-gradient(180deg, #3a2030 0%, #1c1230 55%, #10131f 100%);
  display: flex; flex-direction: column; padding: 16px 14px;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 64px; height: 7px; border-radius: 10px; background: rgba(0,0,0,.5); }
.phone-live { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: var(--live); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 6px; margin-top: 10px; }
.phone-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.phone-viewers { align-self: flex-start; margin-top: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 20px; }
.phone-gifts { position: absolute; right: 16px; bottom: 120px; display: flex; flex-direction: column; gap: 14px; font-size: 22px; }
.phone-gifts span { animation: float 3.4s ease-in infinite; }
.phone-gifts span:nth-child(2) { animation-delay: 1.1s; }
.phone-gifts span:nth-child(3) { animation-delay: 2.2s; }
@keyframes float { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
.phone-spacer { flex: 1; }
.phone-user { font-size: 12px; font-weight: 700; color: #fff; }
.phone-comments { margin: 6px 0 12px; display: flex; flex-direction: column; gap: 5px; }
.phone-comment { font-size: 11px; color: rgba(255,255,255,.9); }
.phone-comment b { color: var(--cyan); font-weight: 700; }
.phone-golive { text-align: center; background: var(--live); color: #fff; font-weight: 700; font-size: 13px; padding: 11px; border-radius: 12px; }

/* ==========================================================================
   TICKER  (broadcast status strip under hero)
   ========================================================================== */
.ticker { background: var(--ink-1); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.ticker-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-dark-soft); }
.ticker-item b { color: var(--on-dark); font-family: var(--mono); font-weight: 700; }
.ticker-item .ok { color: var(--cyan); }

/* ==========================================================================
   SECTIONS  (light guide body)
   ========================================================================== */
.section { padding: 68px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 620px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--on-light-soft); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--live); margin-bottom: 14px; }
.eyebrow .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

/* ---- Download option cards ---- */
.dl-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.dl-card.primary { background: var(--ink); color: var(--on-dark); border-color: var(--ink); position: relative; }
.dl-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 7px; margin-bottom: 14px; }
.dl-card.primary .dl-tag { background: var(--live); color: #fff; }
.dl-card .dl-tag-geo { background: var(--paper-2); color: var(--on-light-soft); font-size: 22px; padding: 6px 10px; }
.dl-card h3 { font-size: 21px; margin-bottom: 6px; }
.dl-ver { font-family: var(--mono); font-size: 13.5px; color: var(--cyan-deep); font-weight: 700; margin-bottom: 16px; }
.dl-card.primary .dl-ver { color: var(--cyan); }
.dl-points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; font-size: 14.5px; }
.dl-points li { display: flex; gap: 9px; align-items: flex-start; color: var(--on-light-soft); }
.dl-card.primary .dl-points li { color: var(--on-dark-soft); }
.dl-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0C12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.dl-sub { font-size: 13px; color: var(--on-light-soft); margin-top: 14px; }
.dl-card.primary .dl-sub { color: var(--on-dark-soft); }
.dl-card .btn { margin-top: auto; }
.dl-geo-sub { font-size: 13.5px; color: var(--on-light-soft); margin: -2px 0 14px; }

.trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 34px;
  font-size: 14px; color: var(--on-light-soft); font-weight: 500; }
.trust-bar span.sep { color: var(--paper-3); }

/* ---- Methods (not a sequence → no numbers) ---- */
.methods { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.method { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.method.feature { border: 1.5px solid var(--live); box-shadow: 0 16px 40px -20px rgba(255,45,85,.3); }
.method-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); font-size: 23px; margin-bottom: 16px; }
.method.feature .method-ic { background: var(--live); }
.method h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.method .flag { font-size: 11px; font-weight: 700; color: var(--on-light-soft); background: var(--paper-2); padding: 3px 8px; border-radius: 6px; }
.method p { font-size: 14.5px; color: var(--on-light-soft); margin-bottom: 16px; }
.method-points { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-light-soft); margin-bottom: 20px; }
.method-points li { display: flex; gap: 8px; }
.method .btn { width: 100%; }
.method.feature .badge-top { display: inline-block; font-size: 12px; font-weight: 700; color: var(--live); margin-bottom: 10px; }

/* ---- Version build list ---- */
.builds { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.build-note { font-size: 14px; color: var(--on-light-soft); background: #FFF7E8; border: 1px solid #F2DFB0; border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 20px; display: flex; gap: 10px; }
.build-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr auto; gap: 14px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line); }
.build-row:last-child { border-bottom: 0; }
.build-row.head { background: var(--paper-2); font-size: 12.5px; font-weight: 700; color: var(--on-light-soft); text-transform: none; padding: 11px 20px; }
.build-row.latest { background: linear-gradient(90deg, rgba(22,214,201,.07), transparent); }
.build-ver { font-family: var(--mono); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.build-badge { font-family: var(--body); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.build-badge.live { background: var(--cyan); color: var(--ink); }
.build-badge.stable { background: var(--paper-3); color: var(--on-light-soft); }
.build-badge.old { background: transparent; border: 1px solid var(--line); color: var(--on-light-soft); }
.build-meta { font-size: 14px; color: var(--on-light-soft); }
.build-dl { font-weight: 700; font-size: 14px; color: var(--live); justify-self: end; white-space: nowrap; }
.build-dl:hover { text-decoration: underline; }
.builds-foot { text-align: center; padding: 16px; }
.builds-foot a { font-weight: 700; color: var(--live); }

/* ---- Geo chips ---- */
.geo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.geo { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.geo:hover { transform: translateY(-3px); border-color: var(--live); box-shadow: 0 16px 36px -22px rgba(255,45,85,.4); }
.geo.feature { border-color: var(--live); background: linear-gradient(180deg, #fff, #FFF4F6); }
.geo.soon { opacity: .6; }
.geo-flag { font-size: 34px; margin-bottom: 12px; }
.geo-name { font-family: var(--display); font-weight: 800; font-size: 19px; margin-bottom: 5px; }
.geo-desc { font-size: 13.5px; color: var(--on-light-soft); margin-bottom: 14px; min-height: 38px; }
.geo-cta { font-weight: 700; font-size: 14px; color: var(--live); }
.geo.soon .geo-cta { color: var(--on-light-soft); }

/* ---- USA split ---- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.split-checks { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 26px; }
.split-checks li { display: flex; gap: 10px; font-size: 15.5px; color: var(--on-light-soft); }
.split-checks li b { color: var(--cyan-deep); }
.split-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.setup-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 28px; }
.setup-card h3 { font-size: 15px; color: var(--on-dark-soft); font-weight: 600; margin-bottom: 18px; }
.setup-stats { display: flex; gap: 14px; margin-bottom: 20px; }
.setup-stat { flex: 1; background: var(--ink-2); border-radius: 12px; padding: 14px; }
.setup-stat b { display: block; font-family: var(--mono); font-size: 18px; color: var(--cyan); }
.setup-stat span { font-size: 12px; color: var(--on-dark-soft); }
.setup-steps { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.setup-steps li { display: flex; gap: 12px; font-size: 14px; color: var(--on-dark-soft); align-items: center; }
.setup-steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--live); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }

/* ---- How-to (real sequence → numbered) ---- */
.steps { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: start; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; position: relative; padding-bottom: 28px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.step-n { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; display: grid; place-items: center; z-index: 1; }
.step-b h3 { font-size: 17.5px; margin-bottom: 5px; }
.step-b p { font-size: 15px; color: var(--on-light-soft); margin: 0; }
.howto-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.cta-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 26px; }
.cta-card .ic { font-size: 28px; margin-bottom: 12px; }
.cta-card h3 { font-size: 19px; margin-bottom: 8px; }
.cta-card p { font-size: 14px; color: var(--on-dark-soft); margin-bottom: 20px; }
.cta-card .meta { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-soft); font-family: var(--mono); }
.pk-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pk-card .fl { font-size: 30px; }
.pk-card h3 { font-size: 15px; margin-bottom: 2px; }
.pk-card p { font-size: 13px; color: var(--on-light-soft); margin: 0; }
.pk-card a { margin-left: auto; font-weight: 700; color: var(--live); white-space: nowrap; }

/* ---- Device compat ---- */
.devices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.device { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; }
.device .ic { font-size: 24px; }
.device b { display: block; font-size: 14px; margin-top: 6px; }
.device span { font-size: 11.5px; color: var(--on-light-soft); }

/* ---- FAQ (native <details>) ---- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-family: var(--display); font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--live); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 20px 20px; font-size: 15.5px; color: var(--on-light-soft); }
.faq-item .a p { margin: 0; }

/* ==========================================================================
   FOOTER  (dark)
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: 54px 0 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { font-size: 14.5px; color: var(--on-dark-soft); max-width: 42ch; margin-bottom: 14px; }
.footer-tag strong { color: var(--cyan); font-family: var(--mono); }
.footer-disclaimer { font-size: 12.5px; color: #6B7488; max-width: 46ch; }
.footer-head { font-family: var(--display); font-size: 14px; color: var(--on-dark); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; font-size: 14.5px; color: var(--on-dark-soft); padding: 6px 0; }
.footer-col a:hover { color: var(--live); }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; max-width: var(--wrap); margin: 0 auto; font-size: 12.5px; color: #6B7488; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: #6B7488; }
.footer-legal a:hover { color: var(--live); }

/* Legal / prose page — last-updated note */
.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--on-dark-soft); margin-top: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 520px; display: flex; flex-direction: column; gap: 6px; }
.contact-card .label { font-size: 13px; color: var(--on-light-soft); }
.contact-card .email { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--live); word-break: break-all; }

/* ==========================================================================
   INNER PAGES  (compact dark hero, breadcrumbs, related, prose, callouts)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(760px 420px at 85% -20%, rgba(255, 45, 85, 0.17), transparent 60%),
    radial-gradient(620px 420px at 0% 120%, rgba(22, 214, 201, 0.12), transparent 55%),
    var(--ink);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-hero .wrap { position: relative; padding: 52px 20px 56px; }
.page-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; color: var(--on-dark);
  background: var(--ink-2); border: 1px solid var(--ink-line); padding: 6px 13px 6px 11px; border-radius: 100px; margin-bottom: 18px; }
.page-eyebrow .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
.page-eyebrow.cy .live-dot { background: var(--cyan); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; max-width: 18ch; }
.page-hero h1 .on { color: var(--live); }
.page-hero h1 .ver { font-family: var(--mono); color: var(--cyan); }
.page-hero .lead { font-size: 18px; color: var(--on-dark-soft); max-width: 56ch; margin: 16px 0 26px; }
.page-hero .hero-btns { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--on-dark-soft);
  background: var(--ink-2); border: 1px solid var(--ink-line); padding: 6px 12px; border-radius: 9px; }
.chip b { color: var(--on-dark); font-family: var(--mono); font-weight: 700; }

/* Breadcrumbs */
.crumbs { background: #fff; border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px 0; font-size: 13.5px; }
.crumbs li { display: flex; align-items: center; gap: 9px; color: var(--on-light-soft); }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--paper-3); }
.crumbs a { color: var(--on-light-soft); }
.crumbs a:hover { color: var(--live); }
.crumbs li[aria-current] { color: var(--on-light); font-weight: 600; }

/* Prose (info pages) */
.prose { max-width: 740px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--on-light); margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.prose ul { margin: 0 0 1.2em; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 16px; color: var(--on-light); line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0C12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }

/* Callouts */
.callout { display: flex; gap: 14px; border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.callout .ic { font-size: 22px; flex: none; line-height: 1.3; }
.callout h3 { font-size: 16.5px; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; color: var(--on-light-soft); }
.callout.warn   { background: #FFF7E8; border: 1px solid #F2DFB0; }
.callout.danger { background: #FFF1F2; border: 1px solid #FBC9CF; }
.callout.safe   { background: #ECFDF7; border: 1px solid #B6EFDD; }
.callout.ink    { background: var(--ink); border: 1px solid var(--ink-line); color: var(--on-dark); }
.callout.ink h3 { color: var(--on-dark); } .callout.ink p { color: var(--on-dark-soft); }

/* Safe vs red-flag signals */
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signal { border-radius: var(--radius); padding: 22px 24px; }
.signal.ok  { background: #ECFDF7; border: 1px solid #B6EFDD; }
.signal.bad { background: #FFF1F2; border: 1px solid #FBC9CF; }
.signal h3 { font-size: 16.5px; margin-bottom: 14px; }
.signal.ok h3 { color: var(--cyan-deep); } .signal.bad h3 { color: var(--live-ink); }
.signal ul { display: flex; flex-direction: column; gap: 10px; }
.signal li { display: flex; gap: 10px; font-size: 15px; color: var(--on-light-soft); line-height: 1.5; }

/* Feature grid (what's unlocked) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.feature .ic { font-size: 24px; margin-bottom: 10px; }
.feature b { display: block; font-family: var(--display); font-size: 15.5px; margin-bottom: 3px; }
.feature span { font-size: 13.5px; color: var(--on-light-soft); }

/* Spec rows (version details) */
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 560px; }
.spec-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--on-light-soft); }
.spec-row .v { font-weight: 700; text-align: right; }
.spec-row .v.mono { font-family: var(--mono); }
.spec-row .v.ok { color: var(--cyan-deep); }
.spec-row .v.no { color: var(--live-ink); }

/* Related grid */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 5px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.related-card:hover { transform: translateY(-3px); border-color: var(--live); box-shadow: 0 16px 36px -22px rgba(255,45,85,.4); }
.related-ic { font-size: 26px; margin-bottom: 4px; }
.related-title { font-family: var(--display); font-weight: 700; font-size: 15.5px; }
.related-sub { font-size: 13px; color: var(--on-light-soft); }

/* Two-column content (text + aside) */
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.cols-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 920px) {
  .signal-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .cols-aside { position: static; }
}
@media (max-width: 520px) {
  .feature-grid, .related-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px 64px; }
  .phone { order: -1; width: 230px; }
  .dl-grid, .methods { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .howto-aside { position: static; }
  .devices { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px; }
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .build-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .build-row.head { display: none; }
  .build-meta.date { grid-column: 1; font-size: 12.5px; }
  .build-meta.android, .build-meta.size { display: none; }
  .build-dl { grid-row: 1; grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .geo-grid, .devices { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
