/* Razu SEO Insights — interface styles */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url(fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url(fonts/bricolage-grotesque-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }

:root {
  --spruce: #0F2B2A;
  --spruce-2: #17403D;
  --spruce-3: #24564F;
  --paper: #EEF2EF;
  --panel: #FFFFFF;
  --line: #D5DED8;
  --line-soft: #E5EBE7;
  --ink: #142321;
  --ink-2: #4A5C58;
  --ink-3: #74857F;
  --teal: #186A5B;
  --teal-hover: #12574A;
  --teal-tint: #E1EFEA;
  --gold: #D4A239;

  /* rank scale — reserved for positions only */
  --r-top3: #17855B;
  --r-top10: #C9971F;
  --r-top20: #DD7433;
  --r-deep: #C2453D;
  --r-none: #A7B3AE;

  --up: #17855B;
  --down: #C2453D;
  --danger: #B33A32;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --rail: 252px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 1;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--spruce); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  background: var(--spruce);
  color: #CFDCD7;
  padding: 22px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--font); font-weight: 500; font-size: 12px; color: #8FA9A1; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: #CFDCD7; font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--spruce-2); text-decoration: none; color: #fff; }
.nav a.on { background: var(--spruce-3); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-head { font-size: 12.5px; color: #7F9A92; padding: 0 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.nav-head a { color: #A9C2BA; font-size: 12.5px; }
.client-dot {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: var(--spruce-3); color: #E9F1EE;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.nav a.on .client-dot { background: var(--gold); color: var(--spruce); }
.nav .client-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot { margin-top: auto; font-size: 13px; color: #8FA9A1; padding: 0 10px; display: grid; gap: 6px; }
.rail-foot a { color: #CFDCD7; }

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 32px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, white);
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumbs { font-size: 13.5px; color: var(--ink-3); flex: 1; min-width: 0; }
.topbar .crumbs a { color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-tint); color: var(--teal);
}
.pill.warn { background: #FBF1DA; color: #8A6511; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.topbar .menu-btn { display: none; }
.content { padding: 28px 32px 64px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- surfaces ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.panel + .panel { margin-top: 20px; }
.grid > .panel + .panel, .clients > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 20px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--font); padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  background: var(--teal); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--teal-hover); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: var(--panel); color: var(--spruce); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.danger { background: var(--panel); color: var(--danger); border-color: #E6C3C0; }
.btn.danger:hover { background: #FBEDEC; }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink-3); border-radius: 4px; }
.icon-btn:hover { color: var(--danger); background: #FBEDEC; }

label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: 400 14.5px/1.4 var(--font); color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #FBFCFB;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); background: #fff; }
textarea { resize: vertical; min-height: 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check input { margin-top: 3px; accent-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; }

.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button, .seg a {
  font: 600 13px/1 var(--font); border: 0; background: none; color: var(--ink-2);
  padding: 7px 12px; border-radius: 6px; cursor: pointer;
}
.seg .on { background: var(--panel); color: var(--spruce); box-shadow: 0 1px 2px rgba(15, 43, 42, .14); }
.seg a:hover { text-decoration: none; }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 20px; font-weight: 500; background: var(--teal-tint); color: var(--teal); border: 1px solid #C2DDD3; }
.flash.error { background: #FBEDEC; color: var(--danger); border-color: #EBC9C5; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; }
.tabs a {
  padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--spruce); text-decoration: none; }
.tabs a.on { color: var(--spruce); border-color: var(--spruce); }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.metric { padding: 18px 20px; border-left: 1px solid var(--line-soft); }
.metric:first-child { border-left: 0; }
.metric .m-label { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.metric .m-value { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--spruce); line-height: 1.2; margin-top: 4px; }
.metric .m-foot { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.metric canvas { margin-top: 10px; height: 34px !important; width: 100% !important; }
.delta { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* ---------- rank badge ---------- */
.rank {
  display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 7px;
  border-radius: 6px; font-weight: 700; font-size: 13px; color: #fff;
}
.rank.top3 { background: var(--r-top3); }
.rank.top10 { background: var(--r-top10); }
.rank.top20 { background: var(--r-top20); }
.rank.deep { background: var(--r-deep); }
.rank.none { background: var(--paper); color: var(--ink-3); border: 1px solid var(--line); }

/* rank ladder: distribution bar */
.ladder { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--paper); }
.ladder span { display: block; min-width: 0; }
.ladder .top3 { background: var(--r-top3); }
.ladder .top10 { background: var(--r-top10); }
.ladder .top20 { background: var(--r-top20); }
.ladder .deep { background: var(--r-deep); }
.ladder .none { background: var(--r-none); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3);
  padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel);
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--spruce); }
th.sorted::after { content: " ↓"; }
th.sorted.asc::after { content: " ↑"; }
td { padding: 10px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #F7F9F8; }
td.r, th.r { text-align: right; }
td.kw { font-weight: 600; color: var(--spruce); max-width: 380px; }
td.url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.kd { display: inline-flex; align-items: center; gap: 8px; }
.kd-bar { width: 44px; height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.kd-bar b { display: block; height: 100%; background: var(--spruce-3); }
.intent { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-2); white-space: nowrap; }
.intent.transactional { background: #E1EFEA; color: #186A5B; }
.intent.commercial { background: #EAEDF8; color: #3B4C8C; }
.intent.informational { background: #F4EEE0; color: #7A5E1C; }
.spark { width: 84px; height: 24px; display: block; }
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools input[type=text] { max-width: 260px; padding: 8px 11px; }

/* ---------- client cards (overview) ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.client-card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.client-card:hover { text-decoration: none; border-color: var(--ink-3); }
.cc-head { display: flex; gap: 12px; align-items: center; }
.cc-head .client-dot { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; background: var(--spruce); }
.cc-head h3 { font-size: 17px; }
.cc-head .muted { font-size: 13px; }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cc-stats div b { display: block; font-family: var(--display); font-size: 22px; color: var(--spruce); line-height: 1.2; }
.cc-stats div span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 20px; }
.empty .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- local grid ---------- */
.grid-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map { height: 560px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: #E3EAE6; }
.pin {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 14px/1 var(--font); color: #fff;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 43, 42, .35);
}
.pin.top3 { background: var(--r-top3); }
.pin.top10 { background: var(--r-top10); }
.pin.top20 { background: var(--r-top20); }
.pin.deep { background: var(--r-deep); }
.pin.none { background: var(--r-deep); }
.pin.wait { background: #fff; color: var(--ink-3); border-color: var(--line); box-shadow: none; }
.pin.busy { background: var(--paper); border-color: var(--gold); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(.88); } }
.pin.landed { animation: land .35s ease-out; }
@keyframes land { from { transform: scale(1.35); } to { transform: scale(1); } }
.center-mark { width: 16px; height: 16px; border-radius: 50%; background: var(--spruce); border: 3px solid var(--gold); }
.scan-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.scan-item { display: block; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--ink); }
.scan-item:hover { text-decoration: none; border-color: var(--ink-3); }
.scan-item.on { border-color: var(--spruce); background: var(--teal-tint); }
.scan-item b { display: block; font-size: 14px; color: var(--spruce); }
.scan-item span { font-size: 12.5px; color: var(--ink-3); }
.big-stat { display: flex; align-items: baseline; gap: 8px; }
.big-stat b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--spruce); }
.progress { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress b { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }

/* ---------- chart ---------- */
.chart-box { position: relative; height: 300px; }
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--paper); border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--r-none); }
.status.ok { color: var(--up); }
.status.ok::before { background: var(--up); }
.status.off { color: var(--ink-3); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-3); padding: 24px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--spruce); color: #fff; padding: 12px 18px; border-radius: var(--r-md);
  font-weight: 500; opacity: 0; transition: .25s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--spruce); color: #DCE7E3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { color: #fff; font-size: 40px; max-width: 14ch; }
.auth-art p { color: #A9C2BA; max-width: 42ch; font-size: 16px; }
.auth-grid { position: absolute; right: -40px; bottom: -40px; opacity: .9; }
.auth-form { display: grid; place-items: center; padding: 32px 16px; }
.auth-form .panel { width: 100%; max-width: 400px; }
.auth-form h2 { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g-main, .grid-stage { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .rail { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 43, 42, .4); }
  .topbar .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .g2, .g3, .form-row { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  h1 { font-size: 25px; }
  .map { height: 420px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric .m-value { font-size: 22px; }
  .panel { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .pin { width: 30px; height: 30px; font-size: 12px; border-width: 2px; }
}

/* ---------- print (client report) ---------- */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .panel { break-inside: avoid; border-color: #ccc; }
}

/* =========================================================
   Public audit pages
   ========================================================= */
.pub { min-height: 100vh; display: flex; flex-direction: column; }
.pub-bar { background: var(--spruce); }
.pub-bar .in { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-bar .brand-name { font-size: 16px; }
.pub-bar a.cta-link { color: #E9F1EE; font-weight: 600; font-size: 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }
.pub-foot { margin-top: auto; padding: 28px 20px; text-align: center; font-size: 13px; color: var(--ink-3); }

.a-hero { background: var(--spruce); color: #DCE7E3; padding: 56px 0 72px; }
.a-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "intro form" "checks form"; gap: 0 48px; align-items: start; }
.a-intro { grid-area: intro; }
.a-hero .a-checks { grid-area: checks; }
.a-hero .a-form { grid-area: form; }
.a-hero h1 { color: #fff; font-size: 46px; line-height: 1.06; letter-spacing: -0.02em; max-width: 15ch; }
.a-hero .lede { font-size: 18px; color: #A9C2BA; margin: 18px 0 28px; max-width: 46ch; }
.a-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.a-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.a-checks b { color: #fff; display: block; font-weight: 600; }
.a-checks span { color: #A9C2BA; font-size: 14.5px; }
.a-checks i { width: 28px; height: 28px; border-radius: 8px; background: var(--spruce-3); display: grid; place-items: center; color: var(--gold); font-style: normal; font-weight: 700; font-size: 14px; }
.a-form { background: var(--panel); border-radius: var(--r-lg); padding: 28px; color: var(--ink); box-shadow: 0 24px 60px rgba(4, 20, 19, .35); }
.a-form h2 { font-size: 22px; margin-bottom: 4px; }
.a-form .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.a-form .btn { width: 100%; padding: 14px 18px; font-size: 15px; }
.a-form .fine { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 400; color: var(--ink-3); }

/* progress */
.run { max-width: 620px; margin: 56px auto; }
.run-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.run-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); font-weight: 500; }
.run-steps li:last-child { border-bottom: 0; }
.run-steps .ic { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 13px; }
.run-steps li.busy { color: var(--spruce); }
.run-steps li.busy .ic { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.run-steps li.done { color: var(--ink); }
.run-steps li.done .ic { background: var(--r-top3); border-color: var(--r-top3); color: #fff; }
.run-steps li.skip .ic { background: var(--paper); color: var(--ink-3); }
.run-steps li small { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 12.5px; text-align: right; }

/* report */
.r-hero { background: var(--spruce); color: #DCE7E3; padding: 40px 0 44px; }
.r-hero .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; align-items: center; }
.r-hero h1 { color: #fff; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.r-hero p { margin: 8px 0 0; color: #A9C2BA; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { display: block; font-family: var(--display); font-size: 54px; line-height: 1; color: #fff; }
.ring .val span { display: block; font-size: 13px; color: #A9C2BA; margin-top: 4px; }
.tally { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.tally span { display: inline-flex; align-items: center; gap: 7px; color: #DCE7E3; }
.tally i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.cat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: -28px; position: relative; }
.cat-tile { padding: 16px 16px 18px; border-left: 1px solid var(--line-soft); color: var(--ink); }
.cat-tile:first-child { border-left: 0; }
.cat-tile:hover { text-decoration: none; background: #F7F9F8; }
.cat-tile .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 500; min-height: 34px; }
.cat-tile b { font-family: var(--display); font-size: 28px; color: var(--spruce); display: block; line-height: 1.1; }
.cat-tile .bar { height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.cat-tile .bar i { display: block; height: 100%; }
.sc-good { background: var(--r-top3); } .sc-mid { background: var(--r-top10); } .sc-bad { background: var(--r-deep); }

.prio { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 0; }
.prio li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.prio li:last-child { border-bottom: 0; }
.prio li::before { content: counter(p); width: 32px; height: 32px; border-radius: 50%; background: var(--spruce); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.prio b { color: var(--spruce); font-size: 15.5px; }
.prio p { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; }
.prio .why { color: var(--ink-3); font-size: 13.5px; }

.checks { display: grid; gap: 0; }
.check-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.check-row:last-child { border-bottom: 0; }
.check-row h4 { margin: 0; font-size: 15px; color: var(--spruce); font-weight: 600; }
.check-row p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.check-row .fix { color: var(--ink); background: var(--paper); border-radius: 8px; padding: 8px 11px; margin-top: 8px; font-size: 13.5px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; height: fit-content; white-space: nowrap; }
.st.pass { background: #E1F1E9; color: #12704B; }
.st.warn { background: #FBF0D6; color: #8A6511; }
.st.fail { background: #FBE6E4; color: #A8352E; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-head .score-chip { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--spruce); }
.note { background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; color: var(--ink-2); font-size: 14px; }
.gbp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.gbp div { background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; }
.gbp b { display: block; font-family: var(--display); font-size: 22px; color: var(--spruce); }
.gbp span { font-size: 12.5px; color: var(--ink-3); }
.cta-band { background: var(--spruce); color: #DCE7E3; border-radius: var(--r-lg); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { color: #A9C2BA; margin: 6px 0 0; max-width: 56ch; }
.btn.gold { background: var(--gold); color: var(--spruce); }
.btn.gold:hover { background: #E2B24A; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

@media (max-width: 960px) {
  .a-hero .wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "checks"; gap: 0; }
  .a-hero .a-checks { margin-top: 32px; }
  .r-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .a-hero h1 { font-size: 34px; }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .cat-tile:nth-child(4) { border-left: 0; }
  .cat-tile:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .gbp { grid-template-columns: repeat(2, 1fr); }
  .ring { width: 136px; height: 136px; }
  .ring .val b { font-size: 44px; }
}
@media (max-width: 560px) {
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:nth-child(odd) { border-left: 0; }
  .cat-tile:nth-child(4) { border-left: 1px solid var(--line-soft); }
  .cat-tile:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .check-row { grid-template-columns: 1fr; gap: 6px; }
  .a-form { padding: 20px; }
  .r-hero h1 { font-size: 26px; }
}
@media print {
  .pub-bar, .cta-band .btn, .no-print { display: none !important; }
  .r-hero, .cat-row, .st, .prio li::before, .bar i, .tally i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .check-row, .prio li, .panel { break-inside: avoid; }
  .cat-row { margin-top: 12px; }
}
