/* ===========================================================
   WHYTHEYRANK — Design tokens
   Theme: Google Search Central / Material Design — clean white
   docs-style surface, single Google Blue accent, Roboto/Google
   Sans typography, subtle 1px borders + soft elevation shadows,
   8px radius. Functional and trustworthy over flashy.
   =========================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-sunken: #f8f9fa;
  --surface-strong: #f1f3f4;
  --code-bg: #202124;
  --code-line: #e8eaed;

  --ink: #202124;
  --ink-soft: #3c4043;
  --ink-faint: #5f6368;
  --line: #dadce0;
  --line-strong: #bdc1c6;

  --accent: #1a73e8;
  --accent-hover: #1b66c9;
  --accent-on-dark: #8ab4f8;
  --accent-tint: #e8f0fe;

  --tile-1: #202124;
  --tile-2: #303134;
  --tile-3: #292a2d;
  --chip-translucent: rgba(210, 210, 215, 0.64);

  --green: #188038;
  --green-line: #34a853;
  --green-bg: #e6f4ea;
  --green-bg-soft: #f2faf5;

  --red: #d93025;
  --red-bg: #fce8e6;
  --red-bg-soft: #fef7f6;

  --amber: #b06000;
  --amber-bg: #feefc3;

  --font-display: 'Google Sans', 'Roboto', system-ui, -apple-system, 'Inter', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', 'JetBrains Mono', 'Courier New', monospace;

  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --radius-pill: 9999px;

  --section-space: 72px;
  --product-shadow: 0 1px 3px rgba(60,64,67,0.15), 0 4px 8px rgba(60,64,67,0.1);
  --elevation-1: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --elevation-2: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
}
.nav-tagline .brand-accent { color: var(--accent); }

.nav-menu-wrap { position: relative; }
.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.nav-menu-btn:hover { background: var(--surface-sunken); }
.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-menu-icon { position: relative; }
.nav-menu-icon::before, .nav-menu-icon::after { content: ''; position: absolute; left: 0; }
.nav-menu-icon::before { top: -6px; }
.nav-menu-icon::after { top: 6px; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-icon { background: transparent; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] .nav-menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Desktop default: plain inline link row */
.nav-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover { background: var(--surface-sunken); color: var(--accent); }

/* Mobile: hamburger dropdown */
@media (max-width: 768px) {
  .nav-menu-btn { display: flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    display: grid;
    gap: 2px;
    box-shadow: var(--elevation-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { padding: 10px 14px; font-size: 15px; }
}

/* ===========================================================
   Section shell (replaces the old edge-to-edge tile system)
   =========================================================== */
.tile { padding: var(--section-space) 24px; }
.tile-light, .tile-parchment, .tile-dark, .tile-dark-2 {
  background: var(--surface);
  color: var(--ink);
}
.tile-parchment { background: var(--surface-sunken); }
.tile-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.tile-dark a, .tile-dark-2 a { color: var(--accent); }

/* ===========================================================
   Hero — Google Search Central style: friendly, centered,
   heading + lead + primary button, light surface
   =========================================================== */
.hero {
  padding: 72px 24px 64px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-faint);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-cta-note { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 20px; }

/* Scoreboard artifact card (kept, restyled to Material elevation) */
.hero-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: var(--elevation-1);
  max-width: 440px;
  margin: 48px auto 0;
  text-align: left;
}
.hero-preview-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hero-score-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0;
  text-align: center;
}
.hero-score-num.you { color: var(--accent); }
.hero-score-num.them { color: var(--ink-faint); }
.hero-score-label {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 4px;
}
.hero-score-vs {
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}
.hero-preview-header { margin-bottom: 12px; }
.hero-preview-title { font-size: 12px; color: var(--ink-faint); }
.hero-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.hero-preview-label { font-size: 14px; color: var(--ink-soft); }
.hero-preview-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.hero-preview-pill.win { background: var(--green-bg); color: var(--green); }
.hero-preview-pill.lose { background: var(--red-bg); color: var(--red); }
.hero-preview-fix {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--green);
  line-height: 1.5;
}

/* ===========================================================
   Compare form
   =========================================================== */
.compare-section { padding: 56px 24px; background: var(--surface); }
.compare-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--elevation-1);
  display: grid;
  gap: 18px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
}
.compare-row--secondary {
  grid-template-columns: 1fr;
  align-items: start;
}

.compare-field { display: grid; gap: 7px; }
.compare-field label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-tag {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-bg);
  border: none;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.field-tag--target { color: var(--red); background: var(--red-bg); }
.optional { color: var(--ink-faint); font-style: normal; font-weight: 400; }

.compare-field input {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  padding: 12px 14px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.compare-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.compare-swap {
  font-size: 15px;
  color: var(--ink-faint);
  padding-bottom: 12px;
  text-align: center;
}

.btn-primary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.25px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--elevation-1); }
.btn-primary:active { background: var(--accent-hover); }

.btn-secondary {
  display: block;
  margin: 32px auto 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.25px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background: var(--accent-tint); border-color: var(--accent); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.form-error {
  color: var(--red);
  background: var(--red-bg-soft);
  border: 1px solid var(--red-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  margin: 0;
}

/* ===========================================================
   Loading
   =========================================================== */
.loading { padding: 20px 24px 70px; text-align: center; }
.loading-inner { max-width: 380px; margin: 0 auto; }
.loading-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 16px;
}
.loading-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.loading-bar-fill {
  height: 100%; width: 35%;
  background: var(--accent);
  border-radius: 4px;
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(385%); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner, .loading-bar-fill { animation: none; } }

/* ===========================================================
   Results
   =========================================================== */
.results { padding: 0 24px 80px; }

.results-header {
  max-width: 900px;
  margin: 0 auto 24px;
}

/* Versus "battle card" — the scoreboard framing for the two pages. */
.battle-card {
  position: relative;
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(26,115,232,0.06), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--elevation-1);
}
.battle-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(26,115,232,0.16), transparent 70%);
  pointer-events: none;
}
.battle-arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.fighter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fighter--you { text-align: right; align-items: flex-end; }
.fighter--them { text-align: left; align-items: flex-start; }
.fighter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.fighter--you .fighter-label { background: var(--green-bg); color: var(--green); }
.fighter--them .fighter-label { background: var(--red-bg); color: var(--red); }
.result-url {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.35;
}
.result-url--base { color: var(--green); }
.result-url--target { color: var(--red); }

.vs-wrap { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.results-vs {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(145deg, #2b2c30, #111214);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28), inset 0 1px 1px rgba(255,255,255,0.12);
}
.results-vs::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(26,115,232,0.35);
  animation: vsPulse 2.2s ease-in-out infinite;
}
@keyframes vsPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .results-vs::before { animation: none; }
}

.results-actions {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.results-actions .btn-primary,
.results-actions .btn-secondary {
  margin: 0;
  flex: 0 1 auto;
}

.verdict-banner {
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--ink);
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid rgba(0, 102, 204, 0.16);
  border-radius: var(--radius-lg);
}

/* ===========================================================
   Category accordion (diff "files")
   =========================================================== */
.categories { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }

.category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.category summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  background: var(--surface-sunken);
  user-select: none;
}
.category summary::-webkit-details-marker { display: none; }
.category summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 12px;
  color: var(--ink-faint);
  transition: transform 0.15s ease;
  font-size: 13px;
}
.category[open] summary::before { transform: rotate(90deg); }
.category-name { display: flex; align-items: center; }
.category-stat {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.category-stat .n-win { color: var(--green); }
.category-stat .n-lose { color: var(--red); }

.category-body { border-top: 1px solid var(--line); padding: 20px; }

/* Column header row (shown once per open category) */
.factor-table-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.9fr;
  gap: 14px;
  padding: 0 18px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ===========================================================
   Factor card (table row, styled as a card)
   =========================================================== */
.factor-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.9fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.factor-card:last-child { margin-bottom: 0; }
.factor-card:hover { border-color: var(--ink-faint); }

.factor-name { font-weight: 600; font-size: 16px; letter-spacing: -0.224px; line-height: 1.35; }

.value-col { display: grid; gap: 4px; }
.col-label {
  display: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.value-pill {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  background: var(--surface-sunken);
  color: var(--ink-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.value-pill.win { background: var(--green-bg-soft); color: var(--green); border-color: var(--green-bg); }
.value-pill.lose { background: var(--red-bg-soft); color: var(--red); border-color: var(--red-bg); }
.value-pill.opportunity { background: var(--amber-bg); color: var(--amber); }

.fix-text {
  font-size: 15px;
  letter-spacing: -0.224px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.fix-text.is-fix { color: var(--amber); font-weight: 500; }
.fix-text.is-good { color: var(--green); }

.fix-detail-list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.fix-detail-list li {
  font-size: 16px;
  line-height: 1.55;
  padding: 0;
  position: relative;
}
.fix-detail-list li::before { content: none; }

/* "Current:" reads as the problem line — plain, above the box. */
.fix-detail-list .fd-current {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* "Suggested:" is the action — wrapped in a soft tinted box, echoing
   the screenshot's rounded impact panel. */
.fix-detail-list .fd-suggested {
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.fix-detail-list .fd-label { font-weight: 700; }
.fix-detail-list .fd-current .fd-label { color: var(--red); }
.fix-detail-list .fd-suggested .fd-label { color: var(--green); }
.fix-detail-list .fd-why {
  color: var(--ink-faint);
  font-size: 15px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fix-detail-list .fd-why::before { content: '↳'; color: var(--ink-faint); }

/* Numbered step-by-step list inside a "Suggested:" fix. */
.fd-steps {
  list-style: decimal;
  margin: 10px 0 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 8px;
}
.fd-steps li {
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.fd-steps li::before { content: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-title--breakdown { max-width: 900px; margin: 40px auto 16px; }

.section-sub {
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--ink-faint);
  margin: -6px 0 20px;
}

/* ===========================================================
   Priority Fixes (consolidated)
   =========================================================== */
.fixes-section { max-width: 900px; margin: 0 auto 36px; }
.fixes-list { display: grid; gap: 12px; }

.fix-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--elevation-1);
  transition: box-shadow 0.15s ease;
}
.fix-card:hover { box-shadow: var(--elevation-2); }

/* Left icon box (category glyph) */
.fix-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.fix-card-main { display: grid; gap: 4px; }

.fix-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fix-factor-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--ink);
}
.fix-risk-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.fix-risk-badge.risk-high { background: var(--red-bg); color: var(--red); }
.fix-risk-badge.risk-moderate { background: var(--amber-bg); color: var(--amber); }

.fix-category-tag {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.fix-card-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.fixes-empty {
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}

/* ===========================================================
   Page Speed & Core Web Vitals (Google PageSpeed Insights)
   =========================================================== */
.pagespeed-section { max-width: 900px; margin: 0 auto 28px; }

/* Loading state while the background PSI request runs */
.ps-loading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.ps-loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ps-loading-spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.ps-loading-title { font-weight: 600; font-size: 17px; letter-spacing: -0.374px; }
.ps-loading-step {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 3px;
}
.ps-loading-skeleton { display: grid; gap: 10px; }
.ps-skel-row { display: flex; align-items: center; gap: 14px; }
.ps-skel-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-sunken);
  flex-shrink: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
.ps-skel-bar {
  height: 14px;
  flex: 1;
  border-radius: 7px;
  background: var(--surface-sunken);
  animation: pulse 1.4s ease-in-out infinite;
  animation-delay: 0.2s;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.ps-loading-note {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.55;
  margin: 16px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .ps-loading-spinner, .ps-skel-circle, .ps-skel-bar { animation: none; }
}

.ps-error {
  background: var(--red-bg-soft);
  border: 1px solid var(--red-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--red);
  font-size: 15px;
  line-height: 1.5;
}

.ps-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.ps-score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ps-score-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ps-score-label.mine { color: var(--green); }
.ps-score-label.theirs { color: var(--red); }
.ps-score-url {
  font-size: 12.5px;
  color: var(--ink-faint);
  word-break: break-all;
  margin-top: 2px;
}

.ps-score-circle {
  --pct: 0;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: conic-gradient(var(--ps-color, var(--ink-faint)) calc(var(--pct) * 1%), var(--surface-sunken) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.ps-score-circle::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: var(--surface);
  border-radius: 50%;
}
.ps-score-num {
  position: relative;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.28px;
  color: var(--ink);
}
.ps-score-circle.status-good { --ps-color: var(--green-line); }
.ps-score-circle.status-needs-improvement { --ps-color: #B08900; }
.ps-score-circle.status-poor { --ps-color: var(--red); }

.ps-metrics { display: grid; gap: 10px; }

/* Highlight for the single worst performance gap */
.ps-biggest-issue {
  background: var(--red-bg-soft);
  border: 1px solid var(--red-bg);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.ps-issue-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 8px;
}
.ps-issue-headline {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.374px;
  color: var(--ink);
  margin-bottom: 8px;
}
.ps-issue-text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ps-metric-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.ps-metric-name { font-weight: 600; font-size: 15px; letter-spacing: -0.224px; }
.ps-metric-name small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }
.ps-metric-val {
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  text-align: center;
}
.ps-metric-val.status-good { background: var(--green-bg-soft); color: var(--green); border: 1px solid var(--green-bg); }
.ps-metric-val.status-needs-improvement { background: #FFF8E6; color: #B08900; border: 1px solid #FCEBB0; }
.ps-metric-val.status-poor { background: var(--red-bg-soft); color: var(--red); border: 1px solid var(--red-bg); }
.ps-metric-val.status-none { background: var(--surface-sunken); color: var(--ink-faint); }

.ps-field-note {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 10px;
}

/* ===========================================================
   PageSpeed explanations (hardcoded, not AI)
   =========================================================== */
.ps-explain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.ps-explain-allgood {
  background: var(--green-bg-soft);
  border-color: var(--green-bg);
  margin-top: 16px;
}
.ps-explain-warn {
  background: #FFF8E6;
  border-color: #FCEBB0;
}
.ps-explain-wrap { margin-top: 18px; }
.ps-explain-title {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.374px;
  margin-bottom: 8px;
}
.ps-explain-wrap > .ps-explain-title { margin-bottom: 14px; font-size: 19px; }

.ps-explain-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.ps-explain-list li { margin-bottom: 6px; }
.ps-explain-list li:last-child { margin-bottom: 0; }
.ps-explain-list code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-sunken);
  padding: 1px 5px;
  border-radius: 3px;
}

.ps-explain-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.ps-explain-metric:last-child { margin-bottom: 0; }
.ps-explain-poor { border-left-color: var(--red); }
.ps-explain-needs-improvement { border-left-color: #B08900; }

.ps-explain-metric-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.ps-explain-name { font-weight: 600; font-size: 16px; letter-spacing: -0.224px; }
.ps-explain-badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.ps-explain-badge.status-poor { background: var(--red-bg-soft); color: var(--red); border: 1px solid var(--red-bg); }
.ps-explain-badge.status-needs-improvement { background: #FFF8E6; color: #B08900; border: 1px solid #FCEBB0; }

/* ===========================================================
   AI Review panel
   =========================================================== */
.ai-review {
  max-width: 900px;
  margin: 32px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ai-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}
.ai-review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-review-name { font-weight: 600; font-size: 16px; }
.ai-review-sub { font-size: 13.5px; color: var(--ink-faint); }
.ai-review-body { padding: 22px; display: grid; gap: 18px; }
.ai-comment { display: grid; gap: 6px; }
.ai-comment-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.ai-comment-text { font-size: 16px; letter-spacing: -0.224px; line-height: 1.55; }
.ai-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}
.ai-pill.pill-a { background: var(--green-bg-soft); color: var(--green); border: 1px solid var(--green-bg); }
.ai-pill.pill-b { background: var(--red-bg-soft); color: var(--red); border: 1px solid var(--red-bg); }
.ai-pill.pill-tie { background: var(--amber-bg); color: var(--amber); }
.ai-list { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.ai-list li { margin-bottom: 5px; }
.ai-error, .ai-disabled { font-size: 15px; color: var(--ink-faint); font-style: italic; }

.ai-tip {
  margin: 6px 22px 22px;
  padding: 14px 18px;
  background: var(--accent-tint);
  border: 1px solid rgba(0, 102, 204, 0.16);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ai-tip code {
  font-family: var(--font-mono);
  background: rgba(0, 102, 204, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.ai-tip a { font-weight: 600; white-space: nowrap; }

/* ===========================================================
   Backlink promotion sections
   =========================================================== */
.backlink-note {
  max-width: 900px;
  margin: 32px auto 0;
}
.backlink-note p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.backlink-shop { max-width: 900px; margin: 28px auto 0; }
.backlink-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.backlink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.backlink-card::after { content: '↗'; color: var(--ink-faint); flex-shrink: 0; }
.backlink-card:hover { border-color: var(--accent); }

.combo-cta {
  max-width: 900px;
  margin: 32px auto 0;
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 38px;
  text-align: center;
}
.combo-cta h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0;
}
.combo-cta p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer-disclaimer { border-top: 1px solid var(--line); padding: 22px 24px 0; text-align: center; }
.footer-disclaimer p { max-width: 600px; margin: 0 auto; font-size: 12.5px; color: var(--ink-faint); }

/* ===========================================================
   Print / PDF export
   =========================================================== */
@media print {
  /* Force exact colors everywhere so cards, badges, and accents survive
     the print pipeline instead of dropping to plain black-on-white. */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide the entire marketing page and chrome; show ONLY the results. */
  body > *:not(main) { display: none !important; }
  main > *:not(#results) { display: none !important; }
  .nav, .hero, .compare-section, .loading,
  .site-footer, footer, .results-actions,
  .ai-tip, .backlink-note, .backlink-shop, .combo-cta, .ps-loading {
    display: none !important;
  }

  /* Hide the giant "Full breakdown" section in print. It repeats every
     factor already summarised in Priority Fixes and, expanded, balloons
     the document to 40+ pages — which is both redundant and the trigger
     for Microsoft Print to PDF's 0-byte failure on very long documents.
     The actionable report (Priority Fixes + PageSpeed + AI review) is
     what people actually want to keep. */
  #categories, .section-title--breakdown { display: none !important; }

  html, body { background: #fff !important; margin: 0; padding: 0; }
  #results, .results { display: block !important; padding: 0 !important; margin: 0 !important; }

  /* Keep cards intact across page breaks. */
  .fix-card, .ps-metric-row, .ps-score-card, .ai-comment {
    break-inside: avoid; page-break-inside: avoid;
  }
  .battle-card, .ai-review { break-inside: avoid; }

  /* Neutralize animations/shadows that don't translate to paper. */
  .results-vs::before { animation: none !important; }
  .battle-card, .fix-card, .ai-review, .ps-score-card { box-shadow: none !important; }

  @page { margin: 12mm; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { max-width: none; }
}
@media (max-width: 640px) {
  .compare-row, .compare-row--secondary { grid-template-columns: 1fr; }
  .compare-swap { display: none; }
  .compare-card { padding: 20px; }
  .factor-table-head { display: none; }
  .factor-card { grid-template-columns: 1fr; gap: 8px; }
  .col-label { display: block; }
  .battle-card { padding: 22px 18px; }
  .battle-arena { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .fighter--you, .fighter--them { text-align: center; align-items: center; }
  .vs-wrap { order: 0; }
  .results-actions { flex-direction: column; }
  .results-actions button { width: 100%; }
  .ps-scores { grid-template-columns: 1fr; }
  .ps-metric-row { grid-template-columns: 1fr; gap: 8px; text-align: left; }
}

/* ===========================================================
   Tile content helpers (section headings + feature blocks)
   =========================================================== */
.tile-content { max-width: 760px; margin: 0 auto; text-align: center; }
.tile-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.tile-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 14px;
  color: var(--ink);
}
.tile-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-faint);
  margin: 0 auto 32px;
  max-width: 640px;
}

/* Feature "artifact" mini-card resting inside a section */
.tile-artifact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--elevation-1);
}
.tile-artifact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.tile-artifact-row + .tile-artifact-row { border-top: 1px solid var(--line); }
.tile-artifact-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tile-artifact-pill.win { background: var(--green-bg); color: var(--green); }
.tile-artifact-pill.lose { background: var(--red-bg); color: var(--red); }
.tile-artifact-pill.ok { background: var(--accent-tint); color: var(--accent); }
.tile-artifact code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-sunken); padding: 1px 5px; border-radius: 3px; }

/* ===========================================================
   Section head + utility-card grid (How it works / Reviews / etc)
   =========================================================== */
.section-wrap { max-width: 1080px; margin: 0 auto; padding: var(--section-space) 24px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .tile-eyebrow { text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-head p { font-size: 18px; font-weight: 400; color: var(--ink-faint); margin: 0; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.utility-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s ease;
}
.utility-card:hover { box-shadow: var(--elevation-1); }
.utility-card-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 12px;
}
.utility-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--ink);
}
.utility-card p { font-size: 15px; color: var(--ink-faint); margin: 0; line-height: 1.55; }

/* Icon for the "Who it's for" audience cards */
.who-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.review-stars { color: #fbbc04; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.review-quote { font-size: 16px; line-height: 1.55; letter-spacing: 0; color: var(--ink); margin: 0 0 18px; }
.review-person { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.review-role { font-size: 13px; color: var(--ink-faint); }
.review-placeholder-tag {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 12px;
}

/* ===========================================================
   FAQ — Material list rows
   =========================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
  transition: box-shadow 0.15s ease;
}
.faq-item[open] { box-shadow: var(--elevation-1); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { font-size: 15px; color: var(--ink-soft); line-height: 1.6; padding: 0 0 20px; margin: 0; max-width: 660px; }

/* ===========================================================
   Site footer — Google-style: light surface, top border, columns
   =========================================================== */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); }
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.footer-tagline { font-size: 14px; color: var(--ink-faint); max-width: 260px; line-height: 1.55; }
.footer-col-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 24px; border-top: 1px solid var(--line); }
.footer-disclaimer p {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ===========================================================
   Stats band
   =========================================================== */
.stats-tile { padding: 56px 24px; background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: var(--ink-faint);
}

/* ===========================================================
   Responsive — sections
   =========================================================== */
@media (max-width: 960px) {
  .utility-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tile { padding: 48px 24px; }
  .utility-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  :root { --section-space: 48px; }
  .fix-card { padding: 20px; gap: 14px; }
  .fix-card-icon { width: 44px; height: 44px; font-size: 19px; }
  .fix-factor-name { font-size: 18px; }
}

/* ===========================================================
   Legal / content pages
   =========================================================== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-updated { font-size: 14px; color: var(--ink-faint); margin: 0 0 40px; }
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-page p, .legal-page li { font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.legal-page ul { padding-left: 22px; margin: 0 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { font-weight: 500; }