/* Layout concept: a forest-green opening band where the app floats among the week's
   real moments, then a church bulletin of seven days, then calm, open sections that
   answer each person's question in turn. Brand shared with the Libota Academy. */
:root {
  --paper: #f5f7f3;
  --surface: #ffffff;
  --surface-2: #ebefe9;
  --ink: #13211d;
  --ink-2: #41514b;
  --ink-3: #6a7a74;
  --line: #d5ddd7;
  --accent: #0b6e5f;
  --accent-ink: #ffffff;
  --accent-soft: #dbeee8;
  --marigold: #c97f12;
  --marigold-soft: #fbe9cc;
  --clay: #b0442a;
  --clay-soft: #f6ddd6;
  --ok: #217a49;
  --ok-soft: #dcf0e3;
  --forest: #0d2b26;
  --forest-2: #143a33;
  --on-forest: #eaf3ef;
  --on-forest-2: #a9c3ba;
  --glow: #f0b04f;
  --shadow: 0 1px 2px rgba(19, 33, 29, .06), 0 24px 48px -28px rgba(19, 33, 29, .45);
  --shadow-dark: 0 30px 60px -30px rgba(0, 0, 0, .75);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: .84rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.6vw, 2.7rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.6rem);
  --kente: repeating-linear-gradient(90deg,
    var(--marigold) 0 22px, var(--ink) 22px 26px, var(--accent) 26px 46px,
    var(--ink) 46px 50px, var(--clay) 50px 62px, var(--ink) 62px 66px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1412; --surface: #141e1b; --surface-2: #1b2824; --ink: #e4ede9; --ink-2: #a8b7b1;
    --ink-3: #7c8c86; --line: #293832; --accent: #3fc2a5; --accent-ink: #052019; --accent-soft: #12302a;
    --marigold: #f0b04f; --marigold-soft: #3a2a12; --clay: #e07a5c; --clay-soft: #3a1d15;
    --ok: #62cb90; --ok-soft: #133022;
    --forest: #0f2b25; --forest-2: #163a32; --on-forest: #e6f1ec; --on-forest-2: #9fbab0;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 24px 48px -28px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1412; --surface: #141e1b; --surface-2: #1b2824; --ink: #e4ede9; --ink-2: #a8b7b1;
  --ink-3: #7c8c86; --line: #293832; --accent: #3fc2a5; --accent-ink: #052019; --accent-soft: #12302a;
  --marigold: #f0b04f; --marigold-soft: #3a2a12; --clay: #e07a5c; --clay-soft: #3a1d15;
  --ok: #62cb90; --ok-soft: #133022;
  --forest: #0f2b25; --forest-2: #163a32; --on-forest: #e6f1ec; --on-forest-2: #9fbab0;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 24px 48px -28px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* The sticky header is about 70px tall: jumping to a section leaves room for it
   (plus a little air), so the section's heading is never hidden behind it. */
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px;
  padding: 14px 22px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; font-family: var(--f-body); line-height: 1.2;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: var(--glow); color: #1d1405; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.line { border-color: currentColor; color: inherit; background: transparent; }
.btn.line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--forest); color: var(--on-forest); }
.top::before { content: ""; display: block; height: 5px; background: var(--kente); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--glow); color: #1d1405; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--on-forest-2); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { color: var(--on-forest); background: var(--forest-2); }
.top nav a.btn { color: #1d1405; padding: 10px 16px; margin-left: 6px; }
/* "Get Your Own App": the white-label offer, outlined in the site's highlight
   so it stands out from the plain links, and kept on small screens. */
.top nav a.own-link { color: var(--glow); box-shadow: inset 0 0 0 1.5px var(--glow); margin-left: 6px; white-space: nowrap; }
.top nav a.own-link:hover { color: var(--on-glow, #1d1405); background: var(--glow); }
.top nav a.own-link .own-short { display: none; }
/* Phones and tablets: a Menu button opens the page links (build-pages.mjs). */
.menu-toggle { display: none; }
.menu-icon { width: 16px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.top.menu-open .menu-icon { background: transparent; }
.top.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.top.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }
/* The page you are on (build-pages.mjs marks it). */
.top nav a[aria-current="page"]:not(.btn):not(.own-link) { color: var(--on-forest); background: var(--forest-2); }
.top nav a.own-link[aria-current="page"] { color: var(--on-glow, #1d1405); background: var(--glow); }
/* The menu needs more room than the page's text column. */
.top .wrap { max-width: 1440px; }
/* Narrower desktops: the edition's label goes and the plain links tighten, then
   they give way to the two buttons. */
@media (min-width: 1121px) and (max-width: 1400px) { .top .edition { display: none; } }
@media (max-width: 1400px) { .top nav a:not(.btn):not(.own-link) { padding: 8px 8px; font-size: .9rem; } }
@media (max-width: 1120px) {
  .top nav a:not(.btn):not(.own-link) { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 9px 14px; border-radius: 999px;
    border: 0; background: var(--forest-2); color: var(--on-forest); font: 700 .95rem var(--f-body); cursor: pointer; }
  /* Open: the page links stack under the header, the two buttons below them. */
  .top.menu-open .wrap { flex-wrap: wrap; }
  .top.menu-open nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 2px; padding-top: 6px; }
  .top.menu-open nav a:not(.btn):not(.own-link) { display: block; width: 100%; padding: 12px 10px; border-radius: 10px; }
  .top.menu-open nav a.own-link, .top.menu-open nav a.btn { margin: 10px 8px 4px 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--forest); color: var(--on-forest); overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 22%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 110px); position: relative; z-index: 1; }
.hero .eyebrow { color: var(--glow); }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-top: 16px; letter-spacing: -.03em; }
.hero h1 .soft { color: var(--on-forest-2); font-weight: 600; }
.hero .lede { font-size: var(--step-1); color: var(--on-forest-2); max-width: 34em; margin-top: 22px; }
.hero .lede b { color: var(--on-forest); font-weight: 700; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .assoc { margin-top: 26px; font-size: .95rem; color: var(--on-forest-2); display: flex; gap: 10px; align-items: baseline; }
.hero .assoc::before { content: ""; width: 26px; height: 2px; background: var(--glow); flex: none; transform: translateY(-4px); }

.hero-art { --phx: calc(290px + clamp(0px, 3vw, 36px)); position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 580px; padding-right: clamp(0px, 3vw, 36px); }
.moment {
  position: absolute; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
  width: 232px; padding: 11px 13px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-dark); font-size: .82rem; line-height: 1.3; z-index: 2;
  animation: drift 7s ease-in-out infinite;
}
.moment b { display: block; font-size: .86rem; }
.moment small { color: var(--ink-3); font-family: var(--f-mono); font-size: .7rem; }
.moment .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: .8rem; }
.moment .dot.money { background: var(--ok-soft); color: var(--ok); }
.moment .dot.reg { background: var(--accent-soft); color: var(--accent); }
.moment .dot.kid { background: var(--marigold-soft); color: var(--marigold); }
.moment .dot.door { background: var(--clay-soft); color: var(--clay); }
/* Anchored to the phone's left edge: they touch its bezel, never its screen. */
.m1 { top: 9%; right: calc(var(--phx) + 10px); animation-delay: 0s; }
.m2 { top: 31%; right: calc(var(--phx) - 14px); animation-delay: -2s; }
.m3 { top: 53%; right: calc(var(--phx) + 10px); animation-delay: -4s; }
.m4 { top: 75%; right: calc(var(--phx) - 14px); animation-delay: -5.5s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Phone and screen drawings ────────────────────────────────────────── */
.ph {
  width: 290px; max-width: 100%; aspect-ratio: 9 / 18.6; background: #0a1210; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-dark); position: relative; flex: none;
}
.ph::before { content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 86px; height: 23px; border-radius: 12px; background: #0a1210; z-index: 2; }
.ph-screen { height: 100%; border-radius: 34px; background: var(--paper); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; color: var(--ink); }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 6px; font-family: var(--f-mono); font-size: .66rem; color: var(--ink-2); }
.ph-status .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 9px; }
.ph-status .bars i { width: 3px; background: var(--ink-2); border-radius: 1px; }
.ph-status .bars i:nth-child(1) { height: 4px; } .ph-status .bars i:nth-child(2) { height: 6px; } .ph-status .bars i:nth-child(3) { height: 9px; }
.ph-head { padding: 6px 16px 12px; }
.ph-head small { display: block; font-size: .7rem; color: var(--ink-3); }
.ph-head b { font-family: var(--f-display); font-size: 1.15rem; }
.ph-body { padding: 0 12px; display: grid; gap: 9px; align-content: start; overflow: hidden; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 12px 16px; border-top: 1px solid var(--line); background: var(--surface); font-size: .6rem; color: var(--ink-3); text-align: center; }
.ph-tabs span.on { color: var(--accent); font-weight: 700; }

.ui { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 10px 11px; font-size: .78rem; line-height: 1.35; min-width: 0; }
.ui h5 { margin: 0 0 6px; font-family: var(--f-display); font-size: .86rem; }
.ui .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 5px 0; }
.ui .row + .row { border-top: 1px solid var(--line); }
.ui .row span { color: var(--ink-3); }
.ui .row b { font-variant-numeric: tabular-nums; }
.ui.give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.ui.give span { text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.ui.give span + span { background: var(--surface-2); color: var(--ink); }
.ui .note { border-radius: 9px; padding: 8px 9px; background: var(--ok-soft); color: var(--ok); }
.ui .note.warn { background: var(--marigold-soft); color: var(--marigold); }
.ui .bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.ui .bar i { display: block; height: 100%; background: var(--accent); }
.ui .btnx { display: inline-block; margin-top: 8px; padding: 7px 12px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .76rem; }
.ui .btnx.red { background: var(--clay); color: #fff; }
.pill { font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--marigold-soft); color: var(--marigold); }
.pill.bad { background: var(--clay-soft); color: var(--clay); }
.qr { width: 92px; height: 92px; margin: 4px auto; display: block; }
.qr rect { fill: var(--ink); }

/* ── Replaces strip ───────────────────────────────────────────────────── */
.replaces { border-bottom: 1px solid var(--line); background: var(--surface); }
.replaces .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center; padding-block: 26px; }
.replaces h2 { font-size: var(--step-1); font-weight: 700; max-width: 16ch; }
.struck { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.struck li { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section.block { padding-block: clamp(56px, 8vw, 104px); }
/* A page's opening section sits closer to the header than sections do to
   each other. */
main.page > section:first-of-type { padding-top: clamp(32px, 5vw, 60px); }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.head h2 { font-size: var(--step-3); font-weight: 800; }
.head p { color: var(--ink-2); font-size: var(--step-1); max-width: 40em; }

/* The week: a church bulletin, one entry per moment */
.week { display: grid; gap: 0; position: relative; }
.day { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 360px); gap: clamp(20px, 3vw, 44px); align-items: start; padding-block: 36px; border-top: 1px solid var(--line); }
.day:last-child { border-bottom: 1px solid var(--line); }
.when { display: grid; gap: 4px; position: sticky; top: 96px; }
.when .d { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.when .t { font-family: var(--f-mono); font-size: .9rem; color: var(--ink-3); }
.story { display: grid; gap: 12px; min-width: 0; }
.story .who { display: inline-flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-3); }
.story .who .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--f-display); font-size: .82rem; }
.story h3 { font-size: var(--step-2); font-weight: 800; }
.story p { color: var(--ink-2); max-width: 36em; }
.story .gain { font-weight: 700; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.story .gain::before { content: ""; width: 18px; height: 2px; background: var(--marigold); flex: none; transform: translateY(-5px); }
.shot { display: grid; gap: 8px; padding: 14px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.shot .ui { box-shadow: var(--shadow); border-color: transparent; }
.illustrative { margin-top: 22px; font-size: .88rem; color: var(--ink-3); }

/* Audiences */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.panel .role { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold); }
.panel h3 { font-size: var(--step-2); font-weight: 800; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.panel li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); margin-top: 9px; }
.panel li b { color: var(--ink); }

/* Privacy */
.privacy { background: var(--forest); color: var(--on-forest); }
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.privacy .eyebrow { color: var(--glow); }
.privacy h2 { font-size: var(--step-3); font-weight: 800; margin-top: 14px; }
.privacy .lede { color: var(--on-forest-2); font-size: var(--step-1); margin-top: 16px; max-width: 34em; }
.promises { display: grid; gap: 16px; margin-top: 28px; }
.promise { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.promise .k { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--forest-2); color: var(--glow); font-family: var(--f-display); font-weight: 800; }
.promise b { display: block; font-size: 1.05rem; }
.promise span { color: var(--on-forest-2); }
/* The cards in the dark band are light: they take the page's ink, not the band's. */
.privacy .ui { box-shadow: var(--shadow-dark); color: var(--ink); }
.privacy .promise a { color: var(--glow); text-underline-offset: 2px; }
/* Constitution & Policy Docs: the light twin of .privacy */
.vault .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.vault h2 { font-size: var(--step-3); font-weight: 800; margin-top: 14px; }
.vault .lede { color: var(--ink-2); font-size: var(--step-1); margin-top: 16px; max-width: 34em; }
.vault .promise .k { background: var(--accent-soft); color: var(--accent); }
.vault .promise span { color: var(--ink-2); }
.vault .ui { box-shadow: var(--shadow); padding: 18px; }
.vault .ui .search { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--ink-3); margin-bottom: 6px; }
.vault .ui .doc { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.vault .ui .doc + .doc { border-top: 1px solid var(--line); }
.vault .ui .doc i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .62rem; background: var(--accent-soft); color: var(--accent); }
.vault .ui .doc b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault .ui .doc small { display: block; color: var(--ink-3); }

/* Associations */
.assoc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.lang div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.lang .eyebrow { display: block; margin-bottom: 6px; }
.lang b { font-family: var(--f-display); font-size: 1.35rem; display: block; }
.lang span { color: var(--ink-3); font-size: .92rem; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.feat h4 { font-size: 1.15rem; }
.feat p { color: var(--ink-2); font-size: .97rem; }

/* Members */
.members { background: var(--surface); border-block: 1px solid var(--line); }
.members .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; }
.onboard { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.onboard li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; counter-increment: s; }
.onboard li::before { content: counter(s); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.onboard b { display: block; font-size: 1.12rem; }
.onboard span { color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; min-width: 190px;
  padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.store .glyph { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); font-size: .8rem; }
.store small { font-size: .72rem; opacity: .75; line-height: 1.2; }
.store b { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.15; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }
.store-note { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.member-gets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.member-gets span { font-size: .9rem; padding: 7px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.phones { display: flex; gap: 18px; align-items: flex-end; }
.phones .ph:last-child { transform: translateY(-34px); }

/* Before and after */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--surface-2); }
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare td:first-child { font-family: var(--f-display); font-weight: 700; color: var(--ink); width: 18%; }
.compare td:nth-child(2) { color: var(--ink-3); width: 38%; }
.compare td:nth-child(3) { color: var(--ink); }

/* Start */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.path { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.path li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; position: relative; }
.path li:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 54px; bottom: 4px; width: 2px; background: var(--line); }
.path .n { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--marigold-soft); color: var(--marigold); font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; }
.path b { display: block; font-size: 1.15rem; margin-top: 4px; }
.path span { color: var(--ink-2); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-card::before { content: ""; display: block; height: 6px; margin: calc(-1 * clamp(22px, 3vw, 34px)) calc(-1 * clamp(22px, 3vw, 34px)) 22px; border-radius: 24px 24px 0 0; background: var(--kente); }
.form-card h3 { font-size: var(--step-2); font-weight: 800; }
.form-card > p { color: var(--ink-2); margin-top: 6px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.form-msg { border-radius: 14px; padding: 14px 16px; margin-top: 16px; background: var(--ok-soft); color: var(--ink); display: grid; gap: 10px; }
.form-msg.err { background: var(--clay-soft); }
.form-msg pre { margin: 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: .82rem; background: var(--surface); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); max-height: 220px; overflow: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 14px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; max-width: 46em; }

/* Closing */
.closing { background: var(--forest); color: var(--on-forest); position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--kente); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(52px, 7vw, 88px); }
.closing h2 { font-size: var(--step-3); font-weight: 800; max-width: 18ch; }
.closing p { color: var(--on-forest-2); margin-top: 12px; font-size: var(--step-1); max-width: 34em; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; }
footer { padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--ink-3); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--ink-2); }
.foot-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.foot-nav a { font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-nav a[aria-current="page"] { color: var(--ink); }

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

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .day { grid-template-columns: 110px minmax(0, 1fr); }
  .day .shot { grid-column: 2; max-width: 420px; }
  .members .wrap { grid-template-columns: minmax(0, 1fr); }
  .phones { justify-content: center; }
}
@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .top nav a.own-link { display: inline-flex; }
  .hero .wrap, .privacy .wrap, .vault .wrap, .assoc-grid, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 0; padding-block: 20px; }
  .moment { position: static; width: auto; animation: none; box-shadow: var(--shadow); }
  .hero-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-art .ph { grid-column: 1 / -1; justify-self: center; order: -1; margin-bottom: 8px; }
  .aud, .faq, .feat-list { grid-template-columns: minmax(0, 1fr); }
  .replaces .wrap { grid-template-columns: minmax(0, 1fr); }
  .closing .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .day { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 28px; }
  .day .shot { grid-column: auto; }
  .when { position: static; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 12px; }
  .when .d { font-size: 1.6rem; }
  .hero-art { grid-template-columns: minmax(0, 1fr); }
  .lang, .fields { grid-template-columns: minmax(0, 1fr); }
  .phones .ph:last-child { display: none; }
  .btn { width: 100%; }
  .top nav a.btn { width: auto; }
  /* Phones: the logo on its own row; under it the Menu button (multi-page
     sites) on the left and the two buttons on the right. */
  .top .wrap { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
  .top .brand { flex-basis: 100%; }
  .top nav a.own-link, .top nav a.btn { margin-left: 4px; }
  .top nav { flex: 1; justify-content: flex-end; }
  .menu-toggle { margin-left: 0; }
  .menu-toggle ~ nav a.own-link .own-full { display: none; }
  .menu-toggle ~ nav a.own-link .own-short { display: inline; }
  .top.menu-open nav { flex-basis: 100%; }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 136px); }
}
@media (max-width: 372px) {
  /* The smallest phones: smaller buttons, so the second row still fits. */
  .menu-toggle { padding: 8px 11px; gap: 8px; font-size: .88rem; }
  .top nav a.own-link, .top nav a.btn { padding: 8px 11px; font-size: .88rem; }
}
@media (max-width: 340px) {
  .top nav a.own-link .own-full { display: none; }
  .top nav a.own-link .own-short { display: inline; }
}

/* ── Edition label (sites/build-identity.mjs) ──────────────────────────── */
.brand-text { display: grid; line-height: 1.05; }
.edition { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--glow); margin-top: 2px; white-space: nowrap; }


/* Live Stream section: reuses .vault, plus platform marks and the ON AIR tag. */
.golive .ui h5 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.golive .onair { background: #dc2626; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.golive .ui .doc i.pf { color: #fff; border-radius: 50%; }
.golive .ui .doc i.fb { background: #1877f2; }
.golive .ui .doc i.yt { background: #ff0000; }
.golive .ui .doc i.ig { background: #e1306c; }
.golive .ui .doc i.tt { background: #111111; }
.golive .ui .search { margin: 8px 0 0; font-size: .78rem; }



/* ─── People: photos of the communities Libota serves ─────────────────── */
.people { padding-top: clamp(48px, 6vw, 80px); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: clamp(10px, 1.4vw, 16px); }
.mosaic figure, .member-photo { margin: 0; position: relative; overflow: hidden; border-radius: 18px;
  background: var(--surface-2); box-shadow: var(--shadow); }
.mosaic img, .member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption, .member-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  color: #fff; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(6, 18, 15, .82)); }
.mosaic figcaption small { display: block; margin-top: 3px; font-weight: 400; font-size: .86rem; opacity: .9; }
.mosaic .t1 { grid-column: span 6; grid-row: span 2; }
.mosaic .t2 { grid-column: span 6; }
.mosaic .t3, .mosaic .t4 { grid-column: span 3; }
.member-photo { margin-top: 26px; max-width: 560px; aspect-ratio: 16 / 10; }
.member-photo figcaption { font-size: .95rem; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .mosaic .t1, .mosaic .t2 { grid-column: span 2; grid-row: span 1; }
  .mosaic .t3, .mosaic .t4 { grid-column: span 1; }
  .mosaic .t3 figcaption small, .mosaic .t4 figcaption small { display: none; }
}

/* ── Libota logo (sites/build-identity.mjs) ── */
.brand-mark, img.brand-mark { width: auto; height: 40px; border-radius: 0; background: none; padding: 0; display: block; object-fit: contain; }
.brand-name { letter-spacing: -.01em; }
.brand-app { color: #f7ae2b; }
.foot-brand { flex-basis: 100%; margin-bottom: 4px; }
.foot-brand img { display: block; width: 125px; max-width: 60vw; height: auto; }
/* ── /Libota logo ── */
