/* Fourteener Technologies
   Palette: granite slate, snowfield, summit blue, aspen gold, pine */
:root {
  --granite: #1F2B30;
  --granite-2: #2C3B41;
  --snow: #F4F6F6;
  --paper: #FFFFFF;
  --fog: #D9E0E0;
  --stone: #5E6B70;
  --tenmile: #2F5D8C;
  --tenmile-soft: #E4ECF4;
  --aspen: #E2A62B;
  --aspen-deep: #8A5D06;
  --pine: #2D4A3E;

  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--snow);
  color: var(--granite);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 750; font-stretch: 108%; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--tenmile); }
:focus-visible { outline: 3px solid var(--aspen); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  padding: .8em 1.3em;
  border-radius: var(--radius);
  background: var(--granite);
  color: var(--snow);
  border: 2px solid var(--granite);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--tenmile); border-color: var(--tenmile); }
.btn-quiet { background: transparent; color: var(--granite); }
.btn-quiet:hover { background: var(--granite); color: var(--snow); border-color: var(--granite); }
.btn-small { padding: .5em 1em; font-size: .92rem; }
.btn-block { display: block; text-align: center; }
.btn-light { background: var(--aspen); border-color: var(--aspen); color: var(--granite); }
.btn-light:hover { background: var(--snow); border-color: var(--snow); color: var(--granite); }
.btn-ghost { background: transparent; color: var(--snow); border-color: rgba(244,246,246,.45); }
.btn-ghost:hover { border-color: var(--snow); background: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(244,246,246,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fog);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--granite); text-decoration: none; font-family: var(--sans); font-weight: 750; font-stretch: 110%; font-size: 1.1rem; }
.brand-mark { width: 34px; height: 24px; }
.nav { display: flex; align-items: center; gap: 22px; font-family: var(--sans); font-size: .95rem; }
.nav a:not(.btn) { color: var(--granite); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--tenmile); text-decoration: underline; text-underline-offset: 4px; }

/* Contour background: concentric topo lines */
.contours {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("/assets/contours.svg");
  background-size: 1400px auto;
  background-position: right -260px top -120px;
  background-repeat: no-repeat;
  opacity: .55;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { font-size: 1.2rem; color: var(--granite-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* AI answer mock: the signature element */
.answer {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--fog);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--fog), 0 24px 48px -28px rgba(31,43,48,.45);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.5;
  overflow: hidden;
}
.answer p { margin: 0; max-width: none; }
.answer-who { display: block; font-size: .78rem; font-weight: 650; color: var(--stone); margin-bottom: 4px; }
.answer-q { padding: 18px 20px; background: var(--tenmile-soft); border-bottom: 1px solid var(--fog); }
.answer-a { padding: 18px 20px 6px; }
.answer ol { margin: 10px 0 0; padding-left: 1.3em; }
.answer li { padding: 6px 0; color: var(--stone); }
.answer li.is-you {
  color: var(--granite);
  background: linear-gradient(transparent 0, transparent 0) ;
  position: relative;
  animation: rise 900ms 500ms cubic-bezier(.2,.7,.2,1) both;
}
.answer li.is-you::before {
  content: ""; position: absolute; left: -1.9em; right: -12px; top: 0; bottom: 0;
  background: #FBF1DA; border-left: 3px solid var(--aspen); border-radius: 3px; z-index: -1;
}
.answer li.is-you strong { color: var(--granite); }
.answer .cite { font-size: .75rem; color: var(--tenmile); vertical-align: super; }
.answer figcaption { padding: 14px 20px 18px; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--stone); border-top: 1px dashed var(--fog); margin-top: 12px; }
.answer-a ol { position: relative; z-index: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .answer li.is-you { animation: none; } }

/* Bands */
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band + .band { border-top: 1px solid var(--fog); }
.band-dark { background: var(--granite); color: var(--snow); border-top: 0 !important; }
.band-dark + .band { border-top: 0; }
.band-quiet { background: var(--paper); }
.section-lede { font-size: 1.15rem; color: var(--granite-2); }

/* Problem / solution */
.shift-table { margin-top: 40px; border-top: 2px solid var(--granite); }
.shift-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: 24px 0; border-bottom: 1px solid var(--fog); }
.shift-row p { margin: 0; }
.prob { color: var(--stone); }
.sol { color: var(--granite); padding-left: 18px; border-left: 3px solid var(--tenmile); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 2px solid var(--granite); }
.service { padding: 28px 28px 8px 0; }
.service + .service { border-left: 1px solid var(--fog); padding-left: 28px; }
.service-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; padding-right: 0; border-bottom: 1px solid var(--fog); padding-bottom: 28px; }
.service-lead h3 { grid-column: 1 / -1; font-size: 1.55rem; font-stretch: 108%; }
.service-lead + .service { border-left: 0; padding-left: 0; }
.service ul { margin: 0; padding-left: 1.1em; }
.service li { margin-bottom: .35em; }
.service li::marker { color: var(--aspen-deep); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 750; color: var(--granite);
  background: var(--aspen); border-radius: 50%;
}
.steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -24px; height: 2px; background: rgba(244,246,246,.18); }
.steps li:last-child::after { display: none; }
.steps p { color: #C6D0D1; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: start; }
.tier { background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; height: 100%; }
.tier ul { margin: 0 0 24px; padding-left: 1.1em; flex: 1; font-size: .98rem; }
.tier li { margin-bottom: .45em; }
.tier li::marker { color: var(--tenmile); }
.tier h3 { font-size: 1.4rem; margin-bottom: 2px; }
.tier-model { font-family: var(--sans); color: var(--stone); font-size: .95rem; margin-bottom: 18px; }
.tier-fit { color: var(--granite-2); font-size: .98rem; padding-bottom: 18px; border-bottom: 1px solid var(--fog); }
.tier-featured { border: 2px solid var(--granite); position: relative; box-shadow: 0 24px 48px -32px rgba(31,43,48,.55); }
.tier-flag { position: absolute; top: -14px; left: 24px; margin: 0; background: var(--aspen); color: var(--granite); font-family: var(--sans); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 4px; }

.price { font-family: var(--sans); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.amt { font-size: 2.6rem; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; }
.per, .from { color: var(--stone); font-size: .95rem; }
.price-sm .amt { font-size: 1.7rem; }

.extras { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 2px solid var(--granite); }
.extra { padding: 26px 0; border-bottom: 1px solid var(--fog); }
.extra h3 { margin-bottom: 6px; }
.extra p:last-child { margin: 0; color: var(--granite-2); font-size: 1rem; }
#audit { scroll-margin-top: 90px; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.promise-grid p { color: var(--granite-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--fog); }
.faq details:first-child { border-top: 2px solid var(--granite); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--sans); font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--tenmile); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--granite-2); padding-bottom: 8px; }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--pine); color: var(--snow); padding: clamp(72px, 10vw, 128px) 0; }
.contours-cta { opacity: .18; filter: invert(1); background-position: left -300px center; }
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta p { font-size: 1.18rem; color: #D7E2DC; max-width: 52ch; }

/* Footer */
.site-footer { background: var(--granite); color: #AEBABC; padding: 40px 0; font-size: .95rem; }
.site-footer strong { color: var(--snow); font-family: var(--sans); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.fine { font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .tier-featured { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--fog); padding-bottom: 24px; }
  .service-lead { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; gap: 8px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .shift-row { grid-template-columns: 1fr; gap: 12px; }
  .extras { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contours { background-size: 900px auto; background-position: right -380px top -60px; }
}

/* ---------- Multi-page additions ---------- */
.nav a[aria-current="page"] { color: var(--tenmile); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; font-family: var(--sans); font-weight: 650; background: none; border: 2px solid var(--granite); border-radius: var(--radius); padding: .4em .9em; color: var(--granite); cursor: pointer; }
@media (max-width: 1040px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--snow); border-bottom: 1px solid var(--fog); flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 24px; gap: 14px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { display: block; font-size: 1.05rem; }
}

.crumbs { font-family: var(--sans); font-size: .88rem; color: var(--stone); padding-top: 18px; }
.crumbs a { color: var(--stone); }

.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--fog); }
.page-hero-inner { position: relative; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.kicker { font-family: var(--sans); font-weight: 650; color: var(--aspen-deep); margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.fitbox { background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; padding: 24px 26px; }
.fitbox h3 { font-size: 1.05rem; }
.fitbox h3 + ul { margin-bottom: 20px; }
.fitbox-quiet { background: var(--snow); }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 8px; font-size: .98rem; }
.ticks li, .crosses li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 3px; top: .72em; width: 12px; height: 2px; background: var(--stone); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

.inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin-top: 32px; border-top: 2px solid var(--granite); }
.inc { padding: 24px 0 8px; border-bottom: 1px solid var(--fog); }
.inc ul { padding-left: 1.1em; margin: 0; font-size: .98rem; }
.inc li { margin-bottom: .4em; }
.inc li::marker { color: var(--aspen-deep); }

.deliver { padding-left: 1.1em; }
.deliver li { margin-bottom: .55em; }
.deliver li::marker { color: var(--tenmile); }

.rates { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .98rem; }
.rates th, .rates td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--fog); }
.rates thead th { font-family: var(--sans); font-size: .85rem; color: var(--stone); font-weight: 600; border-bottom: 2px solid var(--granite); }
.rates tbody th { font-family: var(--sans); font-weight: 650; width: 28%; }
.rates td.num { font-family: var(--sans); font-weight: 700; white-space: nowrap; width: 18%; }
.prose .rates td { font-family: var(--serif); }

.table-scroll { overflow-x: auto; margin-top: 24px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--fog); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--sans); font-weight: 700; background: var(--snow); scroll-margin-top: 90px; }
.compare thead th:nth-child(3) { background: #FBF1DA; }
.compare tbody th { font-family: var(--sans); font-weight: 600; color: var(--granite-2); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.rel { display: block; padding: 20px; border: 1px solid var(--fog); border-radius: 10px; text-decoration: none; color: var(--granite); background: var(--paper); }
.rel:hover { border-color: var(--granite); }
.rel-name { display: block; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; }
.rel-desc { display: block; font-size: .95rem; color: var(--granite-2); }

.lobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 32px; border-top: 2px solid var(--granite); }
.lob { display: flex; flex-direction: column; padding: 24px 22px 24px 0; text-decoration: none; color: var(--granite); border-bottom: 1px solid var(--fog); }
.lob + .lob { padding-left: 22px; border-left: 1px solid var(--fog); }
.lob p { flex: 1; color: var(--granite-2); font-size: .98rem; }
.lob-more { font-family: var(--sans); font-weight: 650; font-size: .92rem; color: var(--tenmile); text-decoration: underline; text-underline-offset: 4px; }
.lob:hover h3 { color: var(--tenmile); }

.svc-list { border-top: 2px solid var(--granite); }
.svc-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--fog); text-decoration: none; color: var(--granite); }
.svc-row .svc-name { font-size: 1.5rem; margin: 0; max-width: none; }
.svc-row p { margin: 0; color: var(--granite-2); }
.svc-row:hover .svc-name { color: var(--tenmile); }

.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; align-items: stretch; }
.call { background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; }
.call ul { padding-left: 1.1em; flex: 1; font-size: .96rem; color: var(--granite-2); }
.call-featured { border: 2px solid var(--granite); }
.note { margin-top: 24px; color: var(--granite-2); }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; margin-top: 28px; }
.topics ul { padding-left: 1.1em; font-size: .98rem; color: var(--granite-2); }
.topics li { margin-bottom: .35em; }

.plain-steps { padding-left: 1.3em; }
.plain-steps li { margin-bottom: .8em; }

.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 48px; margin-top: 28px; }
.terms > div { padding: 18px 0; border-top: 1px solid var(--fog); }
.terms p { margin: 0; color: var(--granite-2); }

.report { margin-top: 24px; background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; padding: 8px 24px; max-width: 760px; }
.report-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--fog); }
.report-row:last-child { border-bottom: 0; }
.report-k { font-family: var(--sans); font-weight: 700; }

.faq-page { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.faq-toc { position: sticky; top: 90px; font-family: var(--sans); }
.faq-toc ul { list-style: none; padding: 0; margin: 0; }
.faq-toc li { margin-bottom: 10px; }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.5rem; scroll-margin-top: 90px; }

.on-dark-link a { color: var(--aspen); }
.center-link { margin-top: 32px; text-align: center; }

.posts { display: grid; gap: 0; border-top: 2px solid var(--granite); }
.post { display: block; padding: 28px 0; border-bottom: 1px solid var(--fog); color: var(--granite); text-decoration: none; }
.post h2 { font-size: 1.5rem; max-width: 30ch; }
.post:hover h2 { color: var(--tenmile); }
.post p { color: var(--granite-2); margin-bottom: 0; }
.meta { font-family: var(--sans); font-size: .88rem; color: var(--stone); }

.article-head { padding-top: clamp(32px, 5vw, 64px); max-width: 820px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.prose { max-width: 760px; padding-bottom: 72px; font-size: 1.1rem; line-height: 1.72; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.sources { font-size: .95rem; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { color: #D7E2E2; }
.footer-brand { font-family: var(--sans); font-weight: 750; color: var(--snow); font-size: 1.1rem; }
.footer-h { font-family: var(--sans); font-weight: 650; color: var(--snow); }
.site-footer .fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(244,246,246,.12); }

@media (max-width: 960px) {
  .split, .faq-page, .footer-grid { grid-template-columns: 1fr; }
  .faq-toc { position: static; }
  .calls { grid-template-columns: 1fr; max-width: 520px; }
  .topics, .terms { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .lob + .lob { border-left: 0; padding-left: 0; }
  .lobs { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rates thead { display: none; }
  .rates tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--fog); }
  .rates th, .rates td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .report-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Focus, forms, industries ---------- */
.core { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.core-card { display: flex; flex-direction: column; padding: 28px; background: var(--paper); border: 1px solid var(--fog); border-top: 4px solid var(--tenmile); border-radius: 10px; color: var(--granite); text-decoration: none; }
.core-card h3 { font-size: 1.45rem; font-stretch: 108%; }
.core-card p { flex: 1; color: var(--granite-2); }
.core-card:hover { border-color: var(--granite); border-top-color: var(--tenmile); }
.also { margin-top: 24px; color: var(--granite-2); }

.qs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.qs p { margin: 0; padding: 14px 18px; background: var(--tenmile-soft); border-radius: 8px; font-family: var(--sans); font-size: .98rem; max-width: none; }

.lead-form { display: grid; gap: 14px; margin-top: 16px; font-family: var(--sans); }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.lead-form .opt { font-weight: 400; color: var(--stone); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; font-family: var(--serif); padding: .65em .8em; border: 1.5px solid var(--fog); border-radius: var(--radius); background: var(--paper); color: var(--granite); width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--tenmile); box-shadow: 0 0 0 3px var(--tenmile-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form button { justify-self: start; cursor: pointer; }
.lead-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.is-ok { color: var(--pine); }
.form-status.is-error { color: #A33A2B; }
.form-fine { font-size: .85rem; color: var(--stone); margin: 0; font-weight: 400; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fitbox p { font-size: .98rem; }

@media (max-width: 720px) {
  .core, .qs, .field-row { grid-template-columns: 1fr; }
}

.fitbox .fitbox-h { font-size: 1.05rem; max-width: none; }

.built { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 24px; border-top: 2px solid var(--granite); }
.built-item { padding: 22px 0; border-bottom: 1px solid var(--fog); }
.built-item p { margin: 0; color: var(--granite-2); }
@media (max-width: 720px) { .built { grid-template-columns: 1fr; } }

.core-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .core-3 { grid-template-columns: 1fr; } }

/* ---------- Live check, won't-sell, samples, compare, estimator ---------- */
.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; }
.hero-check { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 560px; }
.hero-check input { flex: 1 1 180px; font: inherit; font-family: var(--serif); padding: .75em .9em; border: 2px solid var(--granite); border-radius: var(--radius); background: var(--paper); color: var(--granite); }
.hero-check input:focus { outline: none; border-color: var(--tenmile); box-shadow: 0 0 0 3px var(--tenmile-soft); }
.hero-check .btn { flex: 0 0 auto; }
.hero-note { font-size: .95rem; color: var(--granite-2); margin-top: 12px; }

.band-dark .section-lede, .on-dark { color: #C6D0D1; }
.wont { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 32px; border-top: 2px solid var(--aspen); }
.wont > div { padding: 22px 0; border-bottom: 1px solid rgba(244,246,246,.14); }
.wont h3 { color: var(--snow); }
.wont p { margin: 0; color: #C6D0D1; }

.score-line { font-family: var(--sans); font-size: 1.4rem; font-weight: 700; }
.result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.result { background: var(--paper); border: 1px solid var(--fog); border-left: 4px solid var(--stone); border-radius: 8px; padding: 16px 18px; }
.result.is-yes { border-left-color: var(--pine); }
.result.is-no { border-left-color: #A33A2B; }
.result p { margin: 0 0 8px; max-width: none; }
.result-meta { font-family: var(--sans); font-weight: 700; }
.result-q { font-family: var(--sans); font-size: .92rem; color: var(--stone); }
.result-a { font-size: .96rem; }
.result-src { font-family: var(--sans); font-size: .85rem; color: var(--stone); }
.result-next { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fog); }

.sample { background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; padding: 8px 24px 20px; margin-top: 20px; }
.sample-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 2px solid var(--granite); font-family: var(--sans); }
.sample-head span { color: var(--stone); font-size: .92rem; }
.sample h3 { margin-top: 24px; }

.compare-4 td.us { background: #FBF1DA; font-weight: 600; }
.compare-4 thead th:nth-child(3) { background: var(--snow); }
.compare-4 thead th:nth-child(2) { background: #FBF1DA; }

.estimator .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.estimator .check input { width: auto; }
.estimate-out { position: sticky; top: 90px; }
.est-label { font-family: var(--sans); color: var(--stone); margin: 0; }
.est-total { font-family: var(--sans); font-size: 2.8rem; font-weight: 800; font-stretch: 110%; margin: 4px 0 12px; }
.est-lines { padding-left: 1.1em; font-size: .95rem; color: var(--granite-2); }
.est-fine { font-size: .88rem; color: var(--stone); }

@media (max-width: 960px) { .wont { grid-template-columns: 1fr; } .estimate-out { position: static; } }

/* ---------- Expertise, call menu, retainers, glossary ---------- */
.qas { border-top: 2px solid var(--granite); margin-top: 20px; }
.qa { padding: 20px 0; border-bottom: 1px solid var(--fog); }
.qa h3 { font-size: 1.12rem; }
.qa p { margin: 0; color: var(--granite-2); }
.mini-rates { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: .95rem; }
.mini-rates th, .mini-rates td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--fog); vertical-align: top; }
.mini-rates th { font-family: var(--sans); font-weight: 600; }
.mini-rates td.num { text-align: right; font-family: var(--sans); font-weight: 700; padding-left: 12px; }

.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 28px; border-top: 2px solid var(--granite); }
.menu-item { padding: 22px 0; border-bottom: 1px solid var(--fog); }
.menu-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.menu-top h3 { margin: 0; }
.menu-price { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin: 0; white-space: nowrap; }
.menu-price span { font-weight: 500; color: var(--stone); font-size: .9rem; }
.menu-item > p { color: var(--granite-2); margin: 8px 0 10px; }
.menu-link { font-family: var(--sans); font-weight: 650; font-size: .95rem; }

.rets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.ret { background: var(--paper); border: 1px solid var(--fog); border-top: 4px solid var(--tenmile); border-radius: 10px; padding: 22px; }
.ret:first-child { border-top-color: var(--aspen); }
.ret-price { font-family: var(--sans); font-weight: 800; font-size: 1.4rem; margin: 0 0 8px; }
.ret p:last-child { color: var(--granite-2); margin: 0; }

.glossary { margin: 0; border-top: 2px solid var(--granite); columns: 2; column-gap: 48px; }
.term { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--fog); }
.term dt { font-family: var(--sans); font-weight: 700; margin-bottom: 4px; }
.term dd { margin: 0; color: var(--granite-2); }

.author-box { margin-top: 40px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--fog); border-left: 4px solid var(--tenmile); border-radius: 8px; font-size: 1rem; }
.author-box p { margin: 0 0 8px; }
.author-h { font-family: var(--sans); font-weight: 700; }

@media (max-width: 960px) { .menu, .rets { grid-template-columns: 1fr; } .glossary { columns: 1; } }

/* ---------- Case studies ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 2px solid var(--granite); margin-top: 8px; }
.stat { padding: 20px 20px 18px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--fog); }
.stat-n { font-family: var(--sans); font-size: 2.6rem; font-weight: 800; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; margin: 0 0 8px; color: var(--granite); }
.stat-l { margin: 0; color: var(--granite-2); font-size: .98rem; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; padding: 26px; background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; color: var(--granite); text-decoration: none; }
.case-card:hover { border-color: var(--granite); }
.case-card h2 { font-size: 1.35rem; max-width: none; }
.case-card p { color: var(--granite-2); }
.case-card .case-stat { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fog); font-family: var(--sans); color: var(--granite); }
.case-body h2 { margin-top: 1.4em; }
.case-body h2:first-child { margin-top: 0; }
@media (max-width: 720px) { .cases { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--fog); } }

/* ---------- Implementation repositioning ---------- */
.buildlog { margin: 0; background: var(--paper); border: 1px solid var(--fog); border-radius: 10px; box-shadow: 0 1px 0 var(--fog), 0 24px 48px -28px rgba(31,43,48,.45); font-family: var(--sans); font-size: .95rem; overflow: hidden; }
.bl-head { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: var(--granite); color: var(--snow); }
.bl-k { font-size: .8rem; color: var(--aspen); font-weight: 650; }
.bl-v { font-weight: 700; font-size: 1.02rem; }
.bl-steps { list-style: none; margin: 0; padding: 8px 20px; }
.bl-steps li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--fog); position: relative; line-height: 1.4; }
.bl-steps li:last-child { border-bottom: 0; }
.bl-steps li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--pine); background: var(--pine); }
.bl-steps li.now::before { background: var(--aspen); border-color: var(--aspen); animation: pulse 1.6s ease-in-out 3; }
.bl-wk { color: var(--stone); font-weight: 600; font-size: .85rem; }
.buildlog figcaption { padding: 12px 20px 16px; font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--stone); border-top: 1px dashed var(--fog); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(226,166,43,.25); } }
@media (prefers-reduced-motion: reduce) { .bl-steps li.now::before { animation: none; } }
.hero-check { margin-top: 18px; }
.sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 2px solid var(--granite); }
.sides > div { padding: 22px 24px 8px 0; }
.sides > div + div { padding-left: 24px; border-left: 1px solid var(--fog); }
.side-n { font-family: var(--sans); font-size: 1.9rem; font-weight: 800; font-stretch: 110%; margin: 0 0 6px; }
.sides p:last-child { color: var(--granite-2); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step-when { color: var(--aspen) !important; font-family: var(--sans); font-weight: 650; font-size: .88rem; margin: 0 0 6px; }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 24px; border-top: 2px solid var(--granite); }
.stack-col { padding: 20px 0; border-bottom: 1px solid var(--fog); }
.stack-col ul { padding-left: 1.1em; margin: 0; color: var(--granite-2); }
.stack-col li { margin-bottom: .3em; }
@media (max-width: 960px) { .sides, .stack { grid-template-columns: 1fr; } .sides > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--fog); } .steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .steps-5 { grid-template-columns: 1fr; } .bl-steps li { grid-template-columns: 1fr; gap: 2px; } }

.brand span { white-space: nowrap; }
.nav { white-space: nowrap; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--snow); border-bottom: 1px solid var(--fog); flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 24px; gap: 14px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { display: block; font-size: 1.05rem; }
}
.ret-link { color: var(--granite); text-decoration: none; }
.ret-link:hover { border-color: var(--granite); }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.hero-check input { border: 1.5px solid var(--fog); }
.hero-check input:focus { border-color: var(--tenmile); }

/* Pricing page sections */
.jump { margin-top: 18px; font-family: var(--sans); font-size: .95rem; }
.jump a { color: var(--tenmile); }
.sub-h { margin-top: 40px; font-size: 1.15rem; }
.rates .rates-group { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--aspen-deep); padding-top: 28px; border-bottom: 2px solid var(--fog); }

/* Audience split */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.aud-card { display: block; background: var(--paper); border: 1px solid var(--fog); border-top: 4px solid var(--tenmile); border-radius: var(--radius); padding: 28px; color: inherit; text-decoration: none; }
.aud-card:nth-child(2) { border-top-color: var(--aspen); }
.aud-card:hover { border-color: var(--tenmile); }
.aud-card h3 { margin: 0 0 8px; }
.aud-card .aud-who { font-family: var(--sans); font-size: .9rem; color: var(--stone); margin: 0 0 14px; }
.aud-card ul { margin: 0 0 16px; padding-left: 18px; }
.aud-card li { margin: 6px 0; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }
.wont.wont-light > div { border-bottom-color: var(--fog); }
.wont.wont-light h3 { color: var(--granite); }
.wont.wont-light p { color: var(--granite-2); }
.tier-alt { font-family: var(--sans); font-size: .85rem; color: var(--aspen-deep); margin: -4px 0 10px; }

.core-auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.contours { animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { from { background-position-x: right -120px; } to { background-position-x: right -40px; } }
.core-card, .ret, .lob, .aud-card, .tool-card, .call, .tier { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.core-card:hover, .ret-link:hover, .lob:hover, .aud-card:hover, .call:hover, .tier:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31,43,48,.35); }
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(31,43,48,.5); }
.btn:active { transform: none; box-shadow: none; }
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(31,43,48,.4); }
.bl-steps li { transition: opacity .4s ease, transform .4s ease; }
.bl-steps li.pending { opacity: .25; transform: translateX(-6px); }
.bl-steps li.pending::before { background: transparent; }
.bl-steps li.ticked::before { animation: tick .35s ease; }
@keyframes tick { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rot { display: inline-block; color: var(--tenmile); font-weight: 600; transition: opacity .25s ease, transform .25s ease; }
.rot.out { opacity: 0; transform: translateY(-8px); }

/* Works-with marquee (names, not logos) */
.mq-band { padding: 22px 0; border-bottom: 1px solid var(--fog); background: var(--paper); overflow: hidden; }
.mq-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); text-align: center; margin: 0 0 12px; }
.mq { display: flex; width: max-content; gap: 12px; animation: mq 48s linear infinite; }
.mq-band:hover .mq { animation-play-state: paused; }
.mq span { font-family: var(--sans); font-weight: 700; font-size: .98rem; color: var(--granite-2); padding: 8px 16px; border: 1px solid var(--fog); border-radius: 999px; background: var(--snow); white-space: nowrap; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,246,246,.96); border-top: 1px solid var(--fog); backdrop-filter: blur(6px); }
  .mbar .btn { text-align: center; padding: .7em .5em; font-size: .95rem; }
  body { padding-bottom: 72px; }
}

/* Footer social */
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: .85rem; padding: 6px 12px; border: 1px solid rgba(244,246,246,.25); border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .contours, .mq { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .core-card:hover, .ret-link:hover, .lob:hover, .aud-card:hover, .call:hover, .tier:hover, .btn:hover { transform: none; }
}
