/* ============================================
   Arbor Waitlist — styles.css
   Deep Teal palette
   ============================================ */

:root {
  --green-deep: #0A4B44;
  --green-primary: #0D6B5E;
  --green-mid: #1A8A7A;
  --green-light: #E0F5F0;
  --green-subtle: #F0FAF8;
  --amber: #D4A843;
  --amber-light: #E8D5A0;
  --amber-subtle: #FBF6EA;
  --rose: #D4654A;
  --rose-light: #E8A090;
  --rose-subtle: #FDF0EC;
  --charcoal: #1A1F1E;
  --charcoal-mid: #2A302E;
  --text-primary: #1A1F1E;
  --text-secondary: #4A5550;
  --text-muted: #5E6B64;
  --text-on-dark: #E0F5F0;
  --text-on-dark-muted: #A8DDD0;
  --bg-warm: #FAFAF7;
  --bg-white: #FFFFFF;
  --border-light: #E4E2DD;
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* --- A11Y UTILITIES --- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--green-deep);
  color: var(--text-on-dark);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Global focus-visible baseline — inputs have their own, everything else gets a consistent ring. */
:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.nav-badge:focus-visible,
.btn-primary:focus-visible,
.btn-final:focus-visible,
.btn-submit:focus-visible {
  outline-color: var(--amber);
  outline-offset: 3px;
}

/* Anchor jump targets should sit below the fixed nav. */
#main,
#waitlist-form,
.hero,
.problem-strip,
.expect-section,
.mini-faq,
.final-cta {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes growUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes leafSway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(2deg) translateY(-3px); }
  75% { transform: rotate(-1.5deg) translateY(-1px); }
}
@keyframes gentlePulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* --- NAV --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 75, 68, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 138, 122, 0.2);
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(10, 75, 68, 0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green-mid); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  padding: 7px 10px 7px 9px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.lang-globe {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.lang-current {
  min-width: 1.5ch;
  letter-spacing: 0.02em;
}
.lang-caret {
  width: 8px;
  height: 5px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1100;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-option {
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}
.lang-option:hover,
.lang-option:focus-visible {
  background: var(--green-light);
  color: var(--green-deep);
  outline: none;
}
.lang-option[aria-selected="true"] {
  background: var(--green-primary);
  color: #fff;
}
.lang-option[aria-selected="true"]:hover,
.lang-option[aria-selected="true"]:focus-visible {
  background: var(--green-deep);
  color: #fff;
}

/* --- RTL OVERRIDES --- */
[dir="rtl"] .hero-eyebrow::before,
[dir="rtl"] .problem-strip-label::before,
[dir="rtl"] .form-context-label::before,
[dir="rtl"] .expect-label::before {
  /* Eyebrow decoration already inherits flex direction; nothing to flip here,
     but keep the rule so future ::before pseudo lines get handled centrally. */
}
/* Flip the right-arrow glyph inside CTAs — in RTL it should visually point left. */
[dir="rtl"] .btn-primary svg,
[dir="rtl"] .btn-final svg,
[dir="rtl"] .btn-submit svg,
[dir="rtl"] .nav-badge svg {
  transform: scaleX(-1);
}
/* Form select chevron sits on the right in LTR; move it to the left in RTL. */
[dir="rtl"] .form-group select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}
/* Check icons in the benefits list stay on the reading-start side. */
[dir="rtl"] .what-you-get li { flex-direction: row; }
/* Nav badge pulsing dot should sit at reading-start. Flex already handles it. */
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(212, 168, 67, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(212, 168, 67, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-badge:hover {
  background: rgba(212, 168, 67, 0.25);
  border-color: rgba(212, 168, 67, 0.4);
  transform: translateY(-1px);
}
.nav-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: dotPulse 2s ease infinite;
}

/* --- HERO --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 107, 94, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content {
  animation: fadeUp 0.8s ease forwards;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--amber);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-mid);
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 12px;
}
.hero-sub-secondary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 107, 94, 0.25);
}
.hero-cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease;
  cursor: pointer;
}
.hero-cta-arrow:hover { gap: 12px; }
.hero-cta-arrow svg { transition: transform 0.2s; }
.hero-cta-arrow:hover svg { transform: translateX(3px); }

/* Hero visual — visible by default so the illustration still renders if CSS
   animations don't run (screenshotters, print, reduced-motion). */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-tree-svg {
  width: 100%;
  max-width: 420px;
}
.tree-node-glow {
  animation: gentlePulse 3s ease infinite;
}
.tree-leaf-group {
  animation: leafSway 6s ease-in-out infinite;
  transform-origin: bottom center;
}
.tree-leaf-group:nth-child(2) { animation-delay: -1.5s; }
.tree-leaf-group:nth-child(3) { animation-delay: -3s; }

/* --- PROBLEM STRIP --- */
.problem-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0;
}
.problem-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.problem-strip-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.problem-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 40px;
  max-width: 600px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pain-card {
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-warm);
  position: relative;
  transition: all 0.3s ease;
}
.pain-card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  border-radius: 12px 12px 0 0;
}
.pain-card:nth-child(1)::before { background: var(--rose); }
.pain-card:nth-child(2)::before { background: var(--amber); }
.pain-card:nth-child(3)::before { background: var(--rose-light); }
.pain-card:nth-child(4)::before { background: var(--amber-light); }
.pain-icon {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--bg-white);
}
.pain-card:nth-child(1) .pain-icon { background: var(--rose); }
.pain-card:nth-child(2) .pain-icon { background: var(--amber); }
.pain-card:nth-child(3) .pain-icon { background: var(--rose-light); }
.pain-card:nth-child(4) .pain-icon { background: var(--amber-light); }
.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pain-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- FORM SECTION --- */
.form-section {
  padding: 100px 0;
  position: relative;
}
.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border-light), transparent);
}
.form-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.form-context { padding-top: 20px; }
.form-context-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.form-context h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.form-context > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.what-you-get {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.what-you-get li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.what-you-get .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.what-you-get .check-icon svg {
  width: 12px;
  height: 12px;
  color: var(--green-primary);
}

/* The Form */
.waitlist-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  position: relative;
}
.waitlist-form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 40px; right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--amber), var(--rose-light));
  border-radius: 0 0 3px 3px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-warm);
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A857F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(13, 107, 94, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}
.btn-submit:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 107, 94, 0.25);
}
.btn-submit:active { transform: translateY(0); }
.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.form-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-primary);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* --- WHAT TO EXPECT --- */
.expect-section {
  background: var(--green-deep);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.expect-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 107, 94, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.expect-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.expect-header { margin-bottom: 56px; }
.expect-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.expect-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.expect-card {
  padding: 36px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.expect-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}
.expect-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 12px;
  opacity: 0.7;
}
.expect-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.expect-card p {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* --- MINI FAQ --- */
.mini-faq {
  padding: 80px 0;
  background: var(--bg-white);
}
.mini-faq-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.mini-faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.mini-faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s;
  gap: 16px;
}
.faq-question:hover { color: var(--green-primary); }
.faq-question .arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding-bottom: 22px; }
.faq-answer-inner p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- FINAL CTA --- */
.final-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.final-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.final-cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.btn-final {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-primary);
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-final:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 107, 94, 0.25);
}

/* --- FOOTER --- */
footer {
  padding: 40px 0;
  background: var(--green-deep);
  border-top: none;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { max-width: 540px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 600px;
  }
  .form-context {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .what-you-get { align-items: center; }
  .what-you-get li { max-width: 400px; }
  .expect-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .pain-grid { grid-template-columns: 1fr; }
  .form-section { padding: 64px 0; }
  .waitlist-form-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .expect-section { padding: 60px 0; }
  .mini-faq { padding: 60px 0; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- NAV ACTIONS RESPONSIVE --- */
@media (max-width: 720px) {
  .nav-actions { gap: 10px; }
  .lang-btn { padding: 5px 7px; min-width: 26px; font-size: 0.68rem; }
  .nav-badge { font-size: 0.65rem; padding: 7px 12px; letter-spacing: 0.04em; }
}
@media (max-width: 520px) {
  .lang-switcher {
    /* Collapse the switcher to the three most-likely-relevant codes on narrow screens;
       the others remain in DOM for keyboard/screen-reader users via the focus-visible rule below. */
    max-width: 148px;
    overflow: hidden;
  }
  .nav-badge .hide-on-tiny { display: none; }
}

/* --- FAQ DISCLOSURE HEADING WRAPPER ---
   The button sits inside an h3 so the question still functions as a heading
   for screen-reader rotor navigation. The h3 itself has no visible text. */
.faq-heading {
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: inherit;
}
.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- FORM VALIDATION & STATUS --- */
.form-status {
  min-height: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
  transition: min-height 0.2s ease, margin-bottom 0.2s ease, padding 0.2s ease;
  border-radius: 8px;
  padding: 0 12px;
}
.form-status.is-error {
  background: var(--rose-subtle);
  color: #8A3320;
  border: 1px solid var(--rose-light);
  padding: 10px 12px;
  margin-bottom: 20px;
}
.form-status.is-success {
  background: var(--green-light);
  color: var(--green-deep);
  border: 1px solid var(--green-mid);
  padding: 10px 12px;
  margin-bottom: 20px;
}
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #8A3320;
  margin-top: 6px;
  min-height: 0;
  line-height: 1.4;
}
.field-error:empty { display: none; }
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--rose);
  background: var(--rose-subtle);
}
.form-group input[aria-invalid="true"]:focus,
.form-group select[aria-invalid="true"]:focus,
.form-group textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(212, 101, 74, 0.15);
}
.form-success[tabindex]:focus { outline: none; }

/* --- FOOTER PLACEHOLDER LINKS ---
   These links point at content that doesn't exist yet. aria-disabled + tabindex=-1
   takes them out of the tab order and the title tooltip explains why. */
.footer-link-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.footer-link-disabled:hover { color: var(--text-on-dark-muted) !important; }

/* --- REDUCED MOTION ---
   Strip animations + transforms and neutralize smooth scroll. We leave opacity transitions
   on hover feedback so the interface still feels responsive to input. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .animate-on-scroll,
  .hero-visual,
  .hero-content {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .tree-leaf-group,
  .tree-node-glow,
  .nav-badge::before {
    animation: none !important;
  }
  .pain-card:hover,
  .expect-card:hover,
  .btn-primary:hover,
  .btn-submit:hover,
  .btn-final:hover,
  .nav-badge:hover {
    transform: none !important;
  }
}

/* --- FORCED COLORS (Windows High Contrast) --- */
@media (forced-colors: active) {
  .skip-link,
  .btn-primary,
  .btn-submit,
  .btn-final,
  .nav-badge,
  .lang-btn,
  .faq-question {
    border: 1px solid ButtonBorder;
    forced-color-adjust: none;
  }
  .pain-card,
  .expect-card,
  .waitlist-form-card,
  .faq-item {
    border: 1px solid CanvasText;
  }
  :focus-visible {
    outline: 2px solid Highlight;
  }
}
