/*
 * pentecostalhymns.com design system — "Hymn Index" (Swiss Editorial).
 * Tokens are transcribed 1:1 from /DESIGN.md at the repo root; that file is
 * the source of truth and carries the reasoning for every value here.
 * Brand-only alignment with the Android/iOS app: --color-tertiary is a
 * deepened, AA-safe descendant of the app's own primaryColor (#007AFF).
 */

:root {
  --color-primary: #17130f;
  --color-secondary: #68625b;
  --color-tertiary: #004bc5;
  --color-tertiary-subtle: #e6effc;
  --color-tertiary-hover: #0538ab;
  --color-neutral: #fbf8f4;
  --color-surface: #f6f3ee;
  --color-on-surface: #17130f;
  --color-border: #e3ddd5;
  --color-error: #a50008;
  --color-error-subtle: #ffe8e3;

  --font-voice: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-apparatus: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-gutter: 24px;
  --space-margin: clamp(16px, 4vw, 32px);

  --radius: 0px;
  --radius-icon: 10px; /* the one named exception — see DESIGN.md § Shapes */

  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-neutral);
  color: var(--color-primary);
  font-family: var(--font-voice);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Main grows to fill the viewport on short pages — pushing the closing
   "Get the app" band and footer to the bottom of the screen rather than
   letting them sit flush under a short page's content. Has no visible
   effect once a page's own content already exceeds viewport height. */
main {
  flex: 1 1 auto;
  padding: var(--space-lg) 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Scroll-driven entrance motion ----------
   CSS-only (animation-timeline: view()), no JavaScript: a browser without
   support just resolves the animation to its end state instantly, so
   content is never hidden from a visitor or a crawler. Deliberately not
   applied to the hymn numeral's own value, page transitions, or lyric text
   — .no-reveal opts a specific element back out of an ancestor's motion. */
@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero,
.page-header,
.feature-row {
  animation: reveal-rise linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

.row,
.listing-row {
  animation: reveal-fade linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

.no-reveal {
  animation: none !important;
}

a {
  color: var(--color-tertiary);
}

img {
  max-width: 100%;
}

/* ---------- Layout shell ---------- */

.container {
  width: min(1200px, 100% - var(--space-margin) * 2);
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-neutral);
  border-bottom: 1px solid var(--color-border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-primary);
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 1rem;
}

.nav-brand img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-cta {
  height: 44px;
  padding: 0 var(--space-md);
  display: inline-flex;
  align-items: center;
  background: var(--color-tertiary);
  color: var(--color-neutral);
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease;
}

.nav-cta:hover {
  background: var(--color-tertiary-hover);
  color: var(--color-neutral);
}

/* ---------- Focus ring (the one place this system adds a visual) ---------- */

a:focus-visible,
button:focus-visible,
.tab-input:focus-visible + .tab-label,
input:focus-visible {
  outline: 3px solid var(--color-tertiary);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: 0 var(--space-md);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.btn-primary {
  background: var(--color-tertiary);
  color: var(--color-neutral);
}

.btn-primary:hover {
  background: var(--color-tertiary-hover);
}

.btn-secondary {
  background: var(--color-neutral);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-surface);
}

.store-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

/* ---------- Breadcrumb — real linked segments, never punctuation-joined ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-apparatus);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
  margin: 0 0 var(--space-md);
}

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

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

.breadcrumb .current {
  color: var(--color-primary);
}

.breadcrumb .sep {
  color: var(--color-border);
}

/* ---------- Numeral (featured + inline) ---------- */

.numeral {
  display: block;
  font-family: var(--font-apparatus);
  font-weight: 800;
  color: var(--color-tertiary);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.numeral-featured {
  font-size: clamp(56px, 11vw, 84px);
}

.numeral-label {
  display: block;
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0 0 var(--space-sm);
}

/* ---------- Hero (homepage + song/download pages share this split) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-gutter);
  padding: 0 0 var(--space-lg);
  align-items: start;
  border-bottom: 1px solid var(--color-border);
}

.hero-title {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: clamp(1.875rem, 5.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

.hero-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-primary);
  max-width: var(--measure);
  margin: 0 0 var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

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

/* ---------- Page header — hub pages (Browse/Listing/Convention): a single-
   column header with a back-link, title, lede, and a compact stat line.
   No numeral here — that treatment is reserved for the homepage/song/
   download/404 pages, per DESIGN.md § Components. ---------- */

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header .hero-title,
.page-header .hero-lede {
  margin: 0;
}

.back-link {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.back-link:hover {
  color: var(--color-tertiary);
}

.stat-line {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0;
}

/* ---------- "What's inside" / collection rows on the homepage ---------- */

.section-label {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  display: block;
  margin: 0 0 var(--space-sm);
}

.section-heading {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-lg);
}

/* ---------- Rows (collections, albums, songs) ---------- */

.row-list {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-gutter);
  min-height: 44px;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1rem;
}

.row:hover,
.row:focus-visible {
  background: var(--color-surface);
}

.row-title {
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Emphasized row title — the homepage's and collections-hub's top-level,
   4-item collections list only; every other row-list (albums, songs)
   uses the plain .row-title above. */
.row-title-lg {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  flex: 0 0 auto;
  font-family: var(--font-apparatus);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
}

.row-num {
  flex: 0 0 auto;
  font-family: var(--font-apparatus);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  width: 64px;
}

.row-with-num {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-md);
}

.row-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Year group header on Convention-style listings */
.year-group {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-primary);
}

.year-group-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  position: sticky;
  top: 72px;
  z-index: 1;
  background: var(--color-neutral);
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 0;
  cursor: pointer;
  list-style: none;
}

.year-group-heading-row::-webkit-details-marker {
  display: none;
}

.year-group-heading-row:hover {
  background: var(--color-surface);
}

.year-group-toggle {
  margin-left: auto;
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-tertiary);
  white-space: nowrap;
}

.year-group .when-open {
  display: none;
}

.year-group[open] .when-open {
  display: inline;
}

.year-group[open] .when-closed {
  display: none;
}

.year-group-heading {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.year-group-count {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-secondary);
  display: block;
  margin: 0 0 var(--space-sm);
}

/* ---------- Song-listing table — number, language, title, lyrics-language
   columns. Visual column order (No. / Language / Song / Lyrics in / Audio)
   is set explicitly per class below, not by DOM order — the row spans stay
   in "title right after the number" DOM/reading order (num, title, lang,
   lyrics, audio) so a screen reader hits the song title before the
   metadata, on both desktop and the mobile stacked layout. ---------- */

.listing-table {
  display: flex;
  flex-direction: column;
}

.listing-head,
.listing-row {
  display: grid;
  grid-template-columns: 48px auto minmax(0, 1fr) auto auto;
  gap: var(--space-md);
  align-items: center;
}

.listing-head {
  padding: 0 var(--space-sm) var(--space-sm);
  border-bottom: 1px solid var(--color-primary);
}

.listing-head span {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
}

.listing-row {
  min-height: 44px;
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.listing-row:hover,
.listing-row:focus-visible {
  background: var(--color-surface);
}

/* Every item also gets an explicit grid-row (not just grid-column): DOM
   order is num/title/lang/lyrics/audio (title=col3 comes before lang=col2
   in source order), and CSS Grid's sparse auto-placement can't place an
   item in an earlier column than the previous item within the same row —
   without grid-row:1 here, lang/lyrics/audio silently wrap to a second
   implicit row instead of sitting beside num/title. */
.listing-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-apparatus);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.listing-lang {
  grid-column: 2;
  grid-row: 1;
}

.listing-title {
  grid-column: 3;
  grid-row: 1;
  font-size: 1rem;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-lyrics {
  grid-column: 4;
  grid-row: 1;
}

.listing-audio {
  grid-column: 5;
  grid-row: 1;
}

.listing-lang,
.listing-lyrics,
.listing-audio {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.listing-lang {
  color: var(--color-primary);
}

.listing-lyrics {
  color: var(--color-secondary);
}

.listing-audio {
  color: var(--color-tertiary);
}

@media (max-width: 900px) {
  .listing-head {
    display: none;
  }

  .listing-row {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    row-gap: 4px;
  }

  /* Fully explicit row+column placement for every child — with title no
     longer 2nd-in-DOM-equals-2nd-visually, mixed auto/explicit placement
     across siblings is ambiguous, so every item gets both axes stated. */
  .listing-row > .listing-num {
    grid-column: 1;
    grid-row: 1;
  }

  .listing-row > .listing-title {
    grid-column: 2;
    grid-row: 1;
  }

  .listing-row > .listing-lang {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
  }

  .listing-row > .listing-lyrics {
    grid-column: 2;
    grid-row: 3;
    white-space: normal;
  }

  .listing-row > .listing-audio {
    grid-column: 2;
    grid-row: 4;
    white-space: normal;
  }

  .listing-lang::before {
    content: "Language ";
    color: var(--color-secondary);
  }

  .listing-lyrics::before {
    content: "Lyrics in ";
  }

  .listing-audio::before {
    content: "Audio ";
    color: var(--color-secondary);
  }
}

/* Progressive enhancement: subgrid keeps every row's Language / Lyrics in /
   Audio columns perfectly aligned with the header and with each other, even
   when one row's content (e.g. a single "EN") is much shorter than
   another's (e.g. "KA · EN · MA · TA · HI · TE") a few rows down. Without
   this, each row is its own independent grid and its `auto` tracks size
   only to that row's own content, so short rows drift out of column. Falls
   back to the per-row `auto` layout above wherever subgrid isn't
   supported. */
@supports (grid-template-columns: subgrid) {
  .listing-table {
    display: grid;
    grid-template-columns: 48px auto minmax(0, 1fr) auto auto;
  }

  .listing-head,
  .listing-row {
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
  }

  @media (max-width: 900px) {
    .listing-table {
      grid-template-columns: 44px minmax(0, 1fr);
    }

    .listing-row {
      grid-template-columns: subgrid;
    }
  }
}

/* ---------- Pager (song-listing pagination) — lives in a .feature-row so
   its "Page N of M" label aligns to the same column as every other label
   on the page; only the link styling is defined here. ---------- */

.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-sm);
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.pager-link:hover {
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.pager-link.is-current {
  background: var(--color-tertiary-subtle);
  color: var(--color-tertiary);
}

.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-xs);
  font-family: var(--font-apparatus);
  font-size: 0.75rem;
  color: var(--color-secondary);
}

/* ---------- Sort / language tabs — CSS-only, radio + label ---------- */

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  column-gap: 0;
  margin: 0 0 var(--space-md);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-border);
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.tab-label:hover {
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.tab-input:checked + .tab-label {
  background: var(--color-tertiary-subtle);
  color: var(--color-tertiary);
}

/* ---------- Lyric panels ---------- */

.panel {
  display: block;
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

.panel p {
  margin: 0 0 var(--space-md);
  white-space: pre-line;
}

.panel p:last-child {
  margin-bottom: 0;
}

.tabs:has(.tab-input:checked) .panel {
  display: none;
}

.tabs:has(#tab-eng:checked) .panel-eng,
.tabs:has(#tab-mal:checked) .panel-mal,
.tabs:has(#tab-tam:checked) .panel-tam,
.tabs:has(#tab-hin:checked) .panel-hin,
.tabs:has(#tab-tel:checked) .panel-tel,
.tabs:has(#tab-kan:checked) .panel-kan {
  display: block;
}

/* Sort toggle (By number / A-Z) — same CSS-only radio+label mechanism as
   the language tabs above, reused per DESIGN.md § Components. */
.sort-panel {
  display: none;
}

.tabs:has(#sort-num:checked) .sort-panel-num,
.tabs:has(#sort-az:checked) .sort-panel-az {
  display: block;
}

.panel-kan,
.panel-kan .verse-label {
  font-family: "Noto Sans Kannada", var(--font-voice);
}

.panel-mal,
.panel-mal .verse-label {
  font-family: "Noto Sans Malayalam", var(--font-voice);
}

.panel-tam,
.panel-tam .verse-label {
  font-family: "Noto Sans Tamil", var(--font-voice);
}

.panel-hin,
.panel-hin .verse-label {
  font-family: "Noto Sans Devanagari", var(--font-voice);
}

.panel-tel,
.panel-tel .verse-label {
  font-family: "Noto Sans Telugu", var(--font-voice);
}

.verse-label {
  font-family: var(--font-apparatus);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-secondary);
  display: block;
  margin: 0 0 var(--space-xs);
}

/* ---------- Notice (calm, non-error state) ---------- */

.notice {
  background: var(--color-surface);
  color: var(--color-secondary);
  font-size: 0.875rem;
  padding: var(--space-md);
  margin: 0 0 var(--space-md);
}

/* ---------- Error banner (404 only) ---------- */

.banner-error {
  background: var(--color-error-subtle);
  color: var(--color-error);
  font-size: 1rem;
  padding: var(--space-lg);
  margin: var(--space-md) 0;
}

/* ---------- "Get the app" band — full-width surface-colored banner,
   reused on every page as the closing CTA (see DESIGN.md § Components:
   nav-cta in the sticky header is the always-reachable safety net, this
   band is the deliberate narrative close — the two coexist). ---------- */

.band-download {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.app-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-gutter);
  align-items: start;
}

@media (max-width: 900px) {
  .app-promo {
    grid-template-columns: 1fr;
  }
}

.app-promo-icon-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.app-promo-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
  display: block;
}

.app-promo-heading {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-sm);
}

.app-promo-body {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

.band-download .btn-secondary {
  background: var(--color-surface);
}

.band-download .btn-secondary:hover {
  background: var(--color-neutral);
}

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

footer {
  padding: var(--space-lg) 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links a,
.footer-brand {
  font-family: var(--font-apparatus);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  text-decoration: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.footer-brand img {
  display: block;
  opacity: 0.55;
}

.footer-links a:hover {
  color: var(--color-tertiary);
}

.numeral-featured.is-error {
  color: var(--color-error);
}

/* ---------- Screenshot gallery (download page) — the one deliberate
   exception to this system's no-imagery rule: a real product screenshot
   is exactly when a picture earns its place over another paragraph. No
   frame/shadow/radius added here — each image already carries its own
   device chrome. ---------- */

.screenshot-gallery {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.screenshot-gallery img {
  height: 400px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: block;
}

/* ---------- Feature rows — repeating title+body two-column blocks, used
   for the download page's "What you get" section and the privacy policy's
   sections and header. ---------- */

.feature-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-gutter);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-title {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}

.feature-body {
  font-size: 1rem;
  line-height: 1.6;
  max-width: var(--measure);
  margin: 0;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Generic page prose (privacy policy, etc.) ---------- */

.prose h2 {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 1.125rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

.prose .meta {
  font-family: var(--font-apparatus);
  font-size: 0.75rem;
  color: var(--color-secondary);
}
