:root {
  --bg: #f6f1ea;
  --surface: #fdfaf5;
  --ink: #1f1d1a;
  --ink-soft: #5a544c;
  --muted: #8a8278;
  --hairline: #e3dccf;
  --coral: #d9573d;
  --coral-deep: #b8432b;
  --peach: #f5e2d6;
  --peach-deep: #ead0bd;
  --amber: #e8a02d;
  --green: #5b8c5a;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.04), 0 8px 24px rgba(31, 29, 26, 0.06);
}

html.dark {
  --bg: #1a1715;
  --surface: #221e1b;
  --ink: #f0ebe3;
  --ink-soft: #c2bcb1;
  --muted: #8a8278;
  --hairline: #322c27;
  --peach: #2c2521;
  --peach-deep: #3a302a;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; color: var(--ink-soft); }

main { display: block; }

/* ---------- header ---------- */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 56px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--coral);
}

.brand-mark { color: var(--coral); }

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.primary-nav a {
  transition: color 0.15s ease;
}

.primary-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover { background: var(--coral-deep); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.header-cta { padding: 10px 18px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 56px 88px;
}

.tag {
  display: inline-block;
  font-size: 13px;
  background: var(--peach);
  color: var(--coral-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.hero-copy h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 22px 0 18px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.hero-copy h1 em,
.cta-copy h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coral);
}

.lede {
  font-size: 17px;
  max-width: 520px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
}

.trust-line svg { color: var(--ink-soft); }

/* hero art */
.hero-art {
  position: relative;
  min-height: 480px;
}

.watercolor {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.55;
}

.wc-1 {
  width: 320px;
  height: 280px;
  background: radial-gradient(ellipse, var(--peach-deep) 0%, transparent 65%);
  top: -10px;
  right: -40px;
}

.wc-2 {
  width: 240px;
  height: 220px;
  background: radial-gradient(ellipse, var(--peach) 0%, transparent 65%);
  bottom: 0;
  right: 60px;
}

.constellation {
  position: absolute;
  width: 220px;
  top: 30px;
  right: -20px;
  z-index: 1;
}

.figure-head {
  position: absolute;
  width: 110px;
  top: -20px;
  right: 220px;
  z-index: 2;
}

.plant {
  position: absolute;
  width: 84px;
  bottom: 30px;
  right: 0;
  z-index: 2;
}

.mouse {
  position: absolute;
  width: 150px;
  bottom: 0;
  right: 60px;
  z-index: 3;
}

.dashboard-card {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  margin-right: 80px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.dc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--hairline);
}

.dc-title {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.dc-pill {
  font-size: 11px;
  background: var(--hairline);
  color: var(--ink-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.dc-rows {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.dc-rows li {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.dc-rows li:last-child { border-bottom: none; }

.dc-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--hairline);
}

.dc-label { color: var(--ink); font-weight: 500; }

.dc-meta { color: var(--muted); font-size: 12px; }

.dc-badge {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.bg-coral { background: #f7d4ca; color: #a83a23; }
.bg-amber { background: #f7e6c1; color: #8a5a14; }
.bg-green { background: #d4e3cf; color: #3e6638; }

.dc-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.dc-chart {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.dc-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.dc-chart-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.dc-chart svg { width: 100%; height: 32px; }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 56px;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 16px;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px 28px;
  border-right: 1px solid var(--hairline);
  transition: background 0.15s ease;
}

.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--bg); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--peach);
  color: var(--coral);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.feature-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover .feature-arrow {
  color: var(--coral);
  transform: translateX(4px);
}

/* ---------- dashboard preview ---------- */
.dashboard-preview {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 56px auto;
  padding: 36px;
  background: var(--peach);
  border-radius: 18px;
}

html.dark .dashboard-preview { background: var(--peach); }

.dp-side h2 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.dp-side p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.dp-checks {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.dp-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.dp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--green);
}

.dp-checks li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

.dp-cta { color: var(--coral); }

.dp-app {
  display: grid;
  grid-template-columns: 64px 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.dp-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--hairline);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dp-logo {
  width: 30px;
  height: 30px;
  background: var(--peach);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.dp-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.dp-nav li {
  font-size: 11.5px;
  color: var(--muted);
  padding: 7px 12px;
  margin: 2px 8px;
  border-radius: 6px;
  text-align: left;
}

.dp-nav li.active {
  background: var(--peach);
  color: var(--coral-deep);
  font-weight: 500;
}

.dp-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  margin: 12px auto 0;
}

.dp-main {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dp-stat {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
}

.dp-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  grid-row: span 2;
}

.dp-stat-dot.coral { background: var(--coral); }

.dp-stat-label {
  font-size: 11.5px;
  color: var(--muted);
}

.dp-stat-val {
  grid-column: 2;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.dp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.dp-panel {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.dp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.dp-link { color: var(--coral); cursor: pointer; }

.dp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.dp-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}

.dp-list li:last-child { border: none; }

.dp-row-label { color: var(--ink); font-weight: 500; }

.dp-area { width: 100%; height: 110px; flex: 1; }

.dp-map-svg { width: 100%; height: 110px; flex: 1; }

/* ---------- values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 56px;
  background: var(--surface);
  border-radius: 16px;
}

.value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.value h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.value p { font-size: 13.5px; }

/* ---------- cta band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1280px;
  margin: 56px auto;
  padding: 48px 56px;
}

.cta-copy h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 16px 0 12px;
  max-width: 520px;
}

.brand-footer { color: var(--ink); margin-bottom: 4px; }
.brand-footer .brand-mark { color: var(--coral); }

.cta-form {
  background: var(--peach);
  border-radius: 14px;
  padding: 28px;
}

.cta-form label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 10px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cta-row input {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.cta-row input:focus {
  outline: none;
  border-color: var(--coral);
}

.cta-fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 56px 40px;
  font-size: 13px;
  color: var(--muted);
}

.foot-links {
  display: inline-flex;
  gap: 22px;
  justify-content: center;
}

.foot-links a:hover { color: var(--ink); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--hairline);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  justify-self: end;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------- nav active state ---------- */
.primary-nav a.active { color: var(--coral); font-weight: 500; }

/* ---------- how it works ---------- */
.how {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 56px 48px;
}

.how-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  font-weight: 500;
}

.how-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.how-head h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--hairline);
}

.how-steps li:last-child { border-right: none; padding-right: 0; }
.how-steps li:not(:first-child) { padding-left: 28px; }

.how-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--coral);
  line-height: 1;
  padding-top: 4px;
}

.how-steps h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.how-steps p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- dashboard preview eyebrow ---------- */
.dp-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

/* ---------- rules ---------- */
.rules {
  max-width: 1280px;
  margin: 56px auto;
  padding: 36px 56px;
  background: var(--surface);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.rules-head h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.rules-list li:last-child { border-bottom: none; }

.rules-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--coral);
}

/* ---------- outbreaks page ---------- */
.outbreaks-main { max-width: 1280px; margin: 0 auto; padding: 24px 56px 56px; }

.ob-head { padding: 16px 0 28px; max-width: 720px; }
.ob-head h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 18px 0 12px;
}

.ob-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 40px;
}

.ob-map-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ob-map { height: 540px; background: #f0ebe2; }

.ob-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  z-index: 500;
}

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-coral { background: #d9573d; }
.dot-amber { background: #e8a02d; }
.dot-green { background: #5b8c5a; }

.ob-pin { background: transparent; border: none; }

.ob-pulse {
  position: relative;
  display: inline-block;
  width: 22px; height: 22px;
}
.ob-pulse-core {
  position: absolute;
  inset: 7px;
  background: var(--c);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.ob-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.25;
  animation: obpulse 2.4s ease-out infinite;
}
@keyframes obpulse {
  0%   { transform: scale(0.4); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}
.leaflet-popup-content {
  margin: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
}
.ob-pop-strain { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.ob-pop-region { color: var(--ink-soft); margin-bottom: 8px; }
.ob-pop-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12px;
}
.ob-pop-meta span { color: var(--muted); }
.ob-pop-meta strong { color: var(--ink); font-weight: 500; }

.ob-side {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
}

.ob-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.ob-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.ob-sum-row strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
}

.ob-side-title { font-size: 14px; margin-bottom: 12px; color: var(--ink-soft); font-weight: 500; }

.ob-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ob-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.12s ease;
}
.ob-list li:hover { background: var(--bg); }
.ob-list li:last-child { border-bottom: none; }

.ob-list-text { display: flex; flex-direction: column; }
.ob-list-strain { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.ob-list-region { font-size: 12px; color: var(--muted); }
.ob-list-cases { font-size: 12px; color: var(--ink-soft); }

.ob-table-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
}
.ob-table-wrap h2 { font-size: 18px; margin-bottom: 16px; }

.ob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ob-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.005em;
}
.ob-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.ob-table tbody tr { cursor: pointer; transition: background 0.12s ease; }
.ob-table tbody tr:hover { background: var(--bg); }
.ob-table td:first-child { color: var(--ink); font-weight: 500; }

.foot-back { color: var(--ink-soft); font-size: 13px; justify-self: end; }
.foot-back:hover { color: var(--ink); }

/* ---------- scanner page ---------- */
.scanner-main { max-width: 1080px; margin: 0 auto; padding: 24px 56px 56px; }

.sc-head { max-width: 720px; padding: 16px 0 28px; }
.sc-head h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 18px 0 12px;
}

.sc-disclaimer {
  margin-top: 22px;
  background: var(--peach);
  border-left: 3px solid var(--coral);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.sc-disclaimer strong { color: var(--ink); }

.sc-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.sc-left, .sc-right { display: flex; flex-direction: column; gap: 18px; }

.sc-key {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px;
}
.sc-key label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 10px;
}
.sc-key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.sc-key-row input {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.sc-key-row input:focus { outline: none; border-color: var(--coral); }

.sc-fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.sc-drop {
  display: block;
  position: relative;
  border: 1.5px dashed var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 220px;
  overflow: hidden;
}
.sc-drop.hover { border-color: var(--coral); background: var(--peach); }

.sc-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  color: var(--ink-soft);
}
.sc-drop-inner svg { color: var(--muted); margin-bottom: 6px; }
.sc-drop-inner strong { color: var(--ink); font-weight: 500; font-size: 14px; }
.sc-drop-inner span { font-size: 12.5px; color: var(--muted); }

.sc-preview {
  display: none;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.sc-run { align-self: flex-start; padding: 12px 22px; }
.sc-run:disabled { opacity: 0.5; cursor: not-allowed; }

.sc-result {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.sc-empty, .sc-loading, .sc-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 10px;
}
.sc-empty svg, .sc-loading svg { color: var(--muted); }
.sc-empty p, .sc-loading p { font-size: 13px; }
.sc-error strong { color: var(--coral-deep); }
.sc-error p { font-size: 12.5px; color: var(--ink-soft); max-width: 360px; word-break: break-word; }

.sc-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--hairline);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sc-report { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }

.sc-gauge {
  position: relative;
  width: 140px; height: 140px;
}
.sc-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-gauge-track { fill: none; stroke: var(--hairline); stroke-width: 10; }
.sc-gauge-fill {
  fill: none;
  stroke: var(--c);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s cubic-bezier(.4,1.4,.6,1);
}
.sc-gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sc-gauge-num strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.sc-gauge-num strong small { font-size: 16px; color: var(--ink-soft); }
.sc-gauge-num span { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-transform: capitalize; }

.sc-report-body h2 { font-size: 22px; margin-bottom: 8px; line-height: 1.2; }
.sc-report-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  margin: 18px 0 8px;
}
.sc-rationale { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.sc-factors, .sc-recs { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }
.sc-factors li, .sc-recs li { padding: 3px 0; }

.sc-result-fine { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 18px 24px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px 56px; }
  .hero-art { min-height: 380px; }
  .features { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--hairline); }
  .feature-card:last-child { border-bottom: none; }
  .dashboard-preview { grid-template-columns: 1fr; padding: 24px; margin: 32px 16px; }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-stats { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; padding: 18px 24px; }
  .cta-band { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .foot-links { justify-content: center; }
  .theme-toggle { justify-self: center; }
  .dashboard-card { margin-right: 0; }
  .mouse { right: 20px; width: 120px; }
  .plant { right: -10px; }
  .outbreaks-main, .scanner-main { padding: 24px; }
  .ob-grid { grid-template-columns: 1fr; }
  .ob-map { height: 380px; }
  .sc-stage { grid-template-columns: 1fr; }
  .sc-report { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sc-report-body { text-align: left; }
  .ob-table { font-size: 12px; }
  .ob-table th, .ob-table td { padding: 8px; }
  .how { padding: 8px 24px 32px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { border-right: none; border-bottom: 1px solid var(--hairline); padding: 22px 0; }
  .how-steps li:not(:first-child) { padding-left: 0; }
  .how-steps li:last-child { border-bottom: none; }
  .rules { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; margin: 32px 16px; }
}
