/* azadar777 — shared styling for the landing page.
   privacy.html and support.html deliberately keep their own inline styles:
   they are the URLs given to Apple and are left alone. */

:root {
  color-scheme: light;
  --navy:    #142D40;
  --navy-dk: #0d1e2c;
  --forest:  #143C2E;
  --cream:   #f6eedb;
  --paper:   #fbf6e7;
  --gold:    #a3741f;
  --gold-lt: #E1BB70;
  --ink:     #1e3344;
  --text:    #33302a;
  --muted:   #6b6156;
  --onnavy:  #F7EEDB;
  --onnavy-m:#B8C6CF;
  --rule:    rgba(60, 50, 35, .14);
  --rule-lt: rgba(247, 238, 219, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap   { max-width: 70rem; margin: 0 auto; padding: 0 1.75rem; }
.narrow { max-width: 44rem; margin: 0 auto; }

/* ── type ─────────────────────────────────────────────────── */

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 1.5rem; text-wrap: balance;
}
h1 .lit { display: block; color: var(--gold-lt); font-style: italic; }
h2 {
  font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 1rem;
  text-wrap: balance;
}
h2 .lit { display: block; color: var(--gold); font-style: italic; }
h3 { font-size: 1.35rem; line-height: 1.25; color: var(--ink); margin: 0 0 .5rem; }
p  { margin: 0 0 1.1rem; }
a  { color: var(--gold); }

.eyebrow {
  font: 700 11.5px/1.5 system-ui, sans-serif;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.25rem;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }

/* ── masthead ─────────────────────────────────────────────── */

header.site { background: var(--navy); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap;
}
.brand { text-decoration: none; display: block; }
.brand .pub {
  font: 700 10px/1 system-ui, sans-serif; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-lt); display: block;
}
/* The app's own masthead, matched: Manrope Bold, uppercase, letterspaced,
   with the full stop and the tagline beneath. On navy it takes the lighter
   gold; the app sets it in the palette gold against cream. */
.brand .app {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 700;
  font-size: 1.3rem; line-height: 1.1; letter-spacing: .085em;
  text-transform: uppercase; color: var(--gold-lt);
  display: block; margin-top: .45rem;
}
.brand .tag {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 500;
  font-size: 10px; line-height: 1.6; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-lt); opacity: .8;
  display: block; margin-top: .25rem;
}
nav.site a {
  font-size: 14px; color: var(--onnavy-m); text-decoration: none; margin-left: 1.6rem;
}
nav.site a:hover { color: var(--gold-lt); }

/* ── panels ───────────────────────────────────────────────── */

.panel        { padding: 5rem 0; }
.panel.navy   { background: var(--navy);  color: var(--onnavy); }
.panel.navy h2, .panel.navy h3 { color: var(--onnavy); }
.panel.navy .lede, .panel.navy p { color: var(--onnavy-m); }
.panel.navy .eyebrow { color: var(--gold-lt); }
.panel.navy h2 .lit  { color: var(--gold-lt); }
.panel.forest { background: var(--forest); color: var(--onnavy); }
.panel.forest h2, .panel.forest h3 { color: var(--onnavy); }
.panel.forest p, .panel.forest .lede { color: #BDCEC1; }
.panel.forest .eyebrow, .panel.forest h2 .lit { color: #DCC58B; }
.panel.forest .offline div { border-left-color: rgba(220, 197, 139, .5); }
.panel.forest .offline b { color: var(--onnavy); }

/* ── hero ─────────────────────────────────────────────────── */

.hero { background: var(--navy); color: var(--onnavy); padding: 4.5rem 0 5.5rem; }
.hero h1 { color: var(--onnavy); }
.hero .lede { color: var(--onnavy-m); font-size: 1.18rem; }
/* Desktop: the words on the left, the app on the right.
   Phone: the promise, then the app, then the detail — so the first screen
   carries both the headline and a real screen from the app, which is the
   thing a visitor came to see. */
.hero-grid {
  display: grid; gap: 2.5rem 3.5rem; align-items: center;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas: "say shot" "rest shot";
}
.hero-say  { grid-area: say; align-self: end; }
.hero-rest { grid-area: rest; align-self: start; }
.hero-shot { grid-area: shot; display: flex; justify-content: center; }
.hero-shot img {
  width: 100%; max-width: 290px; height: auto; display: block;
  border-radius: 22px; border: 1px solid rgba(247, 238, 219, .16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .65);
}
.mizan {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 5.5rem); line-height: 1; color: var(--gold);
  text-align: center; direction: rtl; opacity: .9;
}
.mizan-cap {
  text-align: center; margin-top: 1rem;
  font: 700 10.5px/1.6 system-ui, sans-serif; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}
.mizan-note {
  text-align: center; margin-top: 1rem; font-size: 14.5px;
  color: var(--onnavy-m); max-width: 22rem; margin-inline: auto;
}

/* Stated once, in the hero, where someone deciding whether to care will see
   it. "Pending review" rather than a date, because that is what is true. */
/* ── store buttons ────────────────────────────────────────── */
/* Apple's badge is used unmodified and sets the height; their guidelines ask
   that no neighbouring button be larger, so the web-app button matches its
   40px exactly rather than being sized by its own padding. */

.stores {
  margin-top: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
}
.store-apple, .store-web { display: inline-flex; text-decoration: none; }
.store-apple img { display: block; height: 40px; width: auto; }

.store-web {
  height: 40px; align-items: center; gap: .5rem;
  padding: 0 .9rem; border-radius: 7px;
  /* Apple's badge is a black fill inside a #a6a6a6 keyline. Matching both
     makes the pair read as one set rather than two unrelated buttons. */
  background: #000; border: 1px solid #a6a6a6; color: #fff;
}
.store-web svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
}
.store-web small {
  display: block; font: 500 8.5px/1 -apple-system, system-ui, sans-serif;
  letter-spacing: .04em; color: #fff;
}
.store-web strong {
  display: block; margin-top: .18rem;
  font: 600 15px/1 -apple-system, system-ui, sans-serif; letter-spacing: -.01em;
}
.store-apple:hover, .store-web:hover { opacity: .85; }
.store-apple:focus-visible, .store-web:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

.coming {
  margin-top: 1.1rem;
  font: 700 10.5px/1.6 'Manrope', system-ui, sans-serif;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-lt);
}
.coming::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-lt); margin-right: .7rem; vertical-align: .12em;
}

.soon {
  display: inline-block; font: 700 10.5px/1 system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-lt); background: rgba(225, 187, 112, .14);
  padding: .55rem .85rem; border-radius: 999px;
}

/* ── section head ─────────────────────────────────────────── */

.section-head { max-width: 40rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ── the guided steps ─────────────────────────────────────── */

.step {
  display: grid; gap: 3.5rem; align-items: center;
  grid-template-columns: 1fr 1fr; padding: 3.25rem 0;
}
.step + .step { border-top: 1px solid var(--rule); }
.panel.navy .step + .step { border-top-color: var(--rule-lt); }
.step.flip .shot { order: -1; }
.step .num {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: 2.2rem; line-height: 1; color: var(--gold); opacity: .55;
  margin-bottom: .5rem;
}
.panel.navy .step .num { color: var(--gold-lt); }

/* phone frame */
.shot { display: flex; justify-content: center; }
.shot img {
  width: 100%; max-width: 288px; height: auto; display: block;
  border-radius: 34px; border: 9px solid var(--navy-dk);
  box-shadow: 0 30px 60px -28px rgba(13, 30, 44, .55);
  background: var(--navy-dk);
}
.panel.navy .shot img, .panel.forest .shot img { border-color: #05121b; }

/* ── feature cards ────────────────────────────────────────── */

.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 14px; padding: 1.75rem;
}
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 15px; }
.panel.navy .card {
  background: rgba(247, 238, 219, .05); border-color: var(--rule-lt);
}

/* ── offline list ─────────────────────────────────────────── */

.offline { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offline div { padding-left: 1.3rem; border-left: 2px solid rgba(225, 187, 112, .45); }
.offline b { display: block; font-size: 15.5px; color: var(--onnavy); margin-bottom: .25rem; }
.offline p { font-size: 14.5px; margin: 0; }

/* ── note ─────────────────────────────────────────────────── */

.note {
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 3px solid #c87a4a; border-radius: 10px;
  padding: 1.5rem 1.7rem; font-size: 15px; line-height: 1.7;
  color: var(--muted); margin: 2.5rem 0 0;
}

/* ── footer ───────────────────────────────────────────────── */

footer.site { background: var(--navy-dk); color: var(--onnavy-m); }
.footer-cta {
  padding-bottom: 2.25rem; margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule-lt);
}
.footer-cta p {
  margin: 0 0 1.3rem;
  font: 600 2rem/1.1 'Cormorant Garamond', Georgia, serif;
  color: var(--onnavy);
}
.footer-cta .stores { margin-top: 0; }
footer.site .wrap { padding-top: 3rem; padding-bottom: 3.5rem; font-size: 14px; }
footer.site .pub {
  font: 700 10px/1 system-ui, sans-serif; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-lt); margin-bottom: 1rem;
}
footer.site a { color: var(--onnavy-m); text-decoration: none; }
/* The gap belongs to the nav row only. Scoped loosely it also padded the
   inline Tanzil link, leaving "Tanzil Project   ." in the fine print. */
footer.site > .wrap > a { margin-right: 1.75rem; }
footer.site .fine a { text-decoration: underline; text-underline-offset: 2px; }
footer.site a:hover { color: var(--gold-lt); }
footer.site .fine { margin-top: 1.5rem; font-size: 13px; opacity: .75; max-width: 42rem; }

@media (max-width: 52rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "say" "shot" "rest";
    gap: 1.75rem;
  }
  .hero-say, .hero-rest { align-self: auto; }
  .hero-shot img { max-width: 208px; border-radius: 18px; }
  .step { grid-template-columns: 1fr; gap: 2.5rem; }
  .step.flip .shot { order: 0; }
  .hero { padding: 2.25rem 0 2.75rem; }
  .panel { padding: 2.75rem 0; }
  .section-head { margin-bottom: 2rem; }
  .step { padding: 1.75rem 0; gap: 1.5rem; }
  .says { margin-top: 1.75rem; gap: 1rem; }
  .offline { gap: 1.2rem 2rem; }
  .bio h3 { margin-top: 1.75rem; }
  .grid { gap: 1rem; }
  /* Three links fit a phone on one line, so the row no longer needs to
     scroll sideways. The sections it no longer names are all a short scroll
     away, and the footer carries the rest. */
  nav.site { display: flex; gap: 1.4rem; }
  nav.site a { margin-left: 0; margin-right: 0; font-size: 13.5px; }
  header.site .wrap { gap: .5rem; }
}

/* ── phase stepper beside each step ───────────────────────── */

.flow {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  max-width: 19rem; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px;
  width: 1.5px; background: var(--rule);
}
.flow li {
  position: relative; display: flex; align-items: center; gap: 1rem;
  padding: .6rem 0; color: var(--muted); opacity: .5;
  font: 600 12px/1.3 system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.flow .dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  border: 1.5px solid currentColor; background: var(--cream);
}
.flow li.on { color: var(--gold); opacity: 1; }
.flow li.on .dot {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(163, 116, 31, .15);
}
.panel.navy .flow::before { background: var(--rule-lt); }
.panel.navy .flow li { color: var(--onnavy-m); }
.panel.navy .flow .dot { background: var(--navy); }
.panel.navy .flow li.on { color: var(--gold-lt); }
.panel.navy .flow li.on .dot { background: var(--gold-lt); border-color: var(--gold-lt); }

/* The stepper keeps its labels on a phone. It was a bare progress bar here,
   on the reasoning that the words only repeated the heading above — but the
   heading names one stage and the stepper names all five, which is the part
   worth reading. Tightened rather than stripped. */
@media (max-width: 52rem) {
  .flow { margin-top: 1.75rem; max-width: none; }
  .flow::before { top: 12px; bottom: 12px; }
  .flow li { padding: .45rem 0; gap: .85rem; font-size: 11px; letter-spacing: .12em; }
}

/* two phones side by side, for the themes step */
.shot.pair { gap: 1.25rem; }
.shot.pair img { max-width: 208px; border-radius: 26px; border-width: 7px; }
@media (max-width: 52rem) { .shot.pair img { max-width: 150px; } }

/* ── Ṭabāṭabāʾī ───────────────────────────────────────────── */

/* The section carries no portrait. A photograph of the man invites a mysticism
   around him that the work itself does not ask for. */
.bio h3 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: 1.6rem; color: var(--ink); margin: 2.25rem 0 .7rem;
}
.bio h3:first-child { margin-top: 0; }
.bio p { font-size: 16px; line-height: 1.75; }

/* what other scholars said */
.says { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 2.5rem; }
.says blockquote {
  margin: 0; background: var(--paper); border: 1px solid var(--rule);
  border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; padding: 1.5rem 1.6rem;
}
.says blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: 1.1rem; line-height: 1.55; color: var(--ink); margin: 0 0 1rem;
}
.says cite {
  display: block; font: 700 10px/1.5 system-ui, sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-style: normal;
}
.says .who { font-size: 12.5px; color: var(--muted); margin-top: .35rem; line-height: 1.5; }

@media (max-width: 52rem) {
}

/* ══ content specimens ═════════════════════════════════════════════════
   A phone screenshot of a text app shows a reader nothing they can read.
   These are the app's own verse screen, zoomed to a size a person can take
   in, carrying real rows from the shipped database. The night palette is
   the app's own, and it is what makes them read as the product rather than
   as web cards.                                                          */

.specwrap { position: relative; justify-self: center; width: 100%; max-width: 30rem; }
.step.flip .specwrap { order: -1; }

.spec {
  background: #15120e;
  border: 1px solid rgba(225, 187, 112, .17);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 55px -30px rgba(13, 30, 44, .7);
}

/* the app's header: surah name, ayah number */
.sc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.05rem 1.25rem .85rem;
  border-bottom: 1px solid rgba(225, 187, 112, .13);
}
.sc-head b {
  font: 600 1.35rem/1 'Cormorant Garamond', Georgia, serif; color: #F0E6D2;
}
.sc-head span {
  font: 700 9px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .2em; text-transform: uppercase; color: #9a8b76;
}

/* the app's five-tab strip, at the app's own proportions */
.sc-tabs {
  display: flex; gap: .2rem; padding: .7rem .7rem .75rem;
  border-bottom: 1px solid rgba(225, 187, 112, .13);
}
.sc-tabs span {
  flex: 1; text-align: center; padding: .5rem .15rem; border-radius: 7px;
  font: 700 8.5px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .09em; text-transform: uppercase; color: #8d8069;
  white-space: nowrap;
}
.sc-tabs .on { background: #E1BB70; color: #15120e; }

.sc-body { padding: 1.15rem 1.25rem 1.35rem; }

/* gold dotted section label, as in the app */
.sc-label {
  margin: 0 0 .85rem;
  font: 700 9.5px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .19em; text-transform: uppercase; color: #E1BB70;
}
.sc-label::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: #E1BB70; margin-right: .6rem;
  vertical-align: .14em;
}
/* the gold rule running down the content, as in the app */
.sc-rule { border-left: 1.5px solid rgba(225, 187, 112, .42); padding-left: 1rem; }

.sc-text { margin: 0; font-size: 14px; line-height: 1.75; color: #D6CBB6; }
.sc-ar {
  margin: 0 0 .9rem; direction: rtl; text-align: right;
  font: 600 25px/2 'Scheherazade New', 'Geeza Pro', serif; color: #F0E6D2;
}
.sc-quote {
  margin: 0; font: italic 600 18px/1.62 'Cormorant Garamond', Georgia, serif;
  color: #F0E6D2;
}
.sc-cite {
  margin: .95rem 0 0; padding-top: .8rem;
  border-top: 1px solid rgba(225, 187, 112, .16);
  font: 700 9px/1.65 'Manrope', system-ui, sans-serif;
  letter-spacing: .15em; text-transform: uppercase; color: #E1BB70;
}
.sc-cite span { display: block; color: #9a8b76; letter-spacing: .11em; }

.sc-themes { margin: 0; padding: 0; list-style: none; }
.sc-themes li { padding: .7rem 0; border-top: 1px solid rgba(225, 187, 112, .13); }
.sc-themes li:first-child { border-top: 0; padding-top: 0; }
.sc-themes .n {
  display: block; margin-bottom: .22rem; color: #E1BB70;
  font: 700 9px/1 'Manrope', system-ui, sans-serif; letter-spacing: .15em;
}
.sc-themes b { display: block; font-size: 14.5px; font-weight: 600; color: #F0E6D2; }
.sc-themes .d { display: block; margin-top: .22rem; font-size: 13px; line-height: 1.6; color: #9a8b76; }

.sc-roots { margin: 0; padding: 0; list-style: none; }
.sc-roots li {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem;
  align-items: baseline; padding: .75rem 0;
  border-top: 1px solid rgba(225, 187, 112, .13);
}
.sc-roots li:first-child { border-top: 0; padding-top: 0; }
.sc-roots .w { grid-row: span 2; font: 600 26px/1 'Scheherazade New', serif; color: #F0E6D2; }
.sc-roots .tr { font: italic 600 15.5px/1.2 'Cormorant Garamond', Georgia, serif; color: #F0E6D2; }
.sc-roots .rt { margin-left: .55rem; font: 400 14px/1 'Scheherazade New', serif; color: #E1BB70; letter-spacing: .1em; }
.sc-roots .mn { grid-column: 2; font-size: 12.5px; line-height: 1.55; color: #9a8b76; }

/* ── pointer annotations ──────────────────────────────────────────────
   Macro's trick: a hairline from a small label to the thing it names, so
   the picture explains itself without a caption beneath it. Two tiers —
   a bold lead that can be read at a glance, and the detail under it.

   They live in the OUTER gutter, the side away from the copy, so the card
   hugs the middle of the spread to make room. Below 72rem there is no
   gutter to put them in and they are simply not drawn.                  */

.annot { display: none; }

@media (min-width: 72rem) {
  .step > .specwrap      { justify-self: start; }
  .step.flip > .specwrap { justify-self: end; }
  .specwrap { max-width: 22rem; }

  .annot { display: block; position: absolute; z-index: 2; width: 8.5rem; font-style: normal; }
  .annot b {
    display: block;
    font: 700 11.5px/1.3 'Manrope', system-ui, sans-serif;
    letter-spacing: .02em; color: var(--ink);
  }
  .annot span {
    display: block; margin-top: .2rem;
    font: 500 10.5px/1.45 'Manrope', system-ui, sans-serif; color: var(--muted);
  }
  .annot::before {
    content: ""; position: absolute; top: .52em; width: 1.9rem; height: 1px;
    background: var(--gold); opacity: .45;
  }
  .annot::after {
    content: ""; position: absolute; top: calc(.52em - 2.5px);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 0 3px rgba(163, 116, 31, .16);
  }

  /* card on the right of the spread → labels further right */
  .annot         { left: calc(100% + 3.05rem); text-align: left; }
  .annot::before { right: 100%; }
  .annot::after  { right: calc(100% + 1.9rem); }

  /* flipped: card on the left → labels further left */
  .step.flip .annot         { left: auto; right: calc(100% + 3.05rem); text-align: right; }
  .step.flip .annot::before { right: auto; left: 100%; }
  .step.flip .annot::after  { right: auto; left: calc(100% + 1.9rem); }

  /* each anchored to the row it names: header, tab strip, Arabic line */
  .a-top  { top: 1.05rem; }
  .a-bot  { top: 3.15rem; }
  .a-ar   { top: 8.7rem; }
  .a-cite { bottom: 1.4rem; }

  .panel.navy .annot b, .panel.forest .annot b { color: var(--onnavy); }
  .panel.navy .annot span, .panel.forest .annot span { color: var(--onnavy-m); }
  .panel.navy .annot::before, .panel.forest .annot::before { background: var(--gold-lt); }
  .panel.navy .annot::after,  .panel.forest .annot::after  { background: var(--gold-lt); }
}

/* ── the active stage pulses as the step arrives ──────────────────────
   The rule itself is left exactly as it was — grey, static. What moves is
   the circle of the stage this step is about: it takes the classic theme's
   green (#2D5A3D, the app's own third palette) and a halo that breathes
   twice on arrival, so the eye lands on the right line of the list.      */

.flow li.on .dot {
  background: #2D5A3D; border-color: #2D5A3D;
  box-shadow: 0 0 0 4px rgba(45, 90, 61, .18);
}
.flow li.on { color: #2D5A3D; }

.step.inview .flow li.on .dot { animation: stageGlow 2.1s ease-out 2; }

@keyframes stageGlow {
  0%   { box-shadow: 0 0 0 3px rgba(45, 90, 61, .30), 0 0 0 0 rgba(45, 90, 61, .45); }
  55%  { box-shadow: 0 0 0 5px rgba(45, 90, 61, .14), 0 0 0 13px rgba(45, 90, 61, 0); }
  100% { box-shadow: 0 0 0 4px rgba(45, 90, 61, .18), 0 0 0 13px rgba(45, 90, 61, 0); }
}

/* on the dark panels the same green would disappear, so it lifts */
.panel.navy .flow li.on .dot, .panel.forest .flow li.on .dot {
  background: #6FBF95; border-color: #6FBF95;
  box-shadow: 0 0 0 4px rgba(111, 191, 149, .20);
}
.panel.navy .flow li.on, .panel.forest .flow li.on { color: #6FBF95; }

@media (prefers-reduced-motion: reduce) {
  .step.inview .flow li.on .dot { animation: none; }
}

/* ── tighter walkthrough ──────────────────────────────────────────────
   The screenshots were 288px of mostly-empty phone, so the steps needed
   deep padding to breathe. The cards carry their own weight.            */
.step { padding: 2.4rem 0; gap: 2.75rem; }
.step .num { font-size: 1.9rem; margin-bottom: .35rem; }
.flow { margin-top: 1.75rem; }

@media (max-width: 52rem) {
  /* Stacked, every card belongs under the narrative it illustrates. Without
     this the flipped steps put their card above their own heading, so the
     cards of two consecutive steps ran together. The screenshots this
     replaced had the same reset. */
  .step.flip .specwrap { order: 0; }
  .specwrap { max-width: none; }
  .sc-ar { font-size: 22px; }
  .sc-tabs span { font-size: 7.5px; letter-spacing: .05em; }
  .step { padding: 1.9rem 0; gap: 1.5rem; }
}

/* ── Go to verse, and search ──────────────────────────────────────────
   Two cards in one step, because the claim is two features: jump to a
   reference, or search the whole book. Both in the app's night palette,
   both carrying what the app really shows — the result count and the two
   verses are read from the shipped database.                            */

.specwrap > .spec + .spec { margin-top: 1rem; }

/* the Go to verse panel */
.gv { display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; align-items: end; }
.gv label { display: block; }
.gv label span {
  display: block; margin-bottom: .4rem;
  font: 700 8.5px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .19em; text-transform: uppercase; color: #9a8b76;
}
.gv label i {
  display: block; text-align: center; font-style: normal;
  padding: .62rem .5rem; border-radius: 9px;
  border: 1px solid rgba(225, 187, 112, .45); background: rgba(225, 187, 112, .05);
  font: 500 16px/1.2 'Cormorant Garamond', Georgia, serif; color: #8d8069;
}
.gv b {
  padding-bottom: .62rem;
  font: 700 11px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #E1BB70;
}

/* the search screen */
.sc-tabs2 span { flex: 1; font-size: 10px; letter-spacing: .04em; text-transform: none;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 14px; font-weight: 600; }
.sc-tabs2 .on { background: transparent; color: #E1BB70;
  border-bottom: 1.5px solid #E1BB70; border-radius: 0; }

.sf {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .75rem; margin-bottom: .9rem; border-radius: 9px;
  border: 1px solid rgba(225, 187, 112, .3);
}
.sf svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #9a8b76; stroke-width: 1.6; }
.sf i { font: italic 600 15px/1 'Cormorant Garamond', Georgia, serif; color: #F0E6D2; }

.sf-chips { display: flex; gap: .95rem; margin: 0 0 .85rem; padding: 0 0 .7rem; list-style: none;
  border-bottom: 1px solid rgba(225, 187, 112, .13); }
.sf-chips li {
  display: flex; align-items: center; gap: .3rem;
  font: 700 8.5px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .13em; text-transform: uppercase; color: #8d8069;
}
.sf-chips .on { color: #F0E6D2; }
.sf-chips em { width: 5px; height: 5px; border-radius: 50%; display: block; }
.sf-chips .d1 { background: #E1BB70; }
.sf-chips .d2 { background: #7FA8C9; }
.sf-chips .d3 { background: #6FBF95; }

.sf-count { margin: 0 0 .8rem; font-size: 12px; color: #8d8069; }

.sf-hits { margin: 0; padding: 0; list-style: none; }
.sf-hits li {
  padding: .1rem 0 .85rem .85rem; margin-bottom: .85rem;
  border-left: 1.5px solid rgba(225, 187, 112, .42);
}
.sf-hits li:last-child { margin-bottom: 0; padding-bottom: 0; }
.sf-hits .ref {
  display: block; margin-bottom: .3rem;
  font: 600 13px/1 'Cormorant Garamond', Georgia, serif; color: #E1BB70;
}
.sf-hits .ar {
  display: block; direction: rtl; text-align: right; margin-bottom: .3rem;
  font: 400 19px/1.95 'Scheherazade New', 'Geeza Pro', serif; color: #F0E6D2;
}
.sf-hits .en {
  display: block; font: italic 600 14px/1.5 'Cormorant Garamond', Georgia, serif; color: #D6CBB6;
}

@media (min-width: 72rem) {
  .a-goto { top: 2.9rem; }
  .a-find { top: 15.4rem; }
}
@media (max-width: 52rem) {
  .sf-hits .ar { font-size: 17px; }
  .sf-chips { gap: .7rem; }
}

/* This step carries two cards, so the pair is far taller than its copy.
   Centred, the heading drifted down beside the second card; aligned to the
   top it sits beside the first, which is the one it opens by describing.
   Browsers without :has() simply keep the centred default. */
.step:has(.spec-goto) { align-items: start; }
.step:has(.spec-goto) > div:first-child { padding-top: .6rem; }
