/* Flamenet Messenger — site theme.
 *
 * Modern software-product styling: a dark hero, gradient accents, eyebrow
 * labels, elevated cards. Everything is self-hosted because the relay serves
 * this page under `default-src 'self'` — a CDN font or an analytics tag would
 * simply not load, which is the intended failure mode rather than an
 * inconvenience. Hence the system font stack: it is the only way to get a
 * modern typeface without asking a third party for it.
 */

:root {
  /* Light by commitment, not by default. The page does not follow the
     system scheme: a single deliberate look beats two half-tuned ones, and
     the gradient work below is designed against white. */
  --bg: #ffffff;
  --bg-2: #f7f8fc;
  --bg-3: #f1f3f9;
  --panel: #ffffff;
  --ink: #212529;
  --ink-2: #5b6472;
  --ink-3: #838b99;
  --border: #eaedf5;
  --border-2: #dde2ee;

  /* Measured from the reference design rather than guessed: violet primary
     with an amber secondary, on white. */
  --brand: #5842bc;
  --brand-2: #7b63e8;
  --brand-ink: #ffffff;
  --accent: #fdb900;

  --grad: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-soft: linear-gradient(115deg, rgba(88,66,188,.10), rgba(123,99,232,.08));

  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(13,18,32,.04), 0 12px 32px rgba(13,18,32,.07);
  --shadow-lg: 0 2px 4px rgba(13,18,32,.05), 0 28px 60px rgba(13,18,32,.13);
}

html { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 74px; }

.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; letter-spacing: -.02em; font-size: 17px;
  text-decoration: none; flex: none;
}
.mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(88,66,188,.34);
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 34px; flex: 1; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
/* `.nav-links a` outranks `.btn-nav` on specificity, so without this the CTA
   inherits the muted link colour and renders grey on a saturated fill. */
.nav-links a.btn-nav, .nav-links a.btn-nav:hover { color: var(--brand-ink); }
/* `flex: none` matters: in the nav's flex row the button would otherwise
   shrink to its padding and render three zero-width bars. */
.nav-toggle { display: none; flex: none; }

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

.btn {
  display: inline-block; text-decoration: none; font-weight: 650; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-primary {
  background: var(--grad); color: var(--brand-ink);
  box-shadow: 0 8px 22px rgba(88,66,188,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(88,66,188,.42); }
.btn-ghost { border-color: var(--border-2); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .nav-cta-placeholder{}
.nav-cta { flex: none; }
.btn-nav {
  background: var(--grad); color: var(--brand-ink);
  padding: 10px 22px; font-size: 15px;
  box-shadow: 0 6px 16px rgba(88,66,188,.3);
}
.btn-nav:hover { transform: translateY(-1px); }

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

.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 96px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Two blurred gradient fields. Pure CSS so nothing is fetched. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero::before {
  /* The signature shape of this layout: one big soft curve occupying the
     right half, with the product art sitting on top of it. */
  width: 47%; height: 132%; top: -16%; right: 0;
  border-radius: 44% 0 0 44% / 50% 0 0 50%;
  background: var(--grad);
  opacity: 1; filter: none;
}
.hero::after {
  width: 340px; height: 340px; top: 4%; right: 10%;
  background: radial-gradient(circle, rgba(255,255,255,.30), transparent 70%);
  filter: blur(34px);
}
.hero-copy { max-width: 34em; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1.14; letter-spacing: -.02em; font-weight: 750;
}
.lede { margin: 0 0 32px; font-size: 19.5px; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }

.hero-art { display: flex; justify-content: center; }
.phone {
  width: 296px; height: 590px; border-radius: 44px; padding: 13px;
  background: linear-gradient(165deg, #2b3346, #0e131f);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone-screen {
  height: 100%; border-radius: 33px; background: var(--bg-3);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end;
}
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); }
.bubble.out { align-self: flex-end; background: var(--grad); color: var(--brand-ink); }

/* ---------- sections ---------- */

.band { padding: 96px 0; }
.band-alt { background: var(--bg-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 18px;
  border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--grad-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* One word of a heading carried in the accent — the two-tone treatment this
   layout uses to stop a large heading reading as a wall. */
.hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.band-center { text-align: center; }
.band-center .band-lede { margin-left: auto; margin-right: auto; }
.band-center .fineprint { margin-left: auto; margin-right: auto; }

.band h2 {
  margin: 0 0 18px; font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.02em; line-height: 1.2; font-weight: 750;
}
.band-lede { margin: 0 0 52px; color: var(--ink-2); font-size: 18.5px; max-width: 47em; }

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

/* Fixed four columns rather than auto-fit: with eight features, auto-fit
   resolves to five-and-three at wide viewports and leaves a ragged row. */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px 30px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: transparent; border: 0;
  border-radius: var(--radius-lg); padding: 22px 14px;
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-5px); }

/* The developer trio keeps its panels; only the feature row goes card-less. */
.cards-3 .card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 32px 28px; text-align: left;
}
.cards-3 .card:hover { box-shadow: var(--shadow-lg); }
.cards-3 .card-icon { margin-left: 0; }
.card h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -.015em; font-weight: 700; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88,66,188,.28);
}
.card-icon svg { width: 27px; height: 27px; display: block; }

/* Each tile takes its own hue, as the demo does — the set reads as a family
   rather than five copies of one badge. */
.card:nth-child(5n+2) .card-icon { background: linear-gradient(115deg,#fdb900,#ffd257); box-shadow: 0 10px 24px rgba(253,185,0,.30); }
.card:nth-child(5n+3) .card-icon { background: linear-gradient(115deg,#2e99f5,#69bcff); box-shadow: 0 10px 24px rgba(46,153,245,.28); }
.card:nth-child(5n+4) .card-icon { background: linear-gradient(115deg,#198754,#31c37e); box-shadow: 0 10px 24px rgba(25,135,84,.26); }
.card:nth-child(5n+5) .card-icon { background: linear-gradient(115deg,#e0457b,#f57fa8); box-shadow: 0 10px 24px rgba(224,69,123,.26); }

.cards .card { text-align: center; }
.cards .card p { margin-left: auto; margin-right: auto; max-width: 34em; }
.cards .card-link { margin-top: 16px; }
.card-link {
  display: inline-block; margin-top: 15px; font-size: 14.5px;
  font-weight: 650; color: var(--brand); text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- social-proof band ---------- */

.proof-band { padding: 44px 0 40px; background: var(--bg); border-bottom: 1px solid var(--border); }
.proof-lead {
  margin: 0 0 22px; text-align: center;
  color: var(--ink-3); font-size: 15px; font-weight: 600;
}
.proof-lead strong { color: var(--ink); font-weight: 700; }
.proof {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 18px 54px;
}
.proof span { color: var(--ink-3); font-size: 15px; font-weight: 600; white-space: nowrap; }
.proof strong { color: var(--ink); font-weight: 750; }

/* ---------- steps ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.step {
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: var(--brand-ink);
  font-weight: 750; font-size: 16px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(88,66,188,.3);
}
.step h3 { margin: 0 0 9px; font-size: 18.5px; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.step .card-icon { display: none; }

/* ---------- self-hosting split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.code {
  margin: 0; padding: 26px; overflow-x: auto;
  background: #0c111c; color: #e7ebf5;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: 14px; line-height: 1.75;
  box-shadow: var(--shadow-lg);
}
.code code { white-space: pre; }

.fineprint {
  margin: 34px 0 0; font-size: 14.5px; color: var(--ink-3);
  max-width: 54em; padding-top: 22px; border-top: 1px solid var(--border);
}
.fineprint code { font-family: var(--mono); font-size: 13.5px; }
.fineprint-flush { border-top: 0; padding-top: 0; margin-top: 20px; }

/* ---------- platforms ---------- */

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform {
  display: flex; flex-direction: column; gap: 5px;
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.platform:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.platform-name { font-weight: 700; font-size: 16.5px; }
.platform-state { font-size: 14px; color: var(--ink-3); }
.platform-soon { opacity: .6; }

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

.faq details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px;
  transition: border-color .18s ease;
}
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-weight: 660; font-size: 17.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--brand); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 60em; }

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

.footer { padding: 76px 0 52px; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  margin: 0 0 5px; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-3); font-weight: 700;
}
.footer-col a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer-col a:hover { color: var(--brand); }
.footer-legal {
  margin: 0; padding-top: 30px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--ink-3); max-width: 62em;
}

/* ---------- document pages ---------- */

.doc { padding-top: 72px; }
.doc h1 { margin: 0 0 20px; font-size: clamp(36px, 4.8vw, 50px); letter-spacing: -.032em; line-height: 1.08; font-weight: 800; }
.doc h2 { margin: 48px 0 14px; font-size: 23px; letter-spacing: -.02em; font-weight: 700; }
.doc p { margin: 0 0 17px; color: var(--ink-2); }
.doc .lede { font-size: 19.5px; margin-bottom: 10px; }
.doc .meta { font-size: 14.5px; color: var(--ink-3); margin-bottom: 10px; }
.doc ul, .doc ol { margin: 0 0 17px; padding-left: 22px; color: var(--ink-2); }
.doc li { margin-bottom: 9px; }
.doc a { color: var(--brand); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); font-weight: 680; white-space: nowrap; }
.doc td { color: var(--ink-2); }
.code-light { font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* ---------- generated documentation ---------- */

.doc-generated h3 { margin: 30px 0 11px; font-size: 18.5px; font-weight: 680; letter-spacing: -.015em; }
.doc-generated h4 { margin: 24px 0 9px; font-size: 16.5px; font-weight: 680; }
.doc-generated hr { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }
.doc-generated code {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.5px 6px;
  font-family: var(--mono); font-size: .87em; color: var(--ink);
}
.doc-generated pre {
  background: #0c111c; color: #e7ebf5; border-radius: var(--radius);
  padding: 22px; overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border-2);
}
.doc-generated pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; line-height: 1.7; white-space: pre; }
.doc-generated table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; display: block; overflow-x: auto; }
.doc-generated th, .doc-generated td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; vertical-align: top; }
.doc-generated th { background: var(--bg-2); font-weight: 680; white-space: nowrap; }
.doc-generated td { color: var(--ink-2); }
.doc-generated blockquote {
  margin: 0 0 20px; padding: 14px 20px;
  border-left: 3px solid var(--brand); background: var(--bg-2);
  border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.doc-generated ol, .doc-generated ul { margin: 0 0 17px; padding-left: 22px; color: var(--ink-2); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { padding: 68px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  /* Stacked, as the demo stacks it: copy first on plain ground, then the
     artwork sitting on the gradient panel. */
  .hero { padding-bottom: 0; }
  /* The gradient panel is attached to the artwork rather than sized as a
     percentage of the hero: the hero's height depends on how far the copy
     wraps, and a percentage panel climbs up over the last lines of it. */
  .hero-art {
    display: flex; margin: 0 -24px -1px; padding: 44px 0 0;
    background: var(--grad);
    border-radius: 34% 34% 0 0 / 12% 12% 0 0;
  }
  .hero::before { display: none; }
  .hero::after { display: none; }
  .phone { transform: none; width: 268px; height: 520px; }
  .cards, .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .cards, .cards-3, .steps, .platforms, .footer-cols { grid-template-columns: 1fr; }

  /* Brand, menu button and CTA have to share 375px. Left at desktop sizes the
     row overflows and the CTA is clipped by the viewport edge. */
  .nav-inner { gap: 8px; }
  .brand { font-size: 15.5px; gap: 9px; }
  .brand .mark { width: 26px; height: 26px; border-radius: 8px; }
  .btn-nav { padding: 9px 18px; font-size: 14.5px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 42px; padding: 0 6px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 16px; }
  .btn-nav { margin-top: 10px; }
}

/* ---------- announcement bar ---------- */

.topbar {
  background: var(--ink); color: #fff;
  font-size: 13px; line-height: 1;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap;
}
.topbar span { opacity: .8; }
.topbar-tag {
  background: var(--accent); color: #241a00;
  font-weight: 800; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; opacity: 1;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

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

.hero-chips { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2);
}
.chip-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-3); color: var(--brand); flex: none;
}
.chip-ic svg { width: 15px; height: 15px; }

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

.commun { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.commun-card {
  display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.commun-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.commun-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px rgba(88,66,188,.28);
}
.commun-ic svg { width: 23px; height: 23px; }
.commun-inf { display: flex; flex-direction: column; gap: 3px; }
.commun-inf strong { font-size: 17px; font-weight: 700; color: var(--ink); }
.commun-inf small { font-size: 14px; color: var(--ink-3); }

/* ---------- footer call to action ---------- */

.footer-cta { text-align: center; padding-bottom: 56px; }
.footer-cta h2 {
  margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.02em; line-height: 1.2; font-weight: 750;
}
.footer-cta p { margin: 0 auto 30px; color: var(--ink-2); max-width: 46em; }
.footer-cta-row { justify-content: center; }

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

/* ---------- donate ---------- */

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-outline {
  background: transparent; border-color: var(--brand); color: var(--brand);
  padding: 10px 22px; font-size: 15px;
}
.btn-outline:hover { background: var(--grad-soft); transform: translateY(-1px); }
/* `.nav-links a` does not reach these — they live outside that container — but
   be explicit so a later markup change cannot silently mute them. */
.nav-cta a.btn-outline { color: var(--brand); }
.nav-cta a.btn-nav { color: var(--brand-ink); }

.donate-pending {
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px dashed var(--border-2);
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .nav-donate { display: none; }
}

/* ---------- donation form ---------- */

.donate-form {
  margin: 0 0 24px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel);
}
.donate-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.donate-form legend {
  padding: 0; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
}
.donate-freq { display: flex; gap: 10px; }
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; }

.donate-form label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--bg);
  font-weight: 650; font-size: 15.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.donate-form label:hover { border-color: var(--brand); }
/* The radio itself is kept in the accessibility tree and focusable — hiding it
   with display:none would take it out of both. */
.donate-form input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.donate-form label:has(input[type="radio"]:checked) {
  border-color: var(--brand); background: var(--grad-soft); color: var(--brand);
}
.donate-form label:has(input[type="radio"]:focus-visible) {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.donate-custom input[type="number"] {
  width: 90px; padding: 6px 10px; font: inherit; font-size: 15px;
  border: 1px solid var(--border-2); border-radius: 8px;
  background: var(--bg); color: var(--ink);
}
.donate-form .btn { border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 640px) {
  .donate-freq, .donate-amounts { flex-direction: column; align-items: stretch; }
  .donate-form label { justify-content: center; }
}

/* ---------- straight-talk band ---------- */

/* A centred heading over a left-aligned body: the caveats read as prose you
   are meant to actually read, not as three more marketing tiles. */
.band-head { text-align: center; }
.band-head .band-lede { margin-left: auto; margin-right: auto; }

.honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.honest-card {
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
.honest-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.015em; font-weight: 700; }
.honest-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- developer note ---------- */

/* Deliberately no strip of protocol acronyms here. The names live in the
   specification, where someone looking for them has context; on the landing
   page they read as a wall to everybody else. */
.stack-note {
  max-width: 44em; margin: 40px auto 0; padding: 22px 26px;
  border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--ink-2); font-size: 15.5px;
}

/* The FAQ band is centred at the head and left-aligned in the body; without
   this the flex summary would centre its text and the answers would too. */
.faq .band-center { margin-bottom: 44px; }
.faq details, .faq details p { text-align: left; }

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

/* ---------- comparison table ---------- */

/* The page names three other products, so the table has to be readable enough
   that someone can actually check it rather than skim the ticks. */
.compare-scroll { overflow-x: auto; margin: 0 0 30px; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%; min-width: 780px;
  border-collapse: separate; border-spacing: 0;
  font-size: 15px; display: table;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--border);
  padding: 16px 18px; text-align: left; vertical-align: top;
}
.compare thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg); border-bottom: 2px solid var(--border-2);
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.compare tbody th {
  font-weight: 620; color: var(--ink); width: 24%;
  background: var(--bg);
}
.compare td { color: var(--ink-2); width: 19%; }

/* Our own column, marked rather than disguised — a comparison written by one
   of the parties should say which one it is. */
.compare .mine { background: var(--grad-soft); }
.compare thead th.mine {
  background: var(--grad); color: var(--brand-ink);
  border-radius: 10px 10px 0 0;
}

/* The verdict sits on its own line above its note, and the break is a <br> in
   the markup rather than `display: block` here. Styling the separation looks
   right on screen and copies as "YesAn opt-in plain mode also exists" — the
   text has to carry the break itself. */
.compare td strong { font-weight: 680; color: var(--ink); }
.compare td small {
  display: inline-block; margin-top: 5px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-3); font-weight: 400;
}
.compare .yes  { color: #198754; }
.compare .no   { color: #b4453f; }
.compare .part { color: #b07d00; }

.callout {
  margin: 0 0 34px; padding: 22px 26px;
  border-radius: var(--radius); background: var(--bg-2);
  border-left: 3px solid var(--accent);
}
.callout p { margin: 0; }

/* ---------- footer hosting credit ---------- */

/* The hosting credit runs on from the legal note as one more sentence. The
   only outbound link on the site besides the repository. */
.footer-legal .host-link { color: var(--brand); text-decoration: none; font-weight: 650; }
.footer-legal .host-link:hover { text-decoration: underline; }
.footer-legal .heart { color: #e0457b; }

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

@media (max-width: 640px) {
  .compare-scroll { margin-inline: -24px; padding-inline: 24px; }
}

/* The comparison page runs to the full wrap width because of the table, so its
   opening paragraph should too — `.lede` caps at 30em, which leaves it sitting
   in the left half of a page that is twice that wide. */
.lede-wide { max-width: none; }
