/*
 * The guest home page: the film (owner, Nov 27 2026: "our home page for guest, just use the video"). web/pages/site/home.tsx,
 * js/home-film.js. The promise, the film in a frame with one big play button, its chapters, signing in, its words.
 */
.hv { max-width: 1180px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px) 56px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.hv-pill { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.hv-pill svg { width: 16px; height: 16px; flex: none; }
.hv h1 { margin: 0; max-width: 18ch; font: 600 clamp(2.3rem, 5.4vw, 4.4rem)/1.04 var(--font-title, Georgia, serif); letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.hv h1 em { display: block; font-style: italic; color: var(--gold-ink, var(--brand)); }
.hv-sub { margin: 0; max-width: 60ch; color: var(--text-secondary); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; }
/* the film: a framed screen, one big play button until it plays */
.hv-film { position: relative; width: 100%; margin: 10px 0 0; border-radius: 22px; overflow: hidden; background: #141b33; aspect-ratio: 16 / 9;
  box-shadow: 0 40px 80px -36px rgba(20, 27, 51, 0.6), 0 0 0 1px rgba(20, 27, 51, 0.12); }
.hv-film video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #141b33; }
.hv-play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(closest-side, rgba(20, 27, 51, 0.15), rgba(20, 27, 51, 0.45)); color: #fff; font: inherit; transition: opacity 220ms ease; }
.hv-play[hidden] { display: none; }
.hv-play-ico { display: grid; place-items: center; width: clamp(76px, 9vw, 112px); height: clamp(76px, 9vw, 112px); border-radius: 999px; background: var(--gold, #c8a24a); color: #141b33;
  box-shadow: 0 0 0 12px rgba(200, 162, 74, 0.25), 0 20px 40px -12px rgba(0, 0, 0, 0.5); transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms; }
.hv-play-ico svg { width: 44%; height: 44%; margin-left: 6%; fill: currentColor; }
.hv-play:hover .hv-play-ico, .hv-play:focus-visible .hv-play-ico { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(200, 162, 74, 0.28), 0 24px 48px -12px rgba(0, 0, 0, 0.55); }
.hv-play:focus-visible { outline: none; }
.hv-play-text { display: grid; gap: 2px; padding: 8px 18px; border-radius: 999px; background: rgba(20, 27, 51, 0.72); }
.hv-play-text b { font-size: 1.05rem; } .hv-play-text small { opacity: 0.85; font-size: 0.82rem; }
@media (prefers-reduced-motion: no-preference) { .hv-play-ico { animation: hv-breath 2.6s ease-in-out 3; } }
@keyframes hv-breath { 50% { box-shadow: 0 0 0 20px rgba(200, 162, 74, 0.18), 0 20px 40px -12px rgba(0, 0, 0, 0.5); } }
/* chapters: one tap jumps there */
.hv-chaps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hv-chap { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-card); color: var(--text); font: 600 0.88rem/1 inherit; cursor: pointer; transition: background 140ms, border-color 140ms, transform 140ms; }
.hv-chap svg { width: 16px; height: 16px; color: var(--gold-ink, var(--brand)); }
.hv-chap small { color: var(--text-muted); font-weight: 500; }
.hv-chap:hover { background: var(--bg-hover); transform: translateY(-1px); }
.hv-chap[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.hv-chap[aria-current="true"] svg, .hv-chap[aria-current="true"] small { color: inherit; }
/* signing in: the same buttons as before, in a row under the film */
.hv-start { width: 100%; display: grid; justify-items: center; margin-top: 6px; }
.hv-words { width: min(760px, 100%); text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.hv-words summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text-secondary); }
.hv-words-body { padding: 0 18px 14px; display: grid; gap: 8px; color: var(--text-secondary); line-height: 1.5; }
.hv-words-body p { margin: 0; } .hv-words-body time { display: inline-block; min-width: 3.2em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .hv-chaps { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .hv-chap { flex: none; }
  .hv-film { border-radius: 16px; }
}
/* the sign-in card (moved here with the page's own sections, from css/home-one.css) */
.ho-signin { display: grid; gap: 10px; width: min(360px, 100%); padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-md); animation: ho-rise 520ms var(--ease-out) 120ms both; }
.ho-signin .google-btn, .ho-apple { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 0; padding: 0 16px; box-sizing: border-box; border-radius: 12px; font: 600 0.98rem/1 var(--font-body); text-decoration: none; }
.ho-signin .google-btn, .ho-signin .apple-btn { border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); transition: transform 180ms var(--ease-out), box-shadow 180ms, border-color 180ms; }
.ho-signin .google-btn:hover, .ho-signin .apple-btn:hover { transform: translateY(-1px); border-color: var(--text-light); box-shadow: var(--shadow); }
.ho-apple svg { flex: none; }
.ho-email { justify-self: center; padding: 6px 10px; color: var(--brand); font-weight: 600; font-size: 0.92rem; text-decoration: none; border-radius: 8px; }
.ho-email:hover { text-decoration: underline; }
.ho-note { margin: 0; text-align: center; color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
.ho-get { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--border-light); color: var(--text-secondary); font: 600 0.85rem/1.3 var(--font-body); text-decoration: none; }
.ho-get svg { width: 15px; height: 15px; }
.ho-get:hover { color: var(--brand); }
.ho-stores { justify-content: center; margin-top: 12px; }

/* ---------- under the film (owner, Nov 27 2026: "bring back the cost, and try it with your voice, and the author
   message"): the try-it area, the Free card and the founder's letter. Their rules come from the old page
   (css/home-v5.css, tag home-before-film-2026-11-27), in Theme B's colours (css/church-theme.css). ---------- */
.h4-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.h4-head h2 { font: 600 clamp(2rem, 1.3rem + 2.6vw, 3.1rem)/1.06 var(--font-title, Georgia, serif); letter-spacing: -0.025em; margin: 14px 0 0; text-wrap: balance; color: var(--text); }
.h4-head p { color: var(--text-muted); font-size: var(--fs-lg, 1.125rem); line-height: 1.55; margin: 14px 0 0; }
.h4-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--brand); font-weight: 600; text-decoration: none; }
.h4-link svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform var(--dur, 0.2s) var(--ease-out, ease); }
.h4-link:hover { color: var(--brand-hover); }
.h4-link:hover svg:last-child { transform: translateX(4px); }
.h4-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }

/* the try-it area: the host page's Test Translator (css/speech-demo.css draws the box itself) */
.hv-try { padding: clamp(48px, 7vw, 96px) 0; background: var(--bg-subtle); border-block: 1px solid var(--border); }
.hv-try-box { max-width: 760px; margin: 0 auto; }
.hv-try-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 14px auto 0; max-width: 640px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.hv-try-privacy svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--gold-ink, var(--text-muted)); }
.hv-try-privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* the cost: one Free card (no dollar amounts) */
.h4-pricing { padding: clamp(56px, 8vw, 104px) 0; }
.h4-price { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--radius-xl, 28px); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.h4-price-free { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; color: #fff; background: var(--navy, #1c2541); }
[data-theme="dark"] .h4-price-free { background: var(--navy-2, #141b33); border-right: 1px solid var(--border); }
.h4-price-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: var(--fs-sm, 0.875rem); font-weight: 500; }
.h4-price-label svg { width: 16px; height: 16px; color: var(--gold-light, #f0d68e); }
.h4-price-amount { margin: 18px 0 0; font: italic 500 clamp(4.4rem, 3rem + 5vw, 6.5rem)/0.95 var(--font-title, Georgia, serif); letter-spacing: -0.03em; color: var(--gold-light, #f0d68e); }
:lang(ko) .h4-price-amount, :lang(zh) .h4-price-amount, :lang(ja) .h4-price-amount { font-style: normal; font-weight: 700; }
.h4-price-text { margin: 14px 0 28px; font-size: var(--fs-lg, 1.125rem); line-height: 1.5; color: rgba(255, 255, 255, 0.88); max-width: 22em; }
.h4-price-free .btn { margin-top: auto; background: #fff; color: var(--navy, #1c2541); border-color: #fff; }
.h4-price-free .btn:hover { color: var(--navy, #1c2541); background: var(--gold-soft, #f3ead8); }
.h4-price-nocard { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--fs-sm, 0.875rem); color: rgba(255, 255, 255, 0.88); }
.h4-price-nocard svg { width: 16px; height: 16px; flex-shrink: 0; }
.h4-price-rates { padding: 36px; display: flex; flex-direction: column; }
.h4-price-rates h3 { font: 600 var(--fs-2xl, 1.6rem)/1.2 var(--font-title, Georgia, serif); margin: 0 0 16px; color: var(--text); }
.h4-included { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h4-included li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.45; color: var(--text-secondary); }
.h4-included li > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--gold-soft, var(--bg-hover)); color: var(--gold-ink, var(--text)); }
.h4-price-fine { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border-radius: var(--radius, 16px); background: var(--bg-subtle); font-size: var(--fs-sm, 0.875rem); color: var(--text-secondary); line-height: 1.5; }
.h4-price-fine svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--text-muted); }

/* the founder's letter */
.h4-founder { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg-subtle); border-top: 1px solid var(--border); }
.h4-founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.h4-polaroid { margin: 0 auto; max-width: 420px; padding: 14px 14px 18px; background: #fff; border: 1px solid #e8e1d3; border-radius: 6px; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.h4-polaroid:hover { transform: rotate(-1deg) scale(1.015); }
.h4-polaroid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.h4-polaroid figcaption { margin-top: 14px; text-align: center; font-family: 'Caveat', var(--font-body); font-size: 1.35rem; line-height: 1.2; color: #2b2b2b; }
.h4-founder-copy h2 { font: 600 clamp(2rem, 1.3rem + 2.6vw, 3.1rem)/1.06 var(--font-title, Georgia, serif); letter-spacing: -0.025em; margin: 14px 0 18px; color: var(--text); }
.h4-founder-copy > p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; margin: 0 0 14px; }
.h4-founder-copy > p.h4-founder-lead { font-size: var(--fs-xl, 1.25rem); line-height: 1.5; color: var(--text); font-weight: 500; }
.h4-facts { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.h4-facts li { display: flex; gap: 14px; align-items: flex-start; }
.h4-fact-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--gold-ink, var(--text)); }
.h4-fact-ico svg { width: 20px; height: 20px; }
.h4-facts strong { display: block; color: var(--text); font-size: 1.0625rem; }
.h4-facts li span:not(.h4-fact-ico) { color: var(--text-muted); line-height: 1.5; }
.h4-sign { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 20px 0 22px; }
.h4-sign-name { font-family: 'Caveat', var(--font-body); font-size: 3rem; line-height: 0.9; color: var(--text); }
.h4-sign-role { color: var(--text-light); font-size: var(--fs-sm, 0.875rem); }
.h4-founder-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
@media (max-width: 960px) {
  .h4-price { grid-template-columns: 1fr; max-width: 560px; }
  .h4-founder-grid { grid-template-columns: 1fr; }
  .h4-polaroid { max-width: 320px; }
}
@media (max-width: 640px) {
  .h4-price { border-radius: 22px; }
  .h4-price-free, .h4-price-rates { padding: 24px 20px; }
  .h4-price-free .btn, .h4-founder-ctas .btn { width: 100%; }
  .h4-sign-name { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .h4-polaroid, .h4-polaroid:hover { transition: none; transform: rotate(-2.5deg); } }
/* inside an app (a store app, an installed window: html.tbos-app) the page is a welcome screen: these stay out, as on
   the old page (css/home-one.css); the store rules also hide the Donate link (css/style.css .in-store-app) */
html.tbos-app :is(.hv-try, .h4-pricing, .h4-founder, .hm) { display: none !important; }

/* ---------- Explore our Modules (owner, Nov 27 2026): every part of TruBible as a card, a real screen of it on top,
   then what it is and all it does. Two columns where there is room, one on a phone. ---------- */
.hm { padding: clamp(56px, 8vw, 104px) 0; }
/* a list of checks (from the old page's css/home-v5.css .h4-checks) */
.h4-checks { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.h4-checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--text-secondary); }
.h4-checks li > svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--text); }
.hm-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 700px) { .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl, 28px); background: var(--bg-card); box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; }
.hm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hm-shot { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.hm-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.hm-card:hover .hm-shot img { transform: scale(1.025); }
.hm-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.hm-name { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 1.45rem/1.2 var(--font-title, Georgia, serif); color: var(--text); }
.hm-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft, var(--bg-hover)); color: var(--gold-ink, var(--text)); }
.hm-ico svg { width: 20px; height: 20px; }
.hm-sub { margin: 0; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.55; }
.hm-list { gap: 9px; }
.hm-list li { font-size: 0.95rem; }
.hm-list li > svg { color: var(--gold-ink, var(--text)); }
.hm-film { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.hm-film svg:first-child { width: 15px; height: 15px; fill: currentColor; }
.hm .h4-head .hm-ai { margin-top: 8px; font-size: var(--fs-sm, 0.875rem); color: var(--text-muted); }
.hm-cta { display: grid; justify-items: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.hm-cta-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: var(--fs-sm, 0.875rem); }
.hm-cta-note svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .hm-body { padding: 18px 18px 20px; }
  .hm-name { font-size: 1.3rem; }
  .hm-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hm-card, .hm-card:hover, .hm-shot img, .hm-card:hover .hm-shot img { transition: none; transform: none; } }
