:root {
  --ink: #152034;
  --muted: #647087;
  --paper: #f6f8fb;
  --line: #dfe4ec;
  --blue: #3157e0;
  --blue-dark: #203ca5;
  --teal: #138b86;
  --navy: #111b31;
  --white: #fff;
  --shadow: 0 18px 55px rgba(30, 44, 76, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
.site-header { height: 76px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { text-decoration: none; display: flex; gap: 11px; align-items: center; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: white; font-size: 13px; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
nav a { text-decoration: none; }
.inline { display: inline; }
.link-button { border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; padding: 0; }
main { min-height: calc(100vh - 150px); }
footer { padding: 34px clamp(24px, 5vw, 80px); color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 13px; }
.hero { max-width: 1200px; margin: 0 auto; padding: 110px 32px 80px; text-align: center; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.03; letter-spacing: -.055em; margin-bottom: 25px; }
h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.hero-copy { max-width: 760px; margin: 0 auto; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border: 0; border-radius: 10px; background: var(--blue); color: white; text-decoration: none; font-weight: 750; font-size: 14px; cursor: pointer; box-shadow: 0 8px 22px rgba(49,87,224,.2); }
.button:hover { background: var(--blue-dark); }
.button.small { padding: 9px 14px; box-shadow: none; }
.button.secondary { background: var(--navy); box-shadow: none; }
.button.light { background: white; color: var(--navy); }
.text-link { font-weight: 750; color: var(--blue); text-decoration: none; }
.trust-row { display: flex; justify-content: center; gap: 35px; margin-top: 52px; color: var(--muted); font-size: 13px; }
.split-cards { max-width: 1180px; margin: 0 auto; padding: 0 32px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { border-radius: 20px; padding: 45px; min-height: 300px; color: white; box-shadow: var(--shadow); }
.feature-card.active { background: linear-gradient(145deg, #2f54da, #203ca5); }
.feature-card.industry { background: linear-gradient(145deg, #16243e, #0c1426); }
.feature-card p { max-width: 520px; opacity: .78; }
.card-label { display: inline-block; padding: 6px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; font-size: 10px; font-weight: 850; letter-spacing: .12em; margin-bottom: 55px; }
.process-section { max-width: 1116px; margin: 0 auto; padding: 80px 32px 110px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.process { list-style: none; padding: 0; margin: 0; }
.process li { display: flex; gap: 22px; border-top: 1px solid var(--line); padding: 22px 0; }
.process li > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.process p { color: var(--muted); margin: 5px 0 0; }
.cta-panel { max-width: 1116px; margin: 0 auto 100px; padding: 48px; border-radius: 20px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; }
.cta-panel h2 { margin: 0; }
.auth-layout { max-width: 1116px; margin: 0 auto; padding: 80px 32px 110px; display: grid; grid-template-columns: 1fr 480px; gap: 90px; align-items: center; }
.auth-layout.compact { min-height: 680px; }
.auth-copy h1 { font-size: clamp(38px, 5vw, 60px); }
.auth-copy p { color: var(--muted); font-size: 17px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack h2 { margin-bottom: 4px; }
label, legend { font-size: 13px; font-weight: 750; }
input, textarea, select { width: 100%; margin-top: 7px; border: 1px solid #ccd3de; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: white; font: inherit; font-size: 14px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(49,87,224,.13); border-color: var(--blue); }
label small { display: block; color: var(--muted); font-weight: 450; margin-top: 5px; }
.form-note { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.error, .success { padding: 12px 14px; border-radius: 9px; font-size: 14px; }
.error { background: #fff0f1; color: #a52633; border: 1px solid #f3c8ce; }
.success { background: #ecfaf5; color: #146b4d; border: 1px solid #bce8d7; margin-bottom: 20px; }
.app-shell, .wizard { max-width: 1210px; margin: 0 auto; padding: 60px 32px 100px; }
.page-heading, .wizard-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.page-heading h1, .wizard h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.page-heading p, .wizard-head p { color: var(--muted); margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.metric-grid.three { grid-template-columns: repeat(3, 1fr); }
.metric-grid article { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.metric-grid span, .metric-grid small { color: var(--muted); display: block; font-size: 12px; }
.metric-grid strong { display: block; font-size: 35px; letter-spacing: -.04em; margin: 7px 0 3px; }
.metric-grid strong.word { font-size: 19px; letter-spacing: -.01em; margin: 15px 0 12px; }
.dashboard-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; }
.section-heading h2 { font-size: 21px; }
.status-pill { border-radius: 20px; padding: 5px 9px; background: #eef2f8; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.status-pill.review { color: #7e5c05; background: #fff5d4; }
.status-pill.active { color: #146b4d; background: #e5f7ef; }
.profile-list a { text-decoration: none; border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.profile-list small { display: block; color: var(--muted); margin-top: 3px; }
.empty-state { padding: 45px 10px; text-align: center; color: var(--muted); }
.empty-state a { color: var(--blue); font-weight: 750; }
.muted-panel { background: #f0f3f8; box-shadow: none; }
.check-list { list-style: none; padding: 0; line-height: 2.1; color: var(--muted); }
.placeholder-table > div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 17px 0; }
.placeholder-table span { color: var(--muted); }
.steps { display: flex; list-style: none; padding: 0; margin: 0; gap: 14px; }
.steps li { color: #8a93a4; font-size: 11px; text-align: center; }
.steps li span { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; border: 1px solid #cbd1dc; margin: 0 auto 5px; }
.steps li.current { color: var(--blue); font-weight: 800; }
.steps li.current span { color: white; background: var(--blue); border-color: var(--blue); }
.steps li.done span { color: white; background: var(--teal); border-color: var(--teal); }
.wide { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.form-actions a { color: var(--muted); text-decoration: none; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.choice { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.choice input { width: auto; margin: 3px 0 0; }
.choice span { display: block; }
.choice small { display: block; color: var(--muted); font-weight: 450; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 10px 30px; }
.review-grid > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.field-label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.review-action { margin-top: 22px; }
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pack-grid label > span { display: block; margin-bottom: 4px; }
.pack-grid textarea { font-family: inherit; line-height: 1.5; }
.sticky-save { position: sticky; bottom: 18px; grid-column: 1 / -1; background: rgba(17,27,49,.96); color: white; padding: 16px 18px; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.sticky-save span { font-size: 13px; color: #cfd7e7; }
.top-gap { margin-top: 20px; }
.center { text-align: center; }
.notice, .sandbox-box { padding: 14px; border-radius: 10px; background: #f0f3f8; border: 1px solid var(--line); }
.plan-grid, .integration-grid, .test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 15px; border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.plan-card p, .integration-card p, .integration-card small { color: var(--muted); }
.plan-card .price { font-size: 27px; }
.integration-card { box-shadow: none; }
.integration-card h2 { font-size: 22px; margin-bottom: 0; }
.sandbox-box { margin-top: 15px; }
.sandbox-box form { margin-top: 10px; }
.test-action { color: var(--blue); }
.preference-form { margin-top: 18px; display: grid; gap: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; margin: 0; }
.key-values > div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.key-values span { color: var(--muted); }
.usage-row { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.usage-row small { display: block; color: var(--muted); }
.usage-track { height: 10px; background: #e7ebf2; border-radius: 20px; overflow: hidden; }
.usage-track span { display: block; height: 100%; background: var(--blue); }
.tenant-controls form { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.tenant-controls small { display: block; color: var(--muted); }
.error-pill { background: #fff0f1; color: #a52633; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.lead-list { display: grid; gap: 14px; }
.lead-card { display: flex; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; color: inherit; text-decoration: none; }
.lead-card h2, .lead-card h3 { margin: 10px 0 6px; font-size: 21px; }
.lead-card p, .lead-card small, .evidence-row small, .timeline-row small { color: var(--muted); }
.score-badge { min-width: 78px; height: 78px; display: grid; place-content: center; text-align: center; border-radius: 18px; background: var(--navy); color: white; }
.score-badge strong { font-size: 30px; line-height: 1; }
.score-badge small { font-size: 9px; color: #d4dbeb; letter-spacing: .08em; }
.score-badge.large { min-width: 100px; height: 100px; }
.component-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.component-grid > div { padding: 15px; border-radius: 11px; background: var(--paper); }
.component-grid span, .component-grid small { display: block; color: var(--muted); font-size: 11px; }
.component-grid strong { font-size: 25px; }
.evidence-row, .timeline-row, .draft-card { display: block; border-top: 1px solid var(--line); padding: 17px 0; }
.timeline-row p, .draft-card p { margin: 5px 0; }
.block-link { color: inherit; text-decoration: none; }
.pre-line { white-space: pre-line; }
.action-row { display: flex; gap: 8px; }
.report-table > div { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.report-head { color: var(--muted); font-size: 12px; }
.internal-console { background: #f5f7fb; }
.internal-banner { position: sticky; top: 0; z-index: 20; padding: 8px 20px; text-align: center; background: #781e2c; color: white; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.internal-header { top: 31px; }
.internal-header nav { flex-wrap: wrap; justify-content: flex-end; }
.internal-shell { padding-top: 34px; }
.scope-strip { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; padding: 12px 15px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.scope-strip > span:not(.status-pill) { color: var(--muted); }
.trace-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trace-flow a { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 750; }
.claim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trace-card { margin-top: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.trace-card h3 { margin: 10px 0; }
.trace-card pre, .explanation-sections pre, .evidence-pre { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.trace-details summary { cursor: pointer; font-weight: 750; }
.explanation-sections article { padding: 12px 0; border-top: 1px solid var(--line); }
.explanation-sections h3 { margin: 0 0 6px; }
.internal-console code { overflow-wrap: anywhere; }
.opportunity-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opportunity-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.opportunity-summary h3 { margin-bottom: 7px; font-size: 15px; letter-spacing: -.01em; }
.opportunity-summary p { margin: 0; }
.timing-note { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--teal); background: #edf8f6; }
.advanced-provenance { cursor: default; }
.advanced-provenance > summary { cursor: pointer; font-weight: 780; }
.advanced-provenance > p { margin-top: 14px; color: var(--muted); }
.beta-onboarding { background: #f3f5f2; color: #15251f; }
.beta-header { height: 72px; padding: 0 clamp(20px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe5df; background: rgba(251,252,249,.95); }
.beta-header .brand-mark { background: #153d31; }
.beta-account { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.beta-account > span { color: #6a776f; }
.beta-main { min-height: calc(100vh - 130px); }
.beta-footer { padding: 24px; border: 0; color: #78847c; justify-content: center; }
.beta-frame { max-width: 790px; margin: 0 auto; padding: 70px 26px 100px; }
.beta-frame-wide { max-width: 1040px; }
.beta-intro { margin-bottom: 30px; }
.beta-frame h1 { font-size: clamp(38px, 5vw, 62px); color: #163329; }
.beta-lede { max-width: 760px; color: #66746c; font-size: 17px; }
.beta-card { padding: 30px; border: 1px solid #dce4de; border-radius: 18px; background: #fff; box-shadow: 0 20px 65px rgba(32,57,47,.07); }
.beta-primary { background: #176a51; box-shadow: 0 8px 22px rgba(23,106,81,.19); }
.beta-primary:hover { background: #10533f; }
.beta-check { display: flex; gap: 11px; align-items: flex-start; font-weight: 550; }
.beta-check input { width: auto; margin: 4px 0 0; }
.beta-consents { display: grid; gap: 11px; padding: 18px; border-radius: 12px; background: #f4f7f4; }
.research-list { display: grid; gap: 0; margin: 28px 0 18px; }
.research-list article { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid #e5e9e5; }
.research-list article:first-child { border-top: 0; }
.research-list p { margin: 4px 0; }
.research-list small { color: #748078; }
.epistemic { align-self: start; display: inline-flex; justify-content: center; padding: 5px 8px; border-radius: 999px; background: #edf1ef; color: #5f6d65; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.epistemic.observed { background: #e5f5ef; color: #126148; }
.epistemic.proposed { background: #fff2ce; color: #775b0b; }
.beta-note { margin: 18px 0 24px; padding: 15px 17px; border-left: 3px solid #c6a23c; background: #fff9e8; color: #685a32; }
.beta-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #dfe6e1; }
.beta-progress span { display: block; height: 100%; border-radius: inherit; background: #1a755a; }
.beta-progress-copy { display: flex; justify-content: space-between; margin: 10px 0 32px; color: #718077; font-size: 12px; }
.beta-progress-copy a { color: #315f50; font-weight: 700; }
.beta-question-card { padding: clamp(28px, 5vw, 56px); border: 1px solid #dce4de; border-radius: 22px; background: white; box-shadow: 0 24px 80px rgba(32,57,47,.08); }
.beta-question-card h1 { font-size: clamp(32px, 5vw, 50px); }
.beta-question { font-size: 20px; line-height: 1.45; }
.beta-help { color: #738078; }
.beta-options, .beta-answer-mode { display: grid; gap: 10px; }
.beta-options label, .beta-answer-mode label { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #dce4de; border-radius: 11px; cursor: pointer; }
.beta-options input, .beta-answer-mode input { width: auto; margin: 0; }
.beta-answer-mode { grid-template-columns: 1fr 1fr; margin-top: 4px; }
.beta-answer-mode label { color: #5d6b63; font-size: 12px; font-weight: 650; }
.readiness-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 20px; padding: 16px 18px; border-radius: 12px; background: #e8f5ef; color: #155e47; }
.readiness-strip span { font-size: 12px; }
.readiness-strip.needs_required_information, .readiness-strip.conflicted { background: #fff2df; color: #79521b; }
.review-sections { display: grid; gap: 16px; }
.review-sections .beta-card { padding: 26px 30px; }
.review-sections h2 { margin-bottom: 10px; font-size: 15px; color: #517064; letter-spacing: .08em; }
.review-answer { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid #e4e9e5; }
.review-answer h3 { margin: 4px 0 6px; }
.review-answer p { margin: 0; white-space: pre-line; }
.reality-state { color: #467162; font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.unknown-copy { color: #8b6a35; }
.warning { margin-top: 10px; padding: 10px; border-radius: 8px; background: #fff3dc; color: #7a551c; font-size: 12px; }
.beta-confirm { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 20px; background: #163d31; color: white; }
.beta-confirm h2 { margin-bottom: 8px; }
.beta-confirm p { margin: 0; color: #c7d9d2; }
.beta-ready { padding-top: 100px; text-align: center; }
.ready-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 30px; border-radius: 50%; background: #dff4eb; color: #176a51; font-size: 34px; font-weight: 800; }
.ready-mark.paused { background: #edf0ee; color: #58675f; }
.ready-mark.attention { background: #fff1d9; color: #8a5b14; }
.beta-ready > p { max-width: 680px; margin: 0 auto 30px; color: #69766e; font-size: 18px; }
.ready-safety { margin-top: 50px; display: grid; gap: 6px; text-align: left; }
.ready-safety span { color: #6e7b73; }
@media (max-width: 850px) {
  .auth-layout, .process-section, .dashboard-grid, .plan-grid, .integration-grid, .test-grid { grid-template-columns: 1fr; gap: 35px; }
  .split-cards, .pack-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .page-heading, .wizard-head { align-items: start; flex-direction: column; }
  .filter-grid, .component-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { flex-direction: column; gap: 8px; }
  .claim-grid { grid-template-columns: 1fr; }
  .opportunity-summary { grid-template-columns: 1fr; }
  .beta-confirm { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 18px; }
  .brand > span:last-child { display: none; }
  .form-grid, .choice-grid, .review-grid, .metric-grid { grid-template-columns: 1fr; }
  .filter-grid, .component-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .hero-actions, .cta-panel { align-items: stretch; flex-direction: column; }
  .steps { width: 100%; justify-content: space-between; overflow-x: auto; }
  .beta-header { padding: 0 16px; }
  .beta-account > span { display: none; }
  .beta-frame { padding: 45px 16px 70px; }
  .beta-question-card, .beta-card { padding: 22px; }
  .beta-answer-mode { grid-template-columns: 1fr; }
  .research-list article { grid-template-columns: 1fr; }
  .readiness-strip, .review-answer { align-items: flex-start; flex-direction: column; }
}
