/* Liquid TV website.
   Same ink + aqua colours and Inter font as the app (ui/Theme.kt, res/font), so the site
   and the TV feel like one product. No scripts on the main pages; the strict security
   rules in _headers block inline styles, so every style lives here. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-semibold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-bold.woff2) format("woff2"); }

:root {
  --ink: #070A0E; --ink2: #0A0E13; --panel: #0E1319; --row: #131920; --line: #1B232D; --line2: #26313d;
  --aqua: #4CC9F0; --aqua-hi: #56CCF2; --aqua-ink: #04212D; --aqua-dim: #17465A; --aqua-glow: rgba(76, 201, 240, .35);
  --text: #F3F6F8; --dim: #8B98A5; --dim2: #6b7784; --star: #F5C542; --now: #FF6B6B;
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--aqua); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 520px; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.center { text-align: center; }
.gap { margin-top: 22px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 14, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .brand img { height: 34px; width: auto; }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav .links a:hover { color: var(--text); }
.nav .btn { padding: 9px 18px; font-size: 15px; }
@media (max-width: 760px) { .nav .links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font: 600 16px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn.main { background: var(--aqua-hi); color: var(--aqua-ink); border-color: var(--aqua-hi); box-shadow: 0 8px 30px var(--aqua-glow); }
.btn.main:hover { transform: translateY(-1px); box-shadow: 0 10px 38px rgba(76, 201, 240, .5); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; isolation: isolate; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(/img/liquid.jpg) center top / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,10,14,.25) 0%, rgba(7,10,14,.55) 45%, var(--ink) 92%);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; max-width: 14ch; margin-inline: auto; }
.hero h1 span { background: linear-gradient(90deg, #bfefff, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b7c3ce; font-size: clamp(18px, 2vw, 21px); max-width: 38em; margin: 18px auto 30px; }
.hero .row { justify-content: center; }
.hero .note { margin-top: 16px; color: var(--dim); font-size: 14px; }

/* The TV in the hero */
.stage { margin: 64px auto 0; max-width: 1060px; }
.tv {
  position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(160deg, #1d242c, #090c10);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px rgba(0,0,0,.7), 0 0 140px rgba(76, 201, 240, .18);
}
.stage .tv::after { /* the glow on the floor under the TV */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 60px;
  background: radial-gradient(ellipse at top, rgba(76, 201, 240, .28), transparent 70%); filter: blur(10px);
}
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--ink2); container-type: inline-size; }
.screen-caption { color: var(--dim2); font-size: 13px; text-align: center; margin-top: 56px; }

/* ---------- Mock of the app's TV guide (sizes in cqw so it scales with the TV) ---------- */
.ui { position: absolute; inset: 0; display: grid; grid-template-columns: 5cqw 17cqw 1fr; font-size: 1.25cqw; color: var(--text); line-height: 1.3; text-align: left; }
.ui .rail { background: #05080b; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; padding-top: 2.4cqw; }
.ui .rail .drop { width: 2.6cqw; height: auto; margin-bottom: 1cqw; }
.ui .rail svg { width: 2cqw; height: 2cqw; stroke: var(--dim); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui .rail svg.on { stroke: var(--aqua); }
.ui .groups { background: var(--ink2); padding-top: 13cqw; }
.ui .groups div { padding: .7cqw 1.6cqw; color: var(--dim); font-size: 1.3cqw; white-space: nowrap; }
.ui .groups div.on { background: rgba(76, 201, 240, .2); color: var(--text); border-left: .25cqw solid var(--aqua); }
.ui .main { background: rgba(10, 14, 19, .96); display: flex; flex-direction: column; min-width: 0; }
.ui .top { display: flex; gap: 1.6cqw; padding: 1.3cqw; height: 18.5cqw; }
.ui .preview { width: 26cqw; flex: none; border-radius: .6cqw; overflow: hidden; position: relative; background: #000; }
.ui .preview img { width: 100%; height: 100%; object-fit: cover; }
.ui .preview .live { position: absolute; left: .7cqw; top: .7cqw; background: var(--now); color: #fff; font-size: .9cqw; font-weight: 700; padding: .15cqw .55cqw; border-radius: .3cqw; letter-spacing: .05em; }
.ui .info { min-width: 0; padding-top: .3cqw; }
.ui .info h4 { margin: 0 0 .5cqw; font-size: 2cqw; font-weight: 600; letter-spacing: -.01em; }
.ui .info .when { display: flex; align-items: center; gap: 1.1cqw; font-size: 1.2cqw; }
.ui .info .bar { width: 4.2cqw; height: .35cqw; background: rgba(255,255,255,.2); border-radius: .2cqw; overflow: hidden; }
.ui .info .bar i { display: block; height: 100%; width: 62%; background: var(--aqua); }
.ui .info .tags { display: flex; gap: .5cqw; margin: .7cqw 0; }
.ui .info .tags span { border: 1px solid var(--line2); color: var(--dim); font-size: .85cqw; padding: .05cqw .45cqw; border-radius: .3cqw; }
.ui .info p { color: var(--dim); font-size: 1.15cqw; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ui .times { display: grid; grid-template-columns: 17cqw repeat(4, 1fr); align-items: end; padding: 0 1.3cqw .5cqw; color: var(--dim); font-size: 1.1cqw; border-bottom: 1px solid rgba(255,255,255,.08); }
.ui .times b { color: var(--aqua); font-weight: 500; }
.ui .grid { position: relative; flex: 1; overflow: hidden; }
.ui .ch { display: grid; grid-template-columns: 17cqw 1fr; height: 4.1cqw; padding-left: 1.3cqw; }
.ui .ch .name { display: flex; align-items: center; gap: .8cqw; white-space: nowrap; overflow: hidden; font-size: 1.25cqw; }
.ui .ch .name em { font-style: normal; color: var(--dim); width: 2.2cqw; font-size: 1.1cqw; }
.ui .ch .name .fav { color: var(--star); font-size: .95cqw; }
.ui .ch.playing .name em, .ui .ch.playing .name { color: var(--aqua); }
.ui .progs { display: flex; gap: .2cqw; padding: .2cqw 1.3cqw .2cqw 0; min-width: 0; }
.ui .progs span {
  background: var(--row); border-radius: .35cqw; padding: .45cqw .8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 1.15cqw; display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.ui .progs span small { color: var(--dim); font-size: .85cqw; overflow: hidden; text-overflow: ellipsis; }
.ui .progs span.sel { background: var(--aqua-hi); color: var(--aqua-ink); font-weight: 600; }
.ui .progs span.sel small { color: #1F5266; }
.ui .w1 { flex: 1 1 0; } .ui .w2 { flex: 2 1 0; } .ui .w3 { flex: 3 1 0; } .ui .w4 { flex: 4 1 0; }
.ui .nowline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(191, 234, 251, .6); left: 33cqw; }

/* Movies screen mock */
.ui.movies { grid-template-columns: 5cqw 1fr; }
.ui.movies .lib { padding: 2.4cqw 2.4cqw 0; min-width: 0; background: rgba(10, 14, 19, .96); }
.ui.movies .lib h4 { margin: 0 0 1cqw; font-size: 2.2cqw; font-weight: 600; }
.ui.movies .lib .chips { display: flex; gap: .6cqw; margin-bottom: 2cqw; }
.ui.movies .lib .chips span { font-size: 1.1cqw; color: var(--dim); background: var(--row); padding: .4cqw 1cqw; border-radius: 99px; }
.ui.movies .lib .chips span.on { background: var(--aqua-hi); color: var(--aqua-ink); font-weight: 600; }
.ui.movies .posters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4cqw; }
.ui.movies .poster { position: relative; aspect-ratio: 2 / 3; border-radius: .7cqw; overflow: hidden; }
.ui.movies .poster img { width: 100%; height: 100%; object-fit: cover; }
.ui.movies .poster.on { outline: .3cqw solid var(--aqua-hi); outline-offset: .3cqw; }
.ui.movies .poster b { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5cqw .7cqw 1cqw; font-size: 1.05cqw; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.ui.movies .poster i { position: absolute; left: .6cqw; right: .6cqw; bottom: .4cqw; height: .3cqw; background: rgba(255,255,255,.25); border-radius: .2cqw; }
.ui.movies .poster i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: var(--aqua); border-radius: .2cqw; }
.ui.movies .row2 { margin-top: 2cqw; color: var(--dim); font-size: 1.2cqw; }

/* Player screen mock */
.ui.player { display: block; }
.ui.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ui.player .shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(5,8,11,.92) 100%); }
.ui.player .bar {
  position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; display: grid; grid-template-columns: auto 1fr auto; gap: 2cqw; align-items: center;
  background: rgba(10,14,19,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); border-radius: 1.2cqw; padding: 1.6cqw 2cqw;
}
.ui.player .num { font-size: 3cqw; font-weight: 700; color: var(--aqua); }
.ui.player h4 { margin: 0; font-size: 2cqw; font-weight: 600; }
.ui.player .sub { color: var(--dim); font-size: 1.25cqw; }
.ui.player .track { height: .4cqw; background: rgba(255,255,255,.18); border-radius: .2cqw; margin-top: 1cqw; overflow: hidden; }
.ui.player .track i { display: block; height: 100%; width: 40%; background: var(--aqua); }
.ui.player .next { color: var(--dim); font-size: 1.2cqw; text-align: right; }
.ui.player .next b { display: block; color: var(--text); font-weight: 500; font-size: 1.4cqw; }
.ui.player .rec { position: absolute; right: 3cqw; top: 3cqw; display: flex; align-items: center; gap: .6cqw; background: rgba(10,14,19,.7); padding: .5cqw 1.1cqw; border-radius: 99px; font-size: 1.2cqw; }
.ui.player .rec::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--now); }

/* ---------- Devices strip ---------- */
.devices { padding: 34px 0 10px; }
.devices ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.devices li { color: #c7d2dc; font-weight: 600; font-size: 17px; letter-spacing: -.01em; opacity: .8; }
.devices p { text-align: center; color: var(--dim2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- Sections ---------- */
.block { padding: 110px 0; }
.block.tight { padding: 70px 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.head p { color: var(--dim); font-size: 19px; }

/* Split: photo + words */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1fr 1.15fr; }
.split.flip .photo { order: 2; }
.split h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.split p { color: #b7c3ce; font-size: 18px; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(76, 201, 240, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CC9F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 34px; }
  .split.flip .photo { order: 0; }
  .block { padding: 76px 0; }
}

/* Wide photo band */
.band { position: relative; border-radius: 28px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,14,.05) 30%, rgba(7,10,14,.88) 100%), linear-gradient(transparent 50%, rgba(7,10,14,.7)); }
.band .words { position: relative; z-index: 1; margin-left: auto; max-width: 460px; padding: 48px; }
.band h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; }
.band p { color: #c7d2dc; font-size: 18px; }
@media (max-width: 760px) {
  .band { min-height: 600px; }
  .band::after { background: linear-gradient(rgba(7,10,14,0) 20%, rgba(7,10,14,.95) 70%); }
  .band .words { padding: 28px; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 28px;
}
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(76, 201, 240, .12); margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; stroke: var(--aqua); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--dim); font-size: 15.5px; margin: 0; }
.feature .pro { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--aqua); vertical-align: 2px; }

/* Screens gallery (swipe sideways, no script needed) */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 900px); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 24px 30px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots .tv { padding: 8px; }
.shots figcaption { margin-top: 18px; text-align: center; }
.shots figcaption b { display: block; font-size: 18px; font-weight: 600; }
.shots figcaption span { color: var(--dim); font-size: 15px; }
.swipe { text-align: center; color: var(--dim2); font-size: 13px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 26px; } }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 32px;
}
.plan.best { background: linear-gradient(180deg, rgba(76,201,240,.12), rgba(76,201,240,.02) 60%), var(--panel); border-color: rgba(76,201,240,.45); box-shadow: 0 20px 70px rgba(76,201,240,.12); }
.plan .tag { position: absolute; top: -13px; left: 32px; background: var(--aqua-hi); color: var(--aqua-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.plan h3 { font-size: 20px; font-weight: 600; margin: 0; }
.plan .price { font-size: 48px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 0; line-height: 1; }
.plan .per { color: var(--dim); font-size: 15px; margin: 8px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; align-content: start; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15.5px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CC9F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.plan .btn { justify-content: center; }

/* Install steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 28px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(76,201,240,.14); color: var(--aqua); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 15.5px; margin: 0; }
.soon { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 30px; color: var(--dim); font-size: 15px; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--star); box-shadow: 0 0 12px var(--star); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--aqua); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); margin: -4px 0 20px; }

/* Closing call to action */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 80px 30px; text-align: center; isolation: isolate; border: 1px solid rgba(255,255,255,.07); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/liquid.jpg) center 20% / cover; opacity: .85; }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.cta p { color: #c7d2dc; font-size: 19px; margin-bottom: 28px; }
.cta .row { justify-content: center; }

.legal { color: var(--dim2); font-size: 13px; text-align: center; max-width: 760px; margin: 40px auto 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; padding-top: 34px; padding-bottom: 46px; margin-top: 90px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
footer img { height: 28px; width: auto; }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }
footer p { margin: 0; width: 100%; }

/* ---------- Smaller pages (activate, privacy) ---------- */
.page { padding: 56px 24px 20px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; }
.page section { padding: 26px 0; border-top: 1px solid var(--line); }
.page section:first-of-type { border-top: 0; }
.page h2 { font-size: 22px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }

.notice { border: 1px solid #5a4a12; background: #1f1a08; color: #f1e2a6; border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; margin: 20px 0; }
label { display: block; font-size: 14px; color: var(--dim); margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text); background: var(--ink2);
  border: 1px solid var(--line2); border-radius: 12px;
}
input:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
input.code { font-size: 32px; 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: 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--ink2);
  color: var(--text); font-size: 15px; text-align: center; cursor: pointer;
}
.choice span b { display: block; font-size: 24px; 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: 11px; border-radius: 12px; text-decoration: none; color: var(--dim); background: var(--ink2); border: 1px solid var(--line2); font-size: 15px; }
.tabs a.on { color: var(--aqua-ink); background: var(--aqua-hi); border-color: var(--aqua-hi); font-weight: 600; }
.card .btn.main { width: 100%; justify-content: center; }
.msg { margin-top: 14px; min-height: 1.5em; }
.msg.bad { color: #ff9c9c; }
.msg.good { color: var(--aqua); }

/* The hero's small heading sits on bright water, so give it a dark pill to stay readable. */
.hero .eyebrow { background: rgba(7, 10, 14, .55); border: 1px solid rgba(76, 201, 240, .3); padding: 7px 14px; border-radius: 99px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Nine feature cards: three neat rows of three on wide screens. */
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
/* Stop the sticky top bar covering a section's heading when a menu link jumps to it. */
section[id] { scroll-margin-top: 70px; }
/* Movies mock: a "Continue watching" row of wide cards under the posters. */
.ui.movies .label { margin: 2.2cqw 0 1cqw; font-size: 1.3cqw; font-weight: 600; color: var(--text); }
.ui.movies .wide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; }
.ui.movies .card16 { position: relative; aspect-ratio: 16 / 9; border-radius: .7cqw; overflow: hidden; }
.ui.movies .card16 img { width: 100%; height: 100%; object-fit: cover; }
.ui.movies .card16 b { position: absolute; left: 0; right: 0; bottom: 0; padding: 2cqw .8cqw 1cqw; font-size: 1.05cqw; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.ui.movies .card16 i { position: absolute; left: .7cqw; right: .7cqw; bottom: .45cqw; height: .3cqw; background: rgba(255,255,255,.25); border-radius: .2cqw; }
.ui.movies .card16 i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: var(--aqua); border-radius: .2cqw; }
.ui.movies .card16:nth-child(2) i::after { width: 25%; }
.ui.movies .card16:nth-child(3) i::after { width: 80%; }
.ui.movies .card16:nth-child(4) i::after { width: 40%; }
