/* base.css — SpinAdvisor (Santiago) */
:root {
  --bg-dark: #1B1F27;
  --surface-dark: #242A35;
  --accent: #5B8DEF;
  --bg-light: #F4F5F7;
  --text-on-light: #171A21;
  --text-on-dark: #E7EAF0;
  --warn: #B4531F;
  --success: #2C6E5B;
  --radius: 6px;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --max-w: 1160px;
  --gutter: 24px;
}

@media (max-width: 600px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The [hidden] attribute must always win over component display rules below
   (e.g. .age-gate sets display:flex, which otherwise ties in specificity
   with the UA [hidden] rule and can leave the overlay visible). */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,0.12); font-variant-numeric: tabular-nums; }
th { font-family: var(--font-heading); font-weight: 600; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #101214; padding: 10px 16px; z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary { background: var(--accent); color: #101214; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--text-on-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { }
  body:not([data-force-light]) .card { background: #242A35; }
}
