:root {
  --bg: #F6F7F9; --card: #FFFFFF; --line: #E1E4EA; --line-strong: #C9CED8;
  --text: #14181F; --muted: #5B6472; --blue: #1D4E89; --blue-dark: #123560;
  --blue-soft: #E6EEF8; --blue-tint: #F1F6FC; --green: #0F6B5C; --green-soft: #E3F3EF;
  --amber: #8A4B08; --amber-soft: #FBEBD8; --alt: #EEF1F5; --err: #9B2C1F;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; }
button, input { font-family: inherit; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow > * { max-width: 696px; }

/* header */
.site-header { background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 16px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.signin { margin-left: auto; order: 2; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; opacity: .75; cursor: not-allowed; }
.signin span { margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; margin-right: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }

/* type + sections */
h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 6vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.h2 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); font-weight: 500; line-height: 1.2; }
.h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; }
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.status { margin: 0; font-size: 17px; line-height: 1.55; }
.hero { padding: 28px 0 8px; }
.hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.block { padding: 40px 0; }
.block .lead { margin-bottom: 18px; }
.block.alt { background: var(--alt); }
.pill { align-self: flex-start; padding: 6px 14px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.textlink { font-weight: 500; }
.crumb { align-self: flex-start; font-size: 14px; }
.note-line { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* buttons + forms */
.btn { min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.waitlist { margin-top: 6px; }
.wl-row { display: flex; flex-direction: column; gap: 10px; }
.waitlist input[type=email] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--text); font-size: 17px; }
.wl-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; font-weight: 500; }
.wl-msg.ok { color: var(--green); }
.wl-msg.bad { color: var(--err); }
.wl-fine { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* cards */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); text-decoration: none; }
.card h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card.link:hover { border-color: var(--blue); color: var(--text); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.chip.now { background: var(--blue-soft); color: var(--blue); }
.chip.later { background: var(--alt); color: var(--muted); }
.src-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }

/* split + mock sign-in */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.split .lead { margin-bottom: 14px; }
.mock { position: relative; max-width: 360px; width: 100%; justify-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 14px; user-select: none; }
.mock-tag { position: absolute; top: 10px; right: 12px; padding: 2px 10px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 600; }
.mock-title { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.mock-field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.mock-field div { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; }
.mock-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; opacity: .55; }

/* steps, lists, prose */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps .n { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.steps h3 { margin: 4px 0 4px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }
.prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
.notice { margin: 0 0 28px; padding: 14px 16px; border-radius: 12px; background: var(--amber-soft); color: #5E3305; font-size: 15px; line-height: 1.5; }
.callout { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: var(--card); font-size: 16px; line-height: 1.55; }
.verse { margin: 0 0 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.verse blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.verse figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.hero + .block .h2 { margin-top: 36px; }
.hero + .block .notice + .h2 { margin-top: 0; }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { min-height: 52px; padding: 14px 18px; display: flex; align-items: center; cursor: pointer; font-size: 16px; font-weight: 600; list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { margin: 0; padding: 14px 18px 16px; font-size: 16px; line-height: 1.6; color: #2A303B; }

/* example answer */
.answer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 20px; }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.asked { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.answer p { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.answer p:last-child { margin-bottom: 0; }
.cite { display: inline-block; min-width: 20px; margin: 0 2px 0 4px; padding: 0 5px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font: 600 12px/20px var(--sans); text-align: center; text-decoration: none; vertical-align: 2px; }
.cite:hover { background: #D5E3F4; }
hr { width: 100%; height: 1px; margin: 0; border: 0; background: #E6E9EF; }
.sources h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.sources h2 span { color: var(--muted); font-weight: 400; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.src { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; scroll-margin-top: 24px; }
.src.active { border-color: var(--blue); background: var(--blue-tint); }
.src-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 12px; background: #EEF1F5; font-size: 13px; font-weight: 600; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.tag.bible { background: var(--blue-soft); color: var(--blue); }
.tag.commentary { background: var(--green-soft); color: var(--green); }
.tag.egw { background: var(--amber-soft); color: var(--amber); }
.ref { flex: 1 1 180px; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.toggle { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--blue); font-size: 14px; font-weight: 500; cursor: pointer; }
.toggle:hover { background: var(--blue-soft); }
.src-text { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: #2A303B; }
.src-text[hidden] { display: none; }

/* cta + footer */
.cta { background: var(--blue-soft); padding: 40px 0; }
.cta .wrap { display: flex; flex-direction: column; gap: 10px; }
.cta h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.cta p { margin: 0; color: #3D4350; }
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .hero { padding-top: 48px; }
  .wl-row { flex-direction: row; }
  .wl-row input { flex: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .nav { order: 2; width: auto; margin-left: 8px; }
  .signin { order: 3; }
  .answer { padding: 28px; }
  .answer p { font-size: 20px; }
  .src { padding: 12px 16px; }
  .foot-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 960px) { .grid:not(.two) { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* single-page additions */
section[id], .cta[id] { scroll-margin-top: 12px; }
.block.tight { padding-top: 8px; }
.h2.gap { margin-top: 40px; }
.ask { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ask label { font-size: 14px; font-weight: 600; }
.ask textarea { width: 100%; min-height: 112px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #FAFBFC; color: var(--text); font: 17px/1.5 var(--sans); resize: none; cursor: not-allowed; }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); }
.note-line { margin: 20px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.nav a.navcta { margin-left: auto; padding: 0 16px; border-radius: 10px; background: var(--blue); color: #fff; }
.nav a.navcta:hover { background: var(--blue-dark); color: #fff; }
@media (min-width: 640px) { .ask { padding: 20px; } .nav { margin-left: auto; } .nav a.navcta { margin-left: 8px; } }

/* ---- tabbed layout ---- */
.site-header .bar { flex-wrap: nowrap; padding-bottom: 12px; }
.site-header .navcta { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header .navcta:hover { background: var(--blue-dark); color: #fff; }
.tabbar { display: none; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.js .tabbar { display: block; }
.tablist { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--blue); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--blue); font-weight: 600; }
.panel { padding: 28px 0 56px; }
.panel:focus { outline: none; }
.js .panel:not(.is-active) { display: none; }
.panel[hidden] { display: none; }
.hero-in { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.lead.gapb { margin-bottom: 22px; }
.panel .faq .h2, .panel > .wrap > .h2:first-child { margin-top: 0; }
.panel .src-list { margin-bottom: 28px; }
.site-footer { margin-top: 8px; }
@media (min-width: 640px) { .panel { padding-top: 40px; } .hero-in { margin-bottom: 28px; } .tab { padding: 0 18px; } }

/* motivation block */
.why { margin: 0 0 24px; padding: 18px 18px 6px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: var(--card); }
.why h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.why p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: #2A303B; }
.why p strong { font-weight: 600; color: var(--text); }
@media (min-width: 640px) { .why { padding: 22px 24px 10px; } .why p { font-size: 17px; } }
