/* Dark theme — Nidra (from reference images) */
:root {
  --navy: #0E162A;
  --bg: #0D1120;
  --bg-alt: #152238;
  --card-bg: #182239;
  --blue-medium: #71c7ec;
  --blue-light: #CBD5E1;
  --blue-pale: #182239;
  --blue-bright: #71c7ec;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --heading: #F8FAFC;
  --border: rgba(148, 163, 184, 0.35);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hero: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: min(90vw, 960px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 3px rgba(42, 77, 105, 0.2);
}

/* Subpages (no hero): main needs top padding for fixed header */
.page-about main,
.page-how main,
.page-faq main,
.page-system main,
.page-science main,
.page-legal main,
.page-coming-soon main { padding-top: 4rem; }

/* --- Legal / policy pages (same theme as FAQ) --- */
.legal-page {
  background: var(--bg);
  padding: 2.5rem 0 4.5rem;
}
.legal-page .container {
  max-width: min(92vw, 760px);
}
.legal-page .section-tag {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.legal-page .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
  text-align: left;
}
.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-doc-body {
  text-align: left;
}
.legal-doc-body h2 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.02em;
}
.legal-doc-body h2:first-of-type {
  margin-top: 0;
}
.legal-doc-body p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}
.legal-doc-body ul,
.legal-doc-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal-doc-body li { margin-bottom: 0.4rem; }
.legal-doc-body a {
  color: var(--blue-medium);
  text-decoration: none;
  font-weight: 500;
}
.legal-doc-body a:hover {
  text-decoration: underline;
}
.legal-doc-body strong { color: var(--heading); font-weight: 600; }
.legal-doc-cross {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.legal-doc-cross a {
  color: var(--blue-medium);
  font-weight: 600;
  text-decoration: none;
}
.legal-doc-cross a:hover { text-decoration: underline; }
.page-science .science-main,
.page-system .system-main,
.page-about .about-main { padding-top: 0; }

.page-about {
  --about-page-max: min(92vw, 1180px);
}

.logo {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo-accent { color: var(--blue-medium); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  font-family: var(--font-body);
  color: var(--blue-light);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
.nav a:hover { color: #fff; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--blue-light);
  border-radius: 6px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- Hero (grand homepage + moving space/sleep background) --- */
.hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Background is drawn by #hero-canvas so animation is visible */
}
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-title .hero-title-line {
  display: block;
}
.hero-title-italic { font-style: italic; font-weight: 400; color: var(--blue-medium); }
.hero-sub {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--blue-light);
  max-width: 540px;
  margin: 0 auto 0.75rem;
  line-height: 1.45;
}
.hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--blue-light);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.hero .cta-primary {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  background: var(--blue-bright);
  color: var(--navy);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-bright);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-primary:hover { background: var(--blue-medium); color: var(--navy); }
.hero .cta-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 32px rgba(42, 77, 105, 0.25);
}
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}
.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue-bright);
  transition: width 0.15s ease-out;
}

/* --- About Nidra (two columns + 2x2 stats, site colour scheme) --- */
.section.about-nidra {
  padding: 4.5rem 1.5rem;
  background: var(--bg-alt);
  color: var(--text);
}
.about-nidra-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.about-nidra-content .about-tag {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--blue-medium);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.about-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}
.about-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}
.about-body p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  align-self: end;
}
.about-stat {
  padding: 2rem 1.5rem;
  min-height: 150px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-stat-value {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--heading);
  line-height: 1.1;
}
.about-stat:nth-child(1) .about-stat-value,
.about-stat:nth-child(3) .about-stat-value { color: var(--blue-medium); }
.about-stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 100%;
}
.about-stat-value sup {
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: 0.15em;
  color: var(--blue-medium);
}
.about-stat:nth-child(2) .about-stat-value sup {
  color: var(--text-muted);
}
.about-stat:nth-child(1) .about-stat-value sup,
.about-stat:nth-child(3) .about-stat-value sup {
  color: var(--blue-medium);
}

/* --- About page v2 --- */
.about-v2-story {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg);
  text-align: left;
}
/* Our story: two-column luxury (theme blue accent + serif) */
.about-v2-story--luxury {
  --about-lux-accent: var(--blue-medium);
  background: var(--bg);
  padding: clamp(4rem, 10vw, 7.5rem) clamp(1.35rem, 5vw, 3rem);
}
.about-v2-wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.about-v2-story-shell {
  max-width: 1120px;
  margin: 0 auto;
}
.about-story-lux-header {
  width: 100%;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.about-v2-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.25rem, 7vw, 5.5rem);
  align-items: center;
}
.about-story-lux-col {
  min-width: 0;
}
.about-story-lux-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.about-story-lux-kicker-text {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--about-lux-accent);
  flex-shrink: 0;
}
.about-story-lux-kicker-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--about-lux-accent) 0%, rgba(113, 199, 236, 0.22) 100%);
  min-width: 2.5rem;
}
.about-story-lux-title {
  margin: 0;
  width: 100%;
  max-width: none;
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--about-lux-accent);
}
.about-story-lux-title-line {
  display: block;
}
/* Same body typography as .about-v2-block p (Our Mission cards) */
.about-story-lux-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 0.75rem;
  max-width: 38rem;
}
.about-story-lux-body p:last-child {
  margin-bottom: 0;
}
.about-story-lux-close {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin: 0.75rem 0 0;
  max-width: 38rem;
}
.about-story-lux-quote {
  margin: 0;
  padding: 0.6rem 0 0.6rem 1.85rem;
  border-left: 1px solid var(--about-lux-accent);
  align-self: center;
}
.about-story-lux-quote p {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(1.05rem, 2.05vw, 1.38rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.62;
  color: rgba(248, 250, 252, 0.94);
}
.about-v2-intro-close {
  margin-top: 0.25rem;
  color: var(--heading);
  font-weight: 700;
}

.about-v2-mission,
.about-v2-founder,
.about-v2-patents,
.about-v2-clinical,
.about-v2-why {
  padding: 3.5rem 1.5rem;
  background: var(--bg);
}
/* About: centered mission band (reference layout + Nidra theme) */
.about-v2-mission.about-v2-mission--centered {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8rem) clamp(1.25rem, 4vw, 2rem);
  background: var(--bg-alt);
  overflow: hidden;
  text-align: center;
}
.about-v2-mission.about-v2-mission--centered::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 72% 58% at 50% 42%,
    rgba(113, 199, 236, 0.09) 0%,
    transparent 62%
  );
  pointer-events: none;
}
.about-mission-band {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
}
.about-mission-kicker-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.about-mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.about-mission-kicker-text {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-medium);
}
.about-mission-kicker-rule {
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-medium), rgba(113, 199, 236, 0.2));
  flex-shrink: 0;
}
.about-mission-title {
  margin: 0 auto 1.85rem;
  max-width: 52rem;
  font-family: var(--font-hero);
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--blue-medium);
}
.about-mission-title em {
  font-style: italic;
  font-weight: 500;
}
.about-mission-body {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.about-mission-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 0.75rem;
}
.about-mission-body p:last-child {
  margin-bottom: 0;
}
.about-mission-pills {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.about-mission-pills li {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.48rem 0.85rem;
  background: rgba(24, 34, 57, 0.35);
}
.about-mission-follow {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: clamp(2.75rem, 6vw, 4rem) auto 0;
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
}
.about-mission-follow-title {
  margin: 0 0 1rem;
  font-family: var(--font-hero);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}
.about-mission-follow-lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.about-mission-follow-close {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-medium);
  letter-spacing: 0.04em;
}

/* About page: alternate section backgrounds (same --bg / --bg-alt rhythm as System) */
.page-about .about-main > .about-v2-story.about-v2-story--luxury {
  background: var(--bg-alt);
}
.page-about .about-main > .about-v2-mission.about-v2-mission--centered {
  background: var(--bg);
}
.page-about .about-main > .about-v2-founder.about-v2-founder--grid {
  background: var(--bg-alt);
}
.page-about .about-main > .about-v2-patents {
  background: var(--bg-alt);
}
.page-about .about-main > .about-v2-clinical {
  background: var(--bg);
}
.page-about .about-main > .about-v2-why {
  background: var(--bg);
}

.about-v2-block {
  max-width: 960px;
  margin: 0 auto 1.2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.about-v2-block h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-hero);
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  color: var(--heading);
  line-height: 1.2;
}
.about-v2-block p {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.75;
}
.about-v2-block p:last-child {
  margin-bottom: 0;
}
/* About: Why this matters — centered statement band (eyebrow + serif display + narrow body) */
.about-v2-why.about-v2-why--statements {
  --about-why-column: min(52rem, 92vw);
  padding: clamp(4rem, 11vw, 7rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}
.about-v2-why-shell {
  margin: 0 auto;
}
.about-v2-why-kicker-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.about-v2-why-kicker {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.about-v2-why-kicker-text {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.about-v2-why-kicker-rule {
  width: 3.5rem;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--blue-medium), rgba(113, 199, 236, 0.15));
}
.about-v2-why-display-title {
  box-sizing: border-box;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto clamp(1.35rem, 3vw, 1.85rem);
  font-family: var(--font-hero);
  font-size: clamp(1.65rem, 5.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--heading);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .about-v2-why-display-title {
    white-space: normal;
    width: auto;
    max-width: var(--about-why-column);
  }
}
.about-v2-why-prose {
  max-width: var(--about-why-column);
  margin: 0 auto;
  text-align: center;
}
.about-v2-why-prose p {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 2vw, 1.06rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-muted);
}
.about-v2-why-prose p:last-child {
  margin-bottom: 0;
}
.about-v2-why.about-v2-why--statements .about-v2-close {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.about-v2-patents-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  text-align: left;
}
.about-v2-patents-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}
.about-v2-patents-kicker-text {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-medium);
}
.about-v2-patents-kicker-rule {
  flex: 1;
  max-width: 10rem;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-medium), transparent);
  opacity: 0.85;
}
.about-v2-patents-title {
  margin: 0 0 1rem;
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.about-v2-patents-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue-medium);
}
.about-v2-patents-lead {
  margin: 0;
  max-width: none;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.about-v2-clinical {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem);
}
.about-v2-clinical::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 28%, rgba(113, 199, 236, 0.12), transparent 34%);
  pointer-events: none;
}
.about-v2-clinical-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}
.about-v2-clinical-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.about-v2-clinical-copy > p:last-of-type {
  margin-bottom: 0;
}
.about-v2-clinical-doctor {
  display: grid;
  gap: 0.85rem;
  align-content: stretch;
  height: 100%;
}
.about-v2-clinical-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}
.about-v2-clinical-kicker-text {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-medium);
}
.about-v2-clinical-kicker-rule {
  flex: 1;
  max-width: 10rem;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-medium), transparent);
  opacity: 0.85;
}
.about-v2-clinical-title {
  margin: 0 0 1rem;
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.about-v2-clinical-copy p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.about-v2-clinical-creds {
  list-style: none;
  margin: 0;
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(24, 34, 57, 0.45);
  box-sizing: border-box;
}
.about-v2-clinical-creds li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.about-v2-clinical-creds li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--blue-medium);
  box-shadow: 0 0 14px rgba(113, 199, 236, 0.65);
}
.about-v2-clinical-doctor-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.about-v2-clinical-doctor-photo {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 342 / 450;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform;
}
.about-v2-clinical-doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
  transform: scale(1);
  transform-origin: center top;
}
.about-v2-clinical-doctor-name {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  text-align: center;
  transition: color 0.25s ease;
}
.about-v2-clinical-doctor-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
.about-v2-clinical-doctor-card:hover .about-v2-clinical-doctor-photo,
.about-v2-clinical-doctor-card:focus-visible .about-v2-clinical-doctor-photo {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}
.about-v2-clinical-doctor-card:hover .about-v2-clinical-doctor-photo img,
.about-v2-clinical-doctor-card:focus-visible .about-v2-clinical-doctor-photo img {
  transform: scale(1.03);
}
.about-v2-clinical-doctor-card:hover .about-v2-clinical-doctor-name,
.about-v2-clinical-doctor-card:focus-visible .about-v2-clinical-doctor-name {
  color: var(--blue-medium);
}
.about-v2-clinical-doctor-card:focus-visible {
  outline: 2px solid var(--blue-medium);
  outline-offset: 4px;
  border-radius: 6px;
}
.about-v2-block-emphasis {
  border-color: rgba(113, 199, 236, 0.45);
}
.about-v2-mid-close {
  color: var(--blue-medium);
  font-weight: 700;
}

/* About: meet the founder — photo grid + modal */
.about-v2-founder--grid {
  --founder-meet-accent: var(--blue-medium);
  --founder-meet-card: #1a2335;
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.25rem, 4vw, 2rem);
}
.about-v2-founder--intro,
.about-v2-founder--meet {
  --founder-meet-accent: var(--blue-medium);
  --founder-meet-card: #1a2335;
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.25rem, 4vw, 2rem);
}
.about-v2-founder-grid-inner {
  max-width: min(1220px, 100%);
  margin: 0 auto;
}
.about-v2-founder--grid .about-v2-founder-kicker {
  margin-bottom: 1.6rem;
}
.founders-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 224px);
  justify-content: center;
  column-gap: 4rem;
  row-gap: clamp(1.5rem, 4vw, 2.75rem);
  width: fit-content;
  max-width: 100%;
}
.founder-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.founder-card-photo {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 342 / 450;
  line-height: 0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform;
}
.founder-card-photo--muthuraman img {
  object-position: center top;
}
.founder-card-photo--jesu-lucas img {
  object-position: center top;
}
.founder-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.35s ease;
  transform: scale(1);
  transform-origin: center top;
}
.founder-card-name {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  transition: color 0.25s ease;
}
.founder-card-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.founder-card:hover .founder-card-photo,
.founder-card:focus-visible .founder-card-photo {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}
.founder-card:hover .founder-card-photo img,
.founder-card:focus-visible .founder-card-photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.founder-card:hover .founder-card-name,
.founder-card:focus-visible .founder-card-name {
  color: var(--blue-medium);
}
.founder-card:focus-visible {
  outline: 2px solid var(--blue-medium);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Founder detail modal — 50% backdrop so page stays visible around panel */
.founder-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.founder-modal[hidden] {
  display: none;
}
.founder-modal-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(13, 17, 32, 0.5);
  cursor: pointer;
}
.founder-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(113, 199, 236, 0.28);
  background: var(--card-bg);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.founder-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.founder-modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.founder-modal-title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-medium);
}
.founder-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 50%;
  color: var(--heading);
  background: rgba(24, 34, 57, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.founder-social-link--header {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.founder-social-link:hover,
.founder-social-link:focus-visible {
  border-color: var(--blue-medium);
  color: var(--blue-medium);
  background: rgba(113, 199, 236, 0.1);
  transform: translateY(-1px);
}
.founder-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
.founder-social-link--header svg {
  width: 0.9rem;
  height: 0.9rem;
}
.founder-modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.founder-modal-close:hover,
.founder-modal-close:focus-visible {
  color: var(--heading);
  background: rgba(248, 250, 252, 0.08);
}
.founder-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.founder-modal-hero {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
.founder-modal-photo {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  aspect-ratio: 342 / 513;
}
.founder-modal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: none;
  border-radius: 0;
}
.founder-modal-role {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}
.founder-modal-intro .about-v2-founder-lead {
  margin: 0;
}
.founder-modal-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.15rem;
}
.founder-modal .about-v2-quote {
  margin-top: 0;
}
.founder-modal .about-v2-founder-card {
  flex: 1.35 1 0;
  min-width: 0;
}
.founder-modal .about-v2-founder-prose {
  flex: 1 1 0;
  min-width: 0;
}
body.founder-modal-open {
  overflow: hidden;
}
.about-v2-founder-intro-inner {
  max-width: min(1220px, 100%);
  margin: 0 auto;
}
.about-v2-founder-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  max-width: min(1280px, 100%);
  margin: 0 auto;
}
.about-v2-founder-card {
  flex: 1.55 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.about-v2-founder-card-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.35rem 1.45rem 1.6rem;
  border-radius: 6px;
  background: var(--founder-meet-card);
  border: 1px solid rgba(113, 199, 236, 0.28);
  border-top: 2px solid var(--founder-meet-accent);
  border-left: 2px solid var(--founder-meet-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.about-v2-founder-card-name {
  margin: 0 0 0.65rem;
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
}
.about-v2-founder-card-role {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}
.about-v2-founder-card-creds-heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--founder-meet-accent);
}
.about-v2-founder-cred-list {
  margin: 0;
  display: grid;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.about-v2-founder-cred-list div {
  display: grid;
  grid-template-columns: minmax(9.25rem, max-content) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  align-items: start;
}
.about-v2-founder-cred-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.about-v2-founder-cred-list dt {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--founder-meet-accent);
  line-height: 1.35;
}
.about-v2-founder-cred-list dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.95);
}
.about-v2-founder-narrative {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.about-v2-founder-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.about-v2-founder-kicker-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--founder-meet-accent);
}
.about-v2-founder-kicker-line {
  flex: 1;
  height: 1px;
  max-width: 14rem;
  background: linear-gradient(90deg, var(--founder-meet-accent), transparent);
  opacity: 0.85;
}
.about-v2-founder-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, min(36vw, 380px));
  gap: 1.5rem 2rem;
  align-items: start;
}
.about-v2-founder-lead-block {
  min-width: 0;
}
.about-v2-founder-hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-hero);
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
}
.about-v2-founder-lead {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.about-v2-founder-intro-split .about-v2-quote {
  margin: 1rem 0 0;
}
.about-v2-founder-photo {
  display: flex;
  justify-content: center;
}
.about-v2-founder-photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.about-v2-founder--meet .about-v2-founder-prose {
  margin-top: 0;
}
.about-v2-founder-prose p {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.about-v2-founder-prose p:last-child {
  margin-bottom: 0;
}
.about-v2-quote {
  margin: 1.1rem 0 0;
  padding: 1rem 1rem 0.95rem;
  border-left: 3px solid var(--blue-medium);
  background: rgba(24, 34, 57, 0.6);
  color: var(--text);
}
.about-v2-quote cite {
  display: block;
  margin-top: 0.7rem;
  color: var(--blue-medium);
  font-style: normal;
  font-weight: 600;
}

/* About page: same max width for hero inner, story, mission blocks, founder bands, patents & why */
.page-about .how-intro .how-intro-inner,
.page-about .about-v2-story-shell,
.page-about .about-v2-founder-grid-inner,
.page-about .about-v2-founder-intro-inner,
.page-about .about-v2-founder-split,
.page-about .about-main .container.about-v2-wrap {
  max-width: var(--about-page-max);
}
.page-about .about-mission-band,
.page-about .about-mission-follow {
  max-width: var(--about-page-max);
}

.about-v2-subhead {
  color: var(--blue-light);
  font-weight: 600;
}

.about-v2-patent-card--feature {
  margin: 0.25rem 0 1.25rem;
}
.about-v2-patent-badge {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-medium);
  border: 1px solid rgba(113, 199, 236, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  line-height: 1.2;
}
.about-v2-patent-meta {
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.about-v2-patent-meta div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.about-v2-patent-meta dt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-medium);
}
.about-v2-patent-meta dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.about-v2-patent-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.about-v2-patent-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.45rem 1.55rem;
  border-radius: 8px;
  border: 1px solid rgba(113, 199, 236, 0.22);
  background: var(--card-bg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.about-v2-patent-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.about-v2-patent-num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-medium);
  line-height: 1.4;
}
.about-v2-patent-year {
  font-family: var(--font-hero);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--heading);
}
.about-v2-patent-card-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-hero);
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
}
.about-v2-patent-card-official {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.about-v2-patent-card-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}
.about-v2-close {
  margin: 1.2rem auto 0;
  text-align: center;
  color: var(--blue-medium);
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
}
.about-v2-why .about-v2-close {
  color: var(--blue-medium);
}

/* --- Problem section: full-width heading, then two equal columns — copy + quote | X-list --- */
.section.problem {
  padding: 4.5rem 1.5rem;
  background: var(--bg-alt);
}
.problem-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.problem-header {
  margin-bottom: 1.75rem;
  text-align: left;
}
.problem-header .section-tag {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
}
.problem-header .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0;
  color: var(--heading);
  line-height: 1.15;
}
/* One-line problem heading: inner span so nowrap always wins over heading block layout */
.problem-header .problem-heading-one-line {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  vertical-align: top;
}
.problem-header .section-title em { font-style: italic; font-weight: 400; }
.problem-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}
.problem-content,
.problem-tried {
  min-width: 0;
}
.problem-content { text-align: left; }
.problem-content .section-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  max-width: none;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.problem-content .section-lead strong { font-weight: 700; color: var(--heading); }
.problem-quote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--blue-medium);
  border-radius: 8px;
  background: var(--card-bg);
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: normal;
  color: var(--heading);
}
.problem-quote-line1,
.problem-quote-line2 {
  display: block;
  font-size: clamp(0.92rem, 1.65vw, 1.05rem);
  line-height: 1.45;
}
.problem-quote-line2 {
  margin-top: 0.35rem;
}
/* Same type as problem heading — lead in accent blue */
.problem-quote-lead {
  color: var(--blue-medium);
  font-family: var(--font-hero);
  font-style: normal;
  font-weight: 700;
}
.problem-quote-italic {
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}
.problem-quote::before,
.problem-quote::after { content: none; }
.problem-tried {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  align-self: start;
}
.tried-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tried-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--card-bg);
  color: var(--text);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tried-item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--blue-medium);
  border-radius: 50%;
  /* X uses site background blue (--bg #0D1120); circle stays light blue */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1120' stroke-width='4.5' stroke-linecap='square'%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Solution (below problem): flowing narrative + stepped card --- */
.section.solution {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  background: var(--bg);
  overflow: hidden;
}
.section.solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 900px);
  height: 140px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(113, 199, 236, 0.09) 0%, transparent 72%);
  pointer-events: none;
}
.solution-wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}
.solution-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  max-width: 56rem;
}
.solution-header .section-tag {
  margin-bottom: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
}
/* One-line heading — same pattern as .problem-heading-one-line */
.solution-header .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0;
  color: var(--heading);
  line-height: 1.15;
}
.solution-header .solution-heading-one-line {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  vertical-align: top;
}
.solution-header .section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-medium);
}
.solution-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}
.solution-inner > * {
  min-height: 0;
}
.solution-narrative {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: 100%;
}
/* Groups copy + tagline; CTA below uses margin-top: auto to meet card bottom */
.solution-narrative-top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.solution-body p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text);
  margin: 0 0 1.1rem;
}
.solution-body p:last-of-type { margin-bottom: 0; }
/* Framed band: two lines — sizes match pre-compact tagline */
.solution-tagline-band {
  margin-top: 1.85rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(113, 199, 236, 0.4);
  border-bottom: 1px solid rgba(113, 199, 236, 0.4);
  padding: clamp(1rem, 2.2vw, 1.35rem) 0;
  display: flex;
  align-items: center;
  overflow-x: hidden;
}
.solution-tagline {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1.45;
}
.solution-tagline-line1 {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--heading);
  line-height: 1.45;
}
.solution-tagline-line2 {
  display: block;
  line-height: 1.45;
}
.solution-tagline-strong {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  color: var(--blue-medium);
}
.solution-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 100%;
}
.solution-steps-card {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 1.85rem 1.65rem 1.65rem;
  background: linear-gradient(155deg, var(--card-bg) 0%, rgba(21, 34, 56, 0.92) 100%);
  border: 1px solid var(--blue-medium);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(113, 199, 236, 0.12);
}
.solution-steps-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(113, 199, 236, 0.14) 0%, transparent 72%);
  border-radius: 0 16px 0 0;
  pointer-events: none;
}
.solution-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sol;
}
.solution-steps li {
  position: relative;
  counter-increment: sol;
  padding: 0 0 1.15rem 3rem;
  margin: 0;
  border-left: 2px solid rgba(113, 199, 236, 0.28);
  margin-left: 14px;
}
.solution-steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.solution-steps li::before {
  content: counter(sol);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--blue-medium);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--card-bg), 0 4px 14px rgba(113, 199, 236, 0.35);
  z-index: 1;
}
.solution-step-text {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
  display: block;
}
.solution-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.15rem;
  flex-shrink: 0;
  border-top: none;
  width: 100%;
  justify-content: flex-start;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-medium);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.solution-cta:hover {
  color: var(--blue-light);
}
.solution-cta:hover .solution-cta-arrow {
  transform: translateX(4px);
}
.solution-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* --- Story sections --- */
.section.story {
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.section.story .container {
  max-width: var(--container);
}
.section.story .section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}
.section.story .section-title {
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.section.story .section-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}
.section.story.unravel { background: var(--bg-alt); }
.section.story.truth { background: var(--bg); }
.section.story.return { background: var(--bg-alt); }
.section.story .story-quote {
  margin: 2rem auto 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--blue-medium);
  background: var(--card-bg);
  border-radius: 0 10px 10px 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
  font-style: normal;
  letter-spacing: 0.01em;
  text-align: left;
  max-width: 100%;
}

/* --- Pipeline (How it works) — match image text design --- */
.pipeline-section { background: var(--bg-alt); text-align: center; }
.pipeline-section .section-tag {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
}
.pipeline-section .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}
.pipeline-section .section-title em { font-style: italic; font-weight: 400; color: var(--heading); }
.pipeline-section .section-lead {
  font-family: var(--font-body);
  max-width: none;
  width: 100%;
  color: var(--text);
}
.pipeline-intro { margin-bottom: 0.5rem; }
.pipeline-section .pipeline { text-align: left; margin-left: auto; margin-right: auto; max-width: 720px; }
.pipeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  list-style: none;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue-medium);
  border-radius: 1px;
  transition: background 0.4s ease;
}
.pipeline-step {
  position: relative;
  padding-bottom: 2.25rem;
  opacity: 0.6;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pipeline-step:last-child { padding-bottom: 0; }
.pipeline-step.active { opacity: 1; }
.pipeline-step.active .pipeline-dot {
  background: var(--blue-medium);
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(113, 199, 236, 0.4);
}
.pipeline-step.active .pipeline-num { color: var(--navy); }
.pipeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 32px;
  height: 32px;
  margin-left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.pipeline-num {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}
.pipeline-content {
  margin-left: 2rem;
  padding-left: 0.5rem;
}
.pipeline-step-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-medium);
  margin-bottom: 0.4rem;
  opacity: 0.9;
}
.pipeline-content h3 {
  font-family: var(--font-hero);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--heading);
  margin: 0 0 0.6rem;
  line-height: 1.35;
}
.pipeline-content p {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

/* --- Sections --- */
.section {
  padding: 3.5rem 1.5rem;
}
.section:nth-child(even) { background: var(--bg-alt); }
.container { max-width: var(--container); margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-medium);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.75rem;
}
.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.55;
}

/* --- Intro & highlight --- */
.intro .section-lead,
.highlight .section-lead { max-width: 520px; }
.highlight { background: var(--blue-pale); }

/* --- Science section (two-column: intro left, cards right) --- */
.science-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  text-align: left;
}
.science-intro .section-tag {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--blue-medium);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.science-intro .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--heading);
}
.science-intro .section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}
.science-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.science-body p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}
.science-body p strong {
  font-weight: 700;
  color: var(--heading);
}
.science-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.science-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-items: start;
}
.science-card:hover {
  border-color: var(--blue-medium);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}
.science-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-medium);
  margin-top: 0.1rem;
}
.science-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  stroke: var(--blue-medium);
}
.science-icon-sleep {
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.85;
  letter-spacing: -0.08em;
}
.science-icon-sleep span {
  display: block;
  margin-top: -0.2em;
}
.science-card-content h3 {
  font-family: var(--font-hero);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--heading);
  margin: 0 0 0.45rem;
  line-height: 1.35;
}
.science-card-content p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

/* Science page: full-viewport intro (same pattern as How it works) */
.science-page-hero-heading {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  width: 100%;
  max-width: 1200px;
}
.science-page-hero-heading .science-hero-kicker {
  margin-bottom: 1.75rem;
}
.science-page-hero-title {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.1;
  margin: 0;
}
.science-page-hero-lead {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: var(--heading);
}

/* --- Science page v2 --- */
.science-v2 {
  padding: 4.4rem 1.5rem 5rem;
  background: var(--bg);
}
.science-v2-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.science-v2-hero {
  text-align: left;
  max-width: 860px;
  margin: 0 auto 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
.science-v2-hero .section-title {
  max-width: 860px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.14;
}
.science-v2-hero .section-lead {
  max-width: 860px;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.03rem;
  line-height: 1.78;
}
.science-v2 .section-tag {
  letter-spacing: 0.18em;
}
.science-v2-block {
  margin: 0 0 1.35rem;
  padding: 0 0 1.35rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  background: none;
}
.science-v2-block:not(.science-v2-lead-split):not(.science-v2-mid-split) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.science-v2-lead-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 2rem 2.25rem;
  align-items: center;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.science-v2-lead-copy {
  max-width: 34rem;
  margin-right: auto;
  padding-right: 0.5rem;
  text-align: left;
}
.science-v2-lead-media {
  justify-self: end;
  width: 100%;
  max-width: min(420px, 100%);
}
.science-v2-lead-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.science-v2-mid-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: 2rem 2.25rem;
  align-items: center;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.science-v2-mid-media {
  justify-self: start;
  width: 100%;
  max-width: min(420px, 100%);
  order: 0;
}
.science-v2-mid-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.science-v2-mid-copy {
  max-width: 34rem;
  margin-left: auto;
  padding-left: 0.5rem;
  text-align: left;
}
.science-v2-block h2,
.science-v2-note h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-hero);
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  color: var(--heading);
  line-height: 1.24;
}
.science-v2-block p,
.science-v2-note p {
  margin: 0 0 0.85rem;
  color: var(--text);
  line-height: 1.84;
  font-size: 1.02rem;
}
.science-v2-block p:last-child,
.science-v2-note p:last-child {
  margin-bottom: 0;
}
.science-v2-emphasis {
  border-bottom-color: rgba(113, 199, 236, 0.45);
}
.science-v2-note {
  margin-top: 0.4rem;
  padding: 0.2rem 0 0.1rem;
  border: 0;
  border-top: 2px solid rgba(113, 199, 236, 0.42);
  border-radius: 0;
  background: none;
}
.science-v2-close {
  margin: 1.4rem 0 0;
  text-align: center;
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
  color: var(--blue-medium);
}

/* --- The return (story + benefits grid) --- */
.section.return {
  padding: 4.5rem 1.5rem;
  background: var(--bg-alt);
}
.return-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.return-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section.return .section-tag {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
}
.section.return .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
}
.section.return .section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}
.return-lead {
  font-family: var(--font-body);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  font-weight: 400;
}
.return-story {
  margin: 0 auto 3rem;
  padding: 2rem 2.25rem;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}
.return-time {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.return-story p {
  font-family: var(--font-body);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}
.return-story p:last-child { margin-bottom: 0; }
.return-emphasis {
  font-style: italic;
  color: var(--blue-medium);
}
.return-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 1100px) {
  .return-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.return-card {
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.return-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  background: var(--bg);
  font-size: 1.4rem;
}
.return-card h3 {
  font-family: var(--font-hero);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  text-align: center;
}
.return-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

/* --- Product (Nidra sleep system) --- */
.section.product {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--navy);
  color: #fff;
}
/* System page: same background as about */
.page-system .section.product {
  background: var(--bg-alt);
  color: var(--text);
}

/* Product section with device image (system page): layout and image size */
.product-with-image {
  --product-img-size: 540px;
}
.product-with-image .product-inner {
  grid-template-columns: auto 1fr;
}
.product-with-image .product-visual {
  grid-column: 1;
  max-width: 540px;
  padding-right: 1rem;
  min-width: 0;
}
.product-with-image .product-visual img {
  width: 540px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.product-with-image .product-content {
  grid-column: 2;
  min-width: 0;
}
/* Force size (high specificity so it always wins) */
#product.product-with-image .product-visual img {
  width: 540px;
  max-width: 540px;
}

.page-system .product-content .section-tag { color: var(--blue-medium); }
.page-system .product-content .section-title { color: var(--heading); }
.page-system .product-content .section-lead { color: var(--text); }
.page-system .product-included-title,
.page-system .product-list li { color: var(--text-muted); }
.page-system .product-list li::before { background: var(--blue-medium); }

/* --- System page (hero uses .how-intro like How it works / Science) --- */
/* Bands: hero (--bg) → components (--bg-alt) → features (--bg) → pricing (--bg-alt), same as site rhythm */
.page-system main > .section.system-components {
  background: var(--bg-alt);
}
.system-components {
  padding: 1.5rem 1.5rem 4rem;
  background: var(--bg-alt);
}
.section.system-components {
  background: var(--bg-alt);
}
.system-section-header {
  max-width: 980px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.system-section-header .section-lead {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.system-columns {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.system-plus {
  align-self: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--blue-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hero);
  font-size: 2rem;
  line-height: 1;
}
.system-card {
  padding: 0.2rem 0.1rem;
}
.system-card-tag {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.system-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-hero);
  color: var(--heading);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}
.system-card p {
  margin: 0 0 0.85rem;
  color: var(--text);
  line-height: 1.6;
}
.system-media {
  margin: 1.15rem 0 0;
}
.system-media img {
  width: min(420px, 100%);
  display: block;
  margin: 0 auto;
}
.system-media figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.82rem;
}
.system-store-links {
  margin: 0.35rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.system-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 220px;
  margin-top: 0;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(113, 199, 236, 0.35);
  background: linear-gradient(180deg, rgba(20, 40, 74, 0.9), rgba(15, 33, 64, 0.9));
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.system-store-link:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 199, 236, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.store-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(248, 250, 252, 0.25);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.store-icon.apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f8fafc'%3E%3Cpath d='M16.365 12.995c.014 2.35 2.063 3.132 2.086 3.142-.018.055-.327 1.123-1.075 2.227-.647.953-1.317 1.903-2.374 1.924-1.038.02-1.371-.616-2.556-.616-1.184 0-1.556.596-2.537.636-1.02.04-1.797-1.02-2.45-1.97-1.334-1.93-2.353-5.456-.985-7.829.679-1.178 1.892-1.925 3.208-1.945 1.001-.02 1.946.677 2.556.677.61 0 1.755-.838 2.958-.715.503.021 1.914.203 2.82 1.529-.073.045-1.685.982-1.667 2.94zM14.572 6.104c.543-.658.91-1.574.81-2.49-.784.032-1.731.523-2.294 1.18-.502.58-.943 1.512-.823 2.4.874.068 1.765-.443 2.307-1.09z'/%3E%3C/svg%3E");
}
.store-icon.google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3.5l10.6 8.5L4 20.5z' fill='%23f8fafc'/%3E%3Cpath d='M14.6 12L18 9.2c.9.5 1.4 1.2 1.4 2.8 0 1.6-.5 2.3-1.4 2.8z' fill='%2371c7ec'/%3E%3C/svg%3E");
}
.store-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}
.store-overline {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.02em;
}
.store-name {
  font-size: 1.12rem;
  color: #f8fafc;
}
.system-availability {
  text-align: center;
}

.system-features {
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.page-system main > .section.system-features {
  background: var(--bg);
}
.system-features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.system-feature-item {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.system-feature-item h3 {
  margin: 0 0 0.45rem;
  color: var(--heading);
  font-size: 1.08rem;
}
.system-feature-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.system-pricing {
  padding: 4rem 1.5rem 4.5rem;
  background: var(--bg-alt);
}
.page-system main > .section.system-pricing {
  background: var(--bg-alt);
}

.system-pricing-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.system-pricing-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.system-pricing-blocks {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.system-pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: 0;
}
.system-pricing-left {
  min-width: 0;
  padding: 0;
}
.system-pricing-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.system-pricing-right img {
  width: min(420px, 95%);
  display: block;
}
.system-pricing-right-app {
  min-height: 320px;
}

.system-pricing-card + .pricing-connector {
  margin: 0;
}
.pricing-row-app,
.pricing-card-app {
  margin-top: 0;
}

.pricing-card-footnote {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pricing-card-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.pricing-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
}
.pricing-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.85rem;
}
.pricing-price {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}
.pricing-price-unit {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pricing-save-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--navy);
  background: var(--blue-medium);
}
.pricing-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.pricing-toggle-label {
  border: none;
  background: transparent;
  padding: 0.15rem 0.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.pricing-toggle-label.is-active {
  color: var(--heading);
}
.pricing-toggle-label:hover {
  color: var(--blue-light);
}
.pricing-billing-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 28, 0.55);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pricing-billing-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-light);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pricing-billing-switch.is-annual,
.pricing-billing-switch[aria-checked="true"] {
  background: rgba(113, 199, 236, 0.18);
  border-color: rgba(113, 199, 236, 0.45);
}
.pricing-billing-switch.is-annual::after,
.pricing-billing-switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--blue-medium);
}
.pricing-card-body {
  margin: 0 0 0.85rem;
  color: var(--text);
  line-height: 1.58;
  font-size: 0.94rem;
}
.pricing-includes-label {
  margin: 0 0 0.4rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 0.92rem;
}
.pricing-includes-list {
  margin: 0 0 0.85rem 1.15rem;
  display: grid;
  gap: 0.32rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-connector {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pricing-connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.35), transparent);
}
.pricing-connector-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(113, 199, 236, 0.55);
  background: rgba(113, 199, 236, 0.15);
  box-shadow: 0 0 12px rgba(113, 199, 236, 0.25);
  flex-shrink: 0;
}
.pricing-connector-label {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.nidra-pricing-orb {
  --orb-size: min(320px, 36vw);
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  animation: nidraOrbBreath 6s ease-in-out infinite;
}
.nidra-pricing-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 34%,
    rgba(113, 199, 236, 0.34) 0%,
    rgba(113, 199, 236, 0.11) 38%,
    transparent 70%
  );
}
.nidra-pricing-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(113, 199, 236, 0.34);
  pointer-events: none;
}
.nidra-pricing-orb-ring-1 {
  inset: 9.3%;
}
.nidra-pricing-orb-ring-2 {
  inset: 22.7%;
  border-color: rgba(113, 199, 236, 0.26);
}
.nidra-pricing-orb-logo-wrap {
  position: absolute;
  inset: 22.7%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nidra-pricing-orb-logo {
  width: 54%;
  height: auto;
  display: block;
  animation: nidraOrbLogoRotate 18s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}
@keyframes nidraOrbBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes nidraOrbLogoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.system-pricing-order {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
}
.system-pricing-order .section-tag {
  display: block;
  margin-bottom: 0.65rem;
}
.system-pricing-order-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
}
.system-pricing-order-lead {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.58;
}
.system-pricing-steps {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.system-pricing-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.55;
}
.system-pricing-step:first-child {
  border-top: none;
  padding-top: 0;
}
.system-pricing-step-num {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-medium);
}
.system-pricing-step-text {
  font-size: 0.94rem;
}

.system-price {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 700;
}
.system-price-alt {
  margin: -0.35rem 0 0.2rem;
  font-size: 1rem;
  color: var(--heading);
  font-weight: 700;
}
.system-price-note {
  margin: -0.7rem 0 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: lowercase;
}
.system-included-title {
  margin: 0 0 0.45rem;
  color: var(--heading);
  font-weight: 700;
}
.system-included-list {
  margin: 0 0 1.1rem 1.2rem;
  display: grid;
  gap: 0.3rem;
  color: var(--text);
}
.system-buy-placeholder {
  margin: 0.4rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.system-store-links-title {
  margin: 0.2rem 0 0.2rem;
  color: var(--heading);
  font-weight: 600;
}
.system-store-links-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: 0.85rem;
}
.system-store-links-pricing .system-store-links-title {
  grid-column: 1 / -1;
  text-align: left;
  text-transform: lowercase;
}
.system-store-links-pricing .system-store-link {
  width: 100%;
  min-width: 0;
}
.system-policy-note {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.system-close {
  margin: 1.2rem auto 0;
  text-align: center;
  color: var(--blue-medium);
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
}
.product-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-orbit {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(203, 213, 225, 0.5), rgba(14, 22, 42, 1));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-orbit::before,
.product-orbit::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px solid rgba(203, 213, 225, 0.2);
}
.product-orbit::after {
  inset: 22%;
  border-color: rgba(203, 213, 225, 0.12);
}
.product-orbit-inner {
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(248, 250, 252, 0.9), rgba(21, 34, 56, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-orbit-label {
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.product-orbit-icon {
  font-size: 2.6rem;
}
.product-content .section-tag {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}
.product-content .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-content .section-lead {
  font-family: var(--font-body);
  color: var(--blue-light);
  max-width: none;
  font-weight: 400;
  line-height: 1.6;
}
.product-included {
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.product-included-title {
  font-family: var(--font-body);
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-light);
}
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-list li {
  font-family: var(--font-body);
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--blue-light);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}
.product-list li:last-child { margin-bottom: 0; }
.product-cta {
  margin-top: 1.75rem;
}
.product-cta .cta-primary {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: var(--navy);
}
.product-cta .cta-primary:hover {
  background: var(--blue-medium);
  border-color: var(--blue-medium);
  color: var(--navy);
}

/* --- Feature cards (used elsewhere) --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--blue-medium);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.4rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Founder --- */
.founder { background: var(--bg-alt); }
.founder-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.founder-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(42, 77, 105, 0.12);
}
.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.founder-content .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}
.founder-content .section-lead { max-width: 100%; }

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  padding: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 4px solid var(--blue-bright);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 0.35rem;
  display: block;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.35rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Patents --- */
.patent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.patent-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.patent-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-medium);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}
.patent-card h3 {
  font-family: var(--font-hero);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.patent-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- CTA (Welcome home — grand like hero, our theme) --- */
.section.cta {
  /* Override .section:nth-child(even) so CTA keeps dark background */
  background: linear-gradient(180deg, var(--navy) 0%, var(--bg-alt) 100%) !important;
}
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem 4.5rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta .container {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.cta-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.cta-title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.25rem;
}
.cta-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.cta .cta-primary {
  background: var(--blue-bright);
  color: var(--navy);
  border: 2px solid var(--blue-bright);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cta .cta-primary:hover {
  background: var(--blue-medium);
  border-color: var(--blue-medium);
  color: var(--navy);
  transform: scale(1.02);
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.cta-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid var(--blue-light);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-secondary-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}
.cta-disclaimer {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* --- Wellness First (pre-CTA disclaimer band) --- */
.section.wellness-first {
  padding: 4rem 1.5rem 2.75rem;
  text-align: center;
}
.wellness-first-tag {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-medium);
  margin-bottom: 0.5rem;
}
.wellness-first-line {
  margin: 0 auto 1rem;
  font-family: var(--font-hero);
  font-size: clamp(1.45rem, 3.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  max-width: 900px;
}
.wellness-first-body {
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

/* --- Testimonials (Real people) --- */
.section.testimonials {
  padding: 4.5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}
.testimonials-tag {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-medium);
  margin-bottom: 0.5rem;
}
.testimonials-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.testimonials-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}

.testimonials-intro {
  max-width: 58rem;
  margin: 0 auto 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.testimonial-card {
  padding: 1.5rem 1.35rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.testimonial-stars {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--blue-medium);
  line-height: 1;
}
.testimonial-quote {
  font-family: var(--font-hero);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
  margin-top: auto;
}

/* --- FAQ (cards, our theme) --- */
.faq-section {
  background: var(--bg);
  text-align: center;
}
.faq-section .section-tag {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.faq-section .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2.5rem;
  line-height: 1.15;
}
.faq-section .section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--heading);
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  text-align: left;
}
.faq-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.faq-question {
  font-family: var(--font-body);
  padding: 1.15rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 1.35rem 1.2rem;
}
.faq-answer p {
  font-family: var(--font-body);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

/* --- Contact --- */
.contact { padding-bottom: 4rem; background: var(--bg-alt); text-align: center; }
.section.contact .section-tag {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-medium);
  font-weight: 500;
}
.section.contact .section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.contact-email { font-size: 1.1rem; margin: 0.5rem 0 0.25rem; }
.contact-email a {
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 600;
}
.contact-email a:hover { color: var(--blue-medium); }
.contact-office {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-medium);
}
.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.footer-newsletter-form input.is-invalid,
.coming-soon-newsletter-form input.is-invalid {
  border-color: #e83e5f;
}
.field-error {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #e83e5f;
  margin: -0.2rem 0 0.15rem;
}
.contact-form button { align-self: center; }
.form-status { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-status.success { color: var(--blue-medium); }
.form-status.error { color: #c0392b; }
.faq-close {
  margin: 1.2rem auto 0;
  text-align: center;
  color: var(--blue-medium);
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--navy);
  color: var(--blue-light);
}
.footer-inner {
  max-width: min(92vw, 1280px);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.5rem;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}
.footer-newsletter-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 0.4rem;
}
.footer-newsletter-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}
.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--blue-light);
}
.footer-newsletter-form .field-error {
  flex-basis: 100%;
  margin: 0;
}
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 100%;
}
.footer-newsletter-status.success { color: #86efac; }
.footer-newsletter-status.error { color: #fca5a5; }
.footer-newsletter-btn {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-newsletter-btn:hover {
  background: var(--blue-light);
  color: var(--navy);
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 2rem;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}
.footer-nav-grid .footer-col:nth-child(1) { justify-self: start; text-align: left; }
.footer-nav-grid .footer-col:nth-child(2) { justify-self: center; text-align: left; }
.footer-nav-grid .footer-col:nth-child(3) { justify-self: end; text-align: left; }
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 0.75rem;
}
.footer-col a {
  font-family: var(--font-body);
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--blue-light);
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.footer-col a:hover { color: #fff; }
.footer-col a:last-child { margin-bottom: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-legal {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--blue-light);
  text-decoration: none;
  font-size: 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

/* --- Scroll visibility --- */
/* Exclude product section to avoid double/ghost text (system page has single product block) */
.section:not(.product) .section-tag,
.section:not(.product) .section-title,
.section:not(.product) .section-lead,
.section .story-quote,
.section .problem-quote,
.section .problem-inner,
.section .solution-inner,
.section .return-inner,
.section .return-card,
.section:not(.product) .product-inner,
.section .product-orbit,
.section .about-nidra-inner,
.section .testimonials-grid,
.section .testimonial-card,
.section .feature-cards .card,
.section .science-inner,
.section .science-card,
.section .patent-cards .patent-card,
.section .founder-inner,
.section .faq-list {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section.visible .section-tag,
.section.visible .section-title,
.section.visible .section-lead,
.section.visible .story-quote,
.section.visible .problem-quote,
.section.visible .problem-inner,
.section.visible .solution-inner,
.section.visible .return-inner,
.section.visible .return-card,
.section.visible:not(.product) .product-inner,
.section.visible .product-orbit,
.section.visible .about-nidra-inner,
.section.visible .feature-cards .card,
.section.visible .science-inner,
.section.visible .science-card,
.section.visible .patent-cards .patent-card,
.section.visible .founder-inner,
.section.visible .testimonials-grid,
.section.visible .testimonial-card,
.section.visible .faq-list { opacity: 1; transform: translateY(0); }
.section.visible .section-tag { transition-delay: 0s; }
.section.visible .section-title { transition-delay: 0.06s; }
.section.visible .section-lead { transition-delay: 0.12s; }
.section.visible .story-quote { transition-delay: 0.2s; }
.section.visible .problem-quote { transition-delay: 0.18s; }
.section.visible .feature-cards .card:nth-child(1) { transition-delay: 0.15s; }
.section.visible .feature-cards .card:nth-child(2) { transition-delay: 0.2s; }
.section.visible .feature-cards .card:nth-child(3) { transition-delay: 0.25s; }
.section.visible .science-card:nth-child(1) { transition-delay: 0.12s; }
.section.visible .science-card:nth-child(2) { transition-delay: 0.18s; }
.section.visible .science-card:nth-child(3) { transition-delay: 0.24s; }
.section.visible .science-card:nth-child(4) { transition-delay: 0.3s; }
.section.visible .patent-cards .patent-card:nth-child(1) { transition-delay: 0.15s; }
.section.visible .patent-cards .patent-card:nth-child(2) { transition-delay: 0.2s; }
.section.visible .testimonial-card:nth-child(1) { transition-delay: 0.12s; }
.section.visible .testimonial-card:nth-child(2) { transition-delay: 0.18s; }
.section.visible .testimonial-card:nth-child(3) { transition-delay: 0.24s; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--navy);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; color: #fff; }
  .menu-btn { display: flex; }
  .menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  body.menu-open { overflow: hidden; }
  .hero { padding: 5rem 1rem 3rem; }
  .hero-buttons { flex-direction: column; }
  .hero .cta-primary, .cta-secondary { width: 100%; max-width: 280px; justify-content: center; }
  .section { padding: 2.5rem 1rem; }
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-nidra-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-v2-story-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }
  .about-story-lux-quote {
    align-self: start;
    padding-left: 1.35rem;
  }
  .about-v2-founder-split {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .founder-modal-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .founder-modal-photo {
    max-width: 200px;
  }
  .founder-modal-body {
    flex-direction: column;
  }
  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: min(100%, calc(342px * 0.7));
    justify-items: stretch;
  }
  .founder-card {
    width: 100%;
    max-width: none;
  }
  .founder-card-photo {
    width: 100%;
  }
  .about-v2-founder-card {
    flex: none;
  }
  .about-v2-founder-narrative {
    flex: none;
  }
  .about-v2-founder-intro-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-v2-clinical-inner {
    grid-template-columns: 1fr;
  }
  .about-v2-clinical-doctor {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .about-v2-clinical-doctor-photo {
    max-width: 300px;
  }
  .about-v2-founder-cred-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .about-v2-patent-grid {
    grid-template-columns: 1fr;
  }
  .about-v2-patent-card-top {
    flex-direction: column;
  }
  .about-v2-patent-meta div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .science-inner { grid-template-columns: 1fr; gap: 2rem; }
  .science-v2-lead-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .science-v2-lead-copy {
    max-width: none;
    padding-right: 0;
    margin-right: 0;
    order: 1;
  }
  .science-v2-lead-media {
    justify-self: center;
    max-width: min(100%, 400px);
    order: 2;
  }
  .science-v2-mid-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .science-v2-mid-copy {
    max-width: none;
    padding-left: 0;
    margin-left: 0;
    order: 1;
  }
  .science-v2-mid-media {
    justify-self: center;
    max-width: min(100%, 400px);
    order: 2;
  }
  .problem-header { text-align: center; }
  .problem-content { text-align: center; }
  .problem-content .section-lead { text-align: left; }
  .problem-quote { text-align: center; }
  .solution-header { text-align: center; }
  .solution-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .solution-steps-card { padding: 1.5rem 1.25rem 1.35rem; }
  .founder-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .founder-photo { max-width: 240px; margin: 0 auto; }
  .feature-cards { grid-template-columns: 1fr; }
  .return-benefits { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  /* Only stack product on mobile when it's NOT the system page (system keeps desktop layout) */
  .section.product:not(.product-with-image) .product-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section.product:not(.product-with-image) .product-content {
    margin-top: 2.5rem;
  }
  .section.product:not(.product-with-image) .product-content .section-lead {
    text-align: left;
  }
  /* System page: stack with product image on top, text below */
  .section.product.product-with-image .product-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section.product.product-with-image .product-visual {
    grid-column: auto;
    padding-right: 0;
    margin-bottom: 1rem;
  }
  .section.product.product-with-image .product-content {
    grid-column: auto;
    margin-top: 0;
  }
  .section.product.product-with-image .product-content .section-lead {
    text-align: left;
  }
  .section.product.product-with-image .product-included,
  .section.product.product-with-image .product-included-title,
  .section.product.product-with-image .product-list {
    text-align: left;
  }
  .section.product.product-with-image .product-included {
    margin-left: 0;
    margin-right: 0;
  }
  .system-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .system-plus {
    display: none;
  }
  .system-features-grid {
    grid-template-columns: 1fr;
  }
  .system-pricing-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .system-pricing-right {
    order: 2;
    min-height: 200px;
  }
  .system-pricing-right img {
    width: min(280px, 80vw);
  }
  .system-pricing-right-app {
    min-height: 220px;
  }
  .nidra-pricing-orb {
    --orb-size: min(240px, 62vw);
  }
  .pricing-connector {
    padding: 1.25rem 0;
  }
  .system-store-links-pricing {
    grid-template-columns: 1fr;
  }
  .system-store-links-pricing .system-store-links-title {
    text-align: center;
  }
  .system-pricing-order {
    padding: 1.35rem 1.25rem;
  }
  /* Override #product img (higher specificity) so EEG image is 80% width on mobile */
  #product.product-with-image .product-visual img {
    width: 80vw;
    max-width: 80vw;
  }
  .pipeline { padding-left: 1.25rem; }
  .pipeline::before { left: 13px; }
  .pipeline-dot { left: -1.25rem; width: 28px; height: 28px; }
  .pipeline-num { font-size: 0.85rem; }
  .pipeline-content { margin-left: 1.5rem; }
  .section.story { padding: 3rem 1rem; }
  .cta-buttons { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== How it works — intro scrolls, then fixed panel (scroll drives step), then footer ===== */
.page-how .how-main { padding-top: 0; }

/* Intro: one full viewport, scrolls away */
.how-intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--bg);
  text-align: center;
}
.how-intro.has-hero-waves {
  position: relative;
  overflow: hidden;
  /* Matches hero canvas base (#0A0F1C) before first frame */
  background: #0A0F1C;
}
.hero-waves-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.how-intro.has-hero-waves .how-intro-inner {
  position: relative;
  z-index: 1;
}
.how-intro-inner { max-width: 1200px; }

/* About page: hero matches how/science intro shell */
.how-intro.about-page-intro .how-hero-title.about-hero-heading {
  margin-bottom: 1.5rem;
}
.how-intro.about-page-intro .about-hero-heading .about-hero-title-line {
  display: block;
}
.how-intro.about-page-intro .about-hero-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.how-intro.about-page-intro .how-scroll-hint {
  margin-top: 0.75rem;
}
.how-tag {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-medium);
  display: block;
  margin-bottom: 1.75rem;
}
.how-hero-title {
  font-family: var(--font-hero);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 1.75rem;
}
@media (min-width: 640px) {
  .hero-title,
  .how-hero-title {
    font-size: 3.75rem;
  }
}
.how-hero-title em { font-style: italic; font-weight: 400; color: var(--blue-medium); }
.how-hero-lead {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 1.35rem;
}
.how-hero-extra-title {
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-medium);
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}
.how-hero-extra-body {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2.1vw, 1.25rem);
  color: var(--text);
  line-height: 1.6;
  max-width: 1050px;
  margin: 0 auto 1.1rem;
}
.how-scroll-hint {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  animation: howScrollHint 2s ease-in-out infinite;
}
a.how-scroll-hint {
  text-decoration: none;
  color: var(--text-muted);
  display: inline-block;
}
a.how-scroll-hint:hover {
  opacity: 1;
  color: var(--blue-light);
}
@keyframes howScrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* Fixed steps panel: fills viewport when locked; scroll input advances step 1–6 */
.how-steps-panel {
  min-height: 100vh;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  background: var(--bg-alt);
}
.how-steps-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.how-steps-content { max-width: 480px; }
.how-step-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-medium);
  margin-bottom: 0.5rem;
}
.how-step-title {
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-medium);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.how-step-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.how-step-final-line {
  display: block;
  margin-top: 0.7rem;
  color: var(--text);
  font-weight: 600;
}
.how-step-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
}
.how-footer-spacer { min-height: 1px; }
.how-difference {
  padding: 3.5rem 1.5rem 4rem;
  background: var(--bg-alt);
}
.how-difference-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}
.how-difference-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--heading);
}
.how-difference-body {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
}
.how-difference-list {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
}
.how-difference-close {
  margin: 0;
  text-align: center;
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
  color: var(--blue-medium);
}

/* Mobile: full scroll – 6 blocks (text then phone per step); hidden on desktop */
.how-steps-mobile {
  display: none;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* Static six-step timeline (desktop + mobile) */
.how-steps-panel.how-steps-panel-mobile {
  height: auto;
  min-height: 0;
  align-items: flex-start;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.how-steps-panel.how-steps-panel-mobile .how-steps-inner {
  display: none;
}
.how-steps-panel.how-steps-panel-mobile .how-steps-mobile {
  display: block;
}
.how-mobile-timeline-head {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-medium);
}
.how-mobile-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0.15rem;
}
.how-mobile-timeline::before {
  content: '';
  position: absolute;
  left: 1.58rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(113, 199, 236, 0.38), rgba(113, 199, 236, 0.16));
}
.how-step-mobile-block {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.2rem 0 2.2rem;
  text-align: left;
}
.how-step-mobile-block:last-child {
  padding-bottom: 0;
}
.how-step-mobile-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  background: radial-gradient(circle at 35% 30%, #5fc9f2, #2e5f92 78%);
  border: 1px solid rgba(113, 199, 236, 0.75);
  box-shadow: 0 0 0 6px rgba(113, 199, 236, 0.08);
}
.how-step-mobile-text {
  margin-bottom: 0;
}
.how-step-mobile-text .how-step-title,
.how-step-mobile-text .how-step-body {
  margin-left: 0;
  margin-right: 0;
}
.how-step-mobile-text .how-step-title {
  color: var(--heading);
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 3.4vw, 2.7rem);
}
.how-step-mobile-text .how-step-body {
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 0;
}
.how-step-mobile-text .how-step-final-line {
  margin-top: 0.8rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(113, 199, 236, 0.8);
  color: #9ad6ec;
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

/* Phone mockup (outer stays same; inner screen content swaps) */
.how-phone {
  width: min(280px, 75vw);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(145deg, #1a1f2e 0%, #0f1419 100%);
  border-radius: 2.25rem;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.how-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.how-app-header {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  padding: 1.25rem 1rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.how-app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
}
.how-app-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
  margin: 0 0 0.25rem;
}
.how-app-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.how-app-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-bright);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  cursor: default;
}
.how-app-btn-primary {
  padding: 0.65rem 1.35rem;
  margin-top: 1rem;
}
.how-app-icon-wrap { margin-bottom: 0.75rem; }
.how-app-icon { font-size: 2.5rem; }

/* App screen: EEG recording (header "Nidra", "EEG recording" below in body) */
.how-app-body-eeg {
  padding-top: 2rem;
  justify-content: flex-start;
  align-items: center;
}
.how-app-eeg-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1rem;
  text-align: center;
}
.how-app-duration {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-align: center;
}
.how-app-eeg .how-app-progress {
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}
.how-app-recording-bar {
  width: 0%;
  animation: none;
  transition: width 1.8s linear;
}
.how-app-status {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}
.how-app-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-medium);
  border-radius: 50%;
  animation: howSpin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes howSpin { to { transform: rotate(360deg); } }

/* Upload / processing */
.how-app-upload .how-app-upload-icon,
.how-app-screen .how-app-upload-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
  background: rgba(113, 199, 236, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-app-cloud { font-size: 1.5rem; opacity: 0.9; }
.how-app-check { position: absolute; font-size: 1.25rem; color: var(--blue-medium); font-weight: 700; }
.how-app-progress {
  width: 100%;
  max-width: 140px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.how-app-progress-bar {
  display: block;
  width: 65%;
  height: 100%;
  background: var(--blue-medium);
  border-radius: 2px;
  animation: howProgress 1.5s ease-in-out infinite;
}
@keyframes howProgress {
  0% { width: 30%; }
  100% { width: 75%; }
}

/* Step 3: waveform (analyse) */
.how-app-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  margin-bottom: 0.75rem;
}
.how-app-waveform span {
  width: 5px;
  height: 100%;
  background: var(--blue-medium);
  border-radius: 3px;
  opacity: 0.7;
  animation: howWave 0.8s ease-in-out infinite;
}
.how-app-waveform span:nth-child(1) { animation-delay: 0s; height: 40%; }
.how-app-waveform span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.how-app-waveform span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.how-app-waveform span:nth-child(4) { animation-delay: 0.3s; height: 85%; }
.how-app-waveform span:nth-child(5) { animation-delay: 0.4s; height: 60%; }
.how-app-waveform span:nth-child(6) { animation-delay: 0.2s; height: 75%; }
.how-app-waveform span:nth-child(7) { animation-delay: 0.1s; height: 45%; }
@keyframes howWave {
  0%, 100% { transform: scaleY(0.8); }
  50% { transform: scaleY(1); }
}

/* Step 4: notification screen (matches app notification_screen.dart: title, body, time) */
.how-app-body-notification {
  align-items: stretch;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.how-app-notification-card {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.how-app-notification-bar {
  height: 4px;
  background: var(--blue-medium);
  flex-shrink: 0;
}
.how-app-notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.6rem 0.6rem;
}
.how-app-notification-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(113, 199, 236, 0.2);
  position: relative;
}
.how-app-notification-bell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.how-app-notification-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.how-app-notification-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.2rem;
}
.how-app-notification-body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.how-app-notification-time {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
}
/* Step 5: player (matches app audio_player_screen: play wheel, title, artist, slider, time) */
.how-app-body-player {
  padding-top: 0.5rem;
}
.how-app-player-screen-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.5rem;
  text-align: center;
}
.how-app-player-wheel {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto 0.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.how-app-player-wheel-name {
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  animation: howPlayerWheelRotate 8s linear infinite;
}
@keyframes howPlayerWheelRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.how-app-player-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.2rem;
  text-align: center;
}
.how-app-player-artist {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
  text-align: center;
}
.how-app-player-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}
.how-app-player-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--navy);
  border: none;
  font-size: 1rem;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.how-app-player-slider-wrap {
  flex: 1;
  min-width: 0;
}
.how-app-player-slider {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.how-app-player-slider-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--blue-medium);
  border-radius: 2px;
  transition: width 0.8s linear;
}
.how-app-player-time {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 180px;
  margin: 0.35rem auto 0;
  padding: 0 0.25rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.how-app-player-time span:last-child {
  margin-left: auto;
}

/* Step 6: Delta peak power graph with label */
.how-app-body-delta {
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.5rem 1.25rem;
}
.how-delta-card {
  width: 100%;
  max-width: 220px;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.how-delta-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0E162A;
  margin: 0 0 0.5rem;
  text-align: center;
}
.how-delta-chart-wrap {
  width: 100%;
  aspect-ratio: 100/50;
  min-height: 120px;
}
.how-delta-chart {
  width: 100%;
  height: 100%;
  display: block;
}
.how-delta-chart-bg {
  fill: rgba(113, 199, 236, 0.3);
}
.how-delta-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-delta-dot {
  fill: #2563eb;
}

@media (max-width: 768px) {
  .how-steps-panel {
    padding: 2rem 1rem 3rem;
  }
  /* Mobile: full scroll – panel grows with content; desktop inner hidden */
  .how-steps-panel.how-steps-panel-mobile {
    height: auto;
    min-height: 0;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  .how-steps-panel.how-steps-panel-mobile .how-steps-inner {
    display: none;
  }
  .how-steps-panel.how-steps-panel-mobile .how-steps-mobile {
    display: block;
  }
  .how-mobile-timeline-head {
    margin: 0 0 1.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--blue-medium);
  }
  .how-mobile-timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding-left: 0.15rem;
  }
  .how-mobile-timeline::before {
    content: '';
    position: absolute;
    left: 1.58rem;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(113, 199, 236, 0.38), rgba(113, 199, 236, 0.16));
  }
  .how-step-mobile-block {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.2rem 0 1.85rem;
    text-align: left;
  }
  .how-step-mobile-block:last-child {
    padding-bottom: 0;
  }
  .how-step-mobile-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    background: radial-gradient(circle at 35% 30%, #5fc9f2, #2e5f92 78%);
    border: 1px solid rgba(113, 199, 236, 0.75);
    box-shadow: 0 0 0 6px rgba(113, 199, 236, 0.08);
  }
  .how-step-mobile-text {
    margin-bottom: 0;
  }
  .how-step-mobile-text .how-step-title,
  .how-step-mobile-text .how-step-body {
    margin-left: 0;
    margin-right: 0;
  }
  .how-step-mobile-text .how-step-title {
    color: var(--heading);
    margin-bottom: 0.7rem;
    font-size: clamp(1.35rem, 5.1vw, 1.95rem);
  }
  .how-step-mobile-text .how-step-body {
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 0;
  }
  .how-step-mobile-text .how-step-final-line {
    margin-top: 0.8rem;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(113, 199, 236, 0.8);
    color: #9ad6ec;
    font-family: var(--font-hero);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
  }
  /* Desktop-style single column when not in mobile layout (no .how-steps-panel-mobile) */
  .how-steps-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    align-items: flex-start;
  }
  .how-steps-content { order: 1; max-width: 100%; }
  .how-steps-device { order: 0; }
  .how-step-body { margin-left: auto; margin-right: auto; }
  .how-phone {
    margin: 0 auto;
    width: min(260px, 80vw);
  }
  .how-phone-screen {
    overflow-y: auto;
  }
  .how-app-body {
    padding: 1rem 0.75rem;
  }
}

/* --- Coming soon page --- */
.page-coming-soon .coming-soon-main {
  padding-top: 0;
}
.coming-soon-intro {
  min-height: calc(100vh - 4rem);
  padding-bottom: 5rem;
}
.coming-soon-inner {
  max-width: 42rem;
}
@media (min-width: 640px) {
  .coming-soon-inner {
    width: 100%;
    max-width: 75rem;
  }
}
@media (min-width: 1100px) {
  .page-coming-soon .how-hero-title {
    white-space: nowrap;
  }
}
.coming-soon-lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--blue-light);
}
.coming-soon-card {
  margin: 2.25rem auto 0;
  max-width: 28rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: left;
  background: rgba(24, 34, 57, 0.85);
  border: 1px solid rgba(113, 199, 236, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.coming-soon-card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-medium);
  margin: 0 0 0.5rem;
}
.coming-soon-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.coming-soon-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.coming-soon-newsletter-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--heading);
}
.coming-soon-newsletter-form input::placeholder {
  color: var(--text-muted);
}
.coming-soon-newsletter-form input:focus {
  outline: none;
  border-color: var(--blue-medium);
}
.coming-soon-submit {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}
.coming-soon-status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--blue-light);
}
.coming-soon-status.success {
  color: #86efac;
}
.coming-soon-status.error {
  color: #fca5a5;
}
.coming-soon-footnote {
  margin: 2rem auto 0;
  max-width: 28rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.coming-soon-footnote a {
  color: var(--blue-medium);
  text-decoration: none;
}
.coming-soon-footnote a:hover {
  text-decoration: underline;
}
