/* Caster Plus website.
   No external requests of any kind: system fonts, inline SVG icons, local images. */

:root {
  --brand-900: #10305A;
  --brand: #1F4E8C;
  --brand-600: #2A63AE;
  --brand-400: #3A78C9;

  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --surface: #FFFFFF;
  --text: #0F1B2D;
  --muted: #4A5B72;
  --line: #DCE3ED;
  --link: #1F4E8C;
  --link-hover: #10305A;
  --focus: #1F4E8C;
  --yes: #1C7A4A;
  --partial: #8A5A00;
  --shadow: 0 1px 2px rgba(16, 48, 90, .06), 0 10px 30px rgba(16, 48, 90, .08);

  --footer-bg: #0B1B31;
  --footer-text: #C3CEDC;
  --footer-small: #A3B2C6;

  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --band: radial-gradient(900px 520px at 88% -10%, rgba(58, 120, 201, .6) 0%, rgba(58, 120, 201, 0) 65%),
          linear-gradient(135deg, #10305A 0%, #1F4E8C 55%, #2A63AE 100%);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1320;
    --bg-alt: #0E1929;
    --surface: #132238;
    --text: #E7EDF5;
    --muted: #A9B6C8;
    --line: #243552;
    --link: #93BDF3;
    --link-hover: #BCD6F8;
    --focus: #93BDF3;
    --yes: #6FD3A0;
    --partial: #F2C46B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .3);
    --footer-bg: #07101D;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.6rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

[id] { scroll-margin-top: 1.25rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1120px, 100% - 48px); } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -200px; z-index: 20;
  background: #fff; color: var(--brand-900); font-weight: 700;
  padding: .7rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Line icons: 24-unit grid, drawn with currentColor. */
.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Brand band (header + hero / page intro) ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--band);
  color: #fff;
}
.band::before {
  /* The launcher glyph as a faint watermark, as on the store's feature graphic. */
  content: "";
  position: absolute;
  right: -6%;
  top: 56px;
  width: min(70vw, 620px);
  aspect-ratio: 24 / 19;
  background: url("../img/glyph.svg") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}
.band > * { position: relative; }
.band a { color: #fff; }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px;
}

.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  color: #fff; text-decoration: none;
  font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo svg { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }

.site-nav ul { display: flex; align-items: center; gap: .25rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: .55rem .15rem;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.site-nav .nav-section { display: none; }
@media (min-width: 860px) { .site-nav .nav-section { display: list-item; } }

/* Home hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 4vw, 4rem); letter-spacing: -0.03em; margin-bottom: .45em; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); max-width: 34em; }
.hero .fineprint { margin-top: 1.1rem; font-size: .95rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .75rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
}
.band .btn-play, .btn-play { background: #fff; color: var(--brand-900); box-shadow: 0 10px 24px rgba(4, 16, 36, .28); }
.band .btn-play:hover, .btn-play:hover { background: #EAF1FB; color: var(--brand-900); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn .i { width: 20px; height: 20px; }

.hero-shot {
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1080 / 1500;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 34px 70px rgba(4, 16, 36, .5);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Page intro band for Help / Privacy */
.page-intro { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.page-intro h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.2rem); letter-spacing: -0.025em; margin-bottom: .35em; }
.page-intro p { font-size: 1.12rem; max-width: 40em; }
.page-intro .eyebrow { margin-bottom: .6rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.kicker {
  margin: 0 0 .7rem; color: var(--link);
  font-size: .82rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
}

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 640px) { .grid { gap: 1.25rem; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }

.icon-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
}

/* Why we built it */
.story { display: grid; gap: 2rem; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.story-text { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
.story-text .sign { color: var(--muted); font-size: 1rem; }
.houses { display: grid; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.houses li {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-weight: 600;
}
.houses .i { color: var(--link); }

/* Supported TVs */
.tv-card h3 { margin-bottom: .2rem; }
.tv-card .sub { color: var(--muted); margin-bottom: 1rem; font-size: .98rem; }
.support { margin: 0 0 1rem; display: grid; gap: .5rem; }
.support div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid var(--line);
}
.support dt { font-weight: 600; }
.support dd { margin: 0; text-align: right; font-weight: 700; }
.yes { color: var(--yes); }
.yes::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }
.partial { color: var(--partial); }
.tv-card { display: flex; flex-direction: column; }
.tv-card .support { flex: 1; align-content: start; }
.tv-note { margin: 0; color: var(--muted); font-size: .95rem; }
.tv-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tv-grid { grid-template-columns: repeat(4, 1fr); } }

.reqs {
  display: grid; gap: .75rem 1.5rem; margin: 2rem 0 0; padding: 1.25rem 1.5rem; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.reqs li { display: flex; gap: .75rem; align-items: flex-start; }
.reqs .i { color: var(--link); margin-top: .1rem; }

/* How it works */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.5rem; top: 1.5rem;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; font-weight: 800;
}

/* Screenshots */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 250px); gap: 1rem;
  margin: 0; padding: .25rem .25rem 1.25rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.gallery li { scroll-snap-align: start; }
.gallery img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); background: var(--brand); }
@media (min-width: 1100px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; padding-bottom: 0; }
}
.gallery-hint { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
@media (min-width: 1100px) { .gallery-hint { display: none; } }

/* Pay once */
.pay { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.pay::before { left: -22%; right: auto; top: auto; bottom: -40%; }
.pay h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); letter-spacing: -0.025em; }
.pay p { max-width: 38em; margin-inline: auto; font-size: 1.12rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.pills li {
  padding: .5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 700;
}
.pay .cta-row { justify-content: center; margin-top: 1.5rem; }
.pay .refund { margin-top: 1.5rem; font-size: .98rem; }

/* Privacy highlights */
.privacy-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.after-grid { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; }
.after-grid .quiet { color: var(--muted); margin: 0; }
.arrow-link { font-weight: 700; }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; content: "+" / "";
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--link);
}
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq .answer { padding: 0 0 1.25rem; }
.faq .answer p { color: var(--muted); }
.faq + p { margin-top: 1.5rem; }

/* ---------- Documents (Help, Privacy) ---------- */

.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.95rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose .effective { color: var(--muted); font-style: italic; }
.prose .ui { font-weight: 650; }

.note {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--brand-400);
  border-radius: 0 12px 12px 0;
}

/* Tables: a normal table on wide screens, one card per row on phones. */
.data { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .98rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.data thead th { background: var(--bg-alt); font-size: .9rem; font-weight: 750; border-bottom-width: 2px; }
.data tbody th { font-weight: 650; }

@media (max-width: 719px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data, .data tbody, .data tr, .data th, .data td { display: block; }
  .data tr {
    margin-bottom: 1rem; padding: .5rem 1.1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  }
  .data tbody th, .data td { border: 0; padding: .45rem 0; }
  .data tbody th { font-size: 1.02rem; padding-top: .7rem; }
  .data td::before {
    content: attr(data-label); content: attr(data-label) / "";
    display: block; margin-bottom: .1rem;
    color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  }
}

/* Help: contents list beside the article on wide screens */
.doc-layout { display: grid; gap: 2.5rem; }
@media (min-width: 980px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; }
}
.toc {
  padding: 1.25rem 1.4rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc h2 { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem .75rem; }
@media (max-width: 979px) { .toc ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } }
.toc a { display: block; padding: .3rem 0; text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

.help-section { padding-top: .5rem; }
.help-section + .help-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.help-section > h2 { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3rem 0 2.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; align-items: flex-start; }
.footer-top .logo svg { width: 32px; height: 32px; }
.footer-top .tagline { margin: .6rem 0 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-block; padding: .4rem 0; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--footer-small); font-size: .88rem; }
.footer-legal p { max-width: 60rem; }

/* ---------- 404 ---------- */

.not-found { padding: clamp(3rem, 10vw, 7rem) 0; }
.not-found h1 { font-size: clamp(2.2rem, 1.5rem + 3.5vw, 3.6rem); letter-spacing: -0.03em; }
.not-found .code { font-size: .9rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }

@media print {
  .band, .site-footer { background: none !important; color: #000 !important; }
  .band::before, .skip-link, .site-nav, .cta-row { display: none !important; }
  .band a, .site-footer a { color: #000 !important; }
}

.plain { list-style: none; margin: 0; padding: 0; }
