/* Vaulted Parts — one-page site. Tokens match the approved design canvas. */
:root {
  --ground: #F5F3EE; --band: #ECE8E0; --ink: #1A1917; --muted: #5C5A55; --hint: #6B6862; --line: #D9D5CC;
  --accent: #C8511B; --accent-hover: #A8420F; --white: #FFFFFF;
  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px; --pad: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-hover); }
sup { font-size: 0.6em; line-height: 0; } sup a { color: var(--hint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--muted); } .small { font-size: 16px; line-height: 1.4; } .note { font-size: 18px; line-height: 1.4; } .center { text-align: center; } .strong { font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.15; }
.h4 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; white-space: nowrap; transition: transform .18s ease, background-color .18s ease; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 19px; }
.link { background: none; border: 0; padding: 10px 0; margin: -10px 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.link:hover { color: var(--accent-hover); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 2px solid var(--accent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 12px; transition: padding .2s ease; }
.site-header.scrolled .header-row { padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
a.wordmark { display: inline-block; padding: 7px 0; margin: -7px 0; }
.tagline { font-size: 16px; line-height: 1.35; color: var(--muted); }
.site-header.scrolled .tagline { display: none; }

/* hero */
.hero { padding: 40px 0 44px; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.cta .btn { width: 100%; }
.hero-print { border: 1px solid var(--ink); background: var(--white); }
.print { display: block; width: 100%; height: auto; }
.print text { font-family: var(--font); fill: var(--ink); }
.print .t-dim { font-size: 13px; font-weight: 600; } .print .t-note { font-size: 12px; }
.print .t-block { font-size: 11px; fill: var(--muted); } .print .t-block-b { font-weight: 600; letter-spacing: 0.08em; }
.print .p-frame { fill: none; stroke: none; }
.print .p-center { stroke: #8A877F; stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.print .p-outline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.print .p-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.print .p-hidden { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; }
.print .p-dim line, .print .p-dim path { fill: none; stroke: var(--ink); stroke-width: 1; }
.print .p-dim .p-arrow { fill: var(--ink); stroke: none; }
.print .p-title line { stroke: var(--ink); stroke-width: 1; }
.print .p-stamp rect { fill: none; stroke: var(--accent); stroke-width: 2; } .print .p-stamp .inner { stroke-width: 1; }
.print .p-stamp text { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; fill: var(--accent); }

/* hero draw-in */
.print .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.1s ease forwards; }
.print .p-center.draw { stroke-dasharray: 14 4 2 4; stroke-dashoffset: 0; opacity: 0; animation: fadein .6s ease forwards; }
.print .d1 { animation-delay: .1s; } .print .d2 { animation-delay: .3s; } .print .d3 { animation-delay: .9s; } .print .d4 { animation-delay: 1.3s; }
.print .fade { opacity: 0; animation: fadein .5s ease forwards; } .print .f5 { animation-delay: 1.9s; }
.print .stamp { opacity: 0; transform-origin: 330px 232px; animation: stamp .35s cubic-bezier(.2,.9,.3,1.3) forwards; } .print .f6 { animation-delay: 2.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.25); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* bands and rules */
.band { background: var(--band); }
.rule { border-bottom: 1px solid var(--line); }
section { padding: 44px 0; }
section h2 { margin-bottom: 22px; }
.two-col { display: grid; gap: 28px; }
.two-col > div > p { margin-top: 10px; }

/* stats */
.stats { padding: 36px 0 32px; }
.stat-grid { list-style: none; padding: 0; display: grid; gap: 22px; margin-bottom: 20px; }
.stat-grid li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid var(--accent); }
.stat-n { font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* compare table */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.compare thead th { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.compare thead th.with { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--ink); } .compare td.with { font-weight: 600; }
@media (max-width: 719px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { display: block; width: auto; padding: 0; border: 0; }
  .compare tbody th { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: 66px 1fr; gap: 10px; margin-top: 6px; font-size: 18px; line-height: 1.45; }
  .compare td::before { content: attr(data-l); font-size: 14px; font-weight: 600; color: var(--hint); padding-top: 3px; }
  .compare td.with::before { color: var(--accent); }
}

/* steps + process line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; margin-left: 6px; padding-left: 22px; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; row-gap: 4px; }
.step .num { grid-row: 1 / span 3; font-size: 30px; line-height: 1; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 19px; line-height: 1.2; font-weight: 700; }
.step p { grid-column: 2; }
.step .node { position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; background: var(--line); border: 2px solid var(--ground); transition: background-color .4s ease; z-index: 1; }
.step .seg { position: absolute; left: -23px; top: 20px; bottom: -26px; width: 2px; background: var(--line); }
.step .seg::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .6s ease; }
.step.on .node { background: var(--accent); }
.step.on .seg::after { transform: scaleY(1); }
.step.last .seg { display: none; }
.loop { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); }
.loop-label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.loop-stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.loop-stamps span { text-align: center; }
.loop-stamps span { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1.5px solid var(--accent); padding: 6px 10px; opacity: .25; animation: stampcycle 8s linear infinite; }
.loop-stamps span:nth-child(1) { animation-delay: 0s; } .loop-stamps span:nth-child(2) { animation-delay: 2s; }
.loop-stamps span:nth-child(3) { animation-delay: 4s; } .loop-stamps span:nth-child(4) { animation-delay: 6s; }
@keyframes stampcycle { 0%, 5% { opacity: .25; } 9%, 100% { opacity: 1; } }

/* ticks */
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--accent); }

/* final */
.final { padding: 44px 0; }
.final-grid { align-items: center; }
.final .cta { justify-content: center; }

/* footer */
.site-footer { border-top: 2px solid var(--ink); padding: 32px 0 40px; }
.footer-grid { display: grid; gap: 20px; }
.site-footer .wordmark { display: block; margin-bottom: 4px; }
.site-footer > .wrap > div:first-child p { font-size: 16px; }
.site-footer p + p { margin-top: 8px; }
.sources { padding-top: 10px; border-top: 1px solid var(--line); }
.sources p { font-size: 12px; line-height: 1.45; }
.sources p + p { margin-top: 6px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* talk dialog */
.talk { border: 0; padding: 0; background: var(--ground); color: var(--ink); width: 100%; max-width: 100%; margin: auto 0 0 0; border-top: 3px solid var(--accent); max-height: 92vh; overflow: auto; }
.talk::backdrop { background: rgba(26, 25, 23, .45); }
.talk-form, .talk-sent { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 28px; }
.talk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.talk-head h2 { font-size: 26px; }
.close { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.close:focus-visible { outline: 3px solid var(--ink); }
.talk-intro-desk, .talk-note-desk { display: none; }
.fields { display: grid; gap: 10px; }
.fields label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.fields input { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 18px; color: var(--ink); }
.fields input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.error { color: var(--accent-hover); font-weight: 600; }
.sent-row { display: flex; gap: 20px; align-items: center; }
.qr { width: 126px; height: 126px; flex: 0 0 126px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-placeholder { font-size: 14px; color: var(--hint); }
.reach { display: none; border: 0; padding: 0; margin: 0; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
body.is-desktop .reach { display: flex; }
.reach legend { width: 100%; padding: 0; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--muted); }
.reach label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 18px; cursor: pointer; }
.reach input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 16px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; accent-color: var(--accent); }
.botcheck { min-height: 65px; }
body.is-desktop .talk-intro-phone, body.is-desktop .talk-note-phone { display: none; }
body.is-desktop .talk-intro-desk, body.is-desktop .talk-note-desk { display: block; }

/* desktop */
@media (min-width: 720px) {
  :root { --pad: 40px; }
  .header-row { padding-top: 16px; padding-bottom: 14px; }
  .brand { flex-direction: row; align-items: baseline; gap: 18px; }
  .wordmark { font-size: 22px; }
  .hero { padding: 80px 0 72px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
  .cta { flex-direction: row; align-items: center; gap: 20px; }
  .cta .btn { width: auto; }
  section { padding: 64px 0; }
  section h2 { margin-bottom: 28px; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  body { font-size: 20px; }
  .two-col > div > p { font-size: 20px; margin-top: 14px; }
  .stats { padding: 56px 0 48px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 28px; }
  .stat-grid li { padding-left: 20px; gap: 8px; }
  .stat-n { font-size: 64px; letter-spacing: -0.03em; } .stat-l { font-size: 20px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-left: 0; padding-left: 0; }
  .step { grid-template-columns: 1fr; row-gap: 10px; padding-top: 30px; align-content: start; }
  .step .num { grid-row: auto; font-size: 34px; }
  .step p { grid-column: 1; }
  .loop { flex-direction: row; align-items: center; gap: 24px; margin-left: 0; margin-top: 40px; padding: 14px 20px; }
  .loop-label { white-space: nowrap; }
  .loop-stamps { display: flex; flex: 1; flex-wrap: nowrap; gap: 12px; }
  .loop-stamps span { flex: 1; }
  .step h3 { font-size: 21px; }
  .step .node { left: 0; top: 0; width: 16px; height: 16px; border: 0; }
  .step .seg { left: 16px; top: 7px; bottom: auto; right: -36px; width: auto; height: 2px; }
  .step .seg::after { transform: scaleX(0); transform-origin: left; }
  .step.on .seg::after { transform: scaleX(1); }
  .ticks li { font-size: 20px; }
  .final { padding: 72px 0; }
  .final .cta { flex-direction: column; align-items: stretch; }
  .site-footer { padding: 40px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; }
  .sources { padding-top: 0; border-top: 0; }
  .talk { width: 560px; max-width: calc(100% - 40px); margin: auto; border-top-width: 3px; }
  .talk-form, .talk-sent { padding: 32px 36px; }
  .talk-head h2 { font-size: 30px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print { .js .reveal { opacity: 1; transform: none; } .site-header { position: static; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print .draw, .print .fade, .print .stamp { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step .node, .step .seg::after { transition: none; }
  .loop-stamps span { animation: none; opacity: 1; }
  .btn { transition: none; }
}
