@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Agesync — design tokens (ported from agev3 styles.css) ── */
:root {
  --ink: #0a0a12;
  --ink-2: #15151f;
  --paper: #f4f2ee;
  --paper-2: #ebe7df;
  --purple-deep: #1a0d3d;
  --purple-mid: #4b2a9e;
  --violet: #7b5cff;
  --violet-soft: #a394ff;
  --ice: #c9d4ff;

  /* IvyHealth warmth — blended into the Agesync violet base */
  --coral: #fe8f77;
  --pink: #ffc8c8;
  --magenta: #ec2f73;
  --grad-ivy: linear-gradient(115deg, #7b5cff 0%, #ec2f73 62%, #fe8f77 100%);
  --rule: rgba(10, 10, 18, 0.12);
  --rule-d: rgba(255, 255, 255, 0.14);
  --muted: rgba(10, 10, 18, 0.58);
  --muted-d: rgba(255, 255, 255, 0.62);

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-ivy: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Prevent any descendant element from forcing the document wider than the viewport. */
body { max-width: 100%; }
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(48px, 7.2vw, 112px); letter-spacing: -0.04em; font-weight: 400; }
h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.035em; }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
p  { margin: 0; }

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark-bg .eyebrow { color: var(--muted-d); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { opacity: 1; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-violet { background: var(--violet); color: white; }
.btn .arr { display: inline-block; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 160px) 0; }
.section-pad-sm { padding: clamp(48px, 6vw, 88px) 0; }

.dark-bg { background: var(--ink); color: var(--paper); }

.rule { height: 1px; background: var(--rule); width: 100%; }

/* Hero gradient — Agesync violet warmed by an IvyHealth coral bloom */
.hero-gradient {
  background:
    radial-gradient(ellipse 60% 46% at 88% 78%, rgba(236, 47, 115, 0.34) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 96% 96%, rgba(254, 143, 119, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 78% 26%, #6c3fb8 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 12% 78%, #2d1773 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, #0d0628 0%, transparent 70%),
    linear-gradient(180deg, #1a0d3d 0%, #0a0418 100%);
}

/* Violet-deep section — calmer cousin of hero, bloom in upper-right */
.violet-bg {
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(123, 92, 255, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(75, 42, 158, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #1a0d3d 0%, #150a32 100%);
  color: var(--paper);
}
.violet-bg .eyebrow { color: var(--muted-d); }

/* Violet-deep section — alternate placement, bloom in lower-left */
.violet-bg-2 {
  background:
    radial-gradient(ellipse 70% 55% at 15% 85%, rgba(123, 92, 255, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(108, 63, 184, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #150a32 0%, #1a0d3d 100%);
  color: var(--paper);
}
.violet-bg-2 .eyebrow { color: var(--muted-d); }

/* Cream variant for light sections — distinct from --paper */
.cream-bg { background: var(--paper-2); color: var(--ink); }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  gap: 48px;
}

.violet-text {
  background: linear-gradient(180deg, #c9d4ff 0%, #7b5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Subpage hero ── */
.page-hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, #6c3fb8 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 15% 80%, #2d1773 0%, transparent 60%),
    linear-gradient(180deg, #1a0d3d 0%, #0a0418 100%);
  color: var(--paper);
  padding: clamp(140px, 18vw, 220px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 em { font-style: italic; font-weight: 300; opacity: .85; color: var(--violet-soft); }

/* ── How it works: stages ── */
.stage {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.stage:last-child { border-bottom: 1px solid var(--rule); }
.stage-num {
  font-family: var(--font-display);
  font-size: 96px; font-weight: 300;
  line-height: .9; letter-spacing: -.04em;
  color: var(--violet);
}
.stage-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  color: var(--muted);
  margin-top: 12px; text-transform: uppercase;
}
.stage h3 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 20px; max-width: 18ch; }
.stage p  { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 48ch; }
.meta-card { background: var(--paper-2); border-radius: 18px; overflow: hidden; }
.meta-row  { padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.meta-row:last-child { border-bottom: none; }
.meta-key {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em;
  color: var(--violet);
  text-transform: uppercase; margin-bottom: 6px;
}
.meta-val { font-size: 14px; line-height: 1.5; }

/* ── How it works: stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255,255,255,.1);
}
.stat { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px); font-weight: 300;
  letter-spacing: -.04em; line-height: 1;
}
.stat-l {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,242,238,.6);
  margin-top: 14px;
}

/* ── Quote section (How it works + Science) ── */
.quote-section { background: var(--paper-2); padding: clamp(80px, 10vw, 140px) 0; }
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.quote-h {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400; letter-spacing: -.03em; line-height: 1.05;
}
.quote-h em { color: var(--violet); font-style: italic; font-weight: 300; }

/* ── Science: principles ── */
.principle {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.p-num {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 300;
  line-height: 1; letter-spacing: -.04em;
  color: var(--violet);
}
.principle h3 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 16px; max-width: 22ch; }
.principle p  { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 56ch; }

/* ── Science: biocats (dark) ── */
.biocat {
  padding: 48px 0;
  border-top: 1px solid var(--rule-d);
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 32px;
}
.biocat:last-child { border-bottom: 1px solid var(--rule-d); }
.biocat .bnum {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .14em;
  color: var(--violet-soft);
}
.biocat h3 { font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 8px; }
.biocat .count {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,242,238,.5);
  margin-bottom: 16px;
}
.biocat p { color: rgba(244,242,238,.75); font-size: 15px; line-height: 1.55; max-width: 52ch; }
.markers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.marker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(244,242,238,.85);
}

/* ── Science: stage cards (clinical protocol) ── */
.four-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stage-card { background: var(--paper-2); border-radius: 18px; padding: 28px 32px; }
.stage-card .sn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  color: var(--violet);
  text-transform: uppercase; margin-bottom: 8px;
}
.stage-card h3 { font-size: 22px; margin-bottom: 12px; }
.stage-card p  { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── Science: standards ── */
.standard {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.standard:last-child { border-bottom: 1px solid var(--rule); }
.standard .sn {
  font-family: var(--font-mono);
  font-size: 14px; color: var(--violet);
  letter-spacing: .14em;
}
.standard h3 { font-size: 20px; margin-bottom: 8px; }
.standard p  { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 64ch; }

/* ── Programs: cards + grids ── */
.seg-divider { padding: clamp(72px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.seg-divider.dark-section { background: var(--ink); color: var(--paper); border-top: none; }

.program-card {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 20px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--violet); background: white; }
.program-card.featured { background: var(--purple-deep); color: var(--paper); border-color: rgba(255,255,255,.18); }
.program-card.featured:hover { background: #3d1f8f; border-color: var(--violet); }
.dark-section .program-card { background: rgba(255,255,255,.04); color: var(--paper); border-color: rgba(255,255,255,.12); }
.dark-section .program-card:hover { background: rgba(255,255,255,.07); border-color: var(--violet); }
.dark-section .program-card.featured { background: var(--violet); color: #fff; border-color: var(--violet); }
.dark-section .program-card.featured:hover { background: #7d4fd1; }
.dark-section .program-card .tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.dark-section .program-card .cta { border-top-color: rgba(255,255,255,.15); }

.program-card .badge {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  align-self: flex-start;
  opacity: .8;
}
.program-card h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; max-width: 16ch; }
.program-card p  { font-size: 14px; line-height: 1.55; opacity: .75; }
.program-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.program-card .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10,10,18,.06);
  text-transform: uppercase;
}
.program-card.featured .tag { background: rgba(255,255,255,.08); }
.program-card .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
  font-size: 14px;
  transition: gap .25s ease;
}
.program-card .cta:hover { gap: 12px; }
.program-card.featured .cta { border-top-color: rgba(255,255,255,.15); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.program-grid > .program-card:nth-child(1) { grid-column: span 2; }
.program-grid > .program-card:nth-child(4) { grid-column: span 2; }

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 300;
  line-height: 1; letter-spacing: -.04em;
  color: var(--violet);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
.included-row {
  padding: 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.included-row:nth-child(2n) { border-right: none; }
.included-row:nth-last-child(-n+2) { border-bottom: none; }
.included-h { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.included-d { font-size: 14px; color: var(--muted); }

/* ── Blog list ── */
.blog-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.blog-hero h1 {
  font-size: clamp(56px, 8vw, 112px);
  letter-spacing: -.04em; line-height: .95; font-weight: 400;
  max-width: 14ch;
}
.blog-hero h1 em { font-style: italic; font-weight: 300; color: var(--violet); }
.blog-hero p { font-size: 18px; line-height: 1.55; color: var(--muted); margin-top: 32px; max-width: 56ch; }

.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  background: transparent;
  color: var(--muted);
}
.filter-pill:hover { color: var(--ink); border-color: var(--ink); }
.filter-pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.post-cover {
  aspect-ratio: 4/3;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: var(--purple-deep);
}
.post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.post-cat { color: var(--violet); }

.featured-post h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 24px; }
.featured-post p  { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 32px; }

.post-author { display: flex; gap: 12px; align-items: center; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c3fb8, #2d1773);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 500; }
.author-meta { font-size: 12px; color: var(--muted); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  padding: 64px 0;
}
.post-card {
  display: flex; flex-direction: column; gap: 20px;
  cursor: pointer;
  transition: transform .25s ease;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { transform: translateY(-4px); }
.post-card .post-cover { aspect-ratio: 4/3; }
.post-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.post-card:hover h3 { color: var(--violet); }
.post-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.post-card .post-author { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }

.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px;
  padding: 56px 0 96px;
  border-top: 1px solid var(--rule);
}
.page-btn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.page-btn:hover { border-color: var(--ink); }
.page-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--muted);
}

.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(108,63,184,.4), transparent 60%);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter-inner { max-width: 780px; }
.newsletter h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 20px; }
.newsletter p  { font-size: 17px; line-height: 1.55; color: rgba(244,242,238,.7); margin-bottom: 32px; max-width: 56ch; }
.newsletter form { display: flex; gap: 8px; max-width: 480px; }
.newsletter input {
  flex: 1; min-width: 0;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter button {
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Blog post detail ── */
.post-hero { padding: clamp(120px, 14vw, 180px) 0 64px; max-width: 880px; margin: 0 auto; }
.post-hero .crumb {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.post-hero .crumb a { color: var(--muted); text-decoration: none; }
.post-hero .crumb a:hover { color: var(--ink); }
.post-hero .meta-line {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.post-hero .meta-line .cat { color: var(--violet); }
.post-hero h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -.03em; line-height: 1; font-weight: 400; }
.post-hero h1 em { font-style: italic; font-weight: 300; color: var(--violet); }
.post-hero .lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--muted);
  margin-top: 32px;
  max-width: 64ch;
  font-weight: 300;
}

.post-author-bar {
  display: flex; gap: 16px; align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px;
  flex-wrap: wrap;
}
.post-author-bar .author-avatar { width: 48px; height: 48px; font-size: 16px; }
.post-author-bar .author-name { font-size: 15px; font-weight: 500; }
.post-author-bar .author-meta { font-size: 13px; color: var(--muted); }
.post-author-bar .actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--muted);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }

.post-cover-banner {
  aspect-ratio: 16/7;
  border-radius: 22px;
  margin: 64px auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  background: var(--purple-deep);
}
.post-cover-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  max-width: 720px;
  margin: 0 auto 96px;
  font-size: 19px; line-height: 1.65;
  color: var(--ink);
}
.post-body p { margin-bottom: 28px; }
.post-body h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.1; margin: 64px 0 24px; font-weight: 400; }
.post-body h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin: 40px 0 16px; font-weight: 500; }
.post-body strong { font-weight: 500; }
.post-body em { font-style: italic; }
.post-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
.post-body blockquote {
  border-left: 3px solid var(--violet);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}
.post-body ul, .post-body ol { margin: 0 0 28px 24px; padding: 0; }
.post-body li { margin-bottom: 10px; }
.post-body section:first-of-type h2 { margin-top: 0; }

.pull-quote {
  background: var(--paper-2);
  border-radius: 22px;
  padding: 48px;
  margin: 56px 0;
  text-align: center;
}
.pull-quote q {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.01em;
  quotes: '"' '"';
}
.pull-quote q em { font-style: italic; color: var(--violet); font-weight: 300; }

.data-card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 40px 0;
  background: white;
}
.data-card .data-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.data-card .data-stat {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  line-height: 1; letter-spacing: -.02em;
  margin-bottom: 12px;
}
.data-card .data-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }

.related-section { background: var(--paper-2); padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--rule); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.related-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.related-card .post-cover { aspect-ratio: 4/3; border-radius: 18px; }
.related-card h4 { font-size: 18px; line-height: 1.25; font-family: var(--font-display); font-weight: 500; }
.related-card .post-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ── Login ── */
.login-shell { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100vh; }
.login-form-side { padding: 56px 56px 40px; display: flex; flex-direction: column; }
.login-art-side {
  background: linear-gradient(180deg, #1a0d3d 0%, #0a0418 100%);
  position: relative; overflow: hidden;
  color: var(--paper);
  padding: 56px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.login-art-side::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(108,63,184,.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 90%, rgba(45,23,115,.6) 0%, transparent 60%);
}
.login-art-side::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.login-art-side > * { position: relative; z-index: 1; }
.login-form-wrap { flex: 1; display: grid; place-items: center; padding: 32px 0; }
.login-form { width: 100%; max-width: 420px; }
.login-form h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -.02em;
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 12px;
}
.login-form h1 em { font-style: italic; font-weight: 300; color: var(--violet); }
.login-form .sub { font-size: 16px; color: var(--muted); line-height: 1.55; margin-bottom: 36px; }

.login-field { margin-bottom: 18px; }
.login-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.login-field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: white;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-field input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(108,63,184,.12);
}
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.field-row label { margin-bottom: 0; }
.field-row a {
  font-size: 13px;
  color: var(--violet);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.field-row a:hover { text-decoration: underline; }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 24px 0 28px; font-size: 14px; color: var(--muted); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--violet); }

.login-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}
.login-btn:hover { background: var(--purple-deep); }

.divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 24px;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 32px);
  height: 1px;
  background: var(--rule);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.sso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.sso-btn {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: white;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--ink);
}
.sso-btn:hover { border-color: var(--ink); }
.sso-btn svg { width: 18px; height: 18px; }

.signup-line { font-size: 14px; color: var(--muted); text-align: center; margin-top: 24px; }
.signup-line a { color: var(--violet); text-decoration: none; font-weight: 500; }
.signup-line a:hover { text-decoration: underline; }

.login-footer-row {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.login-footer-row a { color: var(--muted); text-decoration: none; }
.login-footer-row a:hover { color: var(--ink); }

.art-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,242,238,.5);
}
.art-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -.02em;
  line-height: 1.05;
  font-weight: 400;
  margin-top: 24px;
}
.art-headline em { font-style: italic; font-weight: 300; color: rgba(244,242,238,.7); }
.art-bottom { display: grid; gap: 24px; }
.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,242,238,.5);
  margin-bottom: 6px;
}
.stat-card .stat-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.stat-card .stat-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.stat-card .stat-val { font-family: var(--font-mono); font-size: 13px; color: rgba(244,242,238,.7); }
.stat-card .stat-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; position: relative; }
.stat-card .stat-fill { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #6c3fb8, #b794f4); border-radius: 999px; }
.stat-card .stat-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: white; border-radius: 999px; }
.testimonial { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.testimonial q {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.4; font-weight: 300;
  quotes: '"' '"';
  color: rgba(244,242,238,.95);
}
.testimonial .who {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,242,238,.5);
  margin-top: 16px;
}

/* ── Nav (static port) ── */
header[data-nav] {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, color .3s ease;
  color: #f4f2ee;
}
header[data-nav] .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header[data-nav] a { color: inherit; text-decoration: none; }
header[data-nav] .nav-brand {
  display: inline-flex;
  align-items: center;
}

header[data-nav].nav-scrolled {
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,10,18,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #f4f2ee;
}

header[data-nav].nav-light-bg {
  color: var(--ink);
}

header[data-nav] .nav-desktop {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 500;
}
header[data-nav] .nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: var(--font-display);
  opacity: 0.72;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: opacity .2s;
}
header[data-nav] .nav-desktop a.nav-active {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

header[data-nav] .nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
header[data-nav] .nav-login {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
}
header[data-nav].nav-light-bg .nav-cta { background: var(--ink); color: var(--paper); }
header[data-nav]:not(.nav-light-bg) .nav-cta { background: var(--paper); color: var(--ink); }

header[data-nav] .nav-hamburger {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
header[data-nav] .hamburger-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}
header[data-nav] .hamburger-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: all .25s;
}
header[data-nav] .hamburger-top { top: 0; }
header[data-nav] .hamburger-mid { top: 6px; opacity: 1; transition: opacity .2s; }
header[data-nav] .hamburger-bot { top: 12px; }

body.menu-open header[data-nav] .hamburger-top { top: 6px; transform: rotate(45deg); }
body.menu-open header[data-nav] .hamburger-mid { opacity: 0; }
body.menu-open header[data-nav] .hamburger-bot { top: 6px; transform: rotate(-45deg); }
body.menu-open header[data-nav] {
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,10,18,0.72);
  color: #f4f2ee;
}

/* Mobile menu overlay */
[data-mobile-menu] {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(10,4,24,0.96);
  backdrop-filter: blur(20px);
  color: #f4f2ee;
  padding: 90px 28px 32px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.6,.2,.2,1), opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
body.menu-open [data-mobile-menu] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
[data-mobile-menu] nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
[data-mobile-menu] nav a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
[data-mobile-menu] nav a span.mono {
  font-size: 11px;
  color: #a394ff;
  letter-spacing: 0.16em;
}
[data-mobile-menu] .menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

/* ── Nav responsive ── */
.nav-desktop { display: flex; }
.nav-actions { display: flex; }
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-login,
  .nav-cta { display: none !important; }
  .nav-hamburger { display: inline-flex !important; }
}

/* ── Page-level mobile breakpoints ── */
@media (max-width: 900px) {
  .container { padding: 0 24px !important; }

  /* Homepage hero — top-align so wrapped headline isn't clipped by fixed nav */
  .home-hero {
    align-items: flex-start !important;
    min-height: auto !important;
    padding: 130px 20px 96px !important;
  }
  .home-hero h1 { font-size: clamp(40px, 9.5vw, 64px) !important; line-height: 1.05 !important; }

  /* Homepage sections */
  .manifesto-grid,
  .dash-grid,
  .loop-grid,
  .science-grid,
  .faq-grid,
  .packaging-grid,
  .blood-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .hero-split { grid-template-columns: 1fr !important; }
  .hero-bottom { grid-template-columns: 1fr !important; gap: 32px !important; }
  .manifest-row { grid-template-columns: 1fr !important; gap: 16px !important; padding: 28px 16px !important; text-align: left; }
  .manifest-row > div:nth-child(3) { text-align: left !important; }
  .manifest-row > div:nth-child(4) { justify-content: flex-start !important; }
  .packaging-grid > div:first-child { min-height: 380px; }

  /* Homepage social-proof tiles (5-col → 2-col w/ wrap) */
  .social-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .social-grid > div {
    padding: 28px 20px !important;
    border-right: 1px solid var(--rule) !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .social-grid > div:nth-child(2n) { border-right: none !important; }
  .social-grid > div:nth-last-child(-n+1) { border-bottom: none !important; }

  /* Dashboard mockup — collapse the inner feature 2-col grid */
  .dash-grid h2 { max-width: 100% !important; }
  .dash-features { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Blood testing kit visual — wrap the 5-step strip */
  .kit-strip { flex-wrap: wrap !important; gap: 4px !important; }

  /* Closing CTA headline — calm down the giant clamp */
  .closing-headline { font-size: clamp(48px, 12vw, 80px) !important; }

  /* How it works */
  .stage { grid-template-columns: 1fr !important; gap: 24px !important; padding: 48px 0 !important; }
  .stage-num { font-size: 72px; }
  .stats { grid-template-columns: 1fr 1fr !important; border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .quote-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Programs */
  .program-grid { grid-template-columns: 1fr !important; }
  .program-grid > .program-card { grid-column: span 1 !important; }
  .included-grid { grid-template-columns: 1fr !important; }
  .included-row { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
  .included-row:last-child { border-bottom: none !important; }
  .step-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .step-num { font-size: 40px; }

  /* Science */
  .principle { grid-template-columns: 1fr !important; gap: 16px !important; padding: 32px 0 !important; }
  .p-num { font-size: 40px; }
  .biocat { grid-template-columns: 1fr !important; gap: 16px !important; padding: 32px 0 !important; }
  .standard { grid-template-columns: 1fr !important; gap: 8px !important; padding: 24px 0 !important; }
  .four-grid { grid-template-columns: 1fr !important; }

  /* Homepage testimonials + standards strip */
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .standards-strip { grid-template-columns: 1fr 1fr !important; row-gap: 24px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Blog */
  .featured-post { grid-template-columns: 1fr !important; gap: 32px !important; }
  .post-grid { grid-template-columns: 1fr !important; padding: 48px 0; }
  .related-grid { grid-template-columns: 1fr !important; }
  .newsletter form { flex-direction: column; }
  .newsletter button { width: 100%; }

  /* Login */
  .login-shell { grid-template-columns: 1fr; }
  .login-art-side { display: none; }
  .login-form-side { padding: 32px 24px; }
  .sso-grid { grid-template-columns: 1fr; }

  /* Headings */
  h1 { font-size: clamp(44px, 11vw, 72px) !important; }
  h2 { font-size: clamp(32px, 7vw, 56px) !important; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .docs-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .standards-strip { grid-template-columns: 1fr !important; }
  h1 { font-size: clamp(40px, 11vw, 60px) !important; }
  .marquee { animation-duration: 40s; }
  .login-form-side { padding: 24px 20px; }
  .pull-quote { padding: 32px 20px; }

  /* Social proof tiles collapse to single column on phones */
  .social-grid { grid-template-columns: 1fr !important; }
  .social-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .social-grid > div:last-child { border-bottom: none !important; }
}

/* ── FAQ accordion ── */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-align: left;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-num {
  font-size: 12px;
  color: var(--muted);
  margin-right: 16px;
  font-weight: 400;
}
.faq-icon {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: 24px;
  line-height: 1;
  color: var(--violet);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p {
  padding-bottom: 28px;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

/* ── HowItWorks loop ── */
.loop-svg .loop-dot { cursor: pointer; }
.loop-svg .loop-dot circle {
  fill: #15151f;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 1.5;
  r: 16;
  transition: r .35s ease, fill .35s ease, stroke .35s ease;
}
.loop-svg .loop-dot.active circle {
  fill: #7b5cff;
  stroke: #c9d4ff;
  r: 24;
}
.loop-svg .loop-dot-num {
  fill: rgba(255,255,255,0.6);
  transition: fill .35s ease;
}
.loop-svg .loop-dot.active .loop-dot-num { fill: white; }
.loop-sweep {
  transform-origin: 200px 200px;
  transition: transform .8s cubic-bezier(.6,.2,.2,1);
}

.loop-step {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: inherit;
  opacity: 0.4;
  transition: opacity .35s ease;
  font: inherit;
}
.loop-step:hover { opacity: .7; }
.loop-step.active { opacity: 1; }
.loop-step-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.loop-step-num { font-size: 13px; color: #a394ff; }
.loop-step-title {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 0;
  transition: margin-bottom .35s ease;
}
.loop-step.active .loop-step-title { margin-bottom: 12px; }
.loop-step-detail {
  display: none;
}
.loop-step.active .loop-step-detail { display: block; }
.loop-step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244,242,238,0.7);
  margin-bottom: 10px;
}
.loop-step-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #c9d4ff;
  text-transform: uppercase;
}
.loop-step-bullet {
  font-size: 22px;
  color: #c9d4ff;
  opacity: 0.3;
  transition: opacity .3s ease;
}
.loop-step-bullet::before { content: '○'; }
.loop-step.active .loop-step-bullet { opacity: 1; }
.loop-step.active .loop-step-bullet::before { content: '●'; }


/* ───────────────────── Landing-page additions ───────────────────── */
.lp-h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.035em; line-height: 1.02; max-width: 20ch; }

/* Scroll reveal — FAIL-SAFE: visible unless JS is present.
   - No JS: .reveal stays visible.
   - JS present (html.has-js): hidden until IntersectionObserver adds .in.
   - Failsafe (html.reveal-all): inline <head> timeout forces visible ~2.6s. */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
html.has-js .reveal { opacity: 0; transform: translateY(26px); }
html.has-js .reveal.in,
html.reveal-all .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, html.has-js .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero */
.lp-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #f4f2ee; padding: 150px 0 90px; }
.lp-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .07; pointer-events: none; }
.lp-orbit { position: absolute; right: -18%; top: 2%; width: 75%; opacity: .16; pointer-events: none; }
.lp-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; width: 100%; }
.lp-hero-copy h1 { margin-bottom: 28px; }
.lp-hero-copy h1 em { font-style: italic; font-weight: 300; color: var(--violet-soft); }
.lp-hero-sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(244,242,238,0.78); max-width: 52ch; margin-bottom: 40px; font-weight: 300; }
.lp-cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.lp-secondary { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: rgba(244,242,238,0.78); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.lp-secondary:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.lp-secondary .arr { transition: transform .25s ease; }
.lp-secondary:hover .arr { transform: translateX(4px); }
.lp-hero-visual { display: grid; gap: 16px; }

/* Hero arrangement variants */
.lp-hero--reversed .lp-hero-inner { grid-template-columns: .9fr 1.1fr; }
.lp-hero--centered .lp-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 48px; }
.lp-hero--centered h1 { max-width: 19ch; margin-inline: auto; }
.lp-hero--centered .lp-hero-sub { margin-left: auto; margin-right: auto; }
.lp-hero--centered .lp-cta-row { justify-content: center; }
.lp-hero--centered .lp-hero-visual { width: 100%; max-width: 700px; }
.lp-hero--centered .bioage { max-width: 560px; margin: 0 auto; }

/* Ticker */
.lp-ticker { background: rgba(10,4,24,0.92); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.lp-ticker .marquee { padding: 14px 0; font-size: 12px; letter-spacing: 0.06em; color: #f4f2ee; }

/* Lab panel */
.lab-panel { background: var(--ink); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 22px 24px; box-shadow: 0 30px 80px -30px rgba(75,42,158,0.55); }
.lab-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 0.16em; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.lab-row { display: grid; grid-template-columns: 1.2fr auto auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.lab-row:last-child { border-bottom: none; }
.lab-name { font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); }
.lab-val { display: flex; align-items: baseline; gap: 5px; justify-self: end; }
.lab-val > span:first-child { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #f4f2ee; }
.lab-unit { font-size: 9px; color: rgba(255,255,255,0.4); }
.lab-status { font-size: 9px; letter-spacing: 0.12em; justify-self: end; min-width: 76px; text-align: right; }

/* Biological-age hero number */
.bioage { background: var(--ink); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 36px 32px; text-align: center; box-shadow: 0 30px 80px -30px rgba(75,42,158,0.55); }
.bioage-label { font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); }
.bioage-num { font-family: var(--font-display); font-size: clamp(72px, 12vw, 128px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin: 14px 0 12px; background: linear-gradient(180deg, #c9d4ff, #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bioage-sub { font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); }
.bioage-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); margin-top: 24px; overflow: hidden; }
.bioage-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #6c3fb8, #c9d4ff); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.bioage.in .bioage-fill { width: 72%; }

/* Section head with side lead */
.lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.lp-head-lead { max-width: 40ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.violet-bg .lp-head-lead, .violet-bg-2 .lp-head-lead { color: rgba(244,242,238,0.7); }

/* Section sub-header (eyebrow + h2) */
.lp-prob-head { margin-bottom: 8px; }
.lp-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 62ch; margin: 24px 0; font-weight: 300; }

/* Problem — numbered list (stylish, hairline rows that warm on hover) */
.lp-bullets { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; max-width: 84ch; border-top: 1px solid var(--rule); }
.lp-bullets li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: baseline; padding: 22px 12px; margin: 0 -12px; border-bottom: 1px solid var(--rule); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; border-radius: 12px; transition: background .25s ease; }
.lp-bullets li:hover { background: rgba(123,92,255,0.05); }
.lp-bullet-n { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--violet); }

/* Problem — card grid */
.lp-prob-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lp-prob-card { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 20px; padding: 28px 26px; background: #fff; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.lp-prob-card:hover { transform: translateY(-5px); border-color: var(--violet); box-shadow: 0 24px 50px -28px rgba(75,42,158,0.4); }
.lp-prob-n { font-family: var(--font-display); font-size: 40px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--violet-soft); opacity: .55; margin-bottom: 18px; }
.lp-prob-card p { position: relative; z-index: 1; font-size: 15px; line-height: 1.55; color: var(--ink); }
.lp-prob-glow { position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,255,0.18), transparent 70%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lp-prob-card:hover .lp-prob-glow { opacity: 1; }

/* Problem — checklist (2-col, circular check) */
.lp-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 40px; max-width: 96ch; }
.lp-check { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.45; }
.lp-check-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(123,92,255,0.12); color: var(--violet); font-size: 12px; font-weight: 700; margin-top: 1px; }

/* Quote callout card */
.lp-quote-card { position: relative; margin: 56px 0 0; max-width: 60ch; background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 40px 44px 36px; box-shadow: 0 30px 70px -40px rgba(26,13,61,0.4); }
.cream-bg .lp-quote-card { background: var(--paper); }
.lp-quote-mark { font-family: var(--font-display); font-size: 80px; line-height: .6; color: var(--violet); opacity: .4; height: 36px; }
.lp-quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.35; font-weight: 300; font-style: italic; letter-spacing: -0.01em; color: var(--ink); }
.lp-quote-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.lp-quote-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }

/* Pillars — cards with ghost numbers */
.lp-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-pillar { border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: 34px 30px; background: rgba(255,255,255,0.03); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.lp-pillar:hover { transform: translateY(-5px); border-color: var(--violet); background: rgba(255,255,255,0.06); }
.lp-pillar-idx { font-family: var(--font-display); font-size: 52px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--violet-soft); opacity: .55; margin-bottom: 14px; }
.lp-pillar-n { font-size: 11px; letter-spacing: 0.18em; color: #fff; margin-bottom: 14px; }
.lp-pillar p { font-size: 16px; line-height: 1.55; color: rgba(244,242,238,0.85); }

/* Duo programs */
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-duo .program-card h3 { max-width: 18ch; }
.lp-duo-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Longevity score grid */
.lp-score-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.lp-score-gauge { display: grid; place-items: center; }
.lp-domains { margin-top: 36px; border-top: 1px solid rgba(255,255,255,0.14); }
.lp-domain { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.lp-domain-k { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.lp-domain-v { font-size: 14px; color: rgba(244,242,238,0.65); }

/* Gauge */
.gauge { position: relative; width: min(300px, 72vw); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; }
.gauge-arc { transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1); }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num { font-family: var(--font-display); font-size: clamp(44px, 7vw, 62px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: #f4f2ee; }
.gauge-den { font-size: 20px; color: rgba(244,242,238,0.4); }
.gauge-grade { font-size: 13px; letter-spacing: 0.16em; color: var(--violet-soft); margin-top: 8px; }
.gauge-label { font-size: 9px; letter-spacing: 0.18em; color: rgba(244,242,238,0.45); margin-top: 4px; }
.lp-final-visual { display: grid; place-items: center; margin: 0 auto 40px; }

/* Test panel — card grid */
.lp-test-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(123,92,255,0.16), transparent 60%); pointer-events: none; }
.lp-test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lp-test-card { border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 26px 24px; background: rgba(255,255,255,0.03); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.lp-test-card:hover { transform: translateY(-5px); border-color: var(--violet); background: rgba(255,255,255,0.06); }
.lp-test-idx { font-size: 11px; letter-spacing: 0.16em; color: var(--violet-soft); margin-bottom: 14px; }
.lp-test-cat { font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
.lp-test-note { font-size: 14px; line-height: 1.55; color: rgba(244,242,238,0.7); }

/* Process — card grid */
.lp-proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lp-proc-card { position: relative; border: 1px solid var(--rule); border-radius: 20px; padding: 32px 34px; background: #fff; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.lp-proc-card:hover { transform: translateY(-5px); border-color: var(--violet); box-shadow: 0 24px 50px -28px rgba(75,42,158,0.4); }
.lp-proc-num { font-family: var(--font-display); font-size: 56px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--violet); margin-bottom: 18px; }
.lp-proc-card h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: -0.01em; }
.lp-proc-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Process — vertical timeline */
.lp-timeline { border-top: 1px solid var(--rule); margin-top: 8px; }
.lp-tl { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.lp-tl-rail { position: relative; }
.lp-tl-num { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--violet); color: var(--violet); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; background: var(--paper-2); position: relative; z-index: 1; transition: background .25s ease, color .25s ease; }
.lp-tl:hover .lp-tl-num { background: var(--violet); color: #fff; }
.lp-tl:not(:last-child) .lp-tl-rail::after { content: ''; position: absolute; left: 24px; top: 48px; bottom: -32px; width: 1px; background: var(--rule); }
.lp-tl-body h3 { font-size: clamp(20px, 2vw, 27px); margin-bottom: 8px; letter-spacing: -0.01em; }
.lp-tl-body p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 60ch; }

/* Trend chart (LP3 final) */
.trend { background: var(--ink); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 22px 24px; max-width: 460px; margin: 0 auto 40px; }
.trend-label { font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); margin-bottom: 14px; text-align: left; }
.trend svg { width: 100%; height: 90px; display: block; }
.trend-line { stroke-dasharray: 520; stroke-dashoffset: 520; }
.trend.in .trend-line { animation: drawline 2s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.trend-axis { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.14em; margin-top: 8px; }

/* Final CTA */
.lp-final { position: relative; overflow: hidden; color: #f4f2ee; padding: clamp(100px, 14vw, 180px) 0; }
.lp-final-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(123,92,255,0.25) 0%, transparent 60%); pointer-events: none; }
.lp-final-h { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 28px; font-weight: 300; max-width: 18ch; margin-inline: auto; }

/* Nav CTA always visible on landings (no hamburger here) */
header[data-nav] .nav-cta { display: inline-flex !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-hero { min-height: auto; padding: 124px 0 72px; }
  .lp-hero-inner, .lp-hero--reversed .lp-hero-inner { grid-template-columns: 1fr !important; gap: 40px; }
  .lp-orbit { right: -40%; top: auto; bottom: -10%; width: 120%; }
  .lp-pillars { grid-template-columns: 1fr !important; }
  .lp-duo { grid-template-columns: 1fr !important; }
  .lp-duo-panels { grid-template-columns: 1fr !important; }
  .lp-prob-cards { grid-template-columns: 1fr !important; }
  .lp-test-grid { grid-template-columns: 1fr !important; }
  .lp-proc-grid { grid-template-columns: 1fr !important; }
  .lp-checks { grid-template-columns: 1fr !important; gap: 0 !important; }
  .lp-score-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .lp-domain { grid-template-columns: 1fr !important; gap: 4px !important; }
  .faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .lp-head { margin-bottom: 40px; }
  .lp-quote-card { padding: 32px 28px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .lp-prob-cards, .lp-test-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Ivy collab co-brand additions ── */
.cobrand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.cobrand-x { font-family: var(--font-mono); font-size: 15px; opacity: .5; line-height: 1; }
.cobrand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 2.4vw, 18px);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.cobrand-name .ivy-leaf { color: var(--violet-soft); }
header[data-nav] .nav-brand svg { flex-shrink: 0; }

/* Draft ribbon — makes the provisional status unmistakable */
.draft-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: repeating-linear-gradient(45deg, #7b5cff, #7b5cff 12px, #6a4de0 12px, #6a4de0 24px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 12px;
}
body.has-ribbon header[data-nav] { top: 26px; }
@media (max-width: 900px) { body.has-ribbon header[data-nav] { top: 24px; } }

/* Simple value-prop cards on light bg */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.vp-card {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.vp-card:hover { transform: translateY(-5px); border-color: var(--violet); box-shadow: 0 24px 50px -28px rgba(75,42,158,0.4); }
.vp-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(123,92,255,0.1);
  color: var(--violet);
  font-size: 22px;
  margin-bottom: 20px;
}
.vp-card h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.vp-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

@media (max-width: 900px) {
  .vp-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .vp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ───────── IvyHealth co-brand blend — warms the violet base ───────── */
/* Real Ivy heart mark inside the co-brand lockup (shows on light + dark) */
.cobrand-lockup { flex-wrap: wrap; min-width: 0; }
.cobrand-mark { height: 24px; width: 24px; flex-shrink: 0; display: block; }
.cobrand-name { font-family: var(--font-ivy); font-weight: 600; }
.cobrand-name .ivy-leaf {
  background: linear-gradient(115deg, #ff4949, #ec2f73 55%, #fe8f77);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cobrand-lockup-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--coral); padding-left: 2px;
}
@media (max-width: 560px) { .cobrand-lockup-tag { display: none; } }

/* IvyHealth-flavoured CTA (coral → magenta warmth) */
.btn-ivy { background: var(--grad-ivy); color: #fff; border-color: transparent; }
.btn-ivy:hover { filter: brightness(1.04); }

/* Warm "younger" indicator on the bioage card */
.bioage-younger { color: var(--coral) !important; font-weight: 600; }
.bioage-fill { background: linear-gradient(90deg, #6c3fb8, #ec2f73 70%, #fe8f77) !important; }

/* Assign the middle value-prop card to Ivy with a warm coral icon */
.vp-ico.vp-ico-ivy { background: linear-gradient(135deg, rgba(236,47,115,0.14), rgba(254,143,119,0.14)); color: var(--magenta); }
.vp-card.vp-ivy:hover { border-color: var(--coral); box-shadow: 0 24px 50px -28px rgba(236, 47, 115, 0.4); }

/* Coral accent word for eyebrows / inline highlights */
.ivy-accent { color: var(--coral); }
.warm-accent {
  background: var(--grad-ivy);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Warm the stat block's radial + a coral bloom on the trust section */
.dark-bg .stat-n .warm-accent { -webkit-text-fill-color: transparent; }

/* Keep the header row overflow-proof and drop the nav CTA on phones so the
   richer co-brand lockup can never exceed a 320px viewport (hero has CTAs). */
header[data-nav] .nav-row { min-width: 0; gap: 12px; }
header[data-nav] .nav-brand { min-width: 0; }
@media (max-width: 600px) {
  header[data-nav] .nav-actions { display: none !important; }
}

/* Keep hero grid items from blowing past the viewport, and stack the
   dual CTAs full-width on narrow phones so no button is ever clipped. */
.lp-hero-inner > * { min-width: 0; }
.lp-hero-copy { min-width: 0; }
@media (max-width: 479px) {
  .lp-cta-row { flex-direction: column; align-items: stretch; }
  .lp-cta-row > .btn { width: 100%; justify-content: center; }
  /* Single-column trust stats so nothing clips on the narrowest phones */
  .stats { grid-template-columns: 1fr !important; }
  .stat { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:last-child { border-bottom: none; }
}

/* ═══════════ Co-brand v2 — premium elevation additions ═══════════ */

/* Hero trust chips (mono, clinical) */
.lp-hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 26px;
  font-size: 10px; letter-spacing: 0.16em;
  color: rgba(244,242,238,0.55);
}
.lp-hero-trust i { width: 4px; height: 4px; border-radius: 50%; background: rgba(244,242,238,0.3); flex-shrink: 0; }

/* Ivy mini-card — layered over the bioage card for co-brand depth */
.ivy-mini {
  display: flex; align-items: center; gap: 14px;
  background: rgba(20, 10, 44, 0.92);
  border: 1px solid rgba(254, 143, 119, 0.35);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 24px 60px -24px rgba(236, 47, 115, 0.45);
  backdrop-filter: blur(8px);
  justify-self: start;
  max-width: 100%;
}
.ivy-mini img { width: 30px; height: 30px; flex-shrink: 0; }
.ivy-mini-k { font-size: 9px; letter-spacing: 0.16em; color: rgba(244,242,238,0.5); margin-bottom: 4px; }
.ivy-mini-v { font-family: var(--font-display); font-size: 15px; color: var(--paper); letter-spacing: -0.01em; }
.ivy-mini-v b { color: var(--coral); font-weight: 500; }
@media (min-width: 920px) {
  .ivy-mini { margin: -44px 0 0 -26px; position: relative; z-index: 2; }
}

/* Ticker items (marker names + trend glyphs; no fabricated values) */
.lp-ticker .marquee { padding: 15px 0; align-items: center; }
.tick-i { display: inline-flex; align-items: baseline; gap: 8px; font-size: 10px; letter-spacing: 0.2em; color: rgba(244,242,238,0.6); white-space: nowrap; }
.tick-i b { font-weight: 400; }
.tick-i .tk-a { color: var(--violet-soft); }
.tick-i .tk-i { color: var(--coral); }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* Ghost index on the collaboration cards */
.vp-card { position: relative; }
.vp-idx {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display);
  font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  color: var(--violet); opacity: .14;
  transition: opacity .28s ease;
}
.vp-card:hover .vp-idx { opacity: .3; }
.vp-card.vp-ivy .vp-idx { color: var(--magenta); }

/* ── "From each brand" duo split (dark violet section) ── */
.duo-split { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
.duo-col {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: clamp(28px, 3.4vw, 40px);
  background: linear-gradient(160deg, rgba(123,92,255,0.10), rgba(255,255,255,0.03) 55%);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.duo-col:hover { transform: translateY(-4px); border-color: var(--violet); }
.duo-col-ivy { background: linear-gradient(160deg, rgba(236,47,115,0.12), rgba(255,255,255,0.03) 55%); }
.duo-col-ivy:hover { border-color: var(--coral); }
.duo-head { margin-bottom: 22px; }
.duo-brand { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--violet-soft); margin-bottom: 12px; }
.duo-brand-ivy { color: var(--coral); }
.duo-col h3 { font-size: clamp(24px, 2.6vw, 34px); color: var(--paper); }
.duo-list { list-style: none; margin: 0 0 24px; padding: 0; }
.duo-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15.5px; line-height: 1.5; color: rgba(244,242,238,0.85);
}
.duo-list li:last-child { border-bottom: none; }
.duo-tick {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(123,92,255,0.16); color: var(--violet-soft);
  font-size: 11px; margin-top: 1px;
}
.duo-tick-ivy { background: rgba(236,47,115,0.16); color: var(--coral); }
.duo-x { display: none; }
@media (min-width: 880px) {
  .duo-split { grid-template-columns: 1fr 1fr; gap: 20px; }
  .duo-x {
    display: grid; place-items: center;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%); z-index: 2;
  }
  .duo-x span {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--grad-ivy); color: #fff;
    font-family: var(--font-display); font-size: 24px; line-height: 1;
    box-shadow: 0 16px 40px -12px rgba(236,47,115,0.6), 0 0 0 7px #150a32;
  }
}
.duo-bridge {
  margin-top: 26px;
  font-size: 15px; line-height: 1.6;
  color: rgba(244,242,238,0.7);
  max-width: 62ch;
}
.duo-bridge b { color: var(--paper); font-weight: 500; }

/* Quote side column */
.quote-side { min-width: 0; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr !important; gap: 40px !important; } }

/* FAQ layout (accordion styles are ported from the main site above) */
.lp-faq-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 920px) { .lp-faq-grid { grid-template-columns: .85fr 1.15fr; } }
.faq-q { min-height: 56px; }
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(123,92,255,0.1);
  font-size: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq-item.open .faq-icon { background: var(--violet); color: #fff; }
.faq-q:hover .faq-icon { background: rgba(123,92,255,0.2); }

/* Footer link columns */
.lp-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 24px 48px; }
.lp-footer-h { font-size: 10px; letter-spacing: 0.2em; color: rgba(244,242,238,0.4); margin-bottom: 14px; }
.lp-footer-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.lp-footer-col a {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: rgba(244,242,238,0.85); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease, transform .2s ease;
}
.lp-footer-col a:hover { color: #fff; transform: translateX(2px); }

/* Smooth in-page anchor scrolling for #how / #faq */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ═══════════ Co-brand v3 — REAL Ivy product imagery ═══════════ */

/* Hero stage: the real Ivy phone with the Agesync bioage card layered on it */
.hero-stage { position: relative; display: block; }
.hero-phone {
  width: 100%; max-width: 520px; height: auto;
  margin: 0 auto; display: block;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.45));
}
.hero-stage .ivy-mini { margin: 16px auto 0; }
@media (min-width: 920px) {
  .bioage.bioage-overlay {
    position: absolute; left: -18px; bottom: 30px; z-index: 2;
    max-width: 300px; padding: 26px 24px;
    box-shadow: 0 40px 90px -30px rgba(5, 3, 9, 0.85);
  }
  .bioage.bioage-overlay .bioage-num { font-size: 68px; }
  .hero-stage .ivy-mini { position: absolute; right: 0; top: 4%; z-index: 2; margin: 0; }
}

/* [03] Inside the Ivy app — light showcase on the real loop backdrop */
.ivy-app-section {
  position: relative;
  background: #fff url("img/real/Heart-BCK-1.webp") right -120px top 60px / 560px auto no-repeat;
  overflow: clip;
}
.ivy-app-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 8px;
}
.ivy-app-grid > * { min-width: 0; }
.ivy-app-visual img { width: 100%; max-width: 540px; height: auto; margin: 0 auto; display: block; }
/* Ivy's floating chat action chips, recreated from the real app */
.ivy-chat-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 34px; }
.ivy-chip {
  background: #fff;
  border: 1px solid rgba(26, 13, 61, 0.14);
  border-radius: 999px; padding: 8px 15px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  box-shadow: 0 8px 22px -14px rgba(26, 13, 61, 0.35);
  white-space: nowrap;
}
.ivy-chip-lav { background: #e7defa; border-color: #d3c3f5; }
/* Ivy's real circular fact icons */
.ivy-facts { display: grid; gap: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.ivy-fact {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.ivy-fact:last-child { border-bottom: none; }
.ivy-fact img { width: 64px; height: 64px; border-radius: 50%; }
.ivy-fact h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 4px; }
.ivy-fact p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
/* Real Ivy goals grid (optimized webp of the site's 4-up frame) */
.ivy-goals { margin-top: clamp(48px, 7vw, 80px); }
.ivy-goals img { width: 100%; max-width: 760px; height: auto; margin: 0 auto; display: block; }
.ivy-goals-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Members — real Ivy community photos */
.member-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 460px));
  gap: clamp(18px, 3vw, 28px);
  justify-content: center;
  margin-top: 48px;
}
.member-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.member-card:hover { transform: translateY(-5px); border-color: var(--coral); box-shadow: 0 30px 60px -32px rgba(236, 47, 115, 0.35); }
.member-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; }
.member-card figcaption { padding: 24px 26px 26px; }
.member-card blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 300; font-style: italic;
  line-height: 1.4; letter-spacing: -0.01em;
  color: var(--ink);
}
.member-k { font-size: 10px; letter-spacing: 0.18em; color: var(--coral); }
.member-note { margin-top: 28px; text-align: center; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .ivy-app-grid { grid-template-columns: 1fr; }
  .ivy-app-visual { order: -1; }
  .ivy-app-section { background-size: 420px auto; background-position: right -160px top 20px; }
  .member-grid { grid-template-columns: minmax(0, 460px); }
}

/* Reduced motion: freeze the bioage fill and the orbiting hero dots too */
@media (prefers-reduced-motion: reduce) {
  .bioage-fill { transition: none !important; }
  .lp-orbit animateTransform { display: none; }
  .lp-orbit g[fill] { display: none; }
}
