/* ============================================================
   VOLA CREATOR PROGRAMME — styles.css (v3)
   Layout system ported from the BibleChat creator LP.
   Palette: Vola ink / blue / gold. Font: Archivo (self-hosted).
   ============================================================ */

/* ----------------------------------------------------------
   FONT — Archivo variable, self-hosted (OFL)
   Latin covers RO/PL/ES/EN/IT; Latin-ext covers diacritics.
   BG (Cyrillic) needs a separate subset — add @font-face later.
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Palette — Vola */
  --ink:            #0B0E1B;
  --ink-soft:       #4B5066;
  --gray:           #6E7481;
  --gray-light:     #9CA1AE;
  --line:           #E6ECF5;
  --surface:        #FFFFFF;
  --surface-cream:  #FBF3DE;
  --surface-cool:   #F2F6FC;
  --gold:           #EDB44D;
  --blue:           #2C55D3;
  --blue-light:     #4895D8;

  /* Gradient mesh stops */
  --mesh-blue:      #C9D9F7;
  --mesh-sky:       #DDEAFB;
  --mesh-gold:      #F7E4B5;

  /* Buttons */
  --cta-bg:         #2C55D3;
  --cta-text:       #FFFFFF;

  /* Radii */
  --r-btn:          14px;
  --r-card:         18px;
  --r-modal:        24px;

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(11,14,27,.06);
  --shadow-lift:    0 12px 40px rgba(11,14,27,.10);
  --shadow-modal:   0 24px 80px rgba(11,14,27,.18);

  /* Layout */
  --max-w:          1040px;
  --font:           "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* Generic hidden state — covers form success/error/steps/modal */
.hidden { display: none !important; }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

/* When a subtitle follows the heading, keep them tight as one unit */
section h2:has(+ .section-sub) { margin-bottom: 10px; }

.gold { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 0;
  padding: 18px 32px;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-ghost   { background: transparent; color: var(--ink); border: 2px solid var(--line); padding: 16px 30px; }
.btn-ghost:hover { background: var(--surface-cool); box-shadow: none; }
.btn-full  { width: 100%; justify-content: center; }
.btn-flex  { flex: 1; justify-content: center; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

/* ============================================================
   HERO — gradient mesh (blue / gold)
   ============================================================ */
.hero {
  padding: 100px 0 88px;
  text-align: center;
  background:
    radial-gradient(60% 55% at 12% 78%,  var(--mesh-gold) 0%, rgba(247,228,181,0)  62%),
    radial-gradient(48% 46% at 34% 60%,  var(--mesh-sky)  0%, rgba(221,234,251,0)  66%),
    radial-gradient(62% 58% at 88% 34%,  var(--mesh-blue) 0%, rgba(201,217,247,0)  64%),
    radial-gradient(50% 44% at 66% 88%,  var(--mesh-sky)  0%, rgba(221,234,251,0)  62%),
    #FFFFFF;
}
.text-block { max-width: 720px; margin: 0 auto; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 58ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.cta-hero { font-size: 18px; padding: 20px 36px; animation: cta-pulse 2.5s ease-in-out infinite; }
.hero-cta-note { font-size: 14px; color: var(--gray-light); margin: 14px 0 0; }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   STATS BAND — "Here's what we've done so far"
   ============================================================ */
.stats { padding: 0 0 96px; }
.stats h2 { margin-bottom: 28px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface-cool);
  border-radius: var(--r-card);
  padding: 26px 24px 22px;
  text-align: left;
}
.stat-num {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 0 0 96px; }
.how-it-works h2 { margin-bottom: 28px; }

.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
  max-width: 640px;
}
.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}
.steps-list li:first-child { padding-top: 0; }
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before {
  content: counter(step);
  font-size: 13px;
  font-weight: 700;
  color: var(--surface);
  background: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.bonus-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 20px 24px;
  background: var(--surface-cream);
  border-radius: var(--r-card);
}
.bonus-line p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.bonus-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   OBJECTIONS / FAQ / WHO WE ARE
   ============================================================ */
.objections { padding: 0 0 96px; }
.section-intro { padding-top: 48px; }
.objections h2 { margin-bottom: 28px; }
.objection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.faq-grid .objection { padding: 18px 20px; }
.faq-grid .objection strong { font-size: 15px; margin-bottom: 8px; }
.faq-grid .objection p { font-size: 13px; }
.objection {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.objection strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.objection p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   VIDEO EXAMPLES — carousel
   ============================================================ */
.creator-examples { padding: 0 0 96px; }
.creator-examples h2 { margin-bottom: 10px; }
.section-sub { font-size: 16px; color: var(--gray-light); margin-bottom: 36px; }
.section-note { font-size: 15px; color: var(--gray-light); margin: 28px 0 0; }

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s;
}
.carousel-btn:hover { box-shadow: var(--shadow-lift); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 52px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.video-card {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.video-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.video-card-thumb {
  height: 240px;
  background-color: var(--line);
  background-size: cover;
  background-position: center;
}
.video-card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.video-earn  { font-size: 15px; font-weight: 700; color: var(--ink); }
.video-views { font-size: 12px; color: var(--gray-light); }

/* ============================================================
   EARNINGS SNAPSHOT
   ============================================================ */
.earnings { padding: 0 0 96px; }
.earnings h2 { margin-bottom: 28px; }
.earnings .section-sub { max-width: 62ch; }

.earnings-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: start;
}
.earnings-left { display: flex; flex-direction: column; gap: 14px; }
.earnings-base {
  background: var(--surface-cream);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
}
.earnings-base .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 14px;
}
.earnings-base .amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.earnings-base .per {
  font-size: 15px;
  color: var(--gray);
}

.earnings-tiers { display: grid; gap: 6px; }
.tier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.tier-views { color: var(--gray); }
.tier-bonus {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.tier-row.highlight { background: var(--ink); border-color: var(--ink); }
.tier-row.highlight .tier-views { color: var(--gray-light); }
.tier-row.highlight .tier-bonus { color: var(--gold); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 50px 0 110px;
  text-align: center;
  background:
    radial-gradient(60% 55% at 12% 78%,  var(--mesh-gold) 0%, rgba(247,228,181,0)  62%),
    radial-gradient(62% 58% at 88% 34%,  var(--mesh-blue) 0%, rgba(201,217,247,0)  64%),
    #FFFFFF;
}
.cta-band .container { display: flex; justify-content: center; margin: 0 auto; padding: 0; }
.cta-band-btn { margin: 0; font-size: 20px; padding: 24px 52px; animation: cta-pulse 2.5s ease-in-out infinite; }

@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(44, 85, 211, 0.45), 0 8px 28px rgba(0,0,0,0.12); }
  100% { box-shadow: 0 0 0 24px rgba(44, 85, 211, 0),  0 8px 28px rgba(0,0,0,0.12); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 13px; color: var(--gray-light); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11,14,27,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain;
}
.modal-overlay.hidden { display: none; }
body.modal-open { overflow: hidden; }

.modal-dialog {
  background: var(--surface);
  border-radius: var(--r-modal);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.modal-close {
  background: none;
  border: 0;
  padding: 6px;
  color: var(--gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--surface-cool); color: var(--ink); }

.modal-body {
  overflow-y: auto;
  padding: 24px 28px 28px;
  overscroll-behavior: contain;
  flex: 1;
}

/* ============================================================
   FORM
   ============================================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
#step-label { font-size: 13px; font-weight: 600; color: var(--gray-light); letter-spacing: 0.04em; text-transform: uppercase; }
.step-dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.2s; }
.dot-active { background: var(--ink); }

.form-step { border: 0; padding: 0; min-width: 0; }
.form-step.hidden { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"] {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,85,211,.16);
}
.field input.is-invalid {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

.video-links-group { display: grid; gap: 8px; }

.field-hint { font-size: 13px; color: var(--gray-light); line-height: 1.5; }
.field-error { font-size: 13px; color: #E53E3E; font-weight: 500; min-height: 18px; }

/* Checkbox */
.field-check .check-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  font-weight: 400;
}
.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.field-check a { color: var(--blue); text-decoration: underline; }

/* Radio */
.radio-group { display: grid; gap: 8px; }
.radio-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 15px;
  color: var(--ink-soft);
}
.radio-label:has(input:checked) {
  border-color: var(--blue);
  background: rgba(44,85,211,.06);
  color: var(--ink);
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Success / error */
.form-success {
  text-align: center;
  padding: 32px 16px;
}
.success-headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.form-error-box {
  border-radius: 10px;
  background: #FFF5F5;
  border: 1px solid #FEB2B2;
  padding: 14px 16px;
  margin-top: 16px;
}
.form-error-box p { font-size: 14px; color: #C53030; margin: 0; }
.form-error-box.hidden { display: none; }

/* Step animation */
@keyframes step-slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.step-enter { animation: step-slide-in 0.28s ease forwards; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 60px; }
  .hero-sub { font-size: 17px; }

  /* CTA buttons: allow the long label to wrap instead of overflowing the viewport */
  .cta-hero, .cta-band-btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
    max-width: 100%;
  }
  .cta-hero { font-size: 17px; padding: 18px 28px; }
  .cta-band-btn { font-size: 18px; padding: 20px 32px; }

  .stats { padding: 0 0 64px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .how-it-works { padding: 0 0 64px; }
  .objections { padding: 0 0 64px; }
  .section-intro { padding-top: 32px; }
  .objection-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .objection strong { font-size: 16px; }
  .faq-grid .objection p { font-size: 14px; }
  .creator-examples { padding: 0 0 64px; }

  /* Carousel: no arrows on touch — swipe instead, reclaim the side padding */
  .carousel-btn { display: none; }
  .carousel-track { padding: 8px 2px; }

  .earnings { padding: 0 0 64px; }
  .earnings-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Stack as base → tiers → bonus so "everything above" reads correctly */
  .earnings-left { display: contents; }
  .bonus-line { order: 3; }
  .earnings-base .amount { font-size: 34px; }

  .cta-band { padding: 40px 0 68px; }
  .cta-band .container { padding: 0 20px; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-overlay { padding: 16px; }
  .modal-dialog { max-height: 92vh; border-radius: 20px; }
  .modal-body { padding: 20px 20px 24px; }
  .modal-header { padding: 18px 20px 14px; }
  .form-actions { flex-direction: column; }
  .btn-ghost { order: 2; }
  .btn-flex  { order: 1; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-in { opacity: 1; transform: none; }
}
