:root {
  --porcelain: #f5f9f9;
  --paper: #ffffff;
  --ink: #10222d;
  --ink-soft: #5e707a;
  --line: #dce7e8;
  --enamel: #dff5f2;
  --enamel-deep: #24a99f;
  --cobalt: #1543ff;
  --cobalt-dark: #0c2dbe;
  --coral: #f67867;
  --amber: #f0b44d;
  --shadow: 0 24px 70px rgba(25, 62, 74, 0.1);
  --display: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--porcelain); }
body { margin: 0; color: var(--ink); background: var(--porcelain); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(21, 67, 255, 0.35); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 99; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; padding: 0 30px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; color: white; background: rgba(10, 31, 44, 0.95); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; fill: none; stroke: #75e2d7; stroke-width: 1.8; }
.brand em { padding: 3px 6px; color: #8bf0e6; background: rgba(36, 169, 159, 0.16); border: 1px solid rgba(117, 226, 215, 0.25); border-radius: 4px; font: 700 9px var(--mono); text-transform: uppercase; }
.topbar-status { display: flex; align-items: center; gap: 9px; color: #bed0d7; font-size: 11px; }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(240, 180, 77, 0.09); }
.status-light.verified { background: #47d8ca; box-shadow: 0 0 0 5px rgba(71, 216, 202, 0.11); }
.topbar-rule { width: 1px; height: 15px; margin: 0 5px; background: rgba(255, 255, 255, 0.18); }
.quiet-button, .secondary-button, .primary-button, .icon-button { border: 0; cursor: pointer; }
.quiet-button { padding: 9px 13px; color: white; background: transparent; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 6px; font-size: 11px; }
.quiet-button:hover { border-color: #75e2d7; }

.app-shell { max-width: 1640px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.rail { position: sticky; top: 68px; height: calc(100vh - 68px); padding: 42px 25px 28px; display: flex; flex-direction: column; background: #ecf4f4; border-right: 1px solid var(--line); }
.case-block { padding: 0 6px 26px; border-bottom: 1px solid #d2e0e1; }
.micro-label { display: block; color: var(--cobalt); font: 700 10px var(--mono); letter-spacing: 0.11em; text-transform: uppercase; }
.case-block strong, .case-block small { display: block; }
.case-block strong { margin: 9px 0 3px; font-family: var(--display); font-size: 21px; letter-spacing: -0.04em; }
.case-block small { color: var(--ink-soft); font-size: 11px; }
.stage-nav { margin: 22px -8px 0; display: grid; gap: 3px; }
.stage-link { position: relative; width: 100%; padding: 12px 10px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.stage-link > span:first-child { color: #8ea0a8; font: 700 10px var(--mono); }
.stage-link strong, .stage-link small { display: block; }
.stage-link strong { font-size: 12px; }
.stage-link small { margin-top: 2px; color: #7d8e95; font-size: 10px; }
.stage-link:hover { background: rgba(255, 255, 255, 0.7); }
.stage-link.active { background: white; box-shadow: 0 9px 24px rgba(33, 71, 82, 0.08); }
.stage-link.active::before { content: ""; position: absolute; left: -3px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--cobalt); }
.stage-link.active > span:first-child { color: var(--cobalt); }
.rail-note { margin-top: auto; padding: 17px 6px 0; color: #6d8088; border-top: 1px solid #d2e0e1; font-size: 10px; line-height: 1.6; }
.rail-note span { display: block; margin-bottom: 4px; color: var(--enamel-deep); font: 700 9px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }

main { min-width: 0; padding: 0 46px 70px; overflow: hidden; }
.hero { min-height: 540px; padding: 76px 0 58px; display: grid; grid-template-columns: minmax(480px, 1.05fr) minmax(390px, 0.95fr); gap: 30px; align-items: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 780px; margin: 15px 0 19px; font-family: var(--display); font-size: clamp(42px, 4.5vw, 74px); font-weight: 750; line-height: 1.06; letter-spacing: -0.065em; }
.hero h1 strong { color: var(--cobalt); font-weight: inherit; }
.hero-intro { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.hero-question-row { margin-top: 21px; display: flex; flex-wrap: wrap; gap: 7px; }
.hero-question-row span { min-width: 58px; padding: 7px 11px; color: #294550; background: rgba(255,255,255,.74); border: 1px solid #cfdfe1; font: 700 9px var(--mono); text-align: center; }
.hero-actions { margin-top: 31px; display: flex; align-items: center; gap: 18px; }
.primary-button { padding: 13px 20px; color: white; background: var(--cobalt); border-radius: 7px; box-shadow: 0 10px 26px rgba(21, 67, 255, 0.24); font-size: 12px; font-weight: 700; }
.primary-button:hover { background: var(--cobalt-dark); transform: translateY(-1px); }
.hero-actions > span { display: flex; align-items: center; gap: 8px; color: #657880; font-size: 11px; }
.hero-actions i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(240, 180, 77, 0.1); }
.scan-stage { position: relative; min-height: 410px; display: grid; place-items: center; isolation: isolate; }
.scan-stage::before { content: ""; position: absolute; inset: 22px 35px; z-index: -2; border-radius: 48% 52% 45% 55%; background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.94), rgba(223,245,242,.72) 48%, rgba(21,67,255,.05) 72%, transparent 73%); }
.arch-model { width: min(100%, 520px); filter: drop-shadow(0 26px 36px rgba(31, 107, 115, 0.14)); }
.arch-base { fill: rgba(255, 255, 255, 0.42); stroke: url(#archGradient); stroke-width: 2.2; }
.arch-inner { fill: rgba(245, 249, 249, 0.82); stroke: rgba(36, 169, 159, 0.42); stroke-width: 1.2; stroke-dasharray: 5 8; }
.scan-line { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 9 12; opacity: 0.8; }
.scan-points circle { transform-box: fill-box; transform-origin: center; animation: pointPulse 3.2s ease-in-out infinite; }
.scan-points circle:nth-child(3n) { animation-delay: -1.1s; }
.scan-points circle:nth-child(4n) { animation-delay: -2.1s; }
.scan-readout { position: absolute; width: 182px; padding: 12px 14px; background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(161, 190, 193, 0.55); box-shadow: 0 14px 30px rgba(36, 74, 84, 0.1); backdrop-filter: blur(10px); }
.scan-readout.top { top: 18px; right: 8px; }
.scan-readout.bottom { bottom: 10px; left: 5px; }
.scan-readout span, .scan-readout strong, .scan-readout small { display: block; }
.scan-readout span { color: var(--cobalt); font: 700 9px var(--mono); letter-spacing: 0.1em; }
.scan-readout strong { margin: 5px 0 2px; font-size: 13px; }
.scan-readout small { color: #73858c; font-size: 9px; line-height: 1.45; }
.scan-beam { position: absolute; left: 7%; right: 7%; top: 47%; height: 1px; background: linear-gradient(90deg, transparent, var(--coral) 20%, white 50%, var(--coral) 80%, transparent); box-shadow: 0 0 18px rgba(246, 120, 103, 0.75); animation: scan 4.8s ease-in-out infinite; }

.evidence-spine { position: relative; margin: -18px 0 54px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.evidence-spine::after { content: ""; position: absolute; left: 9%; right: 9%; top: 26px; height: 1px; z-index: 0; background: linear-gradient(90deg, var(--cobalt), var(--enamel-deep) 52%, #b6c7cc 53%); }
.evidence-spine > div { position: relative; z-index: 1; padding: 17px 20px 15px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)); }
.evidence-spine > div:last-child { border-right: 0; }
.evidence-spine span { display: inline-grid; width: 18px; height: 18px; place-items: center; color: white; background: var(--ink); border-radius: 50%; font: 700 8px var(--mono); }
.evidence-spine div:first-child span, .evidence-spine div:last-child span { background: var(--cobalt); }
.evidence-spine strong, .evidence-spine small { display: block; }
.evidence-spine strong { margin-top: 13px; font-size: 12px; }
.evidence-spine small { margin-top: 2px; color: #71828a; font-size: 9px; }

.stage-area { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 20px; align-items: start; scroll-margin-top: 92px; }
.stage-panel, .source-rail { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(35, 70, 79, 0.06); }
.stage-panel { min-height: 570px; padding: 34px; }
.source-rail { padding: 27px 24px; }
.panel-title { margin-bottom: 28px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.panel-title h2 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(26px, 2.7vw, 39px); line-height: 1.16; letter-spacing: -0.055em; }
.tag { display: inline-flex; flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; font: 700 9px var(--mono); letter-spacing: 0.03em; }
.tag.pending { color: #8f630b; background: #fff5da; border: 1px solid #f0d697; }
.tag.warning { color: #a34436; background: #fff0ed; border: 1px solid #f1c3bb; }
.tag.assumption { color: #785b13; background: #fff6db; border: 1px solid #efd99b; }
.tag.context { color: #315f72; background: #eaf5f7; border: 1px solid #c8e0e5; }
.tag.verified { color: #087d74; background: #e3f7f4; border: 1px solid #b9e6df; }
.tag.advance { color: #075f58; background: #d9f5f0; border: 1px solid #99dcd2; }
.tag.hold { color: #76500a; background: #fff1cf; border: 1px solid #edca75; }
.tag.gap { color: #51636b; background: #edf2f3; border: 1px solid #cbd7d9; }
.panel-subtitle { margin: 10px 0 0; color: #708189; font-size: 10px; line-height: 1.6; }

.answer-banner { margin: -34px -34px 28px; padding: 30px 34px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); gap: 32px; align-items: end; color: white; background: linear-gradient(118deg, #10222d 0%, #173b49 68%, #164f55 100%); }
.answer-banner h2 { max-width: 820px; margin: 8px 0 0; font-family: var(--display); font-size: clamp(27px, 2.8vw, 41px); line-height: 1.15; letter-spacing: -.052em; }
.answer-banner .micro-label { color: #7ce2d8; }
.answer-status { display: grid; justify-items: start; gap: 12px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.17); }
.answer-status strong { color: #dcebed; font-size: 11px; font-weight: 600; line-height: 1.65; }

.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.market-card { min-height: 430px; padding: 20px; display: flex; flex-direction: column; background: #f7fafa; border: 1px solid var(--line); border-top: 4px solid #bcc9cc; }
.market-card.verified { background: linear-gradient(145deg, #f0fbf9, #f9fcfc 62%); border-top-color: var(--enamel-deep); }
.market-card.advance { background: linear-gradient(145deg, #eafaf7, #fbfdfd 65%); border-top-color: var(--enamel-deep); }
.market-card.hold { background: linear-gradient(145deg, #fffaf0, #fbfcfc 68%); border-top-color: var(--amber); }
.market-card.gap { background: linear-gradient(145deg, #f2f6f6, #fbfcfc 68%); border-top-color: #94a8ad; }
.market-card-head { display: flex; justify-content: space-between; align-items: center; }
.country-code { color: #93a3a9; font: 700 11px var(--mono); letter-spacing: .09em; }
.market-card h3 { margin: 20px 0 2px; font: 750 29px var(--display); letter-spacing: -.05em; }
.market-decision { color: var(--cobalt); font-size: 11px; }
.evidence-readout { margin-top: 16px; padding: 11px 12px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; background: rgba(255,255,255,.72); border: 1px solid #d8e5e6; }
.evidence-readout > div { min-width: 0; }
.evidence-readout span, .evidence-readout strong { display: block; }
.evidence-readout span { color: #7a8b91; font: 700 7px var(--mono); text-transform: uppercase; }
.evidence-readout strong { margin-top: 4px; font: 750 19px var(--display); letter-spacing: -.04em; }
.evidence-readout i { color: var(--coral); font: 700 11px var(--mono); }
.market-card dl, .buyer-target dl { margin: 18px 0 0; display: grid; gap: 11px; }
.market-card dl > div, .buyer-target dl > div { display: grid; grid-template-columns: 66px 1fr; gap: 11px; }
.market-card dt, .buyer-target dt { color: #7b8b91; font-size: 8px; }
.market-card dd, .buyer-target dd { margin: 0; color: #536971; font-size: 9px; line-height: 1.55; }
.market-card > p, .buyer-target > p { margin: auto 0 0; padding-top: 16px; color: #496069; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.55; }
.market-card > p span, .buyer-target > p span { display: block; margin-bottom: 4px; color: var(--enamel-deep); font: 700 8px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.comparison-warning { margin: 12px 0 0; padding: 12px 14px; color: #65767d; background: #f1f5f5; border-left: 3px solid #93a6ab; font-size: 9px; line-height: 1.65; }

.decision-method { margin-top: 18px; padding: 24px; background: #edf5f5; border: 1px solid #d5e4e5; }
.decision-method h3, .section-heading h3, .proof-peek h3, .buyer-proof h3, .exclusion-ledger h3, .contact-ladder h3, .calculator-inputs h3 { margin: 7px 0 0; font: 740 22px var(--display); letter-spacing: -.04em; }
.criteria-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #cddcde; }
.criteria-grid > div { padding: 16px 13px 0; border-right: 1px solid #cddcde; }
.criteria-grid > div:first-child { padding-left: 0; }
.criteria-grid > div:last-child { border-right: 0; }
.criteria-grid span, .criteria-grid strong, .criteria-grid small { display: block; }
.criteria-grid span { color: var(--cobalt); font: 700 8px var(--mono); }
.criteria-grid strong { margin-top: 12px; font-size: 11px; }
.criteria-grid small { margin-top: 5px; color: #667a82; font-size: 8px; line-height: 1.55; }

.proof-peek { margin-top: 18px; display: grid; grid-template-columns: .68fr 1.32fr; gap: 20px; align-items: center; }
.proof-peek > div { padding: 24px; }
.proof-peek p { color: #60757d; font-size: 10px; line-height: 1.75; }
.proof-peek figure, .buyer-proof figure { margin: 0; background: #f3f7f7; border: 1px solid var(--line); }
.proof-peek figcaption, .buyer-proof figcaption { padding: 9px 11px; color: #657980; font-size: 8px; line-height: 1.5; }
.text-button { padding: 0; color: var(--cobalt); background: none; border: 0; cursor: pointer; font-size: 9px; font-weight: 700; }

.route-map { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.route-map > div { position: relative; min-height: 210px; padding: 18px 16px; border-right: 1px solid var(--line); }
.route-map > div:last-child { border-right: 0; }
.route-map > div::after { content: "→"; position: absolute; top: 25px; right: -8px; z-index: 2; width: 16px; color: var(--coral); background: white; text-align: center; }
.route-map > div:last-child::after { display: none; }
.route-map span, .route-map strong, .route-map small { display: block; }
.route-map span { color: var(--cobalt); font: 700 9px var(--mono); }
.route-map strong { margin-top: 35px; font-size: 13px; }
.route-map p { color: #5d727a; font-size: 9px; line-height: 1.6; }
.route-map small { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #85949a; font-size: 8px; }
.section-heading { margin: 28px 0 14px; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.section-heading > p { max-width: 430px; margin: 0; color: #6d7e85; font-size: 9px; line-height: 1.6; text-align: right; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.channel-grid article { padding: 20px; background: #f7fafa; border: 1px solid var(--line); }
.channel-grid article > div { display: flex; justify-content: space-between; gap: 15px; color: #71848b; font-size: 8px; }
.channel-grid article > div b { color: var(--cobalt); }
.channel-grid h3 { margin: 17px 0 8px; font-size: 17px; }
.channel-grid p { min-height: 52px; color: #5e737b; font-size: 9px; line-height: 1.65; }
.channel-grid small { display: block; padding-top: 12px; color: #73858c; border-top: 1px solid var(--line); font-size: 8px; line-height: 1.55; }
.route-callout { margin-top: 15px; padding: 21px 23px; color: white; background: linear-gradient(90deg, var(--cobalt-dark), var(--cobalt)); }
.route-callout span, .route-callout strong { display: block; }
.route-callout span { color: #a9d9ff; font: 700 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.route-callout strong { margin-top: 8px; font-size: 16px; }
.route-callout p { margin: 7px 0 0; color: #d5e1ff; font-size: 9px; line-height: 1.55; }

.buyer-target-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.buyer-target { min-height: 510px; padding: 19px; display: flex; flex-direction: column; background: #f7fafa; border: 1px solid var(--line); border-top: 4px solid #b8c7ca; }
.buyer-target.verified { background: #f1faf8; border-top-color: var(--enamel-deep); }
.buyer-target.advance { background: linear-gradient(145deg, #eafaf7, #f8fcfb 70%); border-top-color: var(--enamel-deep); }
.buyer-target.hold { background: #fffaf0; border-top-color: var(--amber); }
.buyer-target.gap { background: #f2f6f6; border-top-color: #9aabb0; }
.buyer-target-head { min-height: 26px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.buyer-target-head > span:last-child { color: #8a989d; font: 700 8px var(--mono); }
.buyer-target h3 { margin: 22px 0 2px; font: 750 20px var(--display); letter-spacing: -.04em; }
.legal-name { min-height: 28px; color: #8a989d; font: 7px/1.45 var(--mono); }
.buyer-target > p small { display: block; margin-top: 7px; color: #8c979b; font-size: 8px; }
.buyer-proof { margin-top: 18px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; align-items: start; }
.buyer-proof > div:last-child { padding: 22px; background: #fff8f5; border-top: 3px solid var(--coral); }
.buyer-proof-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buyer-proof ul { margin: 15px 0 0; padding-left: 17px; color: #5f737b; }
.buyer-proof li { font-size: 9px; line-height: 1.65; }
.buyer-proof li + li { margin-top: 7px; }
.exclusion-ledger { margin-top: 17px; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); border: 1px solid var(--line); }
.exclusion-ledger > div { padding: 18px; border-right: 1px solid var(--line); }
.exclusion-ledger > div:last-child { border-right: 0; }
.exclusion-ledger strong { font-size: 10px; }
.exclusion-ledger p { margin: 8px 0 0; color: #6a7d84; font-size: 8px; line-height: 1.55; }

.outreach-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 14px; }
.contact-ladder { padding: 23px; background: #eff7f6; border: 1px solid #d4e6e4; }
.contact-ladder ol { margin: 20px 0; padding-left: 20px; counter-reset: contact; }
.contact-ladder li { padding: 0 0 14px 5px; color: #536970; font-size: 9px; line-height: 1.6; }
.contact-ladder > p { margin: 0; padding-top: 15px; color: #7b650e; border-top: 1px solid #c9dedd; font-size: 8px; line-height: 1.55; }
.email-draft { overflow: hidden; background: #10222d; color: #e8f1f2; border: 1px solid #284452; }
.email-toolbar { padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #173542; border-bottom: 1px solid rgba(255,255,255,.11); font-size: 8px; }
.email-toolbar button { padding: 6px 9px; color: #8fe8df; background: transparent; border: 1px solid rgba(143,232,223,.35); cursor: pointer; font-size: 8px; }
.outreach-target-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.outreach-target-tabs button.active { color: #10222d; background: #8fe8df; border-color: #8fe8df; }
.email-subject, .email-target { padding: 12px 18px; display: grid; grid-template-columns: 58px 1fr; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.11); }
.email-subject span, .email-target span { color: #78a2ae; font: 700 8px var(--mono); }
.email-subject strong, .email-target strong { font-size: 10px; }
.email-draft pre { margin: 0; padding: 20px; color: #d4e2e5; white-space: pre-wrap; font: 10px/1.75 var(--body); }
.cadence-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.cadence-grid > div { min-height: 145px; padding: 17px; border-right: 1px solid var(--line); }
.cadence-grid > div:last-child { border-right: 0; }
.cadence-grid span { color: var(--cobalt); font: 700 9px var(--mono); }
.cadence-grid strong { display: block; margin-top: 24px; font-size: 11px; }
.cadence-grid p { margin: 6px 0 0; color: #6b7d84; font-size: 8px; line-height: 1.55; }

.calculator-shell { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--line); }
.calculator-inputs { padding: 22px; background: #f1f7f7; }
.calculator-inputs label { margin-top: 13px; display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; color: #60737b; font-size: 9px; }
.calculator-inputs input { width: 100%; padding: 8px 9px; color: var(--ink); background: white; border: 1px solid #cbdadc; font: 700 10px var(--mono); text-align: right; }
.calculator-results { display: grid; grid-template-columns: 1fr 1fr; }
.calculator-results > div { min-height: 135px; padding: 21px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calculator-results > div:nth-child(3), .calculator-results > div:nth-child(4) { border-bottom: 0; }
.calculator-results span, .calculator-results strong, .calculator-results small { display: block; }
.calculator-results span { color: #708188; font-size: 8px; }
.calculator-results strong { margin-top: 19px; font: 750 27px var(--display); letter-spacing: -.04em; }
.calculator-results strong.negative { color: #c65748; }
.calculator-results small { margin-top: 6px; color: #7a898f; font-size: 8px; }
.calculator-results .net-result { background: #f8fbfb; }
.calculator-notes { grid-column: 1 / -1; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; background: #10222d; color: #b9cbd0; }
.calculator-notes p { margin: 0; font-size: 8px; line-height: 1.55; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.risk-grid article { min-height: 170px; padding: 18px; background: #fff9f6; border: 1px solid #eedbd5; }
.risk-grid article > div { display: flex; justify-content: space-between; align-items: center; }
.risk-grid article > div span { font-size: 12px; font-weight: 700; }
.risk-grid article > div b { padding: 3px 6px; color: #a34c3f; background: #ffe8e2; font: 700 8px var(--mono); }
.risk-grid p { color: #65777e; font-size: 9px; line-height: 1.6; }
.risk-grid small { display: block; padding-top: 10px; color: #7b6d67; border-top: 1px solid #ecd8d1; font-size: 8px; line-height: 1.55; }

.zoomable-shot { position: relative; width: 100%; padding: 0; overflow: hidden; display: block; background: #eaf1f2; border: 0; cursor: zoom-in; }
.zoomable-shot img { width: 100%; display: block; transition: transform .28s ease, filter .28s ease; }
.zoomable-shot:hover img { transform: scale(1.012); filter: contrast(1.03); }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 6px; color: white; background: rgba(9,31,43,.82); border: 1px solid rgba(255,255,255,.2); font: 700 8px var(--mono); backdrop-filter: blur(8px); }
.zoom-hint b { font-size: 14px; line-height: 8px; }
.evidence-heading { margin-top: 25px; }
.evidence-gallery figure:last-child { grid-column: auto; }
.query-table { min-width: 1120px; }

.lightbox-dialog { width: min(1500px, calc(100vw - 34px)); max-height: calc(100vh - 30px); background: #0c1d27; border-color: #39515d; }
.lightbox-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; color: white; border-bottom: 1px solid rgba(255,255,255,.12); }
.lightbox-head .micro-label { color: #70dcd2; }
.lightbox-head h2 { margin: 4px 0 0; font-size: 20px; }
.lightbox-head .icon-button { color: white; background: rgba(255,255,255,.1); }
.lightbox-canvas { max-height: calc(100vh - 145px); overflow: auto; background: #08161e; }
.lightbox-canvas img { min-width: min(1100px, 100%); width: 100%; display: block; }
.lightbox-dialog > p { margin: 0; padding: 12px 20px; color: #b9cbd0; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; line-height: 1.5; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.decision-card { min-height: 210px; padding: 20px; display: flex; flex-direction: column; border-top: 4px solid; background: #f8fbfb; }
.decision-card.confirmed { border-color: var(--enamel-deep); }
.decision-card.pending { border-color: var(--amber); }
.decision-card.blocked { border-color: var(--coral); }
.decision-card > span { color: #71828a; font: 700 9px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.decision-card strong { margin-top: auto; font-size: 17px; line-height: 1.35; }
.decision-card p { margin: 8px 0 0; color: #65777f; font-size: 11px; line-height: 1.65; }
.statement { margin-top: 18px; padding: 18px 20px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; background: linear-gradient(90deg, #10222d, #173748); color: white; }
.statement span { color: #76dfd5; font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.statement p { margin: 0; color: #d7e5e8; font-size: 12px; line-height: 1.7; }

.product-sheet { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-sheet > div { min-height: 102px; padding: 15px; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-sheet > div > span:first-child { color: #7c8d94; font-size: 9px; }
.product-sheet strong { grid-column: 1 / -1; font-size: 12px; line-height: 1.55; }
.product-sheet .tag { grid-column: 2; grid-row: 1; }
.term-matrix { margin-top: 20px; display: grid; gap: 9px; }
.term-matrix > div { padding: 11px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #f5f9f9; }
.term-matrix > div > span { width: 58px; color: #6d7d84; font-size: 9px; }
code { padding: 4px 6px; color: #23495a; background: white; border: 1px solid #d8e4e5; border-radius: 4px; font: 10px var(--mono); }

.signal-strip { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.signal-card { position: relative; min-height: 116px; padding: 16px 17px; overflow: hidden; background: #f6fafa; border: 1px solid var(--line); }
.signal-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--enamel-deep); }
.signal-card.warning::before { background: var(--coral); }
.signal-card.context::before { background: var(--cobalt); }
.signal-card > span { color: #71828a; font: 700 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.signal-card > strong { display: block; margin-top: 12px; font: 750 30px var(--display); letter-spacing: -.045em; }
.signal-card > strong small { color: #5e747d; font: 500 10px var(--sans); letter-spacing: 0; }
.signal-card p { margin: 5px 0 0; color: #6d8088; font-size: 9px; line-height: 1.45; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px 12px; color: #71828a; background: #f2f7f7; text-align: left; font-size: 9px; font-weight: 700; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
td strong, td small { display: block; }
td strong { font-size: 10px; line-height: 1.45; }
td small { margin-top: 3px; color: #71828a; font-size: 9px; line-height: 1.4; }
.screenshot-head { margin: 25px 0 12px; display: flex; justify-content: space-between; align-items: end; }
.screenshot-head h3 { margin: 4px 0 0; font-size: 17px; }
.screenshot-head > small { color: #7a8b92; font-size: 9px; }
.screenshot-empty { min-height: 250px; padding: 35px; display: grid; place-items: center; align-content: center; background: repeating-linear-gradient(-45deg, #f7fafa 0 9px, #f3f7f7 9px 18px); border: 1px dashed #aebfc3; text-align: center; }
.screenshot-empty strong { margin-top: 13px; font-size: 13px; }
.screenshot-empty p { max-width: 390px; margin: 6px 0 0; color: #71828a; font-size: 10px; line-height: 1.6; }
.screen-outline { width: 100px; height: 62px; padding: 8px; display: flex; gap: 4px; align-items: end; border: 1px solid #9cafb4; border-radius: 4px; background: white; }
.screen-outline span { width: 18px; background: #d7e4e5; }
.screen-outline span:nth-child(1) { height: 25px; }
.screen-outline span:nth-child(2) { height: 39px; background: #9ddfd7; }
.screen-outline span:nth-child(3) { height: 31px; background: #a7bafc; }
.screen-outline i { flex: 1; height: 100%; border-left: 1px solid #d7e4e5; }
.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.screenshot-grid figure { margin: 0; border: 1px solid var(--line); background: #f7fafa; }
.screenshot-grid img { width: 100%; display: block; }
.screenshot-grid figcaption { padding: 9px 10px; color: #667980; font-size: 9px; }
.screenshot-grid figcaption span { margin-right: 7px; color: var(--cobalt); font-family: var(--mono); }

.buyer-empty { min-height: 270px; padding: 35px; display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: center; background: #f6fafa; border: 1px solid var(--line); }
.buyer-empty strong { font-size: 18px; }
.buyer-empty p { max-width: 560px; margin: 9px 0 0; color: #64777f; font-size: 11px; line-height: 1.7; }
.buyer-silhouette { position: relative; width: 155px; height: 155px; border-radius: 50%; background: radial-gradient(circle, white, #e6f3f2); border: 1px solid #cae1df; }
.buyer-silhouette span { position: absolute; left: 53px; top: 32px; width: 48px; height: 48px; border-radius: 50%; background: #9bdcd4; }
.buyer-silhouette i { position: absolute; left: 39px; right: 39px; bottom: 31px; height: 40px; border-radius: 45px 45px 15px 15px; background: #1543ff; opacity: .75; }
.buyer-silhouette i:nth-of-type(2), .buyer-silhouette i:nth-of-type(3) { left: auto; right: 13px; bottom: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); opacity: 1; }
.buyer-silhouette i:nth-of-type(3) { right: 27px; background: var(--enamel-deep); }
.coverage-row { margin-top: 17px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.coverage-row > div { padding: 13px 9px; border-right: 1px solid var(--line); }
.coverage-row > div:last-child { border-right: 0; }
.coverage-row i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #b8c6ca; }
.coverage-row span, .coverage-row small { display: block; }
.coverage-row span { font-size: 9px; }
.coverage-row small { margin-top: 3px; color: #829097; font-size: 8px; }
.buyer-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.buyer-kpis > div { min-height: 106px; padding: 15px 16px; border-right: 1px solid var(--line); }
.buyer-kpis > div:last-child { border-right: 0; }
.buyer-kpis span, .buyer-kpis strong, .buyer-kpis small { display: block; }
.buyer-kpis span { color: #778990; font-size: 8px; }
.buyer-kpis strong { margin-top: 9px; font: 750 25px var(--display); letter-spacing: -.035em; }
.buyer-kpis small { margin-top: 5px; color: #71828a; font-size: 8px; line-height: 1.45; }
.buyer-evidence-layout { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr); gap: 14px; align-items: start; }
.buyer-capture { margin: 0; border: 1px solid var(--line); background: #f7fafa; }
.buyer-capture img { width: 100%; display: block; }
.buyer-capture figcaption { padding: 10px 12px; color: #667980; font-size: 9px; line-height: 1.55; }
.buyer-capture figcaption span { margin-right: 7px; color: var(--cobalt); font-family: var(--mono); }
.buyer-notes { display: grid; gap: 10px; }
.buyer-notes section { padding: 17px 18px; background: #f4faf9; border-top: 3px solid var(--enamel-deep); }
.buyer-notes section.gap { background: #fff8f5; border-color: var(--coral); }
.buyer-notes h3 { margin: 6px 0 10px; font-size: 15px; }
.buyer-notes ul { margin: 0; padding-left: 16px; color: #60747c; }
.buyer-notes li { padding-left: 2px; font-size: 9px; line-height: 1.62; }
.buyer-notes li + li { margin-top: 7px; }
.risk-table td:nth-child(2) { min-width: 280px; line-height: 1.6; }
.table-footnote { margin: 12px 0 0; color: #72838b; font-size: 9px; line-height: 1.6; }

.source-head h2 { margin: 6px 0 20px; font-size: 21px; letter-spacing: -0.04em; }
.source-list { display: grid; }
.source-item { position: relative; padding: 15px 0 15px 18px; border-top: 1px solid var(--line); }
.source-item::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: #aab9bd; }
.source-item.assumption::before { background: var(--amber); }
.source-item.analysis::before { background: var(--cobalt); }
.source-item.context::before { background: var(--enamel-deep); }
.source-item span, .source-item strong, .source-item small { display: block; }
.source-item span { color: #819097; font-size: 8px; }
.source-item strong { margin-top: 4px; font-size: 11px; }
.source-item small { margin-top: 2px; color: #74858c; font-size: 9px; line-height: 1.45; }
.secondary-button { width: 100%; margin-top: 18px; padding: 11px 12px; color: var(--cobalt); background: white; border: 1px solid #aabcf9; border-radius: 6px; font-size: 10px; font-weight: 700; }
.secondary-button:hover { background: #f0f3ff; }

.method-band { margin-top: 20px; padding: 31px 34px; display: grid; grid-template-columns: .8fr 1.6fr; gap: 38px; color: white; background: #10222d; }
.method-band h2 { max-width: 360px; margin: 8px 0 0; font-family: var(--display); font-size: 27px; line-height: 1.2; letter-spacing: -0.045em; }
.method-band .micro-label { color: #70dcd2; }
.method-band ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.method-band li { padding: 6px 17px 6px 0; border-right: 1px solid rgba(255,255,255,.13); }
.method-band li + li { padding-left: 17px; }
.method-band li:last-child { border-right: 0; }
.method-band li span, .method-band li strong, .method-band li small { display: block; }
.method-band li span { color: #70dcd2; font: 700 8px var(--mono); text-transform: uppercase; }
.method-band li strong { margin-top: 19px; font-size: 11px; }
.method-band li small { margin-top: 4px; color: #aebfc5; font-size: 9px; line-height: 1.45; }

dialog { width: min(1100px, calc(100vw - 40px)); max-height: calc(100vh - 70px); padding: 0; border: 1px solid #a8babc; border-radius: 9px; box-shadow: 0 30px 90px rgba(10,31,44,.28); }
dialog::backdrop { background: rgba(7, 27, 39, 0.54); backdrop-filter: blur(4px); }
.dialog-head { padding: 25px 28px 12px; display: flex; justify-content: space-between; align-items: start; }
.dialog-head h2 { margin: 6px 0 0; font-size: 28px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #edf3f3; font-size: 21px; line-height: 1; }
.dialog-note { margin: 0; padding: 0 28px 18px; color: #64777f; font-size: 10px; }
dialog .table-wrap { margin: 0 28px 28px; width: calc(100% - 56px); }

@keyframes pointPulse { 0%, 100% { transform: scale(.7); opacity: .4; } 45% { transform: scale(1.25); opacity: 1; } }
@keyframes scan { 0%, 100% { transform: translateY(-76px); opacity: .3; } 50% { transform: translateY(82px); opacity: 1; } }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  main { padding: 0 28px 55px; }
  .hero { grid-template-columns: 1fr 390px; }
  .stage-area { grid-template-columns: 1fr; }
  .source-rail { display: grid; grid-template-columns: 180px 1fr 180px; gap: 20px; align-items: center; }
  .source-list { grid-template-columns: repeat(4, 1fr); }
  .source-item { border-top: 0; border-left: 1px solid var(--line); padding: 8px 10px 8px 20px; }
  .source-item::before { left: 9px; top: 13px; }
  .secondary-button { margin: 0; }
  .buyer-target-grid { grid-template-columns: 1fr 1fr; }
  .route-map { grid-template-columns: 1fr 1fr; }
  .route-map > div { border-bottom: 1px solid var(--line); }
  .route-map > div:nth-child(2n) { border-right: 0; }
  .route-map > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .route-map > div::after { display: none; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .topbar-status { display: none; }
  .app-shell { display: block; }
  .rail { position: static; width: 100%; height: auto; padding: 18px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-block { padding-bottom: 15px; }
  .stage-nav { display: flex; overflow-x: auto; }
  .stage-link { min-width: 150px; }
  .rail-note { display: none; }
  main { padding: 0 20px 45px; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .scan-stage { min-height: 360px; }
  .evidence-spine { grid-template-columns: 1fr 1fr; }
  .evidence-spine > div { border-bottom: 1px solid var(--line); }
  .evidence-spine > div:nth-child(2n) { border-right: 0; }
  .evidence-spine > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .evidence-spine::after { display: none; }
  .source-rail { display: block; }
  .source-list { grid-template-columns: 1fr 1fr; }
  .source-item { border-left: 0; border-top: 1px solid var(--line); }
  .secondary-button { margin-top: 16px; }
  .method-band { grid-template-columns: 1fr; }
  .answer-banner { grid-template-columns: 1fr; }
  .answer-status { padding: 15px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.17); }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .criteria-grid > div { padding-left: 13px; padding-bottom: 15px; border-bottom: 1px solid #cddcde; }
  .criteria-grid > div:first-child { padding-left: 13px; }
  .criteria-grid > div:nth-child(2n) { border-right: 0; }
  .criteria-grid > div:last-child { grid-column: 1 / -1; }
  .proof-peek, .buyer-proof, .outreach-layout { grid-template-columns: 1fr; }
  .exclusion-ledger { grid-template-columns: 1fr 1fr; }
  .exclusion-ledger > div { border-bottom: 1px solid var(--line); }
  .exclusion-ledger > div:nth-child(2n) { border-right: 0; }
  .cadence-grid { grid-template-columns: 1fr 1fr; }
  .cadence-grid > div:nth-child(2) { border-right: 0; }
  .cadence-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calculator-notes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .brand span { font-size: 13px; }
  .quiet-button { font-size: 9px; }
  main { padding-inline: 14px; }
  .hero { min-height: auto; padding: 42px 0; }
  .hero h1 { font-size: 39px; }
  .hero-intro { font-size: 13px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .scan-stage { min-height: 300px; }
  .scan-readout { width: 150px; }
  .scan-readout.top { right: 0; }
  .stage-panel { min-height: auto; padding: 22px 17px; }
  .panel-title { display: block; }
  .panel-title .tag { margin-top: 12px; }
  .panel-title h2 { font-size: 28px; }
  .decision-grid, .product-sheet, .screenshot-grid, .signal-strip, .market-grid, .channel-grid, .buyer-target-grid, .risk-grid { grid-template-columns: 1fr; }
  .answer-banner { margin: -22px -17px 22px; padding: 24px 18px; }
  .answer-banner h2 { font-size: 28px; }
  .market-card { min-height: auto; }
  .criteria-grid, .route-map, .exclusion-ledger, .calculator-shell, .calculator-results { grid-template-columns: 1fr; }
  .route-map > div, .route-map > div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-map > div:last-child { grid-column: auto; }
  .buyer-target:last-child, .evidence-gallery figure:last-child { grid-column: auto; }
  .buyer-proof-images { grid-template-columns: 1fr; }
  .email-toolbar { align-items: flex-start; flex-direction: column; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .calculator-results > div { border-left: 0; border-bottom: 1px solid var(--line); }
  .calculator-results > div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .calculator-notes { grid-column: auto; grid-template-columns: 1fr; }
  .cadence-grid { grid-template-columns: 1fr; }
  .cadence-grid > div, .cadence-grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .cadence-grid > div:last-child { border-bottom: 0; }
  .statement { grid-template-columns: 1fr; }
  .buyer-empty { grid-template-columns: 1fr; }
  .buyer-silhouette { margin: 0 auto; }
  .buyer-kpis { grid-template-columns: 1fr 1fr; }
  .buyer-kpis > div:nth-child(2) { border-right: 0; }
  .buyer-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .buyer-evidence-layout { grid-template-columns: 1fr; }
  .coverage-row { grid-template-columns: repeat(3, 1fr); }
  .coverage-row > div:nth-child(3) { border-right: 0; }
  .coverage-row > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .method-band { padding: 25px 20px; }
  .method-band ol { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .method-band li:nth-child(2), .method-band li:nth-child(4) { border-right: 0; }
  .method-band li:last-child { grid-column: 1 / -1; }
  .source-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan-points circle, .scan-beam { animation: none; }
  .primary-button:hover { transform: none; }
}
