/* =========================================================
   Quoted First — Design System
   ========================================================= */

:root {
  --ink: #0e1116;
  --ink-2: #1c212b;
  --ink-3: #2a3140;
  --paper: #f8f5ef;
  --paper-2: #efe9dd;
  --paper-3: #e3dbc9;
  --white: #ffffff;
  --muted: #5b6270;
  --muted-2: #8a909b;
  --line: rgba(14, 17, 22, 0.12);
  --line-strong: rgba(14, 17, 22, 0.28);
  --line-dark: rgba(248, 245, 239, 0.14);
  --accent: #ff4d1c;
  --accent-ink: #d63c0f;
  --accent-soft: #ffe4d9;
  --highlight: #ffe867;
  --mint: #bff2cf;
  --mint-ink: #0f6b3a;
  --sky: #d9e8ff;
  --sky-ink: #1e4fb8;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.06), 0 2px 8px rgba(14, 17, 22, 0.05);
  --shadow-md: 0 8px 30px rgba(14, 17, 22, 0.1);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, 0.16);
  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--highlight); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.2; }
h4 { font-size: 1.15rem; line-height: 1.3; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem; font-weight: 500;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.on-dark .eyebrow { color: rgba(248, 245, 239, 0.7); }
.highlight {
  background: linear-gradient(transparent 55%, var(--highlight) 55%, var(--highlight) 92%, transparent 92%);
  padding: 0 0.08em;
  font-style: normal;
}
.accent-text { color: var(--accent); }
.text-center { text-align: center; }
.tw-pretty { text-wrap: pretty; }
.max-60 { max-width: 60ch; }
.max-70 { max-width: 70ch; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .lead, .section-dark .muted { color: rgba(248, 245, 239, 0.7); }
.section-tint { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 0.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.top { align-items: start; }
.stack > * + * { margin-top: 1rem; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: rgba(14, 17, 22, 0.04); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 0.75rem; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.on-dark .btn-primary { background: var(--paper); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--accent); color: #fff; }
.on-dark .btn-outline { color: var(--paper); border-color: rgba(248, 245, 239, 0.35); }
.on-dark .btn-outline:hover { border-color: var(--paper); background: rgba(248, 245, 239, 0.06); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1.5px solid transparent; transition: color 0.2s;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow .arrow { transition: transform 0.2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.015em; color: var(--ink);
  flex: none;
}
.brand-mark { width: 36px; height: 36px; color: var(--ink); flex: none; }
.brand-mark .mark-bg { fill: currentColor; }
.brand-mark .mark-fg { fill: var(--paper); }
.brand-mark .mark-accent { fill: var(--accent); }
.on-dark .brand, .site-footer .brand { color: var(--paper); }
.on-dark .brand-mark, .site-footer .brand-mark { color: var(--paper); }
.on-dark .brand-mark .mark-fg, .site-footer .brand-mark .mark-fg { fill: var(--ink); }
.nav-panel { display: flex; align-items: center; gap: 2rem; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-2);
  padding: 0.35rem 0; position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: var(--paper); font-size: 0.85rem; text-align: center; padding: 0.55rem 1rem;
}
.announce a { color: var(--highlight); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-quote-bg {
  position: absolute; left: -2vw; top: -14vw; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22rem, 46vw, 40rem); line-height: 1; color: var(--paper-2); pointer-events: none; user-select: none; z-index: 0;
  opacity: 0.9;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 54ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.hero-note { font-size: 0.88rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.hero-note .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.engine-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.5rem; margin-top: 2rem; align-items: center; }
.engine-list .label { font-size: 0.8rem; color: var(--muted); margin-right: 0.35rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); font-size: 0.82rem; font-weight: 500; color: var(--ink-2);
}
.chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-quote-bg { font-size: 26rem; top: -8rem; left: -3rem; }
}

/* ---------- Answer demo card ---------- */
.answer-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem 1.35rem 1.35rem; min-height: 420px; display: flex; flex-direction: column; gap: 1rem;
}
.answer-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.answer-tabs .tab {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--paper-2); color: var(--muted); transition: background 0.3s, color 0.3s;
}
.answer-tabs .tab.is-active { background: var(--ink); color: var(--paper); }
.answer-query {
  display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--font-mono); font-size: 0.86rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; color: var(--ink-2);
}
.answer-query svg { flex: none; margin-top: 2px; color: var(--muted); }
.answer-body { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); flex: 1; }
.answer-body p { margin: 0; min-height: 4.8em; }
.answer-body .brand-hit { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 55%, var(--highlight) 55%, var(--highlight) 92%, transparent 92%); }
.cite {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em; padding: 0 0.3em;
  border-radius: 6px; font-family: var(--font-mono); font-size: 0.68em; font-weight: 600; vertical-align: 0.25em; margin: 0 0.1em;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.cite.is-first { background: var(--accent); color: #fff; border-color: var(--accent); }
.answer-body.typing p::after {
  content: ""; display: inline-block; width: 2px; height: 1em; background: var(--ink); margin-left: 2px; vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.answer-sources { display: grid; gap: 0.45rem; }
.answer-sources .src-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.source {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); font-size: 0.85rem; color: var(--ink-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.source.is-visible { opacity: 1; transform: none; }
.source .src-n {
  width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; background: var(--paper-2); border: 1px solid var(--line); flex: none;
}
.source.is-first { border-color: var(--accent); background: var(--accent-soft); }
.source.is-first .src-n { background: var(--accent); color: #fff; border-color: var(--accent); }
.source .src-domain { font-weight: 500; }
.source .src-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-badge {
  position: absolute; top: -14px; right: 22px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.8rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-pill); box-shadow: 0 8px 20px rgba(255, 77, 28, 0.35);
  transform: rotate(3deg) scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-flex; gap: 0.35rem; align-items: center;
}
.answer-badge.is-visible { transform: rotate(3deg) scale(1); }
.answer-card.fade { opacity: 0.35; transition: opacity 0.35s; }
.answer-card { transition: opacity 0.35s; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.wordmark { font-size: 1.15rem; color: var(--ink-3); opacity: 0.75; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark.serif { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; }
.wordmark.mono { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.06em; }
.wordmark.bold { font-weight: 800; letter-spacing: -0.04em; font-size: 1.25rem; }
.wordmark.caps { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.85rem; font-weight: 600; }
.wordmark.wide { font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
.trust-line { text-align: center; font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
}
.card.hover { display: flex; flex-direction: column; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card.hover > .link-arrow { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--paper-2); color: var(--ink);
}
.card-icon svg { width: 22px; height: 22px; }
.card .link-arrow { margin-top: 1rem; }
.card-dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.card-dark p { color: rgba(248, 245, 239, 0.7); }
.card-dark h3 { color: var(--paper); }
.card-dark .card-icon { background: var(--ink-3); color: var(--paper); }
.card-accent { background: var(--accent); color: #fff; border-color: transparent; }
.card-accent p, .card-accent h3 { color: #fff; }
.card-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.card-tint { background: var(--paper-2); border-color: transparent; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding: 1.5rem 0; border-top: 1px solid var(--line-dark); }
.stat-value { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.stat-value .unit { font-size: 0.5em; margin-left: 0.05em; }
.stat-label { color: rgba(248, 245, 239, 0.7); margin-top: 0.6rem; font-size: 0.95rem; max-width: 26ch; }
.section:not(.section-dark) .stat { border-top-color: var(--line); }
.section:not(.section-dark) .stat-label { color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.benchmark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benchmark .card { padding: 1.5rem; }
.benchmark .big { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.benchmark .big.accent { color: var(--accent); }
.benchmark .foot { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); margin-top: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 800px) { .benchmark { grid-template-columns: 1fr; } }

/* ---------- Then / Now compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .pane { border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--line); background: var(--white); }
.compare .pane.now { background: var(--ink); color: var(--paper); border-color: transparent; }
.compare .pane-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.compare .pane.now .pane-label { color: var(--highlight); }
.serp { display: grid; gap: 0.6rem; margin-top: 1rem; }
.serp .row { height: 10px; border-radius: 6px; background: var(--paper-3); width: 100%; }
.serp .row.w80 { width: 80%; }
.serp .row.w60 { width: 60%; }
.serp .row.title { height: 12px; background: var(--sky-ink); opacity: 0.55; width: 45%; }
.answer-mini { margin-top: 1rem; border: 1px solid var(--line-dark); border-radius: 12px; padding: 1rem; font-size: 0.9rem; color: rgba(248, 245, 239, 0.85); }
.answer-mini .cite { background: var(--ink-3); border-color: transparent; color: var(--paper); }
.answer-mini .cite.is-first { background: var(--accent); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent);
}
.step-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.08em; font-weight: 600; margin-bottom: 0.65rem; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 1.5rem; padding-bottom: 2.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; position: relative; z-index: 1;
}
.tl-item.accent .tl-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-body h3 { margin-bottom: 0.35rem; }
.tl-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.tl-body ul { color: var(--muted); margin: 0.75rem 0 0; }
.tl-body li + li { margin-top: 0.3rem; }

/* ---------- Feature list / checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.5; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist.dark li::before { background-color: var(--ink-3); }
.checklist.muted-check li::before { background-color: var(--paper-2); }
.checklist.x li::before { background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a909b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat; }
.checklist.x li { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem 1.75rem; position: relative; display: flex; flex-direction: column; }
.quote-card .qmark { font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--accent); margin-bottom: 1rem; font-weight: 600; }
.quote-card blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); flex: 1; text-wrap: pretty; }
.quote-card blockquote.lg { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.01em; }
.quote-who { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  color: var(--paper); background: var(--ink); flex: none; letter-spacing: 0.02em;
}
.avatar.a2 { background: var(--accent); }
.avatar.a3 { background: var(--sky-ink); }
.avatar.a4 { background: var(--mint-ink); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.15rem; }
.quote-who .name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.quote-who .role { font-size: 0.85rem; color: var(--muted); }

/* ---------- Accordion (details) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.005em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1116' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--highlight); }
.accordion summary:hover { color: var(--accent); }
.accordion .acc-body { padding: 0 0 1.4rem; color: var(--muted); max-width: 70ch; }
.accordion .acc-body p:last-child { margin-bottom: 0; }
.on-dark .accordion { border-top-color: var(--line-dark); }
.on-dark .accordion details { border-bottom-color: var(--line-dark); }
.on-dark .accordion summary::after { border-color: rgba(248, 245, 239, 0.4); filter: invert(1); }
.on-dark .accordion .acc-body { color: rgba(248, 245, 239, 0.7); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band::after {
  content: "”"; position: absolute; right: -0.05em; bottom: -0.55em; font-family: var(--font-display); font-weight: 600;
  font-size: 22rem; line-height: 1; color: rgba(255, 77, 28, 0.9); pointer-events: none;
}
.cta-band h2 { color: var(--paper); margin-bottom: 0.75rem; }
.cta-band .lead { color: rgba(248, 245, 239, 0.72); }
.cta-band .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band.accent-band { background: var(--accent); }
.cta-band.accent-band::after { color: rgba(255, 255, 255, 0.18); }
.cta-band.accent-band .lead { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 0.8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.35rem 0.5rem 0.35rem 1rem; }
.billing-toggle .lbl { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.billing-toggle .lbl.is-active { color: var(--ink); }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--paper-3); border: 0; position: relative; padding: 0; transition: background 0.25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.save-pill { background: var(--mint); color: var(--mint-ink); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 999px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 2rem 1.75rem; }
.plan.featured { background: var(--ink); color: var(--paper); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured p, .plan.featured .plan-desc { color: rgba(248, 245, 239, 0.72); }
.plan.featured h3 { color: var(--paper); }
.plan-tag { position: absolute; top: -12px; left: 1.75rem; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.plan-desc { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 0.35rem; margin: 1.25rem 0 0.25rem; }
.price .amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 0.9rem; }
.plan.featured .price .per { color: rgba(248, 245, 239, 0.7); }
.price-note { font-size: 0.82rem; color: var(--muted); min-height: 1.4em; margin-bottom: 1.25rem; }
.plan.featured .price-note { color: rgba(248, 245, 239, 0.6); }
.plan .btn { margin-bottom: 1.5rem; }
.plan .checklist { font-size: 0.93rem; }
.plan.featured .checklist li::before { background-color: var(--ink-3); }
.plan-foot { margin-top: auto; padding-top: 1.25rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.audit-card { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.audit-card .eyebrow { margin-bottom: 0.4rem; }
.audit-card h3 { margin-bottom: 0.35rem; }
@media (max-width: 760px) { .audit-card { grid-template-columns: 1fr; } }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table td:first-child { font-weight: 500; }
.compare-table .group td { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare-table .yes { color: var(--mint-ink); font-weight: 700; }
.compare-table .no { color: var(--muted-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.table-wrap table { min-width: 720px; }

/* ---------- Case studies ---------- */
.case-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-card .case-top { padding: 1.75rem 1.75rem 1.25rem; }
.case-card .case-metric { font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -0.03em; margin: 0.75rem 0 0.25rem; }
.case-card .case-metric-label { color: var(--muted); font-size: 0.9rem; }
.case-card .case-body { padding: 1.25rem 1.75rem 1.75rem; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.case-card h3 { font-size: 1.3rem; }
.case-card .case-body .link-arrow { margin-top: auto; padding-top: 1rem; }
.industry { display: inline-flex; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.case-card.tone-1 .case-top { background: var(--sky); }
.case-card.tone-2 .case-top { background: var(--mint); }
.case-card.tone-3 .case-top { background: var(--accent-soft); }
.case-full { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.case-full:first-of-type { border-top: 0; }
.case-full aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.case-full .facts { display: grid; gap: 1rem; }
.case-full .fact { padding: 1rem 0; border-top: 1px solid var(--line); }
.case-full .fact:first-child { border-top: 0; padding-top: 0; }
.case-full .fact-value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.case-full .fact-value.accent { color: var(--accent); }
.case-full .fact-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.case-full h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.case-full h3 { font-size: 1.2rem; margin-top: 1.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.case-full p, .case-full li { color: var(--ink-2); }
@media (max-width: 900px) { .case-full { grid-template-columns: 1fr; } .case-full aside { position: static; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { text-align: left; }
.person .portrait {
  aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); background: var(--paper-2); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.5rem; color: var(--ink); margin-bottom: 1rem; position: relative; overflow: hidden;
}
.person .portrait::after { content: "”"; position: absolute; right: 0.5rem; bottom: -1.9rem; font-family: var(--font-display); font-size: 7rem; color: rgba(14, 17, 22, 0.06); font-weight: 600; }
.person .portrait.p2 { background: var(--sky); }
.person .portrait.p3 { background: var(--mint); }
.person .portrait.p4 { background: var(--accent-soft); }
.person .portrait.p5 { background: #ecdcff; }
.person .portrait.p6 { background: #ffe9b8; }
.person .name { font-weight: 600; font-size: 1.05rem; }
.person .role { color: var(--muted); font-size: 0.9rem; }
.person .bio { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value { padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.value p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

/* ---------- Resources / articles ---------- */
.article-card { display: flex; flex-direction: column; text-decoration: none; }
.article-card .thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--paper-2); margin-bottom: 1.1rem; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 4rem; color: var(--ink); position: relative; overflow: hidden;
}
.article-card .thumb.t2 { background: var(--sky); }
.article-card .thumb.t3 { background: var(--mint); }
.article-card .thumb.t4 { background: var(--accent-soft); }
.article-card .thumb.t5 { background: #ecdcff; }
.article-card .thumb.t6 { background: #ffe9b8; }
.article-card .thumb .kicker { position: absolute; left: 1rem; top: 1rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255,255,255,0.7); padding: 0.25rem 0.5rem; border-radius: 6px; }
.article-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.article-card:hover h3 { color: var(--accent); }
.article-card p { color: var(--muted); font-size: 0.95rem; }
.article-meta { font-size: 0.82rem; color: var(--muted-2); margin-top: auto; padding-top: 0.75rem; font-family: var(--font-mono); }
.article-card.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.article-card.featured .thumb { margin: 0; aspect-ratio: 4/3; }
.article-card.featured h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
@media (max-width: 800px) { .article-card.featured { grid-template-columns: 1fr; } }

.article-header { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.article-body h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; }
.article-body li + li { margin-top: 0.4rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; }
.article-body pre { background: var(--ink); color: var(--paper); padding: 1.25rem 1.4rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.85rem; line-height: 1.6; }
.article-body code { font-family: var(--font-mono); font-size: 0.9em; }
.article-body :not(pre) > code { background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 5px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.article-body .callout { background: var(--paper-2); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.article-body .callout strong { display: block; margin-bottom: 0.25rem; }
.byline { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.5rem; }
.byline .meta { font-size: 0.9rem; color: var(--muted); }
.byline .meta strong { color: var(--ink); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.toc .toc-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.article-nav a { text-decoration: none; }
.article-nav .lbl { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.glossary dt { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.25rem; }
.glossary dt .abbr { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); margin-left: 0.4rem; }
.glossary dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.glossary > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 17, 22, 0.08); }
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); }
.field .error { font-size: 0.82rem; color: var(--accent-ink); display: none; }
.field.invalid .error { display: block; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1116' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.5rem; }
.form-foot { font-size: 0.82rem; color: var(--muted); }
.form-success { background: var(--mint); color: var(--mint-ink); padding: 1.5rem; border-radius: var(--radius); }
.form-success h3 { color: var(--mint-ink); font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; }
.form-error { background: var(--accent-soft); color: var(--accent-ink); padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.92rem; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.checkbox input { margin-top: 0.3rem; accent-color: var(--accent); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.newsletter { display: flex; gap: 0.5rem; }
.newsletter input { flex: 1; min-width: 0; padding: 0.8rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); background: rgba(248, 245, 239, 0.06); color: var(--paper); }
.newsletter input::placeholder { color: rgba(248, 245, 239, 0.5); }
.newsletter input:focus { outline: none; border-color: var(--paper); }
.newsletter .btn { flex: none; }
.newsletter-msg { font-size: 0.85rem; margin-top: 0.6rem; color: var(--mint); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-aside .card + .card { margin-top: 1.25rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list span { color: var(--muted); font-size: 0.9rem; }
.next-steps { counter-reset: ns; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; color: var(--ink-2); }
.next-steps li::before { counter-increment: ns; content: counter(ns, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-top: 0.3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Visibility Score quiz ---------- */
.quiz { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.progress-bar { flex: 1; height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.4s var(--ease); }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.quiz-help { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-opt {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left; padding: 1rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.quiz-opt:hover { border-color: var(--ink); background: var(--white); }
.quiz-opt.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt .key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); flex: none; }
.quiz-opt.is-selected .key { background: var(--accent); color: #fff; border-color: var(--accent); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; gap: 1rem; }
.quiz-result { text-align: center; }
.gauge { width: 200px; height: 200px; margin: 0 auto 1rem; position: relative; }
.gauge svg { transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge .track { stroke: var(--paper-2); }
.gauge .bar { stroke: var(--accent); stroke-dasharray: 534; stroke-dashoffset: 534; transition: stroke-dashoffset 1.2s var(--ease); }
.gauge .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 3.2rem; letter-spacing: -0.03em; }
.gauge .num small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: -0.4rem; }
.band { display: inline-block; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 1rem; }
.band.b0 { background: var(--accent-soft); color: var(--accent-ink); }
.band.b1 { background: #ffe9b8; color: #8a5a00; }
.band.b2 { background: var(--sky); color: var(--sky-ink); }
.band.b3 { background: var(--mint); color: var(--mint-ink); }
.recs { text-align: left; margin-top: 2rem; display: grid; gap: 0.75rem; }
.rec { display: grid; grid-template-columns: 34px 1fr; gap: 0.8rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.rec .rec-n { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.rec strong { display: block; margin-bottom: 0.15rem; }
.rec p { color: var(--muted); font-size: 0.92rem; }
.result-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Metric tiles (how it works) ---------- */
.metric-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.metric-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.metric-tile .m-name { font-weight: 600; margin-bottom: 0.35rem; }
.metric-tile p { font-size: 0.88rem; color: var(--muted); }
.metric-tile .m-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 0.9rem; }
.metric-tile .m-ic svg { width: 18px; height: 18px; }
@media (max-width: 1024px) { .metric-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .metric-tiles { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(248, 245, 239, 0.65); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(248, 245, 239, 0.55); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: rgba(248, 245, 239, 0.85); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--highlight); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(248, 245, 239, 0.55); }
.footer-bottom a { color: inherit; }
.social { display: flex; gap: 0.5rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--paper); transition: background 0.2s, border-color 0.2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; }
.ai-note { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(248, 245, 239, 0.6); border: 1px dashed var(--line-dark); padding: 0.45rem 0.7rem; border-radius: 8px; white-space: nowrap; }
.ai-note a { color: var(--highlight); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-col.newsletter-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Page header ---------- */
.page-header { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-header h1 { max-width: 16ch; }
.page-header .lead { max-width: 60ch; }
.page-header.center { text-align: center; }
.page-header.center h1, .page-header.center .lead { margin-inline: auto; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; font-family: var(--font-mono); }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.6; }

/* ---------- Service detail ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; }
.service-detail .sd-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 600; }
.service-detail h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.service-detail .lead { font-size: 1.1rem; }
.service-detail .sd-side { display: grid; gap: 1.25rem; }
.service-detail .sd-side .card { padding: 1.5rem; }
.service-detail .sd-side h4 { margin-bottom: 0.75rem; }
.service-detail .who { font-size: 0.92rem; color: var(--muted); }
.service-detail .who strong { color: var(--ink); }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; } }
.service-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.service-nav a { text-decoration: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .source { opacity: 1; transform: none; transition: none; }
  .answer-badge { transform: rotate(3deg) scale(1); transition: none; }
  .answer-body.typing p::after { display: none; }
  .gauge .bar { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.kbd { font-family: var(--font-mono); font-size: 0.8em; padding: 0.15em 0.45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--white); }
.divider-quote { text-align: center; font-family: var(--font-display); font-size: 6rem; line-height: 0.5; color: var(--paper-3); margin: 0; }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--ink-2); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .big { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 14rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--paper-3); }
