/* ============================================================
   Mireles Effect — design tokens + components
   Palette aligned to the brand's existing gold/purple system.
   Rule: gold NEVER carries text on a light surface.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.79rem + 0.2vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.92rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem);
  --text-hero: clamp(2.5rem, 1rem + 4.6vw, 5.25rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem; --space-40: 10rem;

  /* Section rhythm — luxury vertical space */
  --band-pad: clamp(5rem, 11vw, 12.5rem);
  --band-pad-tight: clamp(3.5rem, 7vw, 7rem);

  /* Brand colour */
  --gold: #e7b03b;
  --gold-deep: #b7842f;
  --purple: #8a46b4;
  --purple-ink: #5b3a82;
  --amethyst: #c17ade;
  --tint: #ede4f5;
  --ink: #0b0a0c;
  --cream: #f7f5f3;
  --silver: #c9c7c6;

  --plum-deep: #140c1c;
  --plum: #1e1228;
  --plum-2: #2a1836;

  /* Semantic */
  --color-bg: var(--cream);
  --color-text: var(--ink);
  --color-text-muted: #5a5460;
  --text-on-dark: #f4f0ee;
  --text-on-dark-muted: #b9aec4;
  --hair-light: rgba(11, 10, 12, 0.16);
  --hair-dark: rgba(247, 245, 243, 0.18);
  --hair-gold: rgba(231, 176, 59, 0.5);

  /* Motion — slow and expensive */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-quick: 380ms var(--ease);
  --t-slow: 900ms var(--ease);

  /* Widths */
  --w-narrow: 620px;
  --w-mid: 900px;
  --w-wide: 1220px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

/* ---------- Typography primitives ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.display em { font-style: italic; }
h1.display { font-size: var(--text-3xl); }
h2.display { font-size: var(--text-2xl); }
h3.display { font-size: var(--text-xl); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-ink);
  display: block;
  margin-bottom: var(--space-6);
}
.band--dark .eyebrow, .band--deep .eyebrow, .hero .eyebrow, .footer .eyebrow, .leadband .eyebrow, .stickybar .eyebrow { color: var(--gold); }

.lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  max-width: 34ch;
  color: var(--color-text);
}
.prose p { max-width: 62ch; margin-bottom: var(--space-5); line-height: 1.8; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--color-text-muted); }
.band--dark .muted, .band--deep .muted, .hero .muted, .footer .muted, .leadband .muted, .stickybar .muted { color: var(--text-on-dark-muted); }
.small { font-size: var(--text-sm); line-height: 1.7; }
.tiny { font-size: var(--text-xs); line-height: 1.7; letter-spacing: 0.04em; }

.pull {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1;
  color: var(--purple-ink);
  opacity: 0.55;
}
.band--dark .num { color: var(--gold); opacity: 0.7; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: var(--w-mid); }
.wrap--narrow { max-width: var(--w-narrow); }

.band { padding-block: var(--band-pad); position: relative; }
.band--tight { padding-block: var(--band-pad-tight); }
.band--light { background: var(--cream); color: var(--ink); }
.band--tint { background: var(--tint); color: var(--ink); }
.band--dark { background: var(--plum); color: var(--text-on-dark); }
.band--deep { background: var(--plum-deep); color: var(--text-on-dark); }
.band--dark .lede, .band--deep .lede { color: var(--text-on-dark); }

.rule { height: 1px; background: var(--hair-light); border: 0; }
.band--dark .rule, .band--deep .rule, .footer .rule { background: var(--hair-dark); }
.rule--gold { background: var(--hair-gold); }

.grid-2 { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .grid-2--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .grid-2--wide-right { grid-template-columns: 0.8fr 1.2fr; }
  .grid-2--sticky > .col-sticky { position: sticky; top: 7.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0.9rem 1.85rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--t-quick), color var(--t-quick),
    border-color var(--t-quick), transform var(--t-quick);
}
.btn:active { transform: translateY(1px); }

/* On dark surfaces: gold hairline → solid gold on hover */
.btn--gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--gold:hover { background: var(--gold); color: var(--plum-deep); }
/* Gold never carries text on a light surface — purple does */
.band--light .btn--gold, .band--tint .btn--gold, .paper .btn--gold { color: var(--purple-ink); border-color: var(--purple-ink); }
.band--light .btn--gold:hover, .band--tint .btn--gold:hover, .paper .btn--gold:hover { background: var(--purple-ink); color: var(--cream); }
.btn--gold-solid { background: var(--gold); color: var(--plum-deep); border-color: var(--gold); }
.btn--gold-solid:hover { background: transparent; color: var(--gold); }

/* On light surfaces: purple carries the weight (gold never carries text on light) */
.btn--ink { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.btn--ink:hover { background: var(--purple-ink); border-color: var(--purple-ink); }
.btn--outline { border-color: var(--purple-ink); color: var(--purple-ink); }
.btn--outline:hover { background: var(--purple-ink); color: var(--cream); }
.btn--block { width: 100%; }

/* Text link with animated gold / purple hairline */
.link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  color: var(--purple-ink);
}
.link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.band--dark .link, .band--deep .link, .footer .link, .hero .link, .leadband .link { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--plum-deep);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-slow), padding var(--t-slow), background-color var(--t-slow);
}
.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  padding-block: clamp(0.75rem, 1.4vw, 1.25rem);
}
.header--scrolled { border-bottom-color: var(--hair-gold); }
.header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.header__logo img { height: clamp(34px, 3.4vw, 46px); width: auto; }
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(0.85rem, 1.6vw, 1.75rem); list-style: none; }
.nav__link {
  position: relative;
  text-decoration: none;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding-block: 0.35rem;
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--gold); }
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.header__cta { display: none; }
.header__toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center;
  gap: 6px; width: 48px; height: 48px; align-items: flex-end; color: var(--gold);
}
.header__toggle span { display: block; height: 1px; width: 26px; background: currentColor; transition: transform var(--t-quick), opacity var(--t-quick); }
.header__toggle span:nth-child(2) { width: 18px; }

/* Seven primary links plus the CTA need room — the drawer holds until 1200px */
@media (min-width: 1200px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; margin-left: var(--space-4); white-space: nowrap; padding-inline: clamp(0.9rem, 1.1vw, 1.25rem); }
  .nav__list { gap: clamp(0.7rem, 1vw, 1rem); }
  .nav__link { letter-spacing: 0.08em; }
  .header__toggle { display: none; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--plum-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-20) var(--gutter) var(--space-12);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}
.menu[data-open='true'] { opacity: 1; visibility: visible; }
.menu__close { position: absolute; top: 1.1rem; right: var(--gutter); width: 48px; height: 48px; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.menu__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-5); }
.menu__link {
  font-family: var(--font-display); font-size: clamp(1.75rem, 8vw, 2.5rem);
  color: var(--text-on-dark); text-decoration: none; letter-spacing: -0.01em;
}
.menu__link[aria-current='page'] { color: var(--gold); }
.menu__foot { margin-top: var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- Hero ---------- */
.hero { background: var(--plum-deep); color: var(--text-on-dark); position: relative; overflow: hidden; }
.hero__grid { display: grid; }
.hero__copy {
  padding-block: clamp(3.5rem, 8vw, 8rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--space-8); }
.hero__lede { max-width: 40ch; color: var(--text-on-dark); font-size: var(--text-lg); line-height: 1.6; }
.hero__actions { margin-top: var(--space-10); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 28, 0.85), rgba(20, 12, 28, 0.05) 55%);
}
.hero__scrim { display: none; }
.hero__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--space-6);
  z-index: 2; display: flex; align-items: center; gap: var(--space-4);
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.hero__caption::before { content: ''; height: 1px; width: clamp(24px, 6vw, 64px); background: var(--hair-gold); flex: 0 0 auto; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; min-height: min(92vh, 900px); }
  .hero__copy { padding-right: clamp(2rem, 5vw, 5rem); }
  .hero__media { border-left: 1px solid var(--hair-gold); }
  .hero__media img { object-position: 50% 18%; }
  .hero__media::after {
    background: linear-gradient(to right, rgba(20, 12, 28, 0.72), rgba(20, 12, 28, 0.12) 45%, rgba(20, 12, 28, 0.35));
  }
  .hero__caption { left: auto; right: var(--space-8); width: max-content; }
}

/* ---------- Form notes ---------- */
.optin__note { margin-top: var(--space-3); font-size: var(--text-xs); letter-spacing: 0.04em; }

/* Honeypot — visually removed, still reachable to bots, never to users */
.optin__hp input, .optin__hp label { width: 1px !important; height: 1px; min-height: 0; padding: 0; border: 0; }
.optin__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Loading state */
.btn[aria-busy='true'] { pointer-events: none; opacity: 0.72; }
.btn[aria-busy='true']::after {
  content: ''; display: inline-block; width: 0.6em; height: 0.6em; margin-left: 0.6em;
  border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: baseline; animation: spin 0.8s linear infinite;
}
.btn:disabled { cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy='true']::after { animation: none; border-right-color: currentColor; opacity: 0.5; }
}
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--purple-ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.band--dark .linkbtn, .band--deep .linkbtn, .leadband .linkbtn, .footer .linkbtn { color: var(--gold); }

/* ---------- Editorial figure ---------- */
.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; transition: transform 1.4s var(--ease); }
a.figure:hover img, .figure--hover:hover img { transform: scale(1.035); }
.figure__cap {
  margin-top: var(--space-4); display: flex; gap: var(--space-4); align-items: baseline;
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.band--dark .figure__cap, .band--deep .figure__cap { color: var(--text-on-dark-muted); }
.figure__cap::before { content: ''; height: 1px; width: 40px; background: var(--hair-gold); flex: 0 0 auto; transform: translateY(-4px); }

.bleed { width: 100%; }
.bleed img { width: 100%; max-height: 72vh; object-fit: cover; }

/* ---------- Lists / index rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--hair-light); }
.band--dark .rows, .band--deep .rows { border-top-color: var(--hair-dark); }
.row {
  border-bottom: 1px solid var(--hair-light);
  display: grid; gap: var(--space-4) var(--space-8); align-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  transition: background-color var(--t-slow);
}
.band--dark .row, .band--deep .row { border-bottom-color: var(--hair-dark); }
.row__num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--purple-ink); letter-spacing: 0.05em; }
.band--dark .row__num, .band--deep .row__num { color: var(--gold); }
.row__title { font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1.3vw, 2.125rem); line-height: 1.12; letter-spacing: -0.01em; }
.row__body { color: var(--color-text-muted); max-width: 58ch; }
.band--dark .row__body, .band--deep .row__body { color: var(--text-on-dark-muted); }
.row__meta { font-size: var(--text-sm); letter-spacing: 0.02em; }
@media (min-width: 860px) {
  .row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.05fr); }
  .row--offer { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 0.95fr) auto; align-items: center; }
  .row--course:hover { background: rgba(138, 70, 180, 0.05); }
}

/* Offer price */
.price { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem); letter-spacing: -0.01em; }
.price small { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-top: 0.35rem; color: var(--color-text-muted); }
.band--dark .price small { color: var(--text-on-dark-muted); }

/* ---------- Areas (four life areas) ---------- */
.areas { display: grid; gap: 1px; background: var(--hair-dark); border-block: 1px solid var(--hair-dark); }
.area { background: var(--plum); padding: clamp(2rem, 3.4vw, 3.25rem) clamp(1.5rem, 2.6vw, 2.5rem); }
.area h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-4); }
.area p { color: var(--text-on-dark-muted); font-size: var(--text-base); }
.area__i { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--space-6); }
@media (min-width: 700px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Weekly cadence timeline ---------- */
.cadence { list-style: none; border-top: 1px solid var(--hair-dark); }
.cadence li {
  border-bottom: 1px solid var(--hair-dark);
  display: grid; gap: var(--space-3) var(--space-8);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.cadence__day { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-top: 0.4rem; }
.cadence__title { font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1.14; }
.cadence__body { color: var(--text-on-dark-muted); max-width: 56ch; }
@media (min-width: 860px) { .cadence li { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }

/* ---------- Video feature ---------- */
.video { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.video__frame {
  position: relative; border: 1px solid var(--hair-gold); background: var(--plum-deep);
  aspect-ratio: 9 / 16; width: 100%; max-width: 380px; margin-inline: auto;
  max-height: 70vh; overflow: hidden;
}
.video__frame video { width: 100%; height: 100%; object-fit: cover; }
.video__controls { display: flex; gap: var(--space-3); margin-top: var(--space-5); justify-content: center; }
.video__btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 1.1rem;
  border: 1px solid var(--hair-gold); color: var(--gold);
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
}
.video__btn:hover { background: var(--gold); color: var(--plum-deep); border-color: var(--gold); }
.video__cap { margin-top: var(--space-5); text-align: center; }
@media (min-width: 900px) {
  .video { grid-template-columns: 1.05fr 0.95fr; }
  .video__frame { max-width: 420px; margin-inline: 0 auto; }
  .video__cap, .video__controls { text-align: left; justify-content: flex-start; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.quote { border-top: 1px solid var(--hair-dark); padding-top: var(--space-6); }
.band--light .quote, .band--tint .quote { border-top-color: var(--hair-light); }
.quote blockquote { font-size: var(--text-base); line-height: 1.8; color: var(--text-on-dark-muted); }
.band--light .quote blockquote, .band--tint .quote blockquote { color: var(--color-text-muted); }
.quote blockquote p + p { margin-top: var(--space-4); }
.quote figcaption { margin-top: var(--space-5); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.band--light .quote figcaption, .band--tint .quote figcaption { color: var(--purple-ink); }
@media (min-width: 900px) { .quotes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Callout ---------- */
.callout { background: var(--tint); color: var(--ink); padding: clamp(2rem, 4vw, 3.5rem); border-top: 2px solid var(--purple); }
.callout .pull { max-width: 30ch; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 1px; background: var(--hair-light); border-block: 1px solid var(--hair-light); }
.band--dark .steps, .band--deep .steps { background: var(--hair-dark); border-color: var(--hair-dark); }
.steps li { background: var(--cream); padding: clamp(1.75rem, 3vw, 2.75rem); }
.band--dark .steps li, .band--deep .steps li { background: var(--plum); }
.band--tint .steps li { background: var(--tint); }
.steps h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-block: var(--space-4) var(--space-3); }
.steps p { color: var(--color-text-muted); }
.band--dark .steps p, .band--deep .steps p { color: var(--text-on-dark-muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hair-light); }
.band--dark .faq, .band--deep .faq { border-top-color: var(--hair-dark); }
.faq details { border-bottom: 1px solid var(--hair-light); }
.band--dark .faq details, .band--deep .faq details { border-bottom-color: var(--hair-dark); }
.faq summary {
  cursor: pointer; list-style: none; padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  display: flex; gap: var(--space-6); align-items: baseline; justify-content: space-between;
  font-family: var(--font-display); font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); font-size: var(--text-base); color: var(--purple-ink); flex: 0 0 auto; transition: transform var(--t-slow); }
.band--dark .faq summary::after, .band--deep .faq summary::after { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--space-6); }
.faq details > div p { max-width: 62ch; color: var(--color-text-muted); }
.band--dark .faq details > div p, .band--deep .faq details > div p { color: var(--text-on-dark-muted); }

/* ---------- Inquiry form ---------- */
.form { display: grid; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }
.band--dark .field label, .band--deep .field label { color: var(--text-on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.85rem 1rem; border-radius: 0;
  border: 1px solid var(--hair-light); background: transparent; color: inherit;
}
.band--dark .field input, .band--dark .field select, .band--dark .field textarea,
.band--deep .field input, .band--deep .field select, .band--deep .field textarea { border-color: var(--hair-dark); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple-ink); }
.band--dark .field input:focus, .band--dark .field select:focus, .band--dark .field textarea:focus { border-color: var(--gold); }
.field--2 { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .field--2 { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; }
.form legend { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--hair-light); width: 100%; }
.form__success, .form__error { display: none; }
.form-shell[data-state='done'] .form { display: none; }
.form-shell[data-state='done'] .form__success { display: block; animation: rise var(--t-slow) both; }
.form-shell[data-state='error'] .form { display: none; }
.form-shell[data-state='error'] .form__error { display: block; animation: rise var(--t-slow) both; }
.form-shell[data-state='done'] .form__success, .form-shell[data-state='error'] .form__error { border-top: 1px solid var(--hair-gold); padding-top: var(--space-6); }

/* ---------- Opt-in band (site-wide, above footer) ---------- */
.leadband { background: var(--plum); color: var(--text-on-dark); border-top: 1px solid var(--hair-gold); }
.leadband__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .leadband__grid { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--plum-deep); color: var(--text-on-dark); padding-block: var(--band-pad-tight) var(--space-10); }
.footer__top { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.footer__logo img { height: 96px; width: auto; }
.footer__cols { display: grid; gap: var(--space-10); }
.footer h2, .footer h3 { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-5); font-family: var(--font-body); font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: var(--space-3); }
.footer a { text-decoration: none; font-size: var(--text-sm); color: var(--text-on-dark); }
/* Bigger finger target for footer links (email, socials) without shifting layout:
   padding grows the tappable box, the matching negative margin cancels the space. */
.footer ul a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.footer a:hover { color: var(--gold); }
.footer__legal { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--hair-dark); display: grid; gap: var(--space-4); }
.footer__legal p { font-size: var(--text-xs); line-height: 1.8; color: var(--text-on-dark-muted); max-width: 74ch; }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 0.6fr 2fr; } }

/* ---------- Mobile sticky bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--plum-deep); border-top: 1px solid var(--hair-gold);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--space-3);
  transform: translateY(110%); transition: transform var(--t-slow);
}
.stickybar[data-show='true'] { transform: translateY(0); }
.stickybar__text { flex: 1 1 auto; min-width: 0; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-dark-muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stickybar .btn { min-height: 44px; padding: 0.5rem 0.85rem; flex: 0 0 auto; font-size: 0.6875rem; letter-spacing: 0.1em; white-space: nowrap; }
.stickybar__close { width: 34px; height: 40px; color: var(--text-on-dark-muted); font-size: 1.1rem; flex: 0 0 auto; }
.stickybar__close:hover { color: var(--gold); }
@media (min-width: 1200px) { .stickybar { display: none; } }
body.has-stickybar { padding-bottom: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.stack > * + * { margin-top: var(--space-6); }
.stack-lg > * + * { margin-top: var(--space-10); }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-12 { margin-bottom: var(--space-12); }
.max-40 { max-width: 44ch; }
.tag { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple-ink); }
.band--dark .tag, .band--deep .tag, .hero .tag, .leadband .tag { color: var(--gold); }
.checklist { list-style: none; display: grid; gap: var(--space-4); }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-3); align-items: baseline; }
.checklist li::before { content: '—'; color: var(--gold); }
.band--light .checklist li::before, .band--tint .checklist li::before { color: var(--purple-ink); }

/* Anchor offsets clear the sticky header */
:target, #inquiry, #lead-magnet, #apply { scroll-margin-top: clamp(88px, 12vh, 120px); }

/* ============================================================
   Identity Audit — scale controls, progress, results
   Gold is hairline / dark-surface text only. Purple-ink carries
   every selected or interactive state on light surfaces.
   ============================================================ */

/* Scale explainer */
.scalebox {
  border: 1px solid var(--hair-light);
  border-left: 2px solid var(--purple);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  max-width: 46ch;
}
.scalebox p { margin-top: var(--space-3); }

/* Progress */
.progress { display: flex; align-items: center; gap: var(--space-5); }
.progress__label {
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-ink); white-space: nowrap; flex: 0 0 auto;
}
.progress__track { position: relative; flex: 1 1 auto; height: 1px; background: var(--hair-light); }
.progress__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--purple-ink); transition: width var(--t-slow);
}
.progress--sticky { position: sticky; top: 0; z-index: 60; background: var(--cream); padding-block: var(--space-5); }

/* Domain groups */
.audit__form { margin-top: var(--space-12); }
.domain { border: 0; margin-top: clamp(3rem, 6vw, 5rem); }
.domain:first-of-type { margin-top: var(--space-10); }
.domain__legend {
  width: 100%; padding-top: var(--space-6); border-top: 1px solid var(--hair-light);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  align-items: baseline; justify-content: space-between;
}
.domain__name {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.1;
}
.domain__count { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-ink); }

/* One statement row */
.statement {
  border-top: 1px solid var(--hair-light);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  display: grid; gap: var(--space-6);
  transition: background-color var(--t-slow), box-shadow var(--t-slow);
}
.statement:first-of-type { border-top: 0; }
.statement__text {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); line-height: 1.26; max-width: 34ch;
}
.statement.is-missing {
  background: rgba(138, 70, 180, 0.06);
  box-shadow: inset 3px 0 0 0 var(--purple);
  padding-inline: var(--space-5);
}
@media (min-width: 880px) {
  .statement { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-10); }
}

/* The 1–5 control */
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); width: 100%; max-width: 360px; }
.scale__opt { position: relative; display: block; }
.scale__opt input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; appearance: none;
}
.scale__opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; border: 1px solid var(--hair-light);
  font-family: var(--font-display); font-size: var(--text-lg); line-height: 1;
  color: var(--color-text); background: transparent;
  transition: background-color var(--t-quick), border-color var(--t-quick), color var(--t-quick), box-shadow var(--t-quick);
}
.scale__opt:hover span { border-color: var(--gold); }
.scale__opt input:checked + span {
  background: var(--purple-ink); border-color: var(--purple-ink); color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(247, 245, 243, 0.18), 0 0 0 1px var(--hair-gold);
}
.scale__opt input:focus-visible + span { outline: 2px solid var(--purple-ink); outline-offset: 3px; }
.scale__ends {
  display: flex; justify-content: space-between; gap: var(--space-4);
  max-width: 360px; margin-top: var(--space-3);
  font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--color-text-muted);
}

/* Validation */
.audit__error {
  display: none; margin-top: var(--space-10);
  border-left: 2px solid var(--purple); background: rgba(138, 70, 180, 0.06);
  padding: var(--space-5) var(--space-6); color: var(--purple-ink);
  font-size: var(--text-sm); letter-spacing: 0.02em;
  animation: rise var(--t-slow) both;
}
.audit__error[data-show='true'] { display: block; }
.audit__actions { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }

/* Sticky mobile action bar (audit variant) */
.stickybar--audit { transform: translateY(0); }
.stickybar--audit .stickybar__text { color: var(--gold); }
.stickybar--audit[data-show='false'] { transform: translateY(110%); }

/* Results */
.results[hidden] { display: none; }
.total {
  border: 1px solid var(--hair-gold); padding: clamp(1.75rem, 4vw, 3.25rem);
  text-align: center; max-width: 520px; margin-inline: auto;
}
.total__num { font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); line-height: 1; color: var(--gold); }
.total__of { display: block; margin-top: var(--space-4); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-dark-muted); }

.domains { display: grid; gap: 1px; background: var(--hair-dark); border-block: 1px solid var(--hair-dark); }
@media (min-width: 760px) { .domains { grid-template-columns: 1fr 1fr; } }
.dcard { background: var(--plum); padding: clamp(1.75rem, 3.2vw, 2.75rem); }
.dcard__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.dcard__name { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); letter-spacing: -0.01em; }
.dcard__score { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold); white-space: nowrap; }
.dcard__score small { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-dark-muted); margin-left: 0.4rem; }
.dcard__badge { display: inline-block; margin-top: var(--space-4); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.dcard__badge:empty { display: none; }
.dcard__body { color: var(--text-on-dark-muted); font-size: var(--text-base); margin-top: var(--space-5); max-width: 46ch; }
.meter { position: relative; height: 2px; background: rgba(247, 245, 243, 0.14); margin-top: var(--space-6); }
.meter__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width 1.5s var(--ease); }
.meter__ticks { position: absolute; inset: -4px 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.meter__ticks span { border-right: 1px solid rgba(247, 245, 243, 0.14); }
.meter__ticks span:last-child { border-right: 0; }
.dcard--strong { box-shadow: inset 0 2px 0 0 var(--gold); }
.dcard--low { box-shadow: inset 0 2px 0 0 var(--amethyst); }
.dcard--low .dcard__badge { color: var(--amethyst); }
@media (prefers-reduced-motion: reduce) {
  .meter__fill, .progress__fill { transition: none; }
}

.readout { border-top: 1px solid var(--hair-gold); padding-top: var(--space-8); display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .readout { grid-template-columns: 1fr 1fr; } }
.readout dt { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.readout dd { font-family: var(--font-display); font-size: var(--text-xl); margin-top: var(--space-3); }

/* Keep the audit action bar from covering the submit row on small screens */
@media (max-width: 1199px) {
  body:has(.stickybar--audit[data-show='true']) { padding-bottom: 5.5rem; }
}

/* GoHighLevel embedded form (free Identity Audit capture).
   The form lives in a cross-origin iframe, so its internals cannot be
   styled from here. Style the surrounding frame only. */
.ghl-form { max-width: 520px; }
.ghl-form iframe {
  width: 100%;
  min-height: 220px;
  border: none;
  border-radius: 10px;
  display: block;
  background: transparent;
  color-scheme: light;
}
