/* Apex MD med-spa partner landing — one page, quiet luxury.
   Colours come from partner.json via the :root block make.py writes into
   the page head (--brand, --brand-ink, --accent, --brand-soft). */

:root {
  --ivory: #f7f3ec;
  --paper: #fbf9f5;
  --sand: #e9e1d4;
  --stone: #cfc4b3;
  --ink: #1d1b19;
  --ink-soft: #57524b;
  --rule: #ddd4c6;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 380; letter-spacing: -.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; font-variation-settings: "opsz" 120; }
h3 { font-size: 26px; line-height: 1.15; font-weight: 420; }
em { font-style: italic; font-weight: 300; color: var(--brand); }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 50ch; }
.small { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--brand); }
.btn-light:hover { background: #fff; }
.arrow::after { content: "→"; font-family: var(--sans); transition: transform .2s; }
.btn:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .3s; }
.site-head.is-scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.lockup { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; padding-right: 20px; flex-shrink: 0; }
.lockup .partner { height: 30px; width: auto; }
.lockup .by { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--rule);
  font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.lockup .by img { height: 15px; width: auto; }
.site-nav { display: flex; gap: 26px; font-size: 14.5px; white-space: nowrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-head .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.login { font-size: 14px; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.site-head .btn { white-space: nowrap; }
@media (max-width: 1360px) { .site-nav { display: none; } }
@media (max-width: 760px) { .login { display: none; } }
@media (max-width: 560px) {
  .site-head .wrap { height: 66px; gap: 14px; }
  .lockup .partner { height: 24px; }
  .lockup .by { padding-left: 10px; gap: 6px; font-size: 8px; }
  .lockup .by img { height: 12px; }
  .site-head .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--sand); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247, 243, 236, .96) 0%, rgba(247, 243, 236, .82) 34%, rgba(247, 243, 236, 0) 62%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 110px); }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.offer-note { margin-top: 26px; display: inline-flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-soft); }
.offer-note b { color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.hero .reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-width: 760px) {
  .hero { min-height: auto; display: block; }
  .hero-img { position: relative; height: 58vw; min-height: 260px; object-position: 70% 30%; }
  .hero::after { display: none; }
  .hero { padding: 0; }
  .hero .wrap { padding-top: 34px; padding-bottom: 48px; }
  .offer-note { display: block; line-height: 1.55; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.trust ul { list-style: none; margin: 0 auto; padding: 22px var(--gutter); max-width: var(--wrap);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px;
  font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { margin-top: 18px; }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- the menu ---------- */
.menu { border-top: 1px solid var(--ink); }
.menu-row {
  display: grid; grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 28px 40px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative;
  transition: background .25s;
}
.menu-row:hover { background: linear-gradient(90deg, transparent, var(--paper) 12%, var(--paper) 88%, transparent); }
.menu-row .thumb { width: 120px; height: 96px; object-fit: contain; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.menu-row:hover .thumb { transform: scale(1.06) rotate(-1deg); }
.menu-row h3 { margin-bottom: 6px; }
.menu-row .desc { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.price { font-family: var(--serif); font-size: 30px; font-weight: 380; letter-spacing: -.02em; line-height: 1; }
.price small { display: block; margin-top: 8px; font: 500 13px/1.45 var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.price .code { color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.menu-row .go { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--rule); font-size: 18px; transition: background .2s, border-color .2s, color .2s; }
.menu-row:hover .go { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 860px) {
  .menu-row { grid-template-columns: 84px 1fr; gap: 14px 20px; padding: 24px 0; }
  .menu-row .thumb { width: 84px; height: 72px; }
  .menu-row .price { grid-column: 2; font-size: 24px; }
  .menu-row .go { display: none; }
}

/* ---------- split (how it works) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 4px; }
.split-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--stone); border-radius: 4px; z-index: -1; }
.steps { list-style: none; margin: 38px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--brand); line-height: 1; }
.steps b { font-weight: 600; font-size: 17.5px; }
.steps span { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-img::before { display: none; } }

/* ---------- physician ---------- */
.doc { background: var(--paper); }
.doc .split { grid-template-columns: .8fr 1.2fr; }
.doc .split-img img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.creds { columns: 2; column-gap: 40px; list-style: none; margin: 30px 0 0; padding: 0; }
.creds li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }
blockquote { margin: 26px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--ink); }
@media (max-width: 860px) { .doc .split { grid-template-columns: 1fr; } .creds { columns: 1; } .doc .split-img img { aspect-ratio: auto; } }

/* ---------- offers band ---------- */
.offers { background: var(--brand); color: #f4f1ea; position: relative; overflow: hidden; }
.offers::before { content: ""; position: absolute; right: -12%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12); }
.offers .eyebrow { color: #fff; }
.offers h2 { color: #fff; }
.offers em { color: #fff; opacity: .78; }
.offer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .16); margin-top: 56px; }
.offer-card { background: var(--brand); padding: 34px 30px 30px; }
.offer-card .amt { font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 1; color: #fff; }
.offer-card .amt sup { font-size: .45em; vertical-align: top; position: relative; top: .35em; margin-right: 2px; }
.offer-card p { margin: 14px 0 22px; color: rgba(255, 255, 255, .8); font-size: 15.5px; }
.code-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 6px;
  font: 700 14px/1 var(--sans); letter-spacing: .1em; color: #fff; background: transparent; cursor: pointer; }
.code-chip .hint { font-weight: 500; letter-spacing: .04em; opacity: .7; font-size: 12px; }
.code-chip.copied .hint { opacity: 1; }
@media (max-width: 860px) { .offer-cards { grid-template-columns: 1fr; } }

/* ---------- included (still life) ---------- */
.included .split { grid-template-columns: 1fr .9fr; }
.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.checks li { padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); position: relative; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 860px) { .included .split { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; line-height: .9; color: var(--brand); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; max-width: 68ch; color: var(--ink-soft); }

/* ---------- closing ---------- */
.closing { position: relative; padding: 0; background: var(--sand); }
.closing .split { grid-template-columns: 1fr 1fr; gap: 0; }
.closing .split-img img { aspect-ratio: auto; height: 100%; min-height: 560px; border-radius: 0; }
.closing .split-img::before { display: none; }
.closing .copy { padding: clamp(56px, 8vw, 110px) var(--gutter); max-width: 620px; }
.closing h2 { margin: 18px 0 22px; }
@media (max-width: 860px) { .closing .split { grid-template-columns: 1fr; } .closing .split-img img { min-height: 0; aspect-ratio: 4 / 3; object-position: 50% 15%; } }

/* ---------- footer ---------- */
footer { background: #16151a; color: #bdb7ad; padding: 72px 0 110px; font-size: 14.5px; }
footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px 64px; padding-bottom: 44px; border-bottom: 1px solid #2c2a30; }
footer .lockup .by { border-left-color: #3a3840; color: #8f897f; }
footer h4 { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8f897f; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal { margin-top: 30px; font-size: 12.5px; line-height: 1.7; color: #8f897f; max-width: 120ch; }
@media (max-width: 860px) { footer .top { grid-template-columns: 1fr; } }

/* ---------- mobile CTA ---------- */
.mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; }
.mbar .btn { width: 100%; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
@media (max-width: 760px) { .mbar { display: block; } }

/* ---------- scroll reveal (only when JS says motion is fine) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero .reveal { animation: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 2-minute assessment ---------- */
.quiz { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20, 18, 16, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.quiz[hidden] { display: none; }
.quiz-panel { width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--ivory); border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35); padding: 30px clamp(22px, 4vw, 44px) 32px; }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.quiz-close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.quiz-meter { height: 2px; background: var(--rule); margin-bottom: 30px; }
.quiz-meter i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .45s cubic-bezier(.4, 0, .2, 1); }
.quiz-step h3 { font-size: clamp(28px, 3.2vw, 38px); margin: 6px 0 24px; }
.quiz-step .n { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--paper); font: 500 16px/1.3 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--stone); }
.opt i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--stone); flex: none; position: relative; }
.opt.on { border-color: var(--brand); background: #fff; }
.opt.on i { background: var(--brand); border-color: var(--brand); }
.opt.on i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.result { border-left: 2px solid var(--brand); padding-left: 24px; }
.result .prog { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.result h3 { margin: 10px 0 12px; }
.result p { color: var(--ink-soft); margin: 0 0 24px; }
.quiz-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 26px; }
.quiz-back { background: none; border: 0; padding: 0; font: 600 14px var(--sans); color: var(--ink-soft); cursor: pointer; }
.quiz-foot .small { margin: 0 0 0 auto; max-width: 52ch; text-align: right; }
@media (max-width: 600px) {
  .quiz { padding: 0; align-items: stretch; }
  .quiz-panel { max-height: none; border-radius: 0; }
  .opts { grid-template-columns: 1fr; }
  .quiz-foot { flex-direction: column-reverse; align-items: flex-start; }
  .quiz-foot .small { text-align: left; margin: 0; }
}

/* ---------- prices: "from" + struck list price ---------- */
.price .from { font: 500 13px/1 var(--sans); letter-spacing: .02em; color: var(--ink-soft); margin-right: 6px; vertical-align: middle; }
.price s, .price small s { color: var(--ink-soft); opacity: .7; font-weight: 400; }
.price > s { font-size: .6em; margin-left: 8px; }

/* ---------- start with labs ---------- */
.labs { background: var(--paper); padding-top: clamp(56px, 8vw, 110px); }
.lab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lab-card { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--rule); border-radius: 4px; padding: 32px 28px 28px; }
.lab-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lab-top .badge { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.lab-card p { margin: 14px 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.lab-card ul { list-style: none; margin: 0 0 26px; padding: 0; }
.lab-card li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.lab-buy { margin-top: auto; display: grid; gap: 10px; }
.lab-buy .btn { min-height: 48px; padding: 0 18px; font-size: 14px; justify-content: center; }
@media (max-width: 960px) { .lab-cards { grid-template-columns: 1fr; } }

/* physician card (Apex MD branded card with signature): show it whole, never crop */
.doc .split-img.card img { aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 0; max-width: 460px; margin: 0 auto; display: block; }
.doc .split-img.card::before { display: none; }
@media (max-width: 860px) { .doc .split-img.card img { max-width: 360px; } }
