/* ═══════════════════════════════════════════════════════════
   UENI Website Audit — white variant
   Ported from the Claude Design handoff bundle.
   Lato body · Montserrat display · brand orange #FF4A00 on white.
   ═══════════════════════════════════════════════════════════ */

@import url('../brand/colors_and_type.css');

/* ─── Compatibility aliases ───
   js/app.js and js/report.js inject HTML with inline style refs to the
   legacy token names (--space-md, --color-fail, etc.). Map them onto the
   design-system tokens so the rendered report keeps working untouched. */
:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;

  --border-subtle: var(--line-soft);
  --border-medium: var(--line);
  --color-pass:    #0E8A2A;
  --color-warn:    #8A4A00;
  --color-fail:    var(--error);
  --color-pass-bg: #E7F9EC;
  --color-warn-bg: #FFF1E0;
  --color-fail-bg: #FEE4E4;

  --text-primary:   var(--ink-1);
  --text-secondary: var(--muted-1);
  --text-muted:     var(--muted-3);
  --accent:         var(--brand-orange);
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--surface-off);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}
.section { padding: var(--space-10) 0; }

.hidden { display: none !important; }

/* ─── Navigation ─── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); }
.nav__logo-svg { height: 22px; width: auto; color: var(--ink-1); }
.nav__logo-svg path,
.nav__logo-svg polygon { fill: currentColor; }
.nav__product {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: var(--space-3);
  border-left: 1px solid var(--line);
  margin-left: var(--space-1);
}
.nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #FFE8DE;
  color: var(--brand-orange-hover);
}
.nav__badge svg { width: 10px; height: 10px; }

/* ─── Typography utilities ─── */
.text-accent    { color: var(--brand-orange); }
.text-secondary { color: var(--muted-1); }
.text-muted     { color: var(--muted-3); }
.text-center    { text-align: center; }

h2, h3 { font-family: var(--font-display); color: var(--ink-1); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

/* ─── Hero ─── */
.hero {
  padding: var(--space-12) 0 var(--space-10);
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-5);
}
.hero__eyebrow svg { width: 13px; height: 13px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.26px;
  color: var(--ink-1);
  max-width: 680px;
  margin: 0 auto var(--space-5);
}
.hero__title em { font-style: normal; color: var(--brand-orange); }
.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 auto var(--space-8);
}
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
}
.hero__trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust-item svg { width: 14px; height: 14px; color: var(--brand-orange); }

/* ─── Form controls ─── */
.form-group {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}
.form-row { display: flex; gap: var(--space-2); }

.input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted-3); }
.input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.12);
}
.input--standalone { width: 100%; }
.input:disabled {
  background: var(--grey-lightest);
  color: var(--muted-1);
  cursor: not-allowed;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 44px 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-1);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.12);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  line-height: 1;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
}
.btn--primary {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}
.btn--primary:hover:not(:disabled) {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
}
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--secondary {
  background: #fff;
  color: var(--ink-1);
  border-color: var(--line);
}
.btn--secondary:hover:not(:disabled) {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.btn--large { min-height: 52px; padding: 0 32px; font-size: 16px; }
.btn-arrow::after {
  content: '→';
  transition: transform .15s;
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── Spinner ─── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 13px; height: 13px;
  border: 2px solid var(--grey-light);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Cards ─── */
.card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition: box-shadow .2s;
}
.card + .card { margin-top: var(--space-4); }
.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;              /* emoji sizing when no SVG */
  color: var(--brand-orange);
  background: #FFE8DE;
}
.card__icon svg { width: 20px; height: 20px; }
.card__icon--perf    { color: #0D3973; background: #E8EFF7; }
.card__icon--wp      { color: #4600A5; background: var(--purple-light); }
.card__icon--content { color: var(--brand-orange); background: #FFE8DE; }
.card__icon--gbp     { color: #8A4A00; background: #FFF1E0; }
.card__icon--seo     { color: #0D3973; background: #E8EFF7; }
.card__icon--error   { color: var(--error); background: #FEE4E4; }
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-1);
  flex: 1;
}
.perf-mobile-score,
.content-score {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted-1);
}

/* ─── Details / step 2 ─── */
.details {
  background: var(--surface);
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--line-soft);
}
.details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 620px;
  margin: 0 auto var(--space-5);
}
.details__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01rem;
  color: var(--muted-1);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.details__help {
  font-size: 13px;
  color: var(--muted-1);
  text-align: center;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  min-height: 1.2em;
}

/* ─── Scan-progress pills (live during URL → details) ─── */
.scan-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.scan-progress__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all .2s;
}
.scan-progress__item--done {
  color: var(--color-pass);
  border-color: #B7E8C0;
  background: #F0FBEF;
}
.scan-progress__item--error {
  color: var(--color-warn);
  border-color: #F5D58A;
  background: #FFF7E4;
}
.scan-progress__icon { display: inline-flex; align-items: center; justify-content: center; }

/* Fallback progress checklist (older app.js path) */
.progress { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); }
.progress__item {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body); font-size: 13px; color: var(--muted-1);
}
.progress__icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  background: var(--grey-lightest); color: var(--muted-1);
}

/* ─── Places autocomplete dropdown ─── */
.places-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 100;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-nav-sm);
  max-height: 260px;
  overflow-y: auto;
}
.places-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.places-dropdown__item:last-child { border-bottom: none; }
.places-dropdown__item:hover,
.places-dropdown__item--active { background: var(--surface-off); }
.places-dropdown__icon { flex-shrink: 0; font-size: 14px; line-height: 1.4; }
.places-dropdown__main {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
}
.places-dropdown__secondary {
  font-size: 12px;
  color: var(--muted-1);
  margin-top: 2px;
}
.places-dropdown__skip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 16px;
  background: var(--surface-off);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
  cursor: pointer;
  border-top: 1px solid var(--line-soft);
}
.places-dropdown__skip span { color: var(--brand-orange); font-weight: 700; }
.places-dropdown__empty {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
  text-align: center;
}

/* ─── Audited URL pill ─── */
.audit-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-6);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
}
.audit-url-pill__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink-1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.audit-url-pill__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-1);
  font-weight: 700;
}
.audit-url-pill__copy {
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted-1);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.audit-url-pill__copy:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.audit-url-pill__copy--copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* ─── Health score gauge ─── */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5) 0;
}
.gauge {
  position: relative;
  width: 240px; height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--gauge-color, var(--brand-orange)) calc(var(--gauge-pct, 0) * 1%),
    var(--grey-lighter) 0
  );
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 24px color-mix(in oklab, var(--gauge-color, var(--brand-orange)) 22%, transparent));
}
.gauge::before {
  content: '';
  position: absolute;
  width: 196px; height: 196px;
  border-radius: 50%;
  background: #fff;
}
.gauge__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: var(--gauge-color, var(--ink-1));
  letter-spacing: -3px;
  line-height: 1;
}
.gauge__label {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.gauge__sublabel {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-1);
}

/* ─── Metrics grid ─── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.metric {
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-off);
  border: 1px solid var(--line-soft);
}
.metric__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.metric__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric--pass .metric__value { color: var(--color-pass); }
.metric--warn .metric__value { color: var(--color-warn); }
.metric--fail .metric__value { color: var(--error); }

/* ─── Checklist ─── */
.checklist { list-style: none; padding: 0; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.checklist__item:last-child { border-bottom: none; }
.checklist__status {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  margin-top: 1px;
}
.checklist__status--pass { background: var(--color-pass-bg); color: var(--color-pass); }
.checklist__status--warn { background: var(--color-warn-bg); color: var(--color-warn); }
.checklist__status--fail { background: var(--color-fail-bg); color: var(--error); }
.checklist__label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.4;
}
.checklist__note {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted-1);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}

/* ─── Pills ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill--pass { background: var(--color-pass-bg); color: var(--color-pass); }
.pill--warn { background: var(--color-warn-bg); color: var(--color-warn); }
.pill--fail { background: var(--color-fail-bg); color: var(--error); }

/* ─── Stack health (dynamic, not in design; preserves JS output) ─── */
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-off);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-1);
}
.stack-badge strong { font-weight: 700; }
.stack-badge__cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-1);
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.stack-badge--high   { border-color: rgba(255, 74, 0, 0.25); }
.stack-badge--medium { border-color: var(--line); }
.stack-badge--low    { opacity: 0.85; }
.stack-summary {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-beige);
  border-left: 3px solid var(--brand-orange);
}
.stack-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-1);
  margin: var(--space-5) 0 var(--space-3);
}
.stack-risks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.stack-risk {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-off);
  border: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
}
.stack-risk__icon { font-size: 16px; flex-shrink: 0; }
.stack-risk__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.stack-risk__tech {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-1);
}
.stack-risk__issue { color: var(--ink-3); }
.stack-risk__fix { color: var(--muted-1); margin-top: 4px; }
.stack-risk__fix strong { color: var(--ink-1); }
.stack-risk--high    { border-left: 3px solid var(--error); }
.stack-risk--medium  { border-left: 3px solid #FF9E3A; }
.stack-risk--low     { border-left: 3px solid var(--color-pass); }

/* ─── Comparison table ─── */
.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 14px;
}
.comparison th,
.comparison td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.comparison thead th {
  background: var(--surface-off);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-1);
}
.comparison tbody td:first-child {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-1);
}
.comparison__current { color: var(--error); font-weight: 700; }
.comparison__ueni    { color: var(--color-pass); font-weight: 700; }

/* ─── Recommendations ─── */
.recs { display: flex; flex-direction: column; gap: var(--space-3); }
.rec {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-off);
  border: 1px solid var(--line-soft);
}
.rec__number {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--brand-orange);
  color: #fff;
}
.rec__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--ink-1);
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}
.rec__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted-1);
  line-height: 1.55;
}

/* ─── Executive summary ─── */
.summary-box {
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--surface-beige);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
  border-left: 3px solid var(--brand-orange);
}
.summary-box strong { color: var(--ink-1); font-weight: 700; }

/* ─── Perf screenshot wrapper ─── */
.perf-screenshot img { margin: var(--space-4) auto 0; }

/* ─── AI readiness block (dynamic) ─── */
.ai-readiness {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted-1);
  line-height: 1.55;
}
.ai-readiness strong { color: var(--ink-1); font-weight: 700; }

/* ─── Email gate ─── */
.email-gate {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--surface-beige);
  border-radius: var(--radius-sm);
  margin: var(--space-6) 0;
  border: 1px solid rgba(227, 222, 214, 0.5);
}
.email-gate__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-3);
}
.email-gate__icon {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}
.email-gate__icon svg { width: 24px; height: 24px; }
.email-gate__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink-1);
  margin-bottom: var(--space-3);
}
.email-gate__title em { font-style: normal; color: var(--brand-orange); }
.email-gate__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: var(--space-5);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.email-gate .form-row { max-width: 440px; margin: 0 auto; }
.email-gate__note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted-3);
  margin-top: var(--space-3);
}

/* ─── Revenue gap ─── */
.revenue-gap {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.revenue-gap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-orange);
}
.revenue-gap__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--muted-1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.revenue-gap__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 64px);
  color: var(--brand-orange);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}
.revenue-gap__value--diagnosis {
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.revenue-gap__annual {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: var(--space-5);
}
.revenue-gap__footnote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted-1);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── Potential vs current ─── */
.potential-grid { display: flex; flex-direction: column; }
.potential-grid__header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-1);
  border-bottom: 1px solid var(--line-soft);
}
.potential-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.potential-row:last-child { border-bottom: none; }
.potential-row__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
}
.potential-row__current {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-3);
}
.potential-row__potential {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-orange);
}
.potential-row__bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--grey-lighter);
  overflow: hidden;
  margin-top: 4px;
}
.potential-row__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grey), var(--brand-orange));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.potential-row__fill--animate { width: var(--fill-pct, 0%); }

/* ─── Competitor card ─── */
.competitor-card {
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: #FFF5F1;
  border-left: 3px solid var(--brand-orange);
}
.competitor-card__domain {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-1);
  margin-bottom: var(--space-2);
}
.competitor-card__stat {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}
.competitor-card__stat strong { color: var(--ink-1); font-weight: 700; }
.competitor-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.competitor-card__detail {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line-soft);
}
.competitor-card__detail-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-1);
  line-height: 1.1;
  margin-bottom: 2px;
}
.competitor-card__detail-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── SEO metrics & traffic explainer ─── */
.seo-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.seo-metric {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-off);
  border: 1px solid var(--line-soft);
}
.seo-metric__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 2px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.seo-metric__label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted-1);
}
.seo-traffic-explanation { margin-top: var(--space-4); }
.traffic-explain {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-beige);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.55;
}
.traffic-explain strong { color: var(--ink-1); font-weight: 700; }

/* ─── Diagnostic hook ─── */
.diagnostic-hook__flag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-1);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.diagnostic-hook__explain {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}
.diagnostic-hook__explain strong { color: var(--ink-1); font-weight: 700; }
.diagnostic-hook__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.diagnostic-hook__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.diagnostic-hook__step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-off);
  border: 1px solid var(--line-soft);
}
.diagnostic-hook__step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--brand-orange);
  color: #fff;
}
.diagnostic-hook__step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.diagnostic-hook__step-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted-1);
  line-height: 1.5;
}

/* ─── Migration CTA ─── */
.migration-cta { padding: var(--space-12) 0; text-align: center; }
.migration-cta__wrap {
  background: var(--ink-1);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: var(--space-10) var(--space-6);
  position: relative;
  overflow: hidden;
}
.migration-cta__wrap::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 74, 0, 0.25) 0%, transparent 65%);
  pointer-events: none;
}
.migration-cta__wrap > * { position: relative; }
.migration-cta__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.migration-cta__price strong { font-weight: 800; }
.migration-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: #fff;
}
.migration-cta__title em { font-style: normal; color: var(--brand-orange); }
.migration-cta__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  margin: 0 auto var(--space-6);
  line-height: 1.55;
}
.migration-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-2) var(--space-6);
  justify-content: center;
  margin: var(--space-6) 0 var(--space-8);
  text-align: left;
}
.migration-cta__benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.migration-cta__benefit svg {
  width: 16px; height: 16px;
  color: var(--brand-orange);
  flex-shrink: 0;
}

/* ─── Analysis overlay ─── */
.analysis-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
  padding: var(--space-5);
}
.analysis-overlay.fade-out { animation: fadeOut 0.4s ease-in forwards; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
.analysis-overlay__spinner {
  width: 56px; height: 56px;
  border: 3px solid var(--grey-lighter);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-5);
}
.analysis-overlay__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-1);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.analysis-overlay__status {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-3);
  font-size: 15px;
  text-align: center;
  max-width: 360px;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}
.analysis-overlay__steps { display: flex; flex-direction: column; gap: var(--space-2); }
.analysis-overlay__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted-1);
  transition: color 0.3s ease;
}
.analysis-overlay__step--active { color: var(--ink-1); font-weight: 700; }
.analysis-overlay__step--done   { color: var(--color-pass); }

/* ─── Dynamic content wrappers (match existing js output) ─── */
.stack-health-content,
.gbp-content {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  color: var(--muted-1);
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: var(--space-12);
}
.footer a { color: var(--muted-1); transition: color .15s; }
.footer a:hover { color: var(--brand-orange); }

/* ─── Fade-in on section / card reveal ─── */
.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .container { padding: 0 var(--space-4); }
  .hero { padding: var(--space-8) 0; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; }
  .details__grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .seo-metrics { grid-template-columns: 1fr; }
  .potential-grid__header { display: none; }
  .potential-row { grid-template-columns: 1fr; gap: 2px; }
  .potential-row__label { font-weight: 700; margin-bottom: 4px; }
  .potential-row__current::before   { content: 'Now: ';       color: var(--muted-1); font-weight: 400; }
  .potential-row__potential::before { content: 'Potential: '; color: var(--muted-1); font-weight: 400; }
  .competitor-card__details { grid-template-columns: 1fr; }
  .migration-cta__grid { grid-template-columns: 1fr; }
  .card { padding: var(--space-4); }
  .gauge { width: 190px; height: 190px; }
  .gauge::before { width: 154px; height: 154px; }
  .gauge__value { font-size: 68px; letter-spacing: -2px; }
  .gauge__label { font-size: 22px; }
  .nav__product { display: none; }
}
