/* FamilyFilterTV — site styles.
   Palette follows the app's own tokens, with one field colour lifted from the
   app icon (#0B1E3A) so the site and the icon read as the same product. */

:root {
  --ground: #0B0C0F;
  --surface: #15171C;
  --field: #0B1E3A;          /* the icon's own navy */
  --field-line: #1B3A63;
  --ink: #F2F1EC;
  --ink-soft: #C8C7C1;
  --muted: #9A9DA8;
  --line: #262932;
  --accent: #F4B65C;         /* one primary action per page, nothing else */
  --signal: #35CFE8;         /* only inside the sound meter */
  --measure: 66ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  font-feature-settings: "ss01";
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 24px;
}

@media (max-width: 460px) {
  .wrap { padding-inline: 18px; }
}

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

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 2px;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line);
}

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

main { padding-block: 56px 72px; }

h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 20px;
  max-width: 17ch;
}

.page-title {
  max-width: 24ch;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 2.6em 0 0.7em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.35em;
}

p, li { max-width: var(--measure); }

p { margin: 0 0 1.05em; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

.muted { color: var(--muted); font-size: 0.9375rem; }

ul, ol { padding-left: 1.25em; margin: 0 0 1.05em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 700; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242, 241, 236, 0.32);
}

a:hover { text-decoration-color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
}

.hero-mark {
  width: 152px;
  height: 152px;
  border-radius: 28px;
  display: block;
  background: var(--field);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-mark { width: 92px; height: 92px; border-radius: 18px; order: -1; }
}

/* ---------- the sound meter: the one bold element ---------- */

.meter {
  margin: 44px 0 14px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 14px;
  padding: 26px 22px 20px;
  background-image: radial-gradient(120% 140% at 12% -20%, rgba(53, 207, 232, 0.10), transparent 58%);
}

.meter-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 84px;
  overflow: hidden;
}

.meter-bars b {
  display: block;
  flex: 1 1 0;
  min-width: 2px;
  max-width: 7px;
  height: var(--h);
  border-radius: 2px;
  background: var(--signal);
}

.meter-bars b.q {
  animation: hush 480ms cubic-bezier(0.32, 0, 0.24, 1) forwards;
  animation-delay: calc(900ms + var(--i) * 26ms);
}

@keyframes hush {
  to { height: 4px; background: #2C4463; }
}

.meter-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 52ch;
}

@media (prefers-reduced-motion: reduce) {
  .meter-bars b.q {
    animation: none;
    height: 4px;
    background: #2C4463;
  }
}

/* ---------- actions ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #16181D;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
}

.btn:hover { background: #FAC77F; text-decoration: none; }

.btn-quiet {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
}

.btn-quiet:hover {
  border-color: #3B404D;
  background: rgba(242, 241, 236, 0.04);
  text-decoration: none;
}

/* ---------- steps (a real sequence, so it is numbered) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0 14px;
  margin: 0 0 26px;
  max-width: none;
}

.steps li::before {
  content: counter(step);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.steps p { margin: 0; color: var(--ink-soft); }
.steps h3 { color: var(--ink); }

/* ---------- price ---------- */

.price {
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 14px;
  padding: 28px 26px;
  max-width: 420px;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 14px;
}

.price-figure span:first-child {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-figure span:last-child { color: var(--muted); font-size: 1rem; }

.price ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.price li { margin-bottom: 0.45em; }
.price li:last-child { margin-bottom: 0; }

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

.faq { margin-top: 8px; }

.faq > div {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.faq p { margin: 0; color: var(--ink-soft); }

/* ---------- panels, used for grouped reference material ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 1.4em 0;
}

.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-bottom: 0.5em; }

/* ---------- linking code ---------- */

.code-plate {
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 14px;
  padding: 30px 20px 26px;
  text-align: center;
  margin: 8px 0 26px;
}

.code-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.4rem, 13vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
  max-width: none;
}

.code-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: none;
}

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

.table-scroll {
  overflow-x: auto;
  margin: 1.2em 0 1.6em;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  max-width: 34ch;
}

th { background: var(--surface); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-foot p { margin: 0 0 0.5em; max-width: 62ch; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 14px 0;
}

.fine { font-size: 0.875rem; margin-top: 14px; }

/* ---------- direct-install details ---------- */

.version-line {
  margin: 0 0 0.35em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .meter { padding: 22px 18px 18px; }
  .meter-bars { gap: 2px; height: 72px; }
}
