/* ============================================
   BioPal — Design Tokens & Base
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-elevated: #141414;
  --bg-surface: #1e1e1e;
  --text-primary: #f0f0ec;
  --text-secondary: #8a8a80;
  --accent: #3b8ad9;
  --accent-dim: #2b6cb0;
  --accent-glow: rgba(59, 138, 217, 0.2);
  --warm: #ff6b35;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --container: min(1200px, 90%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

/* ============================================
   Reset
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; scroll-padding-top: 100px; }

/* ============================================
   Lenis smooth scroll (lenis@1.3.23)
   ============================================ */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ============================================
   Utilities
   ============================================ */

.container { width: var(--container); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-dim);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-outline {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ============================================
   Section Labels & Dots
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-top: 0.5rem;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(240, 240, 236, 0.85);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { transition: color 0.2s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { font-size: 1rem; }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #0a0a0a 100%);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.hero-placeholder code {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 30%,
    rgba(10, 10, 10, 0.2) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1150px;
  padding: 0 1.5rem 4rem;
}

.hero-h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}
.hero-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}

.hero-points {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}
.hero-points li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(240, 240, 236, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.5;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-cta {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-compat {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-compat-em {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
}
.hero-compat-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.65;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 8px 24px var(--accent-glow); }
  50% { box-shadow: 0 8px 40px rgba(200, 255, 46, 0.3); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section h2 {
  margin-bottom: 1rem;
}

/* ============================================
   HOW IT WORKS — Steps
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}

.step-line {
  position: absolute;
  top: 2.2rem;
  left: 10%;
  right: 10%;
  height: 1px;
  border-top: 2px dashed var(--border-hover);
  z-index: 0;
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 40px var(--accent-glow);
}

.step p { color: var(--text-secondary); line-height: 1.5; }

/* ============================================
   FEATURES ACCORDION
   ============================================ */

.features-layout {
  margin-top: 2.5rem;
}
/* with a visual panel present, switch to two columns */
.features-layout:has(.features-visual) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.features-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 780px;
  margin: 0;
}
.features-layout:has(.features-visual) .features-accordion {
  max-width: none;
  margin: 0;
}

.feature-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.feature-row-heading {
  margin: 0;
}
.feature-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.3rem;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.feature-row-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.feature-row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--bg-surface);
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}

.feature-row-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.feature-row-toggle {
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.feature-row-toggle::before,
.feature-row-toggle::after {
  content: "";
  position: absolute;
  background: var(--text-secondary);
  transition: background 0.3s;
}
.feature-row-toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
}
.feature-row-toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
}

.feature-row-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.feature-row-desc p {
  padding: 0 1.4rem 1.25rem calc(1.3rem + 42px + 1rem);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* hover highlight */
.feature-row:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
}

/* open state — driven by aria-expanded (JS toggles it; first row open in markup) */
.feature-row:has(.feature-row-head[aria-expanded="true"]) {
  background: var(--bg-surface);
  border-color: var(--accent);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-icon {
  background: var(--accent);
  color: #fff;
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle {
  transform: rotate(45deg);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle::before,
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-toggle::after {
  background: var(--text-primary);
}
.feature-row:has(.feature-row-head[aria-expanded="true"]) .feature-row-desc {
  max-height: 16em;
  opacity: 1;
}

/* configurable visual panel */
.features-visual {
  position: sticky;
  top: 100px;
}
.features-visual-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Placeholder images */
.placeholder-img {
  background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
}

/* ============================================
   PILLARS
   ============================================ */

.section--pillars { background: var(--bg-elevated); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.pillar {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.pillar--featured {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px var(--accent-glow), 0 0 0 1px var(--accent);
}

.pillar-head {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pillar--featured .pillar-head {
  background: linear-gradient(160deg, rgba(200, 255, 46, 0.06), transparent);
}

.pillar h3 {
  font-size: 2rem;
  letter-spacing: 0.15em;
  margin: 0.5rem 0 0.3rem;
}

.pillar-head p { color: var(--text-secondary); font-weight: 500; }

.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}
.pill--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.pillar ul {
  padding: 1.2rem 1.5rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.pillar li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 1.2rem;
  position: relative;
}
.pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pillar--featured li::before { background: var(--accent); }

/* Connector split */
.connector-split {
  padding: 1.2rem 1.5rem;
  display: grid;
  gap: 1rem;
  flex: 1;
}
.connector-sub {
  text-align: center;
}
.connector-sub h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.connector-sub p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.logo-grid-placeholder {
  margin-top: 0.6rem;
  padding: 0.8rem;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}
.connector-logos {
  margin: 0.6rem auto 0;
  width: 100%;
  max-width: 205px;
  height: auto;
  border-radius: var(--radius-sm);
  background: #2a2a2a;
  padding: 0.4rem;
}
.apple-health-badge {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  margin: 0.9rem auto 0;
}

/* ============================================
   TRUST
   ============================================ */

.section--trust {
  background: var(--bg-elevated);
}

.trust-statement {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.trust-statement h2 {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  text-wrap: balance;
}
.trust-statement p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  text-wrap: balance;
}

/* ============================================
   WHO IT'S FOR
   ============================================ */

.section--who-its-for {
  background: var(--bg-primary);
}

.who-header {
  margin-bottom: 3rem;
}
.who-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.who-header p {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

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

.who-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.who-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.who-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.who-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.who-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.who-tag {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* ============================================
   FAQ
   ============================================ */

.section--faq {
  background: var(--bg-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.faq-left h2 {
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.faq-left p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.2rem;
  margin-bottom: 0.6rem;
  transition: background 0.3s, border-color 0.3s;
}
.faq-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}

/* ============================================
   FINAL CTA
   ============================================ */

.section--cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 600px;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.cta-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cta-form {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
}
.cta-form input {
  flex: 1;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.2rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.cta-form input::placeholder { color: var(--text-secondary); }

/* Visually hidden — kept out of layout, focus, and autofill. */
.field-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cloudflare Turnstile — stays invisible until a challenge is needed */
.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 0;
}
.cf-turnstile:empty { display: none; }

/* Typo suggestion ("Did you mean gmail.com?") */
.email-suggest {
  display: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.email-suggest.show { display: block; }
.email-suggest-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.email-suggest-btn:hover { color: var(--text-primary); }

.form-status {
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.4rem;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--warm); }

.cta-trust {
  font-size: 0.88rem !important;
  color: var(--text-secondary) !important;
  margin-top: 0.5rem;
}

/* CTA — default / success swap */
.cta-default[hidden],
.cta-success[hidden] {
  display: none;
}
.cta-default {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  width: 100%;
}

.cta-success {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  width: 100%;
  padding: 1.5rem 0;
}
.cta-success:focus { outline: none; }

.cta-success-check {
  width: 84px;
  height: 84px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(59, 138, 217, 0.32), rgba(59, 138, 217, 0.05));
  border: 1px solid rgba(59, 138, 217, 0.55);
  box-shadow: 0 0 0 7px rgba(59, 138, 217, 0.07), 0 16px 48px var(--accent-glow);
  animation: check-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cta-success-check svg {
  width: 38px;
  height: 38px;
}
.cta-success-check svg path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: check-draw 0.45s 0.32s ease forwards;
}

.cta-success h2,
.cta-success-lead,
.cta-success-sub {
  opacity: 0;
  animation: success-rise 0.55s ease forwards;
}
.cta-success h2 { animation-delay: 0.18s; }
.cta-success-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  animation-delay: 0.3s;
}
.cta-success-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}
.cta-success-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  animation-delay: 0.42s;
}

@keyframes check-pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes success-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-left {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}
.footer-credit {
  color: var(--text-primary);
}
.footer-mission {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.9;
}
.footer-copy {
  color: var(--text-secondary);
  font-size: 0.78rem;
  opacity: 0.7;
}
.footer-credit a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover {
  color: var(--accent);
}
.footer-sep {
  color: var(--text-secondary);
  opacity: 0.4;
  margin: 0 0.6rem;
}

/* ============================================
   FOLLOW-UP DIALOG
   ============================================ */

.follow-up {
  width: min(92%, 500px);
  max-height: 85vh;
  margin: auto;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0;
  overflow-y: auto;
}
.follow-up::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.follow-up-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.follow-up-form p { color: var(--text-secondary); }
.follow-up-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.follow-up-form input,
.follow-up-form select {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.92rem;
}
.follow-up-form input:focus,
.follow-up-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.follow-up-select summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  cursor: pointer;
}
.follow-up-select summary::-webkit-details-marker {
  display: none;
}
.follow-up-select summary::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
}
.follow-up-select[open] summary::after {
  transform: rotate(-135deg);
}
.follow-up-field {
  display: grid;
  gap: 0.35rem;
}
.follow-up-field-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.follow-up-select .select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-up-select .select-value.is-placeholder {
  color: var(--text-secondary);
}
.follow-up-checks {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}
.follow-up-checks .check-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
}
.follow-up-checks input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.follow-up-checks input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.follow-up-checks .other-input {
  display: none;
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  cursor: text;
}
.follow-up-checks input[type="checkbox"]:checked ~ .other-input {
  display: block;
}

.follow-up-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pillar--featured { transform: none; order: -1; }
  .who-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .features-layout:has(.features-visual) { grid-template-columns: 1fr; gap: 2rem; }
  .features-visual { position: static; order: -1; max-width: 480px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }

  .hero { align-items: center; }
  .hero-content { padding-top: 6rem; padding-bottom: 4rem; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3.2rem); }

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

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  :root { --container: 92%; }
  .hero-content { padding-bottom: 3rem; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Scroll-reveal elements: render in place, no fade-in or slide */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
