@font-face { font-family: "Besorah Wordmark"; font-weight: 100 900; font-display: swap; src: url("./fonts/besorah-wordmark.woff2") format("woff2"); }
/* Bible marketing site — leather & gold, matching the app's own covers. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-display: swap; src: url("./fonts/cormorant-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("./fonts/alegreya-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("./fonts/alegreya-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("./fonts/alegreya-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Shofar"; font-weight: 400; font-display: swap; src: url("./fonts/shofar-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF; }
@font-face { font-family: "Shofar"; font-weight: 600 800; font-display: swap; src: url("./fonts/shofar-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF; }

:root {
  --bg: #fbf7ee;
  --bg-elev: #ffffff;
  --bg-sunk: #f2ecdd;
  --fg: #2a2217;
  --muted: #6f6551;
  --border: #e4dbc6;
  --accent: #1d4f9c;
  --accent-ink: #1d4f9c;
  --gold: #a87c1c;
  --gold-bright: #e7c66b;
  --btn-bg: #17356b;
  --btn-fg: #fff;
  --leather: #14274d;
  --leather-2: #0c1730;
  --burgundy: #6e1f1f;
  --shadow: 0 1px 2px #2a22170d, 0 10px 28px -10px #2a22171f;
  --shadow-lg: 0 6px 16px #2a221714, 0 30px 70px -20px #2a221733;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Alegreya", Georgia, serif;
  --hebrew: "Shofar", "Alegreya", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --container: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1424; --bg-elev: #141d33; --bg-sunk: #0a101d; --fg: #ece6d6; --muted: #a39b86;
    --border: #25314d; --accent: #6db3f2; --accent-ink: #8cc4f5; --gold: #e7c66b;
    --btn-bg: #e7c66b; --btn-fg: #1a1408; --shadow: 0 1px 2px #0006, 0 10px 28px -10px #0008; --shadow-lg: 0 6px 16px #0005, 0 30px 70px -20px #000a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.15rem/1.6 var(--serif); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.he { font-family: var(--hebrew); direction: rtl; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font: 600 1.7rem/1 "Besorah Wordmark", var(--display); color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 1.4rem; font: 500 .95rem var(--sans); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--fg); }
.nav .btn { text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: color-mix(in srgb, var(--fg) 45%, transparent); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.nav .btn { padding: .5rem 1.1rem; font-size: .92rem; color: var(--btn-fg); }
@media (max-width: 52rem) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 5rem 0 3rem; text-align: center; background: radial-gradient(60rem 28rem at 50% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.hero .heb { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.2 var(--hebrew); color: var(--gold); direction: rtl; margin-bottom: .5rem; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { max-width: 42rem; margin: 0 auto 2rem; font-size: 1.35rem; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.hero-note { font: .9rem var(--sans); color: var(--muted); }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--leather-2); }
.shot img { width: 100%; }
.hero .shot { max-width: 64rem; margin: 3rem auto 0; }

/* sections */
section { padding: 5rem 0; }
section.alt { background: var(--bg-sunk); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.2rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1.25fr; } .split.flip { grid-template-columns: 1.25fr 1fr; } .split.flip > :first-child { order: 2; } }
.split h3 { font-size: 2rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .25em; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.45rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.card .ic { font: 1.6rem/1 var(--display); color: var(--gold); margin-bottom: .6rem; }

/* texts table */
.texts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.volume { border-radius: var(--radius); padding: 1.75rem; color: #f3ead2; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; border: 1px solid #ffffff22; }
.volume.tanakh { background: linear-gradient(155deg, #1c3a74, var(--leather-2)); }
.volume.nt { background: linear-gradient(155deg, #7c2626, #3a0f12); }
.volume.apoc { background: linear-gradient(155deg, #2c4a3a, #0f1f19); }
.volume h3 { color: var(--gold-bright); margin-bottom: .1em; }
.volume .native { font: 1.7rem/1.2 var(--hebrew); direction: rtl; color: var(--gold-bright); opacity: .9; margin-bottom: .6rem; }
.volume .native.gr { font-family: var(--serif); direction: ltr; font-style: italic; }
.volume ul { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 1.05rem; }
.volume li { padding: .45rem 0; border-top: 1px solid #ffffff1f; }
.volume li b { color: var(--gold-bright); font-weight: 600; }
.volume li span { display: block; font-size: .92rem; opacity: .75; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 3rem; }
.stat { text-align: center; }
.stat b { display: block; font: 600 3rem/1 var(--display); color: var(--gold); }
.stat span { font: .85rem var(--sans); color: var(--muted); }

/* theme swatches */
.swatches { display: flex; gap: .6rem; margin: 1rem 0; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px #ffffff55, 0 1px 3px #0004; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { font: .95rem var(--sans); color: var(--muted); padding-top: .65rem; text-align: center; }
.gallery figcaption b { color: var(--fg); display: block; font: 600 1.1rem var(--display); font-size: 1.3rem; }

/* get band */
.band { background: linear-gradient(160deg, var(--leather), var(--leather-2)); color: #f3ead2; text-align: center; border: 0; }
.band h2 { color: var(--gold-bright); }
.band p { color: #cfc6ad; max-width: 40rem; margin-inline: auto; }
.band .btn-primary { background: var(--gold-bright); color: #1a1408; }
.band .btn-ghost { color: #f3ead2; border-color: #f3ead288; }
.soon { display: inline-block; font: 600 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .55rem 1rem; border: 1px dashed #f3ead288; border-radius: 999px; color: #f3ead2; opacity: .85; }
.platforms { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 2.5rem 0; text-align: left; }
.platforms > div { border: 1px solid #ffffff26; border-radius: var(--radius); padding: 1.25rem 1.4rem; background: #ffffff0a; }
.platforms h3 { color: var(--gold-bright); font-size: 1.35rem; margin-bottom: .2em; }
.platforms p { margin: 0; font-size: 1rem; color: #cfc6ad; }

/* cli page */
.dl { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 2rem 0 1rem; }
.dl a { display: block; text-decoration: none; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); color: var(--fg); transition: transform .15s, border-color .15s; }
.dl a:hover { transform: translateY(-2px); border-color: var(--gold); }
.dl b { display: block; font: 600 1.25rem var(--display); font-size: 1.45rem; }
.dl span { font: .85rem var(--sans); color: var(--muted); }
pre, code { font-family: var(--mono); }
pre { max-width: 100%; background: #0d1118; color: #d6dbe6; padding: 1.1rem 1.3rem; border-radius: 12px; overflow-x: auto; font-size: .92rem; line-height: 1.55; border: 1px solid #ffffff14; margin: 1rem 0; }
code { font-size: .88em; background: var(--bg-sunk); padding: .1em .38em; border-radius: 5px; border: 1px solid var(--border); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
pre .c { color: #7c869b; } pre .g { color: #e7c66b; } pre .p { color: #74cf8f; }
.cmds { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.cmds td { padding: .7rem .5rem; border-top: 1px solid var(--border); vertical-align: top; }
.cmds td:first-child { white-space: nowrap; padding-right: 1.5rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 3rem; position: relative; margin-bottom: 1.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gold); color: #1a1408; font: 700 1rem/2.1rem var(--sans); text-align: center; }
.doc { max-width: 50rem; margin: 0 auto; padding: 3rem 0 5rem; }
.faq details { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font: 600 1.35rem var(--display); }
.faq details p { margin: .6rem 0 0; color: var(--muted); }

footer { padding: 3rem 0; border-top: 1px solid var(--border); font: .95rem var(--sans); color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
footer a { color: var(--muted); }
footer .credits { max-width: 40rem; }

.reveal { opacity: 1; }
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .dl a { transition: none; } }
@media (max-width: 40rem) { .cmds, .cmds tbody, .cmds tr, .cmds td { display: block; } .cmds td:first-child { white-space: normal; padding-bottom: 0; border-top: 1px solid var(--border); } .cmds td + td { border-top: 0; padding-top: .2rem; } section { padding: 3.5rem 0; } .hero { padding-top: 3rem; } body { font-size: 1.08rem; } }

kbd { font: .82em var(--mono); padding: .08em .45em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-elev); white-space: nowrap; }

/* Live terminal demo (the WebAssembly build, loaded on demand from ./terminal/) */
.live-demo { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0a101d; box-shadow: var(--shadow-lg); }
.live-demo::before { content: ""; display: block; height: 28px; background: #1b1f2a; background-image: radial-gradient(circle at 16px 14px, #ff5f57 5px, transparent 6px), radial-gradient(circle at 36px 14px, #febc2e 5px, transparent 6px), radial-gradient(circle at 56px 14px, #28c840 5px, transparent 6px); }
.live-demo-stage { position: relative; height: clamp(440px, 62vw, 660px); background: #0a101d center top / cover no-repeat; }
.live-demo-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,29,.3), rgba(10,16,29,.82)); pointer-events: none; }
.live-demo-stage.is-live::after { display: none; }
.live-demo-start { position: absolute; z-index: 1; inset: 0; margin: auto; width: max-content; height: max-content; font-size: 1.05rem; }
.live-demo-stage iframe { background: #0a101d; z-index: 2; }
.live-demo-note { max-width: 46rem; margin: 1.2rem auto 0; text-align: center; font: .95rem var(--sans); }

/* policy / credits pages */
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.credit-list { padding-left: 1.2rem; }
.credit-list li { margin: .55rem 0; }
.credit-list small { color: var(--muted); font: .9rem var(--sans); }

/* trust strip */
.trust { padding: 1.6rem 0; background: var(--bg-sunk); border-block: 1px solid var(--border); }
.trust .grid > div { display: flex; flex-direction: column; gap: .15rem; text-align: center; }
.trust strong { font: 600 1.05rem var(--sans); color: var(--fg); }
.trust span { font: .92rem var(--sans); color: var(--muted); }

.badge { display: inline-flex; align-items: center; transition: transform .15s; }
.badge img { display: block; height: 48px; width: auto; }
.badge:hover { transform: translateY(-1px); }
