/* ============================================================================
   LUMA TV — public site (homepage + the pages Google Play links to).
   Sits on top of /shared/styles.css: same tokens, Manrope, dark surface stack.
   The one loud element is the TV in the hero; everything else stays quiet.
   ========================================================================== */

.site { position: relative; z-index: 1; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

/* ------------------------------------------------------------------ header */

.site-head { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.site-logo { display: block; flex: none; }
.site-logo img { width: 112px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: var(--r-sm); }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }

.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); flex: none; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--text-3); font: 700 12.5px/1 Manrope, system-ui, sans-serif; padding: 7px 11px; border-radius: var(--r-pill); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

/* -------------------------------------------------------------------- hero */

.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.038em; font-weight: 800; max-width: 12ch; }
.hero .lede { margin-top: 22px; color: var(--text-2); font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: var(--r-md); text-decoration: none; }

/* The TV: a bezel, a stand, and the real pairing screen inside it. */
.tv { position: relative; margin: 0; }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 10px solid #15171D; border-radius: 14px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(110, 69, 253, .38), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(3, 200, 253, .22), transparent 60%),
    #07080B;
  box-shadow: var(--shadow-3), 0 0 0 1px #262A35, 0 40px 120px -40px rgba(1, 133, 251, .45);
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 6%; padding: 6% 7%;
}
.tv-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.06), transparent 38%); pointer-events: none; }
.tv-stand { width: 22%; height: 14px; margin: 0 auto; background: linear-gradient(#1A1D25, #0E1015); border-radius: 0 0 10px 10px; }
.tv-mark { width: clamp(28px, 3.4vw, 40px); margin-bottom: 8%; }
.tv-title { font-size: clamp(14px, 1.7vw, 22px); font-weight: 800; letter-spacing: -.02em; }
.tv-sub { margin-top: 4%; color: var(--text-2); font-size: clamp(9.5px, .95vw, 12.5px); line-height: 1.5; }
.tv-code { margin-top: 9%; font-size: clamp(26px, 4.2vw, 54px); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; line-height: 1; }
.tv-code span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-qr { justify-self: end; width: 100%; max-width: 190px; padding: 0; border-radius: 10px; overflow: hidden; }
.tv-qr .qr { display: block; width: 100%; height: auto; }
.tv figcaption { margin-top: 18px; text-align: center; color: var(--text-3); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .tv-code span { animation: code-in 900ms var(--ease) both; }
  .tv-code span:nth-child(2) { animation-delay: 120ms; }
  @keyframes code-in { from { opacity: 0; transform: translateY(8px); } }
}

/* --------------------------------------------------------------- sections */

.band { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.band h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.band .intro { margin-top: 14px; color: var(--text-2); max-width: 60ch; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--border-strong); counter-increment: step; }
.steps li:first-child { border-image: var(--brand-grad) 1; }
.steps li::before { content: counter(step); display: block; font-size: 15px; font-weight: 800; color: var(--accent-text); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15px; max-width: 34ch; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.facts div:first-child { padding-top: 4px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--text-2); font-size: 15px; }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--lift); }
.notice svg { width: 28px; height: 28px; color: var(--warn); }
.notice h2 { font-size: 22px; max-width: none; }
.notice p { margin-top: 8px; color: var(--text-2); max-width: 70ch; }

/* --------------------------------------------------------------- download */

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 12px; flex: 1 1 210px; max-width: 280px; min-height: 64px; padding: 10px 18px 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: #000; color: var(--text); text-decoration: none; transition: border-color 160ms, transform 160ms; }
.badge:hover { border-color: var(--text-3); transform: translateY(-1px); }
.badge svg { width: 30px; height: 30px; flex: none; }
.badge > span { display: grid; line-height: 1.2; }
.badge small { color: var(--text-2); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.badge b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.badge .soon { display: none; font-style: normal; color: var(--text-3); font-size: 12px; font-weight: 600; }
.badge[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.badge[aria-disabled="true"] .soon { display: block; }

.downloader { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; padding: 28px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.downloader h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.downloader ol { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.downloader strong { color: var(--text); }
.dl-note { margin-top: 14px; color: var(--text-3); font-size: 13.5px; }
.dl-codes { margin: 0; display: grid; gap: 14px; align-content: center; }
.dl-codes div { padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.dl-codes dt { color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dl-codes dd { margin: 6px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.dl-code { font-size: clamp(32px, 4vw, 44px); letter-spacing: .08em; font-variant-numeric: tabular-nums; line-height: 1.1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-url { font-size: clamp(18px, 2vw, 22px); }

/* ------------------------------------------------------------ legal pages */

.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc article { max-width: 70ch; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.08; }
.doc .updated { margin-top: 12px; color: var(--text-3); font-size: 14px; }
.doc .summary { margin-top: 24px; color: var(--text-2); font-size: 17.5px; line-height: 1.6; }
.doc h2 { margin-top: 44px; font-size: 21px; letter-spacing: -.02em; }
.doc h3 { margin-top: 24px; font-size: 16.5px; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc li::marker { color: var(--text-3); }
.doc strong { color: var(--text); font-weight: 700; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 700; }
.doc td { color: var(--text-2); }

/* ------------------------------------------------------------------ footer */

.site-foot { border-top: 1px solid var(--border); padding: 36px 0 48px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.site-foot img { width: 92px; opacity: .85; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot small { margin-left: auto; color: var(--text-3); font-size: 13px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-nav { display: none; }
  .lang { margin-left: auto; }
  .downloader { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .notice { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .downloader { padding: 22px; }
  .badge { max-width: none; }
  .site-foot small { margin-left: 0; width: 100%; }
  .tv-screen { border-width: 6px; }
}
