:root {
  --paper: #f7f2e8;
  --surface: #fffaf0;
  --ink: #1d2a22;
  --muted: #66736b;
  --border: #e1d6c1;
  --green: #2f6b4f;
  --green-deep: #244b39;
  --green-soft: #dfeee5;
  --gold: #d6a23d;
  --blue: #2e5362;
  --clay: #6d5c3d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(29, 42, 34, 0.13);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-frame { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 20px; font-weight: 900; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 8px 20px rgba(47, 107, 79, 0.2); }
.top-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tab-link, .store-link, .bottom-tab, .icon-button, .chip, .plan-card, .welcome-button, .plain-button {
  border: 0;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.tab-link { min-height: 38px; padding: 0 12px; background: transparent; color: var(--muted); font-weight: 800; }
.tab-link.active { background: var(--green); color: var(--white); }
.download-actions { justify-self: end; display: flex; gap: 8px; }
.translate-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}
.translate-control select {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}
.store-link { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--border); color: var(--green); background: var(--surface); font-size: 14px; font-weight: 900; }
button.store-link { cursor: pointer; }
.profile-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-weight: 900;
}
.profile-mini-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
}

.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 104px; flex: 1; }
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 430px);
  gap: 28px;
  align-items: center;
  min-height: min(720px, calc(100vh - 118px));
  padding: clamp(28px, 6vw, 68px) 0;
}
.hero-title { margin: 0; color: var(--ink); font-size: clamp(44px, 8vw, 86px); line-height: 0.96; font-weight: 950; }
.hero-copy { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 8px; background: var(--green); color: var(--white); font-weight: 950; }
.hero-button.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--green); }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
  padding: 28px 0 24px;
}
.home-intro { display: grid; gap: 18px; }
.home-side { display: grid; gap: 14px; }
.home-copy-block { padding-top: 4px; }
.search-home {
  min-height: 28vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 64px) 0 28px;
}
.search-home-inner {
  width: 100%;
  display: grid;
  gap: 18px;
}
.search-home-title {
  margin: 0;
  color: var(--green);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  text-align: center;
  font-weight: 950;
}
.overline.dark { color: var(--green); }
.bible-search {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(29, 42, 34, 0.08);
}
.search-home .bible-search { box-shadow: var(--shadow); }
.search-label { color: var(--ink); font-size: 18px; font-weight: 950; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
}
.search-input:focus { outline: 3px solid rgba(47, 107, 79, 0.18); border-color: var(--green); }
.auth-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.search-results {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.search-result {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.search-result strong { color: var(--green); font-size: 15px; }
.search-result span { line-height: 1.45; }
.search-result p { margin: 0; line-height: 1.48; }
.search-result.chapter-result { max-height: 360px; overflow: auto; }
.search-result mark { border-radius: 4px; padding: 0 2px; background: rgba(214, 162, 61, 0.28); color: var(--ink); }
.home-promise {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  box-shadow: var(--shadow);
}
.home-promise::before {
  content: "";
  position: absolute;
  right: -68px;
  top: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
  opacity: 0.16;
}
.home-promise > * { position: relative; z-index: 1; }
.home-promise-text { margin: 44px 0 18px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.18; font-weight: 950; }
.read-bible-card { display: grid; gap: 8px; }
.read-bible-card.compact .reading-reference { margin-top: 10px; }
.home-lower-grid .read-bible-card .action-row {
  margin-top: 8px;
}
.home-lower-grid .read-bible-card .reading-reference {
  margin-top: 12px;
}
.home-read-card {
  width: min(760px, 100%);
  margin: 0 auto 18px;
}
.home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.home-lower-grid > .section {
  margin-top: 0;
  min-height: 230px;
  height: 100%;
}
.home-lower-grid > .section + .section {
  margin-top: 0;
}
.home-lower-grid .download-panel .muted {
  font-size: 13px;
  line-height: 1.38;
}
.home-lower-grid .download-panel .store-grid {
  gap: 8px;
}
.home-lower-grid .download-panel .store-card {
  min-height: 58px;
  padding: 10px 12px;
}
.home-scripture-banner {
  position: relative;
  min-height: 280px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 33, 25, 0.86), rgba(17, 33, 25, 0.52), rgba(17, 33, 25, 0.18)),
    url("assets/jesus-carrying-sheep-banner.png") center 42% / cover;
  box-shadow: var(--shadow);
}
.home-scripture-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  width: min(660px, 100%);
  padding: clamp(22px, 4vw, 42px);
  color: var(--white);
}
.home-scripture-content .overline,
.home-scripture-content .reference {
  color: rgba(255, 255, 255, 0.86);
}
.home-scripture-text {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}
.site-footer {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  color: var(--green);
  font-weight: 900;
}
.footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 900;
  padding: 6px 8px;
  cursor: pointer;
}
.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.secondary-action { background: var(--green-soft); color: var(--green); }
.feature-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 28px; }
.feature { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.feature strong { display: block; color: var(--green); font-size: 17px; margin-bottom: 7px; }
.about-panel {
  width: 100%;
}
.about-title {
  width: 100%;
}
.about-panel p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.about-panel p:first-child {
  margin-top: 0;
}
.about-lead {
  color: var(--green);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 900;
}
.about-values {
  margin-top: 16px;
}
.legal-title {
  margin-bottom: 18px;
}
.legal-panel {
  width: 100%;
}
.legal-panel h2 {
  margin-top: 24px;
}
.legal-panel p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
}
.legal-list {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
}
.legal-contact {
  margin-top: 10px;
  color: var(--ink);
  font-style: normal;
  font-size: 15px;
  line-height: 1.62;
}
.legal-contact a {
  color: var(--green);
  font-weight: 850;
}
.phone-preview { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.phone-preview .promise-card { min-height: 500px; }
.screen-grid { display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr); gap: 22px; align-items: start; }
.today-grid { align-items: start; }
.today-promise-column { display: flex; flex-direction: column; }
.today-promise-card, .today-reading-card { min-height: 560px; }
.today-side {
  display: grid;
  gap: 14px;
}
.today-side .section + .section {
  margin-top: 0;
}
.today-reading-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.today-reading-card .action-row {
  margin-bottom: 18px;
}
.today-reading-image {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  margin: 16px auto 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--green-deep);
}
.today-reading-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.today-mobile-panel {
  margin-top: 0;
}
.screen-title { margin: 0 0 18px; color: var(--ink); font-size: clamp(28px, 4vw, 44px); line-height: 1.04; font-weight: 950; }
.brand-kicker { margin: 0 0 14px; color: var(--green); font-size: 22px; font-weight: 900; }
.section, .list-item, .empty-state, .welcome-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.section + .section, .list-item + .list-item { margin-top: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.2; font-weight: 900; }
.muted { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.center { text-align: center; }

.welcome-panel { display: grid; gap: 10px; margin-bottom: 18px; }
.welcome-title { margin: 0; font-size: 22px; font-weight: 950; }
.welcome-body { margin: 0; color: var(--muted); line-height: 1.5; }
.welcome-button, .plain-button { min-height: 44px; justify-self: start; padding: 0 16px; background: var(--green); color: var(--white); font-weight: 900; }
.plain-button.secondary { background: var(--green-soft); color: var(--green); }

.promise-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  box-shadow: var(--shadow);
}
.promise-card::before {
  content: "";
  position: absolute;
  right: -86px;
  top: -92px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
  opacity: 0.16;
}
.promise-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}
.promise-card > * { position: relative; z-index: 1; }
.overline { margin: 0; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.date-text { margin: 5px 0 0; color: rgba(255,255,255,0.88); font-size: 16px; }
.promise-text { margin: 70px 0 18px; font-size: clamp(30px, 5vw, 46px); line-height: 1.18; font-weight: 900; }
.reference { margin: 0; font-size: 18px; font-weight: 850; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.icon-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--green); color: var(--white); font-weight: 900; }
.icon-button.light { background: rgba(255,255,255,0.92); color: var(--ink); }
.icon-button.selected { background: var(--gold); color: var(--ink); }
.icon-button.locked-action { background: var(--border); color: var(--muted); }
.icon-button svg, .bottom-tab svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.reading-reference { margin: 16px 0 0; color: var(--ink); font-size: 26px; line-height: 1.15; font-weight: 950; }
.pill-row, .segmented, .chapter-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill, .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 850; border: 1px solid transparent; border-radius: 999px; }
.chip { border-radius: 8px; background: transparent; border-color: var(--border); color: var(--ink); }
.chip.active { background: var(--green); border-color: var(--green); color: var(--white); }
.chapter-chip { width: 44px; justify-content: center; padding: 0; }
.chapter-chip.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.reading-text-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 18px; }
.chapter-header {
  display: grid;
  gap: 12px;
}
.chapter-title { margin: 0 0 8px; color: var(--green); font-size: 18px; font-weight: 950; }
.chapter-text { margin: 0 0 8px; color: var(--ink); font-size: 17px; line-height: 1.55; }
.verse-number { color: var(--green); font-size: 13px; font-weight: 950; }
.verse-row {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.verse-row.highlighted {
  background: rgba(214, 162, 61, 0.22);
  border-color: rgba(214, 162, 61, 0.45);
}
.verse-row.bookmarked {
  border-color: rgba(47, 107, 79, 0.32);
}
.verse-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.verse-tool {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.verse-tool.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.verse-tool.locked {
  background: var(--border);
  color: var(--muted);
}
.bible-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-notice {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}
.feature-notice.allowed {
  background: var(--green-soft);
  color: var(--green);
}
.feature-notice.restricted {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
}
.progress-track { height: 10px; margin-top: 16px; overflow: hidden; background: var(--border); border-radius: 999px; }
.progress-fill { height: 100%; width: 0; background: var(--green); border-radius: inherit; }
.list-title { margin: 0; color: var(--green); font-size: 16px; font-weight: 900; }
.list-body { margin: 7px 0 0; color: var(--ink); font-size: 16px; line-height: 1.45; }
.empty-state { display: grid; place-items: center; gap: 8px; padding: 36px 22px; }
.empty-state svg { color: var(--gold); width: 38px; height: 38px; }

.bible-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: stretch; min-width: 0; }
.bible-layout > .section {
  height: min(72vh, 760px);
  min-height: 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.book-list { flex: 1; min-height: 0; overflow: auto; padding-right: 4px; display: grid; gap: 8px; }
.book-list .chip { width: 100%; justify-content: flex-start; }
.chapter-scroll { min-height: 0; min-width: 0; overflow: auto; }
.audio-upgrade {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.audio-upgrade h3 {
  margin: 0;
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
}
.language-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 18px;
  min-width: 0;
}
.bible-version-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}
.compact-select {
  margin-top: 0;
}
.language-placeholders {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.language-placeholder {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.language-placeholder:hover { border-color: var(--green); background: var(--green-soft); }
.language-placeholder strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.language-placeholder span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.settings-grid, .pricing-grid { display: grid; gap: 14px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid > .section {
  margin-top: 0;
  height: 100%;
}
.settings-grid + .download-panel {
  margin-top: 16px;
}
.voice-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.voice-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.voice-row strong {
  display: block;
  color: var(--ink);
}
.voice-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.voice-actions {
  display: flex;
  gap: 8px;
}
.voice-chip {
  min-width: 82px;
  justify-content: center;
}
.input { width: 100%; min-height: 44px; margin-top: 14px; padding: 0 12px; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: 8px; font-weight: 800; }
.toggle { position: relative; width: 54px; height: 30px; border: 0; border-radius: 999px; background: var(--border); }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: left 160ms ease; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.toggle[aria-pressed="true"] { background: var(--green); }
.toggle[aria-pressed="true"]::after { left: 28px; }
.plan-text { margin: 14px 0 0; font-size: 24px; font-weight: 950; }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.plan-card { text-align: left; padding: 16px; background: transparent; border: 1px solid var(--border); color: var(--ink); }
.plan-card.active { background: var(--green-soft); border-color: var(--green); }
.plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.plan-action {
  width: 100%;
  justify-content: center;
}
.price-title { margin: 0; color: var(--green); font-size: 17px; font-weight: 900; }
.price { margin: 5px 0 0; font-size: 26px; font-weight: 950; }
.plan-summary { margin: 12px 0 0; line-height: 1.42; }
.plan-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 950; }
.plan-card.active .plan-badge { background: var(--green); border-color: var(--green); color: var(--white); }
.offer-list { margin: 14px 0 0; padding-left: 18px; color: var(--ink); line-height: 1.45; }
.revenuecat-checkout {
  margin-top: 18px;
}
.profile-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.profile-panel .action-row {
  grid-column: 1 / -1;
}
.profile-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-stats div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.profile-stats strong {
  display: block;
  color: var(--green);
  font-size: 24px;
}
.profile-stats span {
  color: var(--muted);
  font-size: 14px;
}
.access-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.access-grid {
  display: grid;
  gap: 8px;
}
.access-grid span {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}
.access-grid .allowed {
  background: var(--green-soft);
  color: var(--green);
}
.access-grid .restricted {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}
.profile-settings {
  margin-top: 16px;
}
.profile-settings > .section-title {
  margin-bottom: 12px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: start;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}
.auth-form .input {
  margin-top: 0;
}
.textarea {
  min-height: 180px;
  padding-top: 12px;
  resize: vertical;
}
.contact-side {
  align-content: start;
}
.contact-email {
  margin: 10px 0 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}
.contact-email a {
  color: inherit;
}
.plan-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.plan-choice legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 950;
}
.plan-choice label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.plan-choice small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.check-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  font-weight: 700;
  color: var(--muted);
}
.check-row input {
  margin-top: 4px;
}
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 950;
}
.auth-side {
  display: grid;
  gap: 8px;
}
.download-panel { scroll-margin-top: 90px; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.store-card { min-height: 70px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); display: grid; align-content: center; gap: 3px; }
.store-card strong { color: var(--green); }

.bottom-tabs { display: none; }
.loading { min-height: 50vh; display: grid; place-items: center; color: var(--green); font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 40; padding: 12px 16px; max-width: min(560px, calc(100% - 32px)); border-radius: 8px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); font-weight: 800; }
.cookie-consent {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(940px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.cookie-consent h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}
.cookie-consent p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; justify-items: start; }
  .top-tabs { width: 100%; overflow-x: auto; }
  .top-tabs { grid-column: 1 / -1; grid-row: 2; }
  .download-actions { display: flex; grid-column: 2; grid-row: 1; justify-self: end; }
  .app-shell { width: min(680px, calc(100% - 28px)); padding-top: 20px; }
  .hero, .home-hero, .screen-grid, .bible-layout, .settings-grid, .pricing-grid, .store-grid, .feature-band, .language-strip, .auth-layout, .bible-version-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 16px; }
  .home-hero { padding-top: 10px; }
  .auth-row { justify-content: flex-start; }
  .promise-card { min-height: 470px; }
  .bible-layout > .section { height: auto; min-height: 0; }
  .book-list { max-height: none; display: flex; overflow-x: auto; overflow-y: hidden; max-width: 100%; }
  .book-list .chip { width: auto; white-space: nowrap; }
  .chapter-grid { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .reading-text-panel, .chapter-header, .bible-tools { min-width: 0; max-width: 100%; }
  .bible-tools .icon-button { flex: 1 1 150px; min-width: 0; }
  .profile-panel { grid-template-columns: 1fr; }
  .bottom-tabs { display: none; }
  .bottom-tab { display: grid; place-items: center; gap: 4px; min-height: 52px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 850; }
  .bottom-tab.active { color: var(--green); background: var(--green-soft); }
}

@media (max-width: 520px) {
  .app-shell { width: calc(100% - 20px); padding-top: 12px; }
  .brand-lockup { font-size: 18px; }
  .download-actions { width: 100%; grid-column: 1 / -1; justify-self: stretch; }
  .translate-control { width: 100%; justify-content: space-between; }
  .translate-control select { flex: 1; }
  .download-actions .store-link, .download-actions .profile-account { flex: 1; justify-content: center; }
  .home-lower-grid { grid-template-columns: 1fr; }
  .home-scripture-banner {
    min-height: 360px;
    background:
      linear-gradient(180deg, rgba(17, 33, 25, 0.82), rgba(17, 33, 25, 0.44)),
      url("assets/jesus-carrying-sheep-banner.png") center top / cover;
  }
  .home-scripture-content { min-height: 360px; }
  .search-row { grid-template-columns: 1fr; }
  .promise-card, .section, .list-item, .welcome-panel { padding: 16px; }
  .home-promise { min-height: 320px; padding: 18px; }
  .promise-card { min-height: 430px; }
  .promise-text { margin-top: 48px; }
  .action-row { gap: 8px; }
  .icon-button { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .bible-tools .icon-button { flex-basis: 100%; }
  .site-footer nav { gap: 4px 6px; }
  .site-footer a, .footer-link-button { min-height: 44px; padding: 8px 10px; }
  .voice-row { grid-template-columns: 1fr; }
  .voice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-consent { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}
