/* ============================================================
   THAMPICO.io — From Curious to Capable
   Design system v2 — Premium consulting UX
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Roboto+Slab:wght@400;600;700&display=swap');

:root {
  /* Brand */
  --navy:        #18355E;
  --navy-700:    #21436F;
  --navy-300:    #5C7197;
  --teal:        #4FC4CA;
  --teal-text:   #176C72;
  --teal-deep:   #176C72;
  --teal-line:   #8FD9DD;
  --teal-muted:  #B8D9DB;
  --focus:       #0E6A70;

  /* Surfaces */
  --paper:       #FFFFFF;
  --light-teal:  #E8F8F9;
  --light-navy:  #EDF0F5;
  --paper-warm:  #FBFCFD;

  /* Ink */
  --ink:         #16243B;
  --ink-soft:    #4A5A72;
  --hair:        #DCE3ED;
  --hair-teal:   #CDEBEC;
  --muted-on-navy: #B8C7DD;

  /* Type */
  --display: 'Alata', 'Segoe UI', system-ui, sans-serif;
  --body:    'Roboto Slab', Georgia, serif;
  --ui:      'Alata', 'Segoe UI', system-ui, sans-serif;
  --sans:    'Alata', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0; line-height: 1.12; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
  font-family: var(--display);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 10px 18px;
  font-family: var(--ui); font-weight: 700; border-radius: 2px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus visible */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Reveal animation — progressive enhancement ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.025em;
  font-family: var(--display);
}
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); font-family: var(--body); }
.measure { max-width: 62ch; }
.measure-tight { max-width: 48ch; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-deep); display: inline-flex;
  align-items: center; gap: 0.7em;
  font-family: var(--ui);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--teal); display: inline-block;
}

/* ---------- Brand field (concentric rings) ---------- */
.brand-field { position: relative; overflow: hidden; }
.brand-field::before {
  content: "";
  position: absolute; width: 520px; height: 520px;
  right: -160px; top: -180px;
  background: repeating-radial-gradient(
    circle,
    rgba(79,196,202,.14) 0 2px,
    transparent 2px 28px
  );
  opacity: .55; pointer-events: none;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }
.bg-paper { background: var(--paper); }
.bg-warm  { background: var(--paper-warm); }
.bg-teal  { background: var(--light-teal); }
.bg-navy-soft { background: var(--light-navy); }
.bg-navy  { background: var(--navy); color: var(--muted-on-navy); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .eyebrow { color: var(--teal); }
.bg-navy .lead { color: #AFC0DA; }
.divider { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ui); font-size: 1rem; font-weight: 700;
  padding: 0.85em 1.5em; border-radius: 2px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  line-height: 1;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--navy); }
.bg-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.bg-navy .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.bg-navy .btn-primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.bg-navy .btn-primary:hover { background: #6fd2d7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ui); font-size: 0.82rem; font-weight: 700;
  background: var(--light-navy); color: var(--navy);
  border: 1.5px solid var(--hair); border-radius: 2px;
  padding: 6px 12px; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-copy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-copy.copied { background: var(--teal); color: var(--navy); border-color: var(--teal); }

/* text link */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 700; color: var(--teal-deep);
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
  font-family: var(--ui);
}
.tlink .arrow { transition: transform .25s var(--ease); }
.tlink:hover { border-color: var(--teal); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV — hardcoded in HTML, site.js handles toggle only
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  font-family: var(--ui); font-size: 0.96rem; font-weight: 700;
  color: var(--navy); padding: 6px 0; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a.nav-cta {
  background: var(--navy); color: #fff; padding: 0.7em 1.15em; border-radius: 2px;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--navy-700); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s var(--ease); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hair);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #AFC0DA; padding-block: 64px 40px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.site-footer img.foot-logo { height: 46px; width: auto; margin-bottom: 20px; }
.site-footer .foot-tag { color: #AFC0DA; max-width: 34ch; font-size: 0.98rem; font-family: var(--body); }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--ui); }
.site-footer .foot-links a { display: block; padding: 6px 0; color: #AFC0DA; font-size: 0.98rem; transition: color .2s; font-family: var(--body); }
.site-footer .foot-links a:hover { color: var(--teal); }
.site-footer .foot-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.9rem; color: #7E91B2; font-family: var(--body);
}
.site-footer .foot-bottom a { color: #7E91B2; }
.site-footer .foot-bottom a:hover { color: var(--teal); }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.page-head .eyebrow { margin-bottom: 22px; }

/* Symptom band */
.symptom-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden;
  margin: 44px 0;
}
.symptom-band .symptom-item {
  padding: 28px 26px; border-right: 1px solid var(--hair);
  display: flex; gap: 16px; align-items: flex-start;
}
.symptom-band .symptom-item:last-child { border-right: 0; }
.symptom-band .symptom-dot {
  width: 10px; height: 10px; border: 2px solid var(--teal);
  border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.symptom-band .symptom-text {
  font-size: 1.05rem; color: var(--navy); font-weight: 400; line-height: 1.4;
  font-family: var(--body);
}
@media (max-width: 760px) {
  .symptom-band { grid-template-columns: 1fr; }
  .symptom-band .symptom-item { border-right: 0; border-bottom: 1px solid var(--hair); }
  .symptom-band .symptom-item:last-child { border-bottom: 0; }
}

/* Legacy symptoms list (kept for compatibility) */
.symptoms { display: grid; gap: 0; margin: 38px 0; max-width: 60ch; }
.symptoms li {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.35; color: var(--navy); font-weight: 400;
  padding: 20px 0 20px 30px; position: relative; border-top: 1px solid var(--hair);
  font-family: var(--body);
}
.symptoms li:last-child { border-bottom: 1px solid var(--hair); }
.symptoms li::before {
  content: ""; position: absolute; left: 0; top: 28px;
  width: 12px; height: 12px; border: 2px solid var(--teal); border-radius: 50%;
}

/* Operating loop visual */
.loop-visual {
  display: flex; flex-direction: column; gap: 0;
  max-width: 340px; margin-left: auto;
}
.loop-node {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(79,196,202,0.3);
  border-radius: 3px;
  position: relative;
}
.loop-node + .loop-node { margin-top: 2px; }
.loop-node::after {
  content: "↓";
  position: absolute; bottom: -18px; left: 50%;
  transform: translateX(-50%);
  color: var(--teal); font-size: 14px; line-height: 1;
  z-index: 1;
}
.loop-node:last-child::after { display: none; }
.loop-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(79,196,202,0.2);
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
.loop-label { color: #fff; font-size: 0.92rem; font-weight: 600; font-family: var(--ui); line-height: 1.3; }
.loop-sublabel { color: rgba(255,255,255,0.55); font-size: 0.78rem; font-family: var(--body); display: block; margin-top: 2px; }
@media (max-width: 820px) { .loop-visual { max-width: 100%; margin-left: 0; margin-top: 40px; } }

/* Five-stage card grid */
.stage-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}
.stage-card {
  padding: 28px 22px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper);
  transition: background .2s;
}
.stage-card:last-child { border-right: 0; }
.stage-card:hover { background: var(--light-teal); }
.stage-card .stage-num {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--teal-deep); display: flex; align-items: center; gap: 8px;
  font-family: var(--ui);
}
.stage-card .stage-num::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex: none;
}
.stage-card h3 { font-size: 1rem; margin-bottom: 4px; line-height: 1.25; }
.stage-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; flex: 1; font-family: var(--body); }
.stage-card .stage-link { font-size: 0.82rem; font-weight: 700; color: var(--teal-deep); font-family: var(--ui); margin-top: 4px; }
.stage-card .stage-link:hover { color: var(--navy); }
@media (max-width: 1000px) {
  .stage-card-grid { grid-template-columns: repeat(3, 1fr); }
  .stage-card:nth-child(3) { border-right: 0; }
  .stage-card:nth-child(4), .stage-card:nth-child(5) { border-top: 1px solid var(--hair); }
}
@media (max-width: 640px) {
  .stage-card-grid { grid-template-columns: 1fr; }
  .stage-card { border-right: 0; border-top: 1px solid var(--hair); }
  .stage-card:first-child { border-top: 0; }
}

/* Legacy stage strip (kept for compatibility) */
.stages-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.stages-strip .stage-col { padding: 30px 22px 30px 0; position: relative; }
.stages-strip .stage-col + .stage-col { padding-left: 26px; border-left: 1px solid var(--hair); }
.stage-num {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--teal-deep); display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--ui);
}
.stage-num::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.stage-col h3 { font-size: 1.18rem; margin-bottom: 8px; }
.stage-col p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.45; font-family: var(--body); }

/* Cards */
.card { background: #fff; border: 1px solid var(--hair); border-radius: 4px; padding: 32px; }
.card-grid { display: grid; gap: 22px; }

/* Engagement tier cards */
.tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tier-card {
  border: 1.5px solid var(--hair); border-radius: 6px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.tier-card:hover { border-color: var(--teal-line); box-shadow: 0 4px 20px rgba(24,53,94,.08); }
.tier-card.featured {
  border-color: var(--navy); border-width: 2px;
}
.tier-card .tier-badge {
  position: absolute; top: -13px; left: 20px;
  background: var(--navy); color: #fff;
  font-family: var(--ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.tier-card .tier-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); font-family: var(--display); }
.tier-card .tier-price { font-size: 1.35rem; font-weight: 700; color: var(--navy); font-family: var(--display); }
.tier-card .tier-price span { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); font-family: var(--body); }
.tier-card .tier-desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; flex: 1; font-family: var(--body); }
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }

/* Tool category cards */
.tool-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tool-category-card {
  border: 1px solid var(--hair); border-radius: 6px; padding: 24px;
  background: var(--paper);
}
.tool-category-label {
  font-family: var(--ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 14px; display: block;
}
.tool-item { padding: 12px 0; border-top: 1px solid var(--hair); }
.tool-item:first-of-type { border-top: 0; }
.tool-item-name { font-weight: 700; color: var(--navy); font-family: var(--ui); font-size: 0.98rem; }
.tool-item-role { font-size: 0.88rem; color: var(--ink-soft); font-family: var(--body); margin-top: 2px; }
.tool-item-cost { font-size: 0.78rem; color: var(--teal-deep); font-family: var(--ui); font-weight: 700; margin-top: 3px; }

/* Prompt cards */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.prompt-card {
  border: 1px solid var(--hair); border-radius: 6px;
  background: var(--paper); overflow: hidden;
}
.prompt-card-head {
  padding: 18px 22px; background: var(--light-navy);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.prompt-card-title { font-weight: 700; color: var(--navy); font-family: var(--ui); font-size: 0.98rem; }
.prompt-card-body { padding: 18px 22px; }
.prompt-card-text {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem; color: var(--ink); line-height: 1.6;
  white-space: pre-wrap; margin-bottom: 14px;
  background: var(--light-teal); padding: 14px 16px; border-radius: 3px;
  border: 1px solid var(--hair-teal);
}
.prompt-use { font-size: 0.82rem; color: var(--ink-soft); font-family: var(--body); }

/* Table */
.tbl-wrap { border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: #fff; }
table.ref { width: 100%; border-collapse: collapse; font-size: 1rem; font-family: var(--body); }
table.ref caption { caption-side: top; padding: 0; }
table.ref th {
  text-align: left; background: var(--navy); color: #fff; font-weight: 700;
  padding: 16px 22px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--ui);
}
table.ref td { padding: 18px 22px; border-top: 1px solid var(--hair); vertical-align: top; color: var(--ink); }
table.ref tr:nth-child(even) td { background: var(--paper-warm); }
table.ref .em { font-weight: 700; color: var(--navy); }
table.ref a.stage-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-weight: 700; color: var(--teal-deep); border-bottom: 2px solid var(--teal-line);
  font-family: var(--ui);
}
table.ref a.stage-tag:hover { border-color: var(--teal); }
@media (max-width: 720px) {
  table.ref, table.ref thead, table.ref tbody, table.ref tr, table.ref th, table.ref td { display: block; }
  table.ref thead { display: none; }
  table.ref tr { border-top: 1px solid var(--hair); padding: 8px 0; }
  table.ref tr:first-child { border-top: 0; }
  table.ref td { border: 0; padding: 6px 4px; }
  table.ref td::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; margin-bottom: 2px; font-family: var(--ui); }
  table.ref tr:nth-child(even) td { background: transparent; }
}

/* Callout */
.callout {
  border-left: 3px solid var(--teal);
  background: var(--light-teal);
  padding: 22px 26px; border-radius: 0 4px 4px 0;
}
.callout .callout-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
  margin-bottom: 8px; display: block; font-family: var(--ui);
}
.callout p { color: var(--ink); font-family: var(--body); }

/* Placeholder */
.imgslot {
  background: repeating-linear-gradient(135deg, #fff 0 14px, var(--light-navy) 14px 28px);
  border: 1px solid var(--hair); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-300); font-family: ui-monospace, monospace;
  font-size: 0.8rem; text-align: center; padding: 20px; min-height: 220px;
}
.supply-note {
  font-family: ui-monospace, monospace; font-size: 0.74rem; color: var(--navy-300);
  border: 1px dashed var(--teal-line); border-radius: 3px;
  padding: 3px 8px; display: inline-block; background: var(--light-teal);
}

/* Stage section (playbook) */
.stage-section { padding-block: clamp(48px, 6vw, 80px); scroll-margin-top: 150px; }
.stage-section + .stage-section { border-top: 1px solid var(--hair); }
.stage-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.stage-bignum {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--teal);
  line-height: 1; letter-spacing: -0.03em; font-family: var(--display);
}
.practice-list { display: grid; gap: 0; margin: 8px 0; }
.practice-list li { padding: 16px 0 16px 32px; position: relative; border-top: 1px solid var(--hair); font-family: var(--body); }
.practice-list li::before { content: ""; position: absolute; left: 2px; top: 26px; width: 14px; height: 2px; background: var(--teal); }

/* Stage nav (sticky) */
.stage-nav {
  position: sticky; top: 74px; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.stage-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.stage-nav a {
  padding: 16px 18px; font-weight: 700; font-size: 0.92rem;
  color: var(--navy-300); white-space: nowrap;
  border-bottom: 3px solid transparent; transition: .2s var(--ease);
  font-family: var(--ui);
}
.stage-nav a:hover { color: var(--navy); }
.stage-nav a.is-active, .stage-nav a[aria-current="true"] { color: var(--navy); border-color: var(--teal); }

/* Misc */
.kicker-rule { width: 48px; height: 3px; background: var(--teal); margin-bottom: 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.eyebrow-stack > * + * { margin-top: 22px; }

/* Before/after */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
.ba-grid > div { padding: 34px; }
.ba-grid .ba-before { background: var(--light-navy); }
.ba-grid .ba-after { background: var(--light-teal); }
.ba-grid h4 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 18px; font-family: var(--ui); }
.ba-grid .ba-before h4 { color: var(--navy-300); }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }

/* Metrics band */
.metrics-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
.metric-item { padding: 28px 24px; border-right: 1px solid var(--hair); text-align: center; }
.metric-item:last-child { border-right: 0; }
.metric-num { font-size: 2rem; font-weight: 700; color: var(--navy); font-family: var(--display); line-height: 1; }
.metric-label { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; font-family: var(--body); line-height: 1.4; }
@media (max-width: 700px) {
  .metrics-band { grid-template-columns: 1fr 1fr; }
  .metric-item:nth-child(2) { border-right: 0; }
  .metric-item:nth-child(3), .metric-item:nth-child(4) { border-top: 1px solid var(--hair); }
}

/* Next-steps sequence */
.steps-row { display: flex; gap: 0; position: relative; margin: 28px 0; }
.steps-row::before {
  content: ""; position: absolute; top: 22px; left: 22px;
  right: 22px; height: 1px; background: var(--hair); z-index: 0;
}
.step-item { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-label { font-size: 0.88rem; color: var(--ink); font-family: var(--body); line-height: 1.4; }
@media (max-width: 600px) {
  .steps-row { flex-direction: column; gap: 20px; }
  .steps-row::before { display: none; }
  .step-item { display: flex; align-items: flex-start; gap: 14px; text-align: left; }
  .step-num { flex-shrink: 0; margin: 0; }
}

/* _headers caching hint (comment only — actual file is separate) */
