/* ==========================================================================
   ClaimStack — Base CSS Framework
   AI-powered insurance claim analysis for roofing contractors
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color — Brand */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-primary-dark: #1E40AF;
  --color-secondary: #F59E0B;
  --color-secondary-hover: #D97706;
  --color-secondary-light: #FEF3C7;

  /* Color — Neutral */
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;

  /* Color — Semantic */
  --color-success: #10B981;
  --color-success-light: #D1FAE5;
  --color-error: #EF4444;
  --color-error-light: #FEE2E2;
  --color-warning: #F59E0B;
  --color-warning-light: #FEF3C7;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-body);

  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem);
  --text-2xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem);
  --text-3xl: clamp(1.625rem, 1.4rem + 1vw, 1.875rem);
  --text-4xl: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  --text-5xl: clamp(2.5rem, 1.8rem + 2.8vw, 3.5rem);
  --text-6xl: clamp(3rem, 2rem + 3.5vw, 4.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

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

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --section-padding: clamp(4rem, 3rem + 4vw, 7rem);
  --header-height: 72px;

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

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.25);
  --shadow-card-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 500;
  --z-overlay: 900;
  --z-modal: 1000;
}


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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}


/* --------------------------------------------------------------------------
   3. Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}

p:last-child {
  margin-bottom: 0;
}

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }

.text-muted   { color: var(--color-text-muted); }
.text-light   { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}


/* --------------------------------------------------------------------------
   4. Layout — Container, Section, Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section--sm {
  padding-top: calc(var(--section-padding) * 0.6);
  padding-bottom: calc(var(--section-padding) * 0.6);
}

.section--lg {
  padding-top: calc(var(--section-padding) * 1.4);
  padding-bottom: calc(var(--section-padding) * 1.4);
}

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

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

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Spacing helpers */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mx-auto { margin-left: auto; margin-right: auto; }


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-wide);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

/* Primary */
.btn--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-primary);
  color: #FFFFFF;
}

/* Secondary */
.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-secondary);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--color-text);
}

/* Outline */
.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-primary-light);
}

/* Sizes */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.btn--xl {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* Full width */
.btn--block {
  display: flex;
  width: 100%;
}

/* Disabled */
.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Button with icon arrow */
.btn svg,
.btn .btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg,
.btn:hover .btn-icon {
  transform: translateX(2px);
}


/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card--elevated {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.card--elevated:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  border-color: var(--color-primary);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.25rem;
}

.card__icon--amber {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary-hover);
}

.card__icon--green {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}


/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-label--optional::after {
  content: 'Optional';
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-left: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #D1D5DB;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input--error {
  border-color: var(--color-error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-normal);
}

/* Select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Checkbox / Radio base */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Help / error text */
.form-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
}

/* File upload */
.form-file {
  position: relative;
}

.form-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.form-file__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.form-file:hover .form-file__label {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Inline form row */
.form-row {
  display: flex;
  gap: var(--space-4);
}

.form-row > * {
  flex: 1;
}


/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(250, 250, 248, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.header__logo:hover {
  color: var(--color-text);
}

.header__logo img,
.header__logo svg {
  height: 32px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.header__link:hover,
.header__link--active {
  color: var(--color-text);
}

.header__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.header__menu-toggle:hover {
  background-color: var(--color-border-light);
}

/* Spacer to push content below fixed header */
.header-spacer {
  height: var(--header-height);
}


/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(3rem, 2rem + 4vw, 6rem));
  padding-bottom: clamp(4rem, 3rem + 5vw, 8rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-wide);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero__title span,
.hero__title .highlight {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__proof-avatars {
  display: flex;
}

.hero__proof-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  object-fit: cover;
}

.hero__proof-avatars img:first-child {
  margin-left: 0;
}

/* Hero visual / screenshot */
.hero__visual {
  margin-top: clamp(2rem, 1.5rem + 3vw, 4rem);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
}

.hero__visual img {
  width: 100%;
  display: block;
}

/* Background glow effect */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.06) 0%,
    rgba(37, 99, 235, 0.02) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   10. Section Label / Title / Subtitle
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.section-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--left .section-subtitle {
  margin-left: 0;
}


/* --------------------------------------------------------------------------
   11. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item summary:hover {
  color: var(--color-primary);
}

/* Plus/minus icon */
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: var(--space-4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-base) var(--ease-out);
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
  transform: rotate(180deg);
}

.faq-item__body {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 90%;
}

.faq-item__body p + p {
  margin-top: var(--space-4);
}


/* --------------------------------------------------------------------------
   12. Pricing Table
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  position: relative;
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Featured / popular plan */
.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card--featured:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-2xl);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #FFFFFF;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__plan {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.pricing-card__currency {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-8);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.4;
}

.pricing-card__feature::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-card__feature--muted {
  color: var(--color-text-light);
}

.pricing-card__feature--muted::before {
  opacity: 0.3;
}

.pricing-card .btn {
  width: 100%;
}


/* --------------------------------------------------------------------------
   13. Testimonials / Proof
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
  font-size: 1rem;
}

.testimonial-card__stars::before {
  content: '\2605\2605\2605\2605\2605';
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  flex: 1;
}

.testimonial-card__quote::before {
  content: '\201C';
}

.testimonial-card__quote::after {
  content: '\201D';
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-border-light);
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Stats / social proof bar */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 1.5rem + 3vw, 5rem);
  flex-wrap: wrap;
}

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

.proof-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.proof-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Logo bar */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  flex-wrap: wrap;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity var(--duration-base) var(--ease-out);
}

.logo-bar:hover {
  opacity: 0.6;
}

.logo-bar img {
  height: clamp(20px, 1.5rem + 0.5vw, 32px);
  width: auto;
}


/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(3rem, 2.5rem + 3vw, 5rem);
  padding-bottom: var(--space-8);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer a:hover {
  color: #FFFFFF;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #FFFFFF;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: #FFFFFF;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}


/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--featured {
    transform: scale(1);
  }

  .pricing-card--featured:hover {
    transform: scale(1.01);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 2.5rem + 2vw, 4rem);
    --header-height: 64px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Header — mobile nav */
  .header__nav,
  .header__actions {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  /* Mobile nav open state — add .header--open via JS */
  .header--open .header__nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
  }

  .header--open .header__link {
    padding: var(--space-3) 0;
    font-size: var(--text-base);
  }

  .header--open .header__actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--header-height) + 200px); /* below nav */
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    padding: 0 var(--space-6) var(--space-6);
  }

  /* Hero adjustments */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero__proof {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-10);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* Forms */
  .form-row {
    flex-direction: column;
  }

  /* Proof bar */
  .proof-bar {
    gap: var(--space-8);
  }
}


/* --------------------------------------------------------------------------
   16. Smooth Scroll (already in html reset, but also for JS fallback)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}


/* --------------------------------------------------------------------------
   17. Animations — Fade In
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.animate-fade-in {
  animation: fadeIn 0.5s var(--ease-out) both;
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

/* Delay utilities */
.delay-100 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-200 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-300 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-400 { animation-delay: 400ms; transition-delay: 400ms; }
.delay-500 { animation-delay: 500ms; transition-delay: 500ms; }


/* --------------------------------------------------------------------------
   18. Upload Zone — Drag & Drop PDF Component
   -------------------------------------------------------------------------- */
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: var(--space-10);
  background-color: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.02);
}

/* Drag-over active state — toggle via JS */
.upload-zone--active,
.upload-zone.is-dragover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* Hidden file input */
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-zone__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  transition: transform var(--duration-base) var(--ease-out);
}

.upload-zone:hover .upload-zone__icon {
  transform: translateY(-2px);
}

.upload-zone--active .upload-zone__icon,
.upload-zone.is-dragover .upload-zone__icon {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.upload-zone__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.upload-zone__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.upload-zone__hint {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

.upload-zone__link {
  position: relative;
  z-index: 3;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Upload progress state */
.upload-zone--uploading {
  pointer-events: none;
  border-style: solid;
  border-color: var(--color-primary);
}

.upload-zone__progress {
  width: 100%;
  max-width: 280px;
  height: 6px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-4);
}

.upload-zone__progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out);
}

/* Upload success state */
.upload-zone--success {
  border-color: var(--color-success);
  border-style: solid;
  background-color: var(--color-success-light);
}

.upload-zone--success .upload-zone__icon {
  background-color: var(--color-success);
  color: #FFFFFF;
}

/* File preview list (after upload) */
.upload-zone__files {
  width: 100%;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.upload-zone__file {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.upload-zone__file-name {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone__file-size {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.upload-zone__file-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1.1rem;
  position: relative;
  z-index: 3;
  transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.upload-zone__file-remove:hover {
  color: var(--color-error);
  background-color: var(--color-error-light);
}


/* --------------------------------------------------------------------------
   Misc Utilities
   -------------------------------------------------------------------------- */

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Divider */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge--primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.badge--success {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.badge--warning {
  background-color: var(--color-warning-light);
  color: var(--color-secondary-hover);
}

.badge--error {
  background-color: var(--color-error-light);
  color: var(--color-error);
}

/* Pill / tag */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background-color: var(--color-border-light);
  border-radius: var(--radius-full);
}

/* Tooltip-like accent line at top of card */
.accent-top {
  position: relative;
}

.accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* CTA Section / banner */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #FFFFFF;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 2.5rem + 3vw, 5rem);
}

.cta-section .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.cta-section .section-title {
  color: #FFFFFF;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn--primary {
  background-color: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
}

.cta-section .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-section .btn--outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

/* ========================================
   ADDITIONAL COMPONENT STYLES
   ======================================== */

/* Nav list — horizontal layout */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-list li {
  margin: 0;
}

.header__nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header__nav-list a:hover {
  color: var(--color-primary);
}

/* Founder credential tags */
.founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.founder__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-full, 999px);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.founder__tag:nth-child(2) {
  background: var(--color-secondary);
  color: var(--color-text);
}

.founder__tag:nth-child(3) {
  background: var(--color-success);
  color: #FFFFFF;
}

.founder__tag:nth-child(4) {
  background: var(--color-text);
  color: #FFFFFF;
}

/* Founder section layout */
.founder-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  align-items: start;
  max-width: 800px;
}

@media (max-width: 768px) {
  .founder-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder__tags {
    justify-content: center;
  }
}

/* Final CTA section — stronger presence */
.final-cta {
  text-align: center;
  padding: var(--space-16) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #F0F0EC 100%);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.final-cta p {
  color: var(--color-text);
  font-size: 1.05rem;
  margin-bottom: var(--space-6);
}

.final-cta__phone {
  margin-top: var(--space-5);
  font-size: 1rem;
  color: var(--color-text-muted);
}

.final-cta__phone a {
  color: var(--color-primary);
  text-decoration: none;
}

.final-cta__phone a:hover {
  text-decoration: underline;
}

/* Proof bar refinements */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.proof-bar__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.proof-bar__number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
}

.proof-bar__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .proof-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* Line items table improvements */
.line-items-table {
  width: 100%;
  border-collapse: collapse;
}

.line-items-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.line-items-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.line-items-table tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

.line-items-table td:last-child {
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  white-space: nowrap;
}

/* Guarantee card */
.guarantee-card {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 700px;
  margin: 0 auto;
}

/* Origin story callout */
.origin-callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Step cards number styling */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

/* Comparison card in pricing */
.comparison-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

/* Upload zone refinements */
.upload-zone--hero {
  max-width: 600px;
  margin: var(--space-8) auto 0;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.upload-zone--hero:hover {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.02);
}

/* Checkmark list */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: 1rem;
}

.check-list li::before {
  content: "✅";
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========================================
   PAGE-SPECIFIC COMPONENT STYLES
   ======================================== */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Steps grid */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.steps__item {
  padding: var(--space-6);
}

.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

.steps__heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.steps__item ul {
  padding-left: var(--space-5);
  margin-top: var(--space-3);
}

.steps__item li {
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.steps__closer {
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Problem section */
.problem__body {
  margin-top: var(--space-6);
  font-size: 1.05rem;
  line-height: 1.75;
}

.problem__body p {
  margin-bottom: var(--space-4);
}

.problem__math {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.problem__math li {
  padding: var(--space-2) 0;
  font-size: 1.05rem;
}

.problem__math li strong {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.problem__total {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-5) 0;
}

.problem__total strong {
  color: var(--color-primary);
}

.problem__closer {
  font-size: 1.15rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

/* Catches table */
.catches-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.catches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.catches-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-4);
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.catches-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.catches-table tr:last-child td {
  border-bottom: none;
}

.catches-table tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

.catches-table td:last-child {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  text-align: right;
}

.catches__summary {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--space-6);
}

.catches__cta {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: var(--space-2);
}

/* Free audit section */
.free-audit {
  max-width: 780px;
  margin: 0 auto;
}

.free-audit p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.free-audit__promises {
  display: flex;
  gap: var(--space-6);
  margin: var(--space-5) 0;
}

.free-audit__promise {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 1rem;
}

.free-audit__closer {
  font-size: 1.1rem;
  margin: var(--space-5) 0 var(--space-6);
}

@media (max-width: 768px) {
  .free-audit__promises {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Origin / story section */
.origin {
  font-size: 1.05rem;
  line-height: 1.75;
}

.origin p {
  margin-bottom: var(--space-4);
}

.origin__callout {
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-size: 1.1rem;
  background: var(--color-surface);
}

.origin__callout strong {
  color: var(--color-primary);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: start;
}

.pricing-card {
  padding: var(--space-6);
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full, 999px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.pricing-card__claims {
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--space-3) 0 var(--space-5);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-5);
}

.pricing-card__features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pricing-card__best-for {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footer {
  margin-top: var(--space-8);
  text-align: center;
}

.pricing-footer__deposit {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-footer__compare {
  text-align: left;
  padding: var(--space-6);
  max-width: 700px;
  margin: 0 auto;
}

.pricing-footer__compare h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-4);
}

.pricing-footer__compare p {
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .pricing-card--featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Guarantee section */
.guarantee {
  text-align: center;
}

.guarantee__content {
  text-align: left;
  padding: var(--space-8);
  max-width: 650px;
  margin: var(--space-6) auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.guarantee__content p {
  margin-bottom: var(--space-4);
}

.guarantee__list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.guarantee__list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  font-weight: 600;
}

.guarantee__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* FAQ list */
.faq-list {
  margin-top: var(--space-8);
}

/* Section alt background */
.section--alt {
  background: var(--color-surface);
}

/* Text center utility */
.text-center {
  text-align: center;
}

/* Demo comparison mobile */
@media (max-width: 768px) {
  .demo-comparison {
    grid-template-columns: 1fr !important;
  }
}

/* Founder content layout */
.founder__content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  margin-top: var(--space-6);
  align-items: start;
}

.founder__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.founder__bio h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.founder__bio p {
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .founder__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder__photo {
    max-width: 180px;
    margin: 0 auto;
  }

  .founder__tags {
    justify-content: center;
  }
}

/* Proof bar inner layout */
.proof-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-8) 0;
}

.proof-bar__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.proof-bar__number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
}

.proof-bar__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .proof-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}
