/* BIA guides (lead-magnet opt-in pages). Mobile-first.
 * Tokens, type, .cta, .eyebrow, .field and footer mirror bia-vsl/src/styles.css
 * so the opt-in and the VSL read as one funnel. Keep them in sync by hand. */

:root {
  --ink: #241a36;        /* deep plum-ink, primary text */
  --ink-soft: #5a4f70;   /* secondary text */
  --paper: #fbfaf7;      /* warm off-white background */
  --mist: #f1ebfb;       /* lavender tint for alternating sections */
  --lavender: #aa77ff;   /* brand hero */
  --lavender-deep: #7a45d8;
  --line: #e4ddf0;
  --max: 720px;
  --wide: 960px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
em { font-style: italic; }

/* The "without..." clause drops to a smaller purple sub-line inside the h1 */
.h1-sub {
  display: block;
  margin-top: 0.3em;
  font-size: max(0.95rem, 0.58em);
  font-weight: 700;
  color: var(--lavender-deep);
}
/* Emphasized phrase inside the h1: ink text, brand-purple underline */
.h1-ul { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nowrap { white-space: nowrap; }
.h1-sub-br { display: none; }
@media (max-width: 640px) {
  .h1-sub-br { display: inline; }
}

/* Logo row + hero sit on pure white: the cover mockup is an opaque white
   rectangle, so any tinted ground shows its edge. */
.logo-row { display: flex; justify-content: center; padding: 22px 20px 0; background: #fff; }
.logo { width: 48px; height: auto; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin: 0 0 14px;
}
.subhead {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 auto 28px;
  max-width: 34em;
}

.hero {
  background: #fff;
  padding: 28px 20px 56px;
  text-align: center;
}
.hero > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 20em; }

/* Cover + form panel: stacked on phones, side by side from tablet up */
.hero-panel {
  display: grid;
  gap: 24px;
  justify-items: center;
  align-items: center;
  margin-top: 8px;
}
.cover-wrap { width: min(54%, 210px); }
.cover {
  display: block;
  width: 100%;
  height: auto;
  /* No shadow or blend: the mockup carries its own shadow and sits on the
     white hero, so the image edge disappears. */
}
/* From tablet up the book is the bigger object and the form its companion:
   a 380px cover beside a 400px card, so the two never read as equal boxes. */
@media (min-width: 768px) {
  .hero-panel {
    grid-template-columns: 380px minmax(0, 400px);
    justify-content: center;
    gap: 80px;
    margin-top: 16px;
  }
  .cover-wrap { width: 100%; }
}

/* Opt-in form card */
.optin-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px 20px;
  text-align: left;
  box-shadow: 0 24px 48px rgba(36, 26, 54, 0.18), 0 3px 8px rgba(36, 26, 54, 0.07);
}
.form-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 16px;
  text-align: center;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--lavender); }
.field input[aria-invalid="true"] { border-color: #d0433f; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b3322e; font-size: 0.85rem; margin: -4px 0 12px; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

.cta {
  display: inline-block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lavender);
  border: none;
  border-radius: 999px;
  padding: 18px 40px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
  min-height: 56px; /* touch target */
}
.cta:hover { background: var(--lavender-deep); }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.form-submit { display: block; width: 100%; margin-top: 4px; }

section { padding: 56px 20px; }
section > h2, section > ul, section > p, .story-body {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
section > .cta { display: block; margin: 32px auto 0; max-width: 360px; }
section h2 { text-align: center; margin-bottom: 28px; }

/* What's inside */
.inside { background: var(--mist); }
.bullets { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; }
.bullets li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 18px 16px;
}
.bullets .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lavender);
  color: #fff;
  margin-top: 1px;
}
.bullets strong { font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; display: block; margin-bottom: 2px; }
.bullets div { color: var(--ink-soft); }
.bullets div strong { color: var(--ink); }
.bonus-line {
  text-align: center;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.bonus-line strong { color: var(--ink); }

/* Michelle's note. Image beside the text from tablet up, stacked on phones.
   Two image treatments: .story-ba (framed before/after pair, the one in use)
   and .story-photo alone (a transparent cutout standing on the section edge). */
.story { padding-bottom: 64px; }
/* Closing button: centered on the page below the photo + copy grid. */
.story-btn { display: block; margin: 40px auto 0; max-width: 360px; }
.story-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-items: center;
}
.story-body { max-width: var(--max); }
.story-body p { margin: 0 0 0.9em; }
/* Short beats set in the display face so the note reads as copy, not prose */
.story-body .punch {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}
.story-body p:has(> .punch) { margin-top: 1.3em; }
.story-body strong { color: var(--ink); }
.story-body p:first-child {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--lavender-deep);
  text-align: center;
}
.story-photo {
  margin: 0;
  order: 2;               /* phones: after the text, at the section's edge */
  width: 210px;
  height: 320px;          /* shows head to waist; legs run off the edge */
  overflow: hidden;
  align-self: end;
}
.story-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .story-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; }
  .story-photo { order: 0; width: 100%; height: auto; overflow: visible; align-self: end; }
  .story-body p:first-child { text-align: left; }
}

/* Before/after pair: two framed panels side by side, captions set in page
   type (the source images are cropped above their baked-in caption boxes). */
.story-ba {
  order: 0;
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ba-panel { margin: 0; }
.ba-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(36, 26, 54, 0.14);
}
.ba-panel figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.ba-label {
  display: block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.ba-after .ba-label { color: var(--lavender-deep); }
@media (min-width: 768px) {
  .story-grid:has(.story-ba) { grid-template-columns: 400px minmax(0, 1fr); }
}

/* Client quotes */
.quotes { background: #fff; }
.quote-grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.quote blockquote {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
}
.quote blockquote::before { content: "\201C"; color: var(--lavender); margin-right: 2px; }
.quote blockquote::after { content: "\201D"; color: var(--lavender); margin-left: 2px; }
.quote figcaption { font-size: 0.85rem; font-weight: 700; color: var(--lavender-deep); }
.quote figcaption .age { color: var(--ink-soft); font-weight: 400; }
.fineprint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: var(--max);
  margin: 24px auto 0;
}

footer {
  padding: 40px 20px 120px; /* bottom padding clears sticky CTA */
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 50;
}
.sticky-cta .cta { display: block; width: 100%; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
