/* HPR Solar design tokens (design.md §4, §5, §6, §8, §11) */
:root {
  /* Brand palette */
  --hpr-blue-950: #071B3A;
  --hpr-blue-900: #0A2A69;
  --hpr-blue-700: #0C4BB5;
  --hpr-blue-600: #0A63D8;
  --hpr-blue-100: #E8F1FF;
  --hpr-orange-500: #FF9B1A;
  --hpr-orange-600: #EF7A13;
  --hpr-magenta-600: #A42B7B;
  --hpr-coral-500: #EB4D49;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-page: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F0F4F8;
  --color-border: #DCE3EC;
  --color-muted: #65748B;
  --color-text: #162338;
  --color-heading: #0B1730;
  --color-inverse: #FFFFFF;
  --color-success: #18794E;
  --color-warning: #9A5B00;
  --color-error: #B42318;

  /* Gradients */
  --gradient-brand: linear-gradient(110deg, #A42B7B 0%, #EB4D49 52%, #FF9B1A 100%);
  --gradient-solar: linear-gradient(120deg, #0A2A69 0%, #0A63D8 100%);
  --gradient-sunrise: linear-gradient(135deg, #FF9B1A 0%, #EF7A13 100%);
  --gradient-dark: linear-gradient(135deg, #071B3A 0%, #0A2A69 100%);

  /* Type */
  --font-heading: "Manrope", "Arial", sans-serif;
  --font-body: "Inter", "Arial", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --text-display: clamp(2.75rem, 5vw, 4.75rem);
  --text-h2: clamp(2.1rem, 3.9vw, 3.5rem);
  --text-h3: clamp(1.5rem, 2.2vw, 1.875rem);
  --text-h4: clamp(1.25rem, 1.6vw, 1.4rem);
  --text-lead: clamp(1.0625rem, 1.3vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-eyebrow: 0.78rem;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shape */
  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-control: 12px;
  --radius-pill: 999px;

  /* Elevation */
  --border-subtle: 1px solid var(--color-border);
  --shadow-card: 0 8px 28px rgb(7 27 58 / 7%);
  --shadow-hover: 0 16px 40px rgb(7 27 58 / 12%);
  --shadow-nav: 0 8px 30px rgb(7 27 58 / 8%);
  --focus-ring: 0 0 0 3px rgb(10 99 216 / 28%);

  /* Motion */
  --dur-fast: 180ms;
  --dur-standard: 280ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Dark chapters */
  --on-dark: rgb(232 241 255 / 78%);
  --on-dark-muted: rgb(232 241 255 / 60%);
  --on-dark-line: rgb(255 255 255 / 12%);
  --surface-dark:
    radial-gradient(70% 60% at 85% 10%, rgb(255 155 26 / 10%), transparent 70%),
    radial-gradient(80% 70% at 0% 100%, rgb(10 99 216 / 24%), transparent 70%),
    var(--gradient-dark);
  --grid-dark:
    linear-gradient(rgb(232 241 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(232 241 255 / 5%) 1px, transparent 1px);

  /* Layout */
  --container: 77.5rem;
  --container-wide: 90rem;
  --gutter: 1rem;
  --header-h: 84px;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.25rem;
    --header-h: 92px;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 1.5rem;
    --header-h: 100px;
  }
}
