/* Reset + base typography */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.has-compare-bar { padding-bottom: 56px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-2); color: var(--secondary); line-height: 1.2; font-family: var(--font-display); }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-sans); }
p { margin: 0 0 var(--space-3); }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Phase 31 — visible only when focused (keyboard/screen-reader users
   tabbing from the top of the page skip straight to <main>). */
.skip-link {
  position: absolute;
  top: -48px; left: 0;
  z-index: 200;
  background: var(--secondary);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
}
