/* ============================================================
   Sasquatch Creative - Static Site Design System
   Black-on-white. Oswald (display headings) + Lato (body copy).
   Hand-drawn scribble motif as the signature element.
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;            /* variable: one file, all weights */
  font-display: swap;
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lato-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lato-700-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Sasquatch Creative brand palette ---- */
  --blue-base: #1D76BB;
  --blue-light: #4FA1DD;
  --blue-dark: #135581;
  --blue-tint: #D8ECF8;
  --green-base: #259C58;
  --green-light: #41B972;
  --green-dark: #197341;
  --green-tint: #D5F1E1;

  /* Color - near-black text, blue accent for links, green for CTAs */
  --color-bg: #ffffff;
  --color-surface: #f7faf8;       /* faint green-white */
  --color-surface-2: #eef6fb;     /* faint blue-white */
  --color-ink: #14202b;          /* near-black, slight blue cast */
  --color-ink-soft: #2b3742;
  --color-muted: #5a6b78;
  --color-faint: #94a3ad;
  --color-border: #e2ebf1;
  --color-border-strong: #14202b;
  --color-inverse: #ffffff;

  /* Semantic accents */
  --color-accent: var(--blue-base);       /* links / nav */
  --color-accent-hover: var(--blue-light);
  --color-cta: var(--green-base);         /* primary buttons */
  --color-cta-hover: var(--green-light);
  --color-cta-active: var(--green-dark);

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem;
  --radius-xl: 1.5rem; --radius-full: 9999px;

  /* Content widths */
  --content-narrow: 680px;
  --content: 1080px;
  --content-wide: 1280px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 200ms var(--ease);

  /* Fonts */
  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance; line-height: 1.1; letter-spacing: 0;
  font-weight: 700;
}
p, li { text-wrap: pretty; }

::selection { background: var(--blue-base); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-base); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role="button"], input, textarea, select {
  transition: color var(--t), background var(--t), border-color var(--t),
    box-shadow var(--t), transform var(--t), opacity var(--t);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--space-6); }
.wrap-wide { max-width: var(--content-wide); }
.wrap-narrow { max-width: var(--content-narrow); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-sm { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; background: var(--green-base);
  box-shadow: 0 5px 0 var(--green-base);
}

/* ---------- Scribble motif ---------- */
.scribble {
  display: block; color: var(--green-base); width: 100%; height: auto;
  max-width: 360px;
}
.scribble-underline {
  position: relative; display: inline-block;
}
.scribble-underline > svg {
  position: absolute; left: -2%; bottom: -0.5em; width: 104%; height: 0.55em;
  color: var(--green-base); pointer-events: none;
}
.highlight { position: relative; white-space: nowrap; }
/* Breathing room so the absolutely-positioned scribble (hangs ~0.5em below the
   heading baseline) clears the copy beneath it. */
h1:has(.scribble-underline), h2:has(.scribble-underline) { padding-bottom: 0.35em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  padding: 0.85rem 1.5rem; border-radius: var(--radius-full);
  border: 2px solid var(--color-ink); line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--color-cta); border-color: var(--color-cta); color: #fff; }
.btn-primary:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--color-cta-active); border-color: var(--color-cta-active); transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: #fff; transform: translateY(-2px); }
.btn-blue { background: var(--blue-base); border-color: var(--blue-base); color: #fff; }
.btn-blue:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 1.05rem 2rem; font-size: var(--text-base); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  /* NOTE: no overflow:hidden anywhere on the header or .nav, which would clip
     the hover dropdowns. backdrop-filter is on ::before (below) rather than the
     header itself — on a sticky element it creates a compositing layer that
     traps the absolutely-positioned dropdowns behind following sections. */
}
/* Frosted bar painted behind the nav content so the blur never owns the
   dropdown's stacking/compositing context. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
/* Sasquatch face accent pinned to the far right, cut from the left if space is tight.
   Hidden on full desktop (inline nav fills the bar); shown once the nav collapses
   to a hamburger and the right side opens up. Persistent across scroll (sticky header). */
.header-face {
  display: none;
  position: absolute; right: 0; bottom: 0; height: 100%; width: auto;
  object-fit: cover; object-position: right bottom;
  opacity: 0.95; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
@media (max-width: 920px) { .header-face { display: block; } }
@media (max-width: 420px) { .header-face { opacity: 0.55; } }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); padding-block: var(--space-4);
  position: relative; z-index: 1; /* keep nav above the face accent */
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-wordmark { height: 46px; width: auto; display: block; }
@media (max-width: 600px) { .brand-wordmark { height: 38px; } }
.brand-mark { width: 34px; height: auto; flex: 0 0 auto; }
.brand-img { height: 52px; width: auto; }
@media (max-width: 480px) { .brand-img { height: 44px; } }
.footer-mark { width: 48px; height: auto; flex: 0 0 auto; }
.footer-tagline { font-family: var(--font-display); font-weight: 600; font-style: italic;
  color: var(--green-light) !important; font-size: var(--text-base); margin-top: var(--space-4); max-width: 32ch; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0; line-height: 1.1;
}
.brand-name small { display: block; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted); }

.nav-links { display: flex; align-items: center; gap: var(--space-1); }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-full); color: var(--color-ink-soft);
}
.nav-links a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue-base); font-weight: 600; }
.nav-cta { margin-left: var(--space-2); }

/* dropdown */
.nav-item { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 80; /* sit above hero/section content and their stacking contexts */
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a { display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-md);
  font-size: var(--text-sm); }
.nav-menu a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.nav-menu small { display: block; color: var(--color-muted); font-size: var(--text-xs); margin-top: 2px; font-family: var(--font-body); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-md);
  align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile nav */
@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: var(--space-4); gap: var(--space-1);
    transform: translateY(-120%); transition: transform 300ms var(--ease);
    box-shadow: var(--shadow-lg); max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.8rem 1rem; font-size: var(--text-base); }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 var(--space-4); min-width: 0; }
  .nav-cta { margin: var(--space-2) 0 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--space-16), 11vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-24)); }
.hero h1 { font-size: var(--text-hero); line-height: 1.12; }
.hero h1 .scribble-underline { white-space: nowrap; }
.hero p.lead { font-size: var(--text-lg); color: var(--color-muted); max-width: 46ch; }
.lead { font-size: var(--text-lg); color: var(--color-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.tagline-line {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: var(--text-lg); color: var(--green-dark);
  margin-top: var(--space-5); max-width: 40ch;
}
.hero-figure { display: flex; justify-content: center; align-items: flex-end; }
.hero-figure img { max-width: 100%; height: auto; max-height: 520px; width: auto; filter: drop-shadow(0 18px 30px rgba(20,32,43,0.16)); }
/* On narrow widths the mascot shrinks and drops BELOW the hero text (lower importance) */
@media (max-width: 860px) {
  .hero-figure { order: 2; }
  .hero-figure img { max-height: 300px; }
}
@media (max-width: 600px) { .hero-figure img { max-height: 230px; } }
.industry-figure { display: flex; justify-content: center; align-items: flex-end; }
.industry-figure img { max-width: 100%; height: auto; max-height: 460px; width: auto; filter: drop-shadow(0 16px 26px rgba(20,32,43,0.14)); }
@media (max-width: 860px) { .industry-figure { order: 2; } .industry-figure img { max-height: 280px; } }
@media (max-width: 600px) { .industry-figure img { max-height: 220px; } }
.industry-card { position: relative; overflow: hidden; }
.industry-card .industry-thumb {
  position: absolute; right: -10px; bottom: -10px; width: 116px; height: auto;
  opacity: 0.92; pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(20,32,43,0.12));
  transition: transform var(--dur, .3s) ease;
}
.industry-card:hover .industry-thumb { transform: translateY(-4px) scale(1.04); }
.industry-card h3, .industry-card p, .industry-card .ico, .industry-card .badge { position: relative; z-index: 1; }
.industry-card p { max-width: 22ch; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-base); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--color-muted); font-size: var(--text-sm); }
.card .ico {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  border: 2px solid var(--blue-base); color: var(--blue-base);
  background: var(--blue-tint);
  display: grid; place-items: center; margin-bottom: var(--space-4);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.card-hover:hover .ico { background: var(--blue-base); color: #fff; }
.card .ico svg { width: 24px; height: 24px; }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
  padding: 0.35rem 0.75rem; border: 1.5px solid var(--color-ink); border-radius: var(--radius-full);
}

/* split sections */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; color: var(--blue-base); }
.stat .lbl { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-2); }

/* inverse band */
.band-dark { background: var(--color-ink); color: #fff; }
.band-dark .eyebrow { color: rgba(255,255,255,.7); }
.band-dark .eyebrow::before { background: #fff; }
.band-dark p { color: rgba(255,255,255,.78); }
.band-dark .btn-primary { background: #fff; color: var(--color-ink); border-color: #fff; }
.band-dark .btn-primary:hover { background: #f0f0f0; }
.band-dark .btn-ghost { color: #fff; border-color: #fff; }
.band-dark .btn-ghost:hover { background: #fff; color: var(--color-ink); }

/* ---------- Section tints (brand backgrounds) ---------- */
.band-blue-tint { background: var(--blue-tint); }
.band-green-tint { background: var(--green-tint); }
.band-blue { background: var(--blue-base); color: #fff; }
.band-blue .eyebrow { color: rgba(255,255,255,.85); }
.band-blue .eyebrow::before { background: #fff; box-shadow: 0 5px 0 #fff; }
.band-blue p { color: rgba(255,255,255,.85); }
.band-blue .scribble, .band-blue .scribble-underline > svg { color: #fff; }
.band-blue .btn-primary { background: #fff; color: var(--blue-dark); border-color: #fff; }
.band-blue .btn-primary:hover { background: var(--green-tint); }
.band-blue .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.band-blue .btn-ghost:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* list with check */
.checklist { list-style: none; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-base); }
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  border: 2px solid var(--green-base); border-radius: var(--radius-full);
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23197341' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff;
  padding: var(--space-4) var(--space-5);
}
.faq details[open] { border-color: var(--blue-base); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--color-muted); }
.faq details[open] summary::after { content: "–"; color: var(--blue-base); }
.faq p { color: var(--color-muted); margin-top: var(--space-3); font-size: var(--text-sm); }

/* ---------- Calculator widget ---------- */
.calc {
  background: #fff; border: 2px solid var(--blue-base); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.calc-head { background: var(--blue-tint); padding: var(--space-6) var(--space-6) var(--space-4); border-bottom: 1px solid var(--blue-light); }
.calc-head h3 { font-size: var(--text-lg); }
.calc-head p { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-1); }
.calc-body { padding: var(--space-6); display: grid; gap: var(--space-5); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
.field .hint { color: var(--color-faint); font-size: var(--text-xs); font-family: var(--font-body); font-weight: 400; }
.field input, .field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); background: #fff; font-size: var(--text-base);
}
.field input:focus, .field select:focus { border-color: var(--blue-base); outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
.field.error input, .field.error select { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: var(--text-xs); display: none; }
.field.error .err { display: block; }

.budget-row { display: flex; align-items: center; gap: var(--space-4); }
.budget-row input[type="range"] { flex: 1; accent-color: var(--green-base); }
.budget-val { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); min-width: 5.5ch; text-align: right; color: var(--green-dark); }

.adv-toggle { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-muted); display: inline-flex; align-items: center; gap: var(--space-2); }
.adv-toggle:hover { color: var(--color-ink); }
.adv { display: none; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.adv.open { display: grid; }
@media (max-width: 560px) { .adv.open { grid-template-columns: 1fr; } }

.lawyer-area { display: none; }
.lawyer-area.show { display: grid; }

/* results */
.calc-results { display: none; border-top: 1px solid var(--color-border); background: var(--color-surface); padding: var(--space-6); }
.calc-results.show { display: block; }
.result-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 620px) { .result-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .result-grid { grid-template-columns: 1fr; } }
.result-cell { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.result-cell .k { font-size: var(--text-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-display); font-weight: 600; }
.result-cell .v { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-top: var(--space-1); line-height: 1.1; }
.result-cell.feature { background: var(--green-base); color: #fff; border-color: var(--green-base); }
.result-cell.feature .k { color: rgba(255,255,255,.7); }
.assumptions { margin-top: var(--space-5); }
.assumptions summary { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); cursor: pointer; color: var(--color-muted); }
.assumptions ul { margin-top: var(--space-3); display: grid; gap: var(--space-2); padding-left: var(--space-5); }
.assumptions li { font-size: var(--text-xs); color: var(--color-muted); }
.calc-loading { display: none; padding: var(--space-8); text-align: center; color: var(--color-muted); }
.calc-loading.show { display: block; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--blue-tint); border-top-color: var(--blue-base);
  border-radius: 50%; margin: 0 auto var(--space-3); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: #0e2433; color: #fff; padding-block: var(--space-16) var(--space-8); }
.site-footer a:hover { color: var(--blue-light); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr 1fr; gap: var(--space-8); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.55); margin-bottom: var(--space-4); font-weight: 600; }
.site-footer a { color: rgba(255,255,255,.8); font-size: var(--text-sm); display: block; padding: 0.3rem 0; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: var(--text-sm); max-width: 34ch; margin-top: var(--space-4); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: rgba(255,255,255,.5); }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs); color: rgba(255,255,255,.55); }

/* tap-to-call bar (landing pages, mobile) */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  background: var(--blue-dark); color: #fff; padding: var(--space-3) var(--space-4);
  align-items: center; justify-content: space-between; gap: var(--space-3);
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.callbar .btn { padding: 0.7rem 1.2rem; font-size: var(--text-sm); }
@media (max-width: 720px) { .callbar.on { display: flex; } body.has-callbar { padding-bottom: 76px; } }

/* reveal on scroll */
/* Fail-open: only hide when JS is active (html.js set by site.js). Without JS,
   reduced-motion, or if the observer never fires, content stays fully visible. */
.reveal { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* prose links (body copy) use brand blue */
main p a, main li a, .prose a { color: var(--blue-base); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
main p a:hover, main li a:hover, .prose a:hover { color: var(--blue-light); }

/* dark band uses white scribble */
.band-dark .scribble, .band-dark .scribble-underline > svg { color: var(--green-light); }

/* misc */
.muted { color: var(--color-muted); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.maxw { max-width: 52ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: var(--space-12); }

/* ---------- Breadcrumbs (blog/article) ---------- */
.crumbs { font-size: var(--text-sm); color: var(--color-muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-base); }
.crumbs .crumb-sep { opacity: .5; }
.crumbs [aria-current="page"] { color: var(--color-ink); font-weight: 600; }

/* ---------- Blog index ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8) var(--space-8) var(--space-10); border: 1px solid var(--color-border); border-radius: var(--radius-lg, 18px); background: #fff; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (max-width: 760px) { .post-card { padding: var(--space-6) var(--space-6) var(--space-8); } }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,32,43,.10); border-color: var(--blue-base); }
.post-card .post-kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--blue-base); }
.post-card h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; }
.post-card p { color: var(--color-muted); font-size: 0.875rem; line-height: 1.6; }
.post-card .post-meta { margin-top: auto; padding-top: var(--space-2); font-size: 0.78rem; color: var(--color-muted); display: flex; gap: .5rem; align-items: center; }
.post-card .read-more { color: var(--blue-base); font-weight: 600; font-size: 0.82rem; }

/* ---------- Article (prose) ---------- */
.article-head { padding-block: var(--space-10) var(--space-6); }
.article-kicker { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--blue-base); }
.article-meta { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.article-meta .dot { opacity: .5; }
.prose { max-width: 72ch; margin-inline: auto; font-size: 1.075rem; line-height: 1.75; color: var(--color-ink-soft, #2b3742); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-2xl, 1.7rem); line-height: 1.2; color: var(--color-ink); margin-top: 1.9em; margin-bottom: .1em; scroll-margin-top: 90px; }
.prose h3 { font-family: var(--font-display); font-size: var(--text-xl, 1.3rem); line-height: 1.25; color: var(--color-ink); margin-top: 1.5em; }
.prose p { color: var(--color-ink-soft, #2b3742); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--green-base); }
.prose strong { color: var(--color-ink); font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--blue-base); background: var(--blue-tint); padding: var(--space-4) var(--space-6); border-radius: 0 12px 12px 0; font-style: italic; color: var(--color-ink); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin-block: var(--space-10); }
.prose .key-takeaway { background: var(--color-surface-2, #eef6fb); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-6); }
.prose .key-takeaway h3 { margin-top: 0; }
/* calculator embedded in an article */
.article-calc { max-width: 760px; margin-inline: auto; margin-block: var(--space-10); }
.article-cta { max-width: 72ch; margin-inline: auto; }
