/* ==========================================================================
   PEEL Design System - style.css
   An editorial, nature-inspired design system for the PEEL self-discovery app
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #174F27;
  --color-primary-dark: #0E3319;
  --color-primary-light: #1E6633;
  --color-text: #252525;
  --color-text-secondary: #626964;
  --color-text-muted: #A58282;
  --color-background: #F7F7F7;
  --color-surface: #FFFFFF;
  --color-accent: #B4F1BD;
  --color-accent-hover: #9AE8A5;
  --color-button-results: #506352;
  --color-grey-na: #D9D9D9;
  --color-grey-content: #A58282;
  --color-grey-fill: #626964;
  --color-border: #E5E5E5;
  --color-overlay: rgba(0, 0, 0, 0.5);

  /* Shadow */
  --shadow-card: 1px 1px 2px rgba(76, 76, 76, 0.1);
  --shadow-card-hover: 2px 2px 8px rgba(76, 76, 76, 0.15);
  --shadow-elevated: 0 4px 16px rgba(76, 76, 76, 0.12);
  --shadow-nav: 0 1px 4px rgba(76, 76, 76, 0.08);

  /* Typography */
  --font-headline: 'Instrument Serif', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes - Mobile First (rem) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 2rem;       /* 32px */
  --text-4xl: 2.5rem;     /* 40px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Spacing */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.25rem;    /* 20px */
  --space-xl: 1.5rem;     /* 24px */
  --space-2xl: 2rem;      /* 32px */
  --space-3xl: 3rem;      /* 48px */
  --space-4xl: 4rem;      /* 64px */
  --space-5xl: 6rem;      /* 96px */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1440px;
  --nav-height: 64px;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. Dark Mode Tokens
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #2D8B47;
    --color-primary-dark: #174F27;
    --color-primary-light: #3CA85C;
    --color-text: #F0F0F0;
    --color-text-secondary: #B0B5B1;
    --color-text-muted: #C4A8A8;
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-accent: #2D6B35;
    --color-accent-hover: #3A8A46;
    --color-button-results: #6B8B6D;
    --color-grey-na: #3A3A3A;
    --color-grey-content: #C4A8A8;
    --color-grey-fill: #8A8F8B;
    --color-border: #333333;
    --color-overlay: rgba(0, 0, 0, 0.7);

    --shadow-card: 1px 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 2px 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-nav: 0 1px 4px rgba(0, 0, 0, 0.25);
  }
}

/* ==========================================================================
   3. CSS Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

/* ==========================================================================
   4. Typography System
   ========================================================================== */

/* Headlines - Instrument Serif */
.headline-xl,
.headline-lg,
.headline-md,
.headline-sm {
  font-family: var(--font-headline);
  font-weight: 400;
  color: var(--color-text);
}

.headline-xl {
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: var(--text-3xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.headline-md {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.headline-sm {
  font-size: var(--text-xl);
  line-height: 1.25;
}

/* Body - Work Sans */
.body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
}

.body-md {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
}

/* Labels */
.label-lg {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.label-md {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.label-sm {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Font weight utilities */
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Italic for Instrument Serif */
.headline-italic {
  font-family: var(--font-headline);
  font-style: italic;
}

/* Responsive typography */
@media (min-width: 768px) {
  .headline-xl {
    font-size: var(--text-5xl);
  }

  .headline-lg {
    font-size: var(--text-4xl);
  }

  .headline-md {
    font-size: var(--text-3xl);
  }

  .headline-sm {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  .headline-xl {
    font-size: var(--text-6xl);
  }

  .headline-lg {
    font-size: var(--text-5xl);
  }
}

/* ==========================================================================
   5. Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

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

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

.section {
  padding-block: var(--space-3xl);
}

.section--lg {
  padding-block: var(--space-4xl);
}

.section--xl {
  padding-block: var(--space-5xl);
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Visibility */
.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;
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.nav--scrolled {
  box-shadow: var(--shadow-nav);
}

.nav--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
}

.nav--transparent.nav--scrolled {
  background-color: var(--color-background);
  border-bottom-color: var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav__logo {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

/* Mobile menu toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-background);
  padding: var(--space-2xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-xl);
  z-index: 99;
}

.nav__mobile-menu--open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-sm);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xl);
  padding-block: var(--space-3xl);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero__title {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-md);
  width: 100%;
  max-width: 360px;
}

.hero__image {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hero__phone-mockup {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.hero__badge-icon {
  width: 20px;
  height: 20px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: none;
  }

  .hero__image {
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4xl);
  }

  .hero__content {
    flex: 1;
    max-width: 560px;
  }

  .hero__title {
    font-size: var(--text-6xl);
    max-width: 14ch;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__image {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

/* Base card - Sharp corners, editorial feel */
.card {
  background-color: var(--color-surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

/* Card with accent top border */
.card--accent {
  border-top: 3px solid var(--color-primary);
}

/* Card with full green background */
.card--primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.card--primary .card__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* Card with light green background */
.card--accent-bg {
  background-color: var(--color-accent);
  color: var(--color-text);
}

/* Card variants */
.card--sm {
  padding: var(--space-md);
}

.card--lg {
  padding: var(--space-2xl);
}

/* Card inner elements */
.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

.card__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.card__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card__number {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.card__image {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-md);
}

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

/* ==========================================================================
   9. Feature Cards / Grid
   ========================================================================== */

.features {
  background-color: var(--color-background);
}

.features__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.feature-card__title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  line-height: 1.25;
}

.feature-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Bento grid layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid__item--wide {
    grid-column: span 2;
  }

  .bento-grid__item--tall {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   10. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

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

/* Secondary / outline button */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

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

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

.btn--ghost:hover {
  background-color: rgba(23, 79, 39, 0.06);
}

/* Accent button */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
}

/* Results button */
.btn--results {
  background-color: var(--color-button-results);
  color: #FFFFFF;
}

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

/* Dark button */
.btn--dark {
  background-color: var(--color-text);
  color: #FFFFFF;
}

.btn--dark:hover {
  background-color: #3A3A3A;
}

/* White button */
.btn--white {
  background-color: #FFFFFF;
  color: var(--color-primary);
}

.btn--white:hover {
  background-color: var(--color-accent);
}

/* Button sizes */
.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

/* Pill button (action pill) */
.btn--pill {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
}

/* Button icon */
.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn__icon--right {
  margin-left: var(--space-xs);
}

/* App store buttons */
.btn--app-store {
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 24px;
  gap: var(--space-sm);
}

.btn--app-store:hover {
  background-color: #1a1a1a;
}

.btn--app-store img {
  height: 24px;
  width: auto;
}

/* ==========================================================================
   11. Testimonial Section
   ========================================================================== */

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-2xl);
}

.testimonial-card__quote {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

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

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

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: #F5A623;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   12. FAQ Accordion
   ========================================================================== */

.faq {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

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

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-xl) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq__icon::before {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq__item--open .faq__answer {
  max-height: 500px;
  padding-bottom: var(--space-xl);
}

.faq__answer-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.footer {
  background-color: var(--color-text);
  color: #FFFFFF;
  padding-block: var(--space-4xl) var(--space-2xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 300px;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.footer__nav-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  color: #FFFFFF;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(180, 241, 189, 0.08);
}

.footer__bottom {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer__bottom-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.5fr 2fr;
  }

  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   14. Legal Pages (Privacy, Terms)
   ========================================================================== */

.legal {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.legal__header {
  margin-bottom: var(--space-3xl);
}

.legal__title {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.legal__date {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

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

.legal__content h2 {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal__content h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal__content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal__content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal__content li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xs);
}

.legal__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (min-width: 768px) {
  .legal__title {
    font-size: var(--text-4xl);
  }
}


/* ==========================================================================
   16. CTA Section
   ========================================================================== */

.cta-section {
  background-color: var(--color-primary);
  color: #FFFFFF;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.cta-section__title em {
  font-style: italic;
}

.cta-section__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2xl);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .cta-section__title {
    font-size: var(--text-4xl);
  }

  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================================================
   17. How It Works / Steps
   ========================================================================== */

.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  counter-increment: step;
  flex-shrink: 0;
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  color: var(--color-accent);
  line-height: 1;
  min-width: 56px;
}

.step__number::before {
  content: counter(step, decimal-leading-zero);
}

.step__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step__title {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
}

.step__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   18. Stats / Metrics Row
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat__value {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat__value {
    font-size: var(--text-4xl);
  }
}

/* ==========================================================================
   19. Scroll Animations
   ========================================================================== */

/* Fade in up */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }

/* Fade in only */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Slide in from left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Slide in from right */
.slide-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .fade-in,
  .scale-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-indicator {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   20. Utility Classes
   ========================================================================== */

/* Color utilities */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: #FFFFFF; }
.text-accent { color: var(--color-accent); }

.bg-primary { background-color: var(--color-primary); }
.bg-surface { background-color: var(--color-surface); }
.bg-background { background-color: var(--color-background); }
.bg-accent { background-color: var(--color-accent); }

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Width utilities */
.w-full { width: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }
.mx-auto { margin-inline: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-border);
  border: none;
  margin-block: var(--space-2xl);
}

/* Tag / Badge */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.tag--outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Input fields */
.input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(23, 79, 39, 0.1);
}

.input::placeholder {
  color: var(--color-grey-na);
}

/* ==========================================================================
   20.5 Small Screen Refinements
   ========================================================================== */

@media (max-width: 479px) {
  .container {
    padding-inline: var(--space-md);
  }

  .hero__inner {
    padding-block: var(--space-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__scroll-indicator {
    display: none;
  }

  .section--lg {
    padding-block: var(--space-3xl);
  }

  .section--xl {
    padding-block: var(--space-3xl);
  }

  .stat__value {
    font-size: var(--text-2xl);
  }

  .step {
    gap: var(--space-md);
  }

  .step__number {
    font-size: var(--text-3xl);
    min-width: 44px;
  }

  .testimonial-card {
    padding: var(--space-xl);
  }

  .cta-section__title {
    font-size: var(--text-2xl);
  }

  .btn--lg {
    padding: 16px 28px;
    font-size: var(--text-sm);
  }
}

/* ==========================================================================
   21. Responsive Visibility
   ========================================================================== */

@media (max-width: 639px) {
  .hide-mobile { display: none; }
}

@media (min-width: 640px) and (max-width: 767px) {
  .hide-sm { display: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hide-md { display: none; }
}

@media (min-width: 1024px) {
  .hide-lg { display: none; }
}

@media (max-width: 767px) {
  .show-md-up { display: none; }
}

@media (max-width: 1023px) {
  .show-lg-up { display: none; }
}

/* ==========================================================================
   22. Print Styles
   ========================================================================== */

@media print {
  .nav,
  .cookie-banner,
  .footer__social,
  .hero__scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
