:root {
  --primary: #0046ad;
  --primary-dark: #00317e;
  --surface: #faf8ff;
  --border: #f4f4f4;
  --text: #191b22;
  --muted: #5f5e5e;
  --soft: #f3f3fc;
  --danger: #ba1a1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  max-width: 220px;
  height: 42px;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 22px;
  text-decoration: none;
}

.button:hover { background: var(--primary-dark); }

.button.secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 86px 0 72px;
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.search-card {
  display: flex;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0, 70, 173, 0.08);
}

.search-card input,
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.search-card input {
  flex: 1;
  border: 0;
  background: white;
  font-size: 18px;
}

.field input:focus,
.field select:focus,
.search-card input:focus {
  box-shadow: 0 0 0 2px rgba(0, 70, 173, 0.2);
}

.proof-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 46px auto 0;
}

.stat-card {
  padding: 28px;
  text-align: left;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.loading-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.radar {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 32px;
  border: 2px solid rgba(0, 70, 173, 0.18);
  border-radius: 50%;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(0, 70, 173, 0.12);
  border-radius: 50%;
}

.radar::after { inset: 72px; }

.sweep {
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e2eb;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 350ms ease;
}

.final-loading-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 46px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 70, 173, 0.12), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(0, 49, 126, 0.08), transparent 30%),
    var(--surface);
}

.final-loader-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 42px;
  box-shadow: 0 24px 70px rgba(0, 70, 173, 0.08);
}

.loader-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.orbit-system {
  position: relative;
  width: 260px;
  height: 260px;
  margin: auto;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 70, 173, 0.14);
  border-radius: 50%;
  animation: orbit-spin 5s linear infinite;
}

.orbit-two {
  inset: 34px;
  animation-duration: 3.8s;
  animation-direction: reverse;
}

.orbit-three {
  inset: 68px;
  animation-duration: 2.8s;
}

.orbit span {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(0, 70, 173, 0.65);
}

.loader-core {
  position: absolute;
  inset: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 50px rgba(0, 70, 173, 0.32);
  animation: core-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes core-pulse { from { transform: scale(0.96); } to { transform: scale(1.05); } }

.final-loader-panel h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
}

.final-status {
  color: #64748b;
  font-size: 18px;
  line-height: 1.6;
}

.final-track {
  margin-top: 28px;
  height: 12px;
}

.progress-copy {
  margin-top: 12px;
  color: #64748b;
  font-weight: 800;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.activity-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 18px;
}

.activity-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(0, 70, 173, 0.08), transparent);
  animation: shimmer 2.1s infinite;
}

.activity-grid span {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1s ease-in-out infinite alternate;
}

.activity-grid strong { display: block; margin-bottom: 6px; }
.activity-grid p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes blink { from { opacity: 0.35; } to { opacity: 1; } }

.scan-console {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  border-radius: 14px;
  background: #0f172a;
  padding: 18px;
}

.scan-console i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(178, 197, 255, 0.25), rgba(178, 197, 255, 0.9), rgba(178, 197, 255, 0.25));
  animation: console-line 1.8s ease-in-out infinite alternate;
}

.scan-console i:nth-child(2) { width: 72%; animation-delay: .15s; }
.scan-console i:nth-child(3) { width: 86%; animation-delay: .3s; }
.scan-console i:nth-child(4) { width: 64%; animation-delay: .45s; }
.scan-console i:nth-child(5) { width: 78%; animation-delay: .6s; }

@keyframes console-line { from { opacity: 0.35; transform: translateX(0); } to { opacity: 1; transform: translateX(14px); } }

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  padding: 48px 0;
}

.form-card {
  padding: 32px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blurred { filter: blur(6px); opacity: 0.4; user-select: none; }

.locked-preview { position: relative; overflow: hidden; }

.lock-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(3px);
  text-align: center;
}

.lock-card > div {
  max-width: 360px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.report-header {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: center;
  padding: 40px;
  margin: 40px 0 28px;
}

.donut {
  --score: 75;
  width: 190px;
  height: 190px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), #e2e2eb 0);
}

.donut-inner {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  text-align: center;
}

.donut-inner strong { font-size: 42px; color: var(--primary); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.category-card,
.section-card,
.recommendation {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.score { color: var(--primary); font-size: 34px; font-weight: 900; }

.section-card { margin-bottom: 28px; }

.recommendation {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.badge {
  align-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  text-align: center;
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.High { background: #dc2626; }
.badge.Medium { background: #f59e0b; }
.badge.Low { background: #64748b; }

.report-page {
  padding-top: 34px;
}

.report-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.report-topline h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.report-topline h1 span {
  color: var(--primary);
}

.site-score-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  white-space: nowrap;
}

.site-score-pill span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-score-pill strong {
  color: var(--primary);
  font-size: 22px;
}

.report-hero-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: center;
  padding: 42px;
  margin-bottom: 26px;
}

.report-summary-copy h2 {
  max-width: 780px;
}

.report-summary-copy p {
  max-width: 760px;
  color: #64748b;
  line-height: 1.75;
}

.summary-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}

.flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
}

.flag.good {
  background: #dcfce7;
  color: #166534;
}

.flag.warn {
  background: #fef3c7;
  color: #92400e;
}

.audit-donut {
  width: 230px;
  height: 230px;
}

.audit-donut .donut-inner {
  width: 172px;
  height: 172px;
}

.section-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading-row h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.report-chip {
  border-radius: 999px;
  background: var(--soft);
  color: #64748b;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.device-section,
.serp-card,
.source-section,
.actions-section,
.split-section,
.detail-card {
  padding: 34px;
  margin-bottom: 26px;
}

.device-stage {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 54px;
  border-radius: 18px;
  background: var(--soft);
  padding: 46px;
}

.desktop-frame {
  width: min(680px, 100%);
  overflow: hidden;
  border: 9px solid #1f2937;
  border-bottom-width: 16px;
  border-radius: 16px 16px 10px 10px;
  background: white;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.browser-bar {
  display: flex;
  gap: 8px;
  height: 26px;
  align-items: center;
  padding: 0 12px;
  background: #374151;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f87171;
}

.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }

.mobile-frame {
  position: relative;
  width: 210px;
  min-width: 210px;
  overflow: hidden;
  border: 9px solid #1f2937;
  border-radius: 34px;
  background: white;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #1f2937;
}

.site-wireframe {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 330px;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 70, 173, 0.14), transparent 24%),
    linear-gradient(135deg, #ffffff, #eef4ff);
}

.screenshot-render::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 70, 173, 0.06) 100%);
}

.screenshot-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border: 1px solid rgba(0, 70, 173, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.captured-screenshot {
  display: block;
  width: 100%;
  background: white;
  object-fit: cover;
  object-position: top center;
}

.desktop-shot {
  aspect-ratio: 1440 / 1000;
}

.mobile-shot {
  height: 390px;
  object-position: top center;
}

.screenshot-error {
  margin: -8px 0 20px;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  background: #fff7f7;
  color: #991b1b;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.site-wireframe.compact {
  min-height: 390px;
  padding: 38px 18px 18px;
}

.wf-nav,
.wf-hero,
.wf-grid i {
  display: block;
  border-radius: 10px;
  background: rgba(0, 70, 173, 0.12);
}

.wf-nav { height: 30px; }
.wf-hero { height: 130px; background: rgba(0, 70, 173, 0.22); }
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wf-grid i { height: 74px; }
.compact .wf-grid { grid-template-columns: 1fr; }
.compact .wf-grid i { height: 46px; }

.serp-preview {
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 28px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.04);
}

.serp-url {
  margin-bottom: 7px;
  color: #202124;
  font-size: 14px;
}

.serp-preview h3 {
  margin-bottom: 8px;
  color: #1a0dab;
  font-size: 22px;
  font-weight: 500;
}

.serp-preview p:last-of-type {
  color: #4d5156;
  line-height: 1.55;
}

.serp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #1a0dab;
  font-size: 13px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.source-grid article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 20px;
}

.source-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 10px 0;
  font-size: 15px;
}

.source-grid p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.compact-source {
  grid-template-columns: 1fr 1fr 1fr;
}

.schema-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.schema-tags span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.metric-strip span {
  border-radius: 999px;
  background: var(--soft);
  color: #64748b;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.report-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}

.chart-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-bottom: 26px;
}

.chart-card,
.diagnostic-section,
.vitals-section {
  padding: 34px;
  margin-bottom: 26px;
}

.chart-card h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.bar-chart {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 42px;
  align-items: center;
  gap: 14px;
}

.bar-row span,
.bar-row strong {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.bar-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e2eb;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.stacked-chart {
  display: flex;
  height: 74px;
  overflow: hidden;
  border-radius: 16px;
  margin-top: 24px;
  background: #e2e2eb;
}

.stacked-chart i {
  position: relative;
  min-width: 38px;
}

.stacked-chart span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.segment-1 { background: #0046ad; }
.segment-2 { background: #2559bf; }
.segment-3 { background: #8c2d01; }
.segment-4 { background: #5f5e5e; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chart-legend span {
  border-radius: 999px;
  background: var(--soft);
  color: #64748b;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

.category-wide-card {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 22px;
  align-items: center;
  padding: 30px;
}

.category-wide-card h2 {
  font-size: 32px;
}

.category-wide-card p:not(.eyebrow) {
  color: #64748b;
  line-height: 1.6;
}

.mini-donut {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), #e2e2eb 0);
  color: var(--primary);
}

.mini-donut strong {
  font-size: 30px;
  line-height: 1;
}

.mini-donut span {
  margin-top: -28px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
}

.diagnostic-grid,
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pagespeed-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.pagespeed-score-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
  text-align: center;
}

.pagespeed-score-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagespeed-score-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 34px;
}

.diagnostic-item,
.vital-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: 20px;
}

.diagnostic-item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
}

.diagnostic-item span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diagnostic-item.pass span {
  background: #dcfce7;
  color: #166534;
}

.diagnostic-item.warning span {
  background: #fef3c7;
  color: #92400e;
}

.diagnostic-item p {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.danger-donut {
  background: conic-gradient(var(--danger) calc(var(--score) * 1%), #e2e2eb 0);
}

.danger-donut strong {
  color: var(--danger);
}

.vital-card {
  min-height: 190px;
}

.vital-code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 16px;
}

.vital-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.vital-card p {
  color: #64748b;
  font-size: 13px;
}

.vital-card.poor .vital-code { background: #fee2e2; color: #dc2626; }
.vital-card.good .vital-code { background: #dcfce7; color: #16a34a; }
.vital-card.average .vital-code { background: #fef3c7; color: #92400e; }

.vital-meter,
.score-line i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e2eb;
}

.vital-meter i,
.score-line b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.vital-card.poor .vital-meter i { background: #dc2626; }
.vital-card.good .vital-meter i { background: #16a34a; }
.vital-card.average .vital-meter i { background: #f59e0b; }

.split-section p {
  color: #64748b;
  line-height: 1.7;
}

.progress-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.progress-list div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-bottom: 14px;
  color: #64748b;
  font-weight: 800;
}

.progress-list div::after,
.progress-list i {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
}

.progress-list div::after {
  width: 100%;
  background: #e2e2eb;
}

.progress-list i {
  z-index: 1;
  background: var(--primary);
}

.progress-list strong {
  color: var(--text);
}

.ai-preview-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--soft);
  padding: 28px;
}

.report-two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.check-row:last-child { border-bottom: 0; }
.check-row span { color: #334155; font-weight: 800; }
.check-row.ok strong { color: #16a34a; }
.check-row.missing strong { color: var(--danger); }

.row-note {
  margin: -6px 0 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.score-line {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.score-line:last-child { border-bottom: 0; }

.score-line div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #334155;
  font-weight: 900;
}

.score-line strong {
  color: var(--primary);
}

.local-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.local-stats div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.local-stats strong {
  display: block;
  color: var(--primary);
  font-size: 32px;
}

.local-stats span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maps-listing-summary {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
  margin: 16px 0;
}

.maps-listing-summary strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  margin-bottom: 6px;
}

.maps-listing-summary span {
  display: block;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 8px;
}

.maps-listing-summary p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.maps-screenshot {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
}

.compact-map-shot {
  max-height: 190px;
  object-fit: contain;
  object-position: top left;
  background: white;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-business-meta {
  max-width: none;
  margin: 10px 0 0;
  font-size: 15px;
}

.share-link-note {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
}

.impact-action {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  background: white;
}

.impact-action:first-of-type {
  background: #fff7f7;
  border-color: #fee2e2;
}

.action-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: #64748b;
  font-weight: 900;
}

.impact-action:first-of-type .action-index {
  background: #fee2e2;
  color: #dc2626;
}

.impact-action h3 {
  margin: 10px 0 6px;
}

.impact-action p {
  margin-bottom: 0;
  color: #64748b;
  line-height: 1.55;
}

.report-canvas {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.report-shell {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}

.report-hero-exact {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 56px;
  align-items: center;
  padding: 42px;
}

.report-copy h1 {
  margin: 4px 0 20px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.report-copy h1 span { color: #001f7a; }
.report-copy h3 { margin-bottom: 10px; font-size: 16px; }
.report-copy p { max-width: 720px; color: #64748b; line-height: 1.65; }

.summary-flags.compact { gap: 16px; padding-top: 8px; }
.summary-flags.compact .flag { background: transparent; padding: 0; font-size: 12px; }

.svg-score {
  position: relative;
  width: 190px;
  height: 190px;
  margin: auto;
}

.svg-score svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.svg-score circle {
  fill: none;
  stroke-width: 12;
}

.svg-score .ring-bg { stroke: #f0f1fa; }
.svg-score .ring-value { stroke: var(--primary); stroke-linecap: round; }
.svg-score.red .ring-value { stroke: #dc2626; }

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.ring-label strong { color: #002f9c; font-size: 38px; line-height: 1; }
.svg-score.red .ring-label strong { color: #dc2626; }
.ring-label span { margin-top: 8px; color: #64748b; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.report-hero-card > .svg-score,
.category-wide-card > .svg-score,
.diagnostic-section .section-heading-row > .svg-score,
.vitals-section .section-heading-row > .svg-score {
  width: 160px;
  height: 160px;
}

.category-wide-card > .svg-score {
  width: 116px;
  height: 116px;
}

.category-wide-card > .svg-score .ring-label strong,
.diagnostic-section .section-heading-row > .svg-score .ring-label strong,
.vitals-section .section-heading-row > .svg-score .ring-label strong {
  font-size: 28px;
}

.inline-grade {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.ai-example-panel {
  background: linear-gradient(180deg, #ffffff, #f3f3fc);
}

.ai-mini-browser {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: white;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.ai-mini-browser strong {
  display: block;
  margin-bottom: 14px;
  color: #111827;
  text-align: center;
}

.ai-mini-browser p,
.ai-mini-browser li {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.55;
}

.ai-mini-browser ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.device-exact,
.exact-card,
.ai-exact,
.exact-actions { padding: 34px; }
.device-exact h2,
.exact-card h2 { font-size: 18px; letter-spacing: 0; }

.device-stage.exact {
  position: relative;
  gap: 52px;
  padding: 48px 72px;
  background: #f1f2fb;
  border-radius: 4px;
}

.exact-screen { width: 650px; max-width: 72%; border-width: 7px; border-bottom-width: 12px; border-radius: 5px; }
.exact-phone { width: 190px; min-width: 190px; border-width: 7px; border-radius: 28px; }

.screenshot-surface {
  min-height: 290px;
  background: white;
}

.ai-browser {
  display: grid;
  grid-template-columns: 120px 1fr;
  color: #111827;
  font-size: 12px;
}

.ai-browser aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background: #f6f7fb;
}

.ai-browser aside b,
.ai-browser aside i,
.ai-browser aside small {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dbe1ee;
}
.ai-browser aside b { width: 54px; background: #b7c2d7; }
.ai-browser aside small { width: 80px; margin-top: 44px; }

.ai-browser main { padding: 28px; }
.ai-browser main strong { display: block; margin-bottom: 28px; text-align: center; }
.ai-browser main p { color: #4b5563; line-height: 1.55; }
.ai-browser main ul { margin: 18px 0 0; padding-left: 18px; line-height: 1.7; }

.mobile-menu-shot { min-height: 380px; padding: 44px 18px 18px; background: white; font-size: 12px; }
.mobile-menu-shot span { display: block; height: 18px; width: 72px; margin-bottom: 18px; border-radius: 999px; background: #e5e7eb; }
.mobile-menu-shot p { margin: 0; padding: 9px 0; border-bottom: 1px solid #f1f5f9; color: #374151; }
.mobile-menu-shot i { display: block; height: 118px; }

.section-heading-row.tight { margin-bottom: 22px; }
.section-heading-row.tight p { color: #64748b; }
.grade-chip { color: var(--primary); font-size: 30px; font-weight: 900; }
.compact-serp { box-shadow: none; }
.metric-strip.small span { font-size: 11px; }

.split-score-section {
  display: grid;
  grid-template-columns: 1fr 310px;
  overflow: hidden;
}

.split-score-section.reverse-score { grid-template-columns: 310px 1fr; }
.section-main { padding: 38px; }
.section-main h2 { font-size: 32px; }
.section-main > p { color: #64748b; line-height: 1.65; }
.score-side { display: grid; place-items: center; background: #f1f2fb; padding: 34px; }

.compact-grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.compact-grid .diagnostic-item { background: #f7f8fd; }

.ai-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.ai-example-image { background: #f1f2fb; padding: 34px; }
.ai-example-image .browser-bar { height: 24px; }
.ai-browser.large { min-height: 300px; border: 1px solid #e5e7eb; }
.ai-example-image em { display: block; margin-top: 12px; color: #64748b; font-size: 11px; text-align: center; }
.ai-attribution { padding: 10px 0; }
.mini-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 16px; font-size: 12px; font-weight: 800; }
.mini-progress i { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.mini-progress b { display: block; height: 100%; background: #16a34a; }
.ai-note { margin-top: 22px; padding: 18px; border: 1px solid var(--border); background: #fafafa; }
.ai-note p { margin: 8px 0 0; color: #64748b; font-size: 12px; line-height: 1.55; }

.vital-list { display: grid; gap: 14px; margin-top: 24px; }
.vital-list article { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--border); }
.vital-list span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fee2e2; color: #dc2626; font-weight: 900; font-size: 12px; }
.vital-list article:nth-child(2) span { background: #dcfce7; color: #16a34a; }
.vital-list article:nth-child(3) span { background: #fef3c7; color: #d97706; }
.vital-list strong { font-size: 13px; }
.vital-list p { margin: 2px 0 0; color: #64748b; font-size: 12px; }
.vital-list em { color: #dc2626; font-style: normal; font-size: 12px; }
.vital-list article:nth-child(2) em { color: #16a34a; }
.vital-list article:nth-child(3) em { color: #d97706; }

.exact-two { margin-bottom: 28px; }
.exact-detail { padding: 34px; }
.exact-detail h2 { display: flex; justify-content: space-between; gap: 16px; font-size: 20px; }
.exact-detail h2 span { color: #001f7a; }
.info-note { margin-top: 20px; padding: 16px; background: #f7f8fd; color: #64748b; font-size: 12px; line-height: 1.55; }
.exact-actions .impact-action { border-radius: 0; }

.footer {
  margin-top: 64px;
  padding: 34px 32px;
  border-top: 1px solid var(--border);
  background: white;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .search-card, .proof-row { flex-direction: column; }
  .preview-grid, .two-column, .report-header, .card-grid { grid-template-columns: 1fr; }
  .report-header { padding: 28px; }
  .container { width: min(100% - 28px, 1180px); }
  .report-topline,
  .section-heading-row,
  .device-stage {
    align-items: stretch;
    flex-direction: column;
  }
  .report-hero-card,
  .report-category-grid,
  .category-wide-card,
  .split-section,
  .report-two-grid,
  .chart-strip,
  .diagnostic-grid,
  .pagespeed-score-grid,
  .vitals-grid {
    grid-template-columns: 1fr;
  }
  .report-hero-card,
  .device-section,
  .serp-card,
  .source-section,
  .actions-section,
  .split-section,
  .detail-card {
    padding: 24px;
  }
  .desktop-frame,
  .mobile-frame {
    width: 100%;
    min-width: 0;
  }
  .site-wireframe.compact { min-height: 300px; }
  .bar-row { grid-template-columns: 1fr; }
  .chart-card,
  .diagnostic-section,
  .vitals-section { padding: 24px; }
  .loader-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .final-loader-panel { padding: 26px; }
  .orbit-system { width: 220px; height: 220px; }
  .loader-core { inset: 78px; }
  .report-canvas { width: min(100% - 28px, 1180px); }
  .report-hero-exact,
  .split-score-section,
  .split-score-section.reverse-score,
  .ai-layout,
  .source-grid,
  .compact-source { grid-template-columns: 1fr; }
  .report-hero-exact,
  .device-exact,
  .exact-card,
  .ai-exact,
  .exact-actions,
  .section-main,
  .exact-detail { padding: 24px; }
  .exact-screen { max-width: 100%; width: 100%; }
  .device-stage.exact { padding: 24px; }
  .ai-browser { grid-template-columns: 1fr; }
  .ai-browser aside { display: none; }
}
