/* ATV-STORE landing pages — shared stylesheet
   Mirrors the React app brand: deep-navy base, neon-cyan primary, android-green accent, Geist type.
   No framework, mobile-first, single-column under ~720px. */

:root {
  --bg: oklch(0.14 0.025 255);
  --bg-soft: oklch(0.17 0.028 255);
  --card: oklch(0.19 0.030 255);
  --fg: oklch(0.97 0.005 250);
  --muted: oklch(0.70 0.020 250);
  --brand: oklch(0.80 0.128 210);
  --brand-ink: oklch(0.14 0.025 255);
  --accent: oklch(0.87 0.21 130);
  --border: oklch(1 0 0 / 12%);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* glow background accents */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 80% -10%, oklch(0.80 0.128 210 / 18%), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, oklch(0.87 0.21 130 / 10%), transparent 70%);
  pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.14 0.025 255 / 78%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); font-size: 0.92rem; }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: oklch(0.87 0.21 130 / 12%);
  border: 1px solid oklch(0.87 0.21 130 / 30%);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* hero */
.hero { padding: 72px 0 56px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { color: var(--fg); }
.card p { color: var(--muted); margin-bottom: 0; }

/* benefit bullets */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits li {
  position: relative;
  padding-left: 32px;
  color: var(--fg);
}
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: oklch(0.80 0.128 210 / 16%);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}
.benefits li b { color: var(--fg); }
.benefits li span { color: var(--muted); }

/* steps */
.steps { counter-reset: step; }
.steps .card { position: relative; }
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; margin-bottom: 12px;
}

/* device list */
.devices { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.devices li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--fg);
}

/* screenshot */
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 24px 60px -30px oklch(0.80 0.128 210 / 50%);
}
.shot-caption { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* split layout */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

/* faq */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* related links */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-weight: 600;
}
.related a:hover { border-color: var(--brand); text-decoration: none; }
.related a span { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 2px; }

/* cta band */
.cta-band {
  text-align: center;
  background: linear-gradient(180deg, oklch(0.19 0.030 255), oklch(0.16 0.028 255));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 24px;
}
.cta-band .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container { display: grid; gap: 16px; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer .foot-links a { color: var(--muted); }
.disclaimer { font-size: 0.82rem; color: var(--muted); opacity: 0.8; max-width: 75ch; }

/* comparison cards (e.g. old way vs new way) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card { margin: 0; }
.cmp-bad { border-color: oklch(0.704 0.191 22 / 38%); }
.cmp-good { border-color: oklch(0.80 0.128 210 / 45%); }
.cmp-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.cmp-bad .cmp-tag { background: oklch(0.704 0.191 22 / 14%); color: oklch(0.80 0.12 22); }
.cmp-good .cmp-tag { background: oklch(0.80 0.128 210 / 14%); color: var(--brand); }
.cmp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cmp-list li { position: relative; padding-left: 26px; color: var(--muted); }
.cmp-bad .cmp-list li::before { content: "✕"; position: absolute; left: 0; color: oklch(0.72 0.17 22); font-weight: 700; }
.cmp-good .cmp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.ctable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ctable th, .ctable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.ctable thead th { color: var(--fg); font-weight: 600; background: var(--bg-soft); }
.ctable td { color: var(--muted); }
.ctable tbody tr:last-child td { border-bottom: none; }

/* code block */
.code { background: oklch(0.11 0.02 255); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.86rem; color: var(--fg); line-height: 1.75; white-space: pre; margin: 0; }
.code .tok { color: var(--brand); }
.code .cmt { color: var(--muted); }

/* responsive */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 48px 0; }
  .site-nav { gap: 12px; }
}
