/* Agentic roadmap: final v1. Orange is reserved for process numbers on neutral
   surfaces (<5%); indigo is used separately for navigation and actions. */
@font-face { font-family: "Instrument Sans"; src: url("./instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
html.audit-document { background: #fbf8f1; -webkit-text-size-adjust: 100%; }
body.audit-page {
  --brand: #515ca2; --brand-hover: #444e8a; --brand-pressed: #394273;
  --signal: #ec5a35; --paper: #fbf8f1; --surface: #f7f2e9;
  --ink: #202028; --muted: #626269; --line: #d8d4cc;
  --font-body: "Instrument Sans", Arial, sans-serif;
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body); font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body.audit-page :is(h1,h2,h3,p,figure) { margin: 0; }
body.audit-page :is(h1,h2,h3) { font-family: var(--font-body); font-weight: 500; text-wrap: balance; }
body.audit-page :is(button,input) { font-family: var(--font-body); }
body.audit-page :is(button,a) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.audit-page a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
body.audit-page a:hover { text-decoration: underline; }
body.audit-page img { display: block; max-width: 100%; }
body.audit-page .container { width: min(1280px,calc(100% - 96px)); margin-inline: auto; }
body.audit-page .skip-link { position: absolute; z-index: 200; top: -100px; left: 24px; padding: 12px 24px; background: var(--paper); border: 1px solid var(--brand); border-radius: 8px; }
body.audit-page .skip-link:focus { top: 16px; }
body.audit-page .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
body.audit-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 500 15px/1.4 var(--font-body); border: 1px solid var(--brand); text-decoration: none; transition: background-color 150ms ease; }
body.audit-page .btn-primary { color: #fff; background: var(--brand); }
body.audit-page .btn-primary:hover { background: var(--brand-hover); }
body.audit-page .btn-primary:active { background: var(--brand-pressed); }
body.audit-page .audit-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; color: var(--brand); font-size: 15px; font-weight: 500; }
body.audit-page .audit-text-link > span { font-size: 20px; }
html.audit-document { scroll-behavior: auto; }
body.audit-page { --error: #b42318; }
body.audit-page *, body.audit-page *::before, body.audit-page *::after { box-sizing: border-box; }
body.audit-page header .logo a { display: inline-flex; align-items: center; gap: 10px; }
body.audit-page header .logo img { display: block; width: 32px; height: 32px; }
body.audit-page main > section, body.audit-page input { scroll-margin-top: 96px; }
body.audit-page .audit-hero { padding: 64px 0 96px; background: var(--paper); border-bottom: 1px solid var(--line); }
body.audit-page .audit-hero .breadcrumb { margin-bottom: 32px; }
body.audit-page .audit-hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 56px; }
body.audit-page .audit-hero-grid > *, body.audit-page .audit-form-layout > * { min-width: 0; }
body.audit-page .audit-eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
body.audit-page .audit-hero h1 { margin: 0 0 32px; font-size: clamp(64px,5.6vw,88px); line-height: 1.02; letter-spacing: -.04em; }
body.audit-page .audit-hero h1 span { color: var(--brand); }
body.audit-page .hero-subtitle { max-width: 55ch; margin: 0 0 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
body.audit-page .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; }
body.audit-page .hero-note { max-width: 55ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.audit-page .hero-note strong { color: var(--brand); }
body.audit-page .clarity-block { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
body.audit-page .workflow-label { color: var(--muted); font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
body.audit-page .clarity-block h2 { color: var(--ink); font-size: 32px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 32px; }
body.audit-page .audit-workflow { list-style: none; padding: 0; margin: 0; counter-reset: audit-step; }
body.audit-page .audit-workflow li { counter-increment: audit-step; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
body.audit-page .audit-workflow li:first-child { padding-top: 0; border-top: 0; }
body.audit-page .audit-workflow li:last-child { padding-bottom: 0; }
body.audit-page .audit-workflow li::before { content: counter(audit-step,decimal-leading-zero); color: var(--signal); font-size: 24px; line-height: 1.15; font-weight: 500; padding-top: 2px; }
body.audit-page .audit-workflow h3 { color: var(--ink); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
body.audit-page .audit-workflow p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }

/* Native fields retain their names, values and submission contract. */
body.audit-page .audit-form-section { padding: 96px 0; background: var(--paper); }
body.audit-page .audit-form-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 64px; align-items: start; }
body.audit-page .audit-section-copy { padding-top: 24px; }
body.audit-page .audit-section-copy h2, body.audit-page .audit-booking h2 { color: var(--ink); font-size: clamp(40px,4vw,56px); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 24px; }
body.audit-page .audit-section-copy > p:not(.audit-eyebrow), body.audit-page .audit-booking p { max-width: 55ch; font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }
body.audit-page .audit-expectation { margin-block: 32px 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
body.audit-page .audit-expectation h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
body.audit-page .audit-expectation p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
body.audit-page .audit-form-card { border: 1px solid var(--line); border-radius: 16px; padding: 40px; background: var(--surface); }
body.audit-page .step-header { margin-bottom: 24px; }
body.audit-page .step-title { color: var(--ink); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; }
body.audit-page .step-header p { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0; }
body.audit-page .question-block { padding: 0; margin: 0 0 24px; border: 0; min-width: 0; }
body.audit-page .question-label { display: block; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
body.audit-page .text-input-group input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--muted); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body); transition: border-color 150ms ease; }
body.audit-page .text-input-group input::placeholder { color: var(--muted); opacity: 1; }
body.audit-page :is(input,button,a):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
body.audit-page .text-input-group input:focus { border-color: var(--brand); }
body.audit-page .option-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
body.audit-page .option-group label { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 14px; line-height: 1.4; transition: border-color 150ms ease, background-color 150ms ease; }
body.audit-page .option-group label:has(input:checked) { border-color: var(--brand); background: var(--paper); color: var(--brand); outline: 1px solid var(--brand); }
body.audit-page .option-group input { appearance: auto; width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
body.audit-page .field-required { color: var(--error); }
body.audit-page .field-optional { font-weight: 400; color: var(--muted); }
body.audit-page .question-error { display: none; color: var(--error); font-size: 13px; line-height: 1.4; margin-top: 8px; }
body.audit-page .has-error .question-error { display: block; }
body.audit-page .has-error :is(.question-label,.text-input-group input,.option-group label) { border-color: var(--error); }
body.audit-page .consent-checkbox { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1.6; }
body.audit-page .consent-checkbox input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--brand); }
body.audit-page .consent-checkbox a { color: var(--brand); text-decoration: underline; }
body.audit-page .form-nav-request-expert-review { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
body.audit-page .btn-submit, body.audit-page .btn-schedule { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: #fff; font: 500 15px/1.4 var(--font-body); cursor: pointer; transition: background-color 150ms ease; }
body.audit-page .btn-submit { width: 100%; }
body.audit-page .btn-submit:disabled { opacity: .55; cursor: not-allowed; }
body.audit-page .btn-submit.loading { opacity: 1; cursor: wait; }
body.audit-page .btn-submit .submit-pending, body.audit-page .btn-submit.loading .submit-idle { display: none; }
body.audit-page .btn-submit.loading .submit-pending { display: inline; }
body.audit-page .submit-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
body.audit-page .submit-error { margin: 16px 0 0; color: var(--error); font-size: 14px; line-height: 1.6; }
body.audit-page .submit-error:empty { display: none; }
body.audit-page .form-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.audit-page .form-contact-grid > * { min-width: 0; }
body.audit-page .submit-idle { display: flex; align-items: center; justify-content: center; gap: 24px; }

/* Booking remains optional and separate from the diagnostic request. */
body.audit-page .audit-booking { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); scroll-margin-top: 32px; }
body.audit-page .audit-booking-header { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
body.audit-page .audit-booking-header h2 { margin-bottom: 0; }
body.audit-page .calendly-inline-widget { width: 100%; max-width: 100%; min-width: 0; height: 740px; margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
body.audit-page .booking-fallback { margin-top: 16px; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; text-decoration: underline; }
body.audit-page .audit-confirmation { display: none; padding: 96px 0; background: var(--paper); }
body.audit-page .audit-confirmation.active { display: block; }
body.audit-page .audit-confirmation .container { max-width: 800px; text-align: center; }
body.audit-page .confirmation-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 16px; background: var(--brand); color: var(--paper); font-size: 28px; }
body.audit-page .audit-confirmation h2 { color: var(--brand); font-size: clamp(36px,4vw,48px); line-height: 1.08; letter-spacing: -.04em; margin: 0 0 24px; }
body.audit-page .confirmation-subtext { max-width: 60ch; margin: 0 auto 32px; color: var(--muted); font-size: 18px; line-height: 1.6; }
body.audit-page .next-steps { text-align: left; background: var(--surface); padding: 32px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 16px; }
body.audit-page .next-steps h3 { font-size: 24px; line-height: 1.15; margin: 0 0 16px; color: var(--ink); }
body.audit-page .next-steps-list { list-style: none; padding: 0; margin: 0; }
body.audit-page .next-steps-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.6; }
body.audit-page .next-steps-list .step-number { color: var(--signal); font-size: 24px; font-weight: 500; }
body.audit-page .footer-grid-matrix { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 48px; }
body.audit-page .footer-links-matrix { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
body.audit-page .footer-links-column h3 { color: var(--brand); }
body.audit-page .audit-page-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; }
body.audit-page .audit-wordmark { display: inline-flex; gap: 12px; align-items: center; font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
body.audit-page .footer-logo p { margin-top: 24px; color: var(--muted); }
body.audit-page .footer-links-matrix { max-width: 560px; margin-left: auto; width: 100%; }
body.audit-page .footer-links-column { display: flex; flex-direction: column; align-items: start; gap: 12px; }
body.audit-page .footer-links-column h3 { font-size: 14px; letter-spacing: 0; line-height: 1.4; color: var(--ink); margin-bottom: 12px; }
body.audit-page .footer-links-column a { color: var(--muted); font-size: 14px; }
body.audit-page .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; color: var(--muted); font-size: 13px; }
body.audit-page .legal-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
@media (hover: hover) and (pointer: fine) {
  body.audit-page :is(.btn-submit:not(:disabled),.btn-schedule):hover { background: var(--brand-hover); }
  body.audit-page .option-group label:hover { border-color: var(--brand); }
}
@media (max-width: 1050px) {
  body.audit-page .container { width: calc(100% - 64px); }
  body.audit-page .audit-hero-grid, body.audit-page .audit-form-layout { gap: 32px; }
  body.audit-page .option-group { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
  body.audit-page .container { width: calc(100% - 40px); }
  body.audit-page .audit-hero { padding: 40px 0 64px; }
  body.audit-page .audit-hero-grid, body.audit-page .audit-form-layout, body.audit-page .audit-booking-header, body.audit-page .footer-grid-matrix { grid-template-columns: minmax(0,1fr); gap: 32px; }
  body.audit-page .audit-hero h1 { font-size: clamp(42px,10vw,56px); }
  body.audit-page .clarity-block, body.audit-page .audit-form-card, body.audit-page .next-steps { padding: 24px; }
  body.audit-page .audit-form-section { padding-block: 64px; }
  body.audit-page .audit-section-copy { padding: 0; }
  body.audit-page .audit-expectation { margin-top: 24px; }
  body.audit-page .audit-booking { margin-top: 64px; padding-top: 64px; }
  body.audit-page .audit-confirmation { padding-top: 64px; }
  body.audit-page .form-contact-grid { grid-template-columns: 1fr; gap: 0; }
  body.audit-page .footer-bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  body.audit-page .hero-cta { align-items: stretch; flex-direction: column; }
  body.audit-page .footer-links-matrix { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html.audit-document { scroll-behavior: auto; }
  body.audit-page *, body.audit-page *::before, body.audit-page *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
