/* EMFACE Founding Access — scoped styles. Brand tokens per build spec §8. */
:root {
  --dark: #17121F;
  --rg-mid: #8B6842;
  --rg-dark: #885030;
  --rg-light: #F4BF9D;
  --cream: #F7F3EF;
  --border: #E4DBD1;
  --mid: #52485E;
}

* { box-sizing: border-box; }
.emf {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  font-weight: 300;
}
.emf-container { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* Headings */
.emf-h1, .emf-h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: 0.01em; color: var(--dark); }
.emf-h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; margin: 6px 0 12px; }
.emf-h2 { font-size: 26px; margin: 0 0 12px; }

/* Hero */
.emf-hero { background: var(--cream); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.emf-eyebrow { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rg-dark); font-weight: 600; margin: 0; }
.emf-lede { font-size: 15px; color: var(--mid); max-width: 34em; margin: 0 0 24px; }

/* Price block */
.emf-price-block { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px; margin: 0 0 20px; }
.emf-price-headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.emf-price-now { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 600; color: var(--rg-dark); line-height: 1; }
.emf-price-unit { font-size: 13px; color: var(--mid); }
.emf-price-unit em { font-style: italic; color: var(--rg-dark); }
.emf-price-sub { font-size: 13px; color: var(--mid); margin: 6px 0 16px; }
.emf-finance { margin: 8px 0 2px; min-height: 20px; }   /* Klarna line (provider-rendered) */
/* Humm line — mount stays invisible until the flexifi widget injects real content.
   :empty keeps it collapsed so there's never an empty box while dormant. */
.emf-finance-humm { margin: 4px 0 2px; }
.emf-finance-humm:empty { display: none; }
/* Off-screen price source the Humm widget reads (present in DOM, never visible). */
.emf-vis-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Pay with Humm — descriptive finance-option section (no figure/APR here;
   the provider widget/application carries the regulated detail). */
.emf-humm-section .emf-h2 { font-size: 22px; }
.emf-humm-cta { display: inline-block; margin: 4px 0 0; background: var(--rg-dark); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 13px 26px; border-radius: 6px; transition: background .2s ease; }
.emf-humm-cta:hover { background: var(--rg-mid); }
.emf-humm-terms { font-size: 11.5px; color: var(--mid); margin: 12px 0 0; }

.emf-ladder { width: 100%; border-collapse: collapse; font-size: 13px; }
.emf-ladder th { text-align: left; font-weight: 600; color: var(--mid); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.emf-ladder td { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.emf-ladder-founding td { background: var(--cream); font-weight: 500; color: var(--dark); }
.emf-save { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--rg-dark); font-weight: 600; }

/* Spots counter */
.emf-spots { font-size: 14px; color: var(--rg-dark); font-weight: 500; margin: 0 0 22px; }
.emf-spots-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }

/* CTA */
.emf-cta { display: inline-block; background: var(--rg-dark); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 15px 30px; border-radius: 6px; border: 0; cursor: pointer; transition: background .2s ease; }
.emf-cta:hover { background: var(--rg-mid); }
.emf-cta:disabled { background: var(--border); color: var(--mid); cursor: not-allowed; }

/* Sections */
.emf-section { padding: 34px 0; border-bottom: 1px solid var(--border); }
.emf-section p { font-size: 14.5px; color: var(--dark); }
.emf-note { color: var(--mid); font-size: 13.5px; }

/* MOA video — responsive 16:9, click-to-play (no autoplay → reduced-motion safe). */
.emf-video-wrap { margin-top: 16px; }
.emf-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 8px; border: 1px solid var(--border); background: #0b1e2e; }

/* Area selector */
.emf-areas { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 620px) { .emf-areas { grid-template-columns: 1fr 1fr; } }
.emf-area { display: block; border: 1.5px solid var(--border); border-radius: 8px; padding: 16px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.emf-area:hover { border-color: var(--rg-light); }
.emf-area:has(input:checked) { border-color: var(--rg-dark); background: var(--cream); }
.emf-area input { margin-right: 8px; accent-color: var(--rg-dark); }
.emf-area-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; }
.emf-area-sub { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rg-mid); margin: 2px 0 8px; }
.emf-area-desc { display: block; font-size: 13px; color: var(--mid); line-height: 1.55; }

/* Contraindications — collapsed by default; customer self-excludes before paying */
.emf-contra { margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--cream); overflow: hidden; }
.emf-contra > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 500; font-size: 14px; color: var(--rg-dark); }
.emf-contra > summary::-webkit-details-marker { display: none; }
.emf-contra > summary span { font-weight: 400; font-size: 12px; color: var(--mid); }
.emf-contra[open] > summary { border-bottom: 1px solid var(--border); }
.emf-contra-body { padding: 14px 18px 18px; background: #fff; }
.emf-contra-body ul { margin: 8px 0 0; padding-left: 20px; }
.emf-contra-body li { font-size: 13.5px; color: var(--dark); line-height: 1.55; margin-bottom: 6px; }
.emf-draft-flag { font-size: 12px; color: var(--rg-dark); background: #FCF3EC; border-left: 3px solid var(--rg-light); padding: 8px 12px; margin: 0 0 8px; }

/* Placeholders (clearly marked, Phase 2/3) */
.emf-placeholder { margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--rg-light); border-radius: 6px; background: #FCFAF8; font-size: 13px; color: var(--mid); }

/* Before & after gallery — MANUFACTURER/CLINICAL images (BTL), NOT Feonix patients.
   Each source image is a single wide before|after composite. */
.emf-ba { display: grid; gap: 16px; margin-top: 18px; }
.emf-ba figure { margin: 0; }
.emf-ba img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--cream); }
.emf-ba-source { font-size: 13px; color: var(--mid); margin: 0; }
.emf-ba-caption { font-size: 12.5px; letter-spacing: 0.02em; color: var(--rg-dark); font-weight: 600; margin: 16px 0 0; }
.emf-ba-disclaimer { font-size: 12px; color: var(--mid); margin: 6px 0 0; line-height: 1.5; }

/* Before/after lightbox (click/tap to enlarge) */
.emf-ba-img { cursor: zoom-in; }
.emf-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(23, 18, 31, 0.9); opacity: 0; transition: opacity .2s ease; }
.emf-lb.emf-lb-in { opacity: 1; }
.emf-lb-img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.emf-lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.emf-lb-close:hover { color: var(--rg-light); }
@media (prefers-reduced-motion: reduce) { .emf-lb { transition: none; } }

/* Contact section */
.emf-contact-details { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; font-size: 14px; }
.emf-contact-details p { margin: 0 0 12px; color: var(--dark); }
.emf-contact-details p:last-child { margin: 0; }
.emf-contact-details a { color: var(--rg-dark); text-decoration: none; font-weight: 500; }
.emf-contact-details a:hover { text-decoration: underline; }
.emf-whatsapp-btn { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 13.5px; transition: opacity .2s ease; text-decoration: none; }
.emf-whatsapp-btn:hover { opacity: 0.9; }
.emf-whatsapp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer */
.emf-footer { background: var(--dark); color: #C9C2CE; padding: 26px 0; margin-top: 0; }
.emf-footer p { font-size: 11.5px; line-height: 1.7; margin: 0; }
.emf-footer a { color: var(--rg-light); }
