/* A Modern Jack design system
   Layout direction from ui-ux-pro-max: bento grid + scroll-triggered storytelling,
   Newsreader / Source Sans 3 pairing, original Charcoal / Gold / Sage / Steel palette. */

:root {
  /* Original brand palette (logo + legacy site): Charcoal Slate, Ochre Gold, Deep Sage, Soft Steel */
  --charcoal: #2f3e46;
  --charcoal-soft: #3c4e58;
  --gold: #daa520;
  --gold-deep: #b8860b;
  --gold-light: #e9b73a;
  --sage: #52796f;
  --sage-deep: #3f6158;
  --steel: #ced4da;
  --steel-light: #e9ecef;
  --white: #ffffff;

  /* Roles */
  --bg: #f6f7f8;
  --paper: #ffffff;
  --sand: var(--steel-light);
  --sand-2: var(--steel);
  --line: #dde2e6;
  --ink: #222c32;
  --ink-2: var(--charcoal-soft);
  --accent: var(--sage-deep);   /* links, eyebrows, italic words on light surfaces */
  --deep: var(--charcoal);
  --on-deep: #f6f7f8;           /* text on charcoal bands; fixed in both themes */
  --on-gold: #222c32;           /* text on gold; fixed in both themes */
  --nav-bg: rgb(255 255 255 / .88);
  --body-text: #2c3a42;
  --meter-track: rgb(34 44 50 / .12);
  --selected: #eef4f2;
  --danger: #b3261e;
  --danger-bg: #fbedec;
  --warn-bg: #fbf5e6;
  --stripe: #f7f8f9;
  --mark-bg: transparent;       /* the logo mark sits on a white circle on dark surfaces */
  --mark-pad: 0px;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgb(34 44 50 / 0.06), 0 14px 34px -14px rgb(34 44 50 / 0.22);

  --font-d: "Newsreader", Georgia, "Times New Roman", serif;
  --font-logo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* Dark theme. Follows the system setting unless the visitor picks one with the
   header toggle (js/site.js sets data-theme). Screen only, so printouts stay light.
   The two blocks are identical; the first covers visitors without JavaScript. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #141b1f;
    --paper: #1c252a;
    --sand: #243037;
    --sand-2: #34434c;
    --line: #2c3a42;
    --ink: #e9ecef;
    --ink-2: #b9c3c9;
    --accent: #8fb5aa;
    --deep: #2a3840;
    --nav-bg: rgb(28 37 42 / .88);
    --body-text: #d3d9dd;
    --meter-track: rgb(233 236 239 / .12);
    --selected: #1f3a33;
    --danger: #f2b8b5;
    --danger-bg: #3a2222;
    --warn-bg: #30291a;
    --stripe: #20292e;
    --mark-bg: #fff;
    --mark-pad: 4px;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -14px rgb(0 0 0 / .65);
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #141b1f;
    --paper: #1c252a;
    --sand: #243037;
    --sand-2: #34434c;
    --line: #2c3a42;
    --ink: #e9ecef;
    --ink-2: #b9c3c9;
    --accent: #8fb5aa;
    --deep: #2a3840;
    --nav-bg: rgb(28 37 42 / .88);
    --body-text: #d3d9dd;
    --meter-track: rgb(233 236 239 / .12);
    --selected: #1f3a33;
    --danger: #f2b8b5;
    --danger-bg: #3a2222;
    --warn-bg: #30291a;
    --stripe: #20292e;
    --mark-bg: #fff;
    --mark-pad: 4px;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -14px rgb(0 0 0 / .65);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.on-deep :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.1rem); letter-spacing: -0.028em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.on-deep h1 em, .on-deep h2 em { color: var(--gold); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--ink-2); line-height: 1.55; max-width: 38em; }

.container { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }
.narrow { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
section { padding-block: var(--section); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.on-deep .eyebrow { color: var(--gold); }

/* Icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1 var(--font-b); text-decoration: none; cursor: pointer;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 20px -10px rgb(184 134 11 / .8); }
.btn-primary:hover { background: var(--gold-light); color: var(--on-gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-ghost-light { color: var(--on-deep); border-color: rgb(233 236 239 / .5); }
.btn-ghost-light:hover { background: var(--on-deep); color: var(--on-gold); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* Header: floating pill */
.site-header { position: sticky; top: 0; z-index: 50; padding: .75rem var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative;
  max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .5rem .5rem 1rem;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; flex: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; background: var(--mark-bg); border-radius: 50%; padding: var(--mark-pad); }
.brand span { font-family: var(--font-logo); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
/* Phones: tighter header; below 390px the mark stands alone (allowed by the brand book) so the buttons fit */
@media (max-width: 539px) { .nav { gap: .35rem; padding-left: .75rem; } .brand span { font-size: 1.1rem; } .nav-phone { padding-inline: .85rem; } }
@media (max-width: 389px) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav-links a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; transition: background-color .2s; }
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--sand); }
.nav-portal { white-space: nowrap; display: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 0 .5rem; min-height: 44px; align-items: center; }
.nav-portal:hover { color: var(--accent); }
.nav-phone { min-height: 44px; padding: .5rem 1.1rem; white-space: nowrap; flex: none; }
.nav-phone .num { display: none; }
.nav-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.nav-toggle .i-x { display: none; }
/* Theme menu (light / dark / system): needs JavaScript, so it only shows once site.js has run */
.theme-menu { display: none; position: relative; flex: none; }
.js .theme-menu { display: block; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { background: var(--sand); }
.theme-toggle .i { display: none; }
.theme-toggle[data-mode="light"] .i-sun, .theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="system"] .i-system { display: block; }
.theme-options {
  position: absolute; top: calc(100% + .6rem); right: 0; z-index: 60; min-width: 10.5rem;
  display: grid; gap: .15rem; padding: .4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.theme-options[hidden] { display: none; }
.theme-options button {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: 0 .9rem;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink);
  font: 500 1rem var(--font-b); text-align: left; cursor: pointer;
}
.theme-options button:hover { background: var(--sand); }
.theme-options button[aria-pressed="true"] { background: var(--sand); font-weight: 600; }
.theme-options button[aria-pressed="true"]::after { content: ""; margin-left: auto; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-x { display: block; }
.nav-panel {
  display: none; pointer-events: auto;
  max-width: 1180px; margin: .5rem auto 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: .75rem;
}
.nav-panel.open { display: block; }
.nav-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.nav-panel a:hover { background: var(--sand); }
@media (min-width: 540px) { .nav-phone .num { display: inline; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-portal { display: inline-flex; }
  .nav-toggle, .nav-panel { display: none !important; }
  .nav { padding-right: .5rem; }
}

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
/* Home hero: the H1 is the small eyebrow line (what we build, where); the slogan below keeps the big display look. */
.hero h1.eyebrow { font-family: var(--font-b); line-height: 1.4; margin-bottom: 1.25rem; text-wrap: pretty; }
.hero-slogan { font-family: var(--font-d); font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.1rem); letter-spacing: -0.028em; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
.hero-slogan em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-photo {
  aspect-ratio: 4 / 4.6; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden;
  background: var(--sand); box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-card {
  position: absolute; left: -1rem; bottom: 1.75rem; max-width: 17.5rem;
  display: flex; gap: .85rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease);
}
.hero-card:hover { transform: translateY(-3px); color: var(--ink); }
.hero-card .badge { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-card strong { display: block; font-size: .98rem; line-height: 1.25; }
.hero-card small { color: var(--ink-2); font-size: .85rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero-art { justify-self: end; }
}
@media (max-width: 520px) { .hero-card { left: .5rem; right: .5rem; max-width: none; } }

/* Trust strip */
.trust { padding-block: 0 var(--section); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust-list li { background: var(--paper); padding: 1.25rem 1.5rem; display: flex; gap: .9rem; align-items: center; }
.trust-list .i { color: var(--accent); width: 1.6rem; height: 1.6rem; }
.trust-list strong { display: block; font-family: var(--font-d); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.trust-list span { font-size: .9rem; color: var(--ink-2); }
@media (min-width: 720px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 480px) and (max-width: 719px) { .trust-list { grid-template-columns: 1fr 1fr; } }

/* Chapter header */
.chapter { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.chapter p { margin: 0; color: var(--ink-2); font-size: 1.15rem; }
.chapter h2 { margin: 0; }
@media (min-width: 900px) { .chapter { grid-template-columns: 1.15fr .85fr; } }

/* Compare cards (chapter 1) */
.compare { display: grid; gap: 1.25rem; }
.compare-card { border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); position: relative; overflow: hidden; }
.compare-card.old { background: var(--sand); }
.compare-card.new { background: var(--deep); color: var(--on-deep); }
.compare-card .tag { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.big-num { font-family: var(--font-d); font-size: clamp(2.4rem, 1rem + 4.4vw, 4.1rem); line-height: 1; letter-spacing: -.03em; margin: 1rem 0 .75rem; }
.big-num small { display: block; margin-top: .6rem; font-size: .36em; letter-spacing: 0; opacity: .75; font-family: var(--font-b); }
.new .big-num { color: var(--gold); }
.compare-card p { max-width: 30em; margin-bottom: 0; }
.old p { color: var(--ink-2); }
.new p { color: rgb(233 236 239 / .82); }
.meter { height: 8px; border-radius: 99px; background: var(--meter-track); margin-top: 1.75rem; overflow: hidden; }
.new .meter { background: rgb(233 236 239 / .15); }
.meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--sage); transform-origin: left; }
.new .meter i { background: var(--gold); width: 38%; }
.js .reveal .meter i { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.js .reveal.is-in .meter i { transform: scaleX(1); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }

/* Bento */
.bento { display: grid; gap: 1.25rem; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tile-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-body { padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.tile-body .num { font-family: var(--font-d); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-bottom: .35rem; }
.tile-body h3 { margin-bottom: .5rem; }
.tile-body p { color: var(--ink-2); margin-bottom: 1.1rem; }
.tile-link { margin-top: auto; display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.chips li { font-size: .85rem; font-weight: 500; padding: .3rem .8rem; border-radius: 99px; background: var(--sand); color: var(--ink); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .tile.wide { grid-column: span 4; flex-direction: row; }
  .tile.wide .tile-img { aspect-ratio: auto; flex: 1.05; min-height: 100%; }
  .tile.wide .tile-body { flex: 1; justify-content: center; }
  .tile.narrow-t { grid-column: span 2; }
  .tile.narrow-t .tile-img { aspect-ratio: 4 / 3; }
}

/* Journey steps */
.journey { display: grid; gap: 3rem; }
.journey-sticky { align-self: start; }
.steps { --p: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 3.5rem; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; left: 1.2rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); border-radius: 2px; }
.steps::after { background: var(--sage); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; padding-bottom: 3rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: -3.5rem; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--sage); color: var(--accent);
  font: 600 1.05rem var(--font-d);
}
.step .phase { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: .3rem 0 .5rem; }
.step p { color: var(--ink-2); margin-bottom: .75rem; }
@media (min-width: 900px) {
  .journey { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
  .journey-sticky { position: sticky; top: 7rem; }
}

/* Deep band: commitments */
.band-deep { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); margin-inline: clamp(.5rem, 1.5vw, 1.25rem); }
.band-deep .chapter p { color: rgb(233 236 239 / .75); }
.commit { display: grid; gap: 0; border-top: 1px solid rgb(233 236 239 / .18); }
.commit > div { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem; padding: 1.6rem 0; border-bottom: 1px solid rgb(233 236 239 / .18); }
.commit .n { font-family: var(--font-d); font-style: italic; font-size: 1.5rem; color: var(--gold); grid-row: span 2; }
.commit h3 { font-size: 1.45rem; margin: 0 0 .35rem; }
.commit p { margin: 0; color: rgb(233 236 239 / .75); max-width: 36em; }
@media (min-width: 900px) {
  .commit > div { grid-template-columns: 4rem 1fr 1.2fr; align-items: baseline; }
  .commit .n { grid-row: auto; }
  .commit h3 { margin: 0; }
}

/* Founder */
.founder { display: grid; gap: 2.5rem; align-items: center; }
.founder-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--sand); max-width: 420px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pull { font-family: var(--font-d); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 1.5rem; text-wrap: balance; }
.pull::before { content: "\201C"; color: var(--gold-deep); }
.pull::after { content: "\201D"; color: var(--gold-deep); }
.sig strong { display: block; }
.sig span { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 860px) { .founder { grid-template-columns: .7fr 1.3fr; gap: 4.5rem; } }

/* Area */
.area { background: var(--sand); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 2rem; }
.area .chips li { background: var(--paper); border: 1px solid var(--line); font-size: .95rem; padding: .45rem 1rem; }
.area h2 { margin-bottom: .4em; }
@media (min-width: 860px) { .area { grid-template-columns: 1fr 1fr; align-items: center; } }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--sand-2); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 64px; padding: 1rem 1.5rem; font-family: var(--font-d); font-size: 1.25rem; line-height: 1.25; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--ink-2); max-width: 48em; }
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } .faq-grid .sticky { position: sticky; top: 7rem; align-self: start; } }

/* CTA */
.cta-final { padding-block: 0 var(--section); }
.cta-box {
  background: var(--gold); color: var(--on-gold); border-radius: var(--r-lg); padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; background: rgb(255 255 255 / .16); }
.cta-box::before { width: 26rem; height: 26rem; right: -9rem; top: -11rem; }
.cta-box::after { width: 18rem; height: 18rem; left: -7rem; bottom: -9rem; }
.cta-box > * { position: relative; }
.cta-box h2 { color: var(--on-gold); max-width: 16em; margin-inline: auto; }
.cta-box h2 em { color: var(--charcoal); }
.cta-box p { max-width: 36em; margin-inline: auto; color: var(--on-gold); font-size: 1.15rem; }
.cta-box .cta-row { justify-content: center; }
.cta-box .btn-light { background: var(--charcoal); color: #fff; }
.cta-box .btn-light:hover { background: var(--on-gold); color: #fff; }
.cta-box .btn-ghost-light { color: var(--on-gold); border-color: var(--on-gold); }
.cta-box .btn-ghost-light:hover { background: var(--on-gold); color: var(--gold); }

/* Footer */
.site-footer { background: var(--deep); color: rgb(233 236 239 / .78); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-phone { font-family: var(--font-d); font-size: clamp(2rem, 1rem + 4vw, 3.6rem); letter-spacing: -.02em; line-height: 1.1; display: inline-block; margin: .5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgb(233 236 239 / .15); }
.footer-grid h4 { font: 600 .8rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.footer-grid li a { display: inline-block; padding: .3rem 0; }
.footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-logo); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: var(--on-deep); }
.footer-brand img { width: 40px; background: #fff; border-radius: 50%; padding: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-top: 1.75rem; font-size: .9rem; }
.social { display: flex; gap: .5rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(233 236 239 / .25); display: grid; place-items: center; }
.social a:hover { border-color: var(--gold); }
.social svg { width: 20px; height: 20px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* Inner pages */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-2); }
.page-hero .lede { margin-bottom: 0; }
.page-hero .cta-row { margin-top: 2rem; }
.sec-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.svc { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); align-items: center; }
.svc:first-of-type { border-top: 0; }
.svc-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--sand); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc .num { font-family: var(--font-d); font-style: italic; color: var(--accent); font-size: 1.2rem; }
.svc p { color: var(--ink-2); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .svc:nth-of-type(even) .svc-img { order: 2; }
}

.cards { display: grid; gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.card .badge { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-2); }
.card .city-tag { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 640px) { .cards.c2, .cards.c3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .cards.c4 { grid-template-columns: 1fr 1fr; } }

.callout { background: var(--sand); border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1rem 3rem; }
.callout h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin: 0; }
.callout p { margin: 0; color: var(--ink-2); }
@media (min-width: 860px) { .callout { grid-template-columns: 1fr 1.2fr; align-items: center; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-2); }
.checks li .i { color: var(--accent); margin-top: .25rem; }
.checks strong { color: var(--ink); }

.about-grid { display: grid; gap: 3rem; align-items: start; }
.about-grid .founder-photo { max-width: 100%; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; margin-top: 1.5rem; }
.facts dl { margin: 0; display: grid; gap: .9rem; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } .about-grid .sticky { position: sticky; top: 7rem; } }
.prose p { font-size: 1.15rem; color: var(--ink-2); }
.vpm { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .vpm { grid-template-columns: repeat(3, 1fr); } }

.post { display: grid; gap: .5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); grid-template-columns: 1fr auto; align-items: center; }
.post:last-of-type { border-bottom: 1px solid var(--line); }
.post h3 { margin: .3rem 0 .4rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); transition: color .2s; }
.post:hover h3 { color: var(--accent); }
.post p { margin: 0; color: var(--ink-2); max-width: 46em; }
.post .meta { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.post .i { width: 1.75rem; height: 1.75rem; color: var(--accent); transition: transform .3s var(--ease); }
.post:hover .i { transform: translateX(6px); }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; margin-bottom: 1.25rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem 1rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--sand-2); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 8rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgb(82 121 111 / .22); }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
#form-status { margin-top: 1rem; font-weight: 500; }
#form-status.success { color: var(--accent); }
#form-status.error { color: var(--danger); }
.form-note { font-size: .95rem; color: var(--ink-2); margin: 1.25rem 0 0; }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-list .label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.contact-list a, .contact-list .value { font-family: var(--font-d); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }

/* ROI */
.roi-grid { display: grid; gap: 1.5rem; align-items: start; }
.radio-group { display: grid; gap: .6rem; }
.radio-option { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid var(--sand-2); border-radius: var(--r-sm); cursor: pointer; background: var(--bg); font-weight: 400; }
.radio-option:has(input:checked) { border-color: var(--sage); background: var(--selected); }
.radio-option input { margin-top: .35rem; accent-color: var(--sage); width: 1.1rem; height: 1.1rem; }
.radio-label { display: block; font-weight: 600; }
.radio-sub { display: block; font-size: .9rem; color: var(--ink-2); }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--sage); min-height: 44px; }
.range-value { min-width: 4.5rem; text-align: right; font-family: var(--font-d); font-size: 1.4rem; }
.roi-results { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem); }
.roi-results h3 { color: var(--gold); font: 600 .8rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.roi-bignum { display: block; font-family: var(--font-d); font-size: clamp(3rem, 2rem + 4vw, 4.8rem); line-height: 1; letter-spacing: -.03em; color: #fff; }
.roi-sublabel { display: block; color: rgb(233 236 239 / .78); margin: .6rem 0 2rem; }
.roi-bar-row { margin-bottom: 1.25rem; }
.roi-bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; margin-bottom: .4rem; }
.roi-bar-track { height: 10px; background: rgb(233 236 239 / .15); border-radius: 99px; overflow: hidden; }
.roi-bar-fill { height: 100%; background: var(--gold); border-radius: inherit; transition: width .5s var(--ease); }
.roi-bar-fill.alt { background: #8fb5aa; }
.roi-stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid rgb(233 236 239 / .2); padding-top: 1.25rem; margin-top: 1.75rem; }
.roi-stat-value { font-family: var(--font-d); font-size: 1.8rem; color: #fff; }
.roi-caveat { font-size: .875rem; color: rgb(233 236 239 / .7); margin: 1.1rem 0 0; }
.roi-caveat a { color: var(--gold); }
@media (min-width: 960px) { .roi-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .roi-results { position: sticky; top: 7rem; } }

.note { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 1rem; max-width: 48em; }

/* Scroll reveal (progressive enhancement; content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .meter i { transform: none; }
  .btn:hover, .tile:hover, .hero-card:hover { transform: none; }
}

/* ---- Article / legal pages (blog posts, privacy, portal) ----
   Class names kept stable (.article-shell, .callout, .article-cta, .post-card)
   because the autoseo-content skill builds new posts from them. */
:root { --white: #fff; }
.text-center { text-align: center; }
.container.article-shell { width: min(100% - var(--gutter) * 2, 44rem); }
.article-shell { font-size: 1.125rem; }
.article-shell h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); margin: 2.2em 0 .5em; }
.article-shell h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); margin: 1.8em 0 .4em; }
.article-shell ul, .article-shell ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-shell li { margin-bottom: .45em; }
.article-shell p, .article-shell li { color: var(--body-text); }
.article-shell strong { color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .9rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin: 0 0 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.article-shell .callout { display: block; background: var(--sand); border-radius: var(--r); border-left: 4px solid var(--gold); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.article-shell .callout p { margin: 0 0 .75em; }
.article-shell .callout p:last-child { margin-bottom: 0; }
.article-cta { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); padding: clamp(1.75rem, 5vw, 3rem); margin: 3rem 0 2rem; text-align: center; }
.article-cta h3 { color: #fff; margin-top: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.article-cta p { color: rgb(233 236 239 / .85) !important; }
.article-cta .cta-row { margin-top: 1.5rem; }
.article-cta .btn-ghost-light { border-color: rgb(233 236 239 / .5); }
.article-share { font-size: .95rem; color: var(--ink-2); }

/* Blog index cards */
.post-grid { display: grid; gap: 1.25rem; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.post-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 1rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.post-card .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 720px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* Legacy closing band (blog index) restyled to match .cta-box */
.stat-band { background: var(--gold); color: var(--on-gold); text-align: center; border-radius: var(--r-lg); margin: 0 auto var(--section); width: min(100% - var(--gutter) * 2, 1180px); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.stat-band .container { width: min(100% - 3rem, 760px); }
.stat-band h2 { color: var(--on-gold) !important; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.stat-band .lede { color: var(--on-gold) !important; margin-inline: auto; }
.stat-band .cta-row { justify-content: center; }
.stat-band .btn-primary { background: var(--charcoal); color: #fff; box-shadow: none; }
.stat-band .btn-primary:hover { background: var(--on-gold); color: #fff; }
.stat-band .btn-ghost-light { color: var(--on-gold); border-color: var(--on-gold); }
.stat-band .btn-ghost-light:hover { background: var(--on-gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }


/* inner pages: the hero already supplies the space above the next section */
.page-hero + section { padding-top: 0; }

/* Light-surface hero: the legacy ghost-light button assumed a dark band */
.page-hero .btn-ghost-light { color: var(--ink); border-color: var(--ink); }
.page-hero .btn-ghost-light:hover { background: var(--ink); color: var(--bg); }
