/* ===== Design tokens ===== */
:root {
  /* Color */
  --c-primary: #2563EB;
  --c-primary-dark: #1E40AF;
  --c-primary-light: #DBEAFE;
  --c-accent: #F97316;
  --c-accent-dark: #EA580C;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F8FAFC;
  --c-bg-section: #F1F5F9;
  --c-text: #0F172A;
  --c-text-soft: #475569;
  --c-text-mute: #64748B;
  --c-border: #E2E8F0;
  --c-border-strong: #CBD5E1;
  --c-success: #16A34A;
  --c-error: #DC2626;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  /* 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;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.25);
  --shadow-accent: 0 8px 24px rgba(249, 115, 22, 0.32);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 64px;
  --sticky-cta-h: 72px;
}

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

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

html {
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--c-primary-dark);
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ===== Focus visible ===== */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
}

p {
  color: var(--c-text-soft);
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

@media (min-width: 480px) {
  .container,
  .container-narrow {
    padding-left: var(--sp-5);
    padding-right: var(--sp-5);
  }
}

@media (min-width: 768px) {
  .container,
  .container-narrow {
    padding-left: var(--sp-8);
    padding-right: var(--sp-8);
  }
}

.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;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.no-scroll {
  overflow: hidden;
}
