/* ─── SCROLL PROGRESS ─── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d14;
  --bg2: #12121f;
  --bg3: #1a1a2e;
  --accent: #b48cf2;
  --accent2: #7ec8a9;
  --text: #f0eef8;
  --text-muted: #9994b8;
  --footer-muted: #b7b2d6;
  --bone: #c8a97e;
  --red: #ff4466;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 140, 242, 0.1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.nav-countdown {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(180, 140, 242, 0.25);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

.nav-ig {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid rgba(180, 140, 242, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-ig:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ─── JUMP NAV ─── */
.jump-nav {
  position: sticky;
  top: 64px; /* corrected by script.js to the real nav height */
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  margin-top: 64px; /* corrected by script.js to the real nav height */
  background: linear-gradient(180deg, var(--bg) 75%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
  transition: top 0.3s ease;
}

.jump-nav::-webkit-scrollbar { display: none; }

.jump-nav__pill {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid rgba(180, 140, 242, 0.2);
  border-radius: 100px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.jump-nav__pill.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.jump-nav__pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 60px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 60%, rgba(100, 60, 180, 0.18) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(126, 200, 169, 0.08) 0%, transparent 50%);
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.4s forwards;
}

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

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

/* ─── COUNTDOWN ─── */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.countdown-block {
  background: var(--bg3);
  border: 1px solid rgba(180, 140, 242, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 68px;
  text-align: center;
}

.countdown-block span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.countdown-block label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-done__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent2);
}

.countdown-done__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── CTA BUTTON ─── */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.cta-btn:hover {
  background: #c9a9ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(180, 140, 242, 0.35);
}

.cta-big {
  font-size: 1.05rem;
  padding: 18px 40px;
  opacity: 1;
  animation: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(180, 140, 242, 0.1);
  border: 1px solid rgba(180, 140, 242, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -12px;
  margin-bottom: 36px;
}

/* ─── STORY ─── */
.story { background: var(--bg2); }

.story-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.story-body p:last-child { margin-bottom: 0; }

.story-highlight {
  color: var(--text) !important;
  font-size: 1.15rem !important;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 28px 0 !important;
}

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

/* ─── BEFORE / AFTER ─── */
.before-after { background: var(--bg); }

.compare-shot {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  background: var(--bg3);
}

.compare-shot img {
  width: 100%;
  display: block;
}

.compare-shot.img-missing img { display: none; }

/* ─── HOW IT WORKS (scrollytelling) ─── */
.how { background: var(--bg2); padding-bottom: 40px; }

.scrolly {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 24px 0;
}

.scrolly-visual {
  position: sticky;
  top: var(--sticky-top, 150px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.scrolly-visual__frame {
  background: linear-gradient(160deg, #1a1a2e, #12121f);
  border: 1px solid rgba(180, 140, 242, 0.15);
  border-radius: 24px;
  padding: 24px 28px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.femur-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.femur-svg .stage {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.femur-svg .stage.is-active { opacity: 1; }

.scrolly-visual__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.scrolly-steps { padding-top: 4px; }

.scrolly-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.scrolly-step:last-child { min-height: 40vh; }

.scrolly-step.is-active { opacity: 1; }

.scrolly-step .step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.scrolly-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scrolly-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.scrolly-step p:last-child { margin-bottom: 0; }

/* ─── MYTHS / REAL QUESTIONS ─── */
.myths { background: var(--bg); }

.qa-thread {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 8px;
}

.qa-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.qa-bubble {
  max-width: 85%;
  padding: 14px 16px;
  border-radius: 18px;
}

.qa-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.qa-bubble--in {
  align-self: flex-start;
  background: var(--bg3);
  border: 1px solid rgba(180, 140, 242, 0.12);
  border-bottom-left-radius: 4px;
}

.qa-bubble--in p { color: var(--text-muted); }

.qa-bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(180, 140, 242, 0.18), rgba(180, 140, 242, 0.07));
  border: 1px solid rgba(180, 140, 242, 0.3);
  border-bottom-right-radius: 4px;
}

.qa-bubble--out p { color: var(--text); }

/* ─── CONSULT ─── */
.consult {
  background: var(--bg2);
  text-align: center;
}

.consult-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 28px;
}

.consult-status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.consult-status.is-error { color: #f0a5ae; }

/* ─── CONSULT PAGE (consult.html) ─── */
.consult-hero {
  background: var(--bg2);
  text-align: center;
  padding-top: 130px;
}

.consult-hero .section-sub { max-width: 460px; margin-left: auto; margin-right: auto; }

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 28px;
}

.price-tag__amount {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-tag__unit {
  font-size: 1rem;
  color: var(--text-muted);
}

.consult-details {
  background: var(--bg);
  text-align: left;
}

.consult-details h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.consult-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 560px;
}

.consult-details p:last-child { margin-bottom: 0; }

/* ─── TIMELINE ─── */
.timeline { background: var(--bg2); }

.latest-update {
  background: linear-gradient(135deg, rgba(126,200,169,0.12), rgba(126,200,169,0.03));
  border: 1px solid rgba(126,200,169,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
  margin-bottom: 32px;
}

.latest-update__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(126,200,169,0.15);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.latest-update__date {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.latest-update p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-wrap {
  position: relative;
  margin-top: 40px;
  padding-left: 28px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--text-muted);
  transition: border-color 0.3s, background 0.3s;
}

.tl-item.active .tl-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(180, 140, 242, 0.5);
}

.tl-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tl-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── NOTIFY ─── */
.notify { background: var(--bg); text-align: center; }

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg3);
  border: 1px solid rgba(180, 140, 242, 0.25);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: inherit;
}

.notify-form input[type="email"]::placeholder { color: var(--text-muted); }

.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.notify-status {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.notify-status.is-error { color: #f0a5ae; }
.notify-status.is-success { color: var(--accent2); }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--bg);
  text-align: center;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 32px; }

/* ─── FOOTER ─── */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p { color: var(--text-muted); font-size: 0.8rem; }

/* Was text-muted + opacity:0.5 (~2.5:1 contrast, fails WCAG AA).
   This is the "not medical advice" line — it should actually be readable. */
.footer-note { margin-top: 8px; font-size: 0.72rem; color: var(--footer-muted); }

/* ─── IMAGE PLACEHOLDER (before/after) ─── */
.compare-shot__placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 280px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compare-shot__placeholder strong { color: var(--accent); }

.compare-shot.img-missing .compare-shot__placeholder { display: flex; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

/* ─── TABLET+ ─── */

/* Wide enough for the visual to sit beside the text instead of above it. */
@media (min-width: 700px) {
  .scrolly {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 760px;
  }

  .scrolly-visual { margin-bottom: 0; }

  .qa-bubble { max-width: 65%; }
}
