/* ============================================================
   ThreadScanner — Enterprise Product Design System (2026)
   Clean, crisp slate & white surfaces. Zero external font trackers.
   ============================================================ */

:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --ink: #0b1120;
  --ink-soft: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --ink-band: #0b1120;
  --ink-card: #111827;
  --ink-border: #1e293b;

  /* Semantic status tones (matching ThreadScanner Extension UI) */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-ink: #991b1b;

  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #92400e;

  --safe: #059669;
  --safe-bg: #ecfdf5;
  --safe-border: #a7f3d0;
  --safe-ink: #065f46;

  --maxw: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 45px -15px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap,
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow.on-dark { color: #93c5fd; }

/* ---------- Post-checkout top banner ---------- */
.checkout-banner {
  background: var(--safe-bg);
  border-bottom: 1px solid var(--safe-border);
  color: var(--safe-ink);
  font-size: 14.5px;
}
.checkout-banner.is-neutral {
  background: var(--bg-subtle);
  border-bottom-color: var(--line);
  color: var(--ink-soft);
}
.checkout-banner-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.checkout-banner strong { font-weight: 600; }
.checkout-banner code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.checkout-dismiss {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.8;
}
.checkout-dismiss:hover { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 550;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark {
  background: var(--ink);
  color: #ffffff;
}
.btn-dark:hover { background: #1e293b; }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--ink-soft); background: var(--bg); }
.btn-text {
  padding: 10px 4px;
  color: var(--ink-soft);
  font-weight: 550;
  border-radius: 0;
}
.btn-text:hover { color: var(--accent); }
.btn.is-loading { opacity: 0.7; cursor: wait; }

/* ---------- Sticky Navigation ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
header.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-r { display: flex; align-items: center; gap: 16px; }
.nav-portal-link { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav-portal-link:hover { color: var(--ink); }
.nav-tog {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-tog svg { width: 18px; height: 18px; }
.nav-tog .icon-close { display: none; }
header.nav.is-open .nav-tog .icon-open { display: none; }
header.nav.is-open .nav-tog .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 420px at 80% 10%, rgba(29, 78, 216, 0.06), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 52px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 4.6vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-actions .btn { padding: 12px 22px; font-size: 15px; }
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { width: 15px; height: 15px; color: var(--safe); }

/* Hero Product Preview Stack */
.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pw-dots { display: flex; gap: 6px; }
.pw-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pw-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.pw-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pw-mail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.pw-mail-subj { font-weight: 600; color: var(--ink); }
.pw-mail-from { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* Simulated inline verdict strip */
.pw-verdict {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.pw-verdict-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pw-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--danger-ink);
}
.pw-verdict-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.pw-verdict-mode {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--danger-ink);
  opacity: 0.85;
}
.pw-verdict-list {
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pw-verdict-list li { margin: 2px 0; }

/* Simulated click / compose guard row */
.pw-subguards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pw-mini {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--bg);
}
.pw-mini-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pw-mini-val {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.pw-mini-val code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--danger-ink);
  background: var(--danger-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Dark MCP Firewall Strip */
.pw-mcp {
  background: var(--ink-band);
  color: #f8fafc;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.pw-mcp-left { display: flex; flex-direction: column; gap: 3px; }
.pw-mcp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: 0.04em;
}
.pw-mcp-text { font-size: 13px; color: #e2e8f0; font-weight: 500; }
.pw-mcp-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  white-space: nowrap;
}

/* ---------- Generic Section Layout ---------- */
section { padding: 88px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head .h2 { margin-top: 12px; font-size: clamp(28px, 3.3vw, 40px); }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ---------- Products (2-Column Surface Cards) ---------- */
.surface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.surface-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.surface-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.surface-platforms {
  font-size: 12.5px;
  color: var(--muted);
}
.surface-card h3 { font-size: 23px; }
.surface-card > p { color: var(--ink-soft); font-size: 15.5px; }
.surface-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.surface-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.surface-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--safe-bg);
  border: 1.5px solid var(--safe);
}
.surface-list strong { color: var(--ink); font-weight: 600; }
.surface-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Capabilities (3x2 Bento Grid) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cap-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.cap-icon svg { width: 18px; height: 18px; }
.cap-card h3 { font-size: 17px; margin-top: 4px; }
.cap-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Security & Privacy Architecture (4-Up Grid) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.trust-card h3 { font-size: 17.5px; }
.trust-card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.trust-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Pricing ---------- */
.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pricing-head .sec-head { margin-bottom: 0; }
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg);
}
.pricing-toggle button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.save-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--safe-bg);
  color: var(--safe-ink);
  font-weight: 600;
}
.pricing-toggle button[aria-pressed="true"] .save-pill {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.price-card.featured {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; }
.price-desc { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }
.price-amount {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.price-per { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-annual { margin: 0 0 10px; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.price-features {
  margin: 4px 0 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.seat-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.seat-picker label { font-weight: 550; }
.seat-picker input {
  width: 72px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  text-align: right;
  color: var(--ink);
  background: var(--bg);
}
.price-card .btn { width: 100%; }

/* Enterprise horizontal bar below 3 pricing cards */
.enterprise-strip {
  margin-top: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.enterprise-strip h3 { font-size: 18px; }
.enterprise-strip p { margin-top: 4px; font-size: 14.5px; color: var(--muted); max-width: 640px; }
.enterprise-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.checkout-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--ink);
  font-size: 14px;
}
.checkout-status.is-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}
.pricing-footnote {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.pricing-footnote a { color: var(--accent); font-weight: 500; }
.pricing-footnote a:hover { text-decoration: underline; }

/* ---------- Quickstart Strip (#get-started) ---------- */
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qs-step {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qs-card h3 { font-size: 19px; }
.qs-card p { font-size: 14.5px; color: var(--muted); }
.code-box {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ink-band);
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- Enterprise Contact Band (#waitlist / #contact) ---------- */
.request {
  background: var(--ink-band);
  color: #f8fafc;
}
.request-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}
.request-intro h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: #ffffff;
  margin-top: 14px;
}
.request-intro p {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 16.5px;
  max-width: 440px;
}
.request-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: #cbd5e1;
}
.request-points li { padding-left: 20px; position: relative; }
.request-points li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #60a5fa;
}
.request-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.form-success,
.form-error {
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.form-success { background: var(--safe-bg); border: 1px solid var(--safe-border); color: var(--safe-ink); }
.form-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-ink); }
.form-error a { color: var(--danger-ink); text-decoration: underline; }
.form-field { margin-bottom: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 550; color: var(--ink-soft); margin-bottom: 6px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-textarea { resize: vertical; min-height: 82px; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.form-submit { width: 100%; margin-top: 4px; padding: 12px 18px; font-size: 15px; }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-privacy { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.ft-grid .blurb { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 300px; line-height: 1.55; }
.ft-grid h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 12px;
}
.ft-grid a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-soft); }
.ft-grid a:hover { color: var(--accent); }
.ft-bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.ft-bot a { color: var(--muted); }
.ft-bot a:hover { color: var(--accent); }

/* ---------- Legal & Support Pages ---------- */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 36px; }
.legal .section-mark { display: none; }
.legal h1,
.legal .section-title {
  font-size: clamp(30px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 28px;
}
.legal p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 16px; line-height: 1.65; }
.legal h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 36px 0 10px;
  color: var(--ink);
}
.legal ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); font-size: 15.5px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.legal-note,
.portal-card {
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.portal-card h2 { margin-top: 0; font-size: 18.5px; }
.portal-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.portal-row .form-input { flex: 1; min-width: 240px; font-family: var(--font-mono); font-size: 13px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 550;
  font-size: 14.5px;
  color: var(--ink);
}
.legal-back svg { width: 14px; height: 14px; }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
    box-shadow: var(--shadow-md);
  }
  header.nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-portal-link { display: none; }
  .nav-tog { display: inline-flex; }

  .hero-grid,
  .surface-grid,
  .trust-grid,
  .quickstart-grid,
  .request-grid { grid-template-columns: 1fr; gap: 32px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .wrap, .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 52px; }
  .cap-grid,
  .pw-subguards,
  .form-row { grid-template-columns: 1fr; }
  .surface-card,
  .request-card { padding: 22px; }
  .nav-r .btn-primary { display: none; }
  .checkout-banner-in { flex-direction: column; align-items: flex-start; }
}
