/* The app's own palette and type: white paper, near-black ink, Georgia for
   headlines and verses, the system's sans-serif for everything else, and
   the streak's orange as the one accent. */
:root {
  --paper: #ffffff;
  --ink: #171717;
  --ink-muted: #5c5c5c;
  --hairline: #e6e6e6;
  --surface: #f5f5f5;
  --flame: #d9480f;
  --serif: Georgia, Charter, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Links to a section land below the sticky header, not under it. */
section[id], .stores[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 5vw, 40px); text-align: center; }
h3 { font-size: 22px; margin-top: 20px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
/* The logo: the app icon's cross with the linen cloth (Q-66), then the
   name in Georgia. */
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-small { gap: 6px; font-size: 21px; }
.brand-small img { height: 32px; }
.nav { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink-muted); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-cta { text-decoration: none; background: var(--ink); color: var(--paper); font-size: 15px; padding: 8px 18px; border-radius: 999px; white-space: nowrap; }
@media (min-width: 720px) { .nav { display: flex; } .top .brand { margin-right: 8px; } }
/* On a phone the menu is hidden, so its empty box must not take a gap. */
@media (max-width: 719.98px) { .top-inner > nav { display: none; } }
/* The narrowest phones (320 px) fit the logo, the language and the longest
   "Download" (Ukrainian) on one line. */
@media (max-width: 359.98px) {
  .top-inner { gap: 12px; }
  .top-end { gap: 6px; }
  .top-cta { padding: 8px 14px; }
  .brand { gap: 6px; font-size: 23px; }
  .brand img { height: 34px; }
}

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero-text { text-align: center; }
h1 { font-size: clamp(40px, 9vw, 64px); letter-spacing: -0.015em; }
/* The hero's slogans share one place, so the heading keeps the height of
   the tallest and nothing under it moves. They take turns the way the
   verses do on the phone beside them: the leaving one moves up and fades
   quickly, the coming one rises from below and shows once the other is
   nearly gone, so the two never read over each other. */
.slogans { display: grid; }
.slogan { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(0.5em); transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, visibility 0s linear 0.65s; }
.slogan.is-current { opacity: 1; visibility: visible; transform: none; transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease 0.2s, visibility 0s; }
.slogan.is-out { transform: translateY(-0.5em); }
@media (prefers-reduced-motion: reduce) { .slogan { transition: none; } }
.lead { margin: 20px auto 0; max-width: 30ch; font-size: 19px; color: var(--ink-muted); }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }
@media (min-width: 880px) {
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-text { text-align: left; }
  .lead { margin-left: 0; }
}

/* Store buttons: the stores' official badges once they are in
   assets/badges/, plain buttons until then; "coming soon" sits on top. */
.stores { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; margin-top: 40px; }
@media (min-width: 880px) { .hero .stores { justify-content: flex-start; } }
.store { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-width: 176px; min-height: 58px; padding: 8px 22px; background: #0b0b0b; color: #f2f2f2; border: 1px solid #2b2b2b; border-radius: 16px; line-height: 1.15; }
.store.has-badge { min-width: 0; min-height: 0; padding: 0; background: none; border: 0; }
.store .badge { display: block; width: auto; }
.badge-apple, .badge-google { height: 50px; max-width: none; }
.store-small { font-size: 13px; color: #a8a8a8; }
.store-big { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.soon { position: absolute; top: -12px; right: 16px; z-index: 1; padding: 3px 12px; border-radius: 999px; background: #4f9e7a; color: #0d2a1d; font: 600 11px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

/* Language switcher */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); }
.lang a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang a:hover { background: var(--surface); }
.lang a[aria-current="true"] { font-weight: 600; }
.lang-code { width: 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-muted); }

/* The hero phone: the app's reader with its verse area empty, and the
   verses laid over it in the page's language, one after another. The
   positions are the screen's within Apple's bezel (1350 x 2760 px, screen
   at 72,69, 1206 x 2622) and the verse area's within the screen (from 160
   to 645 of 874 points). */
.verse-phone { position: relative; container-type: inline-size; }
.screen-verses { position: absolute; left: 5.3333%; width: 89.3333%; top: 19.891%; height: 52.717%; }
.verse-stage { position: absolute; top: 0; bottom: 0; left: 10%; right: 10%; overflow: hidden; }
.verse { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; transform: translateY(45%); transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease; }
.verse.is-current { opacity: 1; transform: none; }
.verse.is-out { opacity: 0; transform: translateY(-45%); }
.verse p { margin: 0; font-family: var(--serif); color: var(--ink); font-size: 18px; font-size: 6.1cqw; line-height: 1.36; }
.verse .ref { margin-top: 2.4cqw; font-size: 10px; font-size: 2.5cqw; color: #6b6b6b; }
.rail { position: absolute; left: 3.1%; top: 42.9%; height: 53.6%; width: 0.45cqw; background: #d4d4d4; border-radius: 1cqw; }
.rail-mark { position: absolute; left: -0.15cqw; top: 0; width: 0.75cqw; height: 3.1cqw; background: var(--ink); border-radius: 0.4cqw; transition: top 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rail-n { position: absolute; left: 1.7cqw; top: 50%; transform: translateY(-50%); font-size: 2.2cqw; font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .verse, .rail-mark { transition: none; } }

/* Phones: the app's screenshots in Apple's iPhone 18 Pro bezel, one image
   each with a transparent background. */
.device { margin: 0 auto; }
.device img { width: 100%; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.16)); }
.device-hero { width: min(320px, 80vw); }
.device-small { width: min(250px, 70vw); }
.device-small img { filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.12)); }

/* Not doomscrolling */
.scrolling { padding: 80px 0; text-align: center; }
.scrolling .eyebrow { margin-bottom: 12px; }
.section-lead { margin: 18px auto 0; max-width: 58ch; color: var(--ink-muted); }
.contrast { display: grid; gap: 16px; margin-top: 44px; text-align: left; }
@media (min-width: 720px) { .contrast { grid-template-columns: 1fr 1fr; } }
.contrast-card { border-radius: 20px; padding: 28px; border: 1px solid var(--hairline); }
.contrast-card h3 { margin-top: 22px; }
.contrast-card p { margin-top: 8px; color: var(--ink-muted); }
.contrast-feed { background: var(--surface); }
.contrast-bibli { border-color: var(--ink); }
.feed-art, .verse-art { display: grid; gap: 8px; height: 104px; align-content: center; }
.feed-art span { height: 28px; border-radius: 8px; background: #dedede; filter: blur(0.6px); }
.feed-art span:nth-child(2) { width: 82%; }
.feed-art span:nth-child(3) { width: 64%; opacity: 0.6; }
.verse-art { position: relative; justify-items: center; padding-left: 18px; }
.verse-art span { height: 6px; width: 46%; border-radius: 3px; background: #dcdcdc; }
.verse-art span.on { height: 14px; width: 74%; border-radius: 7px; background: var(--ink); }
.verse-art::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 34px; border-radius: 2px; background: var(--flame); }

/* Features */
.features { padding: 72px 0; background: var(--surface); }
.feature-grid { display: grid; gap: 56px; margin-top: 48px; }
.feature { text-align: center; }
.feature p { margin: 10px auto 0; max-width: 34ch; color: var(--ink-muted); font-size: 16px; }
@media (min-width: 880px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facts { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.facts span { color: var(--ink-muted); font-size: 15px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* Reviews */
.reviews { padding: 72px 0; }
.slider { position: relative; max-width: 640px; margin: 40px auto 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 16px; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; margin: 0; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 36px 28px 28px; text-align: center; }
.stars { color: var(--flame); letter-spacing: 3px; font-size: 18px; }
.slide blockquote { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(20px, 4vw, 24px); line-height: 1.4; }
.slide figcaption { margin-top: 16px; color: var(--ink-muted); font-size: 15px; }
.sample { position: absolute; top: 12px; right: 12px; font-size: 12px; color: var(--flame); border: 1px solid var(--flame); border-radius: 999px; padding: 1px 10px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.arrow:hover { border-color: var(--ink); }
.dots { display: flex; gap: 4px; }
.dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); transition: background 0.2s; }
.dot[aria-current="true"]::after { background: var(--ink); }

/* Mission */
.mission { padding: 72px 0; background: var(--surface); }
.mission-inner { display: grid; gap: 40px; align-items: center; }
.mission-photo { margin: 0; border-radius: 24px; overflow: hidden; }
.mission-text h2 { text-align: left; }
.mission-text p:not(.eyebrow) { margin-top: 16px; color: var(--ink-muted); }
.mission-text p:first-of-type + h2 + p { margin-top: 20px; }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flame); margin-bottom: 8px; }
@media (min-width: 880px) { .mission-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Closing */
.closing { padding: 80px 0; text-align: center; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 32px 0 40px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { width: 100%; color: var(--ink-muted); font-size: 14px; }
.credit { width: 100%; margin: 0; color: var(--ink-muted); font-size: 12px; }
@media (min-width: 720px) { .copy { width: auto; margin-left: auto; } }

/* Simple text pages (terms, privacy) */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(32px, 7vw, 44px); }
.page p { margin-top: 16px; color: var(--ink-muted); max-width: 60ch; }
/* The legal pages: their sections, lists, and the notes over them. */
.legal h2 { font-size: 24px; margin-top: 36px; text-align: left; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 22px; color: var(--ink-muted); max-width: 60ch; }
.legal li { margin-top: 6px; }
.draft-note { display: inline-block; padding: 8px 14px; border: 1px dashed var(--flame); border-radius: 10px; color: var(--flame) !important; font-size: 14px; }
.lang-note { font-style: italic; }
