/* Tsafan website. Clear Morning tokens (app/src/theme/tokens.ts) + Navy & Stone dark for the verse band. No external requests. */
@font-face { font-family: "Lexend"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Lexend-400.woff2") format("woff2"), url("../fonts/Lexend-400.ttf") format("truetype"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Lexend-600.woff2") format("woff2"), url("../fonts/Lexend-600.ttf") format("truetype"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/Newsreader-400-italic.woff2") format("woff2"), url("../fonts/Newsreader-400-italic.ttf") format("truetype"); }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/FrankRuhlLibre-400.woff2") format("woff2"), url("../fonts/FrankRuhlLibre-400.ttf") format("truetype"); }

:root {
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --surface2: #DDE7E1;
  --ink: #17201B;
  --ink2: #4A5650;
  --line: #C9D5CE;
  --primary: #1F5A45;
  --on-primary: #FFFFFF;
  --glow: #F0A860;
  --art-hill: #1F5A45;
  --sky-bg: #DCEBFA;
  --sky-ink: #1D4F86;
  --apricot-bg: #FBE3CC;
  --apricot-ink: #8A4410;
  --sage-bg: #DDE7E1;
  --sage-ink: #1F5A45;
  --hdr: rgba(244, 246, 242, .86);
  --font: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* spacing scale */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1513;
    --surface: #18201C;
    --surface2: #222C27;
    --ink: #EAF0EB;
    --ink2: #A7B3AC;
    --line: #2F3B35;
    --primary: #8FD3B4;
    --on-primary: #0B1F17;
    --glow: #F0B27A;
    --art-hill: #2F6B55;
    --sky-bg: #1E2E40;
    --sky-ink: #9CC7F2;
    --apricot-bg: #3B2A1A;
    --apricot-ink: #F2BE8A;
    --sage-bg: #222C27;
    --sage-ink: #8FD3B4;
    --hdr: rgba(15, 21, 19, .86);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header: sticky, translucent. On text pages it sits inside .wrap, so it is stretched edge to edge with the clip trick. */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s1); padding: .4rem 0; flex-wrap: wrap;
  background: var(--hdr);
  box-shadow: 0 0 0 100vmax var(--hdr); clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.top.bar { display: block; padding: 0; box-shadow: none; clip-path: none; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); padding-block: .4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { width: 2.25rem; height: auto; }
.nav { display: flex; align-items: center; gap: .1rem .5rem; font-size: .98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem .35rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
/* Narrow phones: logo only (text stays for screen readers), smaller flags, header never wraps */
@media (max-width: 24.99rem) {
  .top, .row { flex-wrap: nowrap; }
  .brand { font-size: 0; gap: 0; }
  .nav { gap: 0 .1rem; font-size: .95rem; }
  .nav a { padding: .5rem .3rem; }
  .nav a.flag, .foot a.flag { width: 34px; }
  .flag img { width: 20px; height: 20px; }
}
@media (min-width: 36rem) { .brand { font-size: 1.3rem; gap: .6rem; } .nav { font-size: 1.05rem; gap: .25rem 1.1rem; } }

/* Donate pill (heart + word) in the header. Under 400px: Store leaves the header (it stays in the footer) and the pill is just the heart. */
.nav a.give { background: var(--primary); color: var(--on-primary); font-weight: 600; gap: .4rem; padding: .4rem .95rem .4rem .8rem; border-radius: 999px; }
.nav a.give:hover { text-decoration: none; filter: brightness(1.08); }
.nav a.give[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); border-radius: 999px; }
.give svg { width: 1.15rem; height: 1.15rem; flex: none; }
@media (max-width: 24.99rem) {
  .nav-store { display: none !important; }
  .nav a.give { width: 40px; padding: 0; justify-content: center; margin-left: .1rem; }
  .give span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 21rem) {
  .nav { font-size: .88rem; }
  .nav a { padding: .5rem .2rem; }
  .nav a.give { width: 38px; padding: 0; }
  .nav a.flag, .foot a.flag { width: 30px; }
  .flag img { width: 18px; height: 18px; }
}

/* Language flags: two small round icons in the header's right corner (swap the SVGs in img/flags/) */
.langs { display: inline-flex; align-items: center; gap: 0; margin-left: .15rem; }
.nav a.flag, .foot a.flag { width: 40px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; text-decoration: none; }
.flag img { display: block; width: 22px; height: 22px; border-radius: 50%; opacity: .75; transition: opacity .2s ease, transform .2s ease; }
.flag:hover img { opacity: 1; transform: scale(1.08); }
.flag[aria-current] img { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }

/* Buttons */
.soon {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--primary); color: var(--on-primary);
  border-radius: 999px; padding: .85rem 1.9rem .85rem 1.4rem; min-height: 60px;
  font-weight: 600; font-size: 1.1rem; line-height: 1.2; cursor: default; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(31, 90, 69, .6);
}
.soon svg { width: 1.6rem; height: 1.6rem; flex: none; }
.soon small { display: block; font-weight: 400; font-size: .85rem; opacity: .92; }
a.soon { cursor: pointer; transition: transform .2s ease; }
a.soon:hover { transform: translateY(-2px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .75rem 1.7rem;
  border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 1.1rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(31, 90, 69, .6); transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn svg { width: 1.4rem; height: 1.4rem; flex: none; }
.btn.light { background: var(--on-primary); color: var(--primary); box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: var(--s4); align-items: center; padding-block: var(--s4) var(--s5); }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 var(--s3); font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
.sub { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ink2); margin: 0 0 var(--s4); max-width: 30rem; line-height: 1.45; }
.meta { color: var(--ink2); margin: var(--s2) 0 0; font-size: 1rem; }
.meta b { color: var(--ink); font-weight: 600; }
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 4rem); min-height: calc(100svh - 4rem); padding-block: var(--s4); gap: var(--s5); }
}

/* Phone mockup */
.stage { position: relative; width: min(100%, 25rem); aspect-ratio: 100 / 135; margin-inline: auto; }
.field {
  position: absolute; inset: 0 8% 0 8%; z-index: 0; overflow: hidden;
  border-radius: 999px 999px 4rem 4rem;
  background:
    radial-gradient(circle at 74% 24%, var(--glow) 0 12%, transparent 12.4%),
    radial-gradient(ellipse 50% 22% at 85% 112%, var(--sage-ink) 0 98%, transparent 100%),
    radial-gradient(ellipse 58% 20% at 18% 110%, var(--art-hill) 0 98%, transparent 100%),
    var(--sky-bg);
}
.phone {
  position: absolute; z-index: 1; margin: 0; padding: 2.4% 2.4%;
  background: #0E1311; border-radius: 12% / 5.6%;
  box-shadow: 0 0 0 2px #2A332E inset, 0 30px 50px -18px rgba(10, 20, 15, .55), 0 8px 18px -8px rgba(10, 20, 15, .4);
  transition: rotate .6s ease, scale .6s ease;
}
.phone::before { content: ""; position: absolute; z-index: 2; top: 3.4%; left: 50%; width: 4.5%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #1E2723; box-shadow: 0 0 0 2px #0A0E0C; }
.phone img { display: block; width: 100%; height: auto; border-radius: 10% / 4.7%; background: var(--surface2); }
/* rotation uses the individual `rotate` property so `translate` (float, reveal) and `transform` (parallax) stay free */
.p1 { width: 58%; left: 6%; top: 6%; rotate: -3deg; }
.p2 { width: 50%; right: 3%; top: 0; rotate: 6deg; z-index: 1; }
.p1 { z-index: 2; }
.solo .p1 { left: 21%; rotate: -2deg; }
.flipped .p1 { left: auto; right: 6%; rotate: 3deg; }
.flipped .p2 { right: auto; left: 3%; rotate: -6deg; }
/* rise fills backwards only, so after it ends the phone is at its natural opacity 1; float only translates */
.hero .p1 { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards, float1 7s ease-in-out 1.1s infinite; transform: translateY(calc(var(--py, 0) * -1px)); }
.hero .p2 { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) backwards, float2 9s ease-in-out 1.3s infinite; transform: translateY(calc(var(--py, 0) * 1.5px)); }
@keyframes rise { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
@keyframes float1 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.65rem; } }
@keyframes float2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 .6rem; } }

/* Slow cross-fade between two screenshots in one phone (pure CSS) */
.xfade { display: grid; }
.xfade img { grid-area: 1 / 1; }
.xfade img + img { animation: xf 10s ease-in-out infinite; opacity: 0; }
@keyframes xf { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* Scroll reveal (classes are added by js/site.js only; without JS nothing is hidden) */
.rv { opacity: 0; translate: 0 2rem; transition: opacity .8s ease var(--d, 0s), translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), rotate .6s ease, scale .6s ease; }
.rv.in { opacity: 1; translate: 0 0; }

/* Feature sections */
.feat { padding-block: var(--s5); }
.feat .wrap { display: grid; gap: var(--s4); align-items: center; }
.feat h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 var(--s2); font-weight: 600; text-wrap: balance; }
.feat p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; max-width: 28rem; }
.kicker { display: inline-block; font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 var(--s2); padding: .2rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .55); max-width: none; }
.feat .field { background: radial-gradient(circle at 74% 24%, var(--glow) 0 12%, transparent 12.4%), radial-gradient(ellipse 85% 26% at 18% 100%, currentColor 0 98%, transparent 100%), var(--surface); opacity: .6; }
.feat .stage { width: min(100%, 23rem); }
.feat .stage.demo { width: min(100%, 26rem); aspect-ratio: 100 / 160; }
.demo .p1 { width: 70%; left: 2%; top: 3%; rotate: -2deg; }
.demo .p2 { width: 44%; right: 0; top: 12%; rotate: 6deg; }
.demo.flipped .p1 { left: auto; right: 2%; rotate: 2deg; }
.demo.flipped .p2 { right: auto; left: 0; rotate: -6deg; }
.sky { background: var(--sky-bg); color: var(--sky-ink); }
.apricot { background: var(--apricot-bg); color: var(--apricot-ink); }
.sage { background: var(--sage-bg); color: var(--sage-ink); }
@media (prefers-color-scheme: dark) { .kicker { background: rgba(255, 255, 255, .08); } .feat .field { opacity: .35; } }
@media (hover: hover) {
  .feat .stage:hover .p1 { scale: 1.035; }
  .feat .stage:hover .p2 { scale: .98; rotate: 8deg; }
  .feat .stage.flipped:hover .p2 { rotate: -8deg; }
}
@media (min-width: 52rem) {
  .feat { padding-block: var(--s6); }
  .feat .wrap { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .feat.rev .stage { order: 2; }
}

/* Live demos: the app screen rebuilt in HTML/CSS. Everything is sized in cqw (1cqw = 1% of the screen width) so it scales with the phone. */
.dm { container-type: inline-size; position: relative; aspect-ratio: 540 / 1140; border-radius: 10% / 4.7%; overflow: hidden; background: #F4F6F2; color: #17201B;
  --a-ink: #17201B; --a-ink2: #4A5650; --a-pri: #1F5A45; --a-line: #C9D5CE; --a-s2: #DDE7E1; --a-glow: #F0A860;
  font-family: var(--font); font-size: 16px; line-height: 1.25; text-align: left; -webkit-user-select: none; user-select: none; }
.dm-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 4.8cqw 7cqw; }
.dm-bar { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 6cqw; height: 9cqw; font-size: 4.3cqw; font-weight: 600; }
.dm-bar svg { position: absolute; left: .5cqw; width: 5cqw; height: 5cqw; fill: none; stroke: var(--a-ink); stroke-width: 2.2; stroke-linecap: round; }
.dm-steps { display: flex; justify-content: space-between; margin-top: 3.5cqw; font-size: 3.5cqw; font-weight: 600; color: var(--a-ink2); }
.dm-bars { display: flex; gap: 1.5cqw; margin-top: 2cqw; }
.dm-bars i { flex: 1; height: 1.4cqw; border-radius: 9cqw; background: var(--a-glow); }
.dm-bars i.off { background: var(--a-line); }
.dm-kick { margin-top: 6cqw; font-size: 3.5cqw; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a-pri); }
.dm-title { display: flex; align-items: center; gap: 2.5cqw; margin-top: 1.5cqw; font-size: 6.2cqw; font-weight: 600; line-height: 1.2; }
.dm-title b { font-size: 2.8cqw; font-weight: 600; border: .35cqw solid var(--a-ink2); color: var(--a-ink2); border-radius: 2cqw; padding: .4cqw 1.8cqw; }
.dm-score { margin-top: 3cqw; min-height: 5.5cqw; font-size: 4.2cqw; font-weight: 600; transition: opacity .5s ease; }
.dm-card { position: relative; background: #fff; border-radius: 6.5cqw; padding: 4.5cqw 5cqw 5cqw; margin-top: 3cqw; }
.dm-card.first { margin-top: 5cqw; }
.dm-head { display: flex; align-items: center; justify-content: flex-end; gap: 2cqw; min-height: 11cqw; margin-bottom: 2cqw; }
.dm-ref { flex: 1; font-size: 3.4cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a-pri); }
.dm-ico { width: 11cqw; height: 11cqw; border-radius: 50%; border: .35cqw solid var(--a-pri); display: grid; place-items: center; }
.dm-ico svg { width: 5.5cqw; height: 5.5cqw; fill: var(--a-pri); }
.dm-sp { height: 11cqw; padding: 0 4.2cqw; border-radius: 9cqw; background: var(--a-s2); font-weight: 600; font-size: 3.5cqw; display: grid; place-items: center; }
.dm-verse { font-size: 5.7cqw; line-height: 2.05; min-height: 46cqw; font-weight: 400; letter-spacing: 0; }
.dm .w { display: inline-block; line-height: 1.7; padding: 0 .12em; margin: -.5cqw calc(-.12em - .5cqw); border-radius: .3em; transition: color .5s ease, background-color .5s ease, opacity .3s ease, border-color .4s ease; border: .5cqw solid transparent; }
.dm .w .r { font-size: 1em; transition: font-size .45s ease, opacity .45s ease; }
.dm .w.ltr .r { font-size: 0; opacity: 0; }
.dm .w.ltr .f { color: var(--a-pri); }
.dm .w.gap { color: transparent; background: var(--a-s2); border-bottom-color: #4A5650; border-radius: 1.8cqw 1.8cqw 0 0; }
.dm .w.gap .f, .dm .w.gap .r { color: transparent; }
.dm .w.ltr { background: transparent; }
.dm-tip { display: grid; margin-top: 4cqw; font-size: 3.6cqw; line-height: 1.4; color: var(--a-ink2); }
.dm-tip span { grid-area: 1 / 1; transition: opacity .5s ease; }
.dm[data-lvl="3"] .tip1, .dm:not([data-lvl="3"]) .tip3 { opacity: 0; }
.dm-lvl { display: flex; align-items: center; gap: 1.8cqw; margin-top: 3.5cqw; font-size: 3.8cqw; font-weight: 600; line-height: 1.2; }
.dm-lvl i { flex: none; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; border: .5cqw solid var(--a-ink2); transition: background-color .3s ease; }
.dm-lvl i.on { background: var(--a-ink2); }
.dm-lvl span { margin-left: .8cqw; }
.dm-ghost { align-self: flex-start; margin-top: 3.5cqw; height: 12cqw; padding: 0 5cqw; border: .5cqw solid #9DB5A8; color: #9DB5A8; border-radius: 9cqw; font-weight: 600; font-size: 4.2cqw; display: grid; place-items: center; }
.dm-cta { margin-top: auto; height: 13.5cqw; border-radius: 9cqw; background: var(--a-pri); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 4.6cqw; transition: opacity .5s ease; }
.dm-cap { display: grid; margin-top: 3.5cqw; font-size: 3.6cqw; line-height: 1.4; color: var(--a-ink2); }
.dm-cap span { grid-area: 1 / 1; transition: opacity .5s ease; }
.dm-grades { display: flex; gap: 3cqw; margin-top: 3.5cqw; transition: opacity .5s ease; }
.dm .g { flex: 1; height: 23cqw; border-radius: 11cqw; border: .4cqw solid var(--a-line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8cqw; font-weight: 600; font-size: 3.9cqw; line-height: 1.15; }
.dm .g .ic { font-size: 5.4cqw; line-height: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols", var(--font); font-weight: 400; }
.dm .g small { font-size: 2.9cqw; font-weight: 400; }
.dm .g.sel { background: var(--a-pri); color: #fff; border: .8cqw solid #17201B; }
.dm-mic { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 21cqw; height: 21cqw; border-radius: 50%; background: var(--a-pri); display: grid; place-items: center; opacity: 0; transition: opacity .4s ease; }
.dm-mic svg { width: 10cqw; height: 10cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-mic::before, .dm-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: .8cqw solid var(--a-pri); opacity: 0; }
/* JS-controlled states. The HTML default (data-phase="grade") is the finished state, so without JS you see the result. */
.dm.armed .w:not(.on) { opacity: 0; }
.dm[data-phase="mic"] .miss, .dm[data-phase="type"] .miss { display: none; }
.dm[data-phase="mic"] .wrong .c, .dm[data-phase="type"] .wrong .c { display: none; }
.dm .wrong .t { display: none; }
.dm[data-phase="mic"] .wrong .t, .dm[data-phase="type"] .wrong .t { display: inline; }
.dm[data-phase="check"] .bad, .dm[data-phase="grade"] .bad { border: .5cqw dashed var(--a-pri); border-radius: 1.8cqw; color: var(--a-pri); }
.dm[data-phase="check"] .extra, .dm[data-phase="grade"] .extra { text-decoration: line-through; }
.dm[data-phase="mic"] .dm-score, .dm[data-phase="type"] .dm-score,
.dm[data-phase="mic"] .dm-grades, .dm[data-phase="type"] .dm-grades, .dm[data-phase="check"] .dm-grades { opacity: 0; }
.dm[data-phase="mic"] .dm-cta, .dm[data-phase="type"] .dm-cta, .dm[data-phase="check"] .dm-cta { opacity: .35; }
.dm[data-phase="mic"] .cap-b, .dm[data-phase="type"] .cap-b, .dm[data-phase="check"] .cap-b { opacity: 0; }
.dm[data-phase="grade"] .cap-a, .dm[data-phase="check"] .cap-a { opacity: 0; }
.dm[data-phase="mic"] .dm-mic { opacity: 1; }
.dm[data-phase="mic"] .dm-mic::before { animation: ring 1.6s ease-out infinite; }
.dm[data-phase="mic"] .dm-mic::after { animation: ring 1.6s .5s ease-out infinite; }
@keyframes ring { from { scale: 1; opacity: .55; } to { scale: 2.3; opacity: 0; } }
.dm[data-phase="grade"] .g.sel { animation: press .6s ease; }
@keyframes press { 0% { scale: .94; } 60% { scale: 1.03; } 100% { scale: 1; } }

/* "Free. No ads." feature: big zero card instead of a screenshot */
.zero { position: relative; width: min(100%, 23rem); aspect-ratio: 1; margin-inline: auto; overflow: hidden; border-radius: 2.5rem; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 80% 20%, var(--glow) 0 9%, transparent 9.4%), radial-gradient(ellipse 70% 18% at 20% 100%, currentColor 0 98%, transparent 100%), var(--surface); }
.zero .n { font-size: clamp(9rem, 28vw, 13rem); font-weight: 600; line-height: .85; letter-spacing: -.05em; }
.zero .l { font-size: 1.5rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: .5rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: var(--s3) 0 0; }
.facts li { background: var(--surface); color: inherit; font-weight: 600; font-size: 1.05rem; padding: .55rem 1.2rem; border-radius: 999px; }

/* Bibles band on the home page (no longer used) */
.bibles-band { background: var(--surface); padding-block: var(--s4); border-block: 1px solid var(--line); }
.bibles-band .wrap { display: grid; gap: var(--s3); align-items: center; }
.bibles-band .kicker { background: var(--surface2); color: var(--primary); margin-bottom: var(--s1); }
.bibles-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 600; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.3rem; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.chip:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
@media (min-width: 52rem) { .bibles-band .wrap { grid-template-columns: 1fr 1.3fr; gap: var(--s5); } }

/* Verse band: Navy & Stone dark, always */
.verse { background: #121B2A; color: #F8F4EE; padding-block: var(--s5); text-align: center; }
.verse .wrap { max-width: 56rem; }
.hebrew { font-family: "Frank Ruhl Libre", "Times New Roman", "Noto Serif Hebrew", serif; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1.1; margin: 0; color: #E0A585; }
.verse blockquote { margin: var(--s3) auto var(--s3); font-family: "Newsreader", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 4.8vw, 3.4rem); line-height: 1.2; text-wrap: balance; }
.verse blockquote p { margin: 0; }
.verse cite { display: block; margin-top: var(--s2); font-family: var(--font); font-style: normal; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: #B7BFCC; }
.verse .say { margin: var(--s4) auto 0; max-width: 34rem; color: #B7BFCC; font-size: 1.15rem; }
.verse .say b { color: #F8F4EE; font-weight: 600; }
@media (min-width: 52rem) { .verse { padding-block: var(--s6); } }

/* Final call to action */
.cta { background: var(--primary); color: var(--on-primary); text-align: center; padding-block: var(--s5); }
.cta h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 var(--s3); font-weight: 600; text-wrap: balance; }
.cta .soon { background: var(--on-primary); color: var(--primary); box-shadow: none; }
.cta .meta { color: inherit; opacity: .92; }

/* Text pages (bibles, help, privacy, 404) */
.page { padding: var(--s3) 0 var(--s5); }
.page.wide { max-width: 62rem; margin-inline: auto; }
.page h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: var(--s3) 0 var(--s2); }
.page h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); line-height: 1.25; margin: var(--s4) 0 var(--s1); font-weight: 600; scroll-margin-top: 5rem; }
.page h3 { font-size: 1.2rem; margin: var(--s3) 0 .4rem; font-weight: 600; }
.page ul, .page ol { padding-left: 1.4rem; }
.page li { margin-bottom: .5rem; }
.page .big { font-size: clamp(2.4rem, 7vw, 3.75rem); letter-spacing: -.03em; line-height: 1.04; margin: var(--s3) 0 var(--s2); text-wrap: balance; }
.page .lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink2); max-width: 36rem; margin: 0 0 var(--s3); line-height: 1.5; }
.updated { color: var(--ink2); }
.ph { background: var(--apricot-bg); color: var(--apricot-ink); padding: 0 .35rem; border-radius: 6px; font-weight: 600; }
.note { background: var(--sky-bg); color: var(--sky-ink); border-radius: 1.5rem; padding: 1rem 1.25rem; }
.lost { text-align: center; padding: var(--s5) 0; }
.lost .logo { width: 7rem; height: auto; }
.lost h1 { margin-top: var(--s2); }
.lost .sub { margin-inline: auto; }

/* Bibles page */
.bibles .group { margin: var(--s4) 0 var(--s2); font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.bibles.tabs-on .group { display: none; }
.bibles.tabs-on .seg + section .tiles, .bibles.tabs-on section .tiles { margin-top: var(--s2); }
.seg { display: inline-flex; gap: .25rem; padding: .3rem; margin: var(--s1) 0 var(--s1); border-radius: 999px; background: var(--surface2); }
.seg[hidden] { display: none; }
.seg button { min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button:hover { background: rgba(127, 127, 127, .15); }
.seg button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tiles { display: grid; gap: var(--s2); }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .tiles.three { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: .6rem; padding: var(--s3); border-radius: 1.75rem; transition: transform .25s ease; }
.tile:hover { transform: translateY(-3px); }
.tile .abbr { align-self: flex-start; background: var(--surface); color: inherit; font-weight: 600; font-size: 1.5rem; letter-spacing: .02em; line-height: 1; padding: .55rem 1.1rem; border-radius: 999px; }
.tile h3 { margin: .35rem 0 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; }
.tile .pill { align-self: flex-start; font-size: .9rem; font-weight: 600; padding: .1rem .75rem; border-radius: 999px; border: 2px solid currentColor; }
.tile p { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.tile .lic { margin-top: auto; padding-top: .75rem; border-top: 1px solid rgba(127, 127, 127, .4); font-size: .9rem; line-height: 1.45; }
.tile .lic b { font-size: 1rem; }
.tile .lic a { color: inherit; }
.ask { margin-top: var(--s4); background: var(--primary); color: var(--on-primary); border-radius: 2rem; padding: var(--s4) var(--s3); text-align: center; scroll-margin-top: 5rem; }
.ask h2 { margin: 0 0 var(--s1); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.ask p { margin: 0 auto var(--s3); max-width: 30rem; font-size: 1.15rem; }

/* Help centre */
.search { position: relative; max-width: 40rem; margin: var(--s3) 0 var(--s2); }
.search svg { position: absolute; left: 1.25rem; top: 50%; translate: 0 -50%; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--ink2); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; min-height: 64px; padding: 0 1.25rem 0 3.5rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.15rem; }
.search input::placeholder { color: var(--ink2); opacity: 1; }
.search input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.topics { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s3) 0 var(--s2); }
@media (min-width: 40rem) { .topics { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 24rem) { .topics { grid-template-columns: 1fr; } .topic { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 0; } .topics .topic:last-child:nth-child(odd) { grid-column: auto; } }
.topic { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .75rem; min-height: 8.5rem; padding: 1.1rem; border-radius: 1.5rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: transform .2s ease; }
.topic:hover { transform: translateY(-3px); text-decoration: none; }
.topic svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topics .topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 40rem) { .topics .topic:last-child:nth-child(odd) { grid-column: auto; } }
.help h2 { display: flex; align-items: center; gap: .6rem; }
.help .intro { margin: 0 0 var(--s2); color: var(--ink2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; margin-bottom: .75rem; }
.faq details[open] { border-color: var(--primary); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .75rem 1.25rem; font-weight: 600; font-size: 1.1rem; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 3px solid var(--primary); border-bottom: 3px solid var(--primary); rotate: 45deg; translate: 0 -2px; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.faq .ans { padding: 0 1.25rem 1.1rem; }
.faq .ans > :first-child { margin-top: 0; }
.faq .ans > :last-child { margin-bottom: 0; }
.faq .ans p { margin: 0 0 .75rem; }
.nores { padding: var(--s2) 1.25rem; border-radius: 1.25rem; background: var(--apricot-bg); color: var(--apricot-ink); font-weight: 600; }
.nores[hidden], .faq [hidden] { display: none; }
.contact { margin-top: var(--s4); background: var(--primary); color: var(--on-primary); border-radius: 2rem; padding: var(--s4) var(--s3); text-align: center; scroll-margin-top: 5rem; }
.contact h2 { display: block; margin: 0 0 var(--s1); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.contact p { margin: 0 auto var(--s3); max-width: 30rem; font-size: 1.15rem; }
.contact .ph { background: rgba(255, 255, 255, .2); color: inherit; }
.credits { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink2); }
.credits h2 { font-size: 1rem; margin: 0 0 .25rem; display: block; }
.credits p { margin: 0; }

/* Privacy: readable column + contents chips */
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose .chips { margin: var(--s2) 0 var(--s3); gap: .5rem; }
.prose .chip { min-height: 44px; padding: 0 1rem; font-size: .95rem; background: var(--surface); }
.prose .updated { display: inline-block; margin: 0; padding: .1rem .9rem; border-radius: 999px; background: var(--surface2); font-size: .95rem; }
.prose .tldr { background: var(--sage-bg); color: var(--ink); border-radius: 1.5rem; padding: 1.1rem 1.4rem; font-size: 1.2rem; margin: var(--s2) 0 0; }
.prose h2 { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.prose p, .prose li { max-width: 40rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: var(--s4); padding: var(--s3) 0 var(--s4); color: var(--ink2); font-size: 1rem; }
.foot.full { margin-top: 0; border-top: 0; background: var(--bg); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding: 0; margin: 0 0 .5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot li.langs { margin-left: auto; }
.foot p { margin: 0; }

/* SEO additions: hero keyword line, "more" link, guide pages */
.hero .kicker { color: var(--primary); }
.feat p.more { margin-top: var(--s2); }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: inherit; }
.crumbs { margin: var(--s2) 0 0; font-size: 1rem; color: var(--ink2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); }
.prose h3 { margin-top: var(--s3); }
.prose .note { margin: var(--s3) 0; }
.prose .note p { margin: 0; }
.prose .intsa { border-left: 4px solid var(--primary); padding: .1rem 0 .1rem 1rem; color: var(--ink2); }
.prose .ask h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.ask .soon { background: var(--on-primary); color: var(--primary); box-shadow: none; }
.verses { list-style: none; padding: 0; margin: var(--s2) 0; display: grid; gap: .75rem; }
.prose .verses li { margin: 0; padding: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.verses b { display: block; color: var(--primary); }

/* Donate + Store pages */
.btn.off, .btn:disabled { background: var(--surface); color: var(--ink2); box-shadow: none; cursor: not-allowed; border: 2px dashed var(--line); }
.btn.off:hover { transform: none; }
.btn small { display: block; font-weight: 400; font-size: .85rem; }
.btn span { text-align: left; }
.trio { display: grid; gap: var(--s2); margin-top: var(--s2); }
@media (min-width: 44rem) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio .tile:hover { transform: none; }
.trio .tile h3 { margin-top: 0; }
.tile .ico { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page .alt { margin: var(--s3) 0 0; text-align: center; color: var(--ink2); }
.badge { display: inline-block; margin: 0 0 var(--s1); padding: .15rem 1rem; border-radius: 999px; background: var(--surface2); color: var(--ink); font-weight: 600; font-size: 1rem; }
.store .tile { align-items: center; text-align: center; }
.store .tile .pill { align-self: center; }
.store .tile h3 { margin: 0; }
.art { width: 100%; max-width: 14rem; height: auto; aspect-ratio: 1; }
.art path { fill: var(--surface); stroke: currentColor; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.art path.line { fill: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; translate: none; }
  .xfade img + img { opacity: 0; }
}
