@import "output.css";

/* ============================================================
   MyPeps Design Tokens — Blue System
   All colors derived from logo navy #16265E
   ============================================================ */

:root {
  /* Brand */
  --navy:       #16265E;
  --navy-deep:  #0C1836;
  --navy-mid:   #33518F;
  --navy-light: #5A7FBE;
  --blue-tint:  #E9F0FA;
  --blue-pale:  #F0F4FC;

  /* Legacy aliases — keep portal pages working */
  --royal:          #16265E;
  --royal-hover:    #0C1836;
  --brand-blue:     #16265E;
  --brand-blue-dark:#0C1836;
  --blue-soft:      #E9F0FA;

  /* Neutrals */
  --paper:    #FBF8F3;
  --ink:      #0F1A3A;
  --muted:    #4E5870; /* darkened from #59637A — readability feedback (July mtg) */
  --hairline: #E7E1D4;

  /* Legacy surface aliases */
  --surface-page:     #ffffff;
  --surface-card:     #f8fafc;
  --surface-border:   #e2e8f0;
  --background:       #f0f4fc;
  --background-muted: rgba(234, 236, 240, 0.5);
  --text-strong:      #0f1a3a;
  --text-muted:       #4e5870;
  --shadow-soft:      0 2px 8px rgba(22, 38, 94, 0.08);

  /* Typography */
  --font-display: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Lato', ui-sans-serif, system-ui, sans-serif;

  /* Fluid type scale */
  --step-fine:  clamp(0.72rem, 0.68rem + 0.20vw, 0.80rem);
  --step-small: clamp(0.82rem, 0.78rem + 0.20vw, 0.90rem);
  --step-body:  clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  --step-lead:  clamp(1.10rem, 1.00rem + 0.50vw, 1.30rem);
  --step-h3:    clamp(1.20rem, 1.05rem + 0.75vw, 1.55rem);
  --step-h2:    clamp(1.60rem, 1.30rem + 1.50vw, 2.30rem);
  --step-h1:    clamp(2.40rem, 1.80rem + 3.00vw, 4.20rem);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-med:  200ms;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--blue-tint);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--ink);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

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

/* ============================================================
   DaisyUI Brand Overrides
   ============================================================ */

.bg-primary { background-color: var(--navy) !important; }
.text-primary { color: var(--navy) !important; }

.btn-primary {
  background: var(--navy) !important;
  border-color: var(--navy-deep) !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--navy-deep) !important;
  border-color: var(--navy-deep) !important;
}

.badge-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}

.file-input-primary { border-color: var(--navy) !important; }
.file-input-primary::file-selector-button {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}
.file-input-primary:focus { outline-color: var(--navy) !important; }

.tab-active {
  color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.link-primary { color: var(--navy) !important; }
.link-primary:hover { color: var(--navy-deep) !important; }

.btn-outline {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
.btn-outline:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

.btn-success {
  background-color: var(--navy-mid) !important;
  border-color: var(--navy-mid) !important;
  color: #fff !important;
}
.btn-success:hover {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.badge-success {
  background-color: var(--navy-mid) !important;
  border-color: var(--navy-mid) !important;
  color: #fff !important;
}
.text-success { color: var(--navy-mid) !important; }

.bg-base-100 { background-color: var(--surface-page) !important; }
.bg-base-200 { background-color: var(--surface-card) !important; }

.hero-text-accent { color: var(--navy); }
.typo-strong { color: var(--ink); }
.typo-muted  { color: var(--muted); }

/* ============================================================
   Peptide-chain loader (AI analysis screens)
   ============================================================ */

.peptide-loader {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.peptide-loader .bead {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: var(--blue-tint);
  animation: bead-pulse 1.6s var(--ease-out) infinite;
}

.peptide-loader .bead + .bead {
  margin-left: 14px;
  position: relative;
}

.peptide-loader .bead + .bead::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 14px;
  height: 2px;
  transform: translateY(-50%);
  background-color: var(--hairline);
}

.peptide-loader .bead:nth-child(1) { animation-delay: 0s; }
.peptide-loader .bead:nth-child(2) { animation-delay: 0.2s; }
.peptide-loader .bead:nth-child(3) { animation-delay: 0.4s; }
.peptide-loader .bead:nth-child(4) { animation-delay: 0.6s; }
.peptide-loader .bead:nth-child(5) { animation-delay: 0.8s; }
.peptide-loader .bead:nth-child(6) { animation-delay: 1.0s; }

@keyframes bead-pulse {
  0%, 100% { background-color: var(--blue-tint);  transform: scale(1); }
  35%       { background-color: var(--navy);       transform: scale(1.25); }
  55%       { background-color: var(--navy-light); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .peptide-loader .bead { animation: none; background-color: var(--navy); }
}

/* ============================================================
   Global Layout
   ============================================================ */

.page-shell {
  display: block;
  min-height: 100%;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.shell-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 100%;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0;
}

.section-tag {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: 12px;
}

/* ============================================================
   Shared card (portal pages keep using this)
   ============================================================ */

.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   Auth / Intake form helpers (portal pages)
   ============================================================ */

.step-content { display: none; }
.step-content.active { display: block; }
.form-card { @apply bg-white border border-slate-200 rounded-xl p-6 shadow-sm; }
#Signup-agreement-links { text-decoration: underline; }
.btn-logo { border: none; height: 2.5rem; width: 4rem; }
.pricing-header { width: fit-content; }

/* ============================================================
   Section backgrounds
   ============================================================ */

#stepsSection    { background: #0E1B42; }
#whySection      { background: var(--navy-deep); }
#faqSection      { background: #0E1B42; }

/* Dark body sections: headings and tags */
#stepsSection .section-title,
#whySection .section-title,
#faqSection .section-title { color: #fff; }
#stepsSection .section-tag,
#whySection .section-tag,
#faqSection .section-tag { color: #A9C4EC; }
#footerCtaSection,
footer.site-footer {
  background: var(--navy-deep);
}

.CTAcontainer {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing {
  font-family: var(--font-body);
  color: var(--ink);
}

/* ---- Hero ---- */

.hero-section {
  min-height: clamp(600px, calc(100svh - 68px), 860px);
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,24,54,0.74) 0%, rgba(12,24,54,0.42) 50%, rgba(12,24,54,0.10) 80%),
    linear-gradient(to bottom, rgba(12,24,54,0.42) 0%, rgba(12,24,54,0.30) 60%, rgba(12,24,54,0.55) 100%);
  pointer-events: none;
}

/* Phones: the video is heavily cropped by cover, so let more of it
   through the scrim and keep the crop centered on the subject. */
@media (max-width: 640px) {
  .hero-video {
    opacity: 0.72;
    object-position: 38% center;
  }
  .hero-scrim {
    background: linear-gradient(
      to bottom,
      rgba(12, 24, 54, 0.42) 0%,
      rgba(12, 24, 54, 0.36) 60%,
      rgba(12, 24, 54, 0.55) 100%
    );
  }
}

.hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-wrap--centered {
  grid-template-columns: 1fr;
  max-width: 840px;
  text-align: left;
}

@media (max-width: 840px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 22px;
  text-shadow: 0 1px 2px rgba(12, 24, 54, 0.35), 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero-h1 em {
  font-style: normal;
  color: #A9C4EC;
  text-shadow: 0 2px 24px rgba(12, 24, 54, 0.55);
  position: relative;
  white-space: nowrap;
}

/* Hand-drawn ink underline: draws itself under "Pep Talk" on load */
.hero-ink {
  position: absolute;
  left: -2%; bottom: -0.18em;
  width: 104%; height: 0.24em;
  overflow: visible;
  pointer-events: none;
}
.hero-ink path {
  fill: none; stroke: #7EAADF; stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  opacity: 0;
  animation: heroInk 0.7s var(--ease-out) 0.9s forwards;
}
@keyframes heroInk {
  from { opacity: 1; }
  to   { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ink path { stroke-dashoffset: 0; opacity: 1; animation: none; }
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.20);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-btn-primary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.30);
  transition: background var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.hero-btn-primary:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.35);
  color: var(--navy);
  text-decoration: none;
}

.hero-btn-outline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--dur-med),
              color var(--dur-med),
              transform var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.hero-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
  flex-shrink: 0;
}

/* Protocol card */

.hero-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.protocol-card {
  background: #ffffff;
  border: 1.5px solid var(--hairline);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px -12px rgba(22, 38, 94, 0.22),
              0 2px 8px -2px rgba(22, 38, 94, 0.08);
  max-width: 380px;
  width: 100%;
  position: relative;
}

.protocol-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  border-radius: 0 0 3px 3px;
}

.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.pc-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-tint);
  padding: 5px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pc-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

.pc-meta strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.pc-divider {
  height: 1px;
  background: var(--hairline);
  margin: 16px 0;
}

.pc-biomarker {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
}

.pc-biomarker + .pc-biomarker {
  border-top: 1px solid var(--blue-pale);
}

.pc-bm-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.pc-bm-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-mid);
  text-align: right;
  white-space: nowrap;
}

.pc-bm-status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--blue-tint);
  color: var(--navy);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.pc-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

.pc-badge-ai {
  background: var(--navy);
  color: #fff;
}

.pc-badge-provider {
  background: var(--blue-tint);
  color: var(--navy);
}

/* ---- Biomarker ticker ---- */

.marquee-section {
  border-top: 1px solid rgba(126,170,223,0.18);
  border-bottom: 1px solid rgba(126,170,223,0.18);
  background: #0C1836;
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee-scroll 32s linear infinite;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7EAADF;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(126,170,223,0.6);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* ===== How It Works: "ONE SHEET" =====
   Apple-style pinned scroll story. The lab sheet is the hero product,
   pinned large in center stage while scrolling scrubs its transformation
   through three chapters: labs in, the AI read, the physician's signature.
   Giant captions crossfade stage-left, a ghost numeral fills stage-right,
   progress dots track chapters. GSAP + ScrollTrigger drive it (index.pug).

   Progressive enhancement: WITHOUT .os-run on the section (no GSAP,
   reduced motion, narrow viewport) every element below is fully visible in
   normal flow: stacked captions, then the completed sheet. The timeline
   only ever hides/reveals from that complete state, so the base markup is
   the accessible fallback and needs no clone. */

/* the molecular backdrop overhangs the hero; never let it cause h-scroll */
.os-section { overflow-x: clip; }

.os-head { padding: 0 1.5rem; text-align: center; }
.os-sub {
  max-width: 560px; margin: 0.75rem auto 0;
  font-size: 0.98rem; line-height: 1.6; color: rgba(255,255,255,0.82);
}

/* ---- Base (static fallback) layout ---- */
.os-stage { position: relative; padding: 2rem 1.5rem 0; }
.os-nums, .os-dots, .os-scan { display: none; }
.os-captions { max-width: 620px; margin: 2rem auto 0; }
.os-cap { text-align: center; margin-bottom: 2.2rem; }
.os-kicker {
  display: block; margin-bottom: 0.55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: #A9C4EC;
}
.os-cap h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12;
  letter-spacing: -0.02em; color: #fff; margin: 0 0 0.5rem;
}
.os-cap p {
  font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.8);
  max-width: 430px; margin: 0 auto;
}
.os-hero { position: relative; width: fit-content; margin: 1rem auto 0; }

/* ---- The hero sheet (large: it carries the whole section) ---- */
.os-sheet {
  position: relative; z-index: 1;
  width: clamp(330px, 33vw, 430px);
  background: linear-gradient(180deg, #FDFBF6 0%, #F4EEE1 100%);
  border-radius: 14px;
  padding: 1.5rem 1.7rem 1.6rem;
  box-shadow: 0 34px 70px -22px rgba(0,0,0,0.7),
              0 3px 10px rgba(0,0,0,0.3),
              0 0 60px -6px rgba(126,170,223,0.4);
  overflow: hidden;
  will-change: transform;
}

/* faint peptide-chain network behind the card, fading into the navy */
.os-mol {
  position: absolute; left: -22%; top: -16%;
  width: 144%; height: 132%;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 35%, transparent 92%);
  mask-image: radial-gradient(ellipse closest-side, #000 35%, transparent 92%);
}

/* idle "AI is looking" scanner: sweeps the biomarker rows on a loop.
   Hidden until GSAP reveals it, so no-JS never shows a frozen line. */
.os-idle-scan {
  position: absolute; left: 5%; right: 5%; top: 26%;
  height: 3px; border-radius: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, #7EAADF 18%, #DCE9FB 50%, #7EAADF 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(126,170,223,0.5);
  opacity: 0;
  pointer-events: none;
  will-change: transform, top, opacity;
}
.os-scan {
  position: absolute; left: 0; right: 0; top: -6px;
  height: 4px; z-index: 4;
  background: linear-gradient(90deg, transparent, #7EAADF 20%, #DCE9FB 50%, #7EAADF 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(126,170,223,0.55);
  opacity: 0;
}
.os-run .os-scan { display: block; }

.os-sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2.5px solid var(--navy);
  padding-bottom: 0.55rem; margin-bottom: 0.5rem;
}
.os-sheet-title {
  font-family: var(--font-display); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.os-sheet-meta { font-size: 0.74rem; font-style: italic; color: rgba(22,38,94,0.65); }

/* patient metadata strip under the header */
.os-meta {
  display: flex; flex-wrap: wrap; row-gap: 0.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.58rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(22,38,94,0.62);
  border-bottom: 1px solid rgba(22,38,94,0.12);
  padding-bottom: 0.45rem; margin-bottom: 0.15rem;
}
.os-meta span + span::before { content: '·'; margin: 0 0.5rem; color: rgba(22,38,94,0.4); }

.os-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid rgba(22,38,94,0.1);
}
.os-row-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); flex: 1; }
.os-row-val { font-size: 0.88rem; color: rgba(22,38,94,0.8); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* value with its reference range stacked beneath, right-aligned */
.os-valwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.os-row-range {
  font-size: 0.62rem; color: rgba(22,38,94,0.5);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.os-pill {
  font-family: var(--font-display); font-weight: 800; font-size: 0.64rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 9999px; padding: 0.18rem 0.6rem;
}
.os-pill--low  { background: rgba(179,56,44,0.12); color: #B3382C; }
.os-pill--ok   { background: rgba(18,128,92,0.12); color: #12805C; }
.os-pill--warn { background: rgba(154,107,21,0.15); color: #9A6B15; }

.os-ringwrap { position: relative; display: inline-block; }
.os-ring {
  position: absolute; left: -14%; top: -60%;
  width: 128%; height: 220%;
  overflow: visible; pointer-events: none;
}
.os-ring path {
  fill: none; stroke: #B3382C; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
.os-note {
  margin: 0.5rem 0 0; font-size: 0.76rem; font-style: italic;
  color: #B3382C;
}
.os-proto {
  border-top: 2.5px solid var(--navy);
  margin-top: 0.65rem; padding-top: 0.65rem;
}
.os-proto-label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.os-bar {
  height: 7px; border-radius: 4px; margin-bottom: 0.5rem;
  background: rgba(22,38,94,0.16);
}
.os-sig { display: block; width: 128px; height: 30px; margin-top: 0.2rem; overflow: visible; }
.os-sig path {
  fill: none; stroke: var(--navy); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
/* document footer: file-type and sync marks in the bottom corners */
.os-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.85rem; padding-top: 0.55rem;
  border-top: 1px solid rgba(22,38,94,0.12);
}
.os-foot-item {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(22,38,94,0.55);
}
.os-foot-item svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.os-stamp {
  position: absolute; bottom: 3.4rem; right: 14px; z-index: 3;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; line-height: 1.35; color: #B3382C;
  border: 2.5px dashed rgba(179,56,44,0.65); border-radius: 8px;
  padding: 0.4rem 0.65rem;
  transform: rotate(-8deg);
}
.os-record {
  display: block; width: fit-content; margin: 1.1rem auto 0;
  font-family: var(--font-display); font-weight: 800; font-size: 0.64rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #A9C4EC; background: #0E1B42;
  border: 1.5px dashed rgba(169,196,236,0.55); border-radius: 6px;
  padding: 0.3rem 0.7rem;
}

/* ---- Cinematic (run) mode: the pinned stage ---- */
.os-run .os-pin { height: 100vh; }
.os-run .os-stage {
  position: relative; height: 100%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.os-run .os-stage::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 46% 58% at 50% 52%, rgba(126,170,223,0.13), transparent 70%);
  pointer-events: none;
}
.os-run .os-hero { margin: 0; }
.os-run .os-record {
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%); margin: 1rem 0 0;
  white-space: nowrap; opacity: 0;
}

/* captions become stage-left, absolutely stacked, crossfaded by the scrub */
.os-run .os-captions {
  position: absolute; left: clamp(1.5rem, 4vw, 4.5rem); top: 50%;
  transform: translateY(-50%);
  /* stays clear of the centered sheet down to the 820px run-mode floor */
  width: min(24%, 380px); max-width: none; margin: 0;
  z-index: 3;
}
.os-run .os-cap {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%; margin: 0; text-align: left;
  opacity: 0;
  will-change: transform, opacity;
}
.os-run .os-cap p { margin: 0; }

/* ghost numeral, stage-right */
.os-run .os-nums {
  display: block;
  position: absolute; right: clamp(0.5rem, 3vw, 3rem); top: 50%;
  transform: translateY(-50%);
  height: clamp(220px, 30vw, 400px);
  z-index: 1; pointer-events: none;
}
.os-num {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(220px, 30vw, 400px); line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(126,170,223,0.16);
  filter: drop-shadow(0 0 26px rgba(126,170,223,0.3));
  opacity: 0;
  will-change: opacity;
}
@supports not (-webkit-text-stroke: 2px rgba(126,170,223,0.16)) {
  .os-num { color: rgba(126,170,223,0.07); }
}

/* progress dots, far right, vertically centered */
.os-run .os-dots {
  display: flex; flex-direction: column; gap: 12px;
  position: absolute; right: clamp(0.9rem, 2vw, 2rem); top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.os-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(169,196,236,0.55);
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
}
.os-dot.os-on { background: #A9C4EC; border-color: #A9C4EC; transform: scale(1.3); }

@media (max-width: 820px) {
  .os-cap { margin-bottom: 1.8rem; }

  /* Phone run mode: same pinned story, stacked composition. Caption block
     on top (clear of the sticky navbar), the hero sheet below it, chapter
     dots on the right edge. The ghost numerals go: at this width the
     opaque sheet would hide them anyway. */
  .os-run .os-stage {
    flex-direction: column; justify-content: flex-start;
    padding-top: calc(64px + 3vh);
  }
  .os-run .os-captions {
    position: relative; left: auto; top: auto; transform: none;
    width: min(92%, 380px); height: 172px; margin: 0 auto;
    flex-shrink: 0;
  }
  .os-run .os-cap { top: 0; transform: none; text-align: center; }
  .os-run .os-cap p { margin: 0 auto; }
  .os-run .os-hero { margin: 1.5vh auto 0; }
  .os-run .os-sheet { width: min(330px, 88vw); }
  .os-run .os-nums { display: none; }
  .os-run .os-dots { right: 8px; gap: 10px; }
}

/* Short phones: shrink the sheet so caption + card + stamp all fit */
@media (max-width: 820px) and (max-height: 720px) {
  .os-run .os-sheet { width: min(292px, 82vw); }
  .os-run .os-captions { height: 150px; }
  .os-run .os-cap h3 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .os-dot { transition: none; }
}

/* ---- Why MyPeps ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--navy-light);
  box-shadow: 0 8px 24px -8px rgba(22, 38, 94, 0.14);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---- Membership (pricing) — full-bleed navy band, glass panel ---- */

#pricingSection {
  background:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(90, 127, 190, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(51, 81, 143, 0.35) 0%, transparent 65%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

#pricingSection .section-tag { color: #9DB8E4; }
#pricingSection .section-title { color: #fff; }

.pricing-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) { .pricing-inner { grid-template-columns: 1fr; } }

.pricing-headline {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.pricing-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 28px;
}

/* Glass membership panel — soft, rounded, no hard border */
.pricing-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 38px 36px;
  box-shadow: 0 24px 64px -16px rgba(4, 10, 28, 0.55);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(126, 170, 223, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
  border-radius: 9999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.pricing-currency {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: 7px;
  color: #9DB8E4;
}

.pricing-period {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  margin-bottom: 24px;
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.pricing-feature-check {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* ---- FAQ ---- */

.faq-spread {
  max-width: 1160px;
  margin: 0 auto;
}

.faq-intro-sub {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 44ch;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

/* Wide screens: sticky intro left, questions right (matches the ledger) */
@media (min-width: 981px) {
  .faq-spread {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(48px, 6vw, 88px);
    align-items: start;
  }
  .faq-intro { position: sticky; top: 120px; }
  .faq-intro .section-tag,
  .faq-intro .section-title { text-align: left; }
  .faq-intro-sub { text-align: left; margin-left: 0; max-width: 36ch; }
  .faq-list { max-width: none; margin: 6px 0 0; }
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:first-child {
  border-top: 1px solid var(--hairline);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--dur-fast);
}

.faq-q:hover { color: var(--navy); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur-med) var(--ease-out);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--navy);
}

.faq-a {
  display: none;
  padding: 0 32px 20px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

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

/* Dark FAQ variant (both host pages: landing + memberships) */
#faqSection .faq-intro-sub { color: rgba(255,255,255,0.85); }
#faqSection .faq-item { border-color: rgba(126,170,223,0.22); }
#faqSection .faq-q { color: #fff; }
#faqSection .faq-q:hover { color: #A9C4EC; }
#faqSection .faq-chevron { color: rgba(255,255,255,0.70); }
#faqSection .faq-item.open .faq-chevron { color: #A9C4EC; }
#faqSection .faq-a { color: rgba(255,255,255,0.88); }

/* ---- Final CTA ---- */

.cta-headline {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: var(--step-lead);
  color: rgba(255, 255, 255, 0.90);
  max-width: 50ch;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-btn-primary {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 9999px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-med), transform var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.cta-btn-primary:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
  color: var(--navy);
  text-decoration: none;
}

.cta-btn-outline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--dur-med), color var(--dur-med), transform var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.cta-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- Footer ---- */

footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px clamp(24px, 5vw, 64px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  justify-content: center;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.90;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: #ffffff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

/* ============================================================
   Membership promo bar (above navbar — "first thing users see")
   ============================================================ */

.promo-bar {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  background-size: 200% 100%;
  animation: promo-sheen 9s ease-in-out infinite alternate;
  text-align: center;
}

@keyframes promo-sheen {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

.promo-bar-text {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.promo-bar-text strong {
  color: #A9C4EC;
  font-weight: 800;
}

.promo-bar-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  border-radius: 9999px;
  padding: 4px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med);
}

.promo-bar-link:hover {
  background: var(--blue-tint);
  transform: translateY(-1px);
  color: var(--navy);
  text-decoration: none;
}

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

/* Compact promo bar on phones: one tight line of text + pill */
@media (max-width: 560px) {
  .promo-bar { gap: 8px; padding: 7px 12px; }
  .promo-bar-text { font-size: 11px; letter-spacing: 0.02em; }
  .promo-bar-link { font-size: 11px; padding: 3px 12px; }
}

/* ============================================================
   Why MyPeps — editorial ledger (de-boxed)
   ============================================================ */

.ledger {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr; gap: 40px; }
}

.ledger-intro { position: sticky; top: 120px; }
@media (max-width: 860px) { .ledger-intro { position: static; } }

.ledger-intro .section-tag,
.ledger-intro .section-title { text-align: left; }

.ledger-intro-sub {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-top: 16px;
  max-width: 40ch;
}

.ledger-rows { border-top: 1px solid rgba(126,170,223,0.22); }

.ledger-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 26px 10px 26px 4px;
  position: relative;
  transition: background 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}

/* Hairline sweeps in under each row as it reveals */
.ledger-row::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: rgba(126,170,223,0.22);
  transition: width 0.9s var(--ease-out) 0.15s;
}
.ledger-row.rv-visible::after { width: 100%; }

.ledger-row:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 80%);
  padding-left: 14px;
}

/* ---- Hand-drawn micro-glyphs (replace the 01-06 numerals) ---- */

.ledger-glyph {
  width: 46px;
  height: 46px;
  position: relative;
  margin-top: 2px;
  justify-self: start;
}

.ledger-glyph::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 170, 223, 0.20) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s var(--ease-out) 0.2s, transform 0.5s var(--ease-out) 0.2s;
}
.ledger-row.rv-visible .ledger-glyph::before { opacity: 1; transform: scale(1); }

.ledger-glyph svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  position: relative;
}

.ledger-glyph path {
  fill: none;
  stroke: #A9C4EC;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke 0.3s var(--ease-out);
}

.ledger-row.rv-visible .ledger-glyph path {
  transition: stroke-dashoffset 0.9s var(--ease-out) 0.3s, stroke 0.3s var(--ease-out);
  stroke-dashoffset: 0;
}
.ledger-row.rv-visible .ledger-glyph path:nth-child(2) {
  transition-delay: 0.75s, 0s;
}

.ledger-row:hover .ledger-glyph path { stroke: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ledger-row::after { width: 100%; transition: none; }
  .ledger-glyph path { stroke-dashoffset: 0; transition: none; }
  .ledger-glyph::before { opacity: 1; transform: none; transition: none; }
}

.ledger-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger-flag {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0C1836;
  background: #7EAADF;
  border-radius: 9999px;
  padding: 3px 10px;
}

.ledger-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 52ch;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */

.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.rv-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Ripple effect on buttons
   ============================================================ */

.hero-btn-primary,
.hero-btn-outline,
.cta-btn-primary,
.cta-btn-outline,
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: ripple-expand 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   Navbar scroll shadow (toggled by the navbar mixin script)
   ============================================================ */

nav.nav-scrolled {
  box-shadow: 0 16px 34px -16px rgba(12, 24, 54, 0.65) !important;
}

/* ============================================================
   Feature card tilt
   ============================================================ */

.feature-card {
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Animations ---- */

@keyframes land-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Site navbar: THE LETTERHEAD. A strip of the site's cream case-file
   paper floating over the navy page: dark serif logo, navy ink links whose
   hand-drawn underlines draw on hover (the current page inks itself on
   load), a filled-ink Patient Login pill, and a reading-progress pen line
   along the paper's bottom edge. ---- */
.nav-glass {
  background: linear-gradient(180deg, rgba(253, 251, 246, 0.97) 0%, rgba(247, 241, 228, 0.93) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 38, 94, 0.10);
  box-shadow: 0 10px 26px -20px rgba(12, 24, 54, 0.45);
  transition: box-shadow 0.3s ease;
}
.nav-link {
  position: relative;
  display: flex; align-items: center;
  height: 72px; padding: 0 1.15rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.015em;
  color: rgba(22, 38, 94, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--navy-deep); text-decoration: none; }
.nav-ink {
  position: absolute; left: 14%; bottom: 17px;
  width: 72%; height: 7px;
  overflow: visible; pointer-events: none;
}
.nav-ink path {
  fill: none; stroke: var(--navy-mid); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
}
.nav-link:hover .nav-ink path { animation: nav-ink-draw 0.35s var(--ease-out) forwards; }
.nav-link.nav-active { color: var(--navy); font-weight: 700; }
.nav-link.nav-active .nav-ink path {
  stroke: var(--navy); stroke-width: 2.75;
  animation: nav-ink-draw 0.5s var(--ease-out) 0.35s forwards;
}
@keyframes nav-ink-draw { from { opacity: 1; } to { opacity: 1; stroke-dashoffset: 0; } }
.nav-divider {
  width: 1px; height: 26px; flex-shrink: 0;
  background: rgba(22, 38, 94, 0.14);
}
.nav-provider {
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: rgba(22, 38, 94, 0.9); text-decoration: none;
  transition: color 0.2s;
}
.nav-provider:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #23386F 0%, var(--navy) 55%, #101E4C 100%);
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.55rem; border-radius: 9999px; text-decoration: none;
  border: 1px solid rgba(12, 24, 54, 0.9);
  box-shadow: 0 6px 16px -6px rgba(12, 24, 54, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 10px 22px -8px rgba(12, 24, 54, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff; text-decoration: none;
}
.nav-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--navy-mid), var(--navy));
  z-index: 1; pointer-events: none;
}
.nav-burger { color: var(--navy); }
.nav-burger:hover { background: rgba(22, 38, 94, 0.08); }

/* Mobile drawer: the same cream paper, opened like the folder's flap */
.nav-drawer-panel {
  background: linear-gradient(170deg, #FDFBF6 0%, #F4EEE1 100%);
  border-right: 1px solid rgba(22, 38, 94, 0.08);
}
.nav-drawer-link {
  padding: 0.65rem 0.85rem; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: rgba(22, 38, 94, 0.9); text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.nav-drawer-link:hover { background: rgba(22, 38, 94, 0.06); color: var(--navy); text-decoration: none; }
.nav-drawer-link.nav-active {
  background: rgba(22, 38, 94, 0.07); color: var(--navy); font-weight: 700;
  border-left-color: var(--navy-mid);
}
.nav-drawer-sep { border-top: 1px solid var(--hairline); }

@media (prefers-reduced-motion: reduce) {
  .nav-link:hover .nav-ink path,
  .nav-link.nav-active .nav-ink path { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .nav-cta, .nav-glass { transition: none; }
}
