/* ==========================================================================
   Base — design tokens, reset, base typography, layout primitives, global
   chrome (footer, CTA bands, stars) and the site-wide reduced-motion opt-out.
   Loaded first; everything else builds on these.
   ========================================================================== */

:root {
  /* Neutral black + grey shades (from the deployed getfiltru.com). */
  --color-bg: #0a0a0a;
  /* page — black */
  --color-surface: #161616;
  /* inset panels / cards */
  --color-surface-2: #1f1f1f;
  /* nested / hover */
  --color-text: #fafafa;
  /* near-white (headings, emphasis) */
  --color-body: rgba(250, 250, 250, 0.85);
  /* body copy — white at 0.85 opacity */
  --color-muted: #a3a3a3;
  /* secondary text */
  --color-faint: #8a8a8a;
  /* dim labels (>=4.5:1 on #0a0a0a for WCAG AA) */
  --color-border: #292929;
  /* hairline on dark */
  --color-border-strong: #3a3a3a;

  /* Brand orange — the only accent colour, for interactive elements only. */
  --color-accent: #f5a622;
  --color-accent-light: #f7ba53;
  --color-accent-dark: #da8c0a;
  --color-accent-ink: #191307;
  /* text on orange buttons */

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ring-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --container: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", sans-serif;
}

/* ------------------------------ Reset / base ---------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  /* Fluid base type (Utopia-style). Tuned to equal exactly 16px at a 1720px
     viewport, so the existing design is preserved there; scales within bounds
     (14.5px small screens → 18.5px very wide). All rem sizes follow. */
  font-size: clamp(14.5px, calc(9.12px + 0.4vw), 18.5px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--color-text);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  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;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
}

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

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section--surface {
  background: var(--color-surface);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 18px;
}

/* Accent-tinted key words inside headings (brand signature). */
.hl {
  color: var(--color-accent);
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--color-body);
  max-width: 46ch;
}

/* Rating stars — the one non-text indicator kept in the accent colour. */
.stars {
  color: var(--color-accent);
  letter-spacing: 2px;
}

/* ------------------------------ CTA bands ------------------------------- */
.band {
  text-align: center;
}

.band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 20ch;
  margin-inline: auto;
}

.band p {
  color: var(--color-body);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.1rem;
}

.final-cta__note {
  color: var(--color-faint);
  font-size: 0.95rem;
  margin-top: 10px;
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: 44px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.site-footer .footer__copy {
  color: var(--color-faint);
  font-size: 0.85rem;
  margin: 0;
}

/* ------------------------- Global reduced-motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}