:root {
  color-scheme: light;
  --page: #f7f8fb;
  --surface: #fff;
  --ink: #1c2938;
  --soft: #526174;
  --muted: #79879a;
  --line: #e4e9f0;
  --accent: #287c72;
  --accent-dark: #20685f;
  --accent-pale: #eaf5f2;
  --danger: #b94f4a;
  --danger-pale: #fff1ef;
  --success: #287c58;
  --success-pale: #edf7f0;
  --shadow: 0 8px 26px rgba(34, 52, 72, .055);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--page); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; height: 70px; align-items: center; gap: 30px; padding: 0 max(28px, calc((100% - 1120px) / 2)); border-bottom: 1px solid rgba(226, 232, 239, .85); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: white; background: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: -.06em; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.site-header nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-header nav a { color: var(--soft); font-size: 12px; font-weight: 500; transition: color .15s; }
.site-header nav a:hover, .back-top:hover { color: var(--accent); }
.site-header nav .nav-cta { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; }
.nav-cta span { margin-left: 6px; color: var(--accent); }
.connection-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 10px; white-space: nowrap; }
.connection-status i { width: 7px; height: 7px; border-radius: 50%; background: #45a875; box-shadow: 0 0 0 3px #e6f4eb; }
.connection-status.offline { color: var(--danger); }
.connection-status.offline i { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-pale); }

main { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.hero { position: relative; display: grid; min-height: 390px; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 28px; padding: 55px 48px 45px; overflow: hidden; }
.hero::before { position: absolute; top: -190px; right: -170px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(210,234,228,.8), rgba(247,248,251,0) 69%); content: ""; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font: 10px var(--mono); letter-spacing: .11em; }
.eyebrow-mark { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 2px; background: var(--accent); }
h1 { max-width: 580px; margin: 13px 0 13px; font-size: clamp(36px, 5vw, 55px); font-weight: 600; letter-spacing: -.065em; line-height: 1.08; }
.hero-copy > p { max-width: 535px; margin: 0 0 21px; color: var(--soft); font-size: 14px; line-height: 1.75; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 10px; padding: 9px 15px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--accent); color: white; background: var(--accent); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-secondary { border-color: var(--line); color: var(--ink); background: white; }
.button-secondary:hover { border-color: #b7c8c6; background: #f7fbfa; }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.check-mark { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-pale); font-size: 10px; font-weight: 700; }

.hero-art { position: relative; display: grid; min-height: 275px; place-items: center; }
.art-glow { position: absolute; width: 225px; height: 225px; border-radius: 50%; background: radial-gradient(circle, #e1f1ec 0, rgba(225,241,236,.18) 68%, transparent 70%); }
.shield { position: relative; display: grid; width: 130px; height: 150px; place-items: center; clip-path: polygon(50% 0, 94% 16%, 89% 65%, 74% 84%, 50% 100%, 26% 84%, 11% 65%, 6% 16%); background: linear-gradient(145deg, #317f74, #1d625d); filter: drop-shadow(0 16px 21px rgba(37,111,101,.18)); }
.shield-inner { display: grid; width: 112px; height: 130px; place-items: center; clip-path: polygon(50% 0, 94% 16%, 89% 65%, 74% 84%, 50% 100%, 26% 84%, 11% 65%, 6% 16%); color: white; background: linear-gradient(145deg, #3e9484, #27766b); }
.shield-check { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 23px; }
.art-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(226,232,239,.9); border-radius: 7px; color: var(--soft); background: rgba(255,255,255,.92); box-shadow: var(--shadow); font: 8px var(--mono); letter-spacing: .04em; }
.chip-one { top: 47px; left: 3px; }
.chip-two { right: 0; bottom: 42px; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #d29d4b; }
.chip-two .chip-dot { background: #45a875; }
.art-line { position: absolute; width: 30px; height: 1px; background: #b2d0c8; transform: rotate(30deg); }
.line-one { top: 82px; left: 104px; }
.line-two { right: 102px; bottom: 85px; transform: rotate(30deg); }

.how-section { padding: 25px 48px 58px; }
.section-intro { max-width: 620px; }
.section-intro h2 { margin: 8px 0; font-size: 28px; font-weight: 600; letter-spacing: -.05em; line-height: 1.2; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 23px; }
.benefit-card { min-height: 158px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 3px 13px rgba(34,52,72,.025); }
.benefit-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-pale); font-size: 17px; }
.icon-search { color: #647ab0; background: #eef1fa; }
.icon-shield { color: #b7833e; background: #fcf4e8; }
.benefit-card h3 { margin: 13px 0 5px; font-size: 13px; letter-spacing: -.02em; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }

.check-section { padding: 31px 48px 60px; border: 1px solid #e8edf2; border-radius: 12px; background: #f0f4f6; }
.check-intro { margin-bottom: 18px; }
.check-intro h2 { font-size: 25px; }
.workspace-card { padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.intake-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 7px; background: #f0f3f6; }
.itab { flex: 1; min-height: 35px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; transition: color .15s, background .15s, box-shadow .15s; }
.itab:hover { color: var(--ink); }
.itab.active { color: var(--accent-dark); background: white; box-shadow: 0 1px 4px rgba(28,41,56,.12); }
.input-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 15px; }
.input-column { min-width: 0; }
.dropzone { display: flex; min-height: 177px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 1px dashed #c7d2dc; border-radius: 7px; color: var(--ink); background: #fbfcfd; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #f5fbf9; }
.upload-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 9px; border: 1px solid #dfe8e8; border-radius: 9px; color: var(--accent); background: white; font-size: 21px; }
.dz-title { font-size: 13px; font-weight: 600; }
.dz-sub { max-width: 400px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.dz-file { margin-top: 8px; color: var(--accent-dark); font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.voice-controls { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.voice-controls .button { min-height: 31px; padding: 6px 9px; font-size: 10px; }
#recordBtn.recording { color: var(--danger); background: var(--danger-pale); }
.text-input { width: 100%; min-height: 177px; padding: 13px; border: 1px solid #c7d2dc; border-radius: 7px; outline: 0; color: var(--ink); background: #fbfcfd; font: 12px/1.65 var(--sans); resize: vertical; }
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,124,114,.1); }
.run-column { display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.run-explainer { display: flex; gap: 9px; margin-bottom: 17px; }
.tiny-shield { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--accent); background: var(--accent-pale); font-size: 12px; }
.run-explainer div { display: flex; flex-direction: column; }
.run-explainer b { font-size: 10px; }
.run-explainer span { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.run-button { width: 100%; justify-content: space-between; }
.run-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.error-box { margin-top: 10px; padding: 8px 9px; border: 1px solid #edc7c4; border-radius: 5px; color: #a1413d; background: var(--danger-pale); font-size: 10px; }
.result-card { margin-top: 17px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }
.result-card.safe { border-color: #c8e2d2; }
.result-card.unsafe { border-color: #efcfcb; }
.result-top { display: flex; align-items: center; gap: 12px; }
.verdict-icon { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-pale); font-size: 19px; font-weight: 600; }
.result-card.unsafe .verdict-icon { color: var(--danger); background: var(--danger-pale); }
.verdict-copy { min-width: 0; flex: 1; }
.verdict-copy .eyebrow { font-size: 8px; }
.verdict-copy h2 { margin: 2px 0; font-size: 17px; letter-spacing: -.03em; }
.verdict-copy p { margin: 0; color: var(--soft); font-size: 10px; }
.risk-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.risk-score span { color: var(--muted); font: 8px var(--mono); }
.risk-score b { color: var(--ink); font: 18px var(--mono); }
.result-reason { margin-top: 15px; padding: 10px 12px; border-radius: 6px; background: #f6f8fa; font-size: 10px; }
.result-reason b { display: block; margin-bottom: 3px; }
.result-reason p { margin: 0; color: var(--soft); }
.checked-details { margin-top: 11px; }
.checked-details summary { color: var(--accent-dark); font-size: 10px; font-weight: 600; cursor: pointer; }
.checked-details pre { max-height: 220px; margin: 9px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; color: var(--soft); background: #fafbfd; font: 9px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.result-footnote { margin: 12px 0 0; color: var(--muted); font-size: 9px; }

.site-footer { display: flex; width: min(1060px, calc(100% - 48px)); align-items: center; gap: 15px; margin: 0 auto; padding: 23px 48px 28px; }
.footer-brand { gap: 8px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.footer-brand .brand-name { font-size: 12px; }
.site-footer > p { margin: 0; color: var(--muted); font-size: 9px; }
.back-top { margin-left: auto; color: var(--muted); font-size: 9px; }

:focus-visible { outline: 3px solid rgba(40,124,114,.35); outline-offset: 2px; }
@media (max-width: 760px) {
  .site-header { height: 62px; gap: 12px; padding: 0 20px; }
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 10px; }
  .brand-name { font-size: 14px; }
  main, .site-footer { width: min(100% - 30px, 620px); }
  .hero { min-height: 350px; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; padding: 42px 25px 34px; }
  .hero-art { min-height: 230px; }
  .shield { transform: scale(.85); }
  .chip-one { left: -2px; }
  .chip-two { right: -7px; }
  .how-section { padding: 22px 25px 43px; }
  .check-section { padding: 27px 22px 37px; }
  .site-footer { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: 60px; padding: 10px 15px; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: 9px; }
  .site-header nav .nav-cta { padding: 6px 8px; }
  .connection-status { margin-left: auto; font-size: 9px; }
  main, .site-footer { width: calc(100% - 24px); }
  .hero { min-height: initial; grid-template-columns: 1fr; gap: 0; padding: 43px 16px 22px; }
  h1 { max-width: 480px; font-size: clamp(36px, 10vw, 48px); }
  .hero-copy > p { font-size: 12px; }
  .hero-art { min-height: 176px; margin-top: 7px; }
  .art-glow { width: 165px; height: 165px; }
  .shield { transform: scale(.7); }
  .chip-one { top: 20px; left: calc(50% - 130px); }
  .chip-two { right: calc(50% - 135px); bottom: 22px; }
  .line-one { top: 57px; left: calc(50% - 26px); }
  .line-two { right: calc(50% - 26px); bottom: 65px; }
  .how-section { padding: 24px 2px 37px; }
  .section-intro h2 { font-size: 24px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
  .benefit-card { min-height: 0; padding: 13px; }
  .benefit-card h3 { margin-top: 8px; }
  .check-section { padding: 23px 12px 25px; }
  .check-intro h2 { font-size: 23px; }
  .workspace-card { padding: 11px; }
  .input-layout { grid-template-columns: 1fr; }
  .dropzone, .text-input { min-height: 150px; }
  .run-column { padding: 12px; }
  .run-explainer { margin-bottom: 10px; }
  .result-card { padding: 13px; }
  .result-top { align-items: flex-start; gap: 9px; }
  .verdict-icon { flex-basis: 31px; width: 31px; height: 31px; font-size: 15px; }
  .verdict-copy h2 { font-size: 14px; }
  .risk-score { padding-left: 8px; }
  .risk-score b { font-size: 15px; }
  .site-footer { flex-wrap: wrap; gap: 9px; padding: 18px 5px 22px; }
  .site-footer > p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
