/* ============================================================
   StudySetGo — Brand System & Component Library
   ============================================================ */

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

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-teal: #117C8C;
  --color-teal-dark: #0E6572;
  --color-cyan: #10AED2;
  --color-cyan-light: #3DD8F5;
  --color-navy: #111D2F;
  --color-navy-mid: #1B2E4A;
  --color-deep-blue: #1E1E61;
  --color-white: #FFFFFF;
  --color-off-white: #F7F9FC;
  --color-light-blue: #EDF4FA;
  --color-body: #666678;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-success: #3AD59F;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Gradients */
  --gradient-hero: linear-gradient(68deg, #009FE5, #3AD59F);
  --gradient-navy: linear-gradient(225deg, #1D2AB6, #0D1250);
  --gradient-dark: linear-gradient(203deg, #101C2E, #345B94);
  --gradient-blue-accent: linear-gradient(95deg, #043873, #086AD9);
  --gradient-light: linear-gradient(180deg, #FFFFFF 17%, #B8D8ED 128%);
  --gradient-teal-subtle: linear-gradient(135deg, #117C8C 0%, #10AED2 100%);

  /* Typography */
  --font-heading: 'Rethink Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Font Sizes (fluid clamp) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  --text-3xl: clamp(1.5rem, 2.5vw + 0.5rem, 1.875rem);
  --text-4xl: clamp(1.875rem, 3vw + 0.5rem, 2.25rem);
  --text-5xl: clamp(2.25rem, 4vw + 0.5rem, 3rem);
  --text-6xl: clamp(2.75rem, 5vw + 0.5rem, 3.75rem);

  /* 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 */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --nav-height: 80px;

  /* Borders & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(17, 29, 47, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 29, 47, 0.08);
  --shadow-lg: 0 8px 30px rgba(17, 29, 47, 0.10);
  --shadow-xl: 0 16px 50px rgba(17, 29, 47, 0.12);
  --shadow-card: 0 2px 16px rgba(17, 29, 47, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(17, 29, 47, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--text-6xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-5xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

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

.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-muted); }
.text-white { color: var(--color-white); }
.text-teal { color: var(--color-teal); }
.text-center { text-align: center; }

.label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
}

.subtitle {
  font-size: var(--text-xl);
  color: var(--color-body);
  line-height: 1.6;
  max-width: 640px;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-intro .label {
  margin-bottom: var(--space-3);
  display: block;
}

.section-intro h2 {
  margin-bottom: var(--space-4);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--dark {
  background: var(--gradient-navy);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

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

.section--light {
  background: var(--color-off-white);
}

.section--gradient {
  background: var(--gradient-light);
}

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

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

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

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--col {
  flex-direction: column;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

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

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

.nav__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0.15) saturate(2);
}

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

.nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy-mid);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-teal);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav__link:hover {
  color: var(--color-teal);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-teal-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 124, 140, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-cyan);
}

.btn--secondary:hover {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background: var(--color-off-white);
  color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn--sm {
  padding: 10px 24px;
  font-size: var(--text-xs);
}

.btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Arrow animation on buttons */
.btn .arrow {
  transition: transform var(--transition-base);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  border: 1px solid var(--color-border);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-teal-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-white);
  font-size: 24px;
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-navy);
}

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

/* Feature card (horizontal) */
.card--feature {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.card--feature .card__icon {
  flex-shrink: 0;
}

/* Pricing card */
.card--pricing {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card--pricing.featured {
  border: 2px solid var(--color-teal);
  transform: scale(1.04);
}

.card--pricing.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) 0;
}

.pricing__amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin: var(--space-4) 0 var(--space-1);
}

.pricing__period {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

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

.pricing__features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.pricing__features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing billing toggle */
.pricing-toggle__wrap {
  display: inline-flex;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.pricing-toggle__btn {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.pricing-toggle__btn.active {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(17, 124, 140, 0.25);
}

.pricing-toggle__badge {
  display: inline-block;
  background: var(--color-success);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-20);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero--gradient {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.hero--gradient h1,
.hero--gradient h2 {
  color: var(--color-white);
}

.hero--gradient .subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero--dark {
  background: var(--gradient-dark);
  color: var(--color-white);
}

.hero--dark h1,
.hero--dark h2 {
  color: var(--color-white);
}

.hero--dark .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero--light {
  background: var(--color-off-white);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__content h1 {
  margin-bottom: var(--space-6);
}

.hero__content .subtitle {
  margin-bottom: var(--space-8);
}

/* Grain texture overlay for hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Hero toggle tabs */
.hero__tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-10);
  width: fit-content;
  backdrop-filter: blur(8px);
}

.hero__tab {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero__tab.active {
  background: var(--color-white);
  color: var(--color-teal);
}

.hero__panel {
  display: none;
}

.hero__panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Hero two-column layout */
.hero__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  position: relative;
  z-index: 2;
}

.hero__layout .hero__content {
  flex: 1;
  min-width: 0;
}

.hero__visual {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration {
  width: 100%;
  max-width: 380px;
  height: auto;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero path cards */
.hero__paths {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero__path {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  backdrop-filter: blur(4px);
}

.hero__path-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__path p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.hero__path-badge {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-success);
  color: var(--color-navy);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Highlighted card variant */
.card--highlighted {
  border: 2px solid var(--color-teal);
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.proof-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

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

.proof-bar__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
}

.proof-bar__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal-subtle);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

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

.step__text {
  font-size: var(--text-sm);
  color: var(--color-body);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--color-cyan);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
}

.testimonial__text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-navy-mid);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

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

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
}

.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: var(--text-sm);
}

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

/* Featured testimonial (large) */
.testimonial--featured {
  background: var(--gradient-navy);
  color: var(--color-white);
  border: none;
}

.testimonial--featured::before {
  color: var(--color-cyan);
  opacity: 0.4;
}

.testimonial--featured .testimonial__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-2xl);
}

.testimonial--featured .testimonial__name {
  color: var(--color-white);
}

.testimonial--featured .testimonial__role {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table thead th {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-5) var(--space-6);
  text-align: left;
}

.comparison-table thead th:last-child {
  background: var(--color-teal);
}

.comparison-table tbody td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

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

.comparison-table tbody td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
}

.comparison-table tbody td:last-child {
  background: rgba(17, 124, 140, 0.04);
  color: var(--color-teal);
  font-weight: 600;
}

.comparison-table .highlight {
  color: var(--color-teal);
  font-weight: 700;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq__item {
  border-bottom: 1px solid var(--color-border);
}

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

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

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

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

.faq__answer p {
  color: var(--color-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--gradient-navy);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(16, 174, 210, 0.08);
  top: -200px;
  right: -100px;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  padding-left: 64px;
  padding-bottom: var(--space-8);
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-teal);
}

.timeline__time {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: var(--space-1);
}

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

.timeline__text {
  font-size: var(--text-sm);
  color: var(--color-body);
}

/* ============================================================
   FUNNEL / MULTI-STEP FORM
   ============================================================ */
.funnel {
  max-width: 640px;
  margin: 0 auto;
}

.funnel__progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.funnel__progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.funnel__progress-bar.active {
  background: var(--color-teal);
}

.funnel__step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.funnel__step.active {
  display: block;
}

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

.funnel__subtitle {
  color: var(--color-body);
  margin-bottom: var(--space-8);
}

.funnel__options {
  display: grid;
  gap: var(--space-4);
}

.funnel__option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
}

.funnel__option:hover {
  border-color: var(--color-cyan);
  background: rgba(16, 174, 210, 0.04);
}

.funnel__option.selected {
  border-color: var(--color-teal);
  background: rgba(17, 124, 140, 0.06);
}

.funnel__option-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-teal-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  flex-shrink: 0;
}

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

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-navy);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(17, 124, 140, 0.1);
}

.form-group input::placeholder {
  color: var(--color-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__logo img {
  height: 28px;
  filter: brightness(0) invert(1);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.newsletter input {
  flex: 1;
  padding: 14px var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--color-teal);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-narrow { max-width: var(--max-width-narrow); }
.max-w-640 { max-width: 640px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__visual { flex: 0 0 300px; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding: var(--space-16) 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  }

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

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

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-8);
    gap: var(--space-6);
    border-top: 1px solid var(--color-border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

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

  .comparison-table {
    font-size: var(--text-sm);
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: var(--space-3) var(--space-3);
  }

  .proof-bar__inner {
    gap: var(--space-8);
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .testimonial--featured .testimonial__text {
    font-size: var(--text-lg);
  }

  .hero__tabs {
    width: 100%;
  }

  .hero__tab {
    flex: 1;
    text-align: center;
  }

  .card--feature {
    flex-direction: column;
  }

  .hero__layout {
    flex-direction: column;
  }

  .hero__visual {
    display: none;
  }

  .nav__logo img {
    height: 34px;
  }

  .hero__path {
    padding: var(--space-3) var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

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