/* EdgeRx Women HRT funnel — builds on tokens.css (Brand Book v1.0, Rose line) */

.theme-womens .on-dark h1 em,
.theme-womens .on-dark h2 em { color: var(--rose); }
.theme-womens .on-dark .eyebrow { color: var(--rose); }
.theme-womens .on-dark .btn-primary { background: var(--rose); color: var(--carbon); }
.theme-womens .on-dark .btn-primary:hover { background: var(--paper); }

body { overflow-x: hidden; }
a { color: inherit; }
.btn-lg { padding: 1.05rem 1.75rem; font-size: var(--text-base); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* Top bar + nav */
.topbar {
  background: var(--carbon); color: var(--paper);
  display: flex; justify-content: center; gap: var(--s-5);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em;
  padding: .55rem var(--gutter); text-align: center; flex-wrap: wrap;
}
.topbar span + span::before { content: '·'; color: var(--rose); margin-right: var(--s-5); }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244,242,236,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(47,43,44,.07); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo img { width: 132px; height: auto; }
.nav__right { display: flex; align-items: center; gap: var(--s-4); }
.nav__login { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--slate); }
.nav__login:hover { color: var(--carbon); }

/* Hero */
.hero { padding-block: clamp(1.5rem, 4vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 4rem); grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero h1 { margin: var(--s-5) 0 var(--s-5); }
.hero .lede { margin-bottom: var(--s-6); }
.checks { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.checks li { display: flex; gap: var(--s-3); align-items: center; font-weight: 500; }
.checks svg { color: var(--deep-rose); flex: none; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin-bottom: var(--s-6); }
.price-line__from { font-size: var(--text-sm); color: var(--slate); }
.price-line__num { font-family: var(--font-display); font-variation-settings: var(--display-vs); font-weight: 600; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.price-line__per { font-weight: 600; }
.price-line__note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--slate); margin-left: .5rem; }
.hero__cta { display: grid; gap: var(--s-3); justify-items: start; margin-bottom: var(--s-5); }
.hero__sub { color: var(--slate); }
.hero__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--rose-tint); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__badge {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  background: var(--paper); border-radius: 999px; padding: .55rem 1rem;
  font-size: var(--text-sm); font-weight: 500; box-shadow: 0 6px 24px rgba(47,43,44,.12);
}
.hero__badge .mono { color: var(--deep-rose); text-transform: uppercase; margin-right: .25rem; }

/* Marquee */
.strip { background: var(--rose-tint); border-block: 1px solid rgba(126,70,78,.12); overflow: hidden; padding-block: .95rem; }
.strip__track { display: flex; gap: var(--s-10); width: max-content; animation: slide 36s linear infinite; }
.strip__track span { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--deep-rose); display: inline-flex; gap: var(--s-10); white-space: nowrap; }
.strip__track span::after { content: '·'; color: var(--rose); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Symptoms */
.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.sym {
  text-align: left; background: var(--white); border: 1px solid rgba(47,43,44,.1); border-radius: var(--radius);
  padding: var(--s-5); font-weight: 600; font-size: var(--text-base); line-height: 1.3; cursor: pointer;
  display: grid; gap: var(--s-3); min-height: 112px; align-content: space-between;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sym:hover { border-color: var(--rose); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(47,43,44,.06); }
.sym__n { color: var(--slate); font-weight: 400; }
.sym[aria-pressed="true"] { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }
.sym[aria-pressed="true"] .sym__n { color: var(--rose); }
.sym-cta { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-8); flex-wrap: wrap; }
.sym-count { color: var(--slate); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split h2 { margin: var(--s-5) 0; }
.split .lede { margin-bottom: var(--s-5); }
.split .body, .split .body-dim { margin-bottom: var(--s-8); max-width: 54ch; }
.body-dim { color: rgba(244,242,236,.72); }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* How */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.how__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.how__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-6); background: var(--white); border: 1px solid rgba(47,43,44,.09); border-radius: var(--radius); }
.steps__n { width: 36px; height: 36px; border-radius: 50%; background: var(--rose-tint); color: var(--deep-rose); display: grid; place-items: center; }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--slate); font-size: var(--text-sm); line-height: 1.6; }

/* Plans */
.bill-toggle { display: inline-flex; background: var(--white); border: 1px solid rgba(47,43,44,.12); border-radius: 999px; padding: 4px; margin-bottom: var(--s-6); }
.bill-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .6rem 1.1rem; font-weight: 600; font-size: var(--text-sm); cursor: pointer; display: inline-flex; gap: .5rem; align-items: center; transition: background .2s var(--ease), color .2s var(--ease); }
.bill-toggle button .mono { font-weight: 400; color: var(--deep-rose); }
.bill-toggle button[aria-checked="true"] { background: var(--carbon); color: var(--paper); }
.bill-toggle button[aria-checked="true"] .mono { color: var(--rose); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
.plan { background: var(--white); border: 1px solid rgba(47,43,44,.1); border-radius: var(--radius); padding: var(--s-8); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(47,43,44,.08); }
.plan--feature { border: 1.5px solid var(--carbon); }
.plan__tag { text-transform: uppercase; letter-spacing: .14em; color: var(--deep-rose); margin-bottom: var(--s-3); }
.plan h3 { font-size: var(--text-xl); font-family: var(--font-display); font-variation-settings: var(--display-vs); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: var(--s-5); }
.plan__price { font-family: var(--font-display); font-variation-settings: var(--display-vs); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; }
.plan__per { font-family: var(--font-text); font-size: var(--text-base); font-weight: 600; margin-left: 2px; }
.plan__bill { color: var(--slate); margin: var(--s-2) 0 var(--s-6); }
.plan ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-bottom: var(--s-8); flex: 1; }
.plan li { padding-left: 1.6rem; position: relative; font-size: var(--text-sm); }
.plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--deep-rose); border-bottom: 2px solid var(--deep-rose); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.addon { margin-bottom: var(--s-4); font-size: var(--text-sm); }
.disclaimer a { color: inherit; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq details { border-bottom: 1px solid rgba(47,43,44,.14); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-5) 0; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.25rem; line-height: 1; color: var(--deep-rose); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding-bottom: var(--s-5); max-width: 62ch; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Close */
.close__in { text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.close__mark { width: 64px; height: auto; }
.close .lede { margin-inline: auto; }

/* Footer */
.foot { background: var(--carbon); color: var(--paper); padding: var(--s-12) 0 calc(var(--s-12) + 72px); border-top: 1px solid rgba(244,242,236,.08); }
.foot img { width: 128px; height: auto; margin-bottom: var(--s-6); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-bottom: var(--s-6); font-size: var(--text-sm); }
.foot__links a { text-decoration: none; color: rgba(244,242,236,.8); }
.foot__links a:hover { color: var(--paper); text-decoration: underline; }
.foot .disclaimer { color: rgba(244,242,236,.55); max-width: 80ch; margin-bottom: var(--s-3); }

/* Sticky dock (mobile) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(244,242,236,.96); border-top: 1px solid rgba(47,43,44,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.dock.show { transform: none; }
.dock__p { font-size: var(--text-sm); }
.dock__p .mono { color: var(--slate); }

/* ---------- Quiz ---------- */
.quiz { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.quiz[hidden] { display: none; }
.quiz__bar { display: grid; grid-template-columns: 40px 1fr auto 40px; align-items: center; gap: var(--s-3); padding: .9rem var(--gutter); max-width: 640px; width: 100%; margin: 0 auto; }
.quiz__bar img { width: 104px; height: auto; justify-self: center; }
.quiz__back, .quiz__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(47,43,44,.14); background: transparent; cursor: pointer; font-size: 1.15rem; line-height: 1; display: grid; place-items: center; }
.quiz__back:hover, .quiz__close:hover { border-color: var(--carbon); }
.quiz__back[disabled] { visibility: hidden; }
.quiz__count { color: var(--slate); }
.quiz__progress { height: 4px; background: rgba(47,43,44,.1); max-width: 640px; width: calc(100% - 2 * var(--gutter)); margin: 0 auto; border-radius: 4px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 33%; background: var(--carbon); border-radius: 4px; transition: width .4s var(--ease); }
.quiz__body { max-width: 560px; width: 100%; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) var(--gutter) var(--s-16); }
.step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.q { font-family: var(--font-text); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.q-sub { color: var(--slate); margin-bottom: var(--s-6); }
.q-foot { color: var(--slate); text-align: center; margin-top: var(--s-5); line-height: 1.6; }
.q-foot a { color: inherit; }
.opts { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: .9rem 1.1rem; background: var(--white);
  border: 1.5px solid rgba(47,43,44,.14); border-radius: 12px; font-weight: 600; line-height: 1.3;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.opt span::after { content: ''; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(47,43,44,.25); transition: all .15s var(--ease); }
.opt input[type="radio"] + span::after { border-radius: 50%; }
.opt:hover span { border-color: var(--carbon); }
.opt input:checked + span { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }
.opt input:checked + span::after { border-color: var(--rose); background: var(--rose); box-shadow: inset 0 0 0 3px var(--carbon); }
.opt input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.fields { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.field { display: grid; gap: var(--s-2); font-size: var(--text-sm); font-weight: 600; }
.field input, .field select {
  height: 54px; padding: 0 1rem; border-radius: 12px; border: 1.5px solid rgba(47,43,44,.18);
  background: var(--white); font-size: 1rem; font-weight: 500; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field 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' stroke='%232F2B2C' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--carbon); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--deep-rose); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); font-size: var(--text-sm); color: var(--slate); cursor: pointer; align-items: start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--carbon); }
.consent[data-invalid] span { color: var(--deep-rose); }
.err { color: var(--deep-rose); font-size: var(--text-sm); margin-bottom: var(--s-4); font-weight: 500; }

/* Result */
.result .eyebrow { margin-bottom: var(--s-3); }
.rcard { background: var(--white); border: 1.5px solid var(--carbon); border-radius: var(--radius); padding: var(--s-6); margin: var(--s-5) 0 var(--s-5); }
.rcard__tag { text-transform: uppercase; letter-spacing: .14em; color: var(--deep-rose); margin-bottom: var(--s-2); }
.rcard h3 { font-family: var(--font-display); font-variation-settings: var(--display-vs); font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: var(--s-4); }
.rcard__price { font-family: var(--font-display); font-variation-settings: var(--display-vs); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.rcard__price span + span { font-family: var(--font-text); font-size: 1rem; }
.rcard__bill { color: var(--slate); margin: var(--s-2) 0 var(--s-4); }
.bill-toggle--sm { margin-bottom: var(--s-5); }
.bill-toggle--sm button { padding: .45rem .95rem; font-size: var(--text-xs); }
.rcard__why { list-style: none; padding: var(--s-4) 0 0; border-top: 1px solid rgba(47,43,44,.1); display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.rcard__why li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); font-size: var(--text-sm); }
.rcard__why li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--rose-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%237E464E' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center no-repeat; margin-top: 1px; }
.rcard__addon { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); padding: var(--s-4); background: var(--rose-tint); border-radius: 10px; font-size: var(--text-sm); cursor: pointer; margin-bottom: var(--s-4); }
.rcard__addon[hidden] { display: none; }
.rcard__addon input { width: 20px; height: 20px; accent-color: var(--carbon); }
.rcard__note { font-size: var(--text-sm); color: var(--slate); margin-bottom: var(--s-4); }
.rcard .btn-block { margin: var(--s-2) 0 var(--s-3); }
.rcard__rx { color: var(--slate); text-align: center; margin-bottom: var(--s-5); }
.rcard__break { color: var(--deep-rose); margin: calc(-1 * var(--s-2)) 0 var(--s-4); }
.rcard__break[hidden] { display: none; }
.rcard__switch { background: none; border: 0; padding: 0; font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--deep-rose); }
.next { background: var(--rose-tint); border-radius: var(--radius); padding: var(--s-6); margin: var(--s-6) 0; }
.next h3 { margin-bottom: var(--s-4); }
.next ol { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.next li { display: flex; gap: var(--s-3); align-items: center; font-size: var(--text-sm); font-weight: 500; }
.next li .mono { width: 26px; height: 26px; border-radius: 50%; background: var(--carbon); color: var(--paper); display: grid; place-items: center; flex: none; }

body.quiz-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .how, .faq-wrap { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 5/4; }
  .split--rev .split__media { order: -1; }
  .sym-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .dock { display: flex; }
}
@media (max-width: 520px) {
  .topbar span:nth-child(3) { display: none; }
  .nav__right { gap: var(--s-3); }
  .nav__right .btn { padding: .55rem .9rem; }
  .hero { padding-top: var(--s-4); }
  .hero__grid { gap: var(--s-5); }
  .hero__media { aspect-ratio: 16/11 !important; }
  .hero__media img { object-position: 50% 28%; }
  .hero h1 { margin: var(--s-3) 0 var(--s-3); }
  .hero .lede { font-size: var(--text-base); margin-bottom: var(--s-4); }
  .checks { gap: var(--s-2); margin-bottom: var(--s-4); font-size: var(--text-sm); }
  .price-line { margin-bottom: var(--s-4); }
  .topbar { font-size: .6875rem; gap: var(--s-3); }
  .topbar span + span::before { margin-right: var(--s-3); }
  .nav__logo img { width: 112px; }
  .hero__media { aspect-ratio: 1/1; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.2rem); }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__cta { justify-items: stretch; }
  .hero__sub { text-align: center; }
  .price-line__note { margin-left: 0; width: 100%; }
  .sym { min-height: 96px; padding: var(--s-4); font-size: var(--text-sm); }
  .plan { padding: var(--s-6); }
  .bill-toggle button { padding: .55rem .85rem; }
}
