:root {
  --paper: #F2F5FA;
  --surface: #FFFFFF;
  --ink: #071A3D;
  --muted: #455773;
  --border: #C8D2E3;
  --pine: #0B2B5B;
  --pine-hover: #071F43;
  --pine-dark: #061733;
  --attention: #F4C430;
  --red: #C92333;
  --red-hover: #A91D2A;
  --radius: 8px;
  --container: 1200px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-mockup: 0 24px 64px rgba(6, 23, 51, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .012em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: .98; }
h2 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.02; }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; }

.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;
}
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 6px; background: var(--pine-dark); color: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--attention); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.section-block { padding: clamp(88px, 10vw, 144px) 0; }
.utility-label {
  color: var(--pine);
  font-family: "Source Code Pro", monospace;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}
.utility-light { color: var(--border); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(200, 210, 227, .9); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); }
.nav-wrap { display: grid; min-height: 72px; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: 10px; font-family: "Jersey 10", "Arial Narrow", sans-serif; font-size: 1.55rem; font-weight: 400; letter-spacing: .02em; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; grid-template-columns: repeat(2, 7px); place-content: center; gap: 3px; border-radius: 6px; background: var(--red); }
.brand-mark span { width: 7px; height: 7px; border-radius: 2px; background: var(--attention); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a, .footer-grid nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none; }
.site-nav a::after, .footer-grid nav a::after { position: absolute; right: 0; bottom: -3px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 160ms var(--ease-out); }
.site-nav a:hover::after, .footer-grid nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid transparent; border-radius: 6px; font-size: .92rem; font-weight: 600; text-decoration: none; transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); color: var(--surface); }
.button-primary:hover { background: var(--red-hover); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--ink); }
.button-secondary:hover { border-color: var(--pine); color: var(--pine); }
.button-small { min-height: 44px; padding-inline: 17px; font-size: .82rem; }
.button-light { background: var(--surface); color: var(--pine-dark); }
.button-light:hover { background: var(--paper); }
.button-outline-light { border-color: rgba(255, 255, 255, .32); background: transparent; color: var(--surface); }
.button-outline-light:hover { border-color: var(--surface); }
.text-link { position: relative; display: inline-flex; min-height: 48px; align-items: center; gap: 8px; color: var(--pine); font-weight: 600; text-decoration: none; }
.text-link::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 160ms var(--ease-out); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }

.hero { min-height: calc(100vh - 72px); padding: clamp(70px, 8.5vw, 116px) 0 clamp(82px, 9vw, 124px); border-bottom: 1px solid var(--border); }
.hero-grid { align-items: center; }
.hero-copy { grid-column: 1 / span 6; padding: 24px 0 42px; }
.hero-copy .utility-label { margin-bottom: 24px; }
.hero-copy h1 { max-width: 720px; }
.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { color: var(--red); }
.hero-intro { max-width: 600px; margin-top: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 11px 22px; margin: 27px 0 0; padding: 0; color: var(--muted); font-size: .83rem; list-style: none; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--pine); stroke-width: 2.2; }

.hero-demo-wrap { grid-column: 8 / span 5; width: min(100%, 450px); justify-self: end; }
.demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.demo-caption > span { display: inline-flex; align-items: center; gap: 8px; }
.demo-toggle { min-height: 44px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--pine); font-size: .75rem; font-weight: 600; transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out); }
.demo-toggle:hover { border-color: var(--pine); background: var(--paper); }
.live-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.phone-demo { display: grid; height: 620px; overflow: hidden; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-mockup); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.phone-demo:hover { transform: translateY(-3px); box-shadow: 0 29px 72px rgba(6, 23, 51, .22); }
.phone-topbar { display: grid; min-height: 72px; grid-template-columns: 40px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--paper); }
.phone-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--pine); color: var(--surface); font-family: "Source Code Pro", monospace; font-size: .75rem; font-weight: 600; }
.phone-topbar > span:nth-child(2) { display: grid; }
.phone-topbar strong { font-size: .9rem; }
.phone-topbar small { color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.phone-options { display: grid; width: 36px; height: 36px; place-items: center; color: var(--muted); }
.phone-messages { display: flex; min-height: 0; overflow-y: hidden; flex-direction: column; gap: 10px; padding: 22px 18px; background-color: var(--paper); background-image: linear-gradient(rgba(200, 210, 227, .48) 1px, transparent 1px); background-size: 100% 32px; }
.phone-messages::before { flex: 1 1 auto; content: ""; }
.chat-message { width: fit-content; max-width: 84%; padding: 10px 12px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.customer-message { align-self: flex-end; background: var(--surface); }
.assistant-message { align-self: flex-start; border-color: var(--pine); }
.chat-message p { font-size: .88rem; line-height: 1.42; }
.chat-message time { display: block; margin-top: 5px; color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; text-align: right; }
.message-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--pine); font-family: "Source Code Pro", monospace; font-size: .75rem; font-weight: 600; }
.assistant-mini { display: grid; width: 20px; height: 20px; grid-template-columns: repeat(2, 4px); place-content: center; gap: 2px; border-radius: 4px; background: var(--pine); }
.assistant-mini i { width: 4px; height: 4px; border-radius: 50%; background: var(--surface); }
.typing-row { display: flex; width: fit-content; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.typing-row > span:last-child { display: flex; align-items: center; gap: 7px; color: var(--pine); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: typing 900ms ease-in-out infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: 120ms; }
.typing-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes typing { to { opacity: .35; transform: translateY(-2px); } }
.approval-slip { align-self: stretch; padding: 12px; border: 1px solid var(--attention); border-radius: 8px; background: var(--surface); }
.slip-heading { display: flex; align-items: center; gap: 9px; }
.slip-heading > span:last-child { display: grid; }
.slip-heading strong { font-size: .78rem; }
.slip-heading small { color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.attention-dot { width: 10px; height: 10px; border: 3px solid rgba(244, 196, 48, .3); border-radius: 2px; background: var(--attention); background-clip: padding-box; }
.slip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.slip-actions button { min-height: 38px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 600; }
.slip-actions .approve-demo { border-color: var(--pine); background: var(--pine); color: var(--surface); }
.approval-slip.is-pressing .approve-demo { transform: translateY(1px) scale(.98); background: var(--pine-hover); }
.calendar-chip { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); }
.calendar-chip svg { width: 18px; height: 18px; color: var(--pine); }
.calendar-chip > span { display: grid; }
.calendar-chip small { color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.calendar-chip strong { font-size: .75rem; }
.phone-input { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.send-circle { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--pine); color: var(--surface); }
.send-circle svg { width: 16px; height: 16px; }
.pause-note { margin-top: 10px; color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; text-align: right; }
.demo-step { opacity: 0; transform: translateY(7px); transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out); }
.demo-step.is-visible { opacity: 1; transform: translateY(0); }
.demo-step.is-hidden { display: none; }

.load-line { opacity: 0; transform: translateY(16px); }
.page-ready .load-line { opacity: 1; transform: translateY(0); transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-out); }
.page-ready .load-line:nth-child(2) { transition-delay: 80ms; }
.page-ready .load-line:nth-child(3) { transition-delay: 160ms; }
.page-ready .load-line:nth-child(4) { transition-delay: 240ms; }
.page-ready .load-line:nth-child(5) { transition-delay: 320ms; }
.hero-demo-wrap.load-line { transition-delay: 360ms; }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }

.section-heading { display: grid; max-width: 800px; gap: 18px; margin-bottom: clamp(48px, 6vw, 74px); }
.section-heading h2 { max-width: 790px; }
.section-heading > p:last-child { color: var(--muted); }
.steps-list { margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.step-row { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5.5vw, 68px) 0; border-bottom: 1px solid var(--border); }
.step-number { align-self: start; color: var(--red); font-family: "Source Code Pro", monospace; font-size: .78rem; font-weight: 700; }
.step-row h3 { max-width: 540px; }
.step-row p { max-width: 590px; margin-top: 13px; color: var(--muted); }
.step-receipt, .rule-sentence, .handover-card { justify-self: end; width: min(100%, 380px); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.step-receipt { display: grid; padding: 17px; }
.step-receipt span { margin-bottom: 9px; color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.step-receipt strong { display: flex; min-height: 36px; align-items: center; border-top: 1px solid var(--border); font-size: .84rem; font-weight: 500; }
.rule-sentence { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 20px; font-size: .86rem; }
.rule-sentence span { color: var(--muted); }
.rule-sentence strong { color: var(--pine); }
.handover-card { padding: 16px; }
.handover-line { display: flex; align-items: center; gap: 10px; }
.handover-line > i { width: 9px; height: 9px; border-radius: 50%; background: var(--pine); }
.handover-line > span { display: grid; }
.handover-line small { color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.handover-line strong { font-size: .86rem; }
.handover-card button { width: 100%; min-height: 42px; margin-top: 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: .76rem; font-weight: 600; }

.control-band { background: var(--pine-dark); color: var(--surface); }
.control-scroll { min-height: auto; }
.control-sticky { position: relative; align-items: center; padding: clamp(80px, 9vw, 120px) 0; }
.control-copy { grid-column: 1 / span 5; }
.control-copy h2 { max-width: 540px; margin-top: 18px; }
.control-copy > p:nth-of-type(2) { max-width: 520px; margin-top: 22px; color: var(--border); }
.control-progress { margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(200, 210, 227, .24); list-style: none; }
.control-progress li { border-bottom: 1px solid rgba(200, 210, 227, .24); }
.control-progress button { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .6); font-size: .9rem; text-align: left; transition: color 240ms var(--ease-out); }
.control-progress button:hover { color: var(--surface); }
.control-progress li span { color: var(--attention); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.control-progress li.is-active button { color: var(--surface); }
.control-visual { position: relative; grid-column: 7 / span 6; min-height: 520px; }
.control-state { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(200, 210, 227, .36); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(6, 23, 51, .28); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.control-state.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mockup-bar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--paper); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.mockup-bar > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mockup-bar small { color: var(--muted); font-size: .75rem; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; }
.state-active, .state-human { background: var(--pine); }
.state-waiting { background: var(--attention); }
.state-body { display: grid; align-content: start; gap: 24px; padding: clamp(24px, 4vw, 42px); }
.contact-row { display: flex; align-items: center; gap: 11px; }
.contact-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--red); color: var(--surface); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.contact-row > span:last-child { display: grid; }
.contact-row small { color: var(--muted); font-size: .75rem; }
.state-message { display: flex; gap: 10px; max-width: 430px; padding: 17px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); }
.state-message p { font-size: .92rem; }
.state-note, .human-note { display: flex; align-items: center; gap: 12px; padding: 15px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.state-note svg, .human-note svg { flex: 0 0 auto; color: var(--pine); }
.state-note > span, .human-note > span { display: grid; }
.state-note small, .human-note small { color: var(--muted); font-size: .76rem; }
.review-panel { padding: 20px; border: 1px solid var(--attention); border-radius: 8px; }
.review-label { color: var(--red); font-family: "Source Code Pro", monospace; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.review-panel p { margin: 13px 0 20px; }
.review-panel > div { display: flex; gap: 8px; }
.review-panel .button-outline-light { border-color: var(--border); color: var(--ink); }
.composer-preview { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: .86rem; }
.composer-preview button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 6px; background: var(--pine); color: var(--surface); font-weight: 600; }

.industries { padding: 34px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.industries-inner { display: flex; align-items: center; gap: 30px; }
.industries-inner > p { min-width: 210px; }
.industries ul { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin: 0; padding: 0; list-style: none; }
.industries li { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: .78rem; }

.story-grid { align-items: center; }
.story-copy { grid-column: 1 / span 6; }
.story-copy h2 { margin-top: 18px; }
.story-copy > p:not(.utility-label) { max-width: 630px; margin-top: 22px; color: var(--muted); }
.story-copy blockquote { max-width: 580px; margin-top: 30px; padding-left: 19px; border-left: 3px solid var(--red); font-family: "Source Code Pro", monospace; font-size: 1.05rem; line-height: 1.55; }
.story-copy cite { display: block; margin-top: 10px; color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; font-style: normal; }
.story-ledger { grid-column: 8 / span 5; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ledger-header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--border); background: var(--pine-dark); color: var(--surface); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.ledger-header span:last-child { color: var(--muted); }
.story-ledger dl { margin: 0; }
.story-ledger dl > div { display: grid; min-height: 116px; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px; border-bottom: 1px solid var(--border); }
.story-ledger dt { max-width: 230px; color: var(--muted); font-size: .86rem; }
.story-ledger dd { margin: 0; color: var(--red); font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-size: 2.7rem; font-weight: 400; letter-spacing: .01em; }
.ledger-note { display: grid; padding: 18px; background: var(--paper); }
.ledger-note span, .ledger-note small { color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }
.ledger-note strong { margin: 5px 0; }

.faq-grid { align-items: start; }
.faq-intro { position: sticky; top: 112px; grid-column: 1 / span 5; }
.faq-intro h2 { margin-top: 18px; }
.faq-intro > p:last-child { max-width: 410px; margin-top: 20px; color: var(--muted); }
.faq-list { grid-column: 7 / span 6; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: grid; min-height: 76px; grid-template-columns: 1fr 24px; align-items: center; gap: 18px; cursor: pointer; font-family: "Source Code Pro", monospace; font-size: 1rem; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 20px; height: 20px; }
.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 9px; right: 2px; left: 2px; height: 1px; background: var(--pine); content: ""; transition: transform 180ms var(--ease-out); }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { max-width: 600px; padding: 0 42px 24px 0; color: var(--muted); }

.final-cta { padding: clamp(82px, 9vw, 124px) 0; background: var(--pine-dark); color: var(--surface); }
.cta-grid { align-items: end; }
.cta-grid > div:first-child { grid-column: 1 / span 7; }
.cta-grid > div:last-child { display: grid; grid-column: 9 / span 4; align-items: start; gap: 18px; }
.cta-grid h2 { max-width: 740px; margin-top: 18px; }
.cta-grid p { color: var(--border); }
.cta-grid .button { width: fit-content; }
.cta-grid small { color: var(--border); font-family: "Source Code Pro", monospace; font-size: .75rem; }

.site-footer { padding: 64px 0 28px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 56px; }
.footer-grid > div p { max-width: 280px; margin-top: 15px; color: var(--muted); font-size: .84rem; }
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid nav strong { margin-bottom: 5px; font-family: "Source Code Pro", monospace; font-size: .75rem; text-transform: uppercase; }
.footer-grid nav a { width: fit-content; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-family: "Source Code Pro", monospace; font-size: .75rem; }

/* Contact page */
[hidden] { display: none !important; }
.contact-page { background: var(--paper); }
.contact-nav-wrap { grid-template-columns: auto 1fr; }
.contact-page-nav { display: flex; justify-self: end; gap: clamp(18px, 3vw, 36px); }
.contact-page-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .86rem; font-weight: 500; text-decoration: none; }
.contact-page-nav a:hover { color: var(--pine); }
.contact-main { min-height: calc(100vh - 72px); }
.contact-hero { padding: clamp(70px, 8vw, 112px) 0 clamp(88px, 10vw, 140px); }
.contact-layout { align-items: start; }
.contact-copy { grid-column: 1 / span 5; padding-top: 28px; }
.contact-copy h1 { max-width: 650px; margin-top: 20px; }
.contact-intro { max-width: 590px; margin-top: 25px; color: var(--muted); font-size: 1.02rem; }
.contact-promises { display: grid; margin: 42px 0 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.contact-promises li { display: grid; min-height: 88px; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.contact-promises li > span { color: var(--red); font-size: .75rem; font-weight: 700; }
.contact-promises li div { display: grid; gap: 3px; }
.contact-promises strong { font-size: .88rem; }
.contact-promises small { color: var(--muted); font-size: .76rem; }
.contact-form-card { grid-column: 7 / span 6; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-mockup); }
.contact-form-heading { margin-bottom: 30px; }
.contact-form-heading h2 { margin-top: 12px; font-size: clamp(2rem, 3.5vw, 3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form-field { display: grid; align-content: start; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-size: .78rem; font-weight: 700; }
.optional-label { color: var(--muted); font-size: .75rem; font-weight: 400; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--paper); color: var(--ink); outline: 0; transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out); }
.form-field input { min-height: 50px; padding: 0 13px; }
.form-field textarea { min-height: 150px; padding: 13px; line-height: 1.5; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .72; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--pine); background: var(--surface); box-shadow: 0 0 0 3px rgba(11, 43, 91, .12); }
.form-field input.is-invalid, .form-field textarea.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201, 35, 51, .1); }
.field-error { display: none; color: var(--red); font-size: .75rem; line-height: 1.4; }
.field-error.is-visible { display: block; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { width: 100%; margin-top: 26px; }
.contact-submit:disabled { cursor: wait; opacity: .76; transform: none; }
.submit-spinner { display: none; width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--surface); border-radius: 50%; animation: submit-spin 700ms linear infinite; }
.contact-submit.is-loading .submit-spinner { display: block; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.form-privacy, .form-status { margin-top: 12px; color: var(--muted); font-size: .75rem; text-align: center; }
.form-status { min-height: 1.4em; color: var(--red); }
.contact-success { min-height: 520px; align-content: center; justify-items: start; }
.success-mark { display: grid; width: 54px; height: 54px; margin-bottom: 24px; place-items: center; border-radius: 8px; background: var(--attention); color: var(--pine-dark); }
.success-mark svg { width: 27px; height: 27px; stroke-width: 2.4; }
.contact-success h2 { max-width: 470px; margin-top: 13px; }
.contact-success > p:not(.utility-label) { max-width: 480px; margin: 18px 0 28px; color: var(--muted); }
.contact-footer { padding-top: 0; background: var(--paper); }
.contact-footer .footer-bottom { margin-top: 0; }
.contact-footer a { color: var(--pine); }

@media (max-width: 980px) {
  .site-nav { gap: 16px; }
  .site-nav a:nth-last-child(2), .site-nav a:nth-last-child(3) { display: none; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-demo-wrap { grid-column: 8 / span 5; }
  .step-row { grid-template-columns: 54px minmax(0, 1fr); }
  .step-receipt, .rule-sentence, .handover-card { grid-column: 2; justify-self: start; margin-top: 8px; }
  .control-copy { grid-column: 1 / span 5; }
  .control-visual { grid-column: 6 / span 7; }
  .story-copy { grid-column: 1 / span 7; }
  .story-ledger { grid-column: 8 / span 5; }
  .faq-intro { grid-column: 1 / span 5; }
  .faq-list { grid-column: 6 / span 7; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .grid-12 { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .nav-wrap { min-height: 64px; grid-template-columns: 1fr auto; gap: 10px; }
  .menu-button { display: grid; }
  .site-nav { position: absolute; top: 64px; right: 0; left: 0; display: grid; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); background: var(--paper); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a, .site-nav a:nth-last-child(2), .site-nav a:nth-last-child(3) { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta { display: none; }
  .hero { min-height: auto; padding: 70px 0 86px; }
  .hero-grid { row-gap: 56px; }
  .hero-copy, .hero-demo-wrap { grid-column: 1 / -1; }
  .hero-copy { padding: 0; }
  .hero-intro { margin-top: 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; margin-top: 27px; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; justify-content: center; }
  .hero-proof { display: grid; gap: 8px; }
  .hero-demo-wrap { justify-self: center; }
  .phone-demo { height: 600px; }
  .phone-messages { padding: 18px 14px; }
  .pause-note { text-align: left; }
  .section-block { padding: 84px 0; }
  .section-heading { margin-bottom: 42px; }
  .step-row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .step-number, .step-receipt, .rule-sentence, .handover-card { grid-column: 1; }
  .step-receipt, .rule-sentence, .handover-card { justify-self: stretch; width: 100%; margin-top: 12px; }
  .control-scroll { min-height: auto; }
  .control-sticky { position: static; min-height: auto; row-gap: 48px; padding: 84px 0; }
  .control-copy, .control-visual { grid-column: 1 / -1; }
  .control-progress { display: none; }
  .control-visual { display: grid; gap: 14px; min-height: auto; }
  .control-state { position: static; min-height: 430px; opacity: 1; transform: none; }
  .industries-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .industries ul { justify-content: flex-start; }
  .story-grid { row-gap: 48px; }
  .story-copy, .story-ledger { grid-column: 1 / -1; }
  .story-ledger { width: 100%; }
  .faq-grid { row-gap: 46px; }
  .faq-intro, .faq-list { position: static; grid-column: 1 / -1; }
  .faq-list summary { min-height: 82px; font-size: 1rem; }
  .cta-grid { row-gap: 36px; }
  .cta-grid > div:first-child, .cta-grid > div:last-child { grid-column: 1 / -1; }
  .cta-grid .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .contact-page-nav { gap: 14px; }
  .contact-page-nav a:nth-child(2) { display: none; }
  .contact-hero { padding: 56px 0 88px; }
  .contact-layout { row-gap: 48px; }
  .contact-copy, .contact-form-card { grid-column: 1 / -1; }
  .contact-copy { padding-top: 0; }
  .contact-form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
}

@media (max-width: 430px) {
  .phone-demo { height: 580px; margin-inline: -2px; }
  .chat-message { max-width: 88%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .load-line, .reveal, .demo-step { opacity: 1 !important; transform: none !important; }
  .phone-demo:hover, .button:hover { transform: none; }
  .demo-toggle { display: none; }
}
