:root {
  --red: #b3262d;
  --red-dark: #841a22;
  --red-soft: #f7e9e9;
  --ink: #20252b;
  --muted: #68717c;
  --line: #dfe3e7;
  --paper: #ffffff;
  --canvas: #f4f3f0;
  --green: #287558;
  --amber: #a96a12;
  --blue: #2c5e84;
  --shadow: 0 18px 45px rgba(24, 28, 33, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
button, select, input { color: inherit; }
.hidden { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--red-dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(32,37,43,.10); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-branding { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand img { display: block; width: 128px; height: auto; }
.header-copy { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .87rem; }
.product-signature { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-left: 18px; border-left: 1px solid #d8dcdf; }
.product-descriptor { color: var(--muted); font-size: .72rem; font-weight: 720; letter-spacing: .025em; line-height: 1.25; }
.product-mark { margin: 0; color: var(--red-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.055em; line-height: .9; }
.product-mark sup { position: relative; top: -.15em; margin-left: .08em; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .3em; font-weight: 850; letter-spacing: 0; line-height: 0; vertical-align: super; }
.product-mark-header { font-size: 1.7rem; white-space: nowrap; }
.product-mark-hero { margin-bottom: 24px; font-size: clamp(2.85rem, 5.2vw, 5.05rem); font-weight: 700; }
.product-mark-report { margin-bottom: 9px; font-size: 2rem; }

.hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero-tagline { margin-bottom: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.85rem, 5.2vw, 5.05rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
h1 span { color: var(--red); }
.hero-lede { max-width: 680px; margin-bottom: 32px; color: #4f5964; font-size: 1.15rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: .84rem; }

.button { min-height: 48px; padding: 12px 21px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 760; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, input:focus-visible, select:focus-visible, .choice-card:focus-within { outline: 3px solid rgba(179,38,45,.20); outline-offset: 2px; }
.button:disabled, .text-button:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.button-primary { color: white; background: var(--red); box-shadow: 0 7px 20px rgba(179,38,45,.20); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--ink); background: white; border-color: #cfd4d9; }
.text-button { padding: 8px 4px; color: var(--red-dark); background: transparent; border: 0; cursor: pointer; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.hero-panel { position: relative; overflow: hidden; padding: 34px; color: white; background: #24292f; border-radius: 24px; box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; right: -95px; bottom: -105px; width: 260px; height: 260px; border: 55px solid rgba(255,255,255,.05); border-radius: 50%; }
.panel-kicker { margin-bottom: 22px; color: #f3c8ca; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.benefit-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.15); }
.benefit-list li > span { color: #e8979b; font-family: Georgia, serif; font-size: 1.25rem; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { margin-bottom: 4px; font-size: 1rem; }
.benefit-list small { color: #c7ccd1; line-height: 1.5; }
.scope-callout { position: relative; z-index: 1; margin-top: 22px; padding: 16px 18px; color: #e5e8eb; background: rgba(255,255,255,.08); border-left: 3px solid #e8979b; border-radius: 4px 10px 10px 4px; font-size: .83rem; }

.workspace, .results { width: min(1100px, calc(100% - 40px)); margin: 42px auto 76px; }
.progress-shell { margin-bottom: 24px; padding: 26px 30px 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(24,28,33,.04); }
.progress-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.progress-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.85rem; font-weight: 500; }
.progress-count { color: var(--muted); font-size: .9rem; }
.progress-count span { color: var(--red); font-size: 1.25rem; font-weight: 800; }
.progress-track { height: 5px; margin: 20px 0 17px; overflow: hidden; background: #e8eaec; border-radius: 99px; }
.progress-track span { display: block; width: 20%; height: 100%; background: var(--red); border-radius: inherit; transition: width .25s ease; }
.step-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.step-nav button { display: flex; align-items: center; gap: 8px; padding: 5px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: .78rem; text-align: left; }
.step-nav span { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #cfd4d8; border-radius: 50%; font-size: .7rem; }
.step-nav button.active { color: var(--ink); font-weight: 750; }
.step-nav button.active span, .step-nav button.complete span { color: white; background: var(--red); border-color: var(--red); }
.step-nav button:disabled { cursor: default; opacity: .48; }

#snapshotForm { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-step { min-height: 560px; padding: 42px 48px 34px; }
.section-intro { display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.section-number { margin: 0; color: var(--red); font-family: Georgia, serif; font-size: 1.6rem; }
.section-intro h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.section-intro p:last-child { margin: 0; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field.span-2 { grid-column: span 2; }
.field > span:first-child, .field legend { display: block; margin-bottom: 9px; color: #333941; font-size: .9rem; font-weight: 760; }
.field legend { padding: 0; }
.field-label-row, .panel-title-row, .mini-label-row, .detail-intro-row { display: flex; align-items: flex-start; gap: 9px; }
.field > .field-label-row { justify-content: space-between; margin-bottom: 9px; }
.field > .field-label-row label, .mini-label-row label { min-width: 0; color: #333941; font-size: .9rem; font-weight: 760; line-height: 1.35; }
.field legend.field-label-row { width: 100%; display: flex; justify-content: space-between; margin-bottom: 9px; }
.field legend.field-label-row > span { min-width: 0; }
.panel-title-row { align-items: center; }
.panel-title-row h4 { min-width: 0; }
.help-trigger { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 30px; margin: -5px 0 0; padding: 0; color: var(--red-dark); background: #fff; border: 1px solid #c9cfd4; border-radius: 50%; cursor: pointer; font: 800 .85rem/1 system-ui, sans-serif; box-shadow: 0 1px 2px rgba(26, 34, 42, .08); }
.help-trigger:hover { color: white; background: var(--red); border-color: var(--red); }
.help-trigger:focus-visible { outline: 3px solid rgba(166, 31, 38, .22); outline-offset: 2px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field select { width: 100%; min-height: 49px; padding: 11px 13px; background: white; border: 1px solid #c8cfd5; border-radius: 8px; }
.field input[type="number"]:hover, .field input[type="text"]:hover, .field input[type="email"]:hover, .field select:hover { border-color: #9ca5ad; }
.input-prefix, .input-suffix { display: flex; align-items: center; min-height: 49px; overflow: hidden; background: white; border: 1px solid #c8cfd5; border-radius: 8px; }
.input-prefix > span, .input-suffix > span { align-self: stretch; display: grid; place-items: center; min-width: 42px; padding: 0 11px; color: var(--muted); background: #f4f5f6; }
.input-prefix input, .input-suffix input { min-width: 0; flex: 1; min-height: 47px !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.45; }
.field-hint.above { margin: -3px 0 12px; }
.field-error { min-height: 18px; margin: 5px 0 0; color: #a21c25; font-size: .76rem; }
.field.has-error select, .field.has-error input[type="number"], .field.has-error input[type="text"], .field.has-error input[type="email"], .field.has-error .input-prefix, .field.has-error .input-suffix { border-color: #b9252d; background: #fffafa; }

.choice-grid { display: grid; gap: 12px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { min-height: 94px; display: flex; gap: 11px; padding: 16px; border: 1px solid #cfd4d9; border-radius: 10px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--red); background: #fff8f8; box-shadow: inset 0 0 0 1px var(--red); }
.choice-card input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 4px; font-size: .9rem; }
.choice-card small { color: var(--muted); font-size: .77rem; line-height: 1.4; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid #c8cfd5; border-radius: 8px; }
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; }
.segmented label + label { border-left: 1px solid #c8cfd5; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { min-height: 47px; display: grid; place-items: center; padding: 8px; cursor: pointer; font-size: .85rem; text-align: center; }
.segmented input:checked + span { color: white; background: var(--red); font-weight: 750; }
.percent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.percent-grid label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; }
.total-line { margin-top: 10px; text-align: right; color: var(--muted); font-size: .85rem; }
.total-line strong { color: var(--ink); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.check-grid label { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .84rem; }
.check-grid input { accent-color: var(--red); }

.conditional-panel { grid-column: 1 / -1; min-width: 0; padding: 24px; background: #fbfbfa; border: 1px solid #d5dade; border-left: 4px solid var(--red); border-radius: 11px; }
.conditional-panel-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #dfe3e6; }
.conditional-panel-header h4 { margin: 0 0 5px; color: #30363d; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.conditional-panel-header p { max-width: 850px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
#dsoPnlGuidance { margin-bottom: 18px; }
.conditional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.conditional-grid > .span-2 { grid-column: 1 / -1; }
.conditional-note { grid-column: 1 / -1; margin: 0; padding: 12px 14px; color: #56606a; background: #f2f5f7; border-radius: 7px; font-size: .79rem; line-height: 1.5; }

.detail-panel { overflow: hidden; margin-top: 2px; border: 1px solid #d5dade; border-radius: 11px; background: #fbfbfa; }
.detail-panel.span-2 { grid-column: span 2; }
.detail-panel summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; cursor: pointer; list-style: none; }
.detail-panel summary::-webkit-details-marker { display: none; }
.detail-panel summary > span:first-child strong, .detail-panel summary > span:first-child small { display: block; }
.detail-panel summary > span:first-child strong { margin-bottom: 2px; font-size: .91rem; }
.detail-panel summary > span:first-child small { color: var(--muted); font-size: .76rem; }
.summary-action { color: var(--red-dark); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.detail-panel[open] .summary-action::after { content: " −"; }
.detail-panel:not([open]) .summary-action::after { content: " +"; }
.detail-body { padding: 22px 20px; border-top: 1px solid #dfe3e6; background: white; }
.detail-intro { max-width: 850px; margin-bottom: 22px; color: var(--muted); font-size: .82rem; }
.detail-intro-row { justify-content: space-between; margin-bottom: 22px; }
.detail-intro-row .detail-intro { margin: 0; }
.detail-section-title { margin: 22px 0 11px; color: var(--red-dark); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.detail-section-title:first-of-type { margin-top: 0; }
.mini-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-field-grid label > span:first-child { display: block; margin-bottom: 6px; color: #3c434a; font-size: .78rem; font-weight: 720; }
.mini-field-grid label > small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; }
.mini-field { min-width: 0; }
.mini-label-row { justify-content: space-between; margin-bottom: 6px; }
.mini-label-row label { color: #3c434a; font-size: .78rem; font-weight: 720; }
.mini-label-row .help-trigger { width: 28px; height: 28px; flex-basis: 28px; margin-top: -5px; }
.mini-field-grid input[type="number"], .mini-field-grid input[type="text"] { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #c8cfd5; border-radius: 7px; }
.mini-field-grid .input-prefix { min-height: 44px; }
.mini-field-grid .input-prefix input { min-height: 42px !important; }
.fte-note { margin: 18px 0 0; padding: 12px 14px; color: #56606a; background: #f2f5f7; border-radius: 7px; font-size: .76rem; }

.form-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 48px; background: #fafafa; border-top: 1px solid var(--line); }
.form-actions .text-button { justify-self: center; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-section { padding: 19px 20px; background: #fafafa; border: 1px solid var(--line); border-radius: 10px; }
.review-section h4 { margin: 0 0 14px; font-size: .9rem; }
.review-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 7px 0; border-top: 1px solid #e6e8ea; font-size: .78rem; }
.review-row span { color: var(--muted); }
.review-row strong { text-align: right; }
.review-notice { display: flex; gap: 13px; margin-top: 20px; padding: 17px; color: #505963; background: #f2f5f7; border-radius: 10px; font-size: .82rem; }
.review-notice p { margin: 0; }
.notice-mark { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--blue); border-radius: 50%; font-weight: 800; }
.delivery-card { position: relative; margin-top: 20px; padding: 24px; background: #fffafa; border: 1px solid #ead4d5; border-left: 4px solid var(--red); border-radius: 11px; }
.delivery-card-heading { margin-bottom: 20px; }
.delivery-card-heading h4 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.delivery-card-heading > p:last-child { max-width: 820px; margin: 0; color: var(--muted); font-size: .83rem; }
.delivery-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px 24px; align-items: start; }
.delivery-card .field-error { display: block; }
.consent-field { min-height: 49px; padding: 12px 14px; background: white; border: 1px solid #c8cfd5; border-radius: 8px; }
.consent-row { display: flex; gap: 11px; align-items: flex-start; color: #3c434a; cursor: pointer; font-size: .82rem; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--red); }
.consent-field.has-error { border-color: #b9252d; background: #fffafa; }
.honeypot-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.delivery-status { min-height: 0; margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-size: .82rem; font-weight: 700; }
.delivery-status:empty { display: none; }
.delivery-status.sending { color: var(--blue); background: #edf4f8; }
.delivery-status.success { color: var(--green); background: #e7f2ed; }
.delivery-status.error { color: #8f1e26; background: #fbe9ea; }
.delivery-confirmation { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; margin-bottom: 24px; padding: 22px 24px; color: #214f3e; background: #e7f2ed; border: 1px solid #bedbce; border-radius: 14px; }
.delivery-confirmation-mark { width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 1.25rem; font-weight: 850; }
.delivery-confirmation .eyebrow { margin-bottom: 5px; color: var(--green); }
.delivery-confirmation h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.delivery-confirmation p:last-of-type { margin: 0; font-size: .84rem; }
.delivery-confirmation .button { margin-top: 14px; }

.results { padding-bottom: 28px; }
.results-topbar { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 24px; }
.results-topbar h2 { margin: 0; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 500; }
.results-actions { display: flex; gap: 10px; }
.result-hero { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; padding: 36px 40px; color: white; background: #252a30; border-radius: 20px; box-shadow: var(--shadow); }
.score-ring { --score: 0; width: 160px; height: 160px; display: grid; place-items: center; background: conic-gradient(#e8888d calc(var(--score) * 1%), rgba(255,255,255,.14) 0); border-radius: 50%; }
.score-ring::before { content: ""; position: absolute; width: 132px; height: 132px; background: #252a30; border-radius: 50%; }
.score-ring { position: relative; }
.score-ring div { position: relative; z-index: 1; text-align: center; }
.score-ring strong, .score-ring span { display: block; }
.score-ring strong { font-family: Georgia, serif; font-size: 3rem; font-weight: 500; line-height: 1; }
.score-ring span { margin-top: 7px; color: #cfd4d8; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.result-label { margin: 0 0 8px; color: #efafb2; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-summary h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.result-summary > p:not(.result-label) { max-width: 760px; color: #d9dde0; }
.confidence-pill { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 8px 11px; color: #d8dcdf; background: rgba(255,255,255,.08); border-radius: 7px; font-size: .76rem; }
.confidence-pill strong { color: white; }

.buyer-interest-card { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center; margin: 18px 0; padding: 25px 28px; background: linear-gradient(135deg, #fff 0%, #f5faf7 100%); border: 2px solid var(--green); border-radius: 15px; box-shadow: 0 10px 26px rgba(40,117,88,.10); }
.buyer-interest-icon { width: 68px; height: 68px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-family: Georgia, serif; font-size: 1.75rem; }
.buyer-interest-kicker { margin: 0 0 5px; color: var(--green); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.buyer-interest-card h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.buyer-interest-card #buyerInterestSummary { margin: 0; color: #4e5660; font-size: .88rem; }
.buyer-interest-note { margin: 9px 0 0; color: #32654f; font-size: .72rem; font-weight: 720; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.metric h4 { margin: 0; font-size: .8rem; }
.metric strong { color: var(--red); font-size: 1rem; }
.metric-track { height: 6px; overflow: hidden; background: #eceeef; border-radius: 99px; }
.metric-track span { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.metric p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.result-card, .value-card, .next-step-card, .indicator-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.card-heading h3, .value-heading h3, .next-step-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.finding-list, .action-list { margin: 22px 0 0; padding: 0; list-style: none; }
.finding-list li { position: relative; margin: 0 0 12px; padding: 0 0 12px 27px; border-bottom: 1px solid #eceeef; font-size: .86rem; }
.finding-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: .68rem; font-weight: 900; }
.action-list { counter-reset: actions; }
.action-list li { counter-increment: actions; display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #eceeef; font-size: .86rem; }
.action-list li::before { content: counter(actions); width: 25px; height: 25px; display: grid; place-items: center; color: var(--red-dark); background: var(--red-soft); border-radius: 50%; font-weight: 850; font-size: .72rem; }

.indicator-card { margin-bottom: 18px; }
.indicator-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.indicator-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.evidence-legend { display: flex; gap: 14px; color: var(--muted); font-size: .68rem; }
.evidence-legend span { display: flex; align-items: center; gap: 5px; }
.evidence-legend i { width: 8px; height: 8px; border-radius: 50%; }
.evidence-legend .calculated { background: var(--blue); }
.evidence-legend .inferred { background: var(--amber); }
.indicator-intro { max-width: 850px; margin: 15px 0 18px; color: var(--muted); font-size: .8rem; }
.indicator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.indicator-item { position: relative; min-height: 140px; padding: 17px; background: #fafafa; border: 1px solid #e4e7e9; border-radius: 9px; }
.indicator-item::before { content: ""; position: absolute; left: 0; top: 17px; width: 3px; height: 27px; background: var(--blue); }
.indicator-item.inferred::before { background: var(--amber); }
.indicator-item .indicator-kind { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.indicator-item strong { display: block; margin: 8px 0 6px; color: #30363d; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.indicator-item p { margin: 0; color: var(--muted); font-size: .71rem; line-height: 1.45; }

.value-card { margin-bottom: 18px; }
.value-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.value-status { padding: 6px 10px; color: var(--green); background: #e7f2ed; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.value-status.review { color: #87540d; background: #fbefd9; }
.range-display { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px 0 6px; color: var(--red-dark); font-family: Georgia, serif; font-size: clamp(2.4rem, 7vw, 4.6rem); }
.range-display small { color: var(--muted); font-family: inherit; font-size: 1.2rem; }
.range-caption { max-width: 760px; margin: 0 auto 28px; color: var(--muted); font-size: .84rem; text-align: center; }
.ebitda-display { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 18px; }
.ebitda-display > div { min-width: 0; padding: 24px; text-align: center; background: #fafafa; border: 1px solid #e3e6e8; border-radius: 11px; }
.ebitda-display span, .ebitda-display strong, .ebitda-display small { display: block; }
.ebitda-display span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ebitda-display strong { margin: 9px 0 6px; color: var(--red-dark); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.05; }
.ebitda-display small { color: #4e5660; font-size: .8rem; line-height: 1.45; }
#dsoReviewReasons { margin-top: 18px; }
.assumption-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.assumption { padding: 13px; background: #fafafa; border: 1px solid #e6e8ea; border-radius: 8px; }
.assumption span, .assumption strong { display: block; }
.assumption span { margin-bottom: 4px; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.assumption strong { font-size: .82rem; }
.review-explanation { max-width: 820px; margin: 24px 0 14px; color: #4d5660; }
.review-reasons { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.review-reasons li { position: relative; padding: 10px 10px 10px 29px; background: #fbf7f0; border-radius: 7px; font-size: .82rem; }
.review-reasons li::before { content: "!"; position: absolute; left: 9px; top: 10px; color: var(--amber); font-weight: 900; }
.next-step-card { color: white; background: var(--red-dark); border-color: var(--red-dark); }
.next-step-card .eyebrow { color: #f5bfc2; }
.next-step-heading h3 { margin-top: 2px; }
.next-step-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.next-step-option { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; }
.next-step-option h4 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.22rem; font-weight: 500; line-height: 1.25; }
.next-step-option > p:not(.eyebrow):not(.contact-request-status) { flex: 1 1 auto; margin: 10px 0 18px; color: #f0d9da; font-size: .86rem; line-height: 1.55; }
.next-step-card .button-primary { color: var(--red-dark); background: white; box-shadow: none; }
.next-step-card .button-secondary { color: white; background: transparent; border-color: rgba(255,255,255,.62); }
.next-step-card .button-secondary:hover { color: var(--red-dark); background: white; }
.contact-request-status { min-height: 1.35em; margin: 10px 0 0; color: #fff; font-size: .8rem; line-height: 1.4; }
.contact-request-status.success { color: #d7f5df; font-weight: 750; }
.contact-request-status.error { color: #ffe1e3; font-weight: 750; }
.results-footer-actions { padding: 22px 0 0; text-align: center; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 26px 0 38px; display: flex; justify-content: space-between; align-items: center; gap: 25px; color: var(--muted); border-top: 1px solid #d5d8db; font-size: .76rem; }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 74px; }
.site-footer p { margin: 0; }

.field-help-dialog { width: min(620px, calc(100% - 34px)); max-height: min(78vh, 720px); padding: 0; overflow: hidden; color: var(--ink); background: white; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(19, 29, 39, .28); }
.field-help-dialog::backdrop { background: rgba(22, 29, 36, .58); backdrop-filter: blur(2px); }
.field-help-panel { position: relative; max-height: min(78vh, 720px); overflow-y: auto; padding: 34px 38px 30px; }
.field-help-panel h2 { margin: 4px 44px 16px 0; color: var(--ink); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.field-help-body { color: #4c5761; font-size: .98rem; line-height: 1.62; }
.field-help-body p { margin: 0 0 13px; }
.field-help-body p:last-child { margin-bottom: 0; }
.field-help-close { position: absolute; top: 16px; right: 17px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: #4c5761; background: #f2f4f5; border: 0; border-radius: 50%; cursor: pointer; font: 400 1.35rem/1 system-ui, sans-serif; }
.field-help-close:hover { color: white; background: var(--red); }
.field-help-done { margin-top: 24px; }

.contact-dialog { width: min(640px, calc(100% - 34px)); max-height: min(88vh, 760px); padding: 0; overflow: hidden; color: var(--ink); background: white; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(19,29,39,.28); }
.contact-dialog::backdrop { background: rgba(22,29,36,.58); backdrop-filter: blur(2px); }
.contact-dialog-panel { position: relative; max-height: min(88vh, 760px); overflow-y: auto; padding: 34px 38px 30px; }
.contact-dialog-panel h2 { margin: 4px 44px 12px 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.contact-dialog-panel > p:not(.eyebrow):not(.contact-dialog-status) { margin: 0 0 20px; color: #4c5761; line-height: 1.55; }
.contact-dialog-close { position: absolute; top: 16px; right: 17px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: #4c5761; background: #f2f4f5; border: 0; border-radius: 50%; cursor: pointer; font: 400 1.35rem/1 system-ui,sans-serif; }
.contact-dialog-close:hover { color: white; background: var(--red); }
.contact-field { display: block; margin-top: 15px; color: var(--ink); font-size: .86rem; font-weight: 750; }
.contact-field span { display: block; margin-bottom: 7px; }
.contact-field small { color: var(--muted); font-weight: 500; }
.contact-field input { width: 100%; padding: 12px 13px; color: var(--ink); background: white; border: 1px solid #bcc4ca; border-radius: 8px; font: inherit; }
.contact-field input:focus { outline: 3px solid rgba(179,38,45,.16); border-color: var(--red); }
.contact-dialog-status { min-height: 1.4em; margin: 14px 0 0; color: var(--red-dark); font-size: .84rem; font-weight: 700; }
.contact-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 52px; }
  .field-grid, .results-grid, .review-grid, .delivery-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .detail-panel.span-2 { grid-column: auto; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .percent-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .assumption-grid { grid-template-columns: 1fr 1fr; }
  .indicator-grid { grid-template-columns: 1fr 1fr; }
  .result-hero { grid-template-columns: 150px 1fr; }
  .buyer-interest-card { grid-template-columns: 64px 1fr; }
  .buyer-interest-icon { width: 58px; height: 58px; font-size: 1.45rem; }
  .score-ring { width: 138px; height: 138px; }
  .score-ring::before { width: 113px; height: 113px; }
  .conditional-grid { grid-template-columns: 1fr; }
  .conditional-grid > .span-2 { grid-column: auto; }
}

@media (max-width: 660px) {
  .header-inner, .hero, .workspace, .results, .site-footer { width: min(100% - 26px, 1180px); }
  .site-header { position: static; }
  .header-copy .privacy-note { display: none; }
  .brand img { width: 108px; }
  .header-branding { gap: 12px; }
  .product-signature { padding-left: 12px; }
  .product-mark-header { font-size: 1.38rem; }
  .product-descriptor { max-width: 165px; font-size: .62rem; }
  .product-mark-hero { font-size: 3.2rem; }
  h1 { font-size: 3.2rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .progress-shell { padding: 20px 17px 16px; }
  .step-nav button { justify-content: center; }
  .step-nav button:not(.active) { font-size: 0; }
  .step-nav button:not(.active) span { font-size: .7rem; }
  .form-step { min-height: 0; padding: 30px 20px; }
  .section-intro { grid-template-columns: 1fr; gap: 4px; }
  .section-intro h3 { font-size: 1.65rem; }
  .choice-grid.two, .check-grid, .percent-grid { grid-template-columns: 1fr; }
  .mini-field-grid { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr 1fr; padding: 17px 20px; }
  .form-actions .text-button { grid-column: span 2; grid-row: 2; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .review-row strong { text-align: left; }
  .results-topbar { display: block; }
  .delivery-confirmation { grid-template-columns: 1fr; text-align: center; }
  .delivery-confirmation-mark { margin: auto; }
  .results-actions { margin-top: 16px; flex-wrap: wrap; }
  .result-hero { grid-template-columns: 1fr; padding: 28px 24px; text-align: center; }
  .buyer-interest-card { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .buyer-interest-icon { margin: auto; }
  .score-ring { margin: auto; }
  .confidence-pill { justify-content: center; }
  .metric-grid, .assumption-grid { grid-template-columns: 1fr; }
  .indicator-grid { grid-template-columns: 1fr; }
  .indicator-heading { display: block; }
  .evidence-legend { margin-top: 12px; }
  .range-display { flex-direction: column; gap: 0; }
  .ebitda-display { grid-template-columns: 1fr; }
  .conditional-panel { padding: 19px 17px; }
  .review-reasons { grid-template-columns: 1fr; }
  .next-step-options { grid-template-columns: 1fr; }
  .next-step-card .button { width: 100%; }
  .site-footer { display: block; }
  .site-footer > p { margin-top: 14px; }
  .field-help-dialog { width: calc(100% - 22px); max-height: 88vh; }
  .field-help-panel { max-height: 88vh; padding: 28px 22px 24px; }
  .field-help-panel h2 { font-size: 1.4rem; }
  .contact-dialog { width: calc(100% - 22px); }
  .contact-dialog-panel { padding: 28px 22px 24px; }
  .contact-dialog-panel h2 { font-size: 1.4rem; }
  .contact-dialog-actions { display: grid; grid-template-columns: 1fr; }
}

@media print {
  @page { size: Letter portrait; margin: .45in; }
  html, body, .results { font-size: 11pt; }
  body { margin: 0; color: #20252b; background: white; line-height: 1.45; }
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .site-header, .site-footer, .results-actions, .results-footer-actions, .next-step-card, .no-print, .help-trigger, .field-help-dialog, .contact-dialog { display: none !important; }
  .results { width: 100%; max-width: none; margin: 0; padding: 0; }
  .results-topbar { margin-bottom: 16pt; }
  .product-mark-report { margin-bottom: 7pt; font-size: 23pt; }
  .results-topbar .eyebrow { font-size: 9.5pt !important; }
  .results-topbar h2 { font-size: 24pt; line-height: 1.15; }
  .result-hero { grid-template-columns: 1.45in minmax(0, 1fr); gap: .28in; padding: .28in .32in; border-radius: 12pt; box-shadow: none; break-inside: avoid; }
  .score-ring { width: 1.35in; height: 1.35in; }
  .score-ring::before { width: 1.11in; height: 1.11in; }
  .score-ring strong { font-size: 28pt; }
  .score-ring span, .result-label, .buyer-interest-kicker, .indicator-item .indicator-kind, .evidence-legend, .value-status, .assumption span, .ebitda-display span { font-size: 9.5pt !important; line-height: 1.3; }
  .result-summary h3 { font-size: 18pt; line-height: 1.2; }
  .result-summary > p:not(.result-label), .confidence-pill { font-size: 11pt !important; line-height: 1.4; }
  .buyer-interest-card { grid-template-columns: .68in minmax(0, 1fr); gap: .2in; margin: 14pt 0; padding: 18pt 20pt; box-shadow: none; break-inside: avoid; }
  .buyer-interest-icon { width: .6in; height: .6in; font-size: 18pt; }
  .buyer-interest-card h3, .card-heading h3, .value-heading h3, .indicator-heading h3 { font-size: 16pt; line-height: 1.2; }
  .buyer-interest-card #buyerInterestSummary, .buyer-interest-note { font-size: 11pt !important; line-height: 1.4; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10pt; margin: 14pt 0; }
  .metric { min-width: 0; padding: 15pt; box-shadow: none; break-inside: avoid; }
  .metric h4, .metric p { font-size: 11pt !important; line-height: 1.4; }
  .metric strong { font-size: 14pt; }
  .results-grid { grid-template-columns: 1fr; gap: 14pt; margin-bottom: 14pt; }
  .result-card, .value-card, .indicator-card { min-width: 0; padding: 20pt; border-radius: 10pt; box-shadow: none; }
  .result-card, .value-card { break-inside: avoid; }
  .finding-list, .action-list { margin-top: 15pt; }
  .finding-list li, .action-list li { font-size: 11pt !important; line-height: 1.4; break-inside: avoid; }
  .indicator-card { margin-bottom: 14pt; }
  .indicator-heading, .indicator-intro { break-after: avoid; }
  .indicator-intro { margin: 11pt 0 14pt; font-size: 11pt !important; line-height: 1.4; }
  .indicator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9pt; }
  .indicator-item { min-width: 0; min-height: 0; height: auto; padding: 14pt; overflow: visible; break-inside: avoid; }
  .indicator-item strong { margin: 6pt 0 5pt; font-size: 16pt; line-height: 1.2; }
  .indicator-item p { font-size: 11pt !important; line-height: 1.4; }
  .value-card { margin-bottom: 14pt; }
  .range-display { flex-wrap: wrap; gap: 10pt; margin: 22pt 0 5pt; font-size: 30pt; line-height: 1.1; text-align: center; }
  .range-display small { font-size: 13pt; }
  .range-caption { margin-bottom: 20pt; font-size: 11pt !important; line-height: 1.4; }
  .ebitda-display { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9pt; margin: 18pt 0 12pt; }
  .ebitda-display > div { padding: 15pt; break-inside: avoid; }
  .ebitda-display strong { font-size: 24pt; }
  .ebitda-display small { font-size: 11pt; line-height: 1.4; }
  .assumption-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9pt; }
  .assumption { min-width: 0; padding: 11pt; overflow: visible; break-inside: avoid; }
  .assumption strong { font-size: 11pt !important; line-height: 1.35; }
  .review-explanation, .review-reasons li { font-size: 11pt !important; line-height: 1.4; }
  .review-reasons { grid-template-columns: 1fr; }
  .review-reasons li { break-inside: avoid; }
  .result-summary, .buyer-interest-card, .metric, .result-card, .indicator-item, .value-card, .assumption, .review-reasons li { overflow-wrap: anywhere; word-break: normal; }
}
