/* ═══════════════════════════════════════════════
   Selah — official website
   Design system mirrors the Selah app:
   Poppins (UI) + Crimson Pro (Scripture),
   Selah Blue #3277ee, Memory Green #10b981,
   Flame gradient #fbbf24→#f97316, soft neutral canvas.
   ═══════════════════════════════════════════════ */

/* Pretendard (self-hosted, subset to the glyphs used on this page).
   Korean/Japanese copy renders in Pretendard; English stays Poppins. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 930;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard JP Variable";
  src: url("assets/fonts/PretendardJPVariable.woff2") format("woff2");
  font-weight: 45 930;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3277ee;
  --blue-2: #2b6cee;
  --green: #10b981;
  --green-2: #059669;
  --orange: #f97316;
  --amber: #fbbf24;
  --ink: #0f172a;
  --ink-2: #1a1c1e;
  --muted: #64748b;
  --dim: #94a3b8;
  --faint: #cbd5e1;
  --line: #f1f5f9;
  --line-2: #eef2f7;
  --canvas: #fafafa;
  --card: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 18px 40px rgba(50, 119, 238, 0.28);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1140px;

  /* English UI keeps Poppins; system CJK is only a last-resort fallback.
     Per-language overrides below route Korean/Japanese to Pretendard. */
  --f: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
       "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
       "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo",
       sans-serif;
  --serif: "Crimson Pro", Georgia, serif;
}

/* Option A — Korean & Japanese copy uses Pretendard, English stays Poppins.
   Poppins is listed first, so Latin glyphs render in Poppins and only
   Korean/Japanese characters fall through to Pretendard. */
html[lang="ko"] {
  --f: "Poppins", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
       "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
html[lang="ja"] {
  --f: "Poppins", "Pretendard JP Variable", "Pretendard Variable",
       -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
       "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.ic { display: inline-flex; width: 1em; height: 1em; }
.ic svg { width: 100%; height: 100%; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  padding: 12px 22px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(50,119,238,.34); }

/* ── Nav ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 250, 250, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px; display: flex; align-items: center; gap: 24px;
}
.brand-mark {
  font-weight: 700; font-size: 24px; color: var(--blue-2); letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--blue-2); }

/* ── Language switch ─────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px; box-shadow: var(--shadow-sm);
}
.nav-links + .lang-switch { margin-left: 0; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--f);
  font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--muted);
  padding: 6px 11px; border-radius: var(--r-pill); transition: background .16s ease, color .16s ease;
}
.lang-switch button:hover { color: var(--blue-2); }
.lang-switch button.active { background: var(--blue); color: #fff; }

/* ── Section scaffolding ─────────────────── */
section { position: relative; }
.section-head {
  max-width: 720px; margin: 0 auto 52px; text-align: center; padding: 0 24px;
}
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1px;
  color: var(--ink); line-height: 1.15;
}
.section-head p {
  margin-top: 16px; font-size: 17px; color: var(--muted);
}

/* ═══════════════ HERO ═══════════════ */
.hero { padding: 40px 24px 80px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-40%);
  width: 900px; height: 900px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at center, rgba(50,119,238,.14), rgba(50,119,238,0) 62%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.eyebrow-mark { width: 22px; height: 22px; border-radius: 6px; }
.hero-copy h1 {
  margin-top: 22px; font-size: clamp(40px, 6vw, 66px); line-height: 1.04;
  font-weight: 700; letter-spacing: -2px; color: var(--ink);
}
.lead {
  margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 480px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 11px 20px; transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-md);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 24px; height: 24px; fill: #fff; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 16px; }
.store-btn small { font-size: 10px; font-weight: 500; opacity: .8; }

.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.stat b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.stat span { font-size: 13px; color: var(--dim); }
.stat-div { width: 1px; height: 34px; background: var(--line); }

/* ── Hero phone + floating chips ─────────── */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line);
  padding: 11px 15px; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.phone-float img { width: 34px; height: 34px; }
.phone-float b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.phone-float span { font-size: 11px; color: var(--dim); }
.phone-float-1 { top: 14%; left: -6%; animation-delay: 0s; }
.phone-float-2 { bottom: 12%; right: -8%; animation-delay: 1.4s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ═══════════════ PHONE MOCKUP ═══════════════ */
.phone {
  position: relative; width: 340px; flex: none;
  background: #0f172a; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0f172a; border-radius: 0 0 16px 16px; z-index: 4;
}
.screen {
  position: relative; background: var(--canvas); border-radius: 36px;
  height: 660px; overflow: hidden; display: flex; flex-direction: column;
  padding: 42px 22px 20px;
}
.phone-sm { width: 272px; border-radius: 42px; }
.phone-sm .screen { height: 560px; border-radius: 32px; padding: 36px 18px 16px; }
.phone-gallery { width: 256px; }
.phone-gallery .screen { height: 540px; }

/* ── Shared app UI ───────────────────────── */
.app-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 4px 4px 10px;
}
.app-title { font-size: 21px; font-weight: 700; color: var(--ink); }
.app-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.app-sub.soft { letter-spacing: 0; font-weight: 500; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 16px; flex: none;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 19px; box-shadow: var(--shadow-sm);
}
.ref-badge {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  background: rgba(50,119,238,.06); border: 1px solid rgba(50,119,238,.12);
  color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.ref-badge .ic { font-size: 12px; }
.ref-badge.learned {
  background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); color: var(--green);
}
.verse {
  font-family: var(--serif); font-size: 21px; line-height: 1.68;
  color: var(--ink-2); letter-spacing: -0.2px;
}
.verse-sm { font-size: 18px; line-height: 1.6; }

/* ── Today screen ────────────────────────── */
.screen-today .today-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.today-actions { display: flex; gap: 12px; margin: 22px 0; }
.speaker {
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.speaker.mini { width: 46px; height: 46px; }
.speaker-in {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(50,119,238,.06); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.speaker-in.green { background: rgba(16,185,129,.08); color: var(--green); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.p-num { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--dim); }
.p-num.dim { color: var(--faint); }
.p-track { width: 46px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.p-fill { display: block; height: 100%; background: var(--blue); }
.p-fill.green { background: var(--green); }

.today-footer { display: flex; gap: 10px; padding-top: 12px; }
.fbtn {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r-pill);
  border: 0; cursor: default; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; font-family: var(--f);
}
.fbtn .ic { font-size: 17px; }
.fbtn.full { flex: 1; }
.fbtn-white { background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.fbtn-blue { flex: 1.6; background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.fbtn-green { flex: 1.6; background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(16,185,129,.3); }
.fbtn-sec { background: rgba(0,0,0,.03); color: var(--ink-2); }

/* ── Welcome / theme cards ───────────────── */
.screen-welcome { overflow-y: auto; padding-top: 40px; }
.screen-welcome::-webkit-scrollbar { display: none; }
.welcome-hero { text-align: center; margin-bottom: 20px; }
.welcome-book { width: 52px; height: 52px; margin: 0 auto 12px; }
.welcome-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.welcome-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--dim); margin-bottom: 10px; }
.theme-card {
  position: relative; width: 100%; aspect-ratio: 16/7; border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 10px; background-size: cover; background-position: center;
  background-color: #1a2744; display: flex; align-items: flex-end;
}
.theme-overlay { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.theme-content {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 9px;
  padding: 13px; width: 100%;
}
.theme-badge {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center;
}
.theme-badge img { width: 17px; height: 17px; }
.theme-meta { flex: 1; min-width: 0; }
.theme-meta b { display: block; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-meta span { font-size: 11px; color: rgba(255,255,255,.8); }
.chev { color: rgba(255,255,255,.9); font-size: 20px; display: inline-flex; }
.chev.dark { color: var(--faint); }
.create-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px dashed #dbe7ff; border-radius: var(--r-md); padding: 14px;
}
.create-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: #eff6ff; color: var(--blue); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.create-meta { flex: 1; }
.create-meta b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.create-meta span { font-size: 11.5px; color: var(--muted); }

/* ── Create collection screen ────────────── */
.screen-create { background: #f8fafc; padding-top: 40px; }
.create-head {
  display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 14px;
}
.create-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 auto; }
.create-close {
  width: 32px; height: 32px; border-radius: 50%; background: #eef2f7; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 16px; transform: rotate(45deg);
}
.create-scroll { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.create-scroll > * { flex: 0 0 auto; }
.field-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--dim); margin: 8px 0 8px; }
.text-input {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 13px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center;
}
.caret { width: 2px; height: 16px; background: var(--blue); margin-left: 2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.char-count { font-size: 10px; color: var(--dim); text-align: right; margin-top: 5px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.emoji-btn {
  aspect-ratio: 1; border-radius: 13px; background: #fff; border: 1.5px solid #eef2f7;
  display: flex; align-items: center; justify-content: center;
}
.emoji-btn img { width: 26px; height: 26px; }
.emoji-btn.on { border-color: var(--blue); background: #eff6ff; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 9px; }
.color-dot {
  aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.color-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15,23,42,.18); }
.color-dot:not(.on) .ic { display: none; }
.create-footer { padding-top: 14px; }

/* ── Learn / memorize screens ────────────── */
.screen-learn { padding-top: 36px; }
.learn-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 10px; }
.learn-step { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .5px; }
.learn-head .dots { color: var(--ink-2); font-size: 18px; width: 34px; height: 34px; background:#fff; border:1px solid var(--line); border-radius: 14px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-sm); }
.step-bars { display: flex; gap: 6px; margin-bottom: 20px; }
.step-bars i { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; }
.step-bars i.on { background: var(--blue); }
.step-bars i.done { background: var(--green); }
.learn-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-top: 10px; }
.blk {
  color: var(--blue); background: rgba(50,119,238,.07); border-radius: 4px;
  letter-spacing: 1px; font-family: var(--f); font-weight: 600; font-size: 15px; padding: 0 2px;
}
.rvl { color: var(--blue); font-weight: 600; }
.verse-blur { filter: blur(4px); opacity: .6; color: var(--ink-2); user-select: none; }
.blank-actions { display: flex; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500;
  background: rgba(50,119,238,.06); border: 1px solid rgba(50,119,238,.12); color: var(--blue);
}
.chip .ic { font-size: 14px; }
.chip.hard { background: rgba(249,115,22,.06); border-color: rgba(249,115,22,.15); color: var(--orange); }
.learn-footer { display: flex; gap: 10px; padding-top: 12px; }

/* ── Session complete ────────────────────── */
.screen-complete { justify-content: center; align-items: center; padding: 30px 22px; }
.complete-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.success-icon {
  width: 82px; height: 82px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  box-shadow: 0 14px 30px rgba(16,185,129,.32); margin-bottom: 20px;
}
.complete-title { font-size: 24px; font-weight: 700; color: var(--ink-2); }
.complete-sub { font-size: 13.5px; color: var(--dim); margin-top: 6px; text-align: center; }
.stats-card {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; margin: 24px 0 18px; box-shadow: var(--shadow-md);
}
.stats-hdr { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--dim); text-align: center; margin-bottom: 18px; }
.stats-row { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 16px; }
.stat-item { text-align: center; }
.stat-item b { font-size: 28px; font-weight: 700; color: var(--ink-2); }
.stat-item b.blue { color: var(--blue); }
.stat-item span { display: block; font-size: 11px; color: var(--dim); }
.stat-vdiv { width: 1px; height: 38px; background: var(--line); }
.time-row { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--dim); font-weight: 500; }
.time-row .ic { font-size: 15px; }
.done-choices { display: flex; gap: 10px; width: 100%; }
.done-card {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.done-ic {
  width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 10px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.done-ic.blue { background: rgba(50,119,238,.08); color: var(--blue); }
.done-ic.green { background: rgba(16,185,129,.08); color: var(--green); }
.done-card b { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.done-card span { font-size: 10.5px; color: var(--dim); }

/* ── Dashboard / My Breath ───────────────── */
.screen-dash { padding-top: 40px; }
.dash-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 2px; }
.dash-scroll > * { flex: 0 0 auto; }
.dash-scroll::-webkit-scrollbar { display: none; }
.grad-card { position: relative; border-radius: var(--r-lg); padding: 18px; overflow: hidden; color: #fff; }
.grad-card.orange { background: linear-gradient(135deg, var(--amber), var(--orange)); }
.grad-card.green { background: linear-gradient(135deg, var(--green), var(--green-2)); }
.grad-circle { position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); }
.grad-top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.grad-cap { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.85); }
.grad-val { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; }
.grad-val b { font-size: 28px; font-weight: 700; line-height: 1; }
.grad-val i { font-size: 13px; font-style: normal; font-weight: 500; }
.grad-emoji { width: 42px; height: 42px; }
.week-row { position: relative; display: flex; justify-content: space-between; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk b { font-size: 9.5px; font-weight: 400; color: rgba(255,255,255,.6); font-style: normal; }
.wk i {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-style: normal;
}
.wk.on i { background: rgba(255,255,255,.28); }
.wk.today b { font-weight: 700; color: #fff; }
.wk.today i { background: #fff; color: var(--orange); }
.wk:not(.on):not(.today) i .ic { display: none; }
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.badge-cell {
  border-radius: 12px; padding: 9px 4px; text-align: center; border: 1px solid;
}
.badge-cell img { width: 40px; height: 40px; margin: 0 auto 3px; }
.badge-cell span { font-size: 9px; font-weight: 500; color: var(--muted); }
.badge-cell.earned { background: #fffbeb; border-color: #fde68a; }
.badge-cell.locked { background: #f8fafc; border-color: var(--line); }
.badge-cell.locked img { opacity: .35; }
.badge-cell.locked span { color: var(--dim); }

/* ── Collections screen ──────────────────── */
.screen-collections .coll-list { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.coll-card {
  display: flex; align-items: center; gap: 11px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; box-shadow: var(--shadow-sm);
}
.coll-emoji {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  display: flex; align-items: center; justify-content: center;
}
.coll-emoji img { width: 22px; height: 22px; }
.coll-body { flex: 1; min-width: 0; }
.coll-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.coll-top b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pct { font-size: 12px; font-weight: 700; color: var(--blue); font-style: normal; }
.pct.done { font-size: 9px; background: #ecfdf5; color: var(--green-2); padding: 2px 7px; border-radius: 8px; }
.coll-sub { font-size: 11px; color: var(--muted); }
.coll-track { display: block; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 7px; }
.coll-fill { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.coll-fab {
  position: absolute; bottom: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 24px; box-shadow: var(--shadow-blue);
  display: flex; align-items: center; justify-content: center;
}

/* ── Bible screen ────────────────────────── */
.screen-bible { padding-top: 40px; }
.bible-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cat { font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg); color: var(--c); }
.bible-ref { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.ch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.ch {
  aspect-ratio: 1; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted);
}
.ch.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.bible-verse-row { display: flex; gap: 10px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.bible-verse-row.sel { background: rgba(50,119,238,.05); border-radius: 12px; border-bottom-color: transparent; }
.vn { font-size: 11px; font-weight: 700; color: var(--blue); flex: none; padding-top: 3px; }
.bible-verse-row p { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* ── Settings screen ─────────────────────── */
.screen-settings { padding-top: 40px; }
.set-list { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.set-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; box-shadow: var(--shadow-sm);
}
.set-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--bg); color: var(--c); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.set-body { flex: 1; }
.set-body b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.set-body span { font-size: 11.5px; color: var(--muted); }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: #e5e7eb; position: relative; flex: none; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .2s; }
.toggle.on { background: var(--blue); }
.toggle.on i { left: 21px; }

/* ═══════════════ FEATURES ═══════════════ */
.features { padding: 96px 24px; }
.feature-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-emoji {
  width: 56px; height: 56px; border-radius: 16px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-emoji img { width: 32px; height: 32px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ═══════════════ FLOW ═══════════════ */
.flow { padding: 40px 24px 96px; }
.flow-row {
  max-width: var(--maxw); margin: 0 auto 100px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.flow-row.reverse .flow-text { order: 2; }
.flow-text .step-num {
  font-size: 15px; font-weight: 700; color: var(--blue); letter-spacing: 1px;
  background: rgba(50,119,238,.08); width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.flow-text.center { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.flow-text.center .step-num { margin: 0 auto 20px; }
.flow-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.6px; color: var(--ink); line-height: 1.2; }
.flow-text p { margin-top: 14px; font-size: 16.5px; color: var(--muted); }
.flow-text em { font-style: normal; color: var(--ink); font-weight: 600; }
.flow-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.flow-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.flow-list .ic { color: var(--green); font-size: 18px; background: rgba(16,185,129,.1); border-radius: 50%; padding: 4px; flex: none; }
.flow-visual { display: flex; justify-content: center; }

.flow-block { max-width: var(--maxw); margin: 0 auto 40px; }
.triptych { display: flex; align-items: flex-start; justify-content: center; gap: 14px; }
.tri-item { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 1 250px; }
.tri-step {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: var(--shadow-blue);
}
.tri-arrow {
  align-self: center; color: var(--faint); font-size: 24px; flex: 0 0 auto;
  margin-top: 200px; display: inline-flex;
}
.tri-caption { text-align: center; margin-top: 20px; max-width: 230px; }
.tri-caption b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tri-caption span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tri-end { text-align: center; margin-top: 40px; }
.tri-end-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); color: var(--green-2);
  font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: var(--r-pill);
}
.tri-end-badge .ic { font-size: 17px; color: var(--green); }

/* Daily-verse callout chip (step 2) */
.daily-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.daily-chip img { width: 34px; height: 34px; flex: none; }
.daily-chip b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.daily-chip span { font-size: 12.5px; color: var(--muted); }

/* ═══════════════ CTA ═══════════════ */
.cta { padding: 40px 24px 110px; }
.cta-inner {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 34px;
  padding: 64px 40px; box-shadow: var(--shadow-md); overflow: hidden;
}
.cta-glow { top: -300px; transform: translateX(-50%); left: 50%; }
.cta-icon { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 24px; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.cta-inner h2 { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.cta-inner p { position: relative; z-index: 1; margin-top: 14px; font-size: 17px; color: var(--muted); }
.cta-inner .hero-cta { position: relative; z-index: 1; margin-top: 30px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--ink); color: #fff; padding: 56px 24px 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.55); max-width: 320px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .16s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 10px;
}

/* ═══════════════ REVEAL ═══════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { grid-template-columns: 1fr; gap: 36px; margin-bottom: 72px; }
  .flow-row.reverse .flow-text { order: 0; }
  .flow-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .flow-text .step-num { margin-left: auto; margin-right: auto; }
  .flow-list { align-items: flex-start; text-align: left; }
  .triptych { flex-direction: column; align-items: center; gap: 8px; max-width: 320px; margin: 0 auto; }
  .tri-arrow { margin: 0; transform: rotate(90deg); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { padding: 6px 9px; font-size: 11px; }
  .phone { width: min(340px, calc(100vw - 44px)); }
  .phone-sm { width: min(272px, calc(100vw - 60px)); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .phone-float-1 { left: -2%; }
  .phone-float-2 { right: -2%; }
  .footer-bottom { flex-direction: column; }
}
