/* =========================================================================
   Bible Steps — guides, legal pages, contact and 404
   (the home page has its own stylesheet, css/home.css)
   White · Plus Jakarta Sans · ink type · gold accent.
   ========================================================================= */

:root {
  --bg:        #FFFFFF;   /* page, nav, footer */
  --band:      #F5F5F7;   /* calculator, call-to-action panels, table headers */
  --ink:       #131316;   /* headlines, App Store + Download buttons */
  --grey:      #6E6E73;   /* lead text, captions, footer links */
  --grey-2:    #8E8E93;   /* breadcrumbs, list markers */
  --line:      #E5E5EA;   /* rules, table lines */
  --gold:      #C9A35B;   /* Bible Steps accent */
  --gold-soft: #EBD7A8;   /* link underlines, rules, verse bars, the highlighter band */
  --rose:      #A34F5D;   /* calculator error text */
  --read:      #3A3A3C;   /* long-form reading text */

  --hl: linear-gradient(transparent 56%, var(--gold-soft) 56%, var(--gold-soft) 93%, transparent 93%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --pad: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------- Base --------------------------------- */
* { 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: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, video { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* Teal highlighter: covers the lower part of the letters */
.hl {
  background: var(--hl); padding: 0 .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------------------------------- Nav --------------------------------- */
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__foot { width: 30px; height: auto; transform: rotate(-24deg); opacity: .85; }   /* the footprint logo */
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }

.pill-btn {
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; font-size: 15px; font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pill-btn:hover { background: #000; transform: translateY(-1px); }

/* ---------------------------- Store buttons ----------------------------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row--center { justify-content: center; }
.store {
  height: 60px; padding: 0 26px; border-radius: 999px; text-decoration: none; text-align: left;
  display: inline-flex; flex-direction: column; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.store__small { font-size: 12px; font-weight: 500; line-height: 1.25; }
.store__big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.store--apple { background: var(--ink); color: #fff; }
.store--apple .store__small { opacity: .8; }
.store--apple:hover { background: #000; transform: translateY(-1px); }
.store--android { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); cursor: default; }
.store--android .store__small { color: var(--grey-2); }

/* -------------------------------- Footer -------------------------------- */
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 36px 48px; border-top: 1px solid var(--line);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer__brand img { width: 24px; height: auto; transform: rotate(-24deg); opacity: .85; }
.footer__brand span { font-size: 15px; font-weight: 700; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--grey); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--lg { height: 60px; padding: 0 30px; font-size: 17px; }

/* ===================== LEGAL / SIMPLE CONTENT PAGES ===================== */
.page { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 8vw, 104px); }
.page__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); }
.page__title { margin-top: 10px; font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.05em; }
.page__updated { margin-top: 14px; color: var(--grey); font-size: 15px; }
.page__rule { height: 8px; width: 64px; background: var(--gold-soft); border-radius: 4px; margin: 26px 0 34px; }
.page h2 { margin: 40px 0 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.page h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.page p, .page li { color: var(--read); font-size: 1rem; line-height: 1.7; }
.page p + p { margin-top: 14px; }
.page ul { margin: 12px 0; padding-left: 22px; }
.page li { margin: 8px 0; }
.page li::marker { color: var(--grey-2); }
.page strong { color: var(--ink); }
.page a.inline, .contact__alt a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 3px; text-underline-offset: 3px;
}
.page__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; color: var(--grey); font-weight: 700; font-size: 15px; text-decoration: none; }
.page__back:hover { color: var(--ink); }

/* -------------------------------- Guides -------------------------------- */
.crumbs { font-size: 14px; font-weight: 600; color: var(--grey-2); }
.page nav.crumbs a { color: var(--grey); text-decoration: none; }   /* beats the in-text link underline below */
.page nav.crumbs a:hover { color: var(--ink); }
.crumbs__sep { margin: 0 8px; }
.page__lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; font-weight: 500; color: var(--grey); }
.page ol { margin: 12px 0; padding-left: 24px; }
.page ol > li::marker { font-weight: 800; color: var(--ink); }
.page a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* A quoted verse: gold bar, verse in ink, reference below */
.page .verse { margin: 20px 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--gold-soft); }
.page .verse p { color: var(--ink); font-size: 1.08rem; line-height: 1.6; font-weight: 600; }
.page cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--grey); }

/* Compact verse list (caption lists) */
.page .verse-list { list-style: none; margin: 14px 0 0; padding: 0; }
.page .verse-list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page .verse-list li:last-child { border-bottom: 0; }
.page .verse-list q { quotes: "\201C" "\201D"; color: var(--ink); font-weight: 600; }
.page .verse-list cite { margin-top: 4px; }

/* Data tables */
.table-wrap { margin: 18px 0; overflow-x: auto; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page th, .page td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.page th { background: var(--band); font-weight: 700; color: var(--ink); }
.page td { color: var(--read); }
.page th, .page td:first-child { white-space: normal; }
.page th { vertical-align: bottom; }
.page td .t-note { display: block; font-size: 13px; line-height: 1.35; color: var(--grey); }
.page .table-note { margin-top: 8px; font-size: 14px; color: var(--grey); }
@media (max-width: 560px) {
  .page table { font-size: 14px; }
  .page th, .page td { padding: 10px 8px; }
}

/* Reading-time calculator */
.calc { margin: 22px 0; padding: clamp(18px, 3vw, 26px); border-radius: 22px; background: var(--band); }
.calc__row { display: grid; gap: 8px; }
.calc__row + .calc__row { margin-top: 16px; }
.calc label { font-weight: 700; color: var(--ink); }
.calc__speed { font-weight: 800; }
.calc input[type=range] { width: 100%; accent-color: var(--ink); }
.calc select { font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.calc__out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.calc__stat { padding: 14px 16px; border-radius: 16px; background: #fff; }
.calc__stat b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.calc__stat span { font-size: 13px; font-weight: 600; color: var(--grey); }

/* App Store call to action, related guides, sources */
.cta { margin-top: 48px; padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: var(--band); }
.page .cta h2 { margin-top: 0; }
.cta .store-row { margin-top: 18px; }
.related { margin-top: 36px; }
.page .related h2 { font-size: 1.1rem; }
.page .related ul { list-style: none; padding: 0; }
.related a { font-weight: 700; }
.page .sources h2 { font-size: 1.1rem; }
.page .sources p, .page .sources li { font-size: 14px; color: var(--grey); }

/* Mid-article call to action, product demo, author, table caption */
.cta--inline { margin: 26px 0 8px; padding: 20px 22px; }
.page .cta--inline h2 { font-size: 1.15rem; }
.page .cta--inline p { margin-top: 6px; }
.cta--inline .btn { margin-top: 14px; height: auto; min-height: 52px; padding: 12px 26px; line-height: 1.25; text-align: center; }
.page .demo { margin: 22px 0; }
.page .demo video { display: block; width: min(100%, 280px); height: auto; aspect-ratio: 804 / 1748; border-radius: 28px; background: #131316;
  box-shadow: 0 0 0 8px var(--ink), 0 24px 50px -24px rgba(0,0,0,.35); margin: 8px 8px 0; }
.page .demo figcaption { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--grey); }
.page caption { caption-side: top; text-align: left; padding-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--grey); }
.page .author { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.page .author h2 { margin-top: 0; font-size: 1.1rem; }
.calc__inputs { display: flex; align-items: center; gap: 14px; }
.calc input[type=number] { width: 96px; flex: none; font: inherit; font-weight: 700; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.calc input[type=number][aria-invalid=true] { border-color: var(--rose); }
.calc__error { min-height: 1.2em; font-size: 14px; font-weight: 600; color: var(--rose); }
.calc__out.is-stale { opacity: .45; }
.page .calc__note { margin-top: 14px; font-size: 14px; color: var(--grey); }
.page .cta__fine { margin-top: 12px; font-size: 13px; color: var(--grey); }

/* Karaoke demo: the verse stays ordinary text until Play; then upcoming words
   are grey, read words ink, and the current word gets the gold highlighter */
button.btn { font-family: inherit; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--band); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.page .kdemo { margin: 22px 0; }
.page .kdemo .verse { margin: 0; }
.kdemo p.is-playing .kw { color: var(--grey); }
.kdemo p.is-playing .kw.read, .kdemo p.is-playing .kw.on { color: var(--ink); }
.kdemo .kw.on { background: var(--hl); }
.kdemo__bar { display: grid; gap: 10px; margin-top: 16px; }
.kdemo__bar[hidden] { display: none; }
.kdemo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kdemo__pace { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.kdemo__pace label { font-size: 15px; font-weight: 700; color: var(--ink); }
.kdemo select { font: inherit; font-size: 15px; font-weight: 600; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.kdemo__note { font-size: 14px; font-weight: 600; color: var(--grey); }

/* Guides index */
.page .guides-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.page .guides-list li { margin: 0; }
.guide-card { display: block; padding: 22px 24px; border-radius: 22px; background: var(--band); color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,29,31,.08); }
.page .guide-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.page .guide-card p { color: var(--grey); }

/* -------------------------------- Contact ------------------------------- */
.contact {
  max-width: 720px; margin-inline: auto; text-align: center;
  min-height: min(70vh, 700px); padding: clamp(56px, 9vh, 112px) var(--pad);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.contact .page__title { margin-top: 0; }
.contact__lead { margin: 26px auto 0; max-width: 40ch; color: var(--grey); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; font-weight: 500; }
.contact__btn { margin-top: 40px; }
.contact__glyph { color: #fff; }
.contact__alt { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--grey); font-size: 15px; }
.contact .page__back { margin-top: 52px; }

/* ---------------------------------- 404 --------------------------------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 72px var(--pad); }
.notfound__code { font-size: clamp(88px, 16vw, 160px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.notfound__msg { margin-top: 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.notfound__sub { margin-top: 10px; color: var(--grey); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 360px) {
  :root { --pad: 20px; }
  .brand__name { font-size: 17px; }
  .pill-btn { padding: 0 16px; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
