/* Shared by index.html, desktop.html and bible.html */
:root {
  color-scheme: dark;
  /* Tokens lifted from the Ambo mobile handoff + desktop icon */
  --bg: #080D1C;
  --bg-2: #0B1326;
  --surface: #0F1830;
  --raised: #16213D;
  --ink: #E6ECF7;
  --muted: #8A97B3;
  --hairline: #1C2744;
  --primary: #7DD3FC;
  --sky: #38BDF8;
  --indigo: #6366F1;
  --nt: #A5B4FC;
  --core: #EAFAFF;
  --pc: #0F2A44;
  --grad: linear-gradient(90deg, var(--sky), var(--indigo));
  --radius: 18px;
  --max: 1180px;
  /* Two voices: the product speaks in the grotesk; scripture and lyrics, the words that get projected, speak in the serif / Naskh */
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  letter-spacing: 0.005em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #2A3860 var(--bg);
}
::selection { background: #1E3A5C; color: var(--core); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ar { font-family: var(--arabic); direction: rtl; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #061020; }
.btn-primary:hover { transform: translateY(-1px); background: #BAE6FD; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--surface); border-color: #2A3860; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 40px; isolation: isolate; overflow-x: clip; }
.hero::before { /* the Cross of Light glow */
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: -220px; width: 1100px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(125,211,252,.22), rgba(56,189,248,.10) 45%, transparent 75%),
    radial-gradient(closest-side at 70% 60%, rgba(99,102,241,.16), transparent 70%);
  pointer-events: none;
}
.hero::after { /* the beam */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 1px; height: 72px;
  background: linear-gradient(var(--primary), transparent); opacity: .35;
}
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
h1 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(44px, 7.2vw, 84px); line-height: 1;
  letter-spacing: -0.04em;
}
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.06em; white-space: nowrap;
  color: var(--primary);
}
.lede { margin: 28px auto 0; max-width: 34em; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.platforms { margin-top: 20px; font-size: 14px; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.platforms b { color: var(--ink); font-weight: 500; }

/* ---------- Device stage ---------- */
.stage { position: relative; margin: 72px auto 0; max-width: 1080px; padding-right: 200px; }
.window {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid #22305A;
  box-shadow: 0 20px 36px -18px rgba(0,0,0,.85);
}
.titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #0C142A; border-bottom: 1px solid var(--hairline); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3656; }
.titlebar span { margin: 0 auto; font-size: 12px; color: var(--muted); transform: translateX(-24px); }
.app { display: grid; grid-template-columns: 230px 1fr; height: 440px; font-size: 12px; }
.pane { padding: 14px; border-right: 1px solid var(--hairline); overflow: hidden; }
.pane:last-child { border-right: 0; border-left: 1px solid var(--hairline); }
.pane .label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.search { height: 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline); margin-bottom: 12px; display: flex; align-items: center; padding: 0 10px; color: #7784A1; font-size: 11px; gap: 6px; }
.search svg { width: 12px; height: 12px; flex: none; }
.row { padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.row b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.on { background: var(--pc); }
.row.on b { color: #BAE6FD; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--raised); color: var(--muted); align-self: center; }
.center { padding: 18px 88px 18px 18px; display: flex; flex-direction: column; gap: 14px; border-right: 0; }
.live-head { display: flex; align-items: center; justify-content: space-between; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #FCA5A5; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F87171; animation: pulse 1.6s ease-in-out infinite; }
.screen {
  flex: 1; border-radius: 10px; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #15254A 0%, #080D1C 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px;
  border: 1px solid #22305A;
}
.screen .ar { font-size: 24px; font-weight: 600; line-height: 1.6; }
.screen .en { color: #B9C5DD; font-style: italic; font-family: var(--serif); font-size: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs div { height: 46px; border-radius: 6px; background: var(--bg); border: 1px solid var(--hairline); display: grid; place-items: center; color: #7784A1; font-size: 11px; }
.thumbs div.on { border-color: var(--primary); color: var(--primary); }

.phone {
  position: absolute; right: 0; bottom: -48px; width: 250px; aspect-ratio: 9/19;
  border-radius: 40px; padding: 10px; background: #1A2340;
  box-shadow: 0 24px 36px -16px rgba(0,0,0,.85), 0 0 0 1px #2C3A66 inset;
}
.phone-screen {
  height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; position: relative;
}
.notch { width: 84px; height: 24px; background: #000; border-radius: 0 0 14px 14px; margin: 0 auto; flex: none; }
.fa-top { padding: 14px 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.fa-top b { color: var(--ink); font-weight: 600; font-size: 13px; display: block; white-space: nowrap; }
.fa-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 20px; text-align: center; }
.fa-body .ar { font-size: 21px; font-weight: 600; line-height: 1.65; }
.fa-body .en { font-family: var(--serif); font-style: italic; font-size: 18px; color: #B9C5DD; line-height: 1.35; }
.fa-foot { margin: 0 14px 16px; padding: 10px 12px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fa-foot .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--pc); overflow: hidden; }
.fa-foot .bar i { display: block; height: 100%; width: 42%; background: var(--grad); border-radius: 4px; }


/* ---------- Sections ---------- */
section { padding: 120px 0; }
h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.035em; max-width: 780px; text-wrap: pretty; }
.sub { margin-top: 20px; color: var(--muted); max-width: 36em; font-size: 18px; text-wrap: pretty; }

/* Trust strip */
.facts { border-block: 1px solid var(--hairline); padding: 26px 0; margin-top: 120px; }
.facts ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; font-size: 16px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

/* Product split */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.card {
  position: relative; border-radius: 24px; padding: 36px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(125,211,252,.5), transparent); }
.card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.card h3 svg { width: 26px; height: 26px; color: var(--primary); }
.card h3 small { grid-column: 2; display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.card p { color: var(--muted); margin-top: 14px; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary); }
.card .btn { margin-top: 30px; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { grid-column: span 2; border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--hairline); transition: border-color .25s ease, transform .25s ease; }
.tile:hover { border-color: #2A3860; transform: translateY(-2px); }
.tile.w3 { grid-column: span 3; }
.tile svg.i { width: 22px; height: 22px; color: var(--primary); }
.tile h3 { margin-top: 16px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.kbd { display: inline-flex; gap: 6px; margin-top: 18px; }
.kbd kbd { font: 500 13px var(--sans); padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline); box-shadow: inset 0 -2px 0 var(--hairline); }
.screens-mini { display: flex; gap: 8px; margin-top: 18px; }
.screens-mini div { flex: 1; height: 54px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.screens-mini div:first-child { border-color: #1E3A5C; color: var(--primary); }
.hl { display: flex; gap: 8px; margin-top: 18px; }
.hl i { width: 20px; height: 20px; border-radius: 50%; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; counter-reset: s; }
.step { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--hairline); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 600; font-size: 15px; color: #061020; background: var(--primary);
}
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.step .ui { font-weight: 500; color: #BAE6FD; background: var(--pc); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.lang { border-radius: var(--radius); padding: 32px 28px; background: var(--surface); border: 1px solid var(--hairline); min-height: 220px; display: flex; flex-direction: column; }
.lang .code { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.lang blockquote { margin-top: auto; font-family: var(--serif); font-size: 27px; line-height: 1.32; letter-spacing: -0.01em; text-wrap: pretty; }
.lang.ar-card blockquote { font-family: var(--arabic); font-size: 27px; font-weight: 400; line-height: 1.7; letter-spacing: 0; }
.lang cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--primary); }
.lang.ar-card cite { font-family: var(--arabic); font-size: 16px; }

/* Download */
.download { position: relative; text-align: center; overflow: hidden; border-radius: 32px; padding: 96px 32px; background: linear-gradient(180deg, #0D1733, var(--bg)); border: 1px solid var(--hairline); isolation: isolate; }
.download::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 800px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(56,189,248,.25), transparent); }
.download .mark { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.7); }
.download h2 { margin-left: auto; margin-right: auto; }
.download .sub { margin-left: auto; margin-right: auto; }
.dl-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 48px auto 0; text-align: left; }
.dl { border-radius: var(--radius); padding: 24px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--hairline); }
.dl h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.dl .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dl small { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

footer { padding: 48px 0 56px; border-top: 1px solid var(--hairline); margin-top: 120px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a:hover { color: var(--ink); }

/* The one authored moment: the phone settles in beside the projector */
.phone { animation: settle 1.1s cubic-bezier(.16,1,.3,1) .25s both; }
@keyframes settle { from { transform: translate(28px, 36px) rotate(2deg); } }

@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .app { grid-template-columns: 170px 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.w3 { grid-column: span 1; }
}
@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; }
  .stage { padding-right: 0; }
  .center { padding-right: 18px; }
  .app { grid-template-columns: 1fr; height: 300px; }
  .app .pane:first-child { display: none; }
  .phone { position: relative; right: auto; bottom: auto; margin: -80px 16px 0 auto; width: 200px; }
  .duo, .steps, .langs, .dl-groups { grid-template-columns: 1fr; }
  .facts ul { justify-content: flex-start; }
  section { padding: 88px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .download { padding: 64px 20px; border-radius: 24px; }
  .phone { width: 170px; margin-top: -60px; }
  .phone .live-badge { display: none; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .thumbs button:nth-child(n+3) { display: none; }
  footer nav { margin-left: 0; }
}

/* =====================================================================
   Feature pages (desktop.html, bible.html)
   ===================================================================== */
.nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--primary); }

.hero-sm { padding-bottom: 0; }
.hero-sm h1 { font-size: clamp(40px, 6.4vw, 76px); }

/* A chapter is one moment in the week; its features follow as alternating rows */
.chapter { padding: 128px 0 0; }
.chapter > .wrap > h2 { max-width: 820px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--hairline);
}
.chapter .feature:first-of-type { margin-top: 56px; }
.feature.flip .fx { order: -1; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.feature > div > p { margin-top: 16px; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.points { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; font-size: 16px; }
.points svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary); }
.points kbd, .keys-table kbd, .sub kbd, .spec kbd {
  font: 500 13px/1 var(--sans); padding: 4px 7px; border-radius: 6px; background: var(--bg);
  border: 1px solid var(--hairline); box-shadow: inset 0 -2px 0 var(--hairline); white-space: nowrap;
}

/* Illustration panel: a quiet stage for a drawn piece of the product */
.fx {
  position: relative; border-radius: 22px; padding: 32px; min-height: 320px;
  background: radial-gradient(120% 100% at 50% 0%, #13213F 0%, var(--surface) 55%, var(--bg-2) 100%);
  border: 1px solid var(--hairline); display: grid; place-items: center; overflow: hidden; font-size: 13px;
}
.fx > * { width: 100%; max-width: 440px; }
.ui-panel { border-radius: 14px; background: var(--bg); border: 1px solid #22305A; padding: 14px; }
.ui-panel .label, .ui-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 8px; display: flex; justify-content: space-between; }
.ui-panel .row { font-size: 13px; }
.ui-panel .search { height: 34px; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.ui-panel .search svg { width: 14px; height: 14px; color: var(--muted); }
.add { font-size: 11px; font-weight: 600; color: #061020; background: var(--primary); padding: 3px 10px; border-radius: 999px; align-self: center; white-space: nowrap; }
.web { color: var(--primary); background: var(--pc); }

.ref-input { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--primary); font-size: 16px; }
.ref-input .caret { width: 2px; height: 20px; background: var(--primary); animation: blink 1.1s steps(1) infinite; }
.ref-input small { margin-left: auto; color: var(--muted); font-size: 12px; }
@keyframes blink { 50% { opacity: 0; } }
.slide-2up { margin-top: 14px; border-radius: 12px; border: 1px solid #22305A; background: radial-gradient(120% 90% at 50% 0%, #15254A 0%, #080D1C 70%); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.slide-2up p { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: #D3DCEC; }
.slide-2up p.ar { font-family: var(--arabic); font-size: 17px; line-height: 1.8; }
.slide-2up cite { grid-column: 1 / -1; text-align: center; font-style: normal; font-size: 12px; color: var(--muted); }

.sched .sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 12px 4px 6px; }
.sched .row { justify-content: flex-start; align-items: center; }
.sched .row .n { width: 18px; color: #7784A1; font-variant-numeric: tabular-nums; }
.sched .note { margin: -2px 0 6px 38px; padding: 6px 10px; border-radius: 8px; background: #2A2410; color: #F5D98A; font-size: 12px; }

/* Stage display: what the band sees */
.stagedisp { border-radius: 14px; background: #000; border: 1px solid #22305A; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; }
.stagedisp .now { grid-column: 1 / -1; font-size: 22px; font-weight: 600; line-height: 1.3; color: #fff; }
.stagedisp .now small, .stagedisp .next small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6EE7B7; font-weight: 600; margin-bottom: 4px; }
.stagedisp .next { font-size: 15px; color: #9AA7C2; }
.stagedisp .next small { color: #FCD34D; }
.stagedisp .clock { text-align: right; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.stagedisp .clock .timer { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #FCA5A5; letter-spacing: 0; }
.stagedisp .notes { grid-column: 1 / -1; border-top: 1px solid #1C2744; padding-top: 12px; font-size: 13px; color: #F5D98A; }

/* Live keys */
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.key { border-radius: 16px; background: var(--bg); border: 1px solid #22305A; box-shadow: inset 0 -2px 0 #16213D; padding: 18px 16px 20px; text-align: center; }
.key b { display: block; font-size: 34px; font-weight: 600; line-height: 1; }
.key span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.key.on { border-color: var(--primary); }
.key.on b { color: var(--primary); }

/* Camera + lower third */
.cam { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #22305A;
  background: radial-gradient(60% 70% at 50% 45%, #2B3A5E 0%, #141D36 55%, #0A1022 100%); }
.cam .figure { position: absolute; left: 50%; bottom: 0; width: 34%; height: 72%; transform: translateX(-50%); border-radius: 50% 50% 8px 8px / 38% 38% 8px 8px; background: linear-gradient(#3A4A72, #26335A); }
.cam .figure::before { content: ""; position: absolute; left: 50%; top: -26%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #45578A; }
.cam .l3 { position: absolute; left: 6%; bottom: 10%; padding: 8px 14px; border-radius: 8px; background: rgba(8,13,28,.86); }
.cam .l3 b { display: block; font-size: 14px; }
.cam .l3 span { font-size: 12px; color: var(--muted); }
.cam .rec { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.55); font-variant-numeric: tabular-nums; }
.cam .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F87171; }

/* Spec list: small facts in columns, divided by hairlines, not boxed */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 56px; }
.spec { padding: 28px 0; border-top: 1px solid var(--hairline); }
.spec h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.spec h3 svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.spec p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Shortcut reference */
.keys-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.keys-table h3 { font-size: 15px; font-weight: 600; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.keys-table dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; margin-top: 16px; font-size: 15px; align-items: baseline; }
.keys-table dt { display: flex; gap: 4px; flex-wrap: wrap; }
.keys-table dd { color: var(--muted); }

/* ---------- Ambo Bible: phones ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin: 72px auto 0; }
.phone.static { position: relative; right: auto; bottom: auto; width: 260px; flex: none; animation: none; }
.phones .phone.static:nth-child(odd) { transform: translateY(36px); }
.phones .phone.static:nth-child(2) { width: 280px; }
.p-head { padding: 14px 18px 6px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.p-head b { color: var(--ink); font-size: 15px; font-weight: 600; }
.reader { padding: 6px 18px 18px; font-family: var(--serif); font-size: 15px; line-height: 1.6; color: #D3DCEC; overflow: hidden; }
.reader.ar { font-family: var(--arabic); font-size: 16px; line-height: 1.9; text-align: right; }
.reader sup { font-family: var(--sans); font-size: 11px; color: var(--primary); font-weight: 600; margin: 0 3px; }
.reader mark { color: inherit; border-radius: 4px; padding: 1px 2px; background: oklch(.42 .085 100); }
.reader mark.b { background: oklch(.42 .085 250); }
.sheet { margin: auto 10px 10px; border-radius: 18px; background: var(--raised); padding: 12px 14px; font-size: 12px; }
.sheet-actions { display: flex; justify-content: space-between; gap: 6px; }
.sheet-actions span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; background: var(--pc); color: #BAE6FD; font-size: 11px; font-weight: 500; }
.sheet .hl { margin-top: 12px; justify-content: space-between; }
.sheet .hl i { width: 18px; height: 18px; }

.votd { margin: 18px 12px; border-radius: 18px; padding: 16px; background: var(--surface); }
.votd small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.votd p { margin-top: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.votd cite { display: block; margin-top: 8px; font-style: normal; font-size: 11px; color: var(--muted); }
.plan { margin: 0 12px; border-radius: 18px; padding: 14px 16px; background: var(--surface); font-size: 12px; }
.plan b { font-size: 14px; }
.plan .bar { margin-top: 10px; height: 6px; border-radius: 6px; background: var(--pc); overflow: hidden; }
.plan .bar i { display: block; height: 100%; width: 71%; background: var(--grad); border-radius: 6px; }
.plan span { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Compare sheet */
.compare .row { display: block; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); }
.compare .row small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.compare .row p { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: #D3DCEC; }
.compare .row p.ar { font-family: var(--arabic); font-size: 17px; line-height: 1.8; }

.chips { display: flex; gap: 8px; margin-bottom: 12px; }
.chips > * { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--muted); font-size: 12px; }
.chips > [aria-pressed="true"] { background: var(--pc); border-color: #1E3A5C; color: #BAE6FD; }
.result { padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; background: var(--surface); }
.result small { display: block; font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.result p { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: #D3DCEC; }
.result em { font-style: normal; color: #BAE6FD; background: #1E3A5C; border-radius: 3px; padding: 0 2px; }
.fuzzy-note { font-size: 12px; color: var(--muted); margin: 0 4px 10px; }

.verse-photo { aspect-ratio: 4/5; max-width: 300px; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 70% at 70% 20%, rgba(125,211,252,.45), transparent 60%), linear-gradient(160deg, #1B2B55 0%, #0B1226 70%);
  border: 1px solid #22305A; }
.verse-photo p { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.verse-photo cite { margin-top: 12px; font-style: normal; font-size: 12px; color: #BAE6FD; letter-spacing: .04em; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics > * { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid #22305A; font-size: 13px; color: var(--ink); }
.topics > [aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.stories { display: grid; gap: 8px; margin-top: 14px; }

.qr { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.qr svg { width: 120px; height: 120px; border-radius: 12px; background: #fff; padding: 10px; }
.qr p { color: var(--muted); font-size: 13px; }
.qr b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.pinbox { display: flex; gap: 8px; margin-top: 12px; }
.pinbox i { width: 34px; height: 40px; border-radius: 8px; background: var(--bg); border: 1px solid #22305A; display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--primary); font-weight: 500; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .feature { gap: 40px; }
  .specs, .keys-table { grid-template-columns: repeat(2, 1fr); }
  .phones .phone.static:nth-child(3) { display: none; }
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; padding: 48px 0; }
  .feature.flip .fx { order: 0; }
  .fx { min-height: 0; padding: 24px 18px; }
  .chapter { padding-top: 96px; }
}
@media (max-width: 520px) {
  .specs, .keys-table { grid-template-columns: 1fr; }
  .phones { gap: 14px; }
  .phone.static { width: 200px; }
  .phones .phone.static:nth-child(2) { width: 210px; }
  .phones .phone.static:nth-child(1) { display: none; }
  .phones .phone.static:nth-child(odd) { transform: none; }
  .keys { gap: 8px; }
  .key b { font-size: 26px; }
  .slide-2up { grid-template-columns: 1fr; }
  .stagedisp .now { font-size: 18px; }
}

.app.three { grid-template-columns: 230px 1fr 230px; }
.app.three .center { padding-right: 18px; }
.inline-link { color: var(--primary); font-weight: 500; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-sm .hero-copy { max-width: 1000px; }
@media (max-width: 1000px) { .app.three { grid-template-columns: 170px 1fr; } .app.three .sched { display: none; } }
@media (max-width: 820px) { .app.three { grid-template-columns: 1fr; } }

/* =====================================================================
   Interactive demos (app.js)
   ===================================================================== */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.fx button:focus-visible, .fx input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Phone menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav .btn { margin-left: 0; }
  .nav.open ul {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--hairline); font-size: 17px;
  }
  .nav.open ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
  .nav.open ul a[aria-current="page"]::after { display: none; }
  .nav.open ul a[aria-current="page"] { color: var(--primary); }
}

.demo-hint { margin: 56px auto -44px; text-align: center; font-size: 14px; color: var(--muted); }
.demo-hint kbd, .stepper kbd { font: 500 12px/1 var(--sans); padding: 3px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--hairline); box-shadow: inset 0 -2px 0 var(--hairline); }

/* Slide thumbnails as real buttons */
.thumbs button { height: 46px; border-radius: 6px; background: var(--bg); border: 1px solid var(--hairline); color: #7784A1; font-size: 12px; font-variant-numeric: tabular-nums; transition: border-color .15s ease, color .15s ease; }
.thumbs button:hover { border-color: #2A3860; color: var(--ink); }
.thumbs button[aria-current="true"] { border-color: var(--primary); color: var(--primary); }
.screen .ar, .screen .en, .fa-body .ar, .fa-body .en { transition: opacity .25s ease; }
.fa-foot .bar i { width: 100% !important; transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.screen .en { font-size: 18px; line-height: 1.35; max-width: 30em; }
.screen .ar { font-size: 22px; }
.fa-body .ar { font-size: 19px; }
.fa-body .en { font-size: 16px; }

/* Output states: blackout, logo, freeze */
[data-output] { position: relative; transition: background-color .2s ease; }
[data-output].is-black, [data-output].is-logo { background: #000; }
[data-output].is-black > *:not(.mini-state), [data-output].is-logo > *:not(.mini-state) { opacity: 0; }
[data-output].is-logo::before { content: ""; position: absolute; inset: 0; margin: auto; width: 34%; max-width: 110px; aspect-ratio: 1; background: url(assets/favicon.svg) center / contain no-repeat; }
[data-output].is-frozen::after { content: "Frozen"; position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FCD34D; }

/* Search fields */
.search input, .ref-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; }
.search input::placeholder, .ref-input input::placeholder { color: #7784A1; }
.search:focus-within, .ref-input:focus-within { border-color: var(--primary); }
.ref-input { border-color: #22305A; }
.add { border: 0; cursor: pointer; }
.add:hover { background: #BAE6FD; }
.empty { margin: 2px 10px 10px; font-size: 12px; color: var(--muted); }

.seg { display: inline-flex; margin-top: 12px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--hairline); }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--pc); color: #BAE6FD; }
.slide-2up { transition: opacity .2s ease, border-color .3s ease; }
.slide-2up.stacked { grid-template-columns: 1fr; text-align: center; }
.slide-2up.is-dim { opacity: .45; }
.slide-2up.flash { animation: flash .6s ease-out; }
@keyframes flash { from { border-color: var(--primary); } }

/* Schedule */
.sched .item { border-radius: 8px; cursor: grab; }
.sched .item:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sched .item.on > .row { background: var(--pc); }
.sched .item.on > .row b { color: #BAE6FD; }
.sched .item.dragging { opacity: .45; }
.sched .item .note { margin-top: 2px; }
.sched .grip { width: 16px; height: 16px; margin-left: auto; color: #3A4870; flex: none; }

/* Live keys + projector preview */
.mini-out { aspect-ratio: 16/7; margin-bottom: 14px; border-radius: 12px; border: 1px solid #22305A; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #15254A 0%, #080D1C 70%); display: grid; place-items: center; padding: 18px 24px; text-align: center; }
.mini-out .en { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: #D3DCEC; transition: opacity .2s ease; }
.mini-state { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
button.key { color: var(--ink); transition: border-color .15s ease, transform .1s ease; }
button.key:hover { border-color: #2A3860; }
button.key:active { transform: translateY(1px); }
button.key[aria-pressed="true"] { border-color: var(--primary); }
button.key[aria-pressed="true"] b { color: var(--primary); }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.stepper .btn { width: 44px; padding: 0; justify-content: center; }
.stepper span { font-size: 13px; color: var(--muted); margin-left: 6px; }

/* Bible reader */
[data-v] { cursor: pointer; border-radius: 4px; transition: background-color .2s ease, box-shadow .2s ease; }
[data-v]:hover { box-shadow: 0 0 0 1px #2A3860; }
[data-v].sel { box-shadow: 0 0 0 1px var(--primary); }
[data-v]:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sheet .hl button { width: 20px; height: 20px; border-radius: 50%; transition: transform .15s ease; }
.sheet .hl button:hover { transform: scale(1.12); }
.sheet .hl button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }
.toggle { padding: 3px 10px; border-radius: 999px; border: 1px solid #22305A; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toggle[aria-pressed="true"] { background: var(--pc); border-color: #1E3A5C; color: #BAE6FD; }
.chips > *:hover, .topics > *:hover { border-color: #2A3860; color: var(--ink); }
.result p { transition: opacity .2s ease; }

/* Verse photo backgrounds */
.photo-demo { display: grid; justify-items: center; gap: 16px; }
.verse-photo { width: 100%; transition: background .4s ease; }
.verse-photo.bg1 { background: radial-gradient(80% 60% at 30% 25%, rgba(252,211,77,.45), transparent 60%), linear-gradient(170deg, #3B2A18 0%, #140E08 75%); }
.verse-photo.bg2 { background: radial-gradient(90% 70% at 70% 80%, rgba(110,231,183,.35), transparent 60%), linear-gradient(160deg, #0E2A26 0%, #06120F 75%); }
.verse-photo.bg3 { background: radial-gradient(90% 70% at 50% 20%, rgba(165,180,252,.45), transparent 60%), linear-gradient(160deg, #221B4A 0%, #0B0A1E 75%); }

/* Legal and support pages (privacy.html, support.html) */
.legal { max-width: 760px; padding-top: 140px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.legal .updated { margin-top: 12px; color: var(--muted); }
.legal h2 { font-size: 24px; margin-top: 48px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { margin-top: 12px; color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal address { font-style: normal; margin-top: 12px; line-height: 1.65; }
