/* ============================================================
   PEPLABCO — design tokens
   ============================================================ */
:root {
  --font-display: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* palette */
  --ink: #0b0c0e;
  --ink-2: #141518;
  --ink-3: #1d1f23;
  --paper: #f4f4f2;
  --paper-2: #ebebe8;
  --white: #ffffff;
  --grey-1: #8a8f97;
  --grey-2: #b8bcc2;
  --grey-3: #5c6168;
  --accent: #163a4a;     /* deep petrol — CTAs on light */
  --accent-2: #1f5164;
  --live: #35c26b;

  --line-dark: rgba(255, 255, 255, 0.1);
  --line-light: rgba(11, 12, 14, 0.1);

  --color-bg: var(--ink);
  --color-text: var(--white);

  /* type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4vw, 5.25rem);

  /* spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(4.5rem, 4rem + 4vw, 8rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--ink);
  color: var(--white);
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Sections ---------- */
.section--light {
  background: var(--paper);
  color: var(--ink);
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 em, h1 em {
  font-style: normal;
  color: var(--grey-1);
}
.section--light h2 em { color: var(--grey-3); }
h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-6);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--dark { color: var(--grey-3); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head__aside {
  max-width: 40ch;
  color: var(--grey-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.section--light .section-head__aside { color: var(--grey-3); }

.grid {
  display: grid;
  gap: var(--space-4);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 0.65rem 1.1rem; }
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover { background: var(--paper-2); transform: translateY(-1px); }
.btn--light .btn__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn--light:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost {
  border: 1px solid var(--line-dark);
  color: var(--white);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover { background: var(--accent-2); }

.link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link--dark { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 14, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
  padding: 10px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand__mark { width: 26px; height: 26px; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
}
.nav__links a {
  font-size: var(--text-sm);
  color: var(--grey-2);
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__login {
  font-size: var(--text-sm);
  color: var(--grey-2);
  transition: color 0.3s var(--ease);
}
.nav__login:hover { color: var(--white); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav__burger span {
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-6) 1.25rem var(--space-8);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.nav.is-open { background: var(--ink); }
.mobile-menu a {
  padding: 12px 0;
  font-size: var(--text-lg);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a.btn { margin-top: var(--space-4); border: 0; justify-content: center; font-size: var(--text-sm); color: var(--ink); }
.mobile-menu:not([hidden]) { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 5rem + 6vw, 10rem);
  padding-bottom: var(--space-12);
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: 8%;
  width: 60vw;
  height: 90vh;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.09), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: var(--space-6);
}
.hero__lead {
  font-size: var(--text-lg);
  color: var(--grey-2);
  max-width: 46ch;
  margin-bottom: var(--space-8);
  font-weight: 300;
}
.hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.hero__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-8);
  color: var(--grey-1);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(53, 194, 107, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 194, 107, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(53, 194, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 194, 107, 0); }
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(1.04);
  transition: transform 0.15s linear;
  will-change: transform;
}
.hero__spec {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 18px;
  color: var(--grey-2);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.hero__ticks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark);
  position: relative;
  z-index: 1;
}
.tick {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--grey-2);
}
.tick__n { color: var(--grey-1); padding-top: 2px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink-2);
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.marquee__track i {
  width: 5px; height: 5px;
  background: var(--grey-3);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Statement ---------- */
.statement { padding: var(--section-y) 0; }
.statement__text {
  font-size: var(--text-2xl);
  max-width: 24ch;
  font-weight: 500;
}
.statement__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-16);
  border-top: 1px solid var(--line-light);
  padding-top: var(--space-8);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__value small {
  font-size: 0.55em;
  color: var(--grey-3);
  margin-left: 2px;
  font-weight: 400;
}
.stat__label { font-size: var(--text-sm); color: var(--grey-3); max-width: 24ch; }

/* ---------- Client intake ---------- */
.intake { padding: var(--section-y) 0; }
.intake__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-16);
  align-items: start;
}
.intake__side { position: sticky; top: 110px; }
.intake__side h2 { margin: var(--space-4) 0 var(--space-6); }
.intake__lede { color: var(--grey-3); font-size: var(--text-lg); max-width: 34ch; margin-bottom: var(--space-8); }
.intake__next { display: flex; flex-direction: column; }
.intake__next li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}
.intake__next li .mono { color: var(--grey-3); padding-top: 3px; }
.intake__next li div { display: flex; flex-direction: column; gap: 2px; }
.intake__next strong { font-weight: 500; }
.intake__next li div span { font-size: var(--text-sm); color: var(--grey-3); }
.intake__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: var(--space-8);
  color: var(--grey-3);
}
.intake__trust li { display: inline-flex; align-items: center; gap: 8px; }

.form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  overflow: hidden;
}
.form__progress {
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: var(--line-light);
}
.form__progress span {
  display: block; height: 100%;
  background: var(--ink);
  transition: width 0.6s var(--ease);
}
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.stepper li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-sm);
  color: var(--grey-1);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stepper li .mono { font-size: var(--text-xs); }
.stepper li.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.stepper li.is-active .mono, .stepper li.is-done .mono { color: inherit; }
.stepper li.is-done { color: var(--grey-3); }

.fstep { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep.is-active { display: block; animation: stepIn 0.45s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fstep legend {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-2);
  padding: 0;
}
.fstep__hint { color: var(--grey-3); font-size: var(--text-sm); margin-bottom: var(--space-6); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice__body {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  min-height: 92px;
  justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.choice__body strong { font-weight: 500; }
.choice__body span { font-size: var(--text-xs); color: var(--grey-3); letter-spacing: 0.01em; }
.choice:hover .choice__body { border-color: rgba(11, 12, 14, 0.4); }
.choice input:checked + .choice__body { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice input:checked + .choice__body span { color: var(--grey-2); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--ink); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4); }
.fields--single { grid-template-columns: 1fr; margin-top: var(--space-6); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: var(--space-4); }
.fields .field { margin-top: 0; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field--split > div { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: var(--text-sm); color: var(--ink); font-weight: 500; }
.field__label small { font-weight: 400; color: var(--grey-3); margin-left: 4px; }
.form input:not([type='radio']):not([type='checkbox']):not([type='range']),
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b0c0e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form textarea { resize: vertical; min-height: 72px; }
.form input::placeholder, .form textarea::placeholder { color: var(--grey-1); }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.08);
}
.field.is-invalid input, .field.is-invalid select { border-color: #b3261e; background: #fff7f6; }
.field__error {
  display: none;
  font-size: var(--text-xs);
  color: #b3261e;
  margin-top: 8px;
}
.field.is-invalid .field__error, .field__error.is-visible { display: block; }

.segmented { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-light); border-radius: 999px; padding: 3px; gap: 2px; background: var(--paper); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.segmented span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--grey-3);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.segmented input:checked + span { background: var(--ink); color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.check:hover { border-color: rgba(11, 12, 14, 0.35); }
.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(11, 12, 14, 0.4);
  border-radius: 4px;
  background: var(--white);
  display: grid; place-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check input::before {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.2s var(--ease);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check:has(input:checked) { background: var(--paper); border-color: rgba(11, 12, 14, 0.4); }
.check--none { grid-column: 1 / -1; }
.check small { color: var(--grey-3); }
.flag-note {
  margin-top: var(--space-4);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--grey-3);
  text-transform: none;
  letter-spacing: 0.03em;
  border-left: 2px solid var(--accent);
}

.form__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-light);
}
.form__count { color: var(--grey-3); margin-left: auto; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--dark .btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn--dark:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost-dark { border-color: var(--line-light); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink); background: transparent; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.form__error { color: #b3261e; margin-top: var(--space-4); text-transform: none; letter-spacing: 0.03em; }

.form__done {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-4) 0;
  animation: stepIn 0.5s var(--ease) both;
}
.form__done h3 { font-size: var(--text-xl); letter-spacing: -0.02em; }
.form__done > p { color: var(--grey-3); max-width: 46ch; }
.form__done .mono { color: var(--grey-1); }
.form__done .badge__dot--live { background: var(--live); box-shadow: 0 0 0 4px rgba(53, 194, 107, 0.18); }
.form.is-done .stepper, .form.is-done .fstep, .form.is-done .form__nav { display: none; }
.form [hidden] { display: none !important; }

/* ---------- How it works ---------- */
.how {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
  color: var(--white);
  background: #000;
}
.how__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% center;
  opacity: 0.9;
}
.how__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.7) 100%);
}
.how__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: var(--space-12);
  align-items: end;
  min-height: 72vh;
}
.how__intro { align-self: start; }
.how__intro h2 { max-width: 12ch; }
.steps {
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-dark);
}
.step:last-of-type { border-bottom: 0; padding-bottom: 0; }
.step__n { color: var(--grey-1); padding-top: 4px; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: var(--text-sm); color: var(--grey-2); }
.steps .btn { align-self: flex-start; margin-top: var(--space-2); }

/* ---------- Quality ---------- */
.quality { padding: var(--section-y) 0; }
.quality__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 2rem + 3vw, 6rem);
  align-items: start;
}
.quality__media {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.quality__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quality__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}
.quality__media figcaption {
  z-index: 1;
  position: absolute;
  bottom: 14px; left: 16px;
  color: var(--grey-2);
}
.quality__copy h2 { margin-bottom: var(--space-4); }
.quality__copy > p { color: var(--grey-3); margin-bottom: var(--space-8); }

.tests { border-top: 1px solid var(--line-light); }
.test, .qa { border-bottom: 1px solid var(--line-light); }
.test summary, .qa summary {
  list-style: none;
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--text-lg);
}
.test summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.test summary .mono, .qa summary .mono { color: var(--grey-3); }
.test__icon {
  position: relative;
  width: 24px; height: 24px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
}
.test__icon::before, .test__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.test__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .test__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.test p, .qa p {
  padding: 0 0 20px 52px;
  color: var(--grey-3);
  font-size: var(--text-sm);
  animation: fadeDown 0.4s var(--ease);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-8);
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: var(--text-sm);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- FAQ ---------- */
.faq { padding: var(--section-y) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 2rem + 3vw, 6rem);
  align-items: start;
}
.faq__head { position: sticky; top: 96px; }
.faq__head h2 { margin-bottom: var(--space-4); }
.faq__head p { color: var(--grey-3); margin-bottom: var(--space-6); max-width: 32ch; }
.faq__list { border-top: 1px solid var(--line-light); }

/* ---------- Footer ---------- */
.footer {
  background: #050506;
  color: var(--white);
  padding-top: var(--section-y);
  border-top: 1px solid var(--line-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand p { color: var(--grey-1); margin: var(--space-6) 0; max-width: 30ch; font-size: var(--text-sm); }
.subscribe label { display: block; color: var(--grey-3); margin-bottom: 10px; }
.subscribe__row {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.subscribe input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--white);
  font-size: var(--text-sm);
}
.subscribe input::placeholder { color: var(--grey-3); }
.subscribe__done { display: none; color: var(--live); margin-top: 10px; }
.subscribe.is-done .subscribe__row { display: none; }
.subscribe.is-done .subscribe__done { display: block; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.footer__cols h4 { color: var(--grey-3); margin-bottom: var(--space-4); font-weight: 500; }
.footer__cols a {
  display: block;
  font-size: var(--text-sm);
  color: var(--grey-2);
  padding: 5px 0;
  transition: color 0.3s var(--ease);
}
.footer__cols a:hover { color: var(--white); }
.footer__legal { padding: var(--space-8) 0 var(--space-6); }
.footer__legal p {
  color: var(--grey-3);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 100ch;
  margin-bottom: 12px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark);
  color: var(--grey-3);
  flex-wrap: wrap;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .treatments__grid, .care__grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .tier { flex-direction: row; flex-wrap: wrap; }
  .tier__top { width: 100%; }
  .tier > h3 { width: 100%; }
  .statement__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero__grid { grid-template-columns: 1fr 0.8fr; }
}

@media (max-width: 1080px) {
  .nav__links, .nav__login { display: none; }
  .nav__actions .btn:not(.bag-btn) { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .checkout__side { position: static; }
  .review { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-10, 2.5rem); }
  .hero__visual { justify-self: start; width: min(100%, 380px); aspect-ratio: 3 / 4; }
  .hero__ticks { grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-12); }
  .how__grid { grid-template-columns: 1fr; min-height: auto; }
  .quality__grid, .faq__grid { grid-template-columns: 1fr; }
  .quality__media { position: relative; top: auto; }
  .faq__head { position: static; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .lines__list { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .intake__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .panels { grid-template-columns: 1fr; }
  .intake__side { position: static; }
  .clinic { grid-template-columns: 1fr; gap: var(--space-8); }
  .tier { flex-direction: column; }
  .rating { align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-wrap: wrap; border: 0; background: none; padding: 0; }
  .filter { border: 1px solid var(--line-dark); }
  .filter.is-active { border-color: var(--white); }
}

@media (max-width: 600px) {
  .treatments__grid, .care__grid { grid-template-columns: 1fr; }
  .statement__stats { grid-template-columns: 1fr 1fr; }
  .line { grid-template-columns: 1fr auto; gap: var(--space-3); }
  .line__cat { display: none; }
  .calc, .clinic { padding: var(--space-6); }
  .form { padding: var(--space-6) var(--space-4); border-radius: var(--radius); }
  .gate__card { padding: var(--space-8) var(--space-6); }
  .panel { padding: var(--space-6); }
  .segmented { flex-wrap: wrap; border-radius: var(--radius); }
  .segmented span { border-radius: var(--radius-sm); padding: 8px 14px; }
  .gate__row { flex-direction: column; }
  .gate__row .btn { justify-content: center; }
  .stepper { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stepper li { font-size: 0; gap: 0; justify-content: center; }
  .stepper li .mono { font-size: var(--text-xs); }
  .choices, .fields, .checks { grid-template-columns: 1fr; }
  .form__nav { flex-wrap: wrap; }
  .form__count { order: -1; width: 100%; margin-left: 0; }
  .form__nav .btn { flex: 1; justify-content: center; }
  .review { width: 280px; }
  .hero__spec { gap: 8px; }
  .hero__spec span:nth-child(3) { display: none; }
  .steps { padding: var(--space-6); }
  .test summary, .qa summary { grid-template-columns: 32px 1fr 24px; font-size: var(--text-base); }
  .test p, .qa p { padding-left: 44px; }
  .btn { padding: 0.85rem 1.25rem; }
}

/* ---------- Motion layer ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: drifting glow, breathing vial, light sweep */
  .hero__glow {
    animation: glowDrift 14s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }
  @keyframes glowDrift {
    0%   { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.9; }
    50%  { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
    100% { transform: translate3d(5%, -2%, 0) scale(0.96); opacity: 0.85; }
  }
  .hero__visual.is-visible { animation: heroFloat 9s ease-in-out infinite; }
  @keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .hero__visual::before {
    content: '';
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
    transform: translateX(-70%);
    animation: sweep 8s var(--ease) infinite;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
  }
  @keyframes sweep {
    0%, 55% { transform: translateX(-70%); }
    85%, 100% { transform: translateX(70%); }
  }

  /* Headline words rise in one by one */
  .hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
  .hero__title .w > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--wd, 0s) + 0.1s);
  }
  .hero__title.is-visible .w > span { transform: none; }

  /* Images wipe up and settle as they reveal */
  .card.reveal .card__media img,
  .quality__media.reveal img,
  .shop-card.reveal .card__media img {
    transform: scale(1.18);
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .card.reveal.is-visible .card__media img,
  .quality__media.reveal.is-visible img { transform: scale(1); }
  .card.reveal.is-visible:hover .card__media img { transform: scale(1.05); transition-duration: 0.9s; }
  .card.reveal .card__media::after,
  .quality__media.reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink-2);
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1) var(--d, 0s);
    z-index: 3;
    pointer-events: none;
  }
  .card.reveal.is-visible .card__media::after,
  .quality__media.reveal.is-visible::before { transform: scaleY(0); }

  /* Scroll parallax for large background images */
  [data-parallax] {
    transform: translate3d(0, var(--ty, 0px), 0) scale(1.12);
    will-change: transform;
  }

  /* Cursor spotlight on dark cards and panels */
  .card, .panel { position: relative; }
  .card::before, .panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
    z-index: 4;
  }
  .panel::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 58, 74, 0.1), transparent 60%); }
  .card:hover::before, .panel:hover::before { opacity: 1; }

  /* Button light sweep */
  .btn { position: relative; overflow: hidden; }
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
    pointer-events: none;
  }
  .btn--dark::after, .btn--ghost-dark::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%); }
  .btn:hover::after { transform: translateX(120%); }

  /* Bag badge pop */
  .bag-btn__count.pop { animation: pop 0.45s var(--ease); }
  @keyframes pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
  }

  /* Blood work panel numbers scale in */
  .panel.reveal .panel__num { display: inline-block; transform: translateY(0.3em); opacity: 0; transition: transform 0.9s var(--ease) 0.2s, opacity 0.9s var(--ease) 0.2s; }
  .panel.reveal.is-visible .panel__num { transform: none; opacity: 1; }
}
