@layer legacy {
/* MigrateKit - Production Site Styles
   Design direction: report/terminal-inspired scorecard components against
   a clean editorial layout. Monospace numerals, PASS/FAIL chips, score bars.
   One accent: verification green. Neutral ink palette. No purple, no glass.
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Typography */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Menlo", "Consolas", "Courier New", monospace;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.70rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl:   clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem);
  --text-2xl:  clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --text-3xl:  clamp(1.75rem,  1.4rem + 1.75vw, 2.5rem);
  --text-4xl:  clamp(2.25rem,  1.75rem + 2.5vw, 3.25rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Colors - ink palette + verification green */
  --ink-950:  #0c0d0e;
  --ink-900:  #181a1c;
  --ink-800:  #2a2d31;
  --ink-700:  #3d4147;
  --ink-600:  #525861;
  --ink-500:  #6b7280;
  --ink-400:  #5d646f; /* WCAG AA: 5.6:1 on white, 5.3:1 on --paper-dim */
  --ink-300:  #c4c8cd;
  --ink-200:  #e1e3e6;
  --ink-100:  #f0f1f2;
  --ink-50:   #f8f9fa;

  --green-700: #0e6b3f;
  --green-600: #0e6e40; /* WCAG AA: >5:1 on --paper-dim */
  --green-500: #159a59;
  --green-100: #d4f2e2;
  --green-50:  #edfaf3;

  --red-700:   #991b1b;
  --red-100:   #fee2e2;
  --red-50:    #fef9f9;

  --amber-700: #92400e;
  --amber-100: #fde68a;
  --amber-50:  #fffbeb;

  /* Surface */
  --surface:          #ffffff;
  --surface-elevated: var(--ink-50);
  --surface-border:   var(--ink-200);

  /* Text */
  --text-primary:   var(--ink-950);
  --text-secondary: var(--ink-600);
  --text-muted:     var(--ink-400);

  /* Accent */
  --accent:       var(--green-600);
  --accent-hover: var(--green-700);
  --accent-subtle: var(--green-50);

  /* Layout */
  --max-w:        1080px;
  --max-w-narrow: 720px;
  --col-gap:      var(--sp-6);

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  padding-left: var(--sp-6);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--ink-950);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

/* The header is sticky, so an in-page anchor would otherwise land with the
   target hidden underneath it. */
html {
  scroll-padding-top: 5rem;
}

/* ============================================================
   FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }

.display-heading {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: var(--sp-4);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo-img {
  display: block;
  height: 1.75rem;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  padding: 0;
}

/* Labels must not wrap: the header is a fixed 3.5rem tall, so a two-line item
   overflows it and gets clipped. This was real at 768px - "How it works" broke
   onto three lines and spilled above and below the header - because the mobile
   toggle only took over below 700px. The breakpoint below now covers tablet. */
.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Account sign-in link - subtle, signals an auth surface vs. a content link */
.nav-signin {
  border: 1px solid var(--ink-300, #d4d6da);
  border-radius: var(--r-md);
  padding: var(--sp-1) var(--sp-3);
  transition: border-color 0.15s, color 0.15s;
}
.nav-signin:hover {
  border-color: var(--ink-500, #9aa0aa);
}

.nav-cta {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--surface) !important;
  background: var(--ink-950);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  text-decoration: none !important;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--ink-800) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* The 7-item nav needs ~900px to sit on one line, so anything narrower was
   already cramped and 768px clipped it outright. The toggle now covers up to
   900px, which is where a seven-item nav stops being comfortable rather than
   the point where it physically breaks. */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--sp-4) var(--sp-6);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--ink-100);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: var(--text-base);
  }

  .nav-cta {
    display: inline-block;
    margin-top: var(--sp-2);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding-block: var(--sp-12);
  margin-top: var(--sp-24);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-3);
}

.footer-links {
  display: flex;
  gap: var(--sp-8);
}

/* The footer column label is a real h2 for document order, styled as a label.
   A bare h4 here skipped levels from the last h2 on the page, which is a
   heading-order failure on every page of the site. */
.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--ink-100);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: var(--sp-6);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink-950);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-800);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--ink-300);
}

.btn-outline:hover {
  background: var(--ink-50);
  color: var(--text-primary);
  border-color: var(--ink-400);
}

.btn-lg {
  font-size: var(--text-lg);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-lg);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-block: var(--sp-20);
}

.section--alt {
  background: var(--ink-50);
}

.section--dark {
  background: var(--ink-950);
  color: #fff;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.section-label--light {
  color: var(--green-500);
}

.section-heading {
  margin-bottom: var(--sp-6);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--sp-10);
  line-height: 1.6;
}

/* ============================================================
   HERO
   The headline answers "what is this", the input directly under it answers
   "what do I do now". Nothing sits between a stranger and the first field.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-16) var(--sp-20);
  border-bottom: 1px solid var(--surface-border);
}

/* Measurement grid, faded out before it reaches the fold. Reads as graph
   paper, which is the register this product lives in. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink-200) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: var(--sp-5);
  max-width: 760px;
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}

/* ---- Inline scan form (the hero's primary action) ---- */
.hero-scan {
  max-width: 620px;
}

.hero-scan-form {
  display: flex;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-lg);
  padding: var(--sp-2);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-scan-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--green-50), var(--shadow-md);
}

.hero-scan-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
}

.hero-scan-form input:focus {
  outline: none;
}

.hero-scan-form input::placeholder {
  color: var(--ink-400);
}

.hero-scan-form .btn {
  flex-shrink: 0;
}

.hero-scan-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--sp-3);
  line-height: 1.55;
}

.hero-scan-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Trust row: three facts that answer the objections a stranger actually has
   before typing their domain into someone else's form. */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero-trust svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* The result replaces the form in place, so the page never scrolls away from
   what the visitor just did. */
.hero-scan.is-answered .hero-scan-form,
.hero-scan.is-answered .hero-scan-note,
.hero-scan.is-answered .hero-trust {
  display: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-actions .btn-secondary-link {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hero-actions .btn-secondary-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   SITE CHECK RESULT
   The card that replaces the hero form once an address is read. Composed of
   elements the renderer creates in mk-form.js; every value there arrives as a
   text node, never markup.
   ============================================================ */
.sc-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: var(--sp-6);
  animation: sc-in 0.35s ease-out both;
}

@keyframes sc-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sc-head {
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--ink-100);
}

.sc-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.sc-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-1);
}

.sc-page-title {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.sc-caveat {
  font-size: var(--text-sm);
  color: var(--amber-700);
  background: var(--amber-50);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}

/* Counted facts, monospace so they line up like instrument readings. */
.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-100);
}

.sc-stat-n {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sc-stat-l {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sc-risks {
  padding: var(--sp-5) var(--sp-6) var(--sp-2);
}

.sc-risks-h {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.sc-risks-lead {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.sc-risk {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-100);
}

.sc-risk-what {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.sc-risk-if {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.sc-cta {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
}

.sc-cta-h {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.sc-cta-p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--sp-4);
}

.sc-capture {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.sc-capture input[type="email"] {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-primary);
}

.sc-capture input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--green-50);
}

.sc-capture-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-2);
  line-height: 1.5;
}

.sc-capture-note.is-good {
  color: var(--green-600);
  font-weight: 600;
}

.sc-capture-note.is-bad {
  color: var(--red-700);
}

/* Failed lookup. States what we did, then what to try - never a bare code. */
.sc-fail {
  margin-top: var(--sp-6);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--amber-700);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-md);
}

.sc-fail-h {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.sc-fail-p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-2);
}

.sc-fail-fix {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.sc-spin {
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto var(--sp-3);
  animation: sc-spin 0.9s linear infinite;
}

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

.sc-loading {
  text-align: center;
  padding: var(--sp-8) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .sc-head,
  .sc-stats,
  .sc-risks,
  .sc-cta,
  .sc-fail {
    padding-inline: var(--sp-5);
  }

  .sc-capture .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   SCORECARD TABLE (checks grid)
   ============================================================ */
.demo-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.checks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-top: var(--sp-8);
}

.checks-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--ink-200);
}

.checks-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}

.checks-table tr:last-child td {
  border-bottom: none;
}

.checks-table tr:hover td {
  background: var(--ink-50);
}

.check-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
}

.check-desc {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   SCORECARD COMPONENTS
   ============================================================ */

/* Verdict banner */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
}

.verdict-banner.fail {
  background: var(--red-50);
  border-color: var(--red-100);
}

.verdict-icon {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--green-600);
  flex-shrink: 0;
}

.verdict-icon.fail {
  color: var(--red-700);
}

.verdict-text {
  flex: 1;
}

.verdict-text strong {
  font-size: var(--text-lg);
  display: block;
  color: var(--green-700);
  font-weight: 700;
}

.verdict-text span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.verdict-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

.verdict-badge.pass {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid var(--green-500);
}

.verdict-badge.fail {
  background: var(--red-100);
  color: var(--red-700);
}

/* Suite card */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.suite-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.suite-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}

.suite-card-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.suite-card-body {
  padding: var(--sp-5);
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.score-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-value.perfect {
  color: var(--green-600);
}

.score-unit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.score-target {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* Score bar */
.score-bar {
  height: 6px;
  background: var(--ink-200);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.score-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.score-bar-fill.warning {
  background: #d97706;
}

.score-bar-fill.fail-fill {
  background: var(--red-700);
}

/* PASS/FAIL chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px var(--sp-2);
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

.chip-pass {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid rgba(18, 132, 77, 0.25);
}

.chip-fail {
  background: var(--red-100);
  color: var(--red-700);
  border: 1px solid rgba(153, 27, 27, 0.2);
}

/* "Did not run" - deliberately distinct from a failing score. A suite that
   produced no result is not a check the site failed. */
.chip-error {
  background: var(--ink-100);
  color: var(--text-secondary);
  border: 1px solid var(--ink-200);
}

.verdict-badge.error {
  background: var(--ink-100);
  color: var(--text-secondary);
  border: 1px solid var(--ink-200);
}

.chip-warn {
  background: var(--amber-100);
  color: var(--amber-700);
  border: 1px solid rgba(146, 64, 14, 0.2);
}

/* Run meta */
.run-meta {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink-950);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.run-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.run-meta-label {
  color: #9aa0aa; /* on the dark run-meta block: 7.2:1 */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.run-meta-value {
  color: var(--ink-200);
  font-weight: 600;
}

.run-meta-value.green {
  color: var(--green-500);
}

/* Suite detail rows */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: var(--text-sm);
  gap: var(--sp-4);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-secondary);
  flex: 1;
}

.detail-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Performance metrics table */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.perf-table th {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  text-align: right;
  border-bottom: 1px solid var(--ink-200);
}

.perf-table th:first-child {
  text-align: left;
}

.perf-table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-mono);
  text-align: right;
}

.perf-table td:first-child {
  font-family: var(--font-sans);
  text-align: left;
  color: var(--text-secondary);
}

.perf-table tr:last-child td {
  border-bottom: none;
}

.metric-better {
  color: var(--green-600);
  font-weight: 700;
}

.metric-same {
  color: var(--text-primary);
}

/* ============================================================
   USE CASES
   ============================================================ */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.use-case-card {
  padding: var(--sp-6);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.use-case-card h3 {
  margin-bottom: var(--sp-3);
}

.use-case-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS - STEPS
   ============================================================ */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.step-number {
  counter-increment: step;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: var(--ink-950);
  color: var(--green-500);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--text-xl);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-detail {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  background: var(--ink-50);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.step-detail strong {
  color: var(--text-primary);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--sp-8);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--surface-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transition: background 0.1s;
}

.faq-question:hover {
  background: var(--ink-50);
}

.faq-question[aria-expanded="true"] {
  background: var(--ink-50);
}

.faq-icon {
  font-size: var(--text-xl);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  font-style: normal;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: var(--text-sm);
}

.faq-answer.is-open {
  display: block;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  align-items: start;
}

.pricing-card {
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.pricing-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--green-50), var(--shadow-lg);
}

.pricing-card-badge {
  position: absolute;
  top: -1px;
  right: var(--sp-5);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--sp-3);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.pricing-card-header {
  padding: var(--sp-6);
  border-bottom: 1px solid var(--ink-100);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-1);
}

.pricing-amount {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-per {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* "from" prefix on the Managed Migration price, which is quoted per site. */
.pricing-from {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Secondary route under a pricing CTA, for offers whose checkout is not open
   yet: the request form is one click from the card without pretending to be a
   buy button. */
.pricing-aside {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

.pricing-card-body {
  padding: var(--sp-6);
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.pricing-feature-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: 1.4;
}

.pricing-feature-list li::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5L5.5 10.5L11.5 4' stroke='%23159a59' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.pricing-feature-list li.muted {
  color: var(--text-muted);
}

.pricing-feature-list li.muted::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 4L10 10M10 4L4 10' stroke='%239aa0aa' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   CALL TO ACTION SECTION
   ============================================================ */
.cta-section {
  background: var(--ink-950);
  padding-block: var(--sp-20);
}

.cta-section h2 {
  color: #fff;
  margin-bottom: var(--sp-4);
}

.cta-section p {
  color: #a7adb8; /* on --ink-950: 7.5:1 */
  margin-bottom: var(--sp-8);
  font-size: var(--text-lg);
  max-width: 540px;
}

.cta-section p.section-label--light {
  color: var(--green-500); /* on --ink-950: 5.3:1 */
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.cta-actions .btn-secondary-link {
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.cta-actions .btn-secondary-link:hover {
  color: #fff;
}

/* Free scan form */
.scan-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  max-width: 560px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input[type="url"],
.form-group input[type="email"] {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--green-50);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-400);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-300);
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-check span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-note,
.cta-section .scan-form p.form-note {
  font-size: var(--text-xs);
  color: var(--text-muted); /* sits on the white form card, not the dark section */
  margin-top: var(--sp-3);
  line-height: 1.5;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-block: var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--surface-border);
}

.page-hero h1 {
  margin-top: var(--sp-3);
  max-width: 700px;
}

.page-hero .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: var(--sp-4);
  line-height: 1.65;
}

/* Provenance line. AI systems and readers both weight a visible date and a
   named author, so it sits with the opening claim rather than in the footer. */
.page-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-100);
  max-width: 600px;
}

.page-meta a {
  color: var(--text-secondary);
}

/* ============================================================
   PROSE SECTIONS
   Long-form pages state each point under its own heading, so a section can be
   read - or quoted by a search engine - without the ones around it.
   ============================================================ */
.prose-section {
  max-width: 680px;
}

.prose-section h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.prose-section h3:first-child {
  margin-top: 0;
}

.prose-section p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.prose-section a {
  color: var(--text-primary);
  text-underline-offset: 2px;
}

.prose-section--faq h3 {
  font-size: var(--text-lg);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-100);
}

.prose-section--faq h3:first-child {
  border-top: none;
  padding-top: 0;
}

/* ============================================================
   FACT LIST (plain bullets)
   ============================================================ */
.fact-list {
  list-style: none;
  padding: 0;
  max-width: 680px;
}

.fact-list li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.fact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.fact-list strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================================
   KEY FACTS TABLE
   A definition list, not a styled grid of divs: it stays a real term/value
   pair for anything reading the page, which is the point of the section.
   ============================================================ */
.facts {
  margin: 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.facts-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ink-100);
}

.facts-row:last-child {
  border-bottom: none;
}

.facts-row:nth-child(odd) {
  background: var(--ink-50);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}

.facts dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.6;
}

.facts dd a {
  color: var(--text-primary);
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .facts-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text-secondary);
}

.breadcrumb-sep {
  color: var(--ink-300);
}

/* ============================================================
   SCORECARD PAGE SPECIFICS
   ============================================================ */
.scorecard-wrapper {
  max-width: 860px;
}

.scorecard-intro {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.scorecard-intro strong {
  color: var(--text-primary);
}

.scorecard-section-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--ink-100);
}

/* ============================================================
   SUMMARY STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.stat-box {
  border: 1px solid var(--surface-border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-value.green {
  color: var(--green-600);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   NOTICE/CALLOUT
   ============================================================ */
.notice {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 3px solid;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.notice-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.notice-warning {
  background: var(--amber-50);
  border-color: #d97706;
  color: var(--amber-700);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 860px) {
  .suite-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .suite-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 2.5rem 1fr;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--text-lg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .checks-table {
    display: block;
    overflow-x: auto;
  }

  .scan-form {
    padding: var(--sp-6);
  }

  .hero-headline {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  /* Stacking beats squeezing: at 360px a side-by-side input and button leave
     the field too narrow to read a domain in. */
  .hero-scan-form {
    flex-direction: column;
  }

  .hero-scan-form .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scan-form input {
    padding: var(--sp-3) var(--sp-3);
  }

  /* The field is inside this card, so the card's own border is the only one
     needed; a focus ring on the field alone looks like a second box. */
  .hero-scan-form input:focus {
    box-shadow: none;
  }

  .run-meta {
    gap: var(--sp-4);
  }
}

/* Demo section responsive */
@media (max-width: 700px) {
  .demo-compare-grid,
  .compare-grid,
  .full-screenshots {
    grid-template-columns: 1fr !important;
  }
  .demo-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .arc-grid {
    grid-template-columns: 1fr !important;
  }
  .arc-arrow {
    transform: rotate(90deg);
    padding: var(--sp-4) 0;
    justify-self: center;
  }
}

/* ============================================================
   FEATURE CARD
   Used by the migration guides and /migrate-to-shopify/ for the "what each
   check covers" lists. Defined here because those pages referenced it while
   it existed nowhere in the sheet, so the blocks rendered unstyled.
   ============================================================ */
.feature-card {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.feature-card h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--text-base);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ============================================================
   MOVE PAIRS ("moving from X to Y")
   Each card names a starting platform, the destination, and what that
   specific pair puts at risk. Numbered chips, not icons: the destination is
   the fact worth reading, and it reads at any size.
   ============================================================ */
.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.pair-card {
  display: block;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pair-card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-md);
}

.pair-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pair-from {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-2);
}

.pair-to {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
}

.pair-risks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.pair-risks li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.pair-risks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-300);
}

.pair-note {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ink-100);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   METHOD GRID (ownership verification)
   "What is it built with" -> "which method is easiest". The method is stated
   as a word, so the table is readable before the guidance below it.
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.method-card {
  padding: var(--sp-5);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.method-platform {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin: 0 0 var(--sp-3);
}

.method-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: var(--sp-3);
}

.method-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.method-footnote {
  margin: var(--sp-6) 0 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   MANAGED MOVE PANEL
   A plain bordered block, visually separate from the free scan: it is a
   different offer (a service, quoted by hand) and must not read as the
   primary self-serve path.
   ============================================================ */
.managed-move {
  margin-top: var(--sp-8);
  padding: var(--sp-6) var(--sp-8);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.managed-move h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--text-lg);
}

.managed-move p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
}

.managed-move p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   GUIDE PAGES
   Long-form articles share one measure and one heading rhythm so a guide
   reads as a document rather than a stack of cards.
   ============================================================ */
.guide-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

.guide-section {
  margin-top: var(--sp-12);
}

.guide-section:first-child {
  margin-top: 0;
}

.guide-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.guide-section h3 {
  font-size: var(--text-lg);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-2);
}

.guide-section p,
.guide-section li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-section p {
  margin-bottom: var(--sp-4);
}

.guide-section ul,
.guide-section ol {
  margin: 0 0 var(--sp-4);
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.guide-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-100);
  padding: 1px 5px;
  border-radius: 3px;
}

.guide-callout {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--ink-50);
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

.guide-toc {
  padding: var(--sp-6);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  background: var(--ink-50);
}

.guide-toc ol {
  margin: 0;
  padding-left: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.guide-toc a {
  color: var(--text-primary);
  text-underline-offset: 2px;
}

/* ============================================================
   FREE-SCAN VERDICT
   The result card's top slot. Traffic-light colour carries the
   meaning, so the light is a shape as well as a colour (it has a
   ring and a solid fill) and is never the only signal: the
   headline states the level in words for anyone who cannot
   distinguish the hues.
   ============================================================ */
.sc-verdict {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--ink-300);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.sc-verdict-green  { border-left-color: var(--green-500);  background: var(--green-50); }
.sc-verdict-yellow { border-left-color: #d97706;           background: #fffbeb; }
.sc-verdict-red    { border-left-color: var(--red-700);    background: var(--red-50); }

.sc-verdict-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sc-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.sc-light-green  { background: var(--green-500); }
.sc-light-yellow { background: #d97706; }
.sc-light-red    { background: var(--red-700); }
.sc-light-unknown { background: var(--ink-300); }

.sc-verdict-h {
  font-size: var(--text-xl);
  margin: 0;
  letter-spacing: -0.01em;
}

.sc-verdict-sub {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sc-verdict-meaning {
  margin: var(--sp-4) 0 0;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Screenshot of the scanned page. Bounded height with the top of the
   page visible: a full-page capture of a long site is unreadable at
   thumbnail size, and the top is what the visitor recognises. */
.sc-shot {
  margin: var(--sp-5) 0 0;
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-50);
}

.sc-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: top center;
}

.sc-shot-cap {
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid var(--ink-100);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-risks-more {
  margin: var(--sp-3) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sc-cta-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin: var(--sp-5) 0 0;
}

/* What we found on this page. Deliberately quiet: ticks and small
   type, because it is evidence rather than a headline. The point is
   that it reads as a list of observations about THEIR site, which is
   what builds the trust the risks then rely on.

   Alignment: one flex row per observation, with the tick as a fixed-width
   inline-block so every row's text starts at the same x. The coverage
   note is padded by that same width plus the gap, declared once in
   --sc-saw-tick-w so the two cannot drift apart.

   Deliberately NOT using CSS subgrid: it would align the note exactly,
   but it needs Safari 16.4+ and Chrome 117+, and the rest of this
   stylesheet is written for much older browsers. A cosmetic alignment
   is not worth excluding real visitors. */
.sc-saw {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-100);
  /* The tick column. The check glyph is about 9px wide at the item's
     font size; 1rem gives it room to breathe without the 25px gap a
     1em-plus-gap combination produced. In rem, because `em` here would
     resolve against this element's own 16px rather than the item's
     13.92px. Verified by measuring the rendered offsets in a browser. */
  --sc-saw-tick-w: 1rem;
}

.sc-saw-h {
  font-size: var(--text-base);
  margin: 0 0 var(--sp-4);
}

.sc-saw-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.sc-saw-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.sc-saw-tick {
  /* Fixed box so every row lines up regardless of the glyph's own width,
     and `baseline` keeps it on the first line of text rather than 1-2px
     above it (which `align-items: start` produced). */
  flex: 0 0 var(--sc-saw-tick-w);
  text-align: center;
  color: var(--green-600);
  font-weight: 700;
}

.sc-saw-what {
  font-weight: 600;
  color: var(--text-primary);
}

.sc-saw-ev {
  color: var(--text-secondary);
}

/* Indented by the tick column plus the gap, so its text starts where the
   observation text starts and reads as a note on the list rather than a
   new block. */
.sc-saw-cov {
  margin: 0;
  padding-left: calc(var(--sc-saw-tick-w) + var(--sp-3));
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* The limitation is the part that makes the rest believable, so it is
   not hidden - just visually secondary. */
.sc-saw-limit {
  color: var(--text-muted);
}

.sc-cta-or {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.sc-cta-alt {
  margin: var(--sp-3) 0 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.sc-cta-secondary {
  margin-top: var(--sp-8);
  border-top: 1px solid var(--ink-100);
  padding-top: var(--sp-6);
}

.sc-cta-foot {
  margin-top: var(--sp-6);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .score-bar-fill {
    transition: none !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle {
    display: none;
  }
}

}
