/* ============================================================
   BASE — layout and components. Do not edit per app;
   change css/theme.css instead.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }

.wrap  { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 1.4rem; }
.read  { max-width: var(--wrap-read); margin: 0 auto; padding: 0 1.4rem; }

section { padding: var(--gap-section) 0; }
section.tight { padding: calc(var(--gap-section) * .55) 0; }
section.band  { background: var(--surface-alt); }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.2; letter-spacing: -.021em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem);   font-weight: 750; margin-top: var(--gap-block); }
h3 { font-size: 1.14rem; font-weight: 700; margin-top: 1.8rem; }
p  { margin: 0 0 1.1rem; }

.lede      { font-size: 1.16rem; color: var(--ink-soft); line-height: 1.6; }
.eyebrow   { font-size: .8rem; font-weight: 700; letter-spacing: .09em;
             text-transform: uppercase; color: var(--brand); margin-bottom: .7rem; }
.meta      { font-size: .9rem; color: var(--ink-faint); }
.center    { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; max-width: 34rem; }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .6rem;
         text-decoration: none; color: var(--ink); font-weight: 800;
         letter-spacing: -.02em; font-size: 1.06rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 78% -10%,
      color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--brand-tint);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; gap: 3rem; align-items: center;
  padding-top: 4.2rem; padding-bottom: 4.2rem;
}
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}
.hero h1 { color: var(--brand-ink); }
.hero .lede { font-size: 1.22rem; }

.appicon {
  width: 76px; height: 76px; border-radius: 18px;
  box-shadow: var(--shadow-lift); margin-bottom: 1.4rem;
}

/* ---------- phone mockup: makes a plain screenshot look shipped ---------- */

.phone {
  width: min(280px, 78vw); margin: 0 auto;
  border: 11px solid #10131c;
  border-radius: 40px;
  box-shadow: var(--shadow-lift);
  overflow: hidden; background: #10131c;
  position: relative; aspect-ratio: 9 / 19.5;
}
.phone::before {
  content: ""; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%); width: 92px; height: 20px;
  background: #10131c; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--ink-faint);
  font-size: .82rem; text-align: center; padding: 1.4rem;
}

/* TV / desktop frame, for receiver screenshots */
.screen {
  border: 10px solid #10131c; border-radius: 16px;
  box-shadow: var(--shadow-lift); overflow: hidden;
  aspect-ratio: 16 / 9; background: #10131c;
}
.screen .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--ink-faint);
  font-size: .82rem; text-align: center; padding: 1.4rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; font-weight: 650;
  padding: .95rem 1.5rem; border-radius: 999px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  box-shadow: var(--shadow); transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  box-shadow: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn small { display: block; font-weight: 400; opacity: .85; font-size: .78rem; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.2rem; }
@media (min-width: 42rem) { .grid.two   { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 52rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: .9rem;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--brand-tint); color: var(--brand);
}
a.card { text-decoration: none; color: inherit; display: block;
         transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
a.card h3 { color: var(--brand); }

/* ---------- article ---------- */

.answer {
  background: var(--brand-tint); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.5rem; margin: 1.6rem 0 var(--gap-block);
}
.answer p:last-child { margin-bottom: 0; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 1.5rem 3.1rem; border-left: 2px solid var(--line);
  margin-left: 1rem;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: -1rem; top: -.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .88rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
ol.steps strong { display: block; margin-bottom: .15rem; }

.note, .warn, .good {
  border-radius: var(--radius); padding: 1.05rem 1.2rem;
  margin: 1.5rem 0; font-size: .97rem; border: 1px solid var(--line);
}
.warn { background: var(--warn-tint); border-color: transparent; }
.warn strong { color: var(--warn); }
.good { background: var(--ok-tint); border-color: transparent; }
.good strong { color: var(--ok); }

figure { margin: 1.6rem 0; }
figcaption { font-size: .87rem; color: var(--ink-faint); margin-top: .55rem; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 28rem; }
th, td { text-align: left; padding: .8rem .7rem;
         border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em;
           color: var(--ink-faint); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
.yes { color: var(--ok); font-weight: 650; }
.no  { color: var(--bad); font-weight: 650; }

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .2rem 1.2rem; margin-bottom: .7rem; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; 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 { margin: 0 0 1rem; color: var(--ink-soft); }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--brand); color: #fff; border-radius: var(--radius-lg);
  padding: 2.6rem 2rem; text-align: center; box-shadow: var(--shadow-lift);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { margin-top: 0; }
.cta-band p { opacity: .92; max-width: 34rem; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--brand); margin-top: 1.2rem; }
.cta-band .btn:hover { background: #fff; opacity: .92; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line); background: var(--surface-alt);
  padding: 2.6rem 0; color: var(--ink-soft); font-size: .92rem;
}
footer.site a { color: var(--ink-soft); }
footer.site .cols { display: grid; gap: 1.4rem; }
@media (min-width: 42rem) { footer.site .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer.site .fine { margin-top: 1.8rem; font-size: .84rem; color: var(--ink-faint); }

/* ---------- misc ---------- */

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { margin: .45rem 0; }
select {
  width: 100%; padding: .85rem 1rem; margin: .5rem 0;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
