/* ============================================================
   BIBLECHAT CREATOR PROGRAMME — styles.css
   Design system: General Sans · Ink / Gold / Mint palette
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Palette */
  --ink:            #0F1012;
  --ink-soft:       #545C66;
  --gray:           #6E7681;
  --gray-light:     #9CA3AB;
  --line:           #E8EAED;
  --surface:        #FFFFFF;
  --surface-cream:  #FDF3DF;
  --gold:           #F7B500;
  --mint:           #7ADFA8;
  --mint-deep:      #3FBF7F;

  /* Gradient mesh stops */
  --mesh-yellow:    #F2D14E;
  --mesh-butter:    #F7E9A8;
  --mesh-mint:      #BDE9CD;

  /* Buttons */
  --cta-bg:         #0F1012;
  --cta-text:       #FFFFFF;

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

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

  /* Layout */
  --max-w:          1040px;
  --font:           "General Sans", -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; }

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

.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(--mint-deep); 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-cream); 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 {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

/* ============================================================
   HERO — gradient mesh
   ============================================================ */
.hero {
  padding: 100px 0 88px;
  text-align: center;
  background:
    radial-gradient(60% 55% at 12% 78%,  var(--mesh-yellow) 0%, rgba(242,209,78,0)   62%),
    radial-gradient(48% 46% at 34% 60%,  var(--mesh-butter) 0%, rgba(247,233,168,0)  66%),
    radial-gradient(62% 58% at 88% 34%,  var(--mesh-mint)   0%, rgba(189,233,205,0)  64%),
    radial-gradient(50% 44% at 66% 88%,  var(--mesh-mint)   0%, rgba(189,233,205,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; }

/* ============================================================
   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; }

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

.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: 40px 1fr;
  gap: 0 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}
.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: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--surface-cream);
  border-radius: var(--r-card);
  max-width: 640px;
}
.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
   ============================================================ */
.objections { padding: 0 0 96px; }
.objection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.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;
}

/* ============================================================
   SOCIAL PROOF — creator cards
   ============================================================ */
.proof { padding: 0 0 96px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof-meta {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
.proof-quote {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  border: 0;
  margin: 0;
  padding: 0;
  font-style: normal;
}

/* ============================================================
   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; }

.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: 10px; }
.earnings-sub { font-size: 16px; color: var(--gray-light); margin-bottom: 40px; }

.earnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.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: 52px;
  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-base .note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-light);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.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: 80px 0;
  text-align: center;
  background:
    radial-gradient(60% 55% at 12% 78%,  var(--mesh-yellow) 0%, rgba(242,209,78,0)   62%),
    radial-gradient(62% 58% at 88% 34%,  var(--mesh-mint)   0%, rgba(189,233,205,0)  64%),
    #FFFFFF;
}
.cta-band-title { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.cta-band-sub   { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; }
.cta-band-btn   { font-size: 18px; padding: 20px 36px; }

/* ============================================================
   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(15,16,18,.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-cream); 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(--mint-deep);
  box-shadow: 0 0 0 3px rgba(63,191,127,.18);
}
.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(--mint-deep);
}
.field-check a { color: var(--mint-deep); 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(--mint-deep);
  background: rgba(63,191,127,.06);
  color: var(--ink);
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--mint-deep);
  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-hero { font-size: 16px; padding: 16px 26px; width: 100%; justify-content: center; }
  .how-it-works { padding: 64px 0; }
  .objections { padding: 0 0 64px; }
  .objection-grid { grid-template-columns: 1fr; }
  .proof { padding: 0 0 64px; }
  .proof-grid { grid-template-columns: 1fr; }
  .creator-examples { padding: 0 0 64px; }
  .earnings { padding: 0 0 64px; }
  .earnings-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 60px 0; }
  .cta-band-btn { width: 100%; justify-content: center; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-dialog { max-height: 95vh; border-radius: 16px 16px 0 0; align-self: flex-end; margin: 0 -20px; width: calc(100% + 40px); }
  .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; }
}
