:root {
  color-scheme: light;
  --ink: #102735;
  --ink-2: #38505d;
  --paper: #f4f7f6;
  --white: #ffffff;
  --line: #d7e0df;
  --cyan: #59d8df;
  --cyan-soft: #e1f8f8;
  --orange: #f29c5b;
  --orange-soft: #fff0e5;
  --red: #d94b58;
  --red-soft: #ffeaec;
  --green: #188864;
  --green-soft: #e4f6ef;
  --shadow: 0 18px 50px rgba(16, 39, 53, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 70% -20%, #dff7f8 0, transparent 36%), var(--paper); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within { outline: 3px solid rgba(48, 174, 184, .35); outline-offset: 3px; }

.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(16,39,53,.1); background: rgba(244,247,246,.82); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1rem; letter-spacing: -.01em; }
.brand strong { font-weight: 750; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.05em; }
.brand-logo { width: 22px; height: 22px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; position: relative; flex: 0 0 auto; color: var(--ink); }
.brand-logo i { width: 8px; height: 8px; border-radius: 50%; background: #67e8b5; position: absolute; right: -4px; top: -3px; }
.privacy-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.75); color: var(--ink-2); font-size: .8rem; font-weight: 650; }
.privacy-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 80px; min-height: calc(100vh - 128px); }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 72px; align-items: end; margin-bottom: 38px; }
body[data-view="results"] .intro, body[data-view="loading"] .intro { display: none; }
.eyebrow { margin: 0 0 9px; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: #3e7d83; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.intro-copy { margin: 0 0 4px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

.upload-layout, .email-layout { display: grid; grid-template-columns: 1.45fr .75fr; gap: 22px; }
.upload-card, .local-card, .panel, .loading-card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.upload-card { padding: 22px; border-radius: 18px; }
.step-label { margin-bottom: 14px; color: var(--ink-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-step { margin-top: 20px; }
.mode-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.mode-selector label { min-height: 54px; cursor: pointer; }
.mode-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-selector span { height: 100%; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; color: var(--ink-2); font-size: .88rem; font-weight: 800; text-align: center; transition: .18s ease; }
.mode-selector input:checked + span { border-color: #279faa; background: var(--cyan-soft); color: var(--ink); box-shadow: inset 0 0 0 1px #279faa; }
.dropzone { min-height: 270px; border: 1.5px dashed #9cb1b4; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; cursor: pointer; background: linear-gradient(145deg, #fafdfe, #f4f9f8); transition: .18s ease; }
.dropzone:hover, .dropzone.dragging { border-color: #2daab5; background: var(--cyan-soft); transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { font-size: 1.18rem; margin-bottom: 6px; }
.dropzone > span:not(.upload-icon) { color: var(--ink-2); font-size: .92rem; }
.dropzone small { margin-top: 18px; color: #6d8189; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 17px; border-radius: 50%; background: var(--ink); color: var(--cyan); }
.upload-icon svg, .shield svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.or { display: flex; align-items: center; gap: 12px; margin: 17px 0; color: #7a8d93; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.button { border: 0; min-height: 46px; border-radius: 9px; padding: 0 18px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(.98); }
.button.secondary { width: 100%; background: #eaf0ef; }
.button.primary { color: white; background: var(--ink); }
.local-card { border-radius: 18px; padding: 32px; background: var(--ink); color: #eaf3f2; overflow: hidden; position: relative; }
.local-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -100px; border: 28px solid rgba(89,216,223,.1); border-radius: 50%; }
.local-card .eyebrow { color: var(--cyan); }
.local-card h2 { margin: 0 0 14px; font-size: 1.7rem; letter-spacing: -.035em; }
.local-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.local-card p:not(.eyebrow) { color: #b9c9cd; line-height: 1.6; }
.local-card ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; position: relative; z-index: 1; }
.local-card li { display: flex; gap: 10px; font-size: .9rem; }
.local-card li::before { content: "✓"; color: var(--cyan); font-weight: 900; }
.shield { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: rgba(89,216,223,.12); margin-bottom: 42px; }
.message { padding: 12px 14px; border-radius: 8px; font-size: .9rem; }
.error { background: var(--red-soft); color: #9e2632; }

.loading-card { max-width: 680px; margin: 80px auto; padding: 70px 36px; border-radius: 18px; text-align: center; }
.loading-card h2 { margin: 0 0 9px; font-size: 2rem; }
.loading-card p:last-child { color: var(--ink-2); }
.spinner { width: 52px; height: 52px; margin: 0 auto 25px; border: 4px solid var(--cyan-soft); border-top-color: #2aa6b0; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.results-head h2 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.muted { color: #667c84; }
.text-button { border: 0; padding: 0; margin-bottom: 25px; background: none; color: #427980; cursor: pointer; font-weight: 750; }
.score-card { min-width: 270px; display: flex; align-items: center; gap: 17px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.score-card > div { display: grid; gap: 4px; }
.score-card > div span { font-size: .78rem; color: var(--ink-2); }
.score-ring { --score: 0%; width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle closest-side, white 77%, transparent 79% 100%), conic-gradient(var(--green) var(--score), #dce5e4 0); }
.score-ring strong { font-size: 1.25rem; line-height: 1; }
.score-ring small { color: var(--ink-2); font-size: .62rem; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { border: 0; border-bottom: 3px solid transparent; padding: 15px 18px 13px; background: transparent; white-space: nowrap; cursor: pointer; color: #61757c; font-weight: 700; }
.tab.active { border-color: #279faa; color: var(--ink); }
.tab span { background: var(--orange-soft); color: #9a4d17; border-radius: 999px; padding: 2px 7px; margin-left: 5px; font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 142px; padding: 20px; border: 1px solid var(--line); background: white; border-radius: 13px; }
.metric .metric-label { color: #657981; font-size: .78rem; font-weight: 700; }
.metric strong { display: block; margin-top: 24px; font-size: 1.3rem; letter-spacing: -.02em; }
.metric small { display: block; margin-top: 5px; color: #6c8087; line-height: 1.35; }
.review-grid { display: grid; grid-template-columns: 1.45fr .7fr; gap: 18px; }
.panel { border-radius: 15px; padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.count-badge { border-radius: 999px; padding: 6px 10px; background: var(--orange-soft); color: #9a4d17; font-size: .78rem; font-weight: 800; }
.issues-list { margin-top: 17px; display: grid; gap: 10px; }
.issue { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.issue-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; }
.issue.high .issue-icon { background: var(--red-soft); color: var(--red); }
.issue.medium .issue-icon { background: var(--orange-soft); color: #ad5c20; }
.issue.low .issue-icon { background: var(--cyan-soft); color: #19737b; }
.issue strong { display: block; margin-bottom: 4px; font-size: .92rem; }
.issue p { margin: 0; color: var(--ink-2); font-size: .83rem; line-height: 1.45; }
.severity { text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; font-weight: 900; color: #74878d; }
.next-panel { background: linear-gradient(155deg, #102735, #183b4b); color: white; border-color: transparent; }
.next-panel .eyebrow { color: var(--cyan); }
.next-panel p:not(.eyebrow):not(.fine-print) { min-height: 118px; color: #c7d6d8; line-height: 1.55; }
.next-panel .button { width: 100%; color: var(--ink); background: var(--cyan); }
.fine-print { margin: 18px 0 0; font-size: .72rem; color: #8fa8ad; line-height: 1.45; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.detail-card span { color: #6d8087; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.detail-card strong { display: block; margin-top: 9px; font-size: 1rem; line-height: 1.45; }
.source-preview { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.source-preview summary { cursor: pointer; font-weight: 750; }
.source-preview pre { max-height: 350px; overflow: auto; white-space: pre-wrap; font: .8rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.email-layout { align-items: start; }
.email-card { padding: 8px 24px 24px; }
.field-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.field-row label { color: #697d84; font-size: .8rem; font-weight: 750; }
.field-row input, .field-row textarea { width: 100%; border: 0; background: transparent; padding: 15px 0; color: var(--ink); outline: 0; }
.field-row textarea { resize: vertical; line-height: 1.6; }
.field-row textarea.subject-field { min-height: 52px; resize: none; overflow: hidden; }
.body-row { align-items: start; }
.body-row label { padding-top: 18px; }
.email-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.compact { padding: 27px; }
.compact::after { display: none; }
footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 32px; border-top: 1px solid var(--line); color: #71858b; font-size: .78rem; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }

@media (max-width: 880px) {
  .intro, .upload-layout, .review-grid, .email-layout { grid-template-columns: 1fr; gap: 20px; }
  .intro { align-items: start; }
  .intro-copy { max-width: 640px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .next-panel p:not(.eyebrow):not(.fine-print) { min-height: auto; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; }
  .brand > span:last-child { font-size: 0; }
  .brand-name { font-size: 1.05rem; }
  .brand strong { font-size: .92rem; }
  .privacy-pill { max-width: 195px; padding: 7px 10px; font-size: .68rem; }
  .shell { width: min(100% - 28px, 1180px); padding-top: 38px; }
  .intro { margin-bottom: 26px; gap: 20px; }
  h1 { font-size: 2.55rem; }
  .upload-card, .local-card, .panel { padding: 18px; }
  .dropzone { min-height: 240px; padding: 22px 14px; }
  .results-head { align-items: stretch; flex-direction: column; }
  .score-card { min-width: 0; }
  .metric-grid, .details-grid { grid-template-columns: 1fr; }
  .mode-selector { grid-template-columns: 1fr; }
  .metric { min-height: 110px; }
  .metric strong { margin-top: 17px; }
  .issue { grid-template-columns: 32px 1fr; }
  .severity { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; padding-top: 12px; }
  .field-row input, .field-row textarea { padding-top: 6px; }
  .body-row label { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.promo-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:24px 0 32px;padding:14px 20px;border-radius:14px;background:#0b1426;color:#e8eef5;font-size:.92rem}
.promo-bar p{margin:0}
.promo-bar a{color:#67e8b5;font-weight:700;text-decoration:none;white-space:nowrap}
.promo-bar a:hover{text-decoration:underline}
.promo-link{color:inherit;font-weight:700}

.lead-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;margin-top:22px;align-items:start}
.lead-copy h3{margin:6px 0 10px}
.lead-copy p{color:var(--ink-2)}
.lead-form{display:grid;gap:12px}
.lead-form label{display:grid;gap:6px;font-size:.85rem;font-weight:650;color:var(--ink-2)}
.lead-form input[type=email],.lead-form input[type=text]{border:1px solid var(--line);border-radius:10px;padding:11px 12px;font:inherit;color:var(--ink);background:var(--white)}
.lead-form .lead-check{display:flex;gap:10px;align-items:flex-start;font-weight:600}
.lead-form .lead-check input{margin-top:3px}
.form-trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.fine-print{margin:0;font-size:.75rem;color:var(--ink-2)}
.lead-status{margin:0;font-weight:650;min-height:1.2em}
.lead-status[data-state=ok]{color:var(--green)}
.lead-status[data-state=error]{color:var(--red)}
@media (max-width:760px){.lead-panel{grid-template-columns:1fr;gap:16px}}
.promo-links{display:flex;gap:18px;flex-wrap:wrap}

/* ---- 2026-11 site design v2: brand tokens from /site.css (navy + mint, Geist), motion ---- */
:root {
  --ink: #0b1627; --ink-2: #566577; --paper: #f5f7fa; --line: #e1e7ee;
  --cyan: #67e8b5; --cyan-soft: #e3f8ef; --green: #0c9565; --green-soft: #e3f8ef;
  --shadow: 0 1px 2px rgba(11,22,39,.04), 0 12px 32px -12px rgba(11,22,39,.14);
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: "Geist", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
body { background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.topbar { background: #071120; border-bottom: 0; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar .brand, .topbar .brand-logo { color: #fff; }
.topbar .brand strong { font-weight: 500; color: #9fb0c4; }
.brand-logo i { animation: ping 3.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(103,232,181,.55); } 60%, 100% { box-shadow: 0 0 0 9px rgba(103,232,181,0); } }
.privacy-pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #d5deea; }
.eyebrow { color: var(--green); font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.intro, .upload-layout, .promo-bar, #results-view, .loading-card { animation: rise .7s var(--ease) both; }
.upload-layout { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.promo-bar { background: #071120; border-radius: 16px; }
.upload-card, .local-card, .panel, .loading-card { border-radius: 20px; }
.mode-selector span { border-radius: 12px; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.mode-selector label:hover span { transform: translateY(-1px); }
.mode-selector input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.dropzone { border-radius: 16px; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: var(--green-soft); }
.upload-icon { color: var(--cyan); background: #071120; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.button { border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.button.primary { background: #0b1627; }
.button.primary:hover, .next-panel .button:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(103,232,181,.18), 0 14px 32px -8px rgba(11,22,39,.4); }
.next-panel .button, .lead-form .button.primary { background: var(--cyan); color: #05281b; }
.local-card { background: #071120; }
.local-card::after { border-color: rgba(103,232,181,.12); animation: bob 6s ease-in-out infinite; }
.next-panel { background: linear-gradient(155deg, #071120, #12294a); }
.spinner { border-color: var(--green-soft); border-top-color: var(--green); }
.text-button { color: var(--green); }
.tab.active { border-color: var(--green); }
.metric, .issue, .detail-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.metric:hover, .detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.metric-grid .metric { animation: rise .6s var(--ease) both; }
.metric-grid .metric:nth-child(2) { animation-delay: .07s; } .metric-grid .metric:nth-child(3) { animation-delay: .14s; } .metric-grid .metric:nth-child(4) { animation-delay: .21s; }
.issue.low .issue-icon { color: var(--green); }
.lead-form input[type=email], .lead-form input[type=text] { border-radius: 12px; min-height: 46px; }
.lead-form input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(103,232,181,.25); }
.promo-bar a { color: var(--cyan); }
footer .brand-logo { color: var(--ink); }
