/*
 * Design tokens mirror utils/theme.ts (lightTheme / lightColors) for brand parity.
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #00674F;
  --color-primary-light: #1A9E68;
  --color-primary-subtle: #E8F4EF;
  --color-bg-page: #F5F8F6;
  --color-surface: #F9FAFB;
  --color-text: #111714;
  --color-text-secondary: #4A6B5C;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-border-muted: #E8EDEA;
  --color-white: #FFFFFF;

  --color-primary-border-soft: rgba(0, 103, 79, 0.22);

  /* Aliases: used by existing utility classes */
  --primary: var(--color-primary);
  --primary-hover: var(--color-primary-light);
  --primary-subtle: var(--color-primary-subtle);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --border: var(--color-border);
  --surface: var(--color-surface);
  --white: var(--color-white);
  --legal-body: var(--color-text-secondary);

  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  /* App-like low-opacity shadows (sharedTheme.shadows spirit) */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.08);
  --max-w: 1200px;
  --legal-w: 740px;

  /* Welcome / Skia orb palette (light) */
  --orb-green: rgba(0, 103, 79, 0.22);
  --orb-mint: rgba(26, 158, 104, 0.18);
  --orb-amber: rgba(245, 158, 11, 0.14);
  --orb-blue: rgba(59, 130, 246, 0.12);
  --orb-mint2: rgba(52, 184, 128, 0.16);

  --radius-pill: 100px;
  --radius-btn: 1.25rem;
  --shadow-primary: 0 4px 8px rgba(0, 103, 79, 0.22), 0 8px 24px rgba(26, 158, 104, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--color-bg-page);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Playful welcome-style page shell (marketing) ───────────────── */

body.site-playful {
  background: linear-gradient(180deg, #f5f8f6 0%, #ffffff 38%, #e8f5ef 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.welcome-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 55% at 12% 18%, var(--orb-green) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 12%, var(--orb-mint) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 72% 78%, var(--orb-amber) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 18% 85%, var(--orb-blue) 0%, transparent 48%),
    radial-gradient(ellipse 65% 50% at 50% 100%, var(--orb-mint2) 0%, transparent 45%);
  animation: orb-drift 28s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0% { filter: hue-rotate(0deg); transform: scale(1) translate(0, 0); }
  100% { filter: hue-rotate(6deg); transform: scale(1.03) translate(1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-orbs { animation: none; }
}

body.site-playful .nav,
body.site-playful .hero,
body.site-playful .empathy,
body.site-playful .outcomes,
body.site-playful .features,
body.site-playful .trust-strip,
body.site-playful .cta-final,
body.site-playful .footer {
  position: relative;
  z-index: 1;
}

body.site-playful .nav {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(229, 231, 235, 0.85);
}

body.site-playful .hero {
  background: transparent;
  padding-top: 2.5rem;
}

body.site-playful .features {
  background: transparent;
}

body.site-playful .footer {
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.site-playful main {
  position: relative;
  z-index: 1;
}

body.site-playful .legal-page {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 28px rgba(0, 103, 79, 0.07);
}

body.site-playful .support-content {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 28px rgba(0, 103, 79, 0.07);
}

body.site-playful .support-hero {
  background: transparent;
  border-bottom: 1px solid rgba(229, 231, 235, 0.55);
  padding: 3.25rem 0 2.75rem;
}

.support-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 26rem;
  margin: 0 auto;
}

.support-hero-icon {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.625rem;
  filter: drop-shadow(0 6px 16px rgba(0, 103, 79, 0.12));
  animation: icon-bob 3.5s ease-in-out infinite;
}

@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .support-hero-icon { animation: none; }
}

.support-hero h1 .support-hero-accent {
  color: var(--primary);
}

body.site-playful .support-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

body.site-playful .support-hero p {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.faq-q:focus-visible,
.btn-primary:focus-visible,
.legal-page a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a:focus-visible { border-radius: 2px; }
.btn-primary:focus-visible { border-radius: var(--radius-btn); }
.faq-q:focus-visible { border-radius: 0; }

/* ── Layout ──────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ──────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo:hover { text-decoration: none; color: var(--primary); }

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ── Hero ─────────────────────────────── */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--white) 72%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual {
  margin-bottom: 1.25rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Infinity-style ring (echoes app welcome animation) */
.infinity-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.infinity-ring__spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-primary) 0deg,
    var(--color-primary-light) 110deg,
    #34b880 220deg,
    #f59e0b 300deg,
    var(--color-primary) 360deg
  );
  animation: ring-spin 16s linear infinite;
  box-shadow: 0 8px 32px rgba(0, 103, 79, 0.18);
}

.infinity-ring__core {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--color-bg-page) 0%, #ffffff 55%, #e8f5ef 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 24px rgba(0, 103, 79, 0.06);
  pointer-events: none;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .infinity-ring__spin { animation: none; }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary-border-soft);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 103, 79, 0.08);
}

.hero h1 {
  font-size: clamp(1.875rem, 4.8vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: min(100%, 32rem);
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--primary);
}

.hero-lead {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  max-width: 26rem;
  margin: 0 auto 0.75rem;
  line-height: 1.65;
}

.hero-time {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-appstore--soft {
  background: linear-gradient(180deg, var(--color-text) 0%, #1a2e24 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
  cursor: default;
  opacity: 0.92;
}

.btn-appstore--soft:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 103, 79, 0.2), 0 10px 28px rgba(26, 158, 104, 0.12);
}

.hero-cta-note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.5;
}

.hero-cta-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-cta-note a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.waitlist-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 0.375rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-subtle);
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0 0.875rem;
  min-height: 44px;
  outline: none;
}

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

.btn-waitlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: linear-gradient(180deg, var(--color-primary) 0%, #00543F 100%);
  border: 0;
  border-radius: calc(var(--radius-btn) - 0.375rem);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-waitlist:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.btn-waitlist:active {
  transform: translateY(0);
}

.waitlist-form.is-submitted {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.waitlist-form.is-submitted .waitlist-input,
.waitlist-form.is-submitted .btn-waitlist {
  display: none;
}

.waitlist-success {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0 0.875rem;
  min-height: 44px;
}

.waitlist-form.is-submitted .waitlist-success {
  display: flex;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.625rem;
  }
  .waitlist-form:focus-within {
    box-shadow: none;
  }
  .waitlist-input {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    padding: 0 1rem;
    min-height: 52px;
  }
  .btn-waitlist {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
  }
  .waitlist-form.is-submitted {
    background: var(--color-primary-subtle);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-btn);
    padding: 0.875rem 1rem;
  }
}

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

.hero-micro {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
  max-width: 24rem;
  line-height: 1.55;
}

.hero-micro em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.site-playful .hero p.hero-lead { margin-bottom: 0.75rem; }

/* ── Empathy (mirror visitor experience) ─────────────────── */

.empathy {
  padding: 3.5rem 0 4rem;
}

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

.empathy-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.empathy-quote {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

.empathy-quote em {
  font-style: normal;
  color: var(--primary);
  font-weight: 700;
}

.empathy-bridge {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.65;
}

.empathy-bridge-accent {
  display: block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.0625rem;
}

/* ── Outcomes (transformation preview) ───────────────────── */

.outcomes {
  padding: 3rem 0 4rem;
}

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

.outcome-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.35rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.outcome-icon {
  font-size: 2.15rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.outcome-tile h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.outcome-tile p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.outcome-tile strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Trust strip ─────────────────────────────────────────── */

.trust-strip {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(0, 103, 79, 0.06) 0%, rgba(26, 158, 104, 0.09) 100%);
  border-top: 1px solid rgba(0, 103, 79, 0.12);
  border-bottom: 1px solid rgba(0, 103, 79, 0.12);
}

.trust-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.trust-heading {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.trust-body {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.trust-body strong {
  color: var(--text);
}

/* ── Final CTA ───────────────────────────────────────────── */

.cta-final {
  padding: 3.5rem 0 4.5rem;
}

.cta-final-inner {
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 8px 40px rgba(0, 103, 79, 0.1);
  max-width: 36rem;
  margin: 0 auto;
}

.cta-final-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cta-final-lead {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-lead strong {
  color: var(--text);
}

/* ── Features ─────────────────────────── */

.features {
  padding: 5rem 0;
  background: var(--white);
}

.section-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
}

.section-heading-accent {
  color: var(--primary);
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 1.25rem 1.25rem 0 0;
  opacity: 0.95;
}

.feature-card--mint::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.feature-card--amber::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.feature-card--sky::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

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

.feature-icon {
  font-size: 2.35rem;
  margin-bottom: 0.875rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-card h3 em {
  font-style: normal;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────── */

.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover { color: var(--primary); text-decoration: none; }

.footer-legal {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Legal pages ──────────────────────── */

.legal-page {
  max-width: var(--legal-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  background: var(--white);
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-page p {
  font-size: 0.9375rem;
  color: var(--legal-body);
  margin-bottom: 0.875rem;
  line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.legal-page li {
  font-size: 0.9375rem;
  color: var(--legal-body);
  margin-bottom: 0.375rem;
  line-height: 1.7;
}

.legal-page strong { color: var(--text); font-weight: 600; }

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}

.legal-page th {
  background: var(--surface);
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-page td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  color: var(--legal-body);
  vertical-align: top;
  line-height: 1.55;
}

.legal-page tr:nth-child(even) td { background: var(--color-bg-page); }

/* ── Support page ─────────────────────── */

.support-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: var(--primary-subtle);
  border-bottom: 1px solid var(--color-border-muted);
}

.support-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.support-hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.support-content {
  max-width: var(--legal-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  background: var(--white);
}

.faq-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.1s;
}

.faq-q:hover { background: var(--surface); }

.faq-q .arrow { flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0.875rem 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--legal-body);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.faq-item.open .faq-a { display: block; }

.contact-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--primary-subtle);
  border: 1px solid var(--color-primary-border-soft);
  border-radius: var(--radius);
  text-align: center;
}

.contact-box h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-box p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 14px rgba(0, 103, 79, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 103, 79, 0.28);
}

/* ── Responsive ───────────────────────── */

@media (max-width: 768px) {
  .features-grid,
  .empathy-grid,
  .outcomes-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .empathy-bridge-accent {
    display: inline;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.875rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-visual { height: 168px; margin-bottom: 1rem; }
  .infinity-ring { width: 168px; height: 168px; }
  .features { padding: 3.5rem 0; }
  .empathy { padding: 3rem 0 3.25rem; }
  .outcomes { padding: 2.5rem 0 3rem; }
  .cta-final { padding: 3rem 0 3.5rem; }
  .cta-final-inner { padding: 2rem 1.25rem; }
  .legal-page { padding: 2rem 1rem 4rem; }

  .legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Scroll-reveal + entrance animations ─────────────────────────── */

/*
 * Elements tagged with .reveal start hidden + slightly offset, then ease into
 * place once they scroll into view (a .is-visible class is added via JS).
 * Variants control the direction the element travels from.
 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale { transform: translateY(20px) scale(0.96); }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children of a container (e.g. grid cards) for a cascading effect */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 110ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 220ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 330ms; }

/* Hero entrance: gently rises + fades on first paint */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.49s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.60s; }
.hero-inner > *:nth-child(7) { animation-delay: 0.71s; }

/* Soft, looping shimmer to draw the eye to the primary call-to-action */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 103, 79, 0.25); }
  50% { box-shadow: 0 6px 22px rgba(0, 103, 79, 0.4), 0 0 0 4px rgba(26, 158, 104, 0.12); }
}

.btn-waitlist {
  animation: cta-pulse 3.2s ease-in-out infinite;
  animation-delay: 1.2s;
}

.btn-waitlist:hover { animation-play-state: paused; }

/* Respect users who prefer reduced motion: show everything, animate nothing */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .hero-inner > * { animation: none; }
  .btn-waitlist { animation: none; }
}
