/* ============================================
   ADHD Business Builder - Landing Page
   Aesthetic: Lisa Frank on a mellow day
   Fonts: Bricolage Grotesque (display) + Nunito (body)
   Palette: Sunset gradient, warm pinks, soft purples,
            teal accents, coral pops
   ============================================ */

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

:root {
  /* Gradient palette */
  --gradient-hero: linear-gradient(135deg, #f9a8d4 0%, #f0abfc 35%, #c4b5fd 65%, #93c5fd 100%);
  --gradient-warm: linear-gradient(135deg, #fecdd3 0%, #fde68a 100%);
  --gradient-cool: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 100%);
  --gradient-coral: linear-gradient(135deg, #fda4af 0%, #f9a8d4 100%);
  --gradient-teal: linear-gradient(135deg, #99f6e4 0%, #93c5fd 100%);
  --gradient-text: linear-gradient(135deg, #db2777, #9333ea, #2563eb);

  /* Solid colors */
  --color-bg: #fef7ff;
  --color-bg-alt: #fdf2f8;
  --color-surface: #ffffff;
  --color-text: #3b1f4a;
  --color-text-secondary: #6b4d7a;
  --color-heading: #2d1340;
  --color-accent: #d946ef;
  --color-accent-hover: #c026d3;
  --color-coral: #f472b6;
  --color-teal: #2dd4bf;
  --color-purple: #a78bfa;
  --color-border: rgba(168, 85, 247, 0.12);

  /* Card tints */
  --tint-pink: #fdf2f8;
  --tint-purple: #faf5ff;
  --tint-blue: #eff6ff;
  --tint-teal: #f0fdfa;
  --tint-coral: #fff1f2;
  --tint-yellow: #fefce8;

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  /* Sizing */
  --max-width: 1080px;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --border-radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-pill);
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}

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

/* --- Screen-reader only --- */
.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;
}

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

/* --- Focus styles (a11y) --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

h1 em, h2 em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 620px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  line-height: 1.4;
  position: relative;
}

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

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.4);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* --- Sections --- */
.section {
  padding: var(--space-2xl) 0;
}

/* ========================
   HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 247, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-pill);
  transition: background 0.25s, color 0.25s;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 2rem);
  overflow: hidden;
}

/* Floating blobs for depth */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(251, 191, 36, 0.35);
  top: -100px;
  right: -100px;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(45, 212, 191, 0.3);
  bottom: -80px;
  left: -80px;
  animation: blobFloat 10s 2s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
  opacity: 0.7;
  margin-bottom: var(--space-md);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 1rem;
  border-radius: var(--border-radius-pill);
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  color: var(--color-heading);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text);
  opacity: 0.85;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero .btn {
  animation: fadeUp 0.7s 0.3s ease both;
  background: var(--color-heading);
  box-shadow: 0 4px 20px rgba(45, 19, 64, 0.25);
}

.hero .btn:hover {
  box-shadow: 0 6px 28px rgba(45, 19, 64, 0.35);
}

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

/* ========================
   PROBLEM SECTION
   ======================== */
.section-problem {
  background: var(--color-bg);
}

.section-problem h2 {
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.problem-card:hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
  transform: translateY(-3px);
}

.problem-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: var(--space-sm);
  color: var(--color-coral);
  background: var(--tint-pink);
}

.problem-card:nth-child(2) .problem-icon {
  color: var(--color-purple);
  background: var(--tint-purple);
}

.problem-card:nth-child(3) .problem-icon {
  color: var(--color-teal);
  background: var(--tint-teal);
}

.problem-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-heading);
}

.problem-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ========================
   WHAT THIS IS (3-in-1)
   ======================== */
.section-what {
  background: var(--color-bg-alt);
}

.section-what h2 {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.what-card {
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.what-card:hover {
  transform: translateY(-3px);
}

.what-card-1 {
  background: var(--tint-pink);
  border-color: rgba(244, 114, 182, 0.2);
}
.what-card-1:hover { box-shadow: 0 8px 32px rgba(244, 114, 182, 0.15); }

.what-card-2 {
  background: var(--tint-purple);
  border-color: rgba(167, 139, 250, 0.2);
}
.what-card-2:hover { box-shadow: 0 8px 32px rgba(167, 139, 250, 0.15); }

.what-card-3 {
  background: var(--tint-teal);
  border-color: rgba(45, 212, 191, 0.2);
}
.what-card-3:hover { box-shadow: 0 8px 32px rgba(45, 212, 191, 0.15); }

.what-emoji {
  display: block;
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.what-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.what-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ========================
   HOW IT WORKS (Steps)
   ======================== */
.section-how {
  background: var(--color-bg);
}

.section-how h2 {
  margin-bottom: var(--space-sm);
}

.section-how .section-intro {
  margin-bottom: var(--space-xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.step-card {
  border-radius: var(--border-radius);
  padding: var(--space-md);
  color: #fff;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.8), transparent 60%);
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-card-1 { background: linear-gradient(150deg, #ec4899, #f472b6); }
.step-card-2 { background: linear-gradient(150deg, #a855f7, #c084fc); }
.step-card-3 { background: linear-gradient(150deg, #6366f1, #818cf8); }
.step-card-4 { background: linear-gradient(150deg, #14b8a6, #2dd4bf); }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
}

.step-card h3 {
  color: #fff;
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.7;
}

.steps-footnote {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========================
   WHAT MAKES IT DIFFERENT
   ======================== */
.section-different {
  background: var(--color-bg-alt);
}

.section-different h2 {
  margin-bottom: var(--space-sm);
}

.section-different .section-intro {
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

.feature h3 {
  margin-bottom: 0.3rem;
  color: var(--color-heading);
}

.feature p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ========================
   WHO IT'S FOR
   ======================== */
.section-who {
  background: var(--color-bg);
}

.section-who h2 {
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.who-list {
  list-style: none;
  max-width: 680px;
}

.who-list li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 2rem;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.7;
}

.who-list li:last-child {
  border-bottom: none;
}

.who-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.who-list li:nth-child(1)::before { background: var(--color-coral); }
.who-list li:nth-child(2)::before { background: var(--color-accent); }
.who-list li:nth-child(3)::before { background: var(--color-purple); }
.who-list li:nth-child(4)::before { background: #6366f1; }
.who-list li:nth-child(5)::before { background: var(--color-teal); }

/* ========================
   WAITLIST
   ======================== */
.section-waitlist {
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.3), transparent 70%);
  pointer-events: none;
}

.section-waitlist .container {
  position: relative;
}

.section-waitlist h2 {
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.section-waitlist .section-intro {
  color: var(--color-text);
  opacity: 0.8;
  margin: 0 auto var(--space-lg);
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.waitlist-label {
  display: block;
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.waitlist-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid rgba(45, 19, 64, 0.15);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.waitlist-input::placeholder {
  color: rgba(59, 31, 74, 0.4);
}

.waitlist-input:focus,
.waitlist-input:focus-visible {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.9);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-group {
  display: flex;
  gap: var(--space-xs);
}

.form-group input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid rgba(45, 19, 64, 0.15);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.form-group input[type="email"]::placeholder {
  color: rgba(59, 31, 74, 0.4);
}

.form-group input[type="email"]:focus,
.form-group input[type="email"]:focus-visible {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.9);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-group .btn-primary {
  background: var(--color-heading);
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 16px rgba(45, 19, 64, 0.2);
}

.form-group .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(45, 19, 64, 0.3);
}

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

.form-help {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  text-align: center;
}

.form-status {
  margin-top: var(--space-sm);
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #991b1b;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .problem-grid,
  .what-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

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

@media (max-width: 600px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

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

  .form-group {
    flex-direction: column;
  }

  .form-group .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ========================
   REDUCED MOTION (a11y)
   ======================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-blob {
    display: none;
  }
}

/* ========================
   HIGH CONTRAST (a11y)
   ======================== */
@media (prefers-contrast: high) {
  :root {
    --color-text-secondary: #2d1340;
    --color-border: rgba(168, 85, 247, 0.3);
  }

  .problem-card,
  .what-card,
  .feature {
    border-width: 2px;
  }

  .step-card p {
    color: #ffffff;
  }

  .hero-sub {
    opacity: 1;
  }

  .section-waitlist .section-intro {
    opacity: 1;
  }
}
