/* ─── Self-hosted Inter (no third-party request — GDPR-friendly) ──────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-800.woff2') format('woff2'); }
/* ─── Self-hosted Noto Sans Arabic (RTL support, arabic subset only) ────────── */
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/noto-sans-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/noto-sans-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1e40af;
  --primary-50:    #eff6ff;
  --primary-100:   #dbeafe;
  /* Warm accent (amber) — Semrush-style CTA + highlights. Distinct from the
     severity --orange (#ea580c) so issue badges keep their meaning. */
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-50:     #fffbeb;
  --accent-100:    #fef3c7;
  --accent-200:    #fde68a;
  --ink:           #0f172a;
  --ink-secondary: #334155;
  --muted:         #64748b;
  --bg:            #f8fafc;
  --card:          #ffffff;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --green:         #16a34a;
  --green-bg:      #f0fdf4;
  --green-border:  #bbf7d0;
  --orange:        #ea580c;
  --orange-bg:     #fff7ed;
  --orange-border: #fed7aa;
  --red:           #dc2626;
  --red-bg:        #fef2f2;
  --red-border:    #fecaca;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  /* Typography tokens — a brand override file (e.g. brand-insightpath.css) can
     swap these per brand. Default = Inter for both body and headings (Growth). */
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:  var(--font-sans);
}

/* ─── Reset / base ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 640px; margin: 0 auto; }
.center-block { text-align: center; padding: 80px 20px; }
.muted { color: var(--muted); }

h1 { font-family: var(--font-display); font-size: 1.9rem;  line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; }
h2 { font-family: var(--font-display); font-size: 1.5rem;  line-height: 1.25; margin: 0 0 .5rem; font-weight: 700; }
h3 { font-family: var(--font-display); font-size: 1.1rem;  line-height: 1.3; margin: 0 0 .35rem; font-weight: 600; }
h4 { font-size: .9rem;   margin: 0 0 .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
a  { color: var(--primary); }

/* ─── Header ────────────────────────────────────────────────────────────── */
/* Thin announcement bar above the header (Semrush-style) */
.promo-bar {
  background: linear-gradient(90deg, #ede9fe 0%, #e0e7ff 50%, #fef3c7 100%);
  color: var(--ink-secondary);
  font-size: .8rem;
  font-weight: 500;
  text-align: center;
}
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 24px; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); flex-shrink: 0; }

.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}
.nav-center { justify-self: center; }
.nav-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo span { color: var(--primary); }
.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
}
/* Text nav links only — :not(.btn) keeps this off the CTA button, whose
   .btn-primary { color:#fff } is lower-specificity and would otherwise lose to
   `.site-nav a`, rendering dark text on the blue button. */
.site-nav a:not(.btn),
.nav-actions .nav-link {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a:not(.btn):hover,
.nav-actions .nav-link:hover { color: var(--primary); }

/* ─── Language switcher (header) ─────────────────────────────────────────── */
.lang-switcher { position: relative; display: inline-flex; align-items: center; margin: 0; }
.lang-switcher .lang-globe {
  position: absolute; left: 9px; width: 15px; height: 15px;
  color: var(--ink-secondary); pointer-events: none;
}
.lang-switcher select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-size: .88rem; font-weight: 500; line-height: 1.2;
  color: var(--ink-secondary);
  background-color: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 28px 6px 30px;
  cursor: pointer;
  /* Chevron comes from the base `select` rule; only its geometry is compact. */
  background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;
  transition: border-color .15s, color .15s;
}
.lang-switcher select:hover { border-color: var(--primary); color: var(--primary); }
.lang-switcher select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.lang-switcher .lang-go { margin-left: 6px; font-size: .8rem; padding: 5px 10px; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  margin-top: 80px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 0 32px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .logo { font-size: 1.1rem; }
.footer-tagline { color: var(--muted); font-size: .88rem; margin: 10px 0 0; line-height: 1.5; }
.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin: 0; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: .88rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: .95rem;
  transition: background .15s, box-shadow .15s, transform .1s;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(37,99,235,.4); }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }
.btn-accent {
  background: var(--accent);
  color: #3d2600;
  box-shadow: 0 2px 10px rgba(217,119,6,.32);
}
.btn-accent:hover { background: var(--accent-dark); color: #3d2600; box-shadow: 0 6px 18px rgba(217,119,6,.42); }
.btn-dark {
  background: #0f172a;
  color: #fff;
  border-radius: 99px;
}
.btn-dark:hover { background: #1e293b; color: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.28); }
.btn-lg {
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  margin-top: 16px;
  border-radius: var(--radius);
}
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
/* Search fields are used by the market-country autocomplete as well. Keep the
   same dimensions and focus treatment as every other form field; otherwise
   browsers render an unstyled, visibly broken native search control.
   appearance:none is required for Safari, which otherwise forces its rounded
   native search styling and ignores the padding/border below. */
input[type="search"] {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
input[type="search"]::-webkit-search-decoration { display: none; }
/* Native selects (agency form, account sort…): same body as the text inputs,
   with the OS chrome replaced by a custom chevron so a select is never the one
   visibly unstyled control on an otherwise polished page. Contexts that need a
   compact variant (.lang-switcher, .acct-sort) override padding/size below. */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--card);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: var(--primary-100); }
select:disabled { opacity: .55; cursor: not-allowed; }
.field select, .market-field select { width: 100%; }
input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; margin: 12px 0 0; }
.checkbox input { margin-top: 3px; }
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .93rem; font-weight: 500; }
.alert-error   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: .05em;
}
.badge-critical, .badge-high { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-medium                 { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.badge-low                    { background: var(--border-light); color: var(--muted); }
.badge-success                { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-warning                { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.badge-info                   { background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-100); }
.badge-quickwin               { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.priority-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.soon {
  font-size: .72rem;
  background: var(--border-light);
  color: var(--muted);
  border-radius: 99px;
  padding: 2px 10px;
  font-weight: 500;
}

/* ─── Score levels ──────────────────────────────────────────────────────── */
.level-critical, .level-weak    { color: var(--red); }
.level-average                  { color: var(--orange); }
/* Green is reserved for Excellent (90+). "Good" gets amber: it is a real pass,
   but it still has work outstanding, and painting it green told the reader
   there was nothing left to buy a report for. */
.level-good                     { color: var(--accent-dark); }
.level-excellent                { color: var(--green); }

/* ─── Spinner ───────────────────────────────────────────────────────────── */
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Wizard ────────────────────────────────────────────────────────────── */
.wizard { max-width: 1080px; padding-top: 36px; }

/* Progress: numbered circles joined by a connector line. Completed steps are
   links (clickable to go back); the active and future steps are plain spans. */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 780px;
  margin: 0 auto 28px;
  position: relative;
}
.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  position: relative;
  text-decoration: none;
  background: none;
  border: none;
}
/* Connector line between circles (drawn from each step's circle to the next) */
.wizard-step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(-50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.wizard-step:first-child::before { display: none; }
.wizard-step.done::before,
.wizard-step.active::before { background: var(--primary); }
.wizard-step .step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: 700; font-size: .9rem;
  position: relative; z-index: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.wizard-step.active .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-step.done   .step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-step.active .step-lbl { color: var(--primary); font-weight: 600; }
a.wizard-step.done { cursor: pointer; }
a.wizard-step.done:hover .step-num { box-shadow: 0 0 0 3px var(--primary-50); }
a.wizard-step.done:hover .step-lbl { color: var(--primary); }

/* Card with optional right-side illustration */
.wizard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 24px);
  box-shadow: var(--shadow-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.wizard-card.has-visual { grid-template-columns: 1fr 1fr; align-items: center; }
.wizard-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: var(--primary); background: var(--primary-50);
  border: 1px solid var(--primary-100); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}
.wizard-card h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.12; margin: 0 0 12px; }
.wizard-card > .wizard-main > .muted { font-size: 1rem; margin: 0 0 24px; }

/* Back link */
.wizard-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .86rem; color: var(--muted); text-decoration: none;
  margin-bottom: 16px; font-weight: 500;
}
.wizard-back:hover { color: var(--primary); }

/* Trust row (step 1) */
.wizard-trust {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border);
}
.wizard-trust-item { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink); }
.wizard-trust-item .ti-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Input with leading icon (URL field) */
.field-icon-wrap { position: relative; margin-bottom: 18px; }
.field-icon-wrap .field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.field-icon-wrap input { padding-left: 42px; }

/* Decorative illustration column */
.wizard-visual {
  background: linear-gradient(150deg, var(--primary-50) 0%, #f0f7ff 60%, #fff 100%);
  border-radius: var(--radius-lg, 18px);
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.wizard-visual .deco-dot { position: absolute; border-radius: 50%; background: var(--primary-100); opacity: .5; }

/* Choice cards. Used by the wizard's .choice-form and by the profiling
   questions on the processing page, which are not inside one. */
.choice-form .choice,
.pq-choices .choice {
  display: block; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 10px 0 0; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s;
}
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.choice:has(input:focus-visible) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.choice input { margin-right: 10px; }
.choice-label { font-weight: 600; }
.choice-desc { display: block; color: var(--muted); font-size: .88rem; margin-left: 26px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.choice-grid .choice { margin: 0; }

/* Market step: scope-specific fields make it clear which geography is used.
   The country picker deliberately uses normal checkboxes (not a fragile custom
   multiselect), so it works with keyboard navigation and no third-party JS. */
.market-scope-hint { margin: 14px 0 0; color: var(--ink-secondary); font-size: .92rem; }
.market-field { margin-top: 16px; }
.market-field.is-hidden { display: none; }
.market-field label,
.additional-countries-field legend { display: block; font-weight: 600; margin: 0 0 6px; font-size: .92rem; }
.market-field-hint { margin: 4px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.additional-countries-field { min-width: 0; padding: 0; border: 0; }
.additional-countries-field .market-field-hint { margin-bottom: 10px; }
/* Market fields reuse the URL step's leading-icon inputs (globe / pin / lens);
   the wrapper's own bottom margin is dropped — the field hints space the rows. */
.market-field .field-icon-wrap { margin-bottom: 0; }
.additional-countries-field .field-icon-wrap { margin-bottom: 8px; }
.country-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 212px;
  overflow-y: auto;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.country-choice {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 !important;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: .9rem;
  font-weight: 500 !important;
  cursor: pointer;
}
.country-choice:hover { border-color: var(--primary-100); background: var(--primary-50); }
.country-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); color: var(--ink); }
.country-choice input { flex: 0 0 auto; margin: 0; }
.country-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-choice.is-filtered-out { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Keep a visible focus ring for keyboard users on checkboxes/radios
   (the global `input:focus { outline:none }` removes the native one). */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .wizard-card.has-visual { grid-template-columns: 1fr; }
  .wizard-visual { display: none; }
}
@media (max-width: 640px) {
  .wizard-card { padding: 32px 24px; }
  .wizard-card h1 { font-size: 1.7rem; }
  .wizard-step .step-lbl { font-size: .7rem; }
}
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .country-picker { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 76px;
  background:
    radial-gradient(60% 80% at 88% 0%, var(--accent-50) 0%, rgba(255,251,235,0) 55%),
    radial-gradient(70% 90% at 5% 10%, var(--primary-50) 0%, rgba(239,246,255,0) 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 70%);
}
/* Soft decorative glows behind the hero (pointer-events:none so they never
   intercept clicks on the form/CTAs above them). */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero::before { width: 360px; height: 360px; top: -120px; right: -60px; background: radial-gradient(circle, var(--accent-200), transparent 70%); }
.hero::after  { width: 420px; height: 420px; bottom: -180px; left: -100px; background: radial-gradient(circle, var(--primary-100), transparent 70%); }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 52px;
  align-items: center;
}
/* Centered single-column hero (Semrush layout): headline + input stack centered,
   wide product visual spanning the content width below. */
.hero-centered .hero-inner {
  display: block;
  max-width: 1120px;
  text-align: center;
}
.hero-centered .hero-text { max-width: 840px; margin: 0 auto; }
.hero-centered .hero-text h1 { font-size: clamp(2.9rem, 6vw, 5rem); }
.hero-centered .hero-text p { margin-left: auto; margin-right: auto; }
.hero-centered .hero-audit { margin-left: auto; margin-right: auto; }
.hero-centered .hero-trust { justify-content: center; }
.hero-centered .hero-visual { max-width: 1000px; margin: 50px auto 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  background: var(--primary-100);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 800;
  margin-bottom: 20px;
}
/* Semrush-style highlighter swash under the accent word — the word keeps the
   headline ink colour; only the warm amber highlight sets it apart (no blue). */
.hero-text h1 .accent {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--accent-200) 60%, var(--accent-200) 92%, transparent 92%);
  padding: 0 .06em;
  border-radius: 2px;
}
.hero-text p {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 480px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ── Integrated URL audit form (Semrush-style) ──────────────────────────── */
/* Stacked: a large full-width URL field, with the CTA on its own line below. */
.hero-audit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 14px;
}
.hero-audit-field {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-audit-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}
.hero-audit input {
  width: 100%;
  padding: 16px 16px 16px 46px;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.hero-audit input::placeholder { color: var(--muted); }
.hero-audit input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.hero-audit-btn {
  width: 100%;
  padding: 15px 22px;
  font-size: 1rem;
  white-space: nowrap;
}
.hero-sample-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 22px;
}
.hero-sample-link:hover { color: var(--primary-dark); text-decoration: underline; }
.hero-sample-link svg { color: var(--accent-dark); }

.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .83rem;
  color: var(--muted);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-trust-item svg { color: var(--green); }

/* Gradient "stage" behind the hero dashboard (Semrush-style floating product) */
.hero-visual {
  position: relative;
  border-radius: 28px;
  padding: 34px 32px;
  background:
    radial-gradient(120% 120% at 100% 0%, #ede9fe 0%, rgba(237,233,254,0) 55%),
    linear-gradient(150deg, #eef2ff 0%, #f0fdfa 100%);
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0; border-radius: 28px;
  background: radial-gradient(rgba(99,102,241,.10) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .55; pointer-events: none;
}
/* Floating accent chip overlapping the stage */
.hero-float {
  position: absolute;
  left: -20px; bottom: 30px;
  z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: var(--shadow-lg);
}
.hero-float-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--green-bg); color: var(--green); flex-shrink: 0; }
.hero-float-txt b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.15; }
.hero-float-txt span { font-size: .72rem; color: var(--muted); }

/* Hero mockup card */
.hero-mockup {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 50px -12px rgba(30,41,59,.28), 0 8px 16px -8px rgba(30,41,59,.18);
}
.mockup-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 16px;
}
.mockup-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.mockup-gauge {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--green) 338deg, var(--border) 0deg);
  display: flex; align-items: center; justify-content: center;
}
.mockup-gauge-inner {
  width: 62px; height: 62px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mockup-gauge-inner .val { font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--green); }
.mockup-gauge-inner .of  { font-size: .65rem; color: var(--muted); }
.mockup-score-info { flex: 1; min-width: 0; }
.mockup-score-info .headline { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.mockup-score-info .sub { font-size: .8rem; color: var(--muted); }
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mockup-stat { text-align: center; }
.mockup-stat .num { font-size: 1.2rem; font-weight: 800; display: block; }
.mockup-stat .lbl { font-size: .7rem; color: var(--muted); }
.mockup-priorities { display: flex; flex-direction: column; gap: 8px; }
.mockup-priority-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: .8rem;
}
.mockup-priority-row .mp-label { color: var(--ink-secondary); font-weight: 500; }
.mockup-priority-row .mp-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.mp-badge.orange { background: var(--orange-bg); color: var(--orange); }
.mp-badge.red    { background: var(--red-bg);    color: var(--red); }

/* Section layout */
.section { padding: 72px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 12px; }
.section-header p   { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* "Issue → fix" mini card used in showcase row 2 */
.fixcard-problem {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--red-border); background: var(--red-bg);
  border-radius: 10px; margin-bottom: 6px;
}
.fixcard-problem .fc-title { font-weight: 600; font-size: .92rem; color: var(--ink); }
.fc-tags { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.fc-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .64rem; font-weight: 700; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 99px; padding: 2px 7px; white-space: nowrap; }
.fixcard-evidence { font-size: .78rem; color: var(--muted); margin: 0 2px 8px; }
.fixcard-arrow { display: flex; justify-content: center; color: var(--muted); margin: 4px 0; }
.fixcard-fix { border: 1px solid var(--green-border); background: var(--green-bg); border-radius: 10px; padding: 14px; }
.fixcard-fix .fc-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .82rem; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.fc-role { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .64rem; font-weight: 700; color: var(--primary); background: var(--primary-100); border-radius: 99px; padding: 2px 8px; }
.fixcard-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fixcard-steps li { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--ink-secondary); }
.fixcard-steps svg { flex-shrink: 0; margin-top: 1px; color: var(--green); }
.fixcard-url { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 99px; font-size: .76rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }

/* ── Solutions carousel (Semrush-style horizontal cards) ─────────────────── */
.solutions-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 38px; text-align: left; }
.solutions-head-text { max-width: 640px; }
.solutions-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); margin-bottom: 12px; }
.solutions-head h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 10px; }
.solutions-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.solutions-arrows { display: flex; gap: 12px; flex-shrink: 0; }
.sol-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.sol-arrow:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.sol-arrow:active { transform: scale(.94); }

.solutions-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.solutions-track::-webkit-scrollbar { display: none; }

.sol-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(290px, 46%, 540px);
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 34px 34px 0;
  min-height: 500px;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, #eef2ff, #f0fdfa);
}
.sol-tint-a { background: linear-gradient(135deg, #eef2ff, #faf5ff); }
.sol-tint-b { background: linear-gradient(135deg, #f0fdfa, #ecfeff); }
.sol-tint-c { background: linear-gradient(135deg, #fff7ed, #fffbeb); }
.sol-tint-d { background: linear-gradient(135deg, #faf5ff, #fdf2f8); }
.sol-tint-e { background: linear-gradient(135deg, #ecfdf5, #eff6ff); }
.sol-card::after { content: ''; position: absolute; right: -8%; top: 6%; width: 55%; height: 78%; background: repeating-linear-gradient(45deg, rgba(99,102,241,.09) 0 1.5px, transparent 1.5px 10px); pointer-events: none; }
.sol-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; font-size: .85rem; font-weight: 800; color: var(--accent-dark); background: rgba(255,255,255,.7); border: 1px solid var(--accent-200); margin-bottom: 14px; position: relative; z-index: 1; }
.sol-card h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; position: relative; z-index: 1; }
.sol-card h3 .soon { vertical-align: middle; }
.sol-card > p { color: var(--ink-secondary); font-size: .95rem; line-height: 1.55; margin: 0 0 22px; max-width: 350px; position: relative; z-index: 1; }
.sol-visual { margin-top: auto; background: var(--card); border-radius: 16px 16px 0 0; padding: 18px; box-shadow: 0 -1px 0 var(--border), 0 -18px 40px -20px rgba(30,41,59,.22); position: relative; z-index: 1; }

/* Action-plan list (card 03) */
.sol-plan { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sol-plan li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg); border-radius: 9px; font-size: .82rem; }
.sol-plan .sp-label { color: var(--ink-secondary); font-weight: 500; flex: 1; min-width: 0; }
.sol-plan .sp-role { font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-100); border-radius: 99px; padding: 2px 8px; flex-shrink: 0; }
.mp-badge.gray { background: #f1f5f9; color: var(--muted); }

/* White-label preview (card 04) */
.sol-wl-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.sol-wl-logo { display: flex; align-items: center; justify-content: center; text-align: center; width: 48px; height: 48px; border-radius: 10px; border: 1.5px dashed var(--border); font-size: .6rem; font-weight: 700; color: var(--muted); line-height: 1.1; flex-shrink: 0; }
.sol-wl-meta { min-width: 0; }
.sol-wl-t { font-weight: 700; font-size: .95rem; }
.sol-wl-s { font-size: .76rem; color: var(--muted); }
.sol-wl-swatches { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.sol-wl-swatches span:not(.sol-wl-cap) { width: 20px; height: 20px; border-radius: 6px; }
.sol-wl-cap { font-size: .74rem; color: var(--muted); margin-left: 4px; }

/* Before / after re-audit (card 05) */
.sol-ba { display: flex; align-items: center; gap: 16px; padding: 6px 0 16px; }
.sol-ba-col { display: flex; flex-direction: column; align-items: center; }
.sol-ba-num { font-size: 2rem; font-weight: 800; color: var(--muted); line-height: 1; letter-spacing: -.02em; }
.sol-ba-num.green { color: var(--green); }
.sol-ba-lbl { font-size: .7rem; color: var(--muted); margin-top: 4px; }
.sol-ba-arrow { color: var(--green); flex-shrink: 0; }
.sol-ba-delta { margin-left: auto; font-size: .82rem; font-weight: 800; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 99px; padding: 4px 12px; }

@media (max-width: 700px) {
  .solutions-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sol-card { flex-basis: 86%; min-height: 460px; padding: 28px 28px 0; }
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(37,99,235,.35);
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p  { font-size: .88rem; color: var(--muted); margin: 0; }

/* Dedicated /pricing page hero + guarantee band */
.pricing-hero {
  text-align: center;
  padding: 64px 24px 4px;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--primary-50) 0%, rgba(239,246,255,0) 70%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 60%);
}
.pricing-hero .solutions-eyebrow { margin-bottom: 14px; }
.pricing-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 14px; }
.pricing-hero p { color: var(--ink-secondary); font-size: 1.12rem; line-height: 1.6; max-width: 580px; margin: 0 auto; }
.pricing-guarantee {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  margin: 28px auto 0; max-width: 760px;
  padding: 16px 22px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: .9rem; color: var(--ink-secondary);
}
.pricing-guarantee .pg-item { display: inline-flex; align-items: center; gap: 8px; }
.pricing-guarantee .pg-item svg { color: var(--green); flex-shrink: 0; }
.pricing-guarantee .pg-sep { width: 1px; height: 20px; background: var(--border); }
@media (max-width: 560px) { .pricing-guarantee .pg-sep { display: none; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.price-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15), var(--shadow-md);
  position: relative;
}
.price-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #3d2600;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1rem; color: var(--ink-secondary); margin-bottom: 6px; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 16px; line-height: 1; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; text-align: left; font-size: .88rem; color: var(--muted); margin: 0 0 20px; flex: 1; }
.price-card li { padding: 5px 0 5px 22px; position: relative; }
.price-card li::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color .15s;
}
details.faq-item[open] { border-color: var(--primary); }
details.faq-item summary {
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { margin: 10px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  margin: 72px 0;
}
.cta-banner h2 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.cta-banner p   { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 28px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.cta-banner .btn-primary:hover { background: var(--primary-50); }
.cta-checks { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cta-check { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.9); }
.cta-check svg { color: #fff; }

/* ─── Trusted by strip ──────────────────────────────────────────────────── */
/* AI / search proof bar — honest "be found on" wordmarks, greyscale */
.aiproof { padding: 40px 0 40px; background: #fff; border-top: 1px solid var(--border-light); overflow: hidden; }
.aiproof-label { text-align: center; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 28px; }
/* Continuous horizontal marquee of engine wordmarks (Semrush-style logo strip) */
.aiproof-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.aiproof-track { display: flex; width: max-content; animation: aiproof-scroll 34s linear infinite; }
.aiproof-marquee:hover .aiproof-track { animation-play-state: paused; }
.aiproof-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.aiproof-mark { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
@keyframes aiproof-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .aiproof-track { animation: none; justify-content: center; width: 100%; flex-wrap: wrap; gap: 16px 40px; }
  .aiproof-group { padding-right: 0; }
  .aiproof-group[aria-hidden="true"] { display: none; }
}

.trust-strip { padding: 46px 0; background: #0f172a; border: none; }
.trust-strip-title { text-align: center; font-size: .8rem; color: rgba(255,255,255,.55); margin: 0 0 18px; font-weight: 500; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.trust-logo {
  font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  color: var(--muted); opacity: .5; white-space: nowrap;
  transition: opacity .15s;
}
.trust-logo:hover { opacity: .85; }
.trust-metrics { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; max-width: 900px; margin: 0 auto; gap: 28px 0; }
.trust-metric { text-align: center; padding: 0 18px; }
.trust-metric-num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1.05; letter-spacing: -.02em; }
.trust-metric-lbl { display: block; font-size: .82rem; color: rgba(255,255,255,.62); margin-top: 6px; }
/* Separator elements dropped — the grid handles spacing cleanly at every width. */
.trust-metric-sep { display: none; }
@media (max-width: 720px) { .trust-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .trust-metrics { grid-template-columns: 1fr; } }

/* ─── Report preview teaser (blurred section cards above paywall) ─────────── */
.rp-strip { margin: 0 0 20px; }
.rp-strip-label { text-align: center; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.rp-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.rp-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: relative; }
.rp-card-hd { font-size: .7rem; font-weight: 700; color: var(--ink-secondary); padding: 8px 10px 6px; border-bottom: 1px solid var(--border); background: var(--bg); letter-spacing: .02em; }
.rp-card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; filter: blur(3px); user-select: none; pointer-events: none; }
.rp-l { height: 7px; border-radius: 4px; background: var(--border); }
.rp-l.l50 { width: 50%; } .rp-l.l55 { width: 55%; } .rp-l.l60 { width: 60%; }
.rp-l.l65 { width: 65%; } .rp-l.l70 { width: 70%; } .rp-l.l75 { width: 75%; }
.rp-l.l80 { width: 80%; } .rp-l.l85 { width: 85%; } .rp-l.l90 { width: 90%; }
.rp-l.rp-chip { height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 20%, transparent); }
.rp-l.rp-check { padding-left: 12px; position: relative; }
.rp-l.rp-check::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rp-l.rp-week { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--orange) 25%, transparent); }
.rp-strip-lock { text-align: center; font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) { .rp-strip-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Comparison table (vs traditional SEO tools) ────────────────────────── */
.cmp-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr; align-items: center; border-bottom: 1px solid var(--border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-feat, .cmp-them, .cmp-us { padding: 14px 18px; font-size: .9rem; }
.cmp-feat { font-weight: 600; color: var(--ink); }
.cmp-them { color: var(--muted); }
.cmp-us { background: color-mix(in srgb, var(--primary) 6%, transparent); font-weight: 600; color: var(--ink); border-left: 1px solid var(--border); }
.cmp-head .cmp-feat, .cmp-head .cmp-them, .cmp-head .cmp-us { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.cmp-head .cmp-them { font-weight: 700; color: var(--ink-secondary); }
.cmp-head .cmp-us { color: var(--primary); font-weight: 800; }
.cmp-yes { color: var(--green); font-weight: 800; margin-right: 5px; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-head .cmp-feat { display: none; }
  .cmp-feat { grid-column: 1 / -1; padding-bottom: 2px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .cmp-head .cmp-them, .cmp-head .cmp-us { padding-top: 14px; }
}

/* ─── Hero mockup: dashboard chrome ─────────────────────────────────────── */
.mk-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.mk-brand { font-weight: 800; font-size: .9rem; letter-spacing: -.02em; color: var(--ink); }
.mk-brand span { color: var(--primary); }
.mk-actions { display: flex; gap: 8px; }
.mk-chip { font-size: .68rem; font-weight: 600; padding: 4px 10px; border-radius: 7px; background: var(--primary); color: #fff; }
.mk-chip.ghost { background: var(--bg); color: var(--ink-secondary); border: 1px solid var(--border); }
.mk-body { display: grid; grid-template-columns: 116px 1fr; gap: 18px; }
.mk-side { display: flex; flex-direction: column; gap: 2px; }
.mk-nav {
  font-size: .72rem; font-weight: 500; color: var(--muted);
  padding: 6px 9px; border-radius: 7px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.mk-nav.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.mk-pill { background: var(--red-bg); color: var(--red); font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.mk-main { min-width: 0; }
.mk-main .mockup-score-row { gap: 14px; }
.mk-priority-summary { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }
.mk-pri-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.mk-pri-num { font-weight: 800; font-size: .9rem; min-width: 16px; text-align: right; }
.mockup-stats.mk-stats-4 { grid-template-columns: repeat(4, 1fr); }
.mockup-stats.mk-stats-4 .mockup-stat .num { font-size: 1.05rem; }

/* Hero mock — denser bottom row: priorities + mini bar chart side by side */
.mk-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.mk-chart { display: flex; flex-direction: column; }
.mk-chart-head { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.mk-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mk-bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mk-bar::before { content: ''; width: 100%; height: var(--h, 40%); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #60a5fa 0%, #bfdbfe 100%); }
.mk-bar.hi::before { background: linear-gradient(180deg, var(--accent) 0%, var(--accent-200) 100%); }
.mk-bar-lbl { font-size: .58rem; color: var(--muted); margin-top: 6px; }

/* ─── How it works: 5-step row with connector line + icons ──────────────── */
.steps-grid.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps-grid.steps-5 .step-card {
  background: transparent; border: none; box-shadow: none;
  padding: 0 10px; gap: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.steps-grid.steps-5 .step-num {
  order: -1; margin: 0 0 18px; position: relative; z-index: 1;
}
.steps-grid.steps-5 .step-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.steps-grid.steps-5 .step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.steps-grid.steps-5 .step-card p { font-size: .85rem; }
/* connector line passes behind the row of numbered circles */
.steps-grid.steps-5::before {
  content: ''; position: absolute; top: 18px; left: 10%; right: 10%;
  height: 2px; background: var(--border); z-index: 0;
}

/* ─── Footer extras ─────────────────────────────────────────────────────── */
.footer-made { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.footer-heart { color: var(--red); }

/* ─── Landing responsive (steps, mockup) ────────────────────────────────── */
@media (max-width: 860px) {
  .steps-grid.steps-5 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .steps-grid.steps-5::before { display: none; }
}
@media (max-width: 520px) {
  .steps-grid.steps-5 { grid-template-columns: 1fr; }
  .cta-checks { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FREE SCORE PAGE (dashboard)
═══════════════════════════════════════════════════════════════════════════ */

.score-page { padding: 36px 0 80px; }

/* Score hero card */
.score-hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* Subtle tint behind the gauge keyed to the score band */
.score-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.score-hero-card.level-bg-excellent::before { background: linear-gradient(90deg, #22c55e, var(--green)); }
.score-hero-card.level-bg-good::before     { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.score-hero-card.level-bg-average::before  { background: var(--orange); }
.score-hero-card.level-bg-weak::before,
.score-hero-card.level-bg-critical::before { background: var(--red); }
.score-hero-main {
  display: flex;
  gap: 36px;
  align-items: center;
}
/* Standalone tiles under the hero card, not a strip inside it. */
.score-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: -12px 0 32px;
}
.score-stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 12px;
}

/* Hero: what the audit found in the site's favour. Each line is backed by a
   real pillar threshold — see positiveSignals in free-score.ejs. */
.score-positives { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.score-positives li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .9rem; font-weight: 500; color: var(--ink-secondary);
}
.score-positives svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* Priority tip: the model-exact recovery projection, given its own callout so
   it reads as guidance rather than as another metric. */
.score-tip {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 18px; padding: 14px 16px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
}
.score-tip-ico { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.score-tip-title { margin: 0 0 2px; font-size: .84rem; font-weight: 700; color: var(--primary-dark); }
.score-tip-text { margin: 0; font-size: .84rem; color: var(--ink-secondary); line-height: 1.5; }
.score-stat-num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--ink); }
.score-stat-num.is-alert { color: var(--orange); }
.score-stat-num.is-ok    { color: var(--green); }
.score-stat-lbl { font-size: .76rem; color: var(--muted); font-weight: 500; }
/* Severity rollup tiles — tinted by gravity; green when the bucket is clear. */
.score-stat.sev-high   { background: var(--red-bg); }
.score-stat.sev-high   .score-stat-num { color: var(--red); }
.score-stat.sev-medium { background: var(--orange-bg); }
.score-stat.sev-medium .score-stat-num { color: var(--orange); }
.score-stat.sev-low    { background: var(--primary-50); }
.score-stat.sev-low    .score-stat-num { color: var(--primary); }
.score-stat.sev-clear  { background: var(--green-bg); }
.score-stat.sev-clear  .score-stat-num { color: var(--green); }
/* The critical/high count is the tile that decides whether the reader keeps
   reading, so it carries the weight: a wider column, a bigger number and a
   solid severity border instead of the shared hairline. The other three stay
   equal — ranking them all would just be noise. */
.score-stats { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.score-stat.sev-lead { border-width: 2px; }
.score-stat.sev-lead.sev-high { border-color: var(--red); }
.score-stat.sev-lead.sev-clear { border-color: var(--green); }
.score-stat.sev-lead .score-stat-num { font-size: 2.4rem; }
.score-stat.sev-lead .score-stat-lbl { font-weight: 600; color: var(--ink-secondary); }

@media (max-width: 560px) {
  .score-stats { grid-template-columns: repeat(2, 1fr); }
  /* Full width on a phone: at 2 columns a 1.5fr lead tile would only be ~30px
     wider than its neighbour, which reads as a misalignment rather than a rank. */
  .score-stat.sev-lead { grid-column: 1 / -1; }
}

/* ── Account: site cards ────────────────────────────────────────────────── */
.site-cards { display: flex; flex-direction: column; gap: 12px; }
.site-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.site-ring {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.site-ring-inner {
  width: 42px; height: 42px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.site-card-main { flex: 1; min-width: 0; }
.site-card-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.site-card-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.site-delta { margin-left: 8px; font-weight: 600; }
.site-delta.up   { color: var(--green); }
.site-delta.down { color: var(--red); }
.site-delta.flat { color: var(--muted); font-weight: 500; }
.site-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pill-high   { background: var(--red-bg);    color: var(--red); }
.pill-medium { background: var(--orange-bg); color: var(--orange); }
.pill-clear  { background: var(--green-bg);  color: var(--green); }
.site-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.site-btns { display: flex; gap: 6px; }
.site-card:hover { box-shadow: var(--shadow-md); }
.site-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-card-meta .meta-dot { color: var(--border); }
.site-card-meta .meta-cap { display: inline-block; }
.site-card-meta .meta-cap::first-letter { text-transform: uppercase; }
.site-card-meta .site-delta { margin-left: 4px; }

/* Per-card kebab menu */
.site-menu { position: relative; flex-shrink: 0; align-self: flex-start; }
.site-kebab {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.site-kebab svg { width: 18px; height: 18px; }
.site-kebab:hover { background: var(--border-light); color: var(--ink); }
.site-menu-list {
  position: absolute; top: 38px; inset-inline-end: 0; z-index: 20;
  min-width: 160px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px;
}
.site-menu-list a {
  display: block; padding: 8px 12px; border-radius: 7px; font-size: .88rem;
  color: var(--ink-secondary); text-decoration: none;
}
.site-menu-list a:hover { background: var(--primary-50); color: var(--primary); }

@media (max-width: 600px) {
  .site-card { flex-wrap: wrap; }
  .site-card-actions { align-items: flex-start; width: 100%; }
  .site-menu { position: absolute; top: 14px; inset-inline-end: 14px; }
  .site-card { position: relative; }
  .site-card-title { padding-inline-end: 32px; }
}

/* ── Account dashboard ───────────────────────────────────────────── */
.acct-wrap { max-width: 1000px; margin: 40px auto; }
.acct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.acct-title-wrap { display: flex; align-items: flex-start; gap: 14px; }
.acct-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.acct-icon svg { width: 24px; height: 24px; }
.acct-h1 { margin: 0; font-size: 2.1rem; line-height: 1.1; }
.acct-sub { margin: 6px 0 0; font-size: .95rem; }
.acct-logout { display: inline-flex; align-items: center; gap: 7px; }
.acct-logout svg { width: 16px; height: 16px; }

.acct-empty { text-align: center; padding: 3rem 0; }
.acct-empty .btn { margin-top: 10px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.stat-top { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue   { background: var(--primary-50); color: var(--primary); }
.stat-icon.green  { background: var(--green-bg);   color: var(--green); }
.stat-icon.orange { background: var(--orange-bg);  color: var(--orange); }
.stat-icon.teal   { background: #ecfdf5;           color: #0d9488; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.stat-value.stat-score { color: var(--green); }
.stat-sub { font-size: .76rem; color: var(--muted); margin-top: 12px; }

.acct-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.acct-search { position: relative; flex: 1; min-width: 220px; }
.acct-search svg {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.acct-search input {
  width: 100%; padding: 11px 14px 11px 42px; font-size: .92rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink);
}
.acct-search input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
[dir="rtl"] .acct-search input { padding: 11px 42px 11px 14px; }
.acct-sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.acct-sort-lbl { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.acct-sort select {
  padding: 10px 34px 10px 14px; font-size: .88rem; border: 1px solid var(--border);
  border-radius: var(--radius); background-color: var(--card); background-position: right 11px center;
  color: var(--ink-secondary); cursor: pointer;
}
.acct-sort select:hover { border-color: var(--primary); }

.acct-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.acct-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-tab {
  padding: 6px 14px; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); border-radius: 99px; background: var(--card); color: var(--muted);
  transition: all .15s;
}
.acct-tab:hover { border-color: var(--primary); color: var(--primary); }
.acct-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.acct-clear {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: var(--muted); padding: 4px;
}
.acct-clear svg { width: 14px; height: 14px; }
.acct-clear:hover { color: var(--primary); }
.acct-clear[hidden] { display: none; }

.acct-nomatch { text-align: center; padding: 2.5rem 0; }
.acct-foot-cta { margin-top: 28px; }
.acct-foot-cta .btn { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 880px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .acct-h1 { font-size: 1.6rem; }
}

.score-gauge {
  width: 160px; height: 160px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.score-gauge .inner {
  width: 122px; height: 122px; background: var(--card); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-gauge .value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.score-gauge .of    { color: var(--muted); font-size: .82rem; }
.score-hero-info {}
/* The domain is the headline; the score itself is the gauge beside it. */
.score-hero-eyebrow {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  margin: 0 0 4px;
}
.score-headline {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  overflow-wrap: anywhere; /* long domains must not push the card open */
}
/* Did the audit measure everything it wanted to? Green when every pillar has
   real data, amber when one had to fall back — never decorative. */
.score-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  padding: 4px 11px; border-radius: 99px;
  white-space: nowrap;
}
.score-status.is-complete { background: var(--green-bg); color: var(--green); }
.score-status.is-partial  { background: var(--orange-bg); color: var(--orange); }
.score-status svg { flex-shrink: 0; }
.score-gauge-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
/* Verdict word directly under the gauge, where the eye lands after the number. */
.score-gauge-verdict {
  margin: 10px 0 0; text-align: center;
  font-size: .95rem; font-weight: 700;
}
.score-subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 18px; max-width: 460px; line-height: 1.5; }
/* The weak pillar, named. Amber rather than red: it is the thing to work on,
   not a failure — the score above it may well be a good one. */
.score-brake {
  display: flex; align-items: flex-start; gap: 9px;
  margin: -6px 0 16px; max-width: 460px;
  font-size: .89rem; line-height: 1.5; color: var(--ink-secondary);
}
.score-brake svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.score-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--muted);
}
.score-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.score-meta-item svg { flex-shrink: 0; }
.score-meta-item a { color: var(--primary); font-weight: 500; text-decoration: none; }

/* Section title */
.score-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.score-section-title .see-all {
  font-size: .82rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

/* Priority cards */
/* auto-FIT, not auto-fill: auto-fill keeps empty tracks, so a row holding two
   cards in a three-column grid left a gaping third column. auto-fit collapses
   the empty track and the cards stretch to fill the row. */
.priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.priority-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-top-width: 3px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.priority-card.accent-critical { border-top-color: var(--red); }
.priority-card.accent-medium   { border-top-color: var(--orange); }
.priority-card.accent-low      { border-top-color: var(--muted); }
.priority-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.priority-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.priority-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.priority-icon.critical, .priority-icon.high   { background: var(--red-bg);    color: var(--red); }
.priority-icon.medium                           { background: var(--orange-bg); color: var(--orange); }
.priority-icon.low                              { background: var(--border-light); color: var(--muted); }
.priority-card h3 { font-size: .93rem; margin-bottom: 5px; }
.priority-card .proof { font-size: .82rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.priority-stats {
  display: flex;
  gap: 14px;
  font-size: .78rem;
}
.priority-stat { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.priority-stat strong { color: var(--ink-secondary); font-weight: 600; }

/* Locked issue cards: same anatomy as priority cards, but the body is a
   blurred i18n placeholder (never the real finding — nothing to de-blur). */
.locked-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.locked-card {
  display: block;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-top-width: 3px;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.locked-card.accent-critical { border-top-color: var(--red); }
.locked-card.accent-medium   { border-top-color: var(--orange); }
.locked-card.accent-low      { border-top-color: var(--muted); }
.locked-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.locked-card:hover .locked-unlock-hint { color: var(--primary); }
.locked-title { font-size: .93rem; margin: 0 0 5px; }
/* The proof line starts readable and dissolves: only the tail span is blurred
   ("a part of the line" teaser — the full detail stays in the paid report). */
.locked-desc { font-size: .82rem; color: var(--ink-secondary); margin: 0 0 12px; line-height: 1.5; }
.locked-desc-tail {
  filter: blur(4px);
  user-select: none; -webkit-user-select: none;
  pointer-events: none;
}
.locked-unlock-hint {
  display: flex; align-items: center; gap: 5px;
  margin-left: auto;
  color: var(--muted); font-weight: 600;
  transition: color .15s;
}
.locked-count-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700;
  color: var(--muted);
  background: var(--border-light);
  border-radius: 99px; padding: 4px 11px;
}
.locked-more { margin: 14px 0 0; text-align: center; font-size: .85rem; }
.locked-more a { color: var(--primary); font-weight: 600; text-decoration: none; }
.locked-more a:hover { text-decoration: underline; }
html[dir="rtl"] .locked-unlock-hint { margin-left: 0; margin-right: auto; }

/* Two-column panels (quick wins + CTA) */
/* Growth opportunities — the cheap points, given card weight so they read as
   actionable rather than as a footnote under the problems above. */
.growth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.growth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.growth-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.growth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.growth-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-bg); color: var(--green);
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 99px;
}
.growth-count { font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.growth-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 6px; line-height: 1.35; }
.growth-card .proof { font-size: .84rem; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }

/* Shared "go to the paywall" link at the foot of a problem / opportunity card.
   margin-top:auto keeps it on the baseline whatever the copy above it does. */
.card-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-50); color: var(--primary);
  border-radius: var(--radius); padding: 7px 13px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.card-cta:hover { background: var(--primary); color: #fff; }

/* Health breakdown — one card per pillar */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.pillar-icon.excellent, .pillar-icon.good { background: var(--green-bg);    color: var(--green); }
.pillar-icon.average                      { background: var(--orange-bg);   color: var(--orange); }
.pillar-icon.weak, .pillar-icon.critical  { background: var(--red-bg);      color: var(--red); }
.pillar-name  { font-weight: 600; font-size: .88rem; margin-bottom: 4px; color: var(--ink); }

/* Half-circle gauge. The arc is one path drawn twice — track then fill — with
   the fill's dash offset carrying the score, so there is no second geometry to
   keep in sync with the value. */
.pillar-gauge { position: relative; width: 116px; margin: 0 auto 2px; }
.pillar-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.pillar-gauge path { fill: none; stroke-width: 7; stroke-linecap: round; }
.pg-track { stroke: var(--border-light); }
.pg-fill  { stroke: var(--green); transition: stroke-dashoffset .8s ease; }
.pg-fill.good      { stroke: #22c55e; }
.pg-fill.average   { stroke: var(--orange); }
.pg-fill.weak,
.pg-fill.critical  { stroke: var(--red); }
/* Sits in the mouth of the arc; the arc's own baseline is at y=40 of 46. */
.pillar-gauge-val {
  position: absolute; left: 0; right: 0; bottom: 2px;
  font-weight: 800; font-size: 1.3rem; line-height: 1;
}
.pillar-score-of { font-size: .72rem; color: var(--muted); font-weight: 600; }
.pillar-level { display: block; margin-top: 8px; font-size: .74rem; color: var(--muted); font-weight: 600; }

/* Competitive gap — the one thing a good score cannot settle. Neutral card, not
   an alert: being behind on coverage is a fact to act on, not a fault. */
.gap-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.gap-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 700; color: var(--ink-secondary);
  margin-bottom: 12px;
}
.gap-head svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.gap-lead { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.gap-ratio { color: var(--orange); font-weight: 700; }
.gap-line { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: var(--ink-secondary); }
.gap-missing { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; color: var(--ink-secondary); }
.gap-peers { margin: 0 0 8px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.gap-note { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; font-style: italic; }

/* Offer banner — the mid-page paywall, sitting between the spotlight finding
   and the rest of the issues. Red accent because it is framed as an unresolved
   opportunity, not as a celebration. */
.offer-banner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--red-bg) 0%, var(--card) 55%);
  border: 1px solid var(--red-border);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.offer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.offer-flag {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 99px;
}
.offer-launch {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-bg); color: var(--orange);
  font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 99px;
}
.offer-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.offer-sub { margin: 0 0 16px; color: var(--ink-secondary); font-size: .92rem; line-height: 1.55; }
.offer-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offer-benefits li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .89rem; font-weight: 500; color: var(--ink-secondary);
}
.offer-benefits svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
/* The price block inside the banner is a card of its own, lifted off the tint. */
.up-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
}
/* The banner already carries the launch badge in its header; repeating it on the
   price card reads as two different offers. The saving line carries it there. */
.up-banner .promo-flag { display: none; }
/* The paywall CTAs are this page's primary touch targets, and the shared .btn
   padding leaves them at 37px — under the 44px minimum, which bites hardest on
   a phone where they are hit with a thumb. Scoped to the paywall so the rest of
   the site keeps its button rhythm. */
.unlock-price-col .btn { min-height: 44px; }
.unlock-price-saving {
  font-size: .78rem; font-weight: 700; color: var(--green);
  margin-bottom: 10px;
}
.unlock-guarantee { font-size: .75rem; text-align: center; margin: 6px 0 0; color: var(--green); font-weight: 600; }
/* The final CTA has the trust row right under it, which already states the
   guarantee — repeating it inside the price card reads as two guarantees. */
.up-final .unlock-guarantee { display: none; }

/* Payment reassurance under the final CTA. */
.pay-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin-top: 18px;
}
.pay-trust-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
}
.pay-trust-item svg { color: var(--green); flex-shrink: 0; }

@media (max-width: 720px) {
  .offer-banner { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
}

/* Unlock CTA */
.unlock-cta {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.unlock-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 18px;
}
.unlock-bullets li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .88rem; font-weight: 500; color: var(--ink-secondary);
  text-align: start;
}
.unlock-bullets svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.unlock-price-col { text-align: center; min-width: 180px; }
.unlock-price-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.unlock-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1;
}
.unlock-price-amount .cents { font-size: 1.4rem; vertical-align: super; }
/* Promo dressing: badge above the amount + struck-through regular price below.
   Rendered only while the promotion is the live selection (pricing.reportRegular). */
.promo-flag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent-dark, #b45309);
  background: var(--orange-bg, #fff7ed);
  border: 1px solid var(--orange-border, #fed7aa);
  border-radius: 99px;
  padding: 3px 11px;
  margin-bottom: 6px;
}
.unlock-price-was { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.unlock-price-was s { text-decoration-thickness: 1.5px; }
.price-card .price-was { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.unlock-secure { font-size: .75rem; color: var(--muted); margin-top: 8px; }
.unlock-cta .btn-primary { width: 100%; margin-top: 16px; padding: 14px; font-size: 1rem; }

/* Processing page compat */
.score-hero { text-align: center; padding: 48px 0 24px; }
.urgency {
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 12px 0;
  text-align: left;
}
.urgency.sev-medium { border-color: var(--orange); }
.urgency.sev-low    { border-color: var(--muted); }

/* ─── Tables (admin) ────────────────────────────────────────────────────── */
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .9rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { background: var(--bg); font-size: .78rem; text-transform: uppercase; color: var(--muted); }
.status-pill { font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.st-completed, .st-ready, .st-paid, .st-scored, .st-sent { background: var(--green-bg);   color: var(--green); }
.st-pending, .st-crawling, .st-generating, .st-queued,
.st-running, .st-llm_running, .st-rendering               { background: var(--primary-50); color: var(--primary); }
.st-crawl_failed, .st-generation_failed, .st-failed,
.st-llm_failed, .st-disabled                               { background: var(--red-bg);     color: var(--red); }
.st-active   { background: var(--green-bg); color: var(--green); }
.st-past_due, .st-incomplete { background: #fffbeb; color: #b45309; }
.st-canceled { background: var(--red-bg); color: var(--red); }
.kpi-card { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; min-width: 110px; }
.kpi-card .kpi-val { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.kpi-card .kpi-lbl { font-size: .72rem; text-transform: uppercase; color: var(--muted); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner          { grid-template-columns: 1fr; }
  .hero-visual         { display: none; }
  .hero-text h1        { font-size: 2rem; }
  .hero-audit          { flex-direction: column; max-width: 440px; }
  .hero-audit-btn      { width: 100%; }
  .score-hero-main     { flex-direction: column; text-align: center; gap: 20px; }
  .score-gauge         { margin: 0 auto; }
  .score-meta          { justify-content: center; }
  /* The stacked hero centres its text, but a tick in the margin with centred
     copy beside it reads as broken. `start`, not `left`: these strings are also
     rendered in Arabic, where the reading edge is the right one. */
  .score-positives li,
  .score-tip           { text-align: start; }
  .unlock-cta          { grid-template-columns: 1fr; text-align: center; }
  .unlock-price-col    { min-width: 0; }
  .faq-grid            { grid-template-columns: 1fr; }
  .footer-top          { flex-direction: column; gap: 28px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 20px 48px; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
}

/* Responsive nav labels: short variants kick in on mobile so logo + auth link
   + CTA all fit at ~360px. */
.lbl-short { display: none; }

/* Medium desktop: hide anchor-only links (Fonctionnalités / Tarifs) so the
   nav fits on one line at container max-width 1080px with French/Arabic labels.
   1280px covers viewport sizes where logo + all 5 text links + lang + CTA
   would still overflow even though the container is only 1080px wide. */
@media (max-width: 1280px) {
  .nav-center .nav-anchor { display: none; }
}
/* Below ~960px the remaining centered links + the still-visible CTA no longer fit
   on one line, so drop the whole centered nav (links live in the footer). The CTA
   itself hides at the 820px mobile breakpoint below. */
@media (max-width: 960px) {
  .nav-center { display: none; }
}

/* Mobile nav: drop the PUBLIC text links (Sample report / Pricing — both in the
   footer) and swap long labels for short ones, so logo + authenticated link
   (My reports / Dashboard) + primary CTA never overflow at ~360px. */
@media (max-width: 820px) {
  .header-inner { padding: 12px 14px; gap: 10px; }
  .nav-actions { gap: 10px; }
  /* .nav-center already hidden ≤960px above. Hide the CTA here — on mobile the
     hero CTA is already prominent, and at ~360px logo + auth-link + lang + CTA
     overflows. */
  .nav-actions .btn { display: none; }
  .promo-bar-inner { padding: 7px 14px; font-size: .74rem; }
  .logo { font-size: 1rem; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  /* Compact the language switcher so logo + auth-link + lang fit at ~360px:
     drop the globe icon and tighten padding (the dropdown itself is unaffected). */
  .lang-switcher .lang-globe { display: none; }
  .lang-switcher select { font-size: .8rem; padding: 5px 22px 5px 10px; }
  html[dir="rtl"] .lang-switcher select { padding: 5px 10px 5px 22px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* Sticky header offset so in-page anchors (#pricing, #unlock) aren't hidden. */
[id] { scroll-margin-top: 80px; }

/* ── Auth split layout ──────────────────────────────────────────────────── */
.auth-page {
  /* Fill the viewport below the sticky header (~60px) so the card centers in
     the visible area; the footer flows below the fold. dvh tracks mobile
     browser chrome better than vh. */
  min-height: calc(100dvh - 60px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-form-col {
  padding: 48px 44px;
  background: var(--card);
}
.auth-visual-col {
  background: linear-gradient(145deg, var(--primary-50, #eff6ff) 0%, #e8f3ff 50%, #fff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50, #eff6ff);
  border: 1px solid var(--primary-100, #dbeafe);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.2;
}
.auth-subtitle {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.input-wrap {
  margin-bottom: 18px;
}
.input-wrap label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
/* The positioning context is the input row only (NOT the label), so the icon
   and eye-button center on the input rather than on the label+input block. */
.input-field {
  position: relative;
}
.input-field .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.input-field input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.input-field input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-50, #eff6ff);
}
.input-field .eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  display: flex;
  align-items: center;
}
.auth-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 16px;
}
.deco-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-100, #dbeafe);
  opacity: .45;
}
/* Auth-specific mockup (reuses hero-mockup structure) */
.auth-visual-col .hero-mockup {
  max-width: 280px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg, 18px);
}
/* Agency signup right column */
.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 280px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.auth-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink);
}
.auth-benefit-row svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.auth-price-display {
  text-align: center;
  margin-top: 24px;
}
.auth-price-display .price-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.auth-price-display .price-period {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Collapse the auth split at 820px — the same breakpoint that hides
   .hero-mockup — so the right column never renders empty on tablets. */
@media (max-width: 820px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual-col { display: none; }
  .auth-form-col { padding: 36px 28px; }
}

/* ── Agency signup redesign ─────────────────────────────────────────── */
/* Give the value column a touch more room so the white-label mockup breathes. */
.agency-card { max-width: 920px; grid-template-columns: 1fr 1.04fr; }
.agency-card .auth-title { line-height: 1.15; }

.agency-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* White-label report preview mockup */
.wl-mockup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wl-mockup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.wl-logo {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
}
.wl-brand { flex: 1; min-width: 0; }
.wl-brand-name { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.wl-dots { display: flex; gap: 4px; margin-top: 5px; }
.wl-dots span { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff inset; }
.wl-tag {
  font-size: .6rem; font-weight: 800; letter-spacing: .08em;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 6px;
}
.wl-mockup-body { display: flex; align-items: center; gap: 14px; padding: 16px; }
.wl-score { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.wl-ring { width: 62px; height: 62px; transform: rotate(-90deg); }
.wl-ring-bg { fill: none; stroke: var(--border); stroke-width: 3; }
.wl-ring-fg { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.wl-score-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: var(--green);
}
.wl-score-meta { flex: 1; min-width: 0; }
.wl-score-label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.wl-score-sub { font-size: .7rem; color: var(--muted); margin: 2px 0 8px; }
.wl-bars { display: flex; flex-direction: column; gap: 5px; }
.wl-bars span { height: 5px; border-radius: 3px; background: var(--primary-100); display: block; }
.wl-mockup-foot {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: .68rem; font-weight: 600; color: var(--muted);
}
.wl-mockup-foot svg { color: var(--green); }

/* Benefit ticks as soft chips */
.agency-visual .auth-benefits { max-width: none; gap: 11px; }
.agency-visual .auth-benefit-row { font-size: .88rem; align-items: center; gap: 9px; }
.benefit-tick {
  flex-shrink: 0;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}

/* Price with value framing */
.agency-visual .auth-price-display { margin-top: 4px; text-align: left; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.agency-visual .price-big { font-size: 2.3rem; }
.agency-visual .price-period { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-value { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* "Launching soon" state — replaces the bare red alert */
.soon-card {
  display: flex; gap: 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.soon-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-100);
  display: flex; align-items: center; justify-content: center;
}
.soon-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.soon-text { font-size: .88rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.5; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 820px) {
  /* On mobile the visual column is hidden, so surface the price up top via the
     subtitle/CTA; nothing extra needed, but keep the soon-card actions stacked. */
  .soon-actions .btn { flex: 1; text-align: center; }
}

/* ── Admin dashboard redesign ───────────────────────────────────────── */
.admin-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
.admin-page-header { margin-bottom: 20px; }
.admin-page-header h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.admin-page-header p  { color: var(--muted); margin: 0; font-size: .9rem; }

/* Tab navigation */
.admin-tabs-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.admin-tab:hover { background: var(--bg); color: var(--ink); }
.admin-tab.active { background: var(--primary); color: #fff; }
.admin-tab svg { flex-shrink: 0; }

/* KPI grid */
.kpi-grid2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.kpi-grid2-cost {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 360px;
  margin-bottom: 24px;
}

/* Acquisition funnel panel (admin) */
.acq-panel {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px;
}
.acq-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.acq-head h2 { font-size: 1.05rem; margin: 0; }
.acq-hint { font-size: .78rem; color: var(--muted); }
.acq-hint code { background: var(--bg); border-radius: 4px; padding: 1px 5px; font-size: .95em; }
.acq-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.acq-kpi { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; }
.acq-kpi-val { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.acq-kpi-val.warn { color: var(--orange); }
.acq-kpi-lbl { font-size: .82rem; font-weight: 600; color: var(--ink-secondary); margin-top: 2px; }
.acq-kpi-sub { font-size: .74rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.acq-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.acq-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--border);
}
.acq-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
.acq-table code { font-size: .95em; }
.acq-empty { color: var(--muted); text-align: center; padding: 14px; }
@media (max-width: 640px) { .acq-kpis { grid-template-columns: 1fr; } }
.kpi-card2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi-icon-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-circle.blue   { background: #dbeafe; color: #2563eb; }
.kpi-icon-circle.green  { background: #d1fae5; color: #059669; }
.kpi-icon-circle.orange { background: #ffedd5; color: #ea580c; }
.kpi-icon-circle.red    { background: #fee2e2; color: #dc2626; }
.kpi-icon-circle.purple { background: #ede9fe; color: #7c3aed; }
.kpi-icon-circle.teal   { background: #ccfbf1; color: #0d9488; }
.kpi-val2 { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; }
.kpi-val2.red { color: #dc2626; }
.kpi-lbl2 { font-size: .76rem; color: var(--muted); font-weight: 500; line-height: 1.3; }

/* Admin search bar */
.admin-search-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.admin-search-field {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.admin-search-field svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.admin-search-field input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg);
  box-sizing: border-box;
  color: var(--ink);
}
.admin-search-field input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-50);
  background: #fff;
}
.admin-status-select {
  padding: 9px 32px 9px 12px;
  background-position: right 10px center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  font-family: inherit;
  /* background-color, not the shorthand: `background:` would reset the
     chevron background-image inherited from the base `select` rule. */
  background-color: var(--bg);
  color: var(--ink);
  min-width: 145px;
}
.admin-status-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Score chip */
.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
  font-size: .88rem;
  border-radius: 8px;
  padding: 3px 10px;
  border: 1px solid var(--primary-100);
  min-width: 36px;
}

/* Admin table card wrapper */
.admin-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-table-card .data {
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-width: 720px;
}
.admin-table-scroll { overflow-x: auto; }

/* Domain cell */
.domain-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 200px;
  vertical-align: bottom;
}
.domain-link:hover { text-decoration: underline; }
.domain-link span,
.domain-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.domain-meta {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 200px;
}
.domain-date { font-size: .71rem; color: var(--muted); opacity: .65; margin-top: 2px; }
.cell-persona { font-size: .82rem; white-space: nowrap; }
.cell-error { font-size: .7rem; color: #dc2626; margin-top: 3px; line-height: 1.3; }
/* A report that reached the customer with external data missing. Amber, not red:
   it was delivered and is valid — incomplete is not the same as failed. */
.cell-degraded { font-size: .7rem; color: #b45309; margin-top: 3px; line-height: 1.3; white-space: nowrap; cursor: help; }
.admin-degraded-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
/* Post-action banner: a click that completed without doing what was asked. */
.admin-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: .84rem; line-height: 1.4; }
.cell-amount { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.row-test { opacity: .45; }

/* Actions cell */
.cell-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* Square icon-only action button */
.act-btn {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .12s, color .12s, border-color .12s;
}
.act-btn:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.act-btn svg { flex-shrink: 0; }

/* Language select + Report button form group */
.act-group {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  flex-shrink: 0;
}
.act-lang {
  height: 32px;
  font-size: .74rem;
  font-family: inherit;
  padding: 0 18px 0 6px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  /* background-color, not the shorthand (would wipe the base select chevron) */
  background-color: var(--bg);
  background-position: right 5px center;
  background-size: 11px;
  color: var(--ink);
  cursor: pointer;
}
.act-lang:focus { outline: none; border-color: var(--primary); }
.act-btn--joined { border-radius: 0 8px 8px 0; }

/* Kebab menu */
.kebab-wrap { position: relative; display: inline-block; }
.kebab-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  padding: 0;
  flex-shrink: 0;
}
.kebab-btn:hover { background: var(--bg); color: var(--ink); }
.kebab-menu {
  display: none;
  position: fixed;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  min-width: 168px;
  z-index: 200;
  padding: 4px;
}
.kebab-menu.open { display: block; }
.kebab-menu form { margin: 0; }
.kebab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .1s;
  box-sizing: border-box;
  line-height: 1;
}
.kebab-item:hover { background: var(--bg); }
.kebab-item--danger { color: #dc2626; }
.kebab-item--danger:hover { background: #fee2e2; color: #b91c1c; }
.kebab-separator { height: 1px; background: var(--border); margin: 4px 2px; }
.admin-table-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}
.admin-pagination { display: flex; gap: 4px; align-items: center; }
.admin-pg-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.admin-pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-pg-btn:disabled, .admin-pg-btn.disabled { opacity: .35; pointer-events: none; }

/* Screen-reader only label */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .kpi-grid2 { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid2-cost { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-wrap { padding: 16px; }
  .kpi-grid2 { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs-bar { gap: 2px; }
  .admin-tab { padding: 7px 10px; font-size: .8rem; }
}

/* ─── Report ready / download page ──────────────────────────────────────── */
:root {
  --teal:       #0d9488;
  --teal-dark:  #0f766e;
  --teal-light: #14b8a6;
  --teal-bg:    #f0fdfa;
  --teal-border:#99f6e4;
}
.report-ready {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
  text-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}
.rr-art { position: relative; display: flex; align-items: center; justify-content: center; }
.rr-art svg { width: 100%; max-width: 300px; position: relative; z-index: 1; }
.rr-art-glow {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-bg) 0%, rgba(240,253,250,0) 70%);
  filter: blur(4px);
}
.rr-body { min-width: 0; }
.rr-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-bg); color: var(--teal); border: 1px solid var(--teal-border);
}
.rr-check svg { width: 24px; height: 24px; }
.rr-body h1 { font-size: 2.1rem; margin-bottom: .35rem; }
.rr-for { color: var(--muted); margin: 0 0 28px; }
.rr-for strong { color: var(--teal-dark); }

.rr-download {
  width: 100%; max-width: 360px; gap: 10px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(13,148,136,.28);
}
.rr-download:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(13,148,136,.35); }
.rr-download svg { width: 20px; height: 20px; }

.rr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.rr-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  font-size: .82rem; font-weight: 600; color: var(--ink-secondary);
}
.rr-chip svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

.rr-divider { height: 1px; background: var(--border-light); margin: 28px 0; }

.rr-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.rr-action {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--primary); text-decoration: none;
}
.rr-action:hover { color: var(--primary-dark); }
.rr-action svg { width: 17px; height: 17px; flex-shrink: 0; }
.rr-action .rr-chev { width: 15px; height: 15px; }

.rr-expire {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 28px 0 0; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: .85rem; color: var(--muted); line-height: 1.5;
}
.rr-expire svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--muted); }

@media (max-width: 760px) {
  .report-ready { grid-template-columns: 1fr; gap: 8px; padding: 32px 24px; text-align: center; }
  .rr-art { order: -1; }
  .rr-art svg { max-width: 200px; }
  .rr-body h1 { font-size: 1.6rem; }
  .rr-download { margin: 0 auto; }
  .rr-chips, .rr-actions { justify-content: center; }
  .rr-expire { text-align: start; }
}

/* ─── Re-audit confirm page ─────────────────────────────────────────────── */
.ra-wrap { max-width: 1080px; padding-top: 40px; padding-bottom: 64px; }
.ra-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--primary); text-decoration: none;
  margin-bottom: 24px;
}
.ra-back:hover { color: var(--primary-dark); }
.ra-back svg { width: 18px; height: 18px; }

.ra-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px);
  align-items: start;
  gap: 32px;
}

.ra-main { min-width: 0; }
.ra-title { font-size: 2.2rem; line-height: 1.15; margin: 0 0 .6rem; }
.ra-title em { font-style: italic; color: var(--primary); }
.ra-intro { color: var(--ink-secondary); margin: 0 0 28px; max-width: 60ch; }
.ra-intro strong { color: var(--ink); font-weight: 700; }

/* Original audit recap card */
.ra-orig {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 22px 24px; margin-bottom: 22px;
}
.ra-orig-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.ra-orig-body { display: flex; align-items: center; gap: 18px; }
.ra-orig-info { min-width: 0; }
.ra-orig-domain { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.ra-orig-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--muted); margin-top: 4px;
}
.ra-orig-date svg { width: 15px; height: 15px; }
.ra-band {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px;
}
.ra-band svg { width: 13px; height: 13px; }
.ra-orig-foot {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.ra-orig-stat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500; color: var(--ink-secondary);
}
.ra-orig-stat svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

/* What's included checklist */
.ra-incl {
  background: var(--teal-bg); border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.ra-incl-title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.ra-incl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ra-incl-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--ink-secondary);
}
.ra-incl-list svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* Pricing panel */
.ra-pay {
  position: sticky; top: 24px;
  background: var(--card); border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 28px; text-align: center;
}
.ra-pay-badge {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  color: var(--teal-dark); background: var(--teal-bg);
  border: 1px solid var(--teal-border); border-radius: 99px;
  padding: 5px 16px; margin-bottom: 14px;
}
.ra-price { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--teal-dark); }
.ra-price-sub { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.ra-compare {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 24px 0 14px;
}
.ra-compare-box {
  flex: 1; max-width: 120px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 8px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ra-compare-lbl { font-size: .72rem; font-weight: 600; color: var(--muted); }
.ra-compare-val { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.ra-compare-after { background: var(--teal-bg); border-color: var(--teal-border); }
.ra-compare-after .ra-compare-lbl { color: var(--teal-dark); }
.ra-compare-trend { width: 26px; height: 26px; color: var(--teal); margin: 2px 0; }
.ra-compare-mini { font-size: .72rem; font-weight: 600; color: var(--teal-dark); }
.ra-compare-arrow { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.ra-compare-note { font-size: .85rem; color: var(--muted); margin: 0 0 22px; }

.ra-pay-form { margin: 0; }
.ra-cta { gap: 9px; margin-bottom: 12px; }
.ra-cta svg { width: 17px; height: 17px; }
.ra-back-btn { font-weight: 600; }

.ra-trust {
  list-style: none; margin: 22px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; gap: 8px;
}
.ra-trust li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.3;
  text-align: center;
}
.ra-trust svg { width: 20px; height: 20px; color: var(--teal); }

/* Reassurance perks */
.ra-perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 28px; padding: 28px 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ra-perk { display: flex; gap: 14px; align-items: flex-start; }
.ra-perk-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ra-perk-icon svg { width: 22px; height: 22px; }
.ra-perk-icon.blue   { background: var(--primary-50); color: var(--primary); }
.ra-perk-icon.green  { background: var(--green-bg);   color: var(--green); }
.ra-perk-icon.purple { background: #f5f3ff;           color: #7c3aed; }
.ra-perk-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.ra-perk-desc { margin: 3px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 860px) {
  .ra-grid { grid-template-columns: 1fr; }
  .ra-pay { position: static; }
  .ra-perks { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
}
@media (max-width: 560px) {
  .ra-title { font-size: 1.7rem; }
  .ra-orig-body { flex-direction: column; align-items: flex-start; text-align: start; }
}

/* ─── Processing / analysis-in-progress page ────────────────────────────── */
.proc-wrap { max-width: 1080px; padding-top: 48px; padding-bottom: 64px; }
.proc-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  align-items: start;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 44px 48px;
}
.proc-main { min-width: 0; text-align: center; container-type: inline-size; }

/* Big progress ring */
.proc-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.proc-ring svg { width: 100%; height: 100%; }
.proc-ring-track { stroke: var(--border-light); }
.proc-ring-fill {
  stroke: var(--teal);
  transition: stroke-dashoffset .25s linear;
}
.proc-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; color: var(--teal-dark);
}
.proc-title { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .5rem; }
.proc-sub { color: var(--muted); margin: 0 auto 32px; max-width: 52ch; }

/* Step tracker */
.proc-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 4px; margin: 0 0 28px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.proc-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  /* Shrinkable: with fixed 120px steps the 4-step row (~560px incompressible)
     overflowed the frame whenever the main column got narrower — e.g. the
     two-column layout between 861px and ~1010px viewports. */
  flex: 1 1 0; min-width: 0; max-width: 120px; text-align: center;
}
.proc-step-label { overflow-wrap: break-word; max-width: 100%; }
.proc-step-dot {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 2px solid var(--border);
  color: var(--muted); transition: all .25s ease;
}
.proc-step-ico { width: 22px; height: 22px; transition: opacity .2s; }
.proc-step-check { width: 22px; height: 22px; position: absolute; opacity: 0; transition: opacity .2s; }
.proc-step-label { font-size: .82rem; font-weight: 600; color: var(--ink-secondary); line-height: 1.25; }
.proc-step-status { font-size: .74rem; font-weight: 600; color: var(--muted); }

.proc-step.is-active .proc-step-dot {
  border-color: var(--teal); color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-bg);
}
.proc-step.is-active .proc-step-status { color: var(--teal); }
.proc-step.is-done .proc-step-dot {
  border-color: var(--teal); background: var(--teal); color: #fff;
}
.proc-step.is-done .proc-step-ico { opacity: 0; }
.proc-step.is-done .proc-step-check { opacity: 1; }
.proc-step.is-done .proc-step-status { color: var(--teal-dark); }
.proc-step.is-pending .proc-step-dot { opacity: .8; }

.proc-step-link {
  /* flex-grow 0: the connectors are decoration, the labels are the content.
     While they grew alongside the steps, a step got 67px for a word needing 72
     and French labels broke mid-word ("Exploratio n des pages"). They still
     shrink, so the row keeps fitting narrow columns. */
  flex: 0 1 44px; min-width: 12px; max-width: 60px;
  height: 2px; margin-top: 25px;
  background-image: linear-gradient(to right, var(--border) 50%, transparent 0);
  background-size: 8px 2px; background-repeat: repeat-x;
}
.proc-step-link.is-filled {
  background-image: none; background-color: var(--teal);
}
/* When the main column itself is too narrow for 4 fixed steps (two-column
   layouts on mid-size viewports, small phones), fold the tracker into 2×2.
   Column-driven (container query), so it works whatever the page layout is;
   the flex-shrink base above is the fallback for pre-2023 browsers. */
@container (max-width: 500px) {
  .proc-steps { flex-wrap: wrap; gap: 16px 8px; }
  .proc-step { flex: 1 1 40%; max-width: none; }
  .proc-step-link { display: none; }
}

/* Progress bar */
.proc-bar {
  height: 8px; border-radius: 99px; background: var(--border-light);
  overflow: hidden;
}
.proc-bar-fill {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  transition: width .25s linear;
}
.proc-bar-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 12px; flex-wrap: wrap;
}
.proc-bar-pct { font-size: .85rem; font-weight: 700; color: var(--teal-dark); }
.proc-bar-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--muted);
}
.proc-bar-note svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }

/* Preview skeleton card */
.proc-preview {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
/* Same card under the progress bar, when the questions hold the right column. */
.proc-preview-inline { margin-top: 30px; }
.proc-preview-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 700; color: var(--ink-secondary);
  margin-bottom: 20px;
}
.proc-preview-head svg { width: 17px; height: 17px; color: var(--teal); }
.proc-preview-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.proc-mini-ring {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--teal) 295deg, var(--border-light) 0);
}
.proc-mini-ring span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: var(--teal-dark);
}
.proc-mini-ring small { font-size: .55rem; font-weight: 600; color: var(--muted); }
.proc-sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.proc-sk { display: block; height: 10px; border-radius: 99px; background: var(--border); }
.proc-sk-accent { background: var(--teal-border); }
.proc-preview-rows { display: flex; flex-direction: column; gap: 10px; }
.proc-preview-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 12px 14px;
}
.proc-sk-ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; }
.proc-sk-ico.teal   { background: var(--teal-bg); }
.proc-sk-ico.orange { background: var(--orange-bg); }
.proc-sk-ico.blue   { background: var(--primary-50); }
.proc-preview-row .proc-sk { flex: 1; }
.proc-row-tag { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; }
.proc-row-tag.ok   { background: var(--teal); }
.proc-row-tag.warn { background: var(--orange); }
.proc-row-tag.mute { background: var(--border); }
.proc-preview-lock {
  display: flex; align-items: center; gap: 9px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted); line-height: 1.4;
}
.proc-preview-lock svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }

/* Profiling questions — the right column when the visitor still has answers to
   give. Same card shell as the preview skeleton it replaces. */
.proc-profile {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.proc-profile-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 700; color: var(--ink-secondary);
  margin-bottom: 8px;
}
.proc-profile-head svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; }
.proc-profile-intro {
  margin: 0 0 18px; color: var(--muted); font-size: .86rem; line-height: 1.5;
}
.proc-profile .alert { margin-bottom: 14px; font-size: .85rem; }

/* Without JS every question stays visible and posts on its own. With JS only
   the current one is shown — .is-js is set before first paint, so the collapsed
   state is what actually renders. */
.proc-profile.is-js .pq { display: none; }
.proc-profile.is-js .pq.is-current { display: block; }
.proc-profile.is-js .pq + .pq { margin-top: 0; }
.pq + .pq { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.pq.is-saving { opacity: .55; pointer-events: none; }

.pq-counter {
  margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.pq-q { margin: 0 0 12px; font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.pq-choices { margin-bottom: 4px; }
/* The column is ~340px wide: one choice per row stays legible where the
   wizard's two-column grid would not. */
.proc-profile .choice-grid,
.proc-profile .country-picker { grid-template-columns: 1fr; }
.proc-profile .choice { padding: 10px 12px; font-size: .9rem; }
.proc-profile .choice-desc { font-size: .8rem; }

.pq-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pq-actions .btn { flex: 1; }
/* The single-choice questions submit on click, so their button is only the
   no-JS affordance. The market question keeps it — it has follow-up fields. */
.proc-profile.is-js .pq:not([data-step="market"]) .pq-submit { display: none; }
/* Restored after a failed save: re-clicking an already-checked radio fires no
   change event, so the button is the only way back. */
.proc-profile.is-js .pq.has-error .pq-submit { display: inline-flex; }
.pq-skip {
  background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: underline;
}
.pq-skip:hover { color: var(--ink-secondary); }
.proc-profile:not(.is-js) .pq-skip { display: none; }

.pq-done { text-align: center; padding: 12px 0 4px; }
.pq-done svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 10px; }
.pq-done-title { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.pq-done-sub { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* `.btn` sets display:inline-flex, which beats the UA's [hidden] rule — without
   this the "view my score" button is visible from the first paint and sends
   people to a page that is not ready yet. Same trap as .acct-clear[hidden]. */
.proc-ready-cta { margin: 22px 0 4px; }
.proc-ready-cta[hidden] { display: none; }

@media (max-width: 860px) {
  .proc-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .proc-preview { order: 2; }
  /* The questions lead on mobile: the progress ring is passive, this is not. */
  .proc-profile { order: -1; }
}
@media (max-width: 560px) {
  .proc-card { padding: 28px 18px; }
  .proc-title { font-size: 1.5rem; }
  .proc-steps { flex-wrap: wrap; gap: 16px; }
  .proc-step { width: 44%; }
  .proc-step-link { display: none; }
}

/* robots.txt callout on the failure page — shown as evidence, not decoration:
   the visitor should recognise the exact lines sitting on their own server. */
.cf-robots {
  text-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px auto 4px;
  max-width: 560px;
}
.cf-robots-lead { margin: 0 0 10px; font-size: .88rem; font-weight: 600; color: var(--ink-secondary); }
.cf-robots-code {
  margin: 0 0 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: .85rem; line-height: 1.5;
  overflow-x: auto;            /* long rules scroll here, never widen the page */
  direction: ltr; text-align: left;  /* a robots.txt is LTR even in Arabic */
}
.cf-robots-note { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* ── Magic-link "email sent" page ─────────────────────────────────── */
.mls-page {
  max-width: 560px;
  margin: 56px auto;
  padding: 0 16px;
}
.mls-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px 32px;
  text-align: center;
}
/* Animated envelope */
.mls-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 4px auto 22px;
}
.mls-disc {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: mls-float 3.4s ease-in-out infinite;
}
.mls-check {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 2.5px solid var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37,99,235,.35);
}
.mls-orbit {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed var(--primary-100);
  animation: mls-spin 18s linear infinite;
}
.mls-spark {
  position: absolute;
  font-size: .72rem;
  color: var(--primary);
  opacity: .55;
  animation: mls-twinkle 2.6s ease-in-out infinite;
}
.mls-spark-1 { top: 2px; inset-inline-start: -6px; }
.mls-spark-2 { bottom: 6px; inset-inline-end: -4px; animation-delay: 1.1s; }
@keyframes mls-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes mls-spin { to { transform: rotate(360deg); } }
@keyframes mls-twinkle {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50%      { opacity: .8;  transform: scale(1.1); }
}
.mls-badge { margin-bottom: 14px; }
.mls-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.mls-lead {
  color: var(--ink-secondary);
  margin: 0 0 4px;
  font-size: .96rem;
}
.mls-email {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  font-size: 1.02rem;
  word-break: break-all;
}
.mls-sub {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 auto 4px;
  max-width: 380px;
  line-height: 1.55;
}
.mls-actions {
  margin-top: 22px;
  max-width: 380px;
  margin-inline: auto;
}
.mls-btn { margin-top: 0; }
/* "or" divider */
.mls-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .82rem;
  margin: 12px 0;
}
.mls-or::before, .mls-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Secondary text links */
.mls-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 26px;
}
.mls-resend { margin: 0; }
.mls-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}
.mls-link:hover { color: var(--primary-dark); }
.mls-links-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
}
/* Trust bar */
.mls-trust {
  display: flex;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 20px;
}
.mls-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: start;
  color: var(--primary);
  padding: 0 10px;
}
.mls-trust-item + .mls-trust-item { border-inline-start: 1px solid var(--border-light); }
.mls-trust-item div { display: flex; flex-direction: column; line-height: 1.3; }
.mls-trust-item strong { font-size: .78rem; color: var(--ink); font-weight: 700; }
.mls-trust-item span { font-size: .72rem; color: var(--muted); }
@media (max-width: 520px) {
  .mls-card { padding: 36px 22px 26px; }
  .mls-trust { flex-direction: column; gap: 14px; }
  .mls-trust-item { padding: 0; }
  .mls-trust-item + .mls-trust-item { border-inline-start: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mls-disc, .mls-orbit, .mls-spark { animation: none; }
}

/* ── Crawl-failed ("could not analyze") page ──────────────────────── */
.cf-page {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 16px;
}
.cf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 40px 34px;
  text-align: center;
}
/* Illustration */
.cf-illu {
  position: relative;
  width: 190px;
  height: 150px;
  margin: 0 auto 8px;
}
.cf-cloud {
  position: absolute;
  background: var(--primary-50);
  border-radius: 999px;
  opacity: .8;
}
.cf-cloud-1 { width: 46px; height: 16px; top: 96px; left: 6px; }
.cf-cloud-2 { width: 34px; height: 13px; top: 40px; right: 4px; }
.cf-spark {
  position: absolute;
  color: var(--primary);
  opacity: .45;
  font-size: .7rem;
  animation: cf-twinkle 2.8s ease-in-out infinite;
}
.cf-spark-1 { top: 30px; left: 14px; }
.cf-spark-2 { bottom: 22px; right: 18px; animation-delay: 1.2s; }
@keyframes cf-twinkle {
  0%, 100% { opacity: .2; transform: scale(.85); }
  50%      { opacity: .7; transform: scale(1.1); }
}
.cf-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 12px;
  line-height: 1.25;
  word-break: break-word;
}
.cf-sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 auto 18px;
  max-width: 540px;
}
/* "Not billed" reassurance badge */
.cf-billed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 7px 16px;
}
/* Quick tips strip */
.cf-tips {
  display: flex;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  margin: 24px 0 26px;
  padding: 16px 8px;
}
.cf-tip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: start;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 600;
  padding: 2px 12px;
  line-height: 1.3;
}
.cf-tip svg { flex: none; }
.cf-tip span { color: var(--ink-secondary); }
.cf-tip + .cf-tip { border-inline-start: 1px solid var(--primary-100); }
/* Actions — single CTA + back link */
.cf-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cf-btn {
  width: auto;
  min-width: 280px;
  margin-top: 0;
}
.cf-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}
.cf-back:hover { color: var(--primary-dark); }
/* Why this happens */
.cf-why {
  text-align: start;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 30px;
}
.cf-why-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.cf-why-title svg { color: var(--primary); }
.cf-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cf-why-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cf-why-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-why-item div { display: flex; flex-direction: column; gap: 3px; }
.cf-why-item strong { font-size: .88rem; color: var(--ink); font-weight: 700; line-height: 1.3; }
.cf-why-item span { font-size: .82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  .cf-card { padding: 30px 20px 26px; }
  .cf-tips { flex-direction: column; gap: 14px; padding: 16px; }
  .cf-tip { justify-content: flex-start; }
  .cf-tip + .cf-tip { border-inline-start: none; border-top: 1px solid var(--primary-100); padding-top: 14px; }
  .cf-btn { min-width: 0; width: 100%; }
  .cf-why-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-spark { animation: none; }
}

/* ── Product audit promo block (landing.ejs) ─────────────────────────────── */
.product-audit-promo {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.pap-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--primary-50);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.pap-body { flex: 1; min-width: 0; }
.pap-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.pap-body h2 { font-size: 1.25rem; margin: 0 0 6px; letter-spacing: -.02em; }
.pap-body .muted { font-size: .9rem; margin: 0 0 14px; }
.pap-trust { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.pap-trust span { display: flex; align-items: center; gap: 5px; }
.pap-trust svg { color: var(--green); flex-shrink: 0; }
.pap-cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
  .product-audit-promo { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 20px; }
  .pap-cta { width: 100%; text-align: center; }
}

/* ── Free-score conversion redesign ─────────────────────────────────────── */
:root { --potential-tint: #c8d2e0; }

/* Biggest-issue spotlight — the single most costly problem */
.biggest-issue {
  position: relative; background: var(--card);
  border: 1px solid var(--border); border-left: 4px solid var(--muted);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 22px 24px; margin: 0 0 28px;
}
.biggest-issue.accent-critical { border-left-color: var(--red); }
.biggest-issue.accent-medium   { border-left-color: var(--orange); }
.biggest-issue.accent-low      { border-left-color: var(--primary); }
.bi-flag {
  position: absolute; top: -10px; inset-inline-start: 20px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--muted);
}
.bi-flag-critical { background: var(--red); }
.bi-flag-medium   { background: var(--orange); }
.bi-flag-low      { background: var(--primary); }
.bi-body { display: flex; gap: 18px; align-items: flex-start; }
.bi-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.bi-icon.critical { background: var(--red-bg); color: var(--red); }
.bi-icon.medium   { background: var(--orange-bg); color: var(--orange); }
.bi-icon.low      { background: var(--primary-50); color: var(--primary); }
.bi-main { flex: 1; min-width: 0; }
.bi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bi-title { font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.25; }
.bi-proof { font-size: .9rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.bi-impact {
  font-size: .88rem; color: var(--ink-secondary); margin: 0 0 12px; line-height: 1.5;
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.bi-impact strong { color: var(--ink); }
.bi-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.bi-stat { display: flex; align-items: center; gap: 5px; }
.bi-stat strong { color: var(--ink); }
.bi-inplan { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; margin-inline-start: auto; }
@media (max-width: 560px) { .bi-body { flex-direction: column; } .bi-inplan { margin-inline-start: 0; } }

/* Projection hook inside the unlock CTA */
.unlock-projection {
  display: flex; align-items: center; gap: 7px; font-weight: 500;
  font-size: .9rem; color: var(--ink-secondary); margin: 0 0 12px;
  background: var(--green-bg); border-radius: 10px; padding: 9px 12px;
}
.unlock-projection svg { stroke: var(--green); flex-shrink: 0; }
.unlock-projection strong { color: var(--green); font-weight: 800; }

/* ── Admin analytics (/admin/analytics) ────────────────────────────────────
   Reuses .admin-wrap, .kpi-grid2, .kpi-card2, .admin-table-card and
   .admin-table-scroll from the admin dashboard block above; only the pieces
   that block has no equivalent for are defined here. */
.an-filters { flex-wrap: wrap; gap: .6rem; align-items: center; }
.an-range { display: flex; gap: .3rem; }
.an-chip {
  display: inline-block; padding: .35rem .7rem; border: 1px solid var(--border);
  border-radius: 999px; font-size: .82rem; color: var(--muted);
  text-decoration: none; background: #fff; white-space: nowrap;
}
.an-chip:hover { border-color: var(--primary); color: var(--primary); }
.an-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.an-filter-form { display: flex; gap: .4rem; }
.an-filter-form select {
  padding: .35rem .5rem; border: 1px solid var(--border); border-radius: 6px;
  font-size: .82rem; color: inherit; background: #fff; max-width: 14rem;
}
.an-card-head { padding: 1rem 1.15rem .4rem; }
.an-card-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.an-card-head p { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }
/* Give ApexCharts a definite box: it measures its container on render, and a
   zero-height parent produces a collapsed chart. */
.an-chart { min-height: 320px; padding: .5rem .75rem 1rem; }
/* Exit-stage magnitude bar — the visual the table is really about. */
.an-bar-cell { width: 28%; min-width: 90px; }
.an-bar {
  display: block; height: 8px; border-radius: 4px; background: var(--primary);
  opacity: .75; min-width: 2px;
}
.an-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 2rem; line-height: 1.5; }
.an-note code { font-size: .78rem; }

@media (prefers-color-scheme: dark) {
  .an-chip, .an-filter-form select { background: transparent; }
}
