:root {
  --ink: #10251f;
  --ink-soft: #435a52;
  --paper: #f6f7f2;
  --white: #ffffff;
  --line: #dce3dc;
  --green: #146e58;
  --green-dark: #0a4337;
  --mint: #d8eee5;
  --lime: #d8f08c;
  --critical: #b33b32;
  --high: #c96f28;
  --medium: #9a7a16;
  --shadow: 0 24px 70px rgba(16, 37, 31, 0.12);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }

.site-header { max-width: 1240px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #ecffe8; background: var(--green); border-radius: 10px 10px 10px 2px; font-weight: 800; }
.brand-light { color: white; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav > a:not(.button) { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 650; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--green); border-radius: 12px; color: white; background: var(--green); box-shadow: 0 8px 24px rgba(20, 110, 88, .18); text-decoration: none; font-weight: 750; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 10px; }
.button-ghost { color: var(--green-dark); background: white; border-color: var(--line); box-shadow: none; }
.button-ghost:hover { background: #eef4ef; }
.text-link { color: var(--green-dark); font-weight: 750; text-decoration: none; }
.kicker, .eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.hero { max-width: 1240px; min-height: 670px; margin: 0 auto; padding: 80px 28px 100px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 80px; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(54px, 6.2vw, 86px); line-height: .98; letter-spacing: -.065em; font-weight: 760; }
.hero h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.hero-lede { max-width: 640px; margin: 28px 0 30px; color: var(--ink-soft); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; color: #61756e; font-size: 13px; font-weight: 650; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--green); }
.hero-product { position: relative; }
.preview-window { overflow: hidden; border: 1px solid #cfdad1; border-radius: 24px; background: white; box-shadow: var(--shadow); transform: rotate(1deg); }
.preview-chrome { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; color: #6e7d77; background: #eef2ed; border-bottom: 1px solid #dfe5df; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.preview-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #b9c5bd; }
.preview-chrome span { margin-left: 10px; }
.preview-body { padding: 28px; }
.preview-metric { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.preview-metric span, .preview-metric small { display: block; color: #6b7c75; }
.preview-metric strong { display: block; margin: 5px 0; font-size: 42px; letter-spacing: -.04em; }
.signal-list article { padding: 18px 0; display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid #edf0ec; }
.signal-list strong, .signal-list small { display: block; }
.signal-list small { margin-top: 4px; color: #74847e; }
.signal { width: 9px; height: 9px; border-radius: 50%; }
.signal.critical { background: var(--critical); box-shadow: 0 0 0 5px #f6dedb; }
.signal.high { background: var(--high); box-shadow: 0 0 0 5px #f8e8da; }
.signal.medium { background: var(--medium); box-shadow: 0 0 0 5px #f2ebce; }
.floating-proof { position: absolute; right: -22px; bottom: -42px; padding: 16px 18px; border-radius: 14px; background: var(--green-dark); color: white; box-shadow: 0 18px 44px rgba(10,67,55,.28); }
.floating-proof span, .floating-proof strong { display: block; }
.floating-proof span { margin-bottom: 5px; color: #a9d6c8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.floating-proof strong { font-size: 13px; }

.proof-strip { max-width: 1184px; margin: 0 auto 100px; padding: 26px 34px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: white; }
.proof-strip div { padding: 4px 28px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { margin-bottom: 6px; font-size: 20px; }
.proof-strip span { color: var(--ink-soft); font-size: 13px; }
.section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-heading { max-width: 780px; }
.section h2 { margin: 0; font-size: clamp(38px, 4.7vw, 62px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 660px; color: var(--ink-soft); font-size: 18px; line-height: 1.65; }
.steps-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.steps-grid article > span { color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.steps-grid h3 { margin: 48px 0 12px; font-size: 22px; }
.steps-grid p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.dark-section { max-width: 1184px; margin-bottom: 80px; padding: 72px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; color: white; background: var(--green-dark); border-radius: 28px; }
.dark-section .kicker { color: var(--lime); }
.dark-section h2 { font-size: clamp(38px, 4vw, 56px); }
.security-copy > p:last-child { color: #b9d1c9; line-height: 1.7; }
.security-list > div { padding: 22px 0; display: grid; grid-template-columns: 48px 1fr; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.14); }
.security-list span { color: var(--lime); font-family: var(--mono); }
.security-list p { margin: 0; color: #c9dcd6; line-height: 1.55; }
.security-list strong { color: white; }
.pilot-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.pilot-card { padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.pilot-card > p { font-weight: 750; }
.pilot-card ul { margin: 24px 0; padding: 0; list-style: none; }
.pilot-card li { padding: 10px 0; color: var(--ink-soft); border-bottom: 1px solid #edf0ec; }
.pilot-card li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 800; }
.pilot-card .button { width: 100%; }
.pilot-card small { display: block; margin-top: 14px; color: #7c8b85; text-align: center; line-height: 1.4; }
footer { max-width: 1240px; margin: 0 auto; padding: 30px 28px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }

.app-page { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; background: #f1f4ef; }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; display: flex; flex-direction: column; color: white; background: #0d2f28; }
.app-sidebar nav { margin-top: 48px; display: grid; gap: 8px; }
.app-sidebar nav a { padding: 12px 13px; display: flex; align-items: center; gap: 12px; border-radius: 9px; color: #b8d1c9; text-decoration: none; font-size: 14px; font-weight: 650; }
.app-sidebar nav a span { width: 20px; text-align: center; font-family: var(--mono); }
.app-sidebar nav a.active, .app-sidebar nav a:hover { color: white; background: rgba(255,255,255,.09); }
.privacy-chip { margin-top: auto; padding: 13px; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.05); }
.privacy-chip > span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(216,240,140,.1); }
.privacy-chip strong, .privacy-chip small { display: block; }
.privacy-chip strong { font-size: 12px; }
.privacy-chip small { margin-top: 3px; color: #9cb8af; font-size: 10px; }
.sidebar-back { margin: 18px 8px 0; color: #9cb8af; font-size: 12px; text-decoration: none; }
.app-main { min-width: 0; padding: 32px 38px 70px; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.app-header h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.app-header .eyebrow { margin-bottom: 8px; }
.header-actions { display: flex; gap: 10px; }
.app-header .button { min-height: 42px; padding: 0 15px; font-size: 13px; }
.data-notice { margin: 26px 0 18px; padding: 13px 16px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid #d5ded6; border-radius: 10px; background: #f9fbf8; color: #60736c; font-size: 12px; }
.data-notice p { margin: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { padding: 22px; border: 1px solid #dce3dc; border-radius: 14px; background: white; }
.metric-card .eyebrow { margin-bottom: 14px; color: #6e8079; font-size: 10px; }
.metric-value { display: block; font-size: 30px; letter-spacing: -.04em; }
.metric-note { min-height: 32px; margin: 9px 0 0; color: #73837d; font-size: 11px; line-height: 1.45; }
.app-grid { margin-top: 14px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.panel { min-width: 0; padding: 22px; border: 1px solid #dce3dc; border-radius: 14px; background: white; }
.wide-panel, .import-panel { grid-column: 1 / -1; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading .eyebrow { margin-bottom: 6px; color: #70817a; font-size: 9px; }
.panel h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.count-pill { padding: 6px 10px; border-radius: 999px; color: #52665f; background: #edf2ed; font-size: 11px; font-weight: 700; }
.filter-row { margin: 20px 0 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 7px 11px; border: 1px solid #dce3dc; border-radius: 8px; color: #60736c; background: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-button.active, .filter-button:hover { color: white; background: var(--green-dark); border-color: var(--green-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 10px; color: #798983; background: #f5f7f4; text-align: left; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 14px 10px; border-bottom: 1px solid #edf0ec; vertical-align: top; }
.status-badge { display: inline-flex; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-badge.critical { color: #8e271f; background: #f8dedb; }
.status-badge.high { color: #974d14; background: #f8e7d8; }
.status-badge.medium { color: #776014; background: #f4edcf; }
.status-badge.opportunity { color: #17644f; background: #dff0e9; }
.mono { font-family: var(--mono); white-space: nowrap; }
.table-title, .table-detail { display: block; min-width: 240px; }
.table-detail { margin-top: 5px; color: #6d7e77; line-height: 1.35; }
.money { font-family: var(--mono); font-weight: 750; white-space: nowrap; }
.action-copy { min-width: 230px; color: #50635c; line-height: 1.45; }
.empty-state { padding: 30px; color: #75867f; text-align: center; }
.renewal-list { margin-top: 20px; display: grid; gap: 10px; }
.renewal-card { padding: 14px; border: 1px solid #e1e6e1; border-radius: 10px; }
.renewal-top { display: flex; justify-content: space-between; gap: 14px; }
.renewal-client, .renewal-payer { display: block; }
.renewal-client { font-size: 13px; }
.renewal-payer { margin-top: 3px; color: #71827b; font-size: 10px; }
.days { height: fit-content; padding: 4px 6px; border-radius: 6px; color: #6c5c18; background: #f2ebd0; font-family: var(--mono); font-size: 9px; }
.days.urgent { color: #922e26; background: #f8dedb; }
.progress-track { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #e9eee9; }
.progress-fill { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.renewal-meta { margin: 8px 0 0; color: #74847e; font-size: 10px; }
.coverage-bars { margin-top: 22px; display: grid; gap: 18px; }
.bar-label { margin-bottom: 7px; display: flex; justify-content: space-between; gap: 12px; color: #61746c; font-size: 11px; }
.bar-label strong { color: var(--ink); font-family: var(--mono); }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ebefeb; }
.bar-fill { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--green), #56a187); }
.import-panel { padding: 26px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.import-copy > p:not(.eyebrow) { color: #64776f; line-height: 1.55; }
.upload-box { min-height: 145px; padding: 22px; display: grid; place-items: center; align-content: center; border: 1.5px dashed #a9b9b0; border-radius: 13px; background: #f8faf7; cursor: pointer; text-align: center; }
.upload-box:hover { border-color: var(--green); background: #f1f7f2; }
.upload-icon { width: 34px; height: 34px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--mint); font-weight: 850; }
.upload-box strong, .upload-box small { display: block; }
.upload-box small { margin-top: 5px; color: #71817b; }
.upload-box input { position: absolute; opacity: 0; pointer-events: none; }
.upload-status { grid-column: 2; margin: -18px 0 0; color: #71817b; font-size: 11px; }
.upload-status.success { color: var(--green); }
.upload-status.error { color: var(--critical); }

.document-page { min-height: 100vh; background: white; }
.document-shell { max-width: 760px; margin: 70px auto 120px; padding: 0 28px; }
.document-shell h1 { margin: 0 0 20px; font-size: 56px; letter-spacing: -.05em; }
.document-lede { color: var(--ink-soft); font-size: 20px; }
.document-shell h2 { margin-top: 44px; }
.document-shell p { color: var(--ink-soft); line-height: 1.75; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-product { max-width: 650px; }
  .dark-section, .pilot-section { grid-template-columns: 1fr; gap: 45px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; }
  .wide-panel, .import-panel { grid-column: auto; }
  .import-panel { grid-template-columns: 1fr; }
  .upload-status { grid-column: auto; margin: 0; }
}

@media (max-width: 760px) {
  .site-header nav > a:not(.button) { display: none; }
  .hero { padding: 40px 20px 80px; gap: 55px; }
  .hero h1 { font-size: 54px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .floating-proof { right: 8px; bottom: -34px; }
  .proof-strip { margin: 0 20px 70px; grid-template-columns: 1fr; }
  .proof-strip div { padding: 18px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .dark-section { margin: 0 20px 60px; padding: 46px 28px; }
  footer { align-items: flex-start; flex-direction: column; }
  .app-page { display: block; }
  .app-sidebar { position: static; width: 100%; height: auto; padding: 16px 20px; flex-direction: row; align-items: center; }
  .app-sidebar nav, .privacy-chip, .sidebar-back { display: none; }
  .app-main { padding: 24px 16px 60px; }
  .app-header { align-items: flex-start; flex-direction: column; }
  .data-notice { align-items: flex-start; flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr; }
  .import-panel { display: block; }
  .upload-box { margin-top: 24px; }
}
