/* Liquid TV website. Same ink + aqua colours as the app (ui/Theme.kt), no web fonts,
   so it loads fast on a phone after scanning the QR code on the TV. */
:root {
  --ink: #0A0E13; --panel: #0E1319; --row: #131920; --line: #1B232D;
  --aqua: #4CC9F0; --aqua-hi: #56CCF2; --aqua-ink: #04212D; --aqua-dim: #17465A;
  --text: #F3F6F8; --dim: #8B98A5; --warn: #F5C542;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #13314a 0%, var(--ink) 60%) fixed, var(--ink);
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
a { color: var(--aqua); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 24px; margin-top: 8px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 480px; }

/* Header */
.top { padding-top: 40px; padding-bottom: 8px; }
.top a { display: inline-block; }
.logo { display: block; width: min(300px, 75%); height: auto; }
.logo.small { width: 170px; }
.lead { color: var(--dim); font-size: 20px; margin: 18px 0 24px; max-width: 34em; }
.lead strong { color: var(--text); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid var(--aqua-dim); color: var(--text); background: var(--row);
  font-family: inherit; cursor: pointer;
}
.btn.main { background: var(--aqua-hi); color: var(--aqua-ink); border-color: var(--aqua-hi); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

section { padding: 28px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.dim { color: var(--dim); }
.small { font-size: 14px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tile strong { display: block; margin-bottom: 4px; }
.tile span { color: var(--dim); font-size: 15px; }

/* Free vs Premium */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.plan.pro { border-color: var(--aqua-dim); box-shadow: 0 0 0 1px var(--aqua-dim) inset; }
.plan h3 { font-size: 20px; }
.price { font-size: 30px; font-weight: 700; color: var(--aqua); margin: 4px 0 2px; }
.price span { font-size: 16px; color: var(--dim); font-weight: 400; }
.plan ul { margin: 12px 0 0; padding-left: 20px; }
.plan li { margin: 4px 0; }

/* Steps */
ol.steps { padding-left: 22px; }
ol.steps li { margin: 6px 0; }
code, .kbd { background: var(--row); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 15px; }

/* Forms (activate page) */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 18px 0; }
label { display: block; font-size: 14px; color: var(--dim); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
}
input:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
input.code { font-size: 30px; letter-spacing: .35em; text-align: center; text-transform: uppercase; font-weight: 700; color: var(--aqua); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { margin: 0; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink);
  color: var(--text); font-size: 16px; text-align: center; cursor: pointer;
}
.choice span b { display: block; font-size: 22px; color: var(--aqua); }
.choice input:checked + span { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua) inset; }
.choice input:focus-visible + span { outline: 2px solid var(--aqua); }
.tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--dim); background: var(--ink); border: 1px solid var(--line); }
.tabs a.on { color: var(--aqua-ink); background: var(--aqua-hi); border-color: var(--aqua-hi); font-weight: 600; }
.notice { border: 1px solid #5a4a12; background: #1f1a08; color: #f1e2a6; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.msg { margin-top: 14px; min-height: 1.5em; }
.msg.bad { color: #ff9c9c; }
.msg.good { color: var(--aqua); }

footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; padding-top: 18px; padding-bottom: 36px; margin-top: 20px; }
footer p { margin: 4px 0; }
footer a { color: var(--dim); }
.gap { margin-top: 22px; }
[hidden] { display: none !important; }
