/* Website Suggestion & Growth Report — entry state + report dashboard */

.page-scan {
  --s-navy: #0b2545;
  --s-ink: #1d2b3a;
  --s-muted: #6b7c8a;
  --s-line: #e6ecf5;
  --s-orange: #f47a14;
  --s-orange-ink: #d9620a;
  --s-orange-soft: #fff1e3;
  --s-blue: #2f6fed;
  --s-blue-soft: #e8f0ff;
  --s-green: #22b573;
  --s-green-ink: #12945b;
  --s-green-soft: #e4f7ee;
  --s-violet: #7c5cf0;
  --s-violet-soft: #f0ecfe;
  --s-amber-soft: #fff6e6;
  --s-red: #e2513d;
  --s-shadow: 0 2px 14px rgba(16, 40, 80, 0.05);
}

body.page-scan {
  background: #f4f7fd;
  color: var(--s-ink);
}
body.page-scan #main { padding: 0; }

.scan-app { min-width: 0; }
.scan-app .container { max-width: 1300px; }

#overview,
#ai-search,
#competitors,
#next-steps,
#growth {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ── State machine ─────────────────────────────────────────────── */
.scan-app[data-state="entry"] .scan-rhead,
.scan-app[data-state="entry"] .scan-bar-wrap,
.scan-app[data-state="entry"] .scan-loading,
.scan-app[data-state="entry"] .scan-board,
.scan-app[data-state="loading"] .scan-hero,
.scan-app[data-state="loading"] .scan-benefits,
.scan-app[data-state="loading"] .scan-trust,
.scan-app[data-state="loading"] .scan-how,
.scan-app[data-state="loading"] .scan-board,
.scan-app[data-state="report"] .scan-hero,
.scan-app[data-state="report"] .scan-benefits,
.scan-app[data-state="report"] .scan-trust,
.scan-app[data-state="report"] .scan-how,
.scan-app[data-state="report"] .scan-loading {
  display: none;
}

/* ── Shared atoms ──────────────────────────────────────────────── */
.scan-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}
.scan-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scan-tile.sm { width: 30px; height: 30px; border-radius: 9px; }
.scan-tile.sm svg { width: 16px; height: 16px; }
.scan-tile.is-orange { background: var(--s-orange-soft); }
.scan-tile.is-orange svg { stroke: var(--s-orange); }
.scan-tile.is-blue { background: var(--s-blue-soft); }
.scan-tile.is-blue svg { stroke: var(--s-blue); }
.scan-tile.is-green { background: var(--s-green-soft); }
.scan-tile.is-green svg { stroke: var(--s-green); }
.scan-tile.is-violet { background: var(--s-violet-soft); }
.scan-tile.is-violet svg { stroke: var(--s-violet); }
.scan-tile.is-amber { background: var(--s-amber-soft); }
.scan-tile.is-amber svg { stroke: var(--s-orange); }

.scan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.scan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 999px;
  padding: 9px 15px;
  box-shadow: 0 2px 8px rgba(16, 40, 80, 0.05);
}
.scan-pill b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--s-navy);
}
.scan-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scan-pill.is-orange { background: #fff8f1; border-color: #ffe2c7; }
.scan-pill.is-orange b { color: var(--s-orange); }
.scan-pill.is-orange svg { stroke: var(--s-orange); }
.scan-pill.is-blue svg { stroke: var(--s-blue); }
.scan-pill.is-violet svg { stroke: var(--s-violet); }
.scan-pill.is-green svg { stroke: var(--s-green); }
a.scan-pill:hover { border-color: #c8d6e8; }

.scan-form-msg {
  margin-top: 14px;
  background: #fdecea;
  border: 1px solid #f6c9c2;
  color: #b3281a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  max-width: 620px;
}
.scan-form-msg.hidden { display: none; }

.scan-app .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── URL form ──────────────────────────────────────────────────── */
.scan-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.scan-field-ico { display: inline-flex; flex: none; }
.scan-field-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #9aa8bb;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.scan-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--s-ink);
  padding: 12px 0;
}
.scan-form input::placeholder { color: #97a6b8; }
.scan-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f89a2b, #f2701a);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(242, 112, 26, 0.3);
}
.scan-go:hover { filter: brightness(1.04); }
.scan-go[disabled] { opacity: 0.65; cursor: progress; }
.scan-go svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-form.is-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 580px;
  margin-top: 26px;
  padding: 7px 7px 7px 20px;
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(16, 40, 80, 0.08);
}

.scan-bar-wrap { padding-block: 16px 4px; }
.scan-form.is-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.scan-form.is-bar .scan-field {
  background: #fff;
  border: 1px solid #e2eaf6;
  border-radius: 999px;
  padding: 6px 24px;
  box-shadow: 0 1px 4px rgba(16, 40, 80, 0.04);
}
.scan-form.is-bar .scan-go { padding: 15px 26px; font-size: 15px; }
.scan-bar-note { margin: 10px 0 0; font-size: 12px; color: #93a2b3; }

/* ── Entry hero ────────────────────────────────────────────────── */
.scan-hero {
  padding: calc(var(--header-h) + 44px) 0 52px;
  background:
    radial-gradient(760px 420px at 84% 14%, #ffe7d2 0%, rgba(255, 231, 210, 0) 62%),
    radial-gradient(820px 520px at 12% 0%, #e6efff 0%, rgba(230, 239, 255, 0) 66%),
    linear-gradient(180deg, #edf3fd 0%, #f8fbff 100%);
}
.scan-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}
.scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe6d0;
  color: var(--s-orange-ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.scan-badge svg { width: 14px; height: 14px; fill: currentColor; }
.scan-hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--s-navy);
}
.scan-hero-copy h1 em { font-style: normal; color: var(--s-orange); }
.scan-lead {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--s-muted);
}
.scan-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #7b8a9b;
}
.scan-secure svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #7b8a9b;
  stroke-width: 1.8;
}

.scan-hero-art { position: relative; }
.scan-hero-art img,
.scan-rhead-art img {
  display: block;
  width: 100%;
  height: auto;
  /* Artwork ships on a white plate: multiply plus an edge fade drops it onto the tint. */
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 72%, transparent 100%);
}
.scan-bubble {
  position: absolute;
  top: 4%;
  right: 0;
  max-width: 196px;
  margin: 0;
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--s-navy);
  box-shadow: 0 10px 28px rgba(16, 40, 80, 0.1);
}
.scan-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #e3ebf7;
  border-bottom: 1px solid #e3ebf7;
  transform: rotate(45deg);
}

/* ── Benefits ──────────────────────────────────────────────────── */
.scan-benefits {
  padding: 4px 0 56px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.scan-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.scan-benefit {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  padding: 24px 22px 26px;
  box-shadow: var(--s-shadow);
}
.scan-benefit h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--s-navy);
}
.scan-benefit p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--s-muted);
}

/* ── Platform strip ────────────────────────────────────────────── */
.scan-trust {
  padding: 28px 0;
  background: #eef4fc;
  border-top: 1px solid #e4ecf7;
  border-bottom: 1px solid #e4ecf7;
}
.scan-trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.scan-trust-copy strong { display: block; font-size: 15px; color: var(--s-navy); }
.scan-trust-copy p {
  margin: 4px 0 0;
  max-width: 44ch;
  font-size: 13px;
  color: var(--s-muted);
}
.scan-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scan-trust-logos li {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #8c9bad;
}

/* ── How it works ──────────────────────────────────────────────── */
.scan-how { padding: 54px 0 70px; background: #fff; }
.scan-how-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--s-navy);
}
.scan-how-title i {
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--s-orange);
}
.scan-how-sub {
  margin: 8px 0 44px;
  text-align: center;
  font-size: 14px;
  color: var(--s-muted);
}
.scan-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scan-steps-grid li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  box-shadow: var(--s-shadow);
}
.scan-steps-grid li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 30px;
  border-top: 2px dotted #c9d5e5;
}
.scan-step-n {
  position: absolute;
  top: -14px;
  left: -13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.scan-step-n.is-orange { background: var(--s-orange); }
.scan-step-n.is-blue { background: var(--s-blue); }
.scan-step-n.is-green { background: var(--s-green); }
.scan-steps-grid h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--s-navy); }
.scan-steps-grid p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--s-muted); }

/* ── Report head ───────────────────────────────────────────────── */
.scan-rhead { padding: calc(var(--header-h) + 26px) 0 0; }
.scan-rhead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.66fr) 236px;
  gap: 24px;
  align-items: center;
}
.scan-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b9bad;
}
.scan-rhead h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--s-navy);
}
.scan-rhead h2 em { font-style: normal; color: var(--s-orange); }
.scan-rhead-copy > p {
  margin: 0;
  max-width: 60ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--s-muted);
}
.scan-rhead .scan-pills { margin-top: 18px; }
.scan-rhead-art { position: relative; }
.scan-note-float {
  position: absolute;
  left: -4%;
  top: 12%;
  max-width: 152px;
  margin: 0;
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--s-navy);
  box-shadow: 0 8px 22px rgba(16, 40, 80, 0.1);
}
.scan-rhead-aside {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--s-shadow);
}
.scan-rhead-aside h3 {
  margin: 12px 0 8px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--s-navy);
}
.scan-rhead-aside p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--s-muted); }

/* ── Loading ───────────────────────────────────────────────────── */
.scan-loading { padding-block: 18px 70px; }
.scan-loading p { margin: 0 0 16px; font-size: 14px; color: var(--s-muted); }
.scan-load-track {
  height: 4px;
  border-radius: 99px;
  background: #e6edf3;
  overflow: hidden;
}
.scan-load-track i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: var(--s-orange);
}

/* ── Dashboard shell ───────────────────────────────────────────── */
.scan-board {
  display: grid;
  gap: 18px;
  padding-block: 18px 70px;
}
.scan-band { display: grid; gap: 18px; align-items: stretch; }
.scan-band-a { grid-template-columns: 1.3fr 1fr 1.04fr 0.86fr; }
.scan-band-b { grid-template-columns: 1fr 1.06fr 1.16fr; }
.scan-band-c { grid-template-columns: 1.14fr 0.86fr; }

.scan-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  box-shadow: var(--s-shadow);
}
.scan-card-t {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--s-navy);
}
.scan-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.scan-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scan-ico.is-blue svg { stroke: var(--s-blue); }
.scan-ico.is-orange svg { stroke: var(--s-orange); }
.scan-ico.is-green svg { stroke: var(--s-green); }
.scan-ico.is-violet svg { stroke: var(--s-violet); }
.scan-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--s-blue);
}
.scan-card-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.meter {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--s-blue);
  transition: width 0.8s ease;
}
.meter i.is-orange { background: var(--s-orange); }
.meter i.is-green { background: var(--s-green); }
.meter i.is-blue { background: var(--s-blue); }
.meter i.is-violet { background: var(--s-violet); }

.scan-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f3f7fd;
  font-size: 11.5px;
  line-height: 1.55;
  color: #5b6c7d;
}
.scan-inline-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--s-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scan-inline-note b { display: block; color: var(--s-navy); }
.scan-inline-note.is-amber { background: var(--s-amber-soft); color: #7a5a2e; }
.scan-inline-note.is-amber svg { stroke: var(--s-orange); }
.scan-inline-note.is-amber b { color: #8a5a12; }
.scan-foot-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.6; color: #7b8a9b; }

/* ── Overall score ─────────────────────────────────────────────── */
.score-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.score-gauge { position: relative; width: 150px; height: 150px; }
.score-gauge svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: #eef2f7; stroke-width: 13; }
.gauge-rest { fill: none; stroke: var(--s-green); stroke-width: 13; stroke-linecap: round; }
.gauge-val {
  fill: none;
  stroke: var(--s-orange);
  stroke-width: 13;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.score-gauge-mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-gauge-mid strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}
.score-gauge-mid span { font-size: 12px; font-weight: 600; color: var(--s-green); }
.score-metrics { display: grid; gap: 16px; margin: 0; }
.score-metrics > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
}
.score-metrics dt { font-size: 12.5px; color: #546575; }
.score-metrics dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}
.score-metrics dd small { font-size: 11px; font-weight: 500; color: #9aa8b6; }
.score-metrics .meter { grid-column: 2 / -1; }

/* ── Speed across pages ────────────────────────────────────────── */
.stat-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.stat-big {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: 12px; color: var(--s-muted); }
.stat-delta { text-align: right; }
.delta-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--s-green-soft);
  color: var(--s-green-ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-delta small { display: block; margin-top: 5px; font-size: 11px; color: #9aa8b6; }
.chart-line svg { display: block; width: 100%; height: auto; }
.chart-line .ln-area { fill: rgba(124, 92, 240, 0.1); }
.chart-line .ln-path {
  fill: none;
  stroke: var(--s-violet);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line .ln-dot { fill: var(--s-violet); }
.chart-line .ln-label { fill: #9aa8b6; font-size: 9px; }

/* ── Page quality donut ────────────────────────────────────────── */
.donut-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.donut svg { display: block; width: 128px; height: 128px; }
.donut .dn-cap { fill: #7b8a9b; font-size: 8.5px; }
.donut .dn-val { fill: var(--s-navy); font-size: 15px; font-weight: 700; }
.donut-legend { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.donut-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  font-size: 12.5px;
  color: #4d5f70;
}
.donut-legend i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.donut-legend b { font-weight: 700; color: var(--s-navy); font-variant-numeric: tabular-nums; }

/* ── AI opportunity ────────────────────────────────────────────── */
.op-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.op-word {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--s-green);
}
.op-word.is-mid { color: var(--s-orange); }
.op-word.is-low { color: #7b8a9b; }
.op-arrow {
  width: 62px;
  height: 42px;
  fill: none;
  stroke: var(--s-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.op-word.is-mid + .op-arrow { stroke: var(--s-orange); }
.op-word.is-low + .op-arrow { stroke: #b9c6d4; }
.op-copy { margin: 12px 0 16px; font-size: 12.5px; line-height: 1.65; color: var(--s-muted); }
.op-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--s-orange-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--s-orange);
}
.op-cta:hover { background: #ffe6d0; color: var(--s-orange-ink); }
.op-cta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; }
.op-cta .op-cta-go { margin-left: auto; }

/* ── SEO & AI visibility ───────────────────────────────────────── */
.vis-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.vis-score strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}
.vis-cap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  color: #7b8a9b;
}
.vis-cap svg { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--s-violet); stroke-width: 1.9; }
.vis-flag {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--s-orange-soft);
  color: var(--s-orange-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.vis-flag.is-good { background: var(--s-green-soft); color: var(--s-green-ink); }
.vis-bars { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.vis-bars li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #5b6c7d;
}
.vis-bars li > span:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}

/* ── Key recommendations ───────────────────────────────────────── */
.rec-list { display: grid; margin: 0; padding: 0; list-style: none; }
.rec-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid #f0f4f9;
}
.rec-list li:last-child { border-bottom: 0; }
.rec-list h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--s-navy); }
.rec-list p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--s-muted); }
.rec-pri { font-size: 11.5px; font-weight: 700; color: var(--s-orange); }
.rec-pri.is-high { color: var(--s-red); }
.rec-pri.is-done { color: var(--s-green-ink); }
.rec-go { width: 16px; height: 16px; fill: none; stroke: #b9c6d4; stroke-width: 2; stroke-linecap: round; }

/* ── Page comparison ───────────────────────────────────────────── */
.cmp-head,
.cmp-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 76px;
  gap: 12px;
  align-items: center;
}
.cmp-head {
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
  color: #93a2b3;
}
.cmp-head span:last-child,
.cmp-rows li > span:last-child { text-align: right; }
.cmp-rows { margin: 0; padding: 0; list-style: none; }
.cmp-rows li { padding: 10px 0; font-size: 12.5px; color: #4d5f70; }
.cmp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-rows .is-you .cmp-name { font-weight: 700; color: var(--s-navy); }
.cmp-score { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 10px; align-items: center; }
.cmp-score b {
  font-weight: 600;
  text-align: right;
  color: var(--s-navy);
  font-variant-numeric: tabular-nums;
}
.cmp-rows li > span:last-child { font-variant-numeric: tabular-nums; }

/* ── Growth opportunities ──────────────────────────────────────── */
.grow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grow-grid li {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 26px 14px 14px;
  border: 1px solid var(--s-line);
  border-radius: 12px;
}
.grow-grid h3 { margin: 0; font-size: 12.5px; line-height: 1.35; font-weight: 700; }
.grow-grid li:nth-child(1) h3 { color: var(--s-green-ink); }
.grow-grid li:nth-child(2) h3 { color: var(--s-blue); }
.grow-grid li:nth-child(3) h3 { color: var(--s-violet); }
.grow-grid li:nth-child(4) h3 { color: var(--s-orange); }
.grow-grid p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--s-muted); }
.grow-go {
  position: absolute;
  right: 11px;
  bottom: 13px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #c2cddb;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Closing CTA ───────────────────────────────────────────────── */
.scan-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b2a4a 0%, #071d34 100%);
  color: #fff;
  overflow: hidden;
}
.scan-cta h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.scan-cta p { margin: 0 0 18px; max-width: 42ch; font-size: 12.5px; line-height: 1.6; color: #a9bdd2; }
.scan-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-navy);
}
.scan-cta-btn:hover { background: #eef4ff; color: var(--s-navy); }
.scan-cta-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.scan-cta-art { position: relative; display: flex; align-items: flex-end; gap: 16px; }
.cta-bars { width: 118px; height: 70px; }
.cta-bars rect { fill: rgba(120, 170, 255, 0.32); }
.cta-bars rect:last-child { fill: var(--s-orange); }
.cta-target {
  position: absolute;
  left: 62px;
  top: -26px;
  width: 68px;
  height: 68px;
  fill: none;
  stroke: var(--s-orange);
  stroke-width: 5;
}
.cta-wins {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  list-style: none;
  font-size: 11.5px;
  color: #cdddeb;
}

/* ── Upgrade dialog ────────────────────────────────────────────── */
.scan-upgrade {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 25, 44, 0.55);
  overscroll-behavior: contain;
}
.scan-upgrade[hidden] { display: none; }
.scan-upgrade-card {
  max-width: 460px;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(7, 25, 44, 0.25);
}
.scan-upgrade-card h2 { margin: 0 0 10px; color: var(--s-navy); }
.scan-upgrade-card p { color: #5b6b78; }
.scan-upgrade-card .btn-submit { width: auto; min-width: 160px; padding: 0 22px; margin-top: 8px; }
.scan-upgrade-close {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  font: inherit;
  color: #5b6b78;
  cursor: pointer;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .scan-band-a { grid-template-columns: 1.25fr 1fr; }
  .scan-band-b { grid-template-columns: 1fr 1fr; }
  .scan-band-b > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .scan-rhead-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .scan-rhead-art { display: none; }
  .scan-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .scan-hero { padding-top: calc(var(--header-h) + 28px); }
  .scan-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .scan-hero-art { max-width: 520px; }
  .scan-steps-grid { grid-template-columns: 1fr; gap: 22px; }
  .scan-steps-grid li:not(:last-child)::after { display: none; }
  .scan-band-a,
  .scan-band-b,
  .scan-band-c { grid-template-columns: 1fr; }
  .scan-band-b > :last-child { grid-column: auto; }
  .grow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .scan-rhead-grid { grid-template-columns: 1fr; }
  .scan-form.is-bar { grid-template-columns: 1fr; }
  .scan-form.is-bar .scan-go { justify-content: center; }
}

@media (max-width: 640px) {
  .scan-hero-copy h1 { font-size: 2rem; }
  .scan-form.is-hero {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px;
    gap: 10px;
  }
  .scan-form.is-hero .scan-field {
    flex: 1 0 100%;
    padding: 0 8px;
    border-bottom: 1px solid #eef2f8;
  }
  .scan-form.is-hero .scan-go { width: 100%; justify-content: center; }
  .scan-bubble { position: static; max-width: none; margin-top: 14px; }
  .scan-bubble::after { display: none; }
  .scan-benefit-grid,
  .grow-grid { grid-template-columns: 1fr; }
  .score-body,
  .vis-row,
  .donut-row { grid-template-columns: 1fr; justify-items: center; }
  .score-metrics,
  .vis-bars,
  .donut-legend { width: 100%; }
  .vis-score,
  .vis-bars li,
  .donut-legend li { text-align: left; }
  .vis-bars li { grid-template-columns: 84px minmax(0, 1fr) 34px; }
  .scan-cta { grid-template-columns: 1fr; }
  .scan-cta-art { justify-content: flex-start; margin-top: 8px; }
  .cta-target { left: auto; right: 8px; top: -18px; }
  .rec-list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rec-go { display: none; }
  .cmp-head,
  .cmp-rows li { grid-template-columns: minmax(0, 1fr) 78px 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-val,
  .meter i { transition: none; }
}
