/* =========================================================================
   Advent — Bible-study interest landing.
   Same design language as the marketing page (DESIGN.md): Literata for display,
   Plus Jakarta Sans for voice, warm neutrals, teal accent. No pure #fff/#000,
   no purple, no equal-tile grids. Calm — the app rests, and so does its invitation.
   ========================================================================= */

@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata.ttf') format('truetype-variations');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #f7f4ef;
  --surface: #fffdf9;
  --ink: #1f1b17;
  --ink-muted: #6b625a;
  --ink-faint: #9b9188;
  --hairline: #e2dbd1;
  --accent: #2a6154;
  --accent-strong: #215146;
  --accent-ink: #fffdf9;
  --accent-soft: #dceae5;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --shadow: 0 1px 2px rgba(31, 27, 23, 0.05), 0 10px 26px -12px rgba(31, 27, 23, 0.16);
  --shadow-lg: 0 2px 6px rgba(31, 27, 23, 0.06), 0 30px 60px -24px rgba(31, 27, 23, 0.26);
  --maxw: 640px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171614;
    --surface: #201e1b;
    --ink: #edeae4;
    --ink-muted: #9a958c;
    --ink-faint: #6e6960;
    --hairline: #2f2c28;
    --accent: #5fb3a0;
    --accent-strong: #74c2b0;
    --accent-ink: #14201c;
    --accent-soft: #223731;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Literata', Georgia, serif; }

/* ---------- nav ---------- */
.bs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 5vw, 36px);
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.bs-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.bs-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #f0c67d 0%, var(--accent) 62%);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.bs-word { font-weight: 700; letter-spacing: -0.2px; font-size: 17px; }
/* explicit two-option language chooser */
.bs-langsel {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-full);
}
.bs-langbtn {
  border: 0; background: transparent; color: var(--ink-muted); cursor: pointer;
  border-radius: var(--radius-full); padding: 6px 13px; font: inherit; font-size: 12.5px;
  font-weight: 600; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.bs-langbtn:hover { color: var(--ink); }
.bs-langbtn.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- main ---------- */
.bs-main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px clamp(18px, 5vw, 36px) 40px;
}

/* ---------- hero ---------- */
.bs-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(28px, 7vw, 52px) clamp(22px, 5vw, 40px) clamp(36px, 8vw, 56px);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.bs-hero-art {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/backgrounds/highland-cloud-drift-weekday.webp');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
}
.bs-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.28) 0%, rgba(18, 16, 14, 0.52) 55%, rgba(18, 16, 14, 0.82) 100%);
}
.bs-hero-inner { position: relative; color: #fffdf9; max-width: 30rem; }
/* Sentence case, never forced caps — DESIGN.md §Typography. */
.bs-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: rgba(255, 253, 249, 0.86); margin-bottom: 14px;
}
.bs-title {
  font-size: clamp(30px, 7vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.bs-title span { display: block; }
.bs-accentword { color: #f0c67d; }
.bs-lede { font-size: clamp(15px, 2.4vw, 17px); color: rgba(255, 253, 249, 0.9); line-height: 1.62; }

/* ---------- form card ---------- */
.bs-card {
  position: relative;
  margin-top: -26px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid var(--hairline);
}
.bs-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink-faint); margin-bottom: 18px;
}
.bs-field { margin-bottom: 18px; }
.bs-field label, .bs-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted);
  margin-bottom: 7px;
}
.bs-field input, .bs-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--canvas);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bs-field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.bs-field input::placeholder, .bs-field textarea::placeholder { color: var(--ink-faint); }
.bs-field input:focus, .bs-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* segmented preference control */
.bs-seg { display: flex; gap: 8px; }
.bs-seg-opt {
  flex: 1; position: relative; cursor: pointer;
}
.bs-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bs-seg-opt span {
  display: block; text-align: center; padding: 11px 6px; border-radius: var(--radius-md);
  border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink-muted);
  font-size: 14px; font-weight: 600; transition: all 0.15s ease;
}
.bs-seg-opt input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.bs-seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.bs-submit {
  width: 100%; margin-top: 6px; border: 0; border-radius: var(--radius-md);
  padding: 15px; font: inherit; font-size: 15.5px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent); cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.bs-submit:hover { background: var(--accent-strong); }
.bs-submit:active { transform: scale(0.99); }
.bs-submit:disabled { opacity: 0.6; cursor: default; }

.bs-error {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-md);
  background: #fdecec; color: #9c3b3b; font-size: 13.5px; font-weight: 500; text-align: center;
}
@media (prefers-color-scheme: dark) { .bs-error { background: #3a201f; color: #e59a9a; } }

.bs-fine { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); text-align: center; line-height: 1.5; }

/* ---------- thank-you ---------- */
.bs-thanks { text-align: center; padding: 22px 8px 12px; }
.bs-thanks-sun {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: radial-gradient(circle at 38% 34%, #f0c67d 0%, var(--accent) 68%);
  box-shadow: 0 0 0 8px var(--accent-soft);
}
.bs-thanks h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 10px; }
.bs-thanks p { color: var(--ink-muted); font-size: 15.5px; max-width: 26rem; margin: 0 auto; line-height: 1.6; }

/* ---------- assurances ---------- */
.bs-assure {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center;
  margin-top: 26px; padding: 0;
}
.bs-assure li {
  font-size: 13px; color: var(--ink-muted); font-weight: 600; position: relative; padding-left: 18px;
}
.bs-assure li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .bs-submit:active { transform: none; }
}
