/* Layout: one centred column (max 72rem). Hero = copy beside a TV frame that plays the real app screens;
   then features, devices, a download band, FAQ. Single dark look on purpose: it is the app's own "Noir Gold". */
:root {
  --bg: #0A0A0D;
  --raised: #121217;
  --card: #18181E;
  --line: rgba(233, 185, 95, 0.16);
  --line-soft: rgba(246, 241, 231, 0.08);
  --text: #F6F1E7;
  --muted: #A39D92;
  --gold: #E9B95F;
  --gold-deep: #C08A35;
  --on-gold: #1A1206;
  --live: #FF5A4E;
  --ok: #3DDC84;
  --gold-gradient: linear-gradient(135deg, #F1D595 0%, #DFB05A 55%, #C08A35 100%);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 6.4vw, 4.4rem);

  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { color: var(--muted); font-size: var(--step-1); font-weight: 300; max-width: 36rem; }

/* Top bar: logo left, page pills right, styled like the app's section tabs. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(10, 10, 13, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--gold); font-weight: 600; }
.pills { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.pills a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--raised);
}
.pills a:hover { color: var(--text); text-decoration: none; }
.pills a.is-active { background: var(--gold-gradient); color: var(--on-gold); border-color: transparent; }
@media (max-width: 520px) {
  .brand span { display: none; }
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold-gradient); color: var(--on-gold); box-shadow: 0 10px 30px -12px rgba(233, 185, 95, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--raised); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60rem; height: 60rem;
  background: radial-gradient(circle at center, rgba(233, 185, 95, 0.13), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--muted); font-size: var(--step--1); }
.hero-meta span::before { content: "●"; color: var(--ok); font-size: 0.6em; margin-right: 0.5em; vertical-align: 0.2em; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* TV frame with the screen switcher (the app's own section pills drive it). */
.tv { min-width: 0; display: grid; gap: 1rem; }
.tv-bezel {
  position: relative;
  padding: clamp(6px, 1.1vw, 12px);
  border-radius: 18px;
  background: linear-gradient(160deg, #2a2a31, #0d0d10 45%, #1d1d22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(233, 185, 95, 0.35);
}
.tv-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 8px; overflow: hidden; background: #000; }
.tv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.35s ease; }
.tv-screen img.is-shown { opacity: 1; }
.tv-stand { width: 34%; height: 10px; margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(#1d1d22, #0d0d10); }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.screen-tabs button {
  font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer;
  color: var(--muted); background: var(--raised);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.42rem 1rem;
}
.screen-tabs button[aria-selected="true"] { background: var(--gold-gradient); color: var(--on-gold); border-color: transparent; }
.screen-caption { text-align: center; color: var(--muted); font-size: var(--step--1); min-height: 1.6em; }
.remote-hint { text-align: center; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; }
.remote-hint kbd {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.4rem; background: var(--raised);
}

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 44rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); font-weight: 300; }

/* Login types: the three ways in, as a strip of equal tiles. */
.logins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.login {
  display: grid; gap: 0.5rem; align-content: start;
  padding: 1.5rem; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line-soft);
}
.login h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
.login p { color: var(--muted); font-size: 0.98rem; }
.login .mono { color: var(--gold); font-size: 0.8rem; }
@media (max-width: 760px) { .logins { grid-template-columns: minmax(0, 1fr); } }

/* Feature list: icon + text rows in two columns; no card chrome, so the screenshots stay the stars. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.feature { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(233, 185, 95, 0.12); color: var(--gold);
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; margin-bottom: 0.3rem; }
.feature p { color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Screens gallery */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.shot { margin: 0; display: grid; gap: 0.6rem; }
.shot img { border-radius: 14px; border: 1px solid var(--line-soft); width: 100%; }
.shot figcaption { color: var(--muted); font-size: var(--step--1); }
.shot-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .shots { grid-template-columns: minmax(0, 1fr); } }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.device { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line-soft); display: grid; gap: 0.35rem; }
.device h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.device p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .devices { grid-template-columns: minmax(0, 1fr); } }

/* Download band: the one gold-lit block on the page. */
.download-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(233, 185, 95, 0.22), transparent 55%), var(--raised);
  border: 1px solid var(--line);
}
.download-band h2 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.download-band p { color: var(--muted); }
.apk-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1rem; color: var(--muted); font-size: var(--step--1); }
.apk-facts b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .download-band { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0.75rem; max-width: 50rem; }
.faq details { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--raised); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* Notice line used for the "player only" statement. */
.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(233, 185, 95, 0.06); color: var(--muted); font-size: 0.98rem;
}
.notice strong { color: var(--text); font-weight: 600; }
.notice svg { width: 1.3rem; height: 1.3rem; color: var(--gold); flex: none; margin-top: 0.15rem; }

/* Inner pages */
.page-head { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; display: grid; gap: 1rem; }
.page-head h1 { font-size: var(--step-4); }
.page-body { padding-block: 0 clamp(3.5rem, 7vw, 6rem); display: grid; gap: 3rem; }

/* Install guide: real ordered steps per device, so numbering is meaningful here. */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide { padding: 1.5rem; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line-soft); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.guide h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0.85rem; }
.guide li { counter-increment: step; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.guide li::before {
  content: counter(step);
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--on-gold); background: var(--gold-gradient);
}
.guide li strong { color: var(--text); font-weight: 600; }
.code-chip { font-family: var(--font-mono); font-size: 0.9rem; color: var(--gold); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.05rem 0.45rem; white-space: nowrap; }
@media (max-width: 900px) { .guides { grid-template-columns: minmax(0, 1fr); } }

.verify { display: grid; gap: 0.6rem; padding: 1.5rem; border-radius: var(--radius); border: 1px dashed var(--line); }
.verify h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
.verify p { color: var(--muted); }
.fingerprint { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); overflow-wrap: anywhere; background: var(--bg); padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid var(--line-soft); }

.contact-card { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; background: var(--raised); border: 1px solid var(--line); max-width: 44rem; }
.contact-email { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.contact-email .mono { font-size: clamp(1rem, 3.6vw, 1.35rem); color: var(--gold); user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; }
.checklist { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; color: var(--muted); }
.checklist li::marker { color: var(--gold); }

/* Legal pages: one reading column. */
.legal { max-width: 44rem; display: grid; gap: 2.25rem; }
.legal section { display: grid; gap: 0.65rem; }
.legal h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; }
.legal h2 .n { color: var(--gold); font-variant-numeric: tabular-nums; margin-right: 0.45em; }
.legal p, .legal li { color: #D9D3C8; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .perm { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }
.legal .glance { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.5rem; }
.legal .glance h2 { margin-bottom: 0.8rem; }
.legal .glance dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.25rem; margin: 0; }
.legal .glance dt { font-weight: 600; }
.legal .glance dd { margin: 0; color: var(--muted); }
.legal .email { font-family: var(--font-mono); color: var(--gold); user-select: all; }
@media (max-width: 520px) {
  .legal .glance dl { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .legal .glance dd { margin-bottom: 0.6rem; }
}

/* Footer */
.footer { border-top: 1px solid var(--line-soft); background: var(--raised); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; padding-block: 3rem 2rem; }
.footer-about { display: grid; gap: 1rem; }
.footer-about p { color: var(--muted); font-size: 0.95rem; max-width: 30rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.6rem 2.5rem; align-content: start; justify-content: end; }
.footer-links a { color: var(--text); font-weight: 500; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: start; }
}

/* Key facts beside the "What is" answer. */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.facts { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--line-soft); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--gold); font-weight: 500; font-size: 0.92rem; }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 880px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--gold); color: var(--on-gold); padding: 0.6rem 1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* Phones: comfortable tap targets for the screen switcher and pills. */
@media (max-width: 520px) {
  .screen-tabs button, .pills a { min-height: 44px; display: inline-flex; align-items: center; }
  .btn { width: 100%; }
}
@media (max-width: 520px) {
  .pills { gap: 0.3rem; flex-wrap: nowrap; }
  .pills a { padding: 0 0.8rem; font-size: 0.88rem; }
}
