/* ==========================================================================
   chromecast-iptv.se — "Signal"
   White paper, broadcast red, deep navy bands.
   Implements references/design.md. Read that file before changing a token.
   ========================================================================== */

:root {
  --paper:    #FFFFFF;
  --paper-2:  #F6F7F9;
  --paper-3:  #EEF0F4;

  --ink:      #0B1339;
  --ink-2:    #070D31;
  --ink-3:    #181F43;

  --text:     #333A4D;
  --text-dim: #64676C;

  --line:     #E4E7EC;
  --line-2:   #CFD5DE;

  --red:      #DF0303;
  --red-deep: #B80202;
  --red-wash: rgba(223, 3, 3, .07);

  --amber:    #FFBA01;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-body:    var(--font-display);

  --max: 1180px;
  --gutter: 24px;

  --r: 10px;
  --r-sm: 6px;
  --r-pill: 50px;

  --shadow:    0 6px 30px rgba(11, 19, 57, .07);
  --shadow-lg: 0 14px 46px rgba(11, 19, 57, .11);

  --t: 170ms ease;
}

/* ── reset ─────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); font-weight: 800; letter-spacing: -.022em; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem);     font-weight: 800; letter-spacing: -.018em; line-height: 1.2; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.008em; line-height: 1.35; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); text-decoration: underline; }

b, strong { font-weight: 700; color: var(--ink); }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 76px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ── topbar ────────────────────────────────────────────────────────────── */

.topbar {
  background: var(--ink-2);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}
.topbar .container {
  display: flex; align-items: center; gap: 14px;
  min-height: 40px; flex-wrap: wrap;
}
.topbar b { color: #fff; font-weight: 700; }
.topbar .sep { width: 1px; height: 13px; background: rgba(255, 255, 255, .2); }
.topbar .hl { color: #fff; font-weight: 600; margin-left: auto; }
.topbar .hl::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 8px; vertical-align: middle;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex; align-items: center; gap: 26px;
  min-height: 74px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em;
  white-space: nowrap; flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { color: var(--ink); flex-shrink: 0; }
.brand b { color: var(--red); font-weight: 800; }

.desktop-nav { margin-left: auto; }
.desktop-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
/* Load-bearing: without nowrap a long label wraps to a second line, which produces
   no horizontal overflow and still looks broken. See references/design.md. */
.desktop-nav li { margin: 0; white-space: nowrap; }
.desktop-nav a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: .93rem; font-weight: 600;
}
.desktop-nav a:hover { color: var(--red); text-decoration: none; }

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 28px;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .96rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:hover {
  background: var(--red-deep); border-color: var(--red-deep);
  color: #fff; text-decoration: none; transform: translateY(-2px);
}
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .89rem; flex-shrink: 0; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-3); border-color: var(--paper-3); color: var(--ink); }

/* ── mobile nav ────────────────────────────────────────────────────────── */

.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav > summary {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; cursor: pointer; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-2);
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }
.mobile-nav[open] > summary { background: var(--red); border-color: var(--red); }
.mobile-nav[open] .bars { background: transparent; }
.mobile-nav[open] .bars::before { top: 0; transform: rotate(45deg); background: #fff; }
.mobile-nav[open] .bars::after  { top: 0; transform: rotate(-45deg); background: #fff; }

.mobile-panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: min(84vw, 320px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}
.mobile-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-panel li:last-child { border-bottom: 0; }
.mobile-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px;
  color: var(--ink); font-weight: 600; font-size: .96rem;
}
.mobile-panel a:hover { color: var(--red); text-decoration: none; }
.mobile-panel .btn { width: 100%; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink);
  padding: 92px 0 100px;
  color: rgba(255, 255, 255, .8);
}
.hero::before {
  /* Soft red glow, top-right. Replaces NextBit's tiled pattern-layer PNG —
     same effect in the hero, one fewer request. */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(58% 78% at 82% 8%, rgba(223, 3, 3, .3), transparent 70%);
}
.hero .hero-photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; opacity: .22;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 12%, rgba(11, 19, 57, .62) 100%);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead {
  font-size: 1.14rem; max-width: 62ch;
  color: rgba(255, 255, 255, .8); margin-bottom: 28px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero .badges {
  display: flex; gap: 12px 26px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255, 255, 255, .78);
}
.hero .badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero .badges svg { color: var(--red); flex-shrink: 0; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--red); }

/* ── kicker + section head ─────────────────────────────────────────────── */

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: var(--red); margin-bottom: 14px;
}
/* The template's signature: a short red bar beside every section label. */
.kicker::before {
  content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px;
  flex-shrink: 0;
}

.section-head { margin-bottom: 40px; max-width: 68ch; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--text-dim); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ── trust strip ───────────────────────────────────────────────────────── */

.trust { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.trust .container { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust .cell {
  padding: 30px 18px; text-align: center;
  border-left: 1px solid var(--line);
}
.trust .cell:first-child { border-left: 0; }
.trust .num {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.2;
}
.trust .lbl { display: block; font-size: .84rem; color: var(--text-dim); margin-top: 4px; }

/* ── cards ─────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: block; color: inherit;
}
a.card:hover { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-dim); font-size: .96rem; }

.icon-disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red-wash); color: var(--red);
  margin-bottom: 18px;
}
.card:hover .icon-disc { background: var(--red); color: #fff; }

/* ── the Chromecast fork ───────────────────────────────────────────────── */

.fork { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 30px 0 34px; }
.fork-col {
  background: var(--paper-2); border: 1px solid var(--line);
  border-top: 4px solid var(--red); border-radius: var(--r);
  padding: 24px 24px 22px;
}
.fork-label { display: block; font-weight: 800; color: var(--ink); font-size: 1.06rem; }
.fork-sub { color: var(--text-dim); font-size: .86rem; margin: 2px 0 12px; }
.fork-col p { font-size: .96rem; }
.fork-col p:last-of-type { margin-bottom: .7em; }
.fork-col a { font-weight: 700; font-size: .94rem; }
.fork-col a::after { content: " ›"; }

/* ── steps ─────────────────────────────────────────────────────────────── */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 30px; }
.steps li {
  position: relative; counter-increment: step;
  padding: 0 0 26px 66px; margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.02rem;
}
/* Connecting rail between the numerals, so the list reads as a sequence. */
.steps li::after {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3em; padding-top: 8px; }
.steps p { margin-bottom: 0; }

/* ── pricing ───────────────────────────────────────────────────────────── */

.pricing { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 22px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.04rem; color: var(--text-dim); font-weight: 700; margin-bottom: .3em; }
.plan .price {
  font-size: 2.5rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.035em; line-height: 1.1;
}
.plan .price span { font-size: 1.1rem; font-weight: 700; }
.plan .per { color: var(--text-dim); font-size: .87rem; margin: 2px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li {
  position: relative; padding-left: 24px; margin-bottom: .55em;
  font-size: .92rem; color: var(--text);
}
.plan li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan.popular { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--amber); color: var(--ink);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.tag-plain { background: var(--paper-3); color: var(--text-dim); }

/* The five-up ladder needs the full 1180px to breathe. Inside an article it has
   only the ~740px text column, which squeezes the feature lines to two words a
   line and wraps the button labels — so /priser/ gets a two-up ladder instead.
   Scoped above 900px only: below that the article is already single-column and
   full width, and the ordinary responsive rules take over. */
@media (min-width: 901px) {
  .col-main .pricing { grid-template-columns: repeat(2, 1fr); }
  .col-main .plan-trial { grid-column: 1 / -1; }
  .col-main .plan.popular { transform: none; }
}

/* ── chips ─────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink); font-size: .93rem; font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.chip:hover { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }

/* ── CTA band ──────────────────────────────────────────────────────────── */

.cta-band { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 62px 0; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 62ch; }
.cta-band .kicker { color: #fff; }
.cta-band .btn { flex-shrink: 0; }

/* ── article ───────────────────────────────────────────────────────────── */

.crumbs { padding-top: 26px; font-size: .87rem; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { margin: 0 7px; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.article { padding: 30px 0 80px; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 54px; align-items: start; }
.col-main { min-width: 0; }
.col-main h2 { margin-top: 1.9em; scroll-margin-top: 100px; }
.col-main h3 { margin-top: 1.7em; }
.col-main > p:first-of-type { font-size: 1.06rem; }

.meta { color: var(--text-dim); font-size: .87rem; margin-bottom: 24px; }
.meta span + span::before { content: "·"; margin: 0 9px; }

.col-main figure { margin: 0 0 30px; }
.col-main figure img { border-radius: var(--r); width: 100%; }

.tldr {
  background: var(--paper-2); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 26px; margin: 0 0 32px;
}
.tldr .kicker { margin-bottom: 8px; }
.tldr p:last-child { margin-bottom: 0; }

.inline-cta {
  background: var(--ink); color: rgba(255, 255, 255, .82);
  border-radius: var(--r); padding: 24px 26px; margin: 32px 0;
  font-size: .98rem;
}
.inline-cta a { color: #fff; text-decoration: underline; font-weight: 700; }
.inline-cta a:hover { color: #fff; }
.inline-cta p:last-child { margin-bottom: 0; }

.toc {
  position: sticky; top: 92px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px;
}
.toc h2 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-dim); margin: 0 0 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .1em; }
.toc a {
  display: block; padding: 7px 0; font-size: .91rem;
  color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line);
}
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--red); text-decoration: none; }
.toc .related { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.toc .related h2 { margin-bottom: 10px; }
.toc .related a { border-bottom: 0; padding: 6px 0; color: var(--red); font-weight: 600; }

/* ── tables ────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: .94rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--ink); color: #fff; font-weight: 700; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 1rem;
  min-height: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
  transition: transform var(--t);
}
.faq details[open] summary { background: var(--paper-2); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px 45px; color: var(--text); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── related block ─────────────────────────────────────────────────────── */

.related-block { background: var(--paper-2); }

/* ── blog list ─────────────────────────────────────────────────────────── */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); color: inherit;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .body { padding: 24px 22px; flex: 1; display: flex; flex-direction: column; }
/* Each post is a top-level item in the listing, so its title is an h2 — going
   straight from the page h1 to an h3 skips a level and fails `npm run audit-a11y`.
   It is sized like a card heading rather than like a section heading. */
.post-card h2 {
  font-size: 1.16rem; font-weight: 700; letter-spacing: -.008em;
  line-height: 1.35; margin-bottom: .35em;
}
.post-card p { color: var(--text-dim); font-size: .94rem; flex: 1; }
.post-card .date { color: var(--text-dim); font-size: .81rem; margin-bottom: 10px; }

/* ── 404 ───────────────────────────────────────────────────────────────── */

.notfound { padding: 92px 0 84px; background: var(--ink); color: rgba(255, 255, 255, .8); }
.notfound h1 { color: #fff; }
.notfound .code {
  font-size: 4.4rem; font-weight: 800; color: var(--red); line-height: 1;
  letter-spacing: -.04em; margin-bottom: 8px;
}
.notfound .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.notfound .chip:hover { background: var(--red); border-color: var(--red); }

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink-2); color: rgba(255, 255, 255, .68); padding: 66px 0 30px; font-size: .93rem; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 34px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand .mark { color: #fff; }
.site-footer h2 {
  color: #fff; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.foot-blurb { margin-bottom: 14px; max-width: 42ch; }
.foot-tm { font-size: .81rem; color: rgba(255, 255, 255, .46); max-width: 44ch; margin: 0; }
.legal {
  padding-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .46); line-height: 1.7;
}
.legal a { color: rgba(255, 255, 255, .6); text-decoration: underline; }

/* ==========================================================================
   Breakpoints — see references/design.md
   ========================================================================== */

@media (max-width: 1200px) {
  .desktop-nav ul { gap: 18px; }
  .desktop-nav a { font-size: .88rem; }
  .site-header .nav { gap: 18px; }
}

@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .plan-trial { grid-column: 1 / -1; }
  .plan.popular { transform: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .foot-brand { grid-column: 1 / -1; }
}

/* The nav breaks one step above the layout: seven labels plus the brand and the
   CTA need roughly 1000px on one line, while two-column content is still
   comfortable down to 900px. */
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .btn-sm { margin-left: auto; }
}

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(3, 1fr); }
  .trust .cell:nth-child(3n+1) { border-left: 0; }
  .trust .cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  .article .wrap { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 68px 0 74px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .fork { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  section { padding: 50px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .trust .cell { border-left: 0; border-top: 1px solid var(--line); }
  .trust .cell:nth-child(-n+2) { border-top: 0; }
  .trust .cell:nth-child(even) { border-left: 1px solid var(--line); }
  /* The menu panel carries the CTA below this width. */
  .site-header .btn-sm { display: none; }
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .topbar .hl { margin-left: 0; }
  .steps li { padding-left: 56px; }
  .steps li::before { width: 38px; height: 38px; font-size: .94rem; }
  .steps li::after { left: 18px; top: 44px; }
  .faq summary { padding: 16px 18px; }
  .faq details > div { padding: 0 18px 18px 18px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px 22px; }
}
