/* BIA VSL page. Mobile-first. Brand: lavender #AA77FF hero color per VSL brand guide. */

: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;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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 { font-size: clamp(2rem, 6.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
}
.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(1.05rem, 3vw, 1.3rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 auto 28px;
  max-width: 34em;
}

/* Video frame: aspect ratio set by app.js per orientation */
.vsl-frame {
  margin: 0 auto 24px;
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
.vsl-frame[data-orientation="horizontal"] { aspect-ratio: 16 / 9; max-width: var(--max); }
.vsl-frame[data-orientation="vertical"]   { aspect-ratio: 9 / 16; max-width: 400px; }
.vsl-frame[data-orientation="pending"]    { aspect-ratio: 16 / 9; }

.under-video {
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto 24px;
}

.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;
  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; }

section { padding: 56px 20px; }
section > h2, section > article, section > details, .quotes, .fineprint {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
section > .cta { display: block; margin: 32px auto 0; }
section h2 { text-align: center; margin-bottom: 32px; }

.proof { background: var(--mist); }
.quotes { display: grid; gap: 16px; }
.proof figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.proof blockquote { margin: 0 0 12px; font-size: 1rem; }
.proof figcaption { font-weight: 700; font-size: 0.9rem; color: var(--lavender-deep); }
.fineprint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 24px; text-align: center; }

.deliver article { margin-bottom: 36px; }
.marker {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  color: var(--lavender);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}

.faq { background: var(--mist); }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0 20px;
}
.faq summary {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--lavender-deep);
  font-size: 1.4rem; font-weight: 500;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0; padding-bottom: 18px; color: var(--ink-soft); }

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; } }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(36, 26, 54, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
  padding: 0;
}
/* display:flex above would otherwise override the hidden attribute */
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 40px;
  position: relative;
}
@media (min-width: 768px) {
  .modal { align-items: center; padding: 24px; }
  .modal-card { max-width: 560px; border-radius: 20px; }
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.8rem; color: var(--ink-soft);
  cursor: pointer; line-height: 1;
  padding: 8px;
}

/* Application form */
.step-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lavender-deep);
  margin-bottom: 8px;
}
.q-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; }
.opt {
  display: block; width: 100%;
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.1s ease;
  min-height: 52px;
}
.opt:hover, .opt:focus-visible { border-color: var(--lavender); }
.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;
}
.field input:focus { outline: none; border-color: var(--lavender); }
.form-next { margin-top: 8px; width: 100%; }
.book-frame { width: 100%; min-height: 640px; border: none; border-radius: 12px; }

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