/* =============================================================================
   Wayback Machine Download — handbook sister (waybackmachinedownload.com)
   Shared brand kit with the DIY sister and wayback.download.
   Inter + brand blue #045cb4. See BRAND.md. Guides and keywords stay unique.
   Code samples stay monospace; chrome uses Inter.
   ============================================================================= */

:root {
  /* Canonical tokens — keep identical to the DIY sister. */
  --ink:          #111827;
  --ink-soft:     #1f2937;
  --navy:         #0b1f3a;
  --body:         #374151;
  --muted:        #4b5563;
  --muted-soft:   #6b7280;
  --line:         #e5e7eb;
  --line-strong:  #d1d5db;
  --paper:        #f3f7fc;
  --paper-deep:   #e8f1fb;
  --paper-code:   #f3f4f6;
  --card:         #ffffff;
  --sand:         #f3f4f6;

  --brand:        #045cb4;
  --brand-hover:  #034a91;
  --brand-soft:   #e8f1fb;
  --brand-mist:   #f3f7fc;
  --brand-ring:   rgba(4, 92, 180, 0.22);

  --ok:           #059669;
  --ok-soft:      #ecfdf5;
  --warn:         #92400e;
  --warn-soft:    #fffbeb;
  --danger:       #b42318;
  --danger-soft:  #fef3f2;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow:    0 12px 40px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.12);

  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  --container: 1200px;
  --container-wide: 1320px;

  /* Old accent names. Aliased so existing rules stay on the shared kit. */
  --teal:         var(--brand);
  --teal-hover:   var(--brand-hover);
  --teal-soft:    var(--brand-soft);
  --teal-ring:    var(--brand-ring);
  --copper:       var(--brand);
  --copper-soft:  var(--brand-soft);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-bottom: .55rem; font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); margin-bottom: .35rem; font-weight: 700; }
h4 { font-size: .9rem; font-weight: 700; font-family: var(--font-body); }

p { color: var(--body); }
p.lede {
  font-size: clamp(1.07rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
  font-weight: 400;
}

a { color: var(--teal); text-decoration: none; transition: color .12s; }
a:hover { color: var(--teal-hover); text-decoration: underline; text-underline-offset: 3px; }

code, kbd, samp {
  font-family: var(--font-mono);
  background: var(--paper-code);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ink);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

pre {
  font-family: var(--font-mono);
  background: var(--navy);
  color: #e2e8f0;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 1.1rem 0;
}
pre code {
  background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit;
}
/* .prose code is more specific than `pre code` and was painting a light
   chip on every line of a dark block, which hid the text. */
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
/* Folder listings read as handbook notes, not a terminal screenshot. */
pre.file-tree {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
}

/* ---------- layout ---------- */
.wrap        { width: min(var(--container),      calc(100% - 2.5rem)); margin: 0 auto; }
.wrap-wide   { width: min(var(--container-wide), calc(100% - 2.5rem)); margin: 0 auto; }
.wrap-narrow { width: min(760px,                 calc(100% - 2.5rem)); margin: 0 auto; }

.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; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--navy);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.005em;
}
.topbar .dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  margin-right: 0.45rem;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: #dbeafe; text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-mark svg { width: 36px; height: 36px; display: block; }
.brand-text strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  color: var(--ink); font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1;
}
.brand-text small {
  display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px;
  font-family: var(--font-body);
}
.primary-nav {
  display: flex; align-items: center; gap: 0.1rem;
}
.nav-link {
  color: var(--ink-soft); font-weight: 500; font-size: 0.93rem;
  padding: 0.55rem 0.9rem; border-radius: 6px;
  letter-spacing: -0.005em;
}
.nav-link:hover { background: var(--brand-soft); text-decoration: none; color: var(--brand); }
.nav-link.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-cta {
  margin-left: 0.5rem;
  background: var(--brand);
  color: #fff !important;
  padding: 0.6rem 1.05rem; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: background .15s;
}
.nav-cta:hover { background: var(--brand-hover); text-decoration: none; color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line-strong);
  width: 42px; height: 42px; border-radius: 7px;
  padding: 10px;
  flex-direction: column; justify-content: space-between; align-items: stretch;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
    transform: translateY(-10px);
    opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .primary-nav .nav-link { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav .nav-link.is-active { background: transparent; }
  .primary-nav .nav-cta { margin: 0.75rem 0 0; width: 100%; justify-content: center; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

/* ---------- eyebrow / tag ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #c9def5;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--copper {
  color: var(--brand); background: var(--brand-soft); border-color: #c9def5;
}

/* ---------- hero (handbook-style) ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.75rem, 5vw, 4.25rem);
  background:
    linear-gradient(180deg, var(--brand-mist) 0%, #fff 72%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.hero h1 { max-width: 22ch; margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal; color: var(--brand); font-weight: 700;
}
.hero .lede { margin-bottom: 1.6rem; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center;
  margin-bottom: 1.6rem;
}

.proof-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-body);
}
.proof-row strong { color: var(--ink); font-weight: 700; }
.proof-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.proof-row span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  display: inline-block;
}

/* Hero side rail: table of contents box */
.toc-rail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.toc-rail::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--teal); border-radius: var(--radius) 0 0 var(--radius);
}
.toc-rail h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 0.9rem;
}
.toc-rail ol {
  list-style: none; counter-reset: toc;
  display: grid; gap: 0.55rem;
}
.toc-rail li {
  counter-increment: toc;
  display: grid; grid-template-columns: 1.6rem 1fr;
  align-items: start;
  font-size: 0.95rem; line-height: 1.5;
}
.toc-rail li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-body); font-size: 0.78rem; color: var(--brand);
  font-weight: 700; padding-top: 0.15rem;
}
.toc-rail a { color: var(--ink); font-weight: 500; }
.toc-rail a:hover { color: var(--teal-hover); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.3rem;
  border: none; cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .12s, background .14s, color .14s, box-shadow .14s, border-color .14s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(4, 92, 180, 0.22);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff !important; box-shadow: 0 10px 24px rgba(4, 92, 180, 0.28); }
.btn-dark {
  background: var(--ink);
  color: #fff !important;
}
.btn-dark:hover { background: var(--ink-soft); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-hover) !important; }
.btn-link {
  background: transparent; color: var(--teal) !important; padding: 0.4rem 0.2rem;
  font-weight: 600;
}
.btn-link:hover { color: var(--teal-hover) !important; text-decoration: underline; }

.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- section scaffolding ---------- */
section { padding: clamp(3rem, 5.5vw, 4.75rem) 0; }
section.section-paper { background: var(--paper); }
section.section-paper-deep { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.section-ink   { background: var(--navy); color: #cbd5e1; }
section.section-ink h1, section.section-ink h2, section.section-ink h3 { color: #fff; }
section.section-ink p { color: #a7b4b7; }

.section-head { max-width: 62ch; margin: 0 auto 2.5rem; }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- card grids ---------- */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.cards-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 880px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Guide cards — the knowledge-base signature element */
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 0.85rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.guide-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--teal);
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.guide-card .guide-meta {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  display: inline-flex; gap: 0.75rem; align-items: center;
}
.guide-card .guide-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.guide-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--teal-hover); }
.guide-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.guide-card .guide-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.3rem; padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.87rem; color: var(--teal-hover); font-weight: 600;
}

/* ---------- split highlight ---------- */
.split-highlight {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem;
  align-items: center;
}
@media (max-width: 880px) { .split-highlight { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- quote card ---------- */
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.65rem 1.8rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- step list (numbered, handbook style) ---------- */
.steps-visual {
  display: grid; gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.6rem 1.45rem 4.75rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.5rem; top: 1.2rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand);
}
.step h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step, .card, .guide-card, .prose, .close-band, .toc-rail { min-width: 0; overflow-wrap: break-word; }

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid; gap: 0.6rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body); font-weight: 400;
  font-size: 1.35rem; color: var(--brand); line-height: 1;
  transition: transform .18s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}
.faq-item .faq-answer p + p { margin-top: 0.55rem; }
.faq-item .faq-answer a { color: var(--teal); font-weight: 500; }

/* ---------- CTA band (soft restoration callout) ---------- */
.close-band {
  background: linear-gradient(180deg, #0b1f3a 0%, #071525 100%);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
  position: relative; overflow: hidden;
}
.close-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 15% 0%, rgba(4, 92, 180, 0.28), transparent 60%);
  pointer-events: none;
}
.close-band h2 { color: #fff; margin-bottom: 0.65rem; }
.close-band .lede { color: #cbd5e1; margin: 0 auto 1.6rem; }
.close-band .hero-actions { justify-content: center; }
.close-band small { display: block; margin-top: 1.2rem; color: #94a3b8; font-size: 0.85rem; }

/* ---------- content pages (guides, legal, about) ---------- */
.content-head {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
  background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.content-head h1 { max-width: 25ch; margin-bottom: 0.9rem; }
.content-head p.lede { margin-bottom: 0.4rem; }
.content-head .meta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.82rem;
  font-family: var(--font-body);
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  margin-top: 1.4rem;
}

/* Breadcrumbs (simple handbook crumb above H1) */
.crumbs {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.crumbs a { color: var(--teal-hover); }
.crumbs .sep { padding: 0 0.4rem; color: var(--muted-soft); }

/* prose / long-form body */
.prose { max-width: 70ch; font-size: 1.03rem; line-height: 1.78; color: var(--body); overflow-x: auto; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.7rem; font-size: 1.55rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.7rem; margin-bottom: 0.35rem; font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; color: var(--ink); }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.4rem 0 1.15rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--teal-hover); }
.prose code { background: var(--paper-code); }
.prose .callout {
  background: var(--teal-soft);
  border: 1px solid #c9def5;
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.prose .callout strong { color: var(--ink); }
.prose .callout--copper {
  background: var(--brand-soft);
  border-color: #c9def5;
  border-left-color: var(--brand);
}
.prose .callout--ink {
  background: #e9edee;
  border-color: var(--line-strong);
  border-left-color: var(--ink);
}

/* In-page jump nav (used on long guides) */
.jump-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.93rem;
}
.jump-nav strong {
  display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  margin-bottom: 0.6rem;
}
.jump-nav ol { margin: 0 0 0 1.15rem; display: grid; gap: 0.3rem; }
.jump-nav li a { color: var(--ink); }
.jump-nav li a:hover { color: var(--teal-hover); }

/* Compare table for alternatives */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--paper-deep);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: var(--brand-mist); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, #0b1f3a 0%, #071525 100%);
  color: #94a3b8;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1fr;
  gap: 2.5rem 2rem;
  padding: 3.25rem 0 2.25rem;
}
@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: inherit; }
.footer-brand:hover { color: inherit; text-decoration: none; }
.footer-mark { display: inline-flex; }
.footer-mark svg { width: 40px; height: 40px; display: block; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-brand-text strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  color: #fff; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1;
}
.footer-brand-text span {
  display: block; font-family: var(--font-body); font-size: 0.72rem; color: #7dd3fc; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px;
}
.footer-about { font-size: 0.9rem; line-height: 1.65; color: #94a3b8; margin-bottom: 1rem; max-width: 36ch; }
.footer-addr  { font-size: 0.84rem; line-height: 1.55; color: #cbd5e1; font-family: var(--font-body); }
.footer-col h4 {
  color: #fff; font-family: var(--font-body); font-weight: 800;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.95rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col li a { color: #94a3b8; font-size: 0.9rem; }
.footer-col li a:hover { color: #fff; }
.footer-muted-line { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.9rem; max-width: 32ch; }
.footer-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff !important;
  padding: 0.6rem 1rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 700;
  transition: background .15s;
}
.footer-cta:hover { background: var(--brand-hover); color: #fff !important; text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.1rem 0;
}
.footer-disclaimer p {
  font-size: 0.82rem; line-height: 1.55; color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 0 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
  font-size: 0.82rem; color: #94a3b8;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }

/* ---------- utility ---------- */
.mt-0  { margin-top: 0 !important; }
.mt-05 { margin-top: 0.5rem !important; }
.mt-1  { margin-top: 1rem !important; }
.mt-2  { margin-top: 2rem !important; }
.mb-05 { margin-bottom: 0.5rem !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
