/* Glossa landing page: page CSS for what sits inside the visuals (the kit draws everything else). */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__logo img { display: block; height: 32px; width: auto; }
.serif, .gp-text, .answer .a { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }

/* Hero: the real app on the grain ground, cut by the frame's right and bottom */
.hero-shot { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.hero-shot > img { position: absolute; left: 48px; top: 56px; width: 1040px; max-width: none; height: auto; border-radius: 14px;
  box-shadow: 0 1px 0 rgba(18, 23, 34, .06), 0 24px 60px -24px rgba(18, 23, 34, .35); object-fit: initial; }
@media (max-width: 639px) { .hero-shot > img { left: 16px; top: 24px; width: 640px; } }

/* The live demo: one app window, four linked panels */
.demo-intro .link { display: inline-block; margin-top: var(--s-3); }
.app.gdemo { display: flex; flex-direction: column; margin-top: var(--s-7); background: var(--u-bg, #fff); border: 1px solid var(--u-border, rgba(18,23,34,.12));
  border-radius: var(--r-lg); box-shadow: var(--u-shadow, 0 24px 60px -32px rgba(18,23,34,.3)); overflow: hidden; min-height: 0; }
.gdemo__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-bottom: 1px solid rgba(18,23,34,.1); }
.gdemo__label { align-self: center; font-size: 14px; font-weight: 500; }
.gdemo__go { align-items: center; }
.gdemo__go { display: flex; gap: 8px; }
.gdemo__go input { width: 180px; height: 44px; padding: 0 14px; font: 500 16px var(--font-text); color: var(--p-ink); background: #fff; border: 1px solid rgba(18,23,34,.18); border-radius: var(--r-sm); }
.gdemo__go input:focus-visible { outline: 2px solid var(--p-action); outline-offset: 1px; }
.gdemo__btn { height: 44px; padding: 0 18px; font: 500 16px var(--font-text); color: var(--p-action-ink); background: var(--p-ink); border: 0; border-radius: var(--r-sm); cursor: pointer; }
.demo-try { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-try button { height: 44px; padding: 0 14px; font: 500 14px var(--font-text); color: var(--p-ink); background: #fff; border: 1px solid rgba(18,23,34,.14); border-radius: 999px; cursor: pointer; }
.demo-try button[aria-pressed="true"] { background: var(--p-ink); color: #fff; border-color: var(--p-ink); }
.demo-error { flex-basis: 100%; margin: 0; font-size: 14px; color: #b8501a; }
.gdemo__cols { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp { overflow: hidden; display: flex; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid rgba(18,23,34,.1); }
.gp:first-child { border-left: 0; }
.gp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(18,23,34,.08); }
.link-chip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ff8a3d; color: #121722; font-size: 12px; font-weight: 600; }
.gp.moved .link-chip { animation: gchip .6s ease-out; }
@keyframes gchip { 40% { transform: scale(1.3); } }
.gp-ref { padding: 12px 16px 0; font-size: 13px; font-weight: 500; color: var(--p-muted); }
.gp-text { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px 16px; font-size: 17px; line-height: 1.7; scrollbar-width: thin; }
.gp-text .title { font-style: italic; color: var(--p-muted); padding: 2px 6px; font-size: 15px; }
.gp-text .v { padding: 2px 6px; border-radius: 6px; }
.gp-text .v.on { background: #fff1e6; }
.gp-text sup { color: #b8501a; font: 600 11px var(--font-text); margin-right: 3px; }
.gp-text .sc { font-variant: small-caps; }
.gp-text.fade { animation: gfade .35s ease-out; }
@keyframes gfade { from { opacity: .3; } }
.xrefs { padding: 10px 16px 14px; font-size: 13px; line-height: 1.5; color: var(--p-muted); border-top: 1px solid rgba(18,23,34,.08); }
.xrefs b { display: block; color: var(--p-ink); font-weight: 500; }
.xrefs span { color: var(--p-action); }
.gp--yours { background: #f8f9fb; }
.gp-yours { padding: 16px; font-size: 16px; line-height: 1.6; color: var(--p-ink); }
.gp-yours__t { color: var(--p-ink); font-weight: 500; }
@media (max-width: 1279px) { .gdemo__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gp[data-bible="APSD"] { display: none; } }
@media (max-width: 1023px) { .gdemo__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gp--yours { display: none; } }
@media (max-width: 639px) { .gdemo__cols { grid-template-columns: minmax(0, 1fr); } .gp[data-bible="KJV"] { display: none; } .gdemo__go input { width: 130px; } }
@media (prefers-reduced-motion: reduce) { .gp.moved .link-chip, .gp-text.fade { animation: none; } }

/* The film: the video in its frame, letterboxed on ink */
.frame.film { margin-top: var(--s-7); background: #121722; border-radius: var(--r-lg); overflow: hidden; }
.frame.film video { display: block; width: 100%; height: 100%; object-fit: contain; background: #121722; }

/* Feature panels: the real screens, from the top */
.shot-panel { --p-h: 336px; background: #eef0f4; }
.shot-panel > .frame__img { object-fit: cover; object-position: 50% 0; }
@media (max-width: 639px) { .shot-panel { --p-h: 200px; } }

/* Ask: the answer card inside the split frame */
.ask-text .t-lead { margin-top: var(--s-5); }
.ask-facts { margin: var(--s-5) 0; padding: 0; list-style: none; }
.ask-facts li { padding: 10px 0; border-bottom: 1px solid rgba(18,23,34,.1); font-size: 16px; }
.ask-frame { background: #2f5bea; display: flex; align-items: flex-start; padding: 48px; border-radius: var(--r-lg); }
.answer { position: relative; margin: 0; width: 100%; background: #fbfcfe; color: var(--p-ink); border-radius: 14px; padding: 24px; box-shadow: 0 24px 60px -30px rgba(18,23,34,.5); }
.answer .q { font-size: 16px; font-weight: 500; background: #eef0f4; border-radius: 10px; padding: 12px 14px; }
.answer .a { font-size: 18px; line-height: 1.7; margin: 16px 0 0; }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin: 0 2px; padding: 0 5px; vertical-align: 2px; font: 600 12px var(--font-text);
  color: #fff; background: #b8501a; border: 0; border-radius: 6px; cursor: pointer; }
.cite:hover, .cite[aria-expanded="true"] { background: #8f3d12; }
.cite-pop { position: absolute; left: 24px; right: 24px; z-index: 2; padding: 12px 14px; background: #121722; color: #f3f5f9; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.cite-pop small { display: block; margin-top: 4px; color: #a9b1c0; font-size: 13px; }
.sources { margin: 16px 0 0; padding: 12px 0 0 20px; border-top: 1px solid #dce0e8; font-size: 14px; color: var(--p-muted); }
.sources li.hl { color: var(--p-ink); }
@media (max-width: 639px) { .ask-frame { padding: 24px; } }

/* Download */
.dl-card { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }

.dl-icon { width: 28px; height: 28px; }
.dl-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.dl-pair .btn { margin-top: 0; }
.included .t-label { margin: 0 0 var(--s-3); }
.footer__legal .credits { color: inherit; opacity: .8; }

/* Offline statement: three plain facts under it */
.offline-rows { margin-top: var(--s-8); max-width: 840px; }
/* Tablet: the FAQ and the Ask split stacked need two screens */
@media (min-width: 1024px) and (max-width: 1279px) { .shot-panel { --p-h: 280px; } }
@media (min-width: 640px) and (max-width: 1023px) {
  #download .grid > .dl-card { grid-column: span 6; }
  #download .grid > .included { grid-column: 1 / -1; }
}
.hero h1, h2 { hyphens: manual; -webkit-hyphens: manual; }
.ask-frame { align-items: center; }
.faq-icon { display: block; width: 96px; height: 96px; margin-bottom: var(--s-6); }
@media (max-width: 639px) { .xrefs { display: none; } .demo-try button { height: 44px; } }

.dl-list { display: flex; flex-direction: column; }
.dl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; border-bottom: 1px solid rgba(18,23,34,.12); }
.dl-row:first-child { padding-top: 0; }
.dl-row h3 { font-size: var(--t-card); margin: 0 0 4px; }
.dl-row p { margin: 0; }
.dl-row .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
.dl-incl { margin-top: var(--s-6); }
.shot-frame { aspect-ratio: 1 / 1; }
.shot-frame > .frame__img { object-fit: cover; object-position: 0 0; }
.offline-sub { color: var(--p-ink); }
@media (max-width: 639px) { .gdemo__go { flex-wrap: wrap; width: 100%; } .gdemo__go input { flex: 1; } }
.shot-frame { aspect-ratio: 4 / 3; }
.gp-text { overflow: hidden; position: relative; }
.gp { position: relative; }
.gp:not(.gp--yours)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.gp .xrefs { position: relative; z-index: 1; background: #fff; }
.dl-row { display: block; }
.dl-row h3 { display: flex; align-items: center; gap: 12px; }
.dl-row .dl-icon { width: 24px; height: 24px; }
.dl-row .btn { margin-top: 16px; }
@media (min-width: 1024px) { .ask-frame { height: 100%; } }
.shot-frame { aspect-ratio: 5 / 4; }
@media (max-width: 639px) { .answer .a { font-size: 16px; } .answer { padding: 16px; } }
