:root {
  color-scheme: light dark;
  /* neutral surfaces */
  --surface-0: #f5f6f8;
  --surface-1: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6ea;
  --border-strong: #cfd4db;
  /* text */
  --text-primary: #10151c;
  --text-secondary: #48525e;
  --text-muted: #838d99;
  /* brand */
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #eaf1fe;
  /* status */
  --good: #15a34a;
  --warning: #d68309;
  --serious: #e26a2c;
  --critical: #d92d2d;
  --good-bg: #e8f6ec;
  --warning-bg: #fbf1dc;
  --serious-bg: #fbe9df;
  --critical-bg: #fbe4e4;
  /* elevation */
  --shadow-sm: 0 1px 2px rgba(16,21,28,.05);
  --shadow: 0 1px 2px rgba(16,21,28,.04), 0 6px 20px rgba(16,21,28,.06);
  --shadow-lg: 0 2px 4px rgba(16,21,28,.05), 0 16px 40px rgba(16,21,28,.10);
  /* geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-0: #0e1116;
    --surface-1: #171b21;
    --surface-2: #1f242c;
    --border: #2a303a;
    --border-strong: #3a414d;
    --text-primary: #eef1f5;
    --text-secondary: #b6bec9;
    --text-muted: #7f8a97;
    --accent: #4b8bf4;
    --accent-ink: #7aa9f7;
    --accent-soft: #17233b;
    --good: #34c264;
    --warning: #e0a13a;
    --serious: #ef8350;
    --critical: #ef5350;
    --good-bg: #10281a;
    --warning-bg: #2a2312;
    --serious-bg: #2c1e15;
    --critical-bg: #2c1616;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.42);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); background: var(--surface-0);
  color: var(--text-primary); line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---------------- Header ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface-1) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 62px; padding-top: 9px; padding-bottom: 9px;
}
.brand {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  font-weight: 700; letter-spacing: -.015em; font-size: 16px; line-height: 1.2;
}
.brand > span:last-child { min-width: 0; }
.brand .logo {
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #6d3ae0); color: #fff;
  font-weight: 800; font-size: 16px; box-shadow: var(--shadow-sm);
}
.toolbar { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.pill {
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-secondary);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s;
}
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.pill.active:hover { color: #fff; }

/* ---------------- Hero / upload ---------------- */
.hero { text-align: center; padding: 54px 0 14px; }
.hero h1 { font-size: 32px; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 750; }
.hero p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; font-size: 15.5px; }

.card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.card + .card { margin-top: 16px; }
.upload-card { max-width: 660px; margin: 28px auto 8px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 40px 22px;
  text-align: center; cursor: pointer; transition: .18s ease; background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
}
.dropzone .big { font-size: 34px; margin-bottom: 8px; opacity: .92; }
.dropzone .fname { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); word-break: break-all; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 12px 22px; font-size: 15px; font-weight: 650; cursor: pointer; font-family: inherit;
  transition: .15s; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.ghost { background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-ink); }
.center { text-align: center; }
.note { color: var(--text-muted); font-size: 13px; }
.err {
  background: var(--critical-bg); color: var(--critical); border: 1px solid var(--critical);
  border-radius: var(--radius-sm); padding: 11px 15px; margin: 16px auto; max-width: 660px; font-weight: 500;
}

/* ---------------- Report layout ---------------- */
.report { padding: 28px 0 64px; }
.section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-secondary);
  margin: 34px 0 14px; font-weight: 700;
}
.section-title::before {
  content: ""; flex: 0 0 auto; width: 3px; height: 15px; border-radius: 2px;
  background: var(--accent);
}

/* ---------------- Verdict hero (dark, premium) ---------------- */
.verdict-hero {
  position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 38px; align-items: center;
  border-radius: var(--radius-lg); padding: 38px 40px; overflow: hidden; isolation: isolate;
  color: #eef2f8; border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(130% 150% at 12% 15%, color-mix(in srgb, var(--vh-color) 26%, #0d1522), #0a0f18 62%);
  box-shadow: 0 10px 40px rgba(8,12,20,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
.verdict-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--vh-color, var(--accent));
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--vh-color) 65%, transparent);
}
.verdict-hero.vh-authentic, .verdict-hero.vh-low { --vh-color: #22c55e; }
.verdict-hero.vh-medium { --vh-color: #f4b73f; }
.verdict-hero.vh-high { --vh-color: #f97a45; }
.verdict-hero.vh-critical { --vh-color: #f4544f; }
/* colored glow behind the gauge */
.verdict-hero .gauge { position: relative; z-index: 1; }
.verdict-hero .gauge::before {
  content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vh-color) 40%, transparent), transparent 62%);
  filter: blur(14px);
}
.verdict-hero .gauge svg circle:first-child { stroke: rgba(255,255,255,.10); }
.verdict-hero .gauge .num { color: var(--vh-color) !important; text-shadow: 0 0 18px color-mix(in srgb, var(--vh-color) 45%, transparent); }
.verdict-hero .gauge .max { color: rgba(255,255,255,.5); }
.vh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.vh-head { display: flex; align-items: center; gap: 15px; }
.vh-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--vh-color) 20%, transparent); color: var(--vh-color);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vh-color) 35%, transparent);
}
.vh-ic svg { width: 30px; height: 30px; }
.vh-word { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--vh-color); }
.vh-desc { margin: 16px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 640px; }
.verdict-hero .subline { color: rgba(255,255,255,.6); }
.vh-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.verdict-hero .badge-soft {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82);
}
@media (max-width: 640px) { .verdict-hero { grid-template-columns: 1fr; gap: 18px; text-align: center; padding: 28px 22px; }
  .vh-head { justify-content: center; } .vh-chips { justify-content: center; } .vh-desc { margin-left: auto; margin-right: auto; } }

/* party-header icon chip */
.ph-ic {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-ink);
}
.ph-ic svg { width: 17px; height: 17px; }
.ph-ic.pos { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.ph-ic.neg { background: color-mix(in srgb, var(--serious) 15%, transparent); color: var(--serious); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------------- Score hero ---------------- */
.scorehero { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .scorehero { grid-template-columns: 1fr; text-align: center; gap: 12px; } }
.gauge { position: relative; width: 200px; height: 200px; margin: 0 auto; max-width: 100%; }
.gauge svg { transform: rotate(-90deg); width: 100%; height: auto; }
.gauge .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .val .num { font-size: 48px; font-weight: 780; letter-spacing: -.035em; line-height: 1; }
.gauge .val .max { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.riskbadge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  font-weight: 680; font-size: 14px; border: 1px solid transparent;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.verdict { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--text-primary); }
.subline { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }
.badge-soft {
  display: inline-block; padding: 4px 10px; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 12px; color: var(--text-secondary);
  margin: 2px 2px 0 0; word-break: break-word;
}

/* status helpers */
.s-good, .s-low { color: var(--good); } .bg-good, .bg-low { background: var(--good-bg); color: var(--good); }
.s-medium { color: var(--warning); } .bg-medium { background: var(--warning-bg); color: var(--warning); }
.s-high { color: var(--serious); } .bg-high { background: var(--serious-bg); color: var(--serious); }
.s-critical { color: var(--critical); } .bg-critical { background: var(--critical-bg); color: var(--critical); }
.bg-authentic { background: var(--good-bg); color: var(--good); }

/* ---------------- Stat tiles ---------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 380px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.tile .k { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; line-height: 1.35; }
.tile .v { font-size: 22px; font-weight: 750; margin-top: 6px; letter-spacing: -.02em; }
.tile .sub { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* ---------------- Findings ---------------- */
.finding {
  display: grid; grid-template-columns: 5px 1fr auto; gap: 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1); margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.finding .bar { width: 5px; border-radius: 4px; align-self: stretch; }
.finding .msg { font-size: 14px; line-height: 1.55; }
.finding .detail { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); margin-top: 6px; word-break: break-word; }
.tag {
  font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 7px; white-space: nowrap; display: inline-block;
}
.tag-cat { background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); font-weight: 600; text-transform: none; }

/* compare.html finding variant */
.finding-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; grid-column: 1 / -1; }
.sev { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.fcode { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); }
.ftext { font-size: 14px; line-height: 1.55; grid-column: 1 / -1; }
.fdetail { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); margin-top: 6px; word-break: break-word; grid-column: 1 / -1; }

/* ---------------- KV tables ---------------- */
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 9px 6px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.kv tr:last-child td { border-bottom: none; }
.kv td.k { color: var(--text-muted); width: 42%; font-weight: 500; }
.kv td.v { font-weight: 550; }
.kv .mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.party-h {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.amount-big { font-size: 30px; font-weight: 770; letter-spacing: -.025em; }
.amount-cur { font-size: 16px; color: var(--text-secondary); font-weight: 600; }

/* ---------------- Generic data table (.tbl) ---------------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700; padding: 9px 12px;
  border-bottom: 1.5px solid var(--border-strong); white-space: nowrap;
}
.tbl tbody td {
  padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.table-scroll .tbl, .table-scroll .kv { min-width: 520px; }

/* ---------------- Breakdown bars ---------------- */
.bd-row { display: grid; grid-template-columns: minmax(84px, 130px) 1fr 48px; align-items: center; gap: 12px; margin-bottom: 10px; }
.bd-track { height: 9px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.bd-fill { height: 100%; border-radius: 6px; background: var(--serious); }
.bd-k { font-size: 13px; color: var(--text-secondary); }
.bd-v { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-secondary); font-weight: 600; }

/* ---------------- Media / misc ---------------- */
.ela-img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #000; }
.footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-muted); font-size: 13px; text-align: center; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.codeblock {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px;
  font-family: var(--mono); font-size: 12px; overflow-x: auto; max-height: 380px; line-height: 1.55;
}
ul { padding-left: 20px; }
.hidden { display: none !important; }

/* ================= Landing / homepage ================= */
.lp { padding-bottom: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650;
  letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; background: var(--accent); }

.hero-wrap {
  display: grid; grid-template-columns: 1.05fr minmax(350px, 430px); gap: 52px;
  align-items: center; padding: 58px 0 30px;
}
.hero-copy h1 {
  font-size: 42px; line-height: 1.08; letter-spacing: -.03em; font-weight: 780;
  margin: 20px 0 16px;
}
.hero-copy .lead { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 24px; max-width: 560px; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550;
  color: var(--text-secondary); background: var(--surface-1); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 9px; box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }

/* upload panel */
.up-panel {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.up-panel .up-title { font-weight: 700; font-size: 15px; margin: 2px 2px 14px; letter-spacing: -.01em; }
.dropzone .dz-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px;
}
.dropzone .dz-icon svg { width: 24px; height: 24px; }
.dropzone strong { font-size: 15px; }
.privacy-note {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 12px; color: var(--text-muted); margin-top: 14px;
}
.privacy-note svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* metrics strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 8px;
}
.metric { background: var(--surface-1); padding: 20px 18px; text-align: center; }
.metric .mv { font-size: 26px; font-weight: 780; letter-spacing: -.03em; }
.metric .ml { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* section heading (landing) */
.lp-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.lp-head h2 { font-size: 27px; letter-spacing: -.025em; font-weight: 750; margin: 0 0 10px; }
.lp-head p { color: var(--text-secondary); margin: 0; font-size: 15.5px; }
.lp-section { padding: 46px 0; }
.lp-section.alt { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .18s;
}
.lp-section.alt .feature { background: var(--surface-2); }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .fi {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px;
}
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin: 0 0 6px; letter-spacing: -.01em; font-weight: 680; }
.feature p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.step .sn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 750; font-size: 14px; margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin: 0 0 5px; font-weight: 680; }
.step p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }

/* API row */
.api-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; }
.api-row .api-copy h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 730; }
.api-row .api-copy p { color: var(--text-secondary); margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .api-row { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: 31px; }
  .hero-copy .lead { font-size: 15.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lp-section { padding: 34px 0; }
  .lp-head h2 { font-size: 23px; }
  .metric .mv { font-size: 22px; }
}

/* ---------------- Mobile refinements ---------------- */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .brand { font-size: 15px; }
  .brand .logo { width: 30px; height: 30px; font-size: 15px; }
  .pill { padding: 5px 11px; font-size: 12px; }
  .hero { padding: 36px 0 8px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14.5px; }
  .card { padding: 18px; border-radius: var(--radius-sm); }
  .report { padding: 20px 0 48px; }
  .section-title { margin: 24px 0 11px; }
  .gauge { width: 168px; height: 168px; }
  .gauge .val .num { font-size: 42px; }
  .amount-big { font-size: 26px; }
  .kv td.k { width: 40%; }
  .kv td, .tbl tbody td { padding-left: 4px; padding-right: 4px; }
  .tbl thead th { padding: 8px 8px; }
  .tbl tbody td { padding: 10px 8px; }
  .dropzone { padding: 34px 16px; }
}
@media (max-width: 420px) {
  .brand > span:last-child {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
