/* ==========================================================================
   Scroogle Mail - site.css
   Shared design system for all pages on scrooglemail.com
   Palette: ink navy / paper white / emerald accent
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #111c33;
  --ink-3: #1a2742;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #e3e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #1c2536;
  --text-soft: #55607a;
  --text-faint: #8a93a9;
  --text-inverse: #eef2f9;
  --text-inverse-soft: #aab6cf;
  --accent: #0e9f6e;
  --accent-strong: #0b8a5f;
  --accent-soft: #e2f6ee;
  --accent-ink: #0a6b4b;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --warn: #b7791f;
  --warn-soft: #fdf3e0;
  --info-soft: #e8f0fe;
  --info-ink: #2a4a8b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 560px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.on-dark {
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--line-dark);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { white-space: nowrap; }
.brand:hover { text-decoration: none; }
.on-dark .brand { color: var(--text-inverse); }
.brand .logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.main-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--ink); background: rgba(11, 18, 32, 0.05); text-decoration: none; }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.on-dark .main-nav a { color: var(--text-inverse-soft); }
.on-dark .main-nav a:hover, .on-dark .main-nav a.active { color: var(--text-inverse); background: rgba(255, 255, 255, 0.07); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 38px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}
.on-dark .nav-burger { color: var(--text-inverse); border-color: var(--line-dark); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 24px 18px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 11px 4px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.on-dark .mobile-nav { border-top-color: var(--line-dark); }
.on-dark .mobile-nav a { color: var(--text-inverse); border-bottom-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d2e0; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost, .btn-ghost.inverse { color: var(--text-inverse); border-color: rgba(255, 255, 255, 0.35); }
.on-dark .btn-ghost:hover, .btn-ghost.inverse:hover { border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.btn-lg { padding: 14px 28px; font-size: 1.03rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Hero + sections
   -------------------------------------------------------------------------- */

.hero-dark {
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(14, 159, 110, 0.22), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(42, 74, 139, 0.35), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-inverse);
  padding: 88px 0 96px;
}
.hero-dark h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 17ch; }
.hero-dark .lead { color: var(--text-inverse-soft); }

.hero-sub {
  padding: 64px 0 24px;
}
.hero-sub h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.on-dark-section .eyebrow, .hero-dark .eyebrow { color: #4fd6a4; }

.lead {
  font-size: 1.13rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin-top: 18px;
}

.section { padding: 84px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--text-inverse); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-inverse-soft); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.section-head .lead { margin-top: 12px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Grids, cards, features
   -------------------------------------------------------------------------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card.lifted { box-shadow: var(--shadow); border-color: transparent; }

.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.section-dark .feature-icon { background: rgba(14, 159, 110, 0.18); color: #4fd6a4; }
.feature-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.section-dark .card p { color: var(--text-inverse-soft); }

.checklist { list-style: none; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6b4b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section-dark .checklist li { color: var(--text-inverse-soft); }
.section-dark .checklist li::before { background-color: rgba(14, 159, 110, 0.2); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-row .stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--ink); }
.section-dark .stat-row .stat b { color: #fff; }
.stat-row .stat span { color: var(--text-soft); font-size: 0.92rem; }
.section-dark .stat-row .stat span { color: var(--text-inverse-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 13px;
}
.badge.neutral { background: #eef1f6; color: var(--text-soft); }
.badge.inverse { background: rgba(255, 255, 255, 0.1); color: var(--text-inverse); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.billing-toggle {
  display: inline-flex;
  background: #eaeef5;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.billing-toggle button.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 18, 32, 0.1); }
.billing-toggle .save-tag { color: var(--accent-ink); font-weight: 700; font-size: 0.78rem; margin-left: 6px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.plan .plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.22rem; }
.plan .plan-for { color: var(--text-soft); font-size: 0.9rem; margin: 4px 0 18px; }
.plan .price { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: var(--ink); line-height: 1; }
.plan .price .per { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--text-soft); }
.plan .billed-note { color: var(--text-faint); font-size: 0.83rem; margin-top: 7px; min-height: 1.2em; }
.plan .btn { margin: 22px 0 24px; }
.plan .checklist li { font-size: 0.93rem; margin-bottom: 10px; }

.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--white); }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.compare-table thead th { font-family: var(--font-head); font-size: 0.95rem; background: #fbfcfe; }
.compare-table td { color: var(--text-soft); }
.compare-table td.yes { color: var(--accent-ink); font-weight: 600; }
.compare-table td.no { color: var(--text-faint); }
.compare-table tr.group td { background: #fbfcfe; color: var(--ink); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  padding: 17px 48px 17px 20px;
  position: relative;
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-faint);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details .faq-a { padding: 0 20px 18px; color: var(--text-soft); font-size: 0.95rem; }
.faq details .faq-a a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .optional { color: var(--text-faint); font-weight: 500; }

.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #c9d2e0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16); }
.input.invalid { border-color: var(--danger); }
.input[disabled], .input[readonly].locked { background: #f1f4f9; color: var(--text-faint); cursor: not-allowed; }
textarea.input { min-height: 130px; resize: vertical; }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; min-width: 0; }
.input-group .addon {
  display: flex; align-items: center;
  background: #f1f4f9;
  border: 1px solid #c9d2e0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 14px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.hint { font-size: 0.83rem; color: var(--text-faint); margin-top: 6px; }
.hint.ok { color: var(--accent-ink); font-weight: 600; }
.hint.bad { color: var(--danger); font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-soft); }
.check-line input { margin-top: 4px; accent-color: var(--accent); }

/* Password strength meter */
.pw-meter { display: flex; gap: 5px; margin-top: 8px; }
.pw-meter span { height: 4px; flex: 1; border-radius: 4px; background: #e3e8f0; transition: background 0.2s ease; }
.pw-meter.s1 span:nth-child(-n+1) { background: var(--danger); }
.pw-meter.s2 span:nth-child(-n+2) { background: var(--warn); }
.pw-meter.s3 span:nth-child(-n+3) { background: #7bc47f; }
.pw-meter.s4 span:nth-child(-n+4) { background: var(--accent); }
.pw-label { font-size: 0.8rem; color: var(--text-faint); margin-top: 5px; min-height: 1.1em; }

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.alert svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.alert-error { background: var(--danger-soft); color: #8f2f2f; border: 1px solid #f3c9c9; }
.alert-info { background: var(--info-soft); color: var(--info-ink); border: 1px solid #cdddf8; }
.alert-success { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #bfe8d6; }
.alert b { display: block; margin-bottom: 2px; }
.alert.hidden { display: none; }

/* Auth pages (login / signup) */
.auth-wrap { padding: 72px 0 96px; }
.auth-wrap .form-card { max-width: 460px; margin: 0 auto; }
.auth-wrap.wide .form-card { max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.65rem; }
.auth-head p { color: var(--text-soft); margin-top: 8px; font-size: 0.95rem; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--text-soft); font-size: 0.92rem; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.94rem; color: var(--text-soft); }

.steps-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.82rem;
  color: var(--text-faint);
  align-items: center;
  flex-wrap: wrap;
}
.steps-bar .step { display: inline-flex; align-items: center; gap: 7px; }
.steps-bar .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e3e8f0;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps-bar .step.current { color: var(--ink); font-weight: 600; }
.steps-bar .step.current .dot { background: var(--accent); color: #fff; }
.steps-bar .step.done .dot { background: var(--accent-soft); color: var(--accent-ink); }
.steps-bar .sep { color: #c9d2e0; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 32px;
  align-items: start;
}

.order-summary { position: sticky; top: 92px; }
.order-summary .line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}
.order-summary .line b { color: var(--ink); font-weight: 600; }
.order-summary .line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.05rem;
}
.order-summary .line.total b { font-family: var(--font-head); font-size: 1.25rem; }
.order-summary .swap-cycle { font-size: 0.85rem; }

.pay-methods { display: flex; gap: 10px; margin-bottom: 18px; }
.pay-methods .pm {
  flex: 1;
  border: 1px solid #c9d2e0;
  border-radius: var(--radius-sm);
  padding: 11px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
  background: var(--white);
}
.pay-methods .pm.active { border: 2px solid var(--accent); color: var(--ink); padding: 10px 9px; }

.card-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 12px 14px;
  background: #fbfcfe;
}

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 14px;
  justify-content: center;
}
.secure-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--text-soft); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--text-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .meta-line { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 34px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.92rem; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; color: var(--text-soft); }
.prose table th { background: #fbfcfe; color: var(--ink); }

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0 10px;
}
.toc b { display: block; margin-bottom: 10px; color: var(--ink); font-family: var(--font-head); font-size: 0.95rem; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 7px; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(14, 159, 110, 0.25), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: var(--text-inverse);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: var(--text-inverse-soft); max-width: 52ch; margin: 14px auto 28px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-inverse-soft);
  padding: 64px 0 36px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-inverse-soft);
  font-size: 0.92rem;
  padding: 5px 0;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  padding-top: 28px;
  font-size: 0.8rem;
  color: #7c88a3;
  line-height: 1.8;
}
.footer-legal .no-track {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fb3d4;
  font-weight: 600;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.center { text-align: center; }
.muted { color: var(--text-soft); }
.faint { color: var(--text-faint); }
.small { font-size: 0.88rem; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .main-nav, .nav-actions { display: none; }
  .nav-burger { display: block; }
  .toc ol { columns: 1; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero-dark { padding: 64px 0 72px; }
  .form-card { padding: 26px 20px; }
  .cta-band { padding: 48px 24px; }
}
