/* Lucernia — website v2. The app's black & white system: one light and one dark palette that
   follow the visitor's appearance, "ink" (inverted) blocks, faint film grain, system fonts. */

:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Noto Serif", "Times New Roman", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;

  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --surface: #f4f4f5;
  --surface-2: #e8e8ea;
  --text: #0a0a0a;
  --text-rgb: 10, 10, 10;
  --muted: rgba(10, 10, 10, 0.62);
  --faint: rgba(10, 10, 10, 0.45);
  --accent: #0a0a0a;
  --accent-contrast: #ffffff;
  --accent-contrast-rgb: 255, 255, 255;
  --hairline: rgba(10, 10, 10, 0.09);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  --grain: 0.05;
  --phone: #0a0a0a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1160px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-rgb: 0, 0, 0;
    --surface: #121214;
    --surface-2: #1d1d20;
    --text: #f5f5f5;
    --text-rgb: 245, 245, 245;
    --muted: rgba(245, 245, 245, 0.66);
    --faint: rgba(245, 245, 245, 0.46);
    --accent: #ffffff;
    --accent-contrast: #000000;
    --accent-contrast-rgb: 0, 0, 0;
    --hairline: rgba(255, 255, 255, 0.12);
    --shadow: none;
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.7);
    --grain: 0.07;
    --phone: #1c1c1f;
  }
}

/* Ink blocks: the opposite palette, in either appearance. */
.ink {
  --bg: #000000;
  --bg-rgb: 0, 0, 0;
  --surface: #121214;
  --surface-2: #1d1d20;
  --text: #f5f5f5;
  --text-rgb: 245, 245, 245;
  --muted: rgba(245, 245, 245, 0.68);
  --faint: rgba(245, 245, 245, 0.48);
  --accent: #ffffff;
  --accent-contrast: #000000;
  --accent-contrast-rgb: 0, 0, 0;
  --hairline: rgba(255, 255, 255, 0.16);
  --grain: 0.07;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  .ink {
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --surface: #f4f4f5;
    --surface-2: #e8e8ea;
    --text: #0a0a0a;
    --text-rgb: 10, 10, 10;
    --muted: rgba(10, 10, 10, 0.64);
    --faint: rgba(10, 10, 10, 0.46);
    --accent: #0a0a0a;
    --accent-contrast: #ffffff;
    --accent-contrast-rgb: 255, 255, 255;
    --hairline: rgba(10, 10, 10, 0.12);
    --grain: 0.05;
  }
}

/* A faint monochrome film grain, as on the app's feed cards. */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  border-radius: inherit;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(ko) body,
body:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.narrow {
  max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  flex: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: currentColor;
}

.eyebrow-pill {
  display: inline-flex;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text);
  letter-spacing: 0.08em;
}

.eyebrow-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
}

.fine,
.meta {
  font-size: 0.86rem;
  color: var(--faint);
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font: 700 0.98rem/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: block;
  border-radius: 10px;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.store-badge img {
  height: 50px;
  width: auto;
}

.store-badge:hover {
  opacity: 0.85;
}

.store-badge:active {
  transform: scale(0.97);
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.qr img {
  width: 132px;
  height: 132px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
}

.qr figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--hairline);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(var(--text-rgb), 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--hairline);
  user-select: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-chevron {
  transition: transform 0.2s ease;
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
  list-style: none;
}

.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-list a:hover {
  background: rgba(var(--text-rgb), 0.06);
}

.lang-list a[aria-current] {
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1020px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px var(--gutter) 18px;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--hairline), 0 24px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 1.05rem;
    color: var(--text);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .lang-menu .lang-code {
    display: none;
  }

  .lang-menu summary {
    padding: 0 8px 0 10px;
  }
}

/* "Try on the web" (phones): the full-screen feed. Same look as the app button in the demo. */
.try-web {
  display: none;
}

.nav-langs {
  display: none;
}

@media (max-width: 1020px) {
  .site-nav {
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .try-web:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px 0 10px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font: 800 0.76rem/1 var(--font-ui);
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
  }

  .header-actions .lang-menu {
    display: none;
  }

  .nav-langs {
    display: block;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }

  .nav-langs p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .nav-langs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 6px;
    list-style: none;
  }

  .site-nav .nav-langs a {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--hairline);
    font-size: 0.9rem;
  }

  .site-nav .nav-langs a[aria-current] {
    box-shadow: inset 0 0 0 1.5px var(--text);
    font-weight: 800;
  }
}

@media (max-width: 380px) {
  .try-web .icon {
    display: none;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }
}

/* Language suggestion (site.js) */
.lang-banner {
  position: relative;
  z-index: 40;
  background: var(--accent);
  color: var(--accent-contrast);
}

.lang-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 46px;
  padding-block: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-banner a {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-contrast);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.lang-banner button {
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 6px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-more {
  margin-top: 36px;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-copy .lead {
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-demo {
  display: flex;
  justify-content: center;
}

/* Keep the bottom-right corner free for the sticky QR code on desktop. */
@media (min-width: 900px) {
  .hero-demo {
    padding-right: min(140px, calc(100vw - 1100px + 140px));
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }
}

/* ---------- Verse feed demo ---------- */

.feed-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* An iPhone 15 Pro at its real proportions (71.5 × 147 mm), sized by its height (--ph) so it
   always fits the window; bezel, corners, Dynamic Island and side buttons scale with it. */
.phone {
  --ph: clamp(540px, calc(100svh - 190px), 720px);
  position: relative;
  flex: none;
  width: calc(var(--ph) * 0.4864);
  height: var(--ph);
  padding: calc(var(--ph) * 0.0105);
  border-radius: calc(var(--ph) * 0.0775);
  background: var(--phone);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 3px var(--phone);
}

.phone-island {
  position: absolute;
  top: calc(var(--ph) * 0.0245);
  left: 50%;
  z-index: 5;
  width: calc(var(--ph) * 0.153);
  height: calc(var(--ph) * 0.044);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-btn {
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: var(--phone);
  box-shadow: inset 0 0 0 1px #3a3a3c;
}

.phone-btn-action { top: 17%; height: 3.6%; }
.phone-btn-up { top: 24%; height: 6.6%; }
.phone-btn-down { top: 32.5%; height: 6.6%; }

.phone-btn-power {
  left: auto;
  right: -3px;
  top: 27%;
  height: 10.5%;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  --top-inset: calc(var(--ph) * 0.07);
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--ph) * 0.067);
  background: var(--bg);
  container-type: inline-size;
  isolation: isolate;
}

@media (max-width: 600px) {
  .phone {
    --ph: clamp(470px, calc(100svh - 230px), 600px);
  }
}

.feed-scroller {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}

.feed-scroller::-webkit-scrollbar {
  display: none;
}

.feed-scroller.at-edge {
  overscroll-behavior-y: auto;
}

.feed-slide {
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.verse-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(var(--top-inset) + 56px) 24px 16px;
  background: var(--bg);
}

.verse-card-body {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 560px;
  min-height: 0;
  margin-inline: auto;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.verse-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.55);
}

.verse-card-eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.verse-card-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(var(--fs, 24) * 1px);
  font-size: calc(var(--fs, 24) * var(--fit, 1) * min(100cqw, 440px) / 390);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: pretty;
}

.verse-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.verse-card-ref {
  font-size: 1rem;
  font-weight: 700;
}

.verse-card-tr {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(var(--text-rgb), 0.45);
}

.verse-card-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  margin-top: 12px;
}

.verse-card-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 56px;
  padding: 4px;
  border: 0;
  background: none;
  color: rgba(var(--text-rgb), 0.75);
  font: 600 0.66rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.verse-card-share:active {
  transform: scale(0.9);
}

/* Scroll-linked motion, as in the app: feed.js sets --p (offset in screens) and --fade. */
.motion {
  --drift: -22cqh;
  opacity: calc(1 - var(--fade, 0));
  transform: translate3d(0, calc(var(--p, 0) * var(--drift)), 0) scale(calc(1 - var(--fade, 0) * 0.06));
  will-change: transform, opacity;
}

.motion-far {
  --drift: -30cqh;
}

.motion-near {
  --drift: -15cqh;
}

.feed-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: var(--top-inset) 14px 8px;
  background: rgba(var(--bg-rgb), 0.58);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  backdrop-filter: blur(6px) saturate(180%);
  box-shadow: 0 0.5px 0 var(--hairline);
  transition: background-color 0.25s ease;
}

.feed-modes {
  position: relative;
  display: flex;
  gap: 2px;
}

.feed-mode {
  padding: 8px;
  border: 0;
  background: none;
  font: 600 1rem/1.2 var(--font-ui);
  color: rgba(var(--text-rgb), 0.4);
  cursor: pointer;
  transition: color 0.2s ease;
}

.feed-mode.is-on {
  font-weight: 800;
  color: var(--text);
}

.feed-mode-indicator {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.feed-get {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* The invitation to swipe: the green the app uses for success, pulsing so nobody misses it. */
.feed-hint {
  --go: #0e8a43;
  --go-rgb: 14, 138, 67;
  position: absolute;
  left: 50%;
  bottom: 68px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--go);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(var(--go-rgb), 0.35);
  animation: hint-float 2.2s ease-in-out infinite, hint-pulse 1.8s ease-out infinite;
  transition: opacity 0.3s ease;
}

.hint-arrow {
  display: flex;
  animation: hint-arrow 1.1s ease-in-out infinite;
}

@keyframes hint-arrow {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-3px); }
}

@keyframes hint-pulse {
  0% { box-shadow: 0 10px 24px rgba(var(--go-rgb), 0.35), 0 0 0 0 rgba(var(--go-rgb), 0.55); }
  70%, 100% { box-shadow: 0 10px 24px rgba(var(--go-rgb), 0.35), 0 0 0 14px rgba(var(--go-rgb), 0); }
}

.feed-hint .hint-mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .feed-hint .hint-touch {
    display: none;
  }

  .feed-hint .hint-mouse {
    display: inline;
  }
}

.feed-hint.is-hidden {
  opacity: 0;
}

@keyframes hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

.feed-toast {
  position: absolute;
  top: 104px;
  left: 50%;
  z-index: 3;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  width: max-content;
  max-width: calc(100% - 36px);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transform: translate(-50%, -8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feed-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.feed-read {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-read[hidden] {
  display: none;
}

.limit-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 80px 24px 28px;
}

.feed-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  padding: 0 8px;
  text-align: center;
}

.feed-panel h3 {
  margin: 18px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.62rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feed-panel p {
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.limit-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.feed-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.feed-cta:active {
  transform: scale(0.97);
}

/* The moving sheen of the app's purchase button. */
.shimmer::before {
  content: "";
  position: absolute;
  inset: -10px;
  width: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-contrast-rgb), 0.3) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(300%); }
}

.feed-back {
  margin-top: 14px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.88rem/1.2 var(--font-ui);
  cursor: pointer;
}

.feed-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--faint);
  text-align: center;
}

/* "Live demo · try it" above the phone; on phones, a link to the full-screen feed (#try). */
.feed-live {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(14, 138, 67, 0.1);
  color: #0b7a3b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.live-arrow {
  display: none;
}

@media (max-width: 760px) {
  .live-arrow {
    display: block;
  }
}

@media (min-width: 761px) {
  .feed-live {
    pointer-events: none;
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: live-dot 1.6s ease-out infinite;
}

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(14, 138, 67, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(14, 138, 67, 0); }
}

@media (prefers-color-scheme: dark) {
  .feed-live {
    background: rgba(60, 207, 125, 0.13);
    color: #3ccf7d;
  }
}

/* Until the first swipe, the feed lifts a little now and then, showing the next verse below. */
.feed-scroller.is-nudging .feed-slide {
  animation: feed-nudge 1.2s cubic-bezier(0.3, 0.7, 0.2, 1);
}

@keyframes feed-nudge {
  0%, 100% { transform: none; }
  35%, 55% { transform: translateY(-13%); }
}

.feed-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--text-rgb), 0.08);
  color: var(--text);
  cursor: pointer;
}

/* Full screen, like the app ("Try on the web" on phones, or #try) */
html.feed-open,
html.feed-open body {
  overflow: hidden;
}

.feed-full {
  position: fixed;
  inset: 0;
  z-index: 200;
  height: 100dvh;
  background: var(--bg);
  animation: feed-full-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes feed-full-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.feed-demo.is-full {
  display: block;
  height: 100%;
}

.is-full .phone-screen {
  --top-inset: calc(env(safe-area-inset-top, 0px) + 8px);
  border-radius: 0;
}

.is-full .verse-card {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.is-full .feed-hint {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
}

/* ---------- Home sections ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-icon,
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.step p,
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

.steps-compact .step {
  padding: 22px;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow), 0 0 0 1px var(--hairline);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
}

.tile-theme {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.tile-text {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.45;
}

.tile-ref {
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split-copy h2 {
  margin-bottom: 16px;
}

.split-copy > p:not(.eyebrow):not(.fine) {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.checks .icon {
  margin-top: 3px;
}

.split-visual {
  display: grid;
  gap: 16px;
}

.mock {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mock-ref {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.78rem;
  font-weight: 800;
}

.mock-layer {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.mock-layer h4 {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.mock-layer p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.mock-chat {
  display: grid;
  gap: 10px;
  margin-left: clamp(0px, 6vw, 56px);
}

.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.45;
}

.bubble-me {
  justify-self: end;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.feature {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline);
}

.feature h3 {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.languages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.languages a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.languages a:hover {
  background: var(--surface);
}

.languages a[aria-current] {
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.lang-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.lang-tr {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .languages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .languages {
    grid-template-columns: 1fr;
  }
}

.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-col {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline);
}

.guide-col h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.link-plain {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  list-style: none;
}

.link-plain a {
  color: var(--muted);
  text-decoration: none;
}

.link-plain a:hover {
  color: var(--text);
  text-decoration: underline;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .guides {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  padding-block: clamp(64px, 9vw, 112px);
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-grid h2 {
  margin: 22px 0 12px;
}

.cta-grid p {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 1.1rem;
  color: var(--muted);
}

.cta-icon {
  border-radius: 18px;
}

@media (max-width: 760px) {
  .cta-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-grid .qr {
    display: none;
  }
}

/* ---------- FAQ ---------- */

.faq h2 {
  margin-bottom: 24px;
}

.faq-list {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.06rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 22px 0;
  color: var(--muted);
}

/* ---------- Articles ---------- */

.article {
  padding-block: 28px clamp(56px, 8vw, 96px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.85rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
}

.article-head {
  margin-bottom: 36px;
}

.article-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
}

.article-head .lead,
.article-head .deck {
  margin-top: 18px;
}

.deck {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

.article-head .store-badges {
  margin-top: 26px;
}

.verse-hero {
  margin: 32px 0 0;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.verse-hero blockquote {
  margin: 0;
}

.verse-hero p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
}

.verse-hero figcaption,
.verse-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.ref {
  font-weight: 700;
}

.tr {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.tldr {
  margin-bottom: 40px;
  padding: 24px 26px;
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--text), inset 0 0 0 1px var(--hairline);
}

.tldr h2,
.facts-wrap h2 {
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.tldr p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.facts-wrap {
  margin-bottom: 44px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0;
}

.fact {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.fact dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.article-section {
  margin-bottom: 44px;
}

.article-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.article-section p + p {
  margin-top: 16px;
}

.article-section p,
.article-section li {
  font-size: 1.06rem;
  line-height: 1.75;
}

.bullets,
.xrefs {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.notice {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
}

.key-verses,
.verse-list {
  display: grid;
  gap: 18px;
  list-style: none;
}

.key-verse > p {
  margin-top: 12px;
  color: var(--muted);
}

.verse-quote {
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.verse-quote blockquote {
  margin: 0;
}

.verse-quote p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.55;
}

.verse-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.verse-num {
  padding-top: 24px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--faint);
  text-align: right;
}

.app-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 22px;
  margin: 48px 0;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--accent-contrast);
}

.app-cta h2 {
  margin-bottom: 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  color: inherit;
}

.app-cta p {
  font-size: 0.98rem;
  opacity: 0.78;
}

.app-cta .store-badges {
  grid-column: 1 / -1;
}

.app-cta-icon {
  border-radius: 16px;
}

.related {
  margin-top: 44px;
}

.related h2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.link-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.link-list a:hover {
  background: var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--surface);
}

.narrow-col {
  max-width: var(--narrow);
}

/* Hubs */
.hub-head {
  max-width: var(--narrow);
}

.hub-intro {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cards-tight {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--hairline);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
}

.card h2 {
  font-size: 1.4rem;
}

.card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.96rem;
}

.card .card-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
}

.card-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.card-ref {
  font-size: 0.85rem;
  font-weight: 700;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Topic verse pages */
.theme-head {
  max-width: var(--narrow);
}

.theme-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.theme-aside .sticky {
  padding-right: 40px;
}

.aside-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.aside-text {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-aside .phone {
  --ph: clamp(500px, calc(100svh - 280px), 660px);
}

@media (max-width: 960px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-aside {
    order: -1;
  }

  .theme-aside .sticky {
    padding-right: 0;
  }

  .theme-aside .aside-title,
  .theme-aside .aside-text {
    text-align: center;
  }
}

/* Legal */
.prose h2 {
  margin: 40px 0 14px;
  font-size: 1.5rem;
}

.prose h3 {
  margin: 26px 0 10px;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.75;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 22px;
}

.prose strong {
  color: var(--text);
}

.prose .callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 10px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

/* Download */
.download {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: 64px;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.download-inner .lead {
  max-width: 560px;
}

.download-icon {
  border-radius: 26px;
}

.download .store-badges {
  justify-content: center;
}

.store-badge.is-recommended {
  order: -1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 32px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.footer-brand .store-badge img {
  height: 42px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover,
.footer-col a[aria-current] {
  color: var(--text);
}

.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem;
  color: var(--faint);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Desktop: a QR code pinned to the bottom right of every page (except /download, which has its
   own). site.js hides it while it would cover the demo phone or another QR, and when dismissed. */
.qr-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 44;
  display: none;
  width: 158px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 900px) {
  .qr-sticky {
    display: block;
  }
}

.qr-sticky img {
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
}

.qr-sticky p {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

.qr-sticky-close {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.qr-sticky.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.qr-sticky.is-dismissed,
html.feed-open .qr-sticky,
html.feed-open .mobile-bar {
  display: none !important;
}

/* Phones: a small download bar (site.js slides it up on every page except /download) */
body.has-bar {
  padding-bottom: 92px;
}

/* Mobile download bar (site.js shows it once the visitor scrolls past the first screen) */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  background: rgba(var(--bg-rgb), 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--hairline);
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-bar[hidden] {
  display: none;
}

.mobile-bar.is-on {
  transform: none;
}

.mobile-bar img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--hairline);
}

.mobile-bar-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.mobile-bar-text span {
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mobile-bar-close {
  display: flex;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }

  .motion {
    transform: none;
  }
}
