/* ──────────────────────────────────────────────────────────────
 * Thredlink marketing site — single canonical stylesheet
 *
 * Mirrors the visual system from app's login.css so the marketing
 * site and the app share one design language. Brand panel gradient,
 * accent color, type scale, card radius, button system — all match.
 *
 * Standards: no inline styles, no inline event handlers, no !important.
 * ────────────────────────────────────────────────────────────── */

/* ── Tokens (mirrored from login.css) ─────────────────────── */
:root {
  --accent: #0096ff;
  --accent-hover: #0077cc;
  --accent-soft: rgba(0,150,255,.10);
  --accent-deep: #001b30;
  --accent-grad-mid: #003a63;
  --accent-grad-end: #0066b0;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-rail: #f8f9fb;

  --text: #111418;
  --text-muted: #6b7280;
  --text-on-dark: #d7dbe0;
  --text-on-dark-muted: rgba(255,255,255,.65);

  --border: #e5e7eb;
  --border-soft: #eef0f2;

  --ch-web: #0096ff;
  --ch-email: #a855f7;
  --ch-sms: #22c55e;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 12px; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 48px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 14px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ── Top nav (shared via includes/nav.php) ────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0,150,255,.3), 0 4px 14px rgba(0,150,255,.30);
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.nav-links li { display: inline-flex; }
.nav-links a {
  color: var(--text); padding: 8px 12px; border-radius: 6px;
  font-weight: 500; font-size: 14.5px;
}
.nav-links a:hover { background: var(--bg-rail); color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-link-login { color: var(--text-muted) !important; }
.nav-link-login:hover { color: var(--text) !important; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0,150,255,.4);
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px auto;
  transition: transform .15s, opacity .15s;
}
.nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; user-select: none;
  text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, transform .04s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(0,150,255,.4);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-rail); color: var(--text); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ── Hero (dark gradient mirror of login brand-panel) ─────── */
.hero {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-grad-mid) 60%, var(--accent-grad-end) 100%);
  color: #fff;
  position: relative; overflow: hidden;
  padding: 80px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 700px at 80% 20%, rgba(0,150,255,.30), transparent 70%),
    radial-gradient(500px 500px at 5% 95%, rgba(0,150,255,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.85);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin: 0 0 18px; font-size: 52px; }
.hero-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
  font-size: 13.5px; color: rgba(255,255,255,.65);
  margin: 0;
}
.hero-visual {
  position: relative;
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px; padding: 18px;
}

/* Thread-card demo blocks (inside hero) */
.thread-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.thread-card.indent { margin-left: 22px; }
.thread-card .meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.thread-card .meta strong { color: #fff; font-weight: 600; }
.thread-card .ch {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.85);
  text-transform: uppercase;
}
.thread-card .ch.web   { background: rgba(0,150,255,.25); color: #9fd6ff; }
.thread-card .ch.email { background: rgba(168,85,247,.22); color: #d4b9ff; }
.thread-card .ch.sms   { background: rgba(34,197,94,.22); color: #b2efc7; }
.thread-card .body { font-size: 14.5px; color: #fff; line-height: 1.5; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-grad-mid) 60%, var(--accent-grad-end) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.section--dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 600px at 70% 30%, rgba(0,150,255,.22), transparent 70%);
  pointer-events: none;
}
.section--dark .container { position: relative; z-index: 1; }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p   { color: rgba(255,255,255,.78); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.78); }

/* ── Feature grid ────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.feature-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ── Use-case tiles (vertical-as-card, mirrors app's np-tpl-card) ── */
.use-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.use-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.use-tile-vertical {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.use-tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.use-tile p { margin: 0 0 14px; color: var(--text-muted); font-size: 14.5px; }
.use-tile-list { list-style: none; padding: 0; margin: 0; }
.use-tile-list li {
  font-size: 13.5px; color: var(--text);
  padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.use-tile-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Page header (eyebrow + h1 + lead paragraph) ───────────── */
.page-header { padding: 56px 0 32px; }
.page-header-inner { max-width: 760px; }
.page-header h1 { margin: 6px 0 14px; }
.page-header p { color: var(--text-muted); font-size: 16px; line-height: 1.55; max-width: 640px; }
.page-header-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 640px;
}
.page-header-callout strong { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
}

/* ── Pricing section heads ─────────────────────────────────── */
.plan-sec { margin-bottom: 48px; }
.plan-sec:last-child { margin-bottom: 0; }
.plan-sec-head { margin: 0 0 24px; }
.plan-sec-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.plan-sec-sub   { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ── Pricing card grid ─────────────────────────────────────── */
/* Splits container width evenly across N cards. 1 = full, 2 = 50/50,
   3 = 33/33/33. Cap at 3 by design (PHP picks the count class) —
   extra cards wrap to a 2nd row, never 4-wide. */
.plans { display: grid; gap: 18px; align-items: stretch; }
.plans--count-1 { grid-template-columns: 1fr; }
.plans--count-2 { grid-template-columns: repeat(2, 1fr); }
.plans--count-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Card shell ────────────────────────────────────────────── */
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05);
  position: relative;
}
.plan-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 24px rgba(0,150,255,.15);
}
.plan-recommended::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 3px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-featured { outline: 2px solid var(--accent); outline-offset: -1px; }
.plan-flag {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}

.plan-name { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.plan-desc { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; min-height: 38px; }

/* ── Stacked prices (monthly primary + annual secondary, etc.) ─ */
.plan-prices { margin: 0 0 18px; }
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-price + .plan-price { margin-top: 10px; }

.plan-price-main { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.plan-price .per { color: var(--text-muted); font-size: 14px; }

.plan-price--secondary { display: flex; flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price--secondary .amt { font-size: 18px; font-weight: 600; }
.plan-price--secondary .per { font-size: 13px; }

.plan-price--lifetime .per { font-size: 13px; font-weight: 500; }

/* Compare-at "Reg. $X · Y% off" eyebrow above the price */
.plan-price-eyebrow {
  font-size: 12.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.plan-price-eyebrow s { color: var(--text-muted); }
.plan-price-eyebrow-inline {
  font-size: 12px; color: var(--text-muted);
}
.plan-price-eyebrow-inline s { color: var(--text-muted); }
.plan-price-save-inline {
  background: rgba(34,197,94,.14); color: #15803d;
  padding: 1px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}

/* Installment line under lifetime price */
.plan-price-installment {
  margin-top: 6px;
  font-size: 13.5px; color: var(--text);
  background: var(--bg-rail); border-radius: 6px;
  padding: 8px 12px;
}
.plan-price-installment strong { color: var(--text); font-weight: 700; }

/* Slot pill — slabdraw style: uppercase, small, accent-bordered */
.plan-price-slot-row { margin-top: 10px; }
.plan-price-slots {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 9px; border-radius: 4px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.plan-price-slots--sold {
  border-color: #b91c1c; color: #b91c1c;
}

/* ── Features list ─────────────────────────────────────────── */
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-features li {
  font-size: 14px;
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.plan-features li::before {
  content: "✓"; color: var(--accent); flex-shrink: 0; font-weight: 700;
}

/* ── CTA microcopy under the button ────────────────────────── */
.plan-cta-sub {
  margin: 8px 0 0;
  font-size: 12px; line-height: 1.45;
  color: var(--text-muted); text-align: center;
}

/* ── Lifetime deal accent + sold-out state ─────────────────── */
.plan--lifetime { border-color: rgba(22,163,74,.30); }
.plan--soldout { opacity: .65; }
.plan-cta-disabled {
  cursor: not-allowed; opacity: .55; pointer-events: none;
}

/* ── API failure fallback ──────────────────────────────────── */
.plan-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b;
  padding: 18px 22px; border-radius: 10px;
  font-size: 14px; line-height: 1.5;
}
.plan-error a { color: #991b1b; font-weight: 600; }

@media (max-width: 720px) {
  /* Force single-column on narrow viewports regardless of plan count. */
  .plans--count-1, .plans--count-2, .plans--count-3 { grid-template-columns: 1fr; }
  .page-header { padding: 40px 0 24px; }
}
.plan .btn { width: 100%; }

/* ── Promo code field on pricing page ─────────────────── */
.pricing-promo {
  max-width: 520px; margin: 32px auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px;
}
.pricing-promo label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.pricing-promo-row {
  display: flex; gap: 8px; align-items: stretch;
}
.pricing-promo-row input {
  flex: 1; height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .04em;
}
.pricing-promo-row input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pricing-promo-hint {
  margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted);
}
.pricing-foot {
  text-align: center; margin-top: 28px;
  color: var(--text-muted); font-size: 14px;
}

/* ── Generic text/spacing utilities (used to retire inline styles) ─ */
.text-center { text-align: center; }
.text-lead { color: var(--text-muted); font-size: 17px; }
.section-title-center { text-align: center; }
.faq-list--top-gap { margin-top: 24px; }
.text-mt-24 { margin-top: 24px; }
.text-mt-32 { margin-top: 32px; }
.text-mt-48 { margin-top: 48px; }

/* ── Auth-card layout (waitlist + contact + 404) ─────────── */
.auth-page {
  display: grid; place-items: center;
  min-height: calc(100vh - 64px - 200px);
  padding: 48px 20px;
  background: var(--bg-soft);
}
.auth-card {
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  padding: 36px 32px;
}
.auth-card h1 { font-size: 26px; margin: 0 0 6px; font-weight: 700; }
.auth-card .sub { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }

/* ── Forms ────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  color: #374151; margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; color: var(--text); background: #fff;
  font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Honeypot — keep it in flow but visually & assistively hidden */
.field-hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.alert {
  padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.5;
  margin: 0 0 14px;
}
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Changelog + Roadmap ──────────────────────────────────── */
.cl-list { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.cl-entry {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px;
}
.cl-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 8px;
}
.cl-kind {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 1px 8px; border-radius: 999px;
}
.cl-kind--feature  { background: var(--accent-soft); color: var(--accent-hover); }
.cl-kind--fix      { background: #fef3c7; color: #92400e; }
.cl-kind--security { background: #fee2e2; color: #991b1b; }
.cl-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  background: var(--bg-rail); padding: 1px 7px; border-radius: 4px;
  font-size: 11.5px;
}
.cl-entry h3 { margin: 0 0 6px; font-size: 17px; }
.cl-body { color: var(--text); font-size: 14.5px; line-height: 1.55; }

.rm-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rm-col h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin: 0 0 14px;
}
.rm-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
}
.rm-card h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; }
.rm-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.rm-card-foot { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 400; font-size: 22px;
  color: var(--accent); flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  margin-top: 10px; color: var(--text-muted);
  font-size: 14.5px; line-height: 1.6;
}

/* ── Legal pages (privacy, terms) ─────────────────────────── */
.legal { padding: 60px 0 80px; }
.legal h1 { margin: 0 0 8px; font-size: 36px; }
.legal .legal-meta { color: var(--text-muted); font-size: 13.5px; margin-bottom: 32px; }
.legal h2 { margin: 36px 0 12px; font-size: 22px; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; }
.legal p, .legal li { color: var(--text); font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 22px; }

/* ── CTA strip ────────────────────────────────────────────── */
.cta-strip {
  text-align: center; padding: 70px 0;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-grad-mid) 60%, var(--accent-grad-end) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 600px at 50% 20%, rgba(0,150,255,.30), transparent 70%);
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; font-size: 36px; margin: 0 0 12px; }
.cta-strip p { color: rgba(255,255,255,.82); font-size: 17px; margin: 0 0 24px; }
.cta-strip .btn { font-size: 16px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #0a0e14; color: var(--text-on-dark);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand .nav-logo:hover { color: #fff; }
.footer-tagline { color: var(--text-on-dark-muted); font-size: 13.5px; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a {
  color: var(--text-on-dark-muted); font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-on-dark-muted); font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 56px 0; }
  .feature-grid, .use-grid, .plans, .rm-status-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 8px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
