:root {
  --cream: #f3eee4;
  --cream-2: #e7e0d2;
  --paper: #fbf8f3;
  --ink: #24302b;
  --muted: #5d675f;
  --sage: #4f6b58;
  --sage-deep: #31483b;
  --sage-soft: #d5e3d6;
  --gold: #b8924a;
  --gold-deep: #8c6a2e;
  --gold-soft: #f4e7c8;
  --line: rgba(36, 48, 43, 0.1);
  --shadow: 0 10px 30px rgba(49, 72, 59, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
  --radius: 18px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #f8f1dc 0%, transparent 55%),
    radial-gradient(900px 420px at 110% 0%, #e4efe6 0%, transparent 50%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.5;
}
button, input, textarea { font-family: inherit; color: inherit; }
a { color: var(--sage-deep); }

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px calc(var(--nav-h) + 28px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: #f7f3ea;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-name span { color: var(--gold-deep); font-weight: 500; }
.brand-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.demo-pill {
  font-size: 0.75rem;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
h2 { font-size: 1.45rem; }
.lede { color: var(--muted); margin: 8px 0 0; max-width: 42rem; }

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,74,0.28), transparent 70%);
  pointer-events: none;
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 800;
  margin-bottom: 6px;
}
.verse {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage-deep);
}
.verse small { display: block; font-style: normal; font-family: var(--sans); color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; font-size: 0.78rem; }

.lanes { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 800px) { .lanes { grid-template-columns: repeat(3, 1fr); } }
.lane {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.lane:hover { transform: translateY(-2px); border-color: rgba(79,107,88,0.35); }
.lane .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-deep); margin-bottom: 10px;
}
.lane h3 { font-size: 1.2rem; margin-bottom: 4px; }
.lane p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.lane .go { margin-top: 10px; color: var(--gold-deep); font-weight: 800; font-size: 0.85rem; }

.card, .day-block, .track, .season, .price, .lock-panel, .form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 16px; margin-bottom: 12px; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 12px 0; }
.chip, .btn, .btn-ghost, .btn-gold {
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700;
}
.chip { background: transparent; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--sage); color: #f7f3ea; border-color: var(--sage); }
.btn { background: var(--sage); color: #f6f3ec; }
.btn:hover { background: var(--sage-deep); }
.btn-gold { background: var(--gold); color: #2a2416; }
.btn-gold:hover { background: #c9a45a; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.track-list { display: grid; gap: 10px; }
@media (min-width: 800px) { .track-list { grid-template-columns: 1fr 1fr; } }
.track {
  text-align: left;
  padding: 14px 14px 12px;
  cursor: pointer;
  width: 100%;
}
.track h3 { font-size: 1.12rem; }
.meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 8px;
}
.badge.free { background: var(--sage-soft); color: var(--sage-deep); }
.badge.lock { background: var(--gold-soft); color: var(--gold-deep); }
.badge.cat { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.dots { display: flex; gap: 5px; margin-top: 10px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cream-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.dot.done { background: var(--sage); }
.dot.free { box-shadow: inset 0 0 0 1.5px var(--sage); background: transparent; }
.dot.done.free { background: var(--sage); }
.dot.lock { background: var(--gold-soft); }

.back {
  background: none; border: 0; padding: 0; color: var(--sage-deep); font-weight: 800;
  cursor: pointer; margin-bottom: 10px;
}
.day-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.sections { display: grid; gap: 10px; }
.sec { padding: 14px 16px; }
.sec .label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--gold-deep); margin-bottom: 4px;
}
.sec p { margin: 0; }
.sec.read { background: #f7f3ea; }
.sec.song { background: linear-gradient(180deg, #f8f4ea, #f3eee0); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.care {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: #f7efe3; color: #5c4a32; font-size: 0.92rem;
}
.day-list { display: grid; gap: 8px; margin-top: 12px; }
.day-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.day-row strong { font-family: var(--serif); font-weight: 560; }
.day-row span.n { color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; }

.seasons { display: grid; gap: 12px; }
@media (min-width: 800px) { .seasons { grid-template-columns: 1fr 1fr; } }
.season { padding: 16px; }
.season h3 { margin-bottom: 4px; }
.scripture { font-family: var(--serif); font-style: italic; color: var(--sage-deep); margin: 8px 0 10px; }
.song-line { padding: 8px 0; border-top: 1px solid var(--line); }
.song-line:first-of-type { border-top: 0; }
.song-title { font-weight: 800; }
.song-artist {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}
.listen-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px;
  font-size: 0.8rem;
}
.listen-links .listen-sep {
  color: var(--muted);
  opacity: 0.7;
  user-select: none;
}
.listen-links .listen-label {
  margin-right: 4px;
}
.listen-links .listen-label {
  color: var(--gold-deep);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.listen-links a {
  color: var(--sage);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 107, 88, 0.35);
  padding-bottom: 1px;
}
.listen-links a:hover {
  color: var(--sage-deep);
  border-bottom-color: var(--sage-deep);
}
.why { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.why.locked {
  filter: blur(4px); user-select: none; pointer-events: none;
}

.verse-banner {
  margin: 0 0 16px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--sage-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--sage-deep);
}
.verse-banner p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.verse-banner cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .verse-banner p { font-size: 0.86rem; }
  .verse-banner cite { white-space: normal; display: inline; }
}

.grid-2 { display: grid; gap: 12px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
label.field { display: block; margin-bottom: 10px; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
input[type="text"], input[type="number"], textarea {
  width: 100%; margin-top: 4px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 10px 12px; font-size: 1rem; font-weight: 600; color: var(--ink);
}
textarea { min-height: 72px; resize: vertical; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.check input { margin-top: 4px; accent-color: var(--sage); width: 18px; height: 18px; }
.tease { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tease:last-child { border-bottom: 0; }
.lock-ico {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-deep);
  display: grid; place-items: center;
}
.prices { display: grid; gap: 10px; }
@media (min-width: 700px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { padding: 16px; }
.price .amt { font-family: var(--serif); font-size: 1.7rem; margin: 6px 0; }
.price ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.pdf-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.pdf-row a { font-weight: 800; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 20;
  padding: 0 8px env(safe-area-inset-bottom);
}
.tab {
  background: none; border: 0; color: var(--muted);
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; padding: 6px 10px; min-width: 64px;
}
.tab.on { color: var(--sage-deep); }
.tab svg { width: 22px; height: 22px; }

.modal-back {
  position: fixed; inset: 0; background: rgba(36, 48, 43, 0.45);
  display: grid; place-items: end center; z-index: 30; padding: 16px;
}
.modal-back.hidden { display: none; }
.modal {
  width: min(520px, 100%);
  background: var(--paper);
  border-radius: 22px 22px 16px 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  margin-bottom: 8px;
}
.lock-panel { padding: 22px 18px; text-align: center; }
.lock-panel h2 { margin-bottom: 6px; }

.toggle {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0;
}
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: var(--cream-2); border-radius: 999px; cursor: pointer;
}
.slider::before {
  content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: white; border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: var(--sage); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.progress-note { font-size: 0.85rem; color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .app { padding-bottom: 40px; }
  .desktop-nav { display: flex !important; }
}
.desktop-nav { display: none; gap: 6px; }
.desktop-nav button {
  background: transparent; border: 0; font-weight: 800; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.desktop-nav button.on { background: var(--sage-soft); color: var(--sage-deep); }
