/* Landing page style for consoletranslate.asia (homepage only; legal pages keep legal.css).
   Pixel/retro look matching the mobile app tokens (docs/design-system/tokens.md):
   navy bg, cyan highlight, gold only for Pro, VT323 text, Press Start 2P only for the logo. */
:root {
  --bg: #010e56;
  --bg-deep: #000a3d;
  --panel: #0b1e78;
  --field: #14309e;
  --text: #eaf1ff;
  --muted: #b4c6f5;
  --cyan: #4fd8ff;
  --violet: #8b3dff;
  --gold: #ffd500;
  --gold-text: #3a1d00;
  --go: #22c55e;
  --line: #2b46a8;
  --shadow: #000526;
  --px: 3px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 22px/1.4 "VT323", ui-monospace, Menlo, monospace;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px dashed var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pixel box + buttons */
.px-box { background: var(--panel); border: var(--px) solid var(--line); box-shadow: 4px 4px 0 var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 22px;
  font: inherit; font-size: 24px; text-decoration: none; cursor: pointer; border: var(--px) solid var(--shadow);
  box-shadow: 4px 4px 0 var(--shadow); transition: transform 150ms, box-shadow 150ms, background-color 150ms;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-cyan { background: var(--cyan); color: var(--bg); }
.btn-ghost { background: var(--field); color: var(--text); }
.btn-gold { background: var(--gold); color: var(--gold-text); }

/* Nav (floating) */
.nav { position: sticky; top: 12px; z-index: 30; margin: 12px auto 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; background: var(--bg-deep); }
.logo { white-space: nowrap; font: 12px/1.6 "Press Start 2P", monospace; color: var(--text); text-decoration: none; letter-spacing: 1px; }
.logo b { color: var(--cyan); font-weight: 400; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--cyan); }
.nav .btn { min-height: 44px; font-size: 22px; padding: 4px 16px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang-link { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; border: 2px solid var(--line); transition: color 150ms, border-color 150ms; }
.lang-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 48px; }
.tag { display: inline-block; padding: 2px 10px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; background: var(--field); color: var(--cyan); border: 2px solid var(--cyan); }
h1 { font-size: 64px; line-height: 1.25; margin: 16px 0; font-weight: 400; }
h1 em { font-style: normal; color: var(--cyan); }
.lead { color: var(--muted); font-size: 26px; margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { color: var(--muted); font-size: 19px; margin-top: 16px; }

/* TV mockup with live subtitle */
.tv { position: relative; padding: 14px; background: #050a24; border: 4px solid #1a2a66; box-shadow: 8px 8px 0 var(--shadow); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(180deg, #2a1050 0%, #6a2a5e 45%, #f08a4b 75%, #1b1033 76%, #0a0820 100%); }
.tv-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); }
.sun { position: absolute; left: 50%; top: 34%; width: 26%; aspect-ratio: 1; transform: translateX(-50%); background: #ffcf5a; border-radius: 50%; box-shadow: 0 0 40px #ff9f43; }
.sub-en { position: absolute; left: 6%; right: 6%; bottom: 10%; text-align: center; font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #000; }
.scan { position: absolute; left: 4%; right: 4%; bottom: 6%; height: 26%; border: 3px solid var(--gold); }
.sub-vi { margin-top: 14px; padding: 10px 14px; background: rgba(1, 14, 86, .92); border: var(--px) solid var(--cyan); font-size: 28px; line-height: 1.25; text-align: center; }
.sub-vi small { display: block; font-size: 16px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.caret { display: inline-block; width: .5em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
section { padding: 56px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
h2 { font-size: 46px; line-height: 1.25; margin: 8px 0 12px; font-weight: 400; }
h3 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; font-weight: 400; }
.sec-head p, .muted { color: var(--muted); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .feature { padding: 22px; }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; background: var(--gold); color: var(--gold-text); font-size: 28px; }
.feature .icon { color: var(--cyan); width: 36px; height: 36px; margin-bottom: 10px; }
.feature p, .step p { margin: 0; color: var(--muted); font-size: 21px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 20px 20px; }
.plan-name { font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.price { font-size: 42px; white-space: nowrap; line-height: 1; margin: 10px 0 4px; }
.price span { font-size: 22px; color: var(--muted); }
.plan .per { min-height: 56px; color: var(--muted); font-size: 20px; margin: 0 0 16px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-pro { border-color: var(--cyan); }
.plan-best { border-color: var(--gold); background: #13268c; }
.ribbon { position: absolute; top: -16px; left: 16px; padding: 2px 10px; font-size: 18px; background: var(--gold); color: var(--gold-text); border: 2px solid var(--shadow); }
.save { color: var(--go); }
.price-note { text-align: center; color: var(--muted); font-size: 19px; margin: 20px auto 0; max-width: 820px; }

/* Comparison table */
.compare { margin-top: 40px; overflow-x: auto; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 2px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 24px; font-weight: 400; color: var(--muted); }
.compare thead th:last-child { color: var(--gold); }
.compare td:not(:first-child) { width: 30%; }
.yes { color: var(--go); } .no { color: #fda4af; }
.compare .icon { width: 22px; height: 22px; vertical-align: -4px; margin-right: 6px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 24px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Download + about + footer */
.download { text-align: center; padding: 40px 20px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 24px 0 8px; }
.store { min-width: 230px; padding: 10px 18px; text-align: left; background: var(--bg-deep); color: var(--text); text-decoration: none; }
.store small { display: block; color: var(--muted); font-size: 17px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about article { padding: 22px; font-size: 20px; }
.about p { color: var(--muted); }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 20px; border-top: 2px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  h1 { font-size: 54px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .grid-3, .about { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 20px; }
  h1 { font-size: 44px; } h2 { font-size: 36px; }
  .plans { grid-template-columns: 1fr; }
  .logo { font-size: 10px; }
  .nav .btn { display: none; }
  .sub-en { font-size: 15px; } .sub-vi { font-size: 23px; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn { transition: none; }
}
