/* ===== Fonts (self-hosted, static weights only) ===== */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/public-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/public-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/public-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/public-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-serif4-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/source-serif4-700.woff2") format("woff2");
}

/* ===== Tokens ===== */
:root {
  --navy: #1F3864;
  --navy-light: #2E4E82;
  --navy-mid: #3E5C94;
  --navy-pale: #EEF1F7;
  --navy-text: var(--navy);
  --gold: #C9A24B;
  --gold-text: #8A6A2F;
  --ink: #171B24;
  --body: #3D4353;
  --muted: #5B6578;
  --line: #E1E5ED;
  --bg: #FFFFFF;
  --bg-alt: #F6F7FB;
  --surface: #FFFFFF;
  --header-bg: rgba(255,255,255,0.96);
  --radius: 4px;
  --max-width: 1160px;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale — used consistently instead of ad hoc values */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
}

/* Dark mode: follows the visitor's OS/browser setting by default via
   prefers-color-scheme, but the header toggle can explicitly override it
   in either direction via [data-theme] on <html> (saved to localStorage).
   Only color tokens change; navy/gold used as fills (buttons, featured
   card, footer, audit section) stay the same since they're already dark
   surfaces. Contrast-checked against WCAG AA. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-pale: #232B40;
    --navy-text: #93B4EC;
    --gold-text: var(--gold);
    --ink: #F3F5F9;
    --body: #C7CDD9;
    --muted: #8890A3;
    --line: #2E3750;
    --bg: #10141C;
    --bg-alt: #171C28;
    --surface: #1B2130;
    --header-bg: rgba(16,20,28,0.9);
  }
}
:root[data-theme="dark"] {
  --navy-pale: #232B40;
  --navy-text: #93B4EC;
  --gold-text: var(--gold);
  --ink: #F3F5F9;
  --body: #C7CDD9;
  --muted: #8890A3;
  --line: #2E3750;
  --bg: #10141C;
  --bg-alt: #171C28;
  --surface: #1B2130;
  --header-bg: rgba(16,20,28,0.9);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Avoid a single word stranded on the last line of a paragraph */
p, li { text-wrap: pretty; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-on-navy { background: var(--gold); color: var(--navy); }
.btn-on-navy:hover { background: #D9B461; }

.btn-outline-onlight { background: transparent; border-color: var(--line); color: var(--navy-text); }
.btn-outline-onlight:hover { border-color: var(--navy-text); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; padding-left: 16px; padding-right: 16px; white-space: normal; text-align: center; }

.btn-disabled {
  background: var(--bg-alt);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

/* ===== Skip link (accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ===== Floating action buttons (contact + back to top) ===== */
.fab {
  position: fixed;
  bottom: var(--space-3);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
  cursor: pointer;
  border: none;
}
.fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.fab-contact {
  right: var(--space-3);
  background: var(--gold);
  color: var(--navy);
}
.fab-contact:hover { background: #D9B461; }
.fab-contact svg { width: 22px; height: 22px; }

.fab-top {
  left: var(--space-3);
  background: var(--surface);
  color: var(--navy-text);
  border: 1px solid var(--line);
}
.fab-top:hover { background: var(--navy-pale); }
.fab-top svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .fab { width: 46px; height: 46px; bottom: var(--space-2); }
  .fab-contact { right: var(--space-2); }
  .fab-top { left: var(--space-2); }
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--navy-text);
}
.logo-svg { height: 32px; width: auto; }

.site-nav {
  display: flex;
  gap: var(--space-4);
  flex: 1;
  justify-content: center;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
}
.site-nav a:hover { color: var(--navy-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy-text); border-radius: 2px; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle-btn:hover { background: var(--navy-pale); }
.theme-toggle-btn svg { width: 17px; height: 17px; }

/* ===== Sections ===== */
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--bg-alt); }

/* Document-style section marker: plain label + numeral + rule.
   No pill, no fill, no border-radius container — deliberately not a "badge". */
.kicker {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.kicker-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-text);
}
.kicker-label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-text);
}
.kicker-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.kicker.on-navy .kicker-num,
.kicker.on-navy .kicker-label { color: var(--gold); }
.kicker.on-navy .kicker-rule { background: rgba(255,255,255,0.18); }
.kicker.center { justify-content: center; }
.kicker.center .kicker-rule { display: none; }

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  max-width: 760px;
  margin-bottom: var(--space-2);
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto var(--space-6);
}
.section-lead.center { text-align: center; }
.section-lead-left { font-size: 1.05rem; color: var(--muted); margin-bottom: var(--space-4); }

/* ===== Hero ===== */
.hero { padding: var(--space-6) 0 var(--space-7); background: var(--bg); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: var(--space-3);
}

.hero-sub {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: var(--space-4);
}

.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.hero-visual { width: 100%; }

.chart-bg { fill: var(--bg-alt); }
.chart-axis { stroke: var(--line); }
.chart-caption { fill: var(--muted); }
.chart-trend { stroke: var(--navy-text); }

/* ===== Problem section: numbered rows, not icon cards ===== */
.problem-list { border-top: 1px solid var(--line); }

.problem-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.problem-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: #C3CBDC;
}

.problem-row h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }
.problem-row p { color: var(--muted); font-size: 0.98rem; max-width: 640px; }

/* ===== Approach / stack (numbered, solid — no glass/translucency) ===== */
.stack-flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.stack-scope {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.stack-scope strong { color: var(--body); }

.stack-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}

.stack-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.stack-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stack-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}
.stack-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: var(--space-2); }
.stack-card .stack-owner {
  margin: auto 0 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-text);
}

.stack-connector {
  align-self: center;
  color: var(--line);
  font-size: 1.3rem;
  padding-top: 40px;
}

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card-flat {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}
.card-flat h3 { font-size: 1.08rem; margin-bottom: var(--space-1); }
.card-flat p { font-size: 0.96rem; color: var(--muted); }

/* ===== FAQ accordion ===== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform 0.15s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { font-size: 0.96rem; color: var(--muted); margin-top: var(--space-2); }

/* ===== Tiers ===== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: stretch; }

.tier-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}

.tier-flag {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-2);
}

.tier-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tier-featured .tier-flag { background: var(--gold); color: var(--navy); }
.tier-featured .tier-name { color: #fff; }
.tier-featured .tier-for { color: rgba(255,255,255,0.72); }
.tier-featured .tier-price { color: #fff; }
.tier-featured .tier-list li { color: rgba(255,255,255,0.92); }
.tier-featured .tier-list li::before { background: var(--gold); }

.tier-flag-muted { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }

.tier-name { font-size: 1.3rem; margin-bottom: 6px; }
.tier-for { color: var(--muted); font-size: 0.92rem; margin-bottom: var(--space-1); }

.tier-price { font-size: 1.05rem; font-weight: 700; color: var(--navy-text); margin-bottom: var(--space-3); }
.tier-price-has-note { margin-bottom: 2px; }
.tier-price-note { color: var(--muted); font-size: 0.82rem; margin-bottom: var(--space-3); }

.tier-list { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }

.tier-list li { font-size: 0.92rem; color: var(--body); padding-left: 20px; position: relative; }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--navy-text);
}

.tier-outcome {
  padding-left: 0;
  padding-top: var(--space-2);
  margin-top: var(--space-1);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.tier-list li.tier-outcome::before { content: none; }
.tier-outcome strong { color: var(--gold-text); }
.tier-featured .tier-outcome { border-top-color: rgba(255,255,255,0.16); color: rgba(255,255,255,0.72); }
.tier-featured .tier-outcome strong { color: var(--gold); }

.tiers-highlight { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 760px; margin: 0 auto var(--space-4); }

.tiers-note { text-align: left; color: var(--muted); font-size: 0.9rem; max-width: 760px; margin: var(--space-4) auto 0; }
.tiers-note + .tiers-note { margin-top: var(--space-1); }

/* ===== Process ===== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.process-step { border-top: 2px solid var(--navy-text); padding-top: var(--space-2); }

.process-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--navy-text);
  margin-bottom: var(--space-1);
}

.process-step h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.process-step p { font-size: 0.92rem; color: var(--muted); }

/* ===== Audit ===== */
.section-audit { background: var(--navy); color: #fff; }
.section-audit .section-title { color: #fff; }
.section-audit .section-lead-left { color: rgba(255,255,255,0.78); }

.audit-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.audit-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }

.audit-list li { font-size: 0.98rem; color: rgba(255,255,255,0.9); padding-left: 26px; position: relative; }
.audit-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.audit-list strong { color: #fff; }

/* Diagnostic summary preview card. The audit section is navy in both themes,
   so the card keeps fixed "paper" colors rather than theme tokens. */
.summary-card {
  max-width: 320px;
  margin-left: auto;
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  color: var(--navy);
}
.summary-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8A6A2F; margin-bottom: var(--space-1); }
.summary-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.summary-meta { font-size: 0.8rem; color: #5B6578; margin: 4px 0 var(--space-2); }
.summary-items { list-style: none; counter-reset: summary; border-top: 1px solid #E1E5ED; }
.summary-items li { counter-increment: summary; padding: 12px 0 12px 28px; border-bottom: 1px solid #E1E5ED; position: relative; }
.summary-items li::before { content: counter(summary, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-size: 0.72rem; font-weight: 700; color: #8A6A2F; }
.summary-items span { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; }
.summary-items i { display: block; height: 5px; border-radius: 3px; background: #E6E9F0; }
.summary-items i + i { margin-top: 5px; }
.summary-items .summary-rec i { background: #EBDDB9; }
.summary-foot { display: inline-block; margin-top: var(--space-2); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5B6578; border: 1px solid #E1E5ED; border-radius: 2px; padding: 2px 8px; }

.audit-summary { font-size: 0.98rem; color: rgba(255,255,255,0.9); margin-bottom: var(--space-2); }
.audit-confidentiality { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-3); }

/* ===== About ===== */
.about-inner { max-width: 780px; }
.about-copy { display: flex; flex-direction: column; gap: var(--space-3); font-size: 1.03rem; color: var(--body); }

.credentials { display: flex; flex-wrap: wrap; align-items: center; gap: calc((var(--space-2) + var(--space-3)) / 2); }
.badge-a2x { height: 56px; width: auto; }
.badge-qbo { height: 72px; width: auto; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-2); align-items: start; }
.contact-grid-single { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

.contact-direct { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.contact-direct h3 { margin-bottom: var(--space-1); font-size: 1.1rem; }
.contact-direct p { color: var(--muted); font-size: 0.94rem; margin-bottom: var(--space-2); }

.contact-email { font-size: 1.1rem; font-weight: 700; color: var(--navy-text); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.email-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.copy-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-icon-btn:hover { background: var(--navy-pale); color: var(--navy-text); border-color: var(--navy-pale); }
.copy-icon-btn.copied { background: var(--navy-pale); color: var(--navy-text); border-color: var(--navy-pale); }
.copy-icon-btn svg { width: 15px; height: 15px; }

.copy-note { font-size: 0.85rem; color: var(--navy-text); min-height: 1.1em; margin-top: var(--space-1); }
.contact-actions { display: flex; justify-content: center; margin: 0 0 var(--space-4); }
.contact-direct .contact-email-line { text-align: center; margin-bottom: 0; line-height: 2; }
.contact-email-line .contact-email { font-size: inherit; }
.contact-email-line .copy-icon-btn { vertical-align: middle; margin: 0 2px; }
.contact-direct .copy-note { text-align: center; margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: var(--space-4) 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.logo-footer { display: inline-flex; flex-shrink: 0; color: #fff; }
.logo-footer-svg { height: 44px; width: auto; }

.footer-links { display: flex; gap: var(--space-3); }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }

.footer-inner p { font-size: 0.85rem; }

/* ===== Simple pages (privacy / terms / 404) ===== */
.simple-page { padding: var(--space-6) 0 var(--space-8); }
.simple-page .container { max-width: 760px; }
.simple-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: var(--space-2); }
.simple-page h2 { font-size: 1.3rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.simple-page p, .simple-page li { color: var(--body); font-size: 1rem; margin-bottom: var(--space-2); }
.simple-page ul { padding-left: 20px; list-style: disc; }
.simple-page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-5); }
.simple-page a.inline-link { color: var(--navy-text); border-bottom: 1px solid var(--gold); }

.error-page {
  min-height: calc(100vh - 72px - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}
.error-page .kicker-num { font-size: 3rem; }
.error-page h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: var(--space-2); }
.error-page p { color: var(--muted); margin-bottom: var(--space-4); max-width: 480px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner, .audit-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .audit-visual { max-width: 320px; margin: 0 auto; }

  .tiers, .process { grid-template-columns: repeat(2, 1fr); }
  .stack-flow { flex-direction: column; }
  .stack-connector { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .problem-row { grid-template-columns: 60px 1fr; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo-svg { height: 28px; }

  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .grid-2, .tiers, .process { grid-template-columns: 1fr; }
  .section { padding: var(--space-6) 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .problem-row { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* ===== Print ===== */
@media print {
  .site-header, .nav-toggle, .theme-toggle-btn, .skip-link,
  .scroll-progress, .fab, .hero-visual, .audit-visual {
    display: none !important;
  }
  .site-footer { border-top: 1px solid #000; }
  .logo-footer { color: #000; }
  a { color: inherit; text-decoration: underline; }
  .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .section-alt, .section-audit, .section-contact { background: #fff; color: #000; padding: 16px 0; }
  .hero { padding: 16px 0; }
  * { box-shadow: none !important; }
}
