/* ============================================================
   Elera Rowan — Design System
   Warm, feminine palette. Soft rose + sage + cream.
   ============================================================ */

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

:root {
  /* Brand */
  --rose:        #C4596E;
  --rose-dark:   #A8445A;
  --rose-light:  #F4DDE3;
  --rose-50:     #FDF2F5;
  --rose-100:    #FADCE3;

  --sage:        #7E9B8A;
  --sage-dark:   #5E7D6D;
  --sage-light:  #E8F0EB;

  --cream:       #FBF8F4;
  --warm-white:  #FFFFFF;
  --blush:       #FFF5F7;

  /* Neutrals */
  --text:        #2D2A32;
  --text-secondary: #5A5662;
  --text-muted:  #8E8A96;
  --border:      #E8E4ED;
  --border-light:#F0ECF4;
  --bg:          #FBF8F4;
  --bg-white:    #FFFFFF;

  /* Status */
  --green:       #4CA77A;
  --green-bg:    #E8F5EE;
  --green-text:  #2E7D57;
  --gold:        #D4A843;
  --gold-bg:     #FFF8E7;
  --red:         #D4646A;

  /* Typography */
  --font:        'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  /* Radius */
  --radius:      0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(45, 42, 50, 0.06);
  --shadow:      0 2px 8px rgba(45, 42, 50, 0.08);
  --shadow-lg:   0 8px 24px rgba(45, 42, 50, 0.12);
  --shadow-glow: 0 0 0 3px rgba(196, 89, 110, 0.15);

  /* Motion */
  --transition:  200ms ease;
  --transition-slow: 400ms ease;
}

body {
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); }

.hidden { display: none !important; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.serif { font-family: var(--font-serif); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--rose);
  color: white;
}
.btn-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover {
  color: var(--rose);
  background: var(--rose-50);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Form inputs ────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--rose);
  box-shadow: var(--shadow-glow);
}

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

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1.5rem;
}
.nav-brand { margin-right: auto; }

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--rose); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-light);
  margin-left: 0.25rem;
}
.nav-social a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--rose); }

.nav-cta {
  display: inline-flex;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta {
    display: inline-flex;
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 100;
    animation: navSlideDown 0.25s ease;
  }

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

  .nav-links.open li {
    list-style: none;
  }

  .nav-links.open li:not(.nav-social) {
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.open li:not(.nav-social) a {
    display: flex;
    align-items: center;
    padding: 0.875rem 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
  }

  .nav-links.open li:not(.nav-social) a:hover,
  .nav-links.open li:not(.nav-social) a.active {
    color: var(--rose);
  }

  .nav-links.open .nav-social {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: none;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links.open .nav-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--text-muted);
    transition: all var(--transition);
  }

  .nav-links.open .nav-social a:hover {
    background: var(--rose-50);
    color: var(--rose);
  }
}


/* ============================================================
   SCROLL ANIMATIONS — Light fade-up on scroll
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--rose-50);
  color: var(--rose);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rose-100);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero .btn {
  min-width: 260px;
}


/* ============================================================
   FEATURES / HOW IT WORKS
   ============================================================ */
.features {
  padding: 4rem 0;
}

.features-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.features-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon.rose { background: var(--rose-light); color: var(--rose); }
.feature-icon.sage { background: var(--sage-light); color: var(--sage-dark); }
.feature-icon.gold { background: var(--gold-bg); color: var(--gold); }

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    display: flex;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem;
  }

  .feature-icon {
    margin: 0;
    flex-shrink: 0;
  }
}


/* ============================================================
   REVIEWS CAROUSEL
   ============================================================ */
.reviews-section {
  padding: 4rem 0;
  background: var(--bg-white);
  overflow: hidden;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: grab;
}

.reviews-track.dragging {
  transition: none;
  cursor: grabbing;
}

.review-card {
  flex: 0 0 calc(33.333% - 0.833rem);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.875rem;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose-dark);
  flex-shrink: 0;
}

.review-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.review-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.carousel-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
  box-shadow: var(--shadow-lg);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--rose);
  width: 24px;
  border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
  .review-card {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

@media (max-width: 640px) {
  .review-card {
    flex: 0 0 calc(100% - 0rem);
  }

  .carousel-btn { display: none; }
}


/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.blog-card-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img svg {
  opacity: 0.4;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.blog-card-title a {
  color: inherit;
}
.blog-card-title a:hover {
  color: var(--rose);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 4rem 0;
}

.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rose-dark);
  margin: 0 auto;
}

.about-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose);
  background: var(--rose-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-content strong {
  color: var(--text);
}

.about-signature {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.about-sig-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
}

@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .about-photo-placeholder {
    width: 140px;
    height: 140px;
    font-size: 2rem;
  }

  .about-signature {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 4rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.cta-card h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-card p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .btn {
  background: white;
  color: var(--rose);
  font-weight: 700;
}
.cta-card .btn:hover {
  background: var(--rose-50);
  transform: translateY(-1px);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--rose-50);
  color: var(--rose);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.875rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--rose);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-bottom-links a:hover {
  color: var(--rose);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .footer-tagline { margin: 0 auto 1.25rem; }
  .footer-social { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}


/* ============================================================
   GRANT FINDER — QUIZ SCREENS
   ============================================================ */
.screen {
  /* Full viewport screens for the quiz flow */
}

/* ── Welcome Screen ─────────────────────────────────────────── */
.gf-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
}

.gf-welcome-icon {
  margin-bottom: 1.25rem;
}

.gf-welcome h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gf-welcome .subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.gf-welcome .desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 420px;
}

.gf-welcome .meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Quiz Container ─────────────────────────────────────────── */
.gf-quiz {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.gf-progress {
  padding-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.gf-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.gf-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gf-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ── Question Card ──────────────────────────────────────────── */
.gf-question {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: gfFadeUp 0.3s ease;
}

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

.gf-question-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.gf-question-text {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.gf-question-help {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.gf-question-help:empty { display: none; }

/* ── Options ────────────────────────────────────────────────── */
.gf-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gf-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.gf-option:active { transform: scale(0.98); }

.gf-option.selected {
  border-color: var(--rose);
  background: var(--rose-50);
  color: var(--rose-dark);
}

.gf-option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.gf-option.selected .gf-option-dot {
  border-color: var(--rose);
  background: var(--rose);
}

.gf-option-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
}

.gf-option.selected .gf-option-dot-inner { opacity: 1; }

/* ── Text inputs ────────────────────────────────────────────── */
.gf-input-group {
  margin-bottom: 1.5rem;
}

.gf-input-group .form-input {
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

.gf-phone-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.gf-phone-wrapper:focus-within {
  border-color: var(--rose);
  box-shadow: var(--shadow-glow);
}

.gf-phone-prefix {
  padding: 0.875rem 0.75rem 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--cream);
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

.gf-phone-wrapper .form-input {
  border: none;
  border-radius: 0;
  padding-left: 0.75rem;
}
.gf-phone-wrapper .form-input:focus {
  box-shadow: none;
}

/* ── Navigation ─────────────────────────────────────────────── */
.gf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 1rem 0;
}


/* ============================================================
   LOADING SCREEN
   ============================================================ */
.gf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg);
}

.gf-loading-spinner {
  margin-bottom: 1.5rem;
}

.gf-loading-arc {
  animation: gfSpin 1s linear infinite;
  transform-origin: center;
}

@keyframes gfSpin {
  to { transform: rotate(360deg); }
}

.gf-loading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gf-loading .subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.gf-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.gf-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.gf-step.active { color: var(--text); font-weight: 500; }
.gf-step.done { color: var(--green-text); }

.gf-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--border-light);
  transition: all 0.3s ease;
}

.gf-step.active .gf-step-icon { background: var(--rose-100); color: var(--rose); }
.gf-step.done .gf-step-icon { background: var(--green-bg); color: var(--green); }


/* ============================================================
   RESULTS / THANK YOU SCREEN
   ============================================================ */
.gf-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
}

.gf-results-check {
  margin-bottom: 1.25rem;
  animation: gfFadeUp 0.5s ease;
}

.gf-results h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: gfFadeUp 0.5s ease 0.1s both;
}

.gf-results .subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: gfFadeUp 0.5s ease 0.2s both;
}

/* Grant card */
.gf-grant-card {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow);
  animation: gfFadeUp 0.5s ease 0.3s both;
}

.gf-grant-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--green-bg);
  color: var(--green-text);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gf-grant-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gf-grant-card .desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.gf-grant-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
}

.gf-grant-detail {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.gf-grant-detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gf-grant-detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.gf-grant-detail-value.open { color: var(--green-text); }

.gf-results-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 380px;
  animation: gfFadeUp 0.5s ease 0.4s both;
}


/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */
@media (min-width: 640px) {
  .hero h1 { font-size: 3.25rem; }
  .hero p { font-size: 1.25rem; }

  .gf-welcome h1 { font-size: 2.75rem; }
  .gf-welcome { max-width: 560px; padding: 2rem; }

  .gf-quiz { max-width: 560px; padding: 2rem; }
  .gf-question-text { font-size: 1.5rem; }

  .gf-results { max-width: 560px; padding: 3rem 2rem; }
  .gf-results h1 { font-size: 2.5rem; }
  .gf-grant-card { padding: 2rem; }
}

@media (max-width: 768px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }

  .cta-card { padding: 2rem 1.25rem; }
  .cta-card h2 { font-size: 1.5rem; }
}
