:root {
  --ink: #0d1b17;
  --ink-2: #183029;
  --paper: #f3f0e8;
  --paper-2: #e8e4da;
  --white: #fffdf7;
  --accent: #ef6f45;
  --acid: #d7f34a;
  --muted: #6e756e;
  --line: rgba(13, 27, 23, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
em { color: var(--accent); font-style: normal; }

.topbar { height: 78px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(243, 240, 232, .93); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; font: 800 14px/1 "Manrope"; letter-spacing: .13em; }
.brand-mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2px; transform: skew(-10deg); }
.brand-mark i { display: block; background: var(--accent); height: 58%; }
.brand-mark i:nth-child(2) { height: 82%; }
.brand-mark i:nth-child(3) { height: 100%; }
nav { display: flex; gap: 34px; font-size: 13px; font-weight: 600; }
nav a { transition: color .2s; }
nav a:hover { color: var(--accent); }
.button { display: inline-flex; border: 0; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 0 24px; background: var(--ink); color: white; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--ink-2); }
.button span { color: var(--acid); font-size: 17px; }
.button-small { min-height: 42px; padding: 0 17px; gap: 14px; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 47% 53%; }
.hero-copy { padding: 10vh 5vw 6vh; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font: 700 10px/1.3 "Manrope"; display: flex; gap: 9px; align-items: center; }
.eyebrow > span { width: 24px; height: 2px; background: var(--accent); }
h1, h2 { font-family: "Manrope"; letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(48px, 5.4vw, 88px); line-height: .98; margin-top: 25px; }
.lead { max-width: 590px; font-size: 17px; line-height: 1.65; color: var(--muted); margin: 30px 0; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { font-weight: 700; font-size: 13px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.text-link span { color: var(--accent); margin-left: 8px; }
.proof-row { display: flex; margin-top: 8vh; border-top: 1px solid var(--line); padding-top: 21px; }
.proof-row div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.proof-row strong { font: 800 24px "Manrope"; }
.proof-row span { font-size: 11px; color: var(--muted); }

.hero-visual { background: var(--ink); color: white; margin: 22px 22px 22px 0; min-height: 690px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.hero-visual:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.visual-head, .visual-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 22px 25px; font: 600 9px "Manrope"; letter-spacing: .14em; color: rgba(255,255,255,.62); }
.live-dot:before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); margin-right: 8px; box-shadow: 0 0 0 5px rgba(215,243,74,.1); }
.map { width: 94%; margin: auto; position: relative; z-index: 1; }
.land { fill: rgba(255,255,255,.045); stroke: rgba(255,255,255,.25); stroke-width: 1.3; }
.grid-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 7; opacity: .8; }
.grid-line.faint { opacity: .25; }
.map-point circle { fill: var(--acid); filter: drop-shadow(0 0 8px rgba(215,243,74,.8)); }
.map-point text { fill: white; font: 700 9px "Manrope"; letter-spacing: .08em; }
.map-point.low circle { fill: var(--accent); }
.scan-card { position: relative; z-index: 2; width: min(380px, 75%); margin: -60px 28px 30px auto; padding: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.scan-card > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.6); }
.scan-card strong { color: white; }
.scan-bar { height: 3px; background: rgba(255,255,255,.12); margin: 17px 0 12px; overflow: hidden; }
.scan-bar i { display: block; height: 100%; width: 68%; background: var(--acid); animation: scan 2.8s ease-in-out infinite alternate; }
@keyframes scan { to { width: 94%; } }
.scan-meta { display: flex; justify-content: space-between; text-transform: uppercase; font: 600 8px "Manrope"; letter-spacing: .12em; color: rgba(255,255,255,.48); }
.visual-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); }

.search-section, .method { padding: 120px 5vw; }
.section-heading { display: grid; grid-template-columns: 1fr 1.2fr .8fr; align-items: end; gap: 40px; margin-bottom: 55px; }
.section-heading h2 { font-size: clamp(42px, 4.2vw, 68px); line-height: 1.02; }
.section-heading > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.6; }
.search-panel { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.search-panel label { background: var(--white); min-height: 126px; padding: 21px; display: flex; flex-direction: column; gap: 10px; }
.search-panel label > span { font: 700 10px "Manrope"; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-panel strong { font: 800 22px "Manrope"; }
.search-panel small { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.search-panel select { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; color: var(--ink); font-weight: 700; outline: none; }
.search-panel .button { height: 126px; }
input[type="range"] { appearance: none; width: 100%; height: 3px; background: var(--paper-2); margin-top: 7px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(239,111,69,.15); }
.results-head { display: flex; justify-content: space-between; margin: 48px 0 16px; font-size: 12px; color: var(--muted); }
.results-head strong { color: var(--ink); }
.data-warning span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: var(--accent); border: 1px solid var(--accent); margin-right: 6px; font-weight: 800; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.result-card { background: var(--white); border: 1px solid var(--line); padding: 25px; display: flex; flex-direction: column; min-height: 405px; transition: transform .25s, box-shadow .25s; }
.result-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(13,27,23,.08); }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.rank { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: white; font: 800 12px "Manrope"; }
.match { text-align: right; }
.match strong { font: 800 27px "Manrope"; }
.match span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.result-card h3 { font: 800 22px/1.12 "Manrope"; margin: 24px 0 5px; }
.province { color: var(--accent); font: 700 10px "Manrope"; letter-spacing: .1em; text-transform: uppercase; }
.result-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.score-bars { margin: 18px 0; display: grid; gap: 7px; }
.score-row { display: grid; grid-template-columns: 72px 1fr 24px; gap: 8px; align-items: center; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.bar { height: 3px; background: var(--paper-2); }
.bar i { display: block; height: 100%; background: var(--ink); }
.card-foot { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.confidence { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.grade { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font: 800 11px "Manrope"; }
.grade.a { background: var(--acid); color: var(--ink); }
.grade.b { background: #b7dcc0; }
.grade.c { background: #ffd28f; }
.grade.d { background: #eed1ca; }
.detail-button { border: 0; background: transparent; color: var(--ink); font-weight: 800; font-size: 11px; cursor: pointer; border-bottom: 1px solid var(--ink); padding: 3px 0; }

.observatory { background: var(--ink); color: white; padding: 120px 5vw; }
.section-heading.light { grid-template-columns: 1fr 2fr; }
.section-heading.light em { color: var(--acid); }
.signal-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 70px; }
.signal-item { display: grid; grid-template-columns: 130px 1fr 35px; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.15); }
.signal-item:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.signal-item > span { color: var(--accent); font: 700 10px "Manrope"; text-transform: uppercase; letter-spacing: .1em; }
.signal-item h3 { margin: 0 0 8px; font: 700 17px "Manrope"; }
.signal-item p { color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.55; margin: 0; }
.signal-item .grade { color: var(--ink); }
.confidence-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 34px; }
.confidence-card h3 { font: 700 30px/1.12 "Manrope"; margin: 24px 0 30px; }
.confidence-row { display: flex; gap: 15px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.confidence-row div { display: flex; flex-direction: column; gap: 3px; }
.confidence-row strong { font-size: 12px; }
.confidence-row span { font-size: 10px; color: rgba(255,255,255,.5); }

.method .section-heading { grid-template-columns: 1fr 2fr; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps article { padding: 28px 28px 50px; border-right: 1px solid var(--line); }
.steps article:last-child { border-right: 0; }
.steps article > span { color: var(--accent); font: 800 10px "Manrope"; }
.steps h3 { font: 800 23px "Manrope"; margin: 55px 0 12px; }
.steps p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.pilot { margin: 0 22px 22px; padding: 100px 7vw; text-align: center; background: var(--accent); color: var(--ink); }
.pilot .eyebrow { justify-content: center; }
.pilot .eyebrow span { background: var(--ink); }
.pilot h2 { font-size: clamp(42px, 5vw, 76px); line-height: 1.02; margin: 25px 0; }
.pilot h2 em { color: var(--white); }
.pilot > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 30px; line-height: 1.6; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: white; }
footer { display: flex; justify-content: space-between; padding: 34px 5vw; align-items: center; color: var(--muted); font-size: 10px; }

dialog { width: min(760px, calc(100% - 30px)); max-height: 88vh; border: 0; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(13,27,23,.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 18px; top: 15px; background: none; border: 0; font-size: 28px; cursor: pointer; }
.report { padding: 48px; }
.report h2 { font-size: 42px; margin: 12px 0; }
.report-summary { color: var(--muted); line-height: 1.6; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin: 30px 0; }
.report-box { background: var(--paper); padding: 20px; }
.report-box h4 { margin: 0 0 12px; font: 800 11px "Manrope"; text-transform: uppercase; letter-spacing: .1em; }
.report-box ul { padding-left: 18px; margin: 0; font-size: 12px; line-height: 1.7; }
.report-next { border-left: 3px solid var(--accent); padding: 13px 18px; background: #fff6ef; font-size: 13px; line-height: 1.5; }
.report-actions { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1000px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { margin: 0 22px 22px; min-height: 570px; }
  .section-heading { grid-template-columns: 1fr; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .button { height: 80px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .signal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .topbar { padding: 0 20px; }
  .topbar .button { display: none; }
  .hero-copy { padding: 75px 24px; }
  h1 { font-size: 48px; }
  .hero-visual { margin: 0; min-height: 480px; }
  .proof-row { gap: 12px; }
  .proof-row strong { font-size: 18px; }
  .search-section, .method, .observatory { padding: 80px 24px; }
  .search-panel { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .section-heading.light, .method .section-heading { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps article:nth-child(2) { border-right: 0; }
  .signal-item { grid-template-columns: 1fr 35px; }
  .signal-item > span { grid-column: 1 / -1; }
  .pilot { margin: 0; padding: 80px 24px; }
  footer { flex-direction: column; gap: 15px; text-align: center; }
  .report { padding: 38px 24px; }
  .report-grid { grid-template-columns: 1fr; }
}

@media print {
  body > *:not(dialog) { display: none; }
  dialog { position: static; width: 100%; max-height: none; box-shadow: none; }
  .dialog-close, .report-actions { display: none; }
}

