/* Lookup site. A dark header around the globe, then light docs (dark on request). */
:root {
  --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --night: #05020F;
  --lilac: #C4B5FD;
  --violet: #7C3AED;
  /* Docs, light */
  --page: #F7F7F8;
  --frame: #EFEFF1;
  --panel: #FFFFFF;
  --line: #E4E4E7;
  --line-2: #D4D4D8;
  --text: #111014;
  --text-2: #3F3F46;
  --muted: #71717A;
  --brand: #6D28D9;
  --tint: #F3EEFE;
  --code: #16151C;
  /* Widget in the docs */
  --hmc-bg: #FFFFFF;
  --hmc-text: var(--text);
  --hmc-border: var(--line);
  --hmc-input-border: var(--line-2);
  --hmc-accent: var(--brand);
  --hmc-active-bg: var(--tint);
  --hmc-active-text: var(--text);
  --hmc-muted: var(--muted);
  --hmc-radius: 12px;
  color-scheme: light;
}
:root[data-theme=dark] {
  --page: #0B0814;
  --frame: #141022;
  --panel: #191428;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #ECE9F5;
  --text-2: #C9C4D9;
  --muted: #8E879F;
  --brand: #C4B5FD;
  --tint: rgba(167,139,250,.14);
  --code: #07050D;
  --hmc-bg: #191428;
  --hmc-popover: #1E1832;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text-2); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font); font-variation-settings: "ROND" 100; color: var(--text); font-weight: 500; letter-spacing: -0.015em; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid #A78BFA; outline-offset: 2px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
:not(pre) > code { font-size: .84em; padding: 1px 6px; border-radius: 6px; background: var(--frame); color: var(--text); }
img, svg, canvas { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Nav: dark over the header, a light pill once the docs scroll in ── */
.nav { position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); height: 52px; padding: 0 8px 0 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-radius: 16px; border: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.nav.solid { background: color-mix(in oklab, var(--page) 88%, transparent); border-color: var(--line); box-shadow: 0 8px 30px -14px rgba(0,0,0,.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav.solid .brand { color: var(--text); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-links a { display: block; padding: 6px 12px; border-radius: 8px; font-family: var(--mono); font-size: .8125rem; color: rgba(255,255,255,.62); text-decoration: none; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav.solid .nav-links a { color: var(--muted); }
.nav.solid .nav-links a:hover { color: var(--text); background: var(--frame); }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: .875rem; font-weight: 500; text-decoration: none; cursor: pointer; color: #fff; background: rgba(124,58,237,.18); border: 1px solid rgba(196,181,253,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.btn:hover { background: rgba(124,58,237,.3); color: #fff; }
.nav.solid .btn { color: #fff; background: #6D28D9; border-color: #6D28D9; }
.btn-dark { color: #fff; background: #111014; border-color: #111014; }
:root[data-theme=dark] .btn-dark { background: #6D28D9; border-color: #6D28D9; }
.theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme=dark] .theme .sun { display: none; }
:root[data-theme=dark] .theme .moon { display: block; }
.nav.solid .theme { border-color: var(--line); color: var(--text-2); }
@media (max-width: 640px) { .nav-links { display: none; } .nav { grid-template-columns: 1fr auto; } }

/* ── Header: dark, calm, the globe as a horizon ── */
.hdr { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(60rem 30rem at 50% 100%, rgba(124,58,237,.30), transparent 65%),
  radial-gradient(40rem 20rem at 50% 0%, rgba(124,58,237,.12), transparent 70%),
  var(--night); }
.hero { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; padding: 152px 20px 0; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid rgba(196,181,253,.22); background: rgba(124,58,237,.10); font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.badge span { padding: 1px 8px; border-radius: 999px; background: rgba(196,181,253,.18); color: #DDD6FE; text-transform: uppercase; font-size: .6875rem; letter-spacing: .06em; }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.08; color: #fff; text-wrap: balance; }
.lede { margin: 0 auto 30px; max-width: 32rem; font-size: 1.0625rem; color: rgba(239,237,253,.6); }
.try { text-align: left; }
.try church-lookup {
  --hmc-bg: rgba(255,255,255,.05); --hmc-text: #fff; --hmc-input-border: rgba(255,255,255,.14); --hmc-border: rgba(255,255,255,.10);
  --hmc-popover: #110C22; --hmc-popover-text: #fff; --hmc-accent: #C4B5FD; --hmc-active-bg: rgba(167,139,250,.16); --hmc-active-text: #fff;
  --hmc-muted: rgba(239,237,253,.55); --hmc-radius: 14px;
}
.try church-lookup::part(label) { color: rgba(239,237,253,.6); font-family: var(--mono); font-size: .75rem; font-weight: 400; letter-spacing: .02em; }
.try church-lookup::part(popup) { box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.chips { margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: rgba(239,237,253,.45); }
.chips button { font: inherit; color: rgba(239,237,253,.8); background: transparent; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 0 10px; min-height: 28px; cursor: pointer; }
.chips button:hover { border-color: rgba(196,181,253,.5); color: #fff; }
.meta { margin: 28px 0 0; font-family: var(--mono); font-size: .75rem; color: rgba(239,237,253,.42); letter-spacing: .02em; }
.meta span { color: rgba(239,237,253,.8); }
.meta i { font-style: normal; margin: 0 6px; color: rgba(239,237,253,.25); }
.horizon { position: relative; z-index: 1; height: clamp(260px, 30vw, 400px); margin-top: 36px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.horizon canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.horizon canvas:active { cursor: grabbing; }

/* ── Docs ── */
.docs { max-width: 46rem; margin: 0 auto; padding: 72px 20px 120px; }
.index { position: sticky; top: 76px; z-index: 10; display: flex; gap: 2px; overflow-x: auto; margin: 0 -20px 72px; padding: 6px 20px; scrollbar-width: none; background: color-mix(in oklab, var(--page) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.index::-webkit-scrollbar { display: none; }
.index a { flex: none; padding: 5px 10px; border-radius: 8px; font-family: var(--mono); font-size: .75rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.index a i { font-style: normal; opacity: .55; margin-right: 4px; }
.index a:hover { color: var(--text); background: var(--frame); }
.index a[aria-current] { color: var(--text); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }

section { margin-bottom: 104px; }
section:last-child { margin-bottom: 0; }
.num { margin: 0 0 10px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
section h2 { margin: 0 0 14px; font-size: 2rem; line-height: 1.15; }
section h3 { margin: 36px 0 10px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
section p { margin: 0 0 14px; }
.lead { font-size: 1.125rem; }
.muted { font-size: .9375rem; color: var(--muted); }


/* Card-in-card frames, after Lué Studio. */
.frame { margin: 20px 0; padding: 8px; border-radius: 22px; background: var(--frame); border: 1px solid var(--line); }
.frame-in { border-radius: 15px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.frame-in.demo { padding: 20px; }
.frame-in.flush { padding: 0; }
.frame-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.frame-in iframe { display: block; width: 100%; height: 820px; border: 0; }

.demo .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 16px; }
.demo .grid .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .demo .grid { grid-template-columns: 1fr; } }
.demo label, .demo .lbl { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.demo input { display: block; width: 100%; min-height: 44px; padding: 0 12px; font: inherit; font-size: .9375rem; color: var(--text); background: var(--page); border: 1px solid var(--line-2); border-radius: 10px; }
.demo input:focus-visible { outline: none; border-color: #A78BFA; box-shadow: 0 0 0 4px rgba(167,139,250,.2); }

/* Code */
.frame-in.code { background: var(--code); border-color: transparent; }
.code-bar { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-bar .tabs { display: flex; }
.code-bar [role=tab] { font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.5); background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 10px; min-height: 40px; cursor: pointer; }
.code-bar [role=tab][aria-selected=true] { color: #fff; border-bottom-color: #A78BFA; }
.code-bar .label { font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.5); padding: 0 10px; }
.copy { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); border: 0; border-radius: 6px; padding: 0 10px; min-height: 26px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.14); color: #fff; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: .8125rem; line-height: 1.7; color: #ECEBF2; }
.code pre:focus-visible { outline: 2px solid #A78BFA; outline-offset: -2px; }
.code pre .t { color: #C4B5FD; } .code pre .a { color: #D4D0E2; } .code pre .s { color: #7DD3C0; } .code pre .c { color: #8A8799; }

.defs { margin: 12px 0 20px; border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
@media (max-width: 560px) { .defs > div { grid-template-columns: 1fr; } }
.defs dt { color: var(--text); }
.defs dd { margin: 0; color: var(--text-2); }
.flow { padding-left: 1.2em; }
.flow li { margin-bottom: 10px; }
.flow b { color: var(--text); font-weight: 500; }
.verb { margin-right: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(34,197,94,.12); color: #15803D; font-family: var(--mono); font-size: .75rem; font-weight: 500; vertical-align: 2px; }
:root[data-theme=dark] .verb { color: #86EFAC; }
.soon { margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--tint); color: var(--brand); font-family: var(--mono); font-size: .6875rem; font-weight: 400; vertical-align: 2px; }

/* Playground */
.play form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
.play input[type=text] { min-height: 40px; padding: 0 12px; font-family: var(--mono); font-size: .875rem; color: var(--text); background: var(--page); border: 1px solid var(--line-2); border-radius: 10px; }
.play input[type=text]:focus-visible { outline: none; border-color: #A78BFA; box-shadow: 0 0 0 4px rgba(167,139,250,.2); }
.play .opts { grid-column: 1 / -1; display: flex; gap: 18px; font-family: var(--mono); font-size: .75rem; color: var(--text-2); }
.play .opts label { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; }
.play .opts input { width: 16px; height: 16px; accent-color: #7C3AED; }
.play .url { grid-column: 1 / -1; font-family: var(--mono); font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.play .url b { color: #15803D; font-weight: 500; }
:root[data-theme=dark] .play .url b { color: #4ADE80; }
.play .status { padding: 8px 14px; font-family: var(--mono); font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }
.play pre { margin: 0; padding: 14px 16px; max-height: 360px; overflow: auto; font-size: .78rem; line-height: 1.6; color: #E9E6F0; background: var(--code); }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: .6875rem; font-weight: 400; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.best { color: var(--brand); font-weight: 500; }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 46rem; margin: 0 auto; padding: 28px 20px 48px; display: grid; gap: 12px; font-size: .8125rem; color: var(--muted); }
.foot-in .brand { color: var(--text); }
.foot-in p { margin: 0; }

/* The docs rise over the globe as a rounded sheet, so the planet sinks behind the page
   instead of fading to black and cutting to light. */
.hdr::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -2px; height: 46px; background: var(--page); border-radius: 36px 36px 0 0; box-shadow: 0 -1px 0 rgba(196,181,253,.28), 0 -24px 60px -12px rgba(139,92,246,.45); }
.horizon { margin-bottom: -6px; -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,.6) 100%); mask-image: linear-gradient(180deg, #000 78%, rgba(0,0,0,.6) 100%); }
.docs { padding-top: 40px; }
.nav.scrolled:not(.solid) { background: rgba(5,2,15,.62); border-color: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ── The header as a big inset card, built in layers ── */
.hdr { margin: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 80px -40px rgba(76,29,149,.6); isolation: isolate; }
.hdr::after { display: none; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 64% 38%, rgba(255,255,255,.3), transparent), radial-gradient(1px 1px at 30% 44%, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 6% 60%, rgba(255,255,255,.3), transparent); }
.docs { padding-top: 72px; }
.horizon { margin-bottom: 0; -webkit-mask-image: none; mask-image: none; }
.horizon canvas { position: relative; z-index: 2; }

/* Orbit rings: one behind the globe, one passing in front, for depth. */
.orbit { position: absolute; left: 50%; top: 4%; width: 128%; aspect-ratio: 1 / .32; border-radius: 50%; transform: translateX(-50%) rotate(-5deg); pointer-events: none; }
.orbit.o1 { z-index: 1; border: 1px solid rgba(196,181,253,.12); top: -2%; }
.orbit.o2 { z-index: 3; border: 1px solid transparent; border-top-color: rgba(196,181,253,.28); width: 112%; top: 22%; transform: translateX(-50%) rotate(4deg); }

/* Labels pinned to churches on the globe. */
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; padding: 4px 9px; border-radius: 8px; white-space: nowrap; font-family: var(--mono); font-size: .6875rem; color: #EDE9FE; background: rgba(17,12,34,.78); border: 1px solid rgba(196,181,253,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .25s; }
.tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: linear-gradient(rgba(196,181,253,.6), transparent); }
.tag.big { padding: 8px 12px; font-family: var(--font); font-size: .875rem; color: #fff; border-color: rgba(196,181,253,.45); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.tag.big small { display: block; margin-top: 2px; font-family: var(--mono); font-size: .6875rem; color: #C4B5FD; }
.tag.big::after { height: 18px; }

/* Heads-up readouts in the corners of the globe. */
.hud { position: absolute; z-index: 5; bottom: 18px; margin: 0; padding: 6px 10px; border-radius: 10px; font-family: var(--mono); font-size: .6875rem; color: rgba(239,237,253,.6); background: rgba(10,6,24,.6); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud b { color: #EDE9FE; font-weight: 500; }
.hud-l { left: 18px; display: flex; align-items: center; gap: 7px; }
.hud-l i { width: 6px; height: 6px; border-radius: 999px; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.hud-r { right: 18px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .hdr { margin: 6px; border-radius: 12px; } .hud-r { display: none; } .orbit { display: none; } }
@media (prefers-reduced-motion: no-preference) { .hud-l i { animation: blink 2.4s ease-in-out infinite; } @keyframes blink { 50% { opacity: .35; } } }

/* ── A bigger globe that starts right under the search ── */
.hero { padding-top: 128px; }
.meta { margin-top: 22px; }
.horizon { height: clamp(420px, 50vw, 700px); margin-top: -8px; }

.docs { padding-top: 96px; }

/* ── The form stack: your tagged fields on a layer behind, your app's UI on top ── */
.stack-wrap { position: relative; z-index: 6; max-width: 1040px; margin: clamp(-260px, -19vw, -160px) auto 0; padding: 0 16px; }
.stack { position: relative; padding: 64px 0 60px; --ease: cubic-bezier(.2,.8,.2,1); --app-accent: #7C3AED; --app-radius: 8px; }
.stack[data-look=teal] { --app-accent: #0F766E; --app-radius: 999px; }
.stack[data-look=amber] { --app-accent: #B45309; --app-radius: 2px; }
:root[data-theme=dark] .stack { --app-accent: #A78BFA; }
:root[data-theme=dark] .stack[data-look=teal] { --app-accent: #2DD4BF; }
:root[data-theme=dark] .stack[data-look=amber] { --app-accent: #F59E0B; }
.ly-num { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 5px; font-family: var(--mono); font-size: .625rem; color: var(--brand); background: var(--tint); }

/* Layer 01: the fields, as a developer sees them. Its right edge peeks out past the app window. */
.ly-back { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 56%; border-radius: 16px;
  border: 1px dashed color-mix(in oklab, var(--brand) 32%, var(--line-2));
  background: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--muted) 26%, transparent) 1px, transparent 0) 0 0 / 14px 14px, color-mix(in oklab, var(--panel) 94%, var(--brand));
  box-shadow: 0 30px 70px -40px rgba(30,16,64,.45); }
.ly-head { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.ly-head code { color: var(--text-2); background: none; padding: 0; font-size: inherit; }
.ly-cap { margin-left: auto; }
.ly-col { position: absolute; top: 0; bottom: 0; left: 57.14%; right: 18px; }
.ly-snip { position: absolute; top: 84px; left: 16px; right: 0; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--code); color: #C9C4D9; font-family: var(--mono); font-size: .6875rem; line-height: 1.6; white-space: pre; overflow: hidden; }
.ly-snip span { color: #C4B5FD; }
/* Keep the globe's readouts clear of the stack that overlaps the card's bottom. */
.hud { bottom: calc(clamp(160px, 19vw, 260px) + 14px); }
.ly-colhead, .stack .lbl { font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ly-colhead { position: absolute; right: 22px; }
.ly-row { position: absolute; left: 0; right: 0; margin: 0; display: flex; align-items: center; gap: 8px; translate: 0 -50%; font-family: var(--mono); font-size: .75rem; color: var(--text-2); }
.ly-row i { flex: 1; min-width: 12px; border-top: 1px dashed var(--line-2); transform-origin: right; }
.ly-row code { color: inherit; background: none; padding: 0; font-size: inherit; }
.ly-row b { width: 14px; text-align: center; font-weight: 500; color: var(--muted); }
.ly-row.on { color: var(--brand); }
.ly-row.on i { border-top: 1px solid color-mix(in oklab, var(--brand) 55%, transparent); }
.ly-row.on b { color: var(--brand); }
.ly-row.off { color: var(--muted); }
.ly-log { position: absolute; left: 57.14%; right: 18px; bottom: 14px; padding-left: 16px; display: grid; gap: 5px; }
.sc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--mono); font-size: .6875rem; color: var(--text-2); }
.sc-log li { display: flex; gap: 8px; min-width: 0; white-space: nowrap; }
.sc-log li b { flex: none; font-weight: 500; color: var(--brand); }
.sc-log li span { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sc-log li.idle { color: var(--muted); }
.ly-front-cap { position: absolute; top: 22px; left: 2px; margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .75rem; color: rgba(237,233,254,.72); }
.ly-front-cap .ly-num { color: #EDE9FE; background: rgba(167,139,250,.22); }

/* Layer 02: the app window. */
.win { position: relative; z-index: 2; width: 76%; overflow: hidden; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(17,12,34,.06), 0 24px 48px -18px rgba(17,12,34,.32), 0 70px 120px -50px rgba(76,29,149,.55); }
.win-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--panel), color-mix(in oklab, var(--frame) 70%, var(--panel))); color: var(--muted); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 999px; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.arrows { display: flex; gap: 8px; }
.arrows svg:last-child { opacity: .4; }
.addr { justify-self: center; width: min(100%, 360px); height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; background: color-mix(in oklab, var(--text) 5%, transparent); font-size: .75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.win-body { display: grid; grid-template-columns: 188px minmax(0, 1fr); }
.win-side { display: flex; flex-direction: column; gap: 18px; padding: 14px 10px 12px; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--frame) 55%, var(--panel)); font-size: .8125rem; color: var(--text-2); }
.ws { display: flex; align-items: center; gap: 9px; padding: 2px 6px; }
.ws b { flex: 1; font-weight: 600; color: var(--text); }
.ws .logo { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--app-accent) 70%, #fff), var(--app-accent)); transition: background .4s; }
.win-side nav { display: grid; gap: 2px; }
.win-side nav span { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; }
.win-side nav span svg { color: var(--muted); }
.win-side nav span.on { color: var(--app-accent); font-weight: 500; background: color-mix(in oklab, var(--app-accent) 10%, transparent); transition: color .4s, background .4s; }
.win-side nav span.on svg { color: inherit; }
.me { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 6px 0; border-top: 1px solid var(--line); color: var(--text); }
.me small { display: block; font-size: .6875rem; color: var(--muted); }
.av { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .625rem; font-weight: 600; color: var(--text-2); background: color-mix(in oklab, var(--text) 8%, transparent); }
.win-main { min-width: 0; padding: 20px 28px 0; }
.crumbs { margin: 0 0 10px; font-size: .75rem; color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }
.win-main h2 { margin: 0; font-size: 1.25rem; }
.win-status { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); transition: color .4s; }
.win-status.done { color: var(--app-accent); }
.fields { display: grid; gap: 10px; margin-top: 20px; }
.f { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; }
.f label { font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.f input { all: unset; box-sizing: border-box; display: block; width: 100%; height: 38px; padding: 0 12px; border-radius: min(var(--app-radius), 19px); border: 1px solid var(--line-2); background: var(--panel); font-size: .875rem; color: var(--text); box-shadow: 0 1px 2px rgba(17,16,20,.04); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .4s, background-color .4s, border-radius .45s var(--ease); }
.f input::placeholder { color: color-mix(in oklab, var(--muted) 75%, transparent); }
.f input:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 1px; }
.f input.on { border-color: color-mix(in oklab, var(--app-accent) 45%, var(--line-2)); background: color-mix(in oklab, var(--app-accent) 6%, var(--panel)); }
.win-foot { display: flex; align-items: center; gap: 8px; margin: 22px -28px 0; padding: 14px 28px; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--frame) 40%, var(--panel)); }
.sc-credit { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: .8125rem; color: var(--muted); }
.sc-credit img { border-radius: 5px; }
.sc-btn { min-height: 36px; padding: 0 16px; border-radius: min(var(--app-radius), 18px); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: border-radius .45s var(--ease), background .4s, border-color .4s; }
.sc-btn.ghost { color: var(--text); background: var(--panel); border: 1px solid var(--line-2); }
.sc-btn.primary { color: #fff; background: var(--app-accent); border: 1px solid var(--app-accent); }
:root[data-theme=dark] .sc-btn.primary { color: #0B0814; }
.sc-btn:focus-visible, .looks button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Token swatches under the stack. */
.looks { position: absolute; left: 2px; bottom: 16px; display: flex; align-items: center; gap: 8px; }
/* Token swatches as tiny planets: a lit top-left, a shaded limb, and each world's own surface. */
.looks button { position: relative; width: 22px; height: 22px; padding: 0; cursor: pointer; border: 0; border-radius: 999px; box-shadow: inset -3px -4px 6px rgba(0,0,0,.55), inset 2px 2px 4px rgba(255,255,255,.25), 0 0 0 1px rgba(255,255,255,.06); transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s; }
.looks button[data-look=plum] { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 32%), repeating-linear-gradient(-18deg, #8B5CF6 0 3px, #6D28D9 3px 5px, #A78BFA 5px 6px), #7C3AED; }
.looks button[data-look=teal] { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.6), transparent 30%), radial-gradient(ellipse 40% 26% at 64% 60%, #84CC16 60%, transparent 64%), radial-gradient(ellipse 26% 18% at 30% 70%, #65A30D 60%, transparent 64%), radial-gradient(circle at 50% 50%, #14B8A6, #0F766E 70%); }
.looks button[data-look=amber] { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 32%), radial-gradient(ellipse 20% 12% at 64% 62%, #7C2D12 60%, transparent 66%), linear-gradient(180deg, #FCD34D 0 22%, #D97706 22% 36%, #FBBF24 36% 52%, #B45309 52% 64%, #F59E0B 64% 80%, #92400E 80%); }
.looks button:hover { transform: scale(1.12) rotate(-8deg); }
.looks button[aria-pressed=true] { transform: scale(1.12); box-shadow: inset -3px -4px 6px rgba(0,0,0,.55), inset 2px 2px 4px rgba(255,255,255,.25), 0 0 0 2px var(--page), 0 0 0 3px rgba(255,255,255,.7), 0 0 14px 2px var(--glow, rgba(167,139,250,.55)); }
.looks button[data-look=teal] { --glow: rgba(45,212,191,.5); }
.looks button[data-look=amber] { --glow: rgba(251,191,36,.5); }
@media (prefers-reduced-motion: reduce) { .looks button { transition: none; } .looks button:hover { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .ly-row.on { animation: lyOn .45s both; animation-delay: calc(var(--i) * 90ms); }
  .ly-row.on i { animation: lyLine .55s var(--ease) both; animation-delay: calc(250ms + var(--i) * 90ms); }
  .f input.on { animation: fIn .5s both; animation-delay: calc(500ms + var(--i) * 90ms); }
  .sc-log li.new { animation: logIn .35s var(--ease) both; }
  @keyframes lyOn { from { opacity: .3; } }
  @keyframes lyLine { from { transform: scaleX(0); } }
  @keyframes fIn { from { color: transparent; border-color: var(--line-2); background-color: var(--panel); } }
  @keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
}

@media (max-width: 760px) {
  .stack { padding-top: 50px; }
  .ly-back { left: 12px; right: 12px; width: auto; bottom: auto; height: 140px; }
  .ly-head { height: 50px; padding: 0 14px; }
  .ly-cap, .ly-col, .ly-log, .ly-front-cap { display: none; }
  .win { width: 100%; }
  .win-bar { grid-template-columns: auto minmax(0, 1fr); }
  .arrows, .win-bar .tools { display: none; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side { display: none; }
  .win-main { padding: 16px 16px 0; }
  .f { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .win-foot { margin: 18px -16px 0; padding: 12px 16px; justify-content: flex-end; }
  .sc-credit { display: none; }
}

/* ══ Docs, refined: a white page, a sticky rail, clearer section heads ══ */
:root:not([data-theme=dark]) { --page: #FFFFFF; --frame: #F5F5F7; --line: #E9E9EE; --line-2: #D9D9DF; }
.docs { max-width: 1120px; padding: 112px 24px 140px; }
.index-h { display: none; }
@media (min-width: 1001px) {
  .docs { display: grid; grid-template-columns: 188px minmax(0, 46rem); justify-content: center; column-gap: 80px; }
  .docs > section { grid-column: 2; }
  .index { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: 104px; display: grid; gap: 0; margin: 0; padding: 0 0 0 0; overflow: visible; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-left: 1px solid var(--line); }
  .index-h { display: block; margin: 0 0 8px; padding-left: 16px; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .index a { margin-left: -1px; padding: 6px 12px 6px 15px; border-radius: 0; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
  .index a:hover { background: none; color: var(--text); }
  .index a[aria-current] { background: none; box-shadow: none; color: var(--text); border-left-color: var(--brand); }
  .index a[aria-current] i { color: var(--brand); opacity: 1; }
}

section { margin-bottom: 128px; scroll-margin-top: 96px; }
p.num { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
p.num span { padding: 2px 6px; border-radius: 5px; color: var(--brand); background: var(--tint); letter-spacing: 0; }
p.num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
section h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
section h2 + p, .lead { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }
section h3 { display: flex; align-items: center; gap: 10px; margin: 44px 0 12px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
section h3::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); opacity: .55; }
section h3:has(.verb)::before { display: none; }
section h3:has(.verb) { margin-top: 36px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--frame); font-family: var(--mono); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
section h3:has(.verb) .verb { margin-right: 2px; vertical-align: 0; }

/* Overview features */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--frame)); }
.features li { display: grid; align-content: start; gap: 6px; padding: 22px 20px 24px; }
.features li + li { border-left: 1px solid var(--line); }
.features .fi { width: 34px; height: 34px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17,12,34,.05), inset 0 -2px 0 var(--tint); }
.features b { font-size: .9375rem; font-weight: 600; color: var(--text); }
.features b em { margin-left: 4px; padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: .625rem; font-weight: 400; font-style: normal; color: var(--brand); background: var(--tint); vertical-align: 2px; }
.features span { font-size: .875rem; line-height: 1.55; color: var(--text-2); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } .features li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Notes */
.note { position: relative; margin: 24px 0 0; padding: 13px 16px 13px 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--frame); font-size: .875rem; line-height: 1.6; color: var(--text-2); }
.note::before { content: "i"; position: absolute; left: 15px; top: 14px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; font-family: var(--mono); font-size: .6875rem; font-weight: 600; color: var(--brand); background: var(--tint); }

/* Definition lists */
.defs { margin: 8px 0 20px; border-top: 0; }
.defs > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 0; }
.defs dt { font-weight: 500; }
.defs { padding: 4px 18px; border: 1px solid var(--line); border-radius: 14px; }

/* Steps */
.flow { list-style: none; margin: 24px 0 32px; padding: 0; counter-reset: step; }
.flow li { counter-increment: step; position: relative; margin: 0; padding: 0 0 22px 46px; color: var(--text-2); }
.flow li::before { content: counter(step, decimal-leading-zero); position: absolute; z-index: 1; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-family: var(--mono); font-size: .6875rem; color: var(--brand); background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(17,12,34,.05); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; border-left: 1px dashed var(--line-2); }
.flow b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text); }

/* Frames: lighter on white */
.frame { padding: 6px; border-radius: 20px; }
.frame-in { border-radius: 15px; box-shadow: 0 1px 2px rgba(17,12,34,.04); }
.frame-bar { align-items: center; flex-wrap: nowrap; background: linear-gradient(var(--panel), var(--frame)); }
.frame-bar > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--line-2); }
.frame-in iframe { height: 760px; }
th { background: var(--frame); }
.demo input { background: var(--panel); }

/* Footer */
.foot { margin-top: 0; border-top: 1px solid var(--line); background: linear-gradient(var(--frame), var(--page) 70%); }
.foot-in { max-width: 1120px; padding: 48px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; }
.foot-brand { display: grid; gap: 12px; align-content: start; max-width: 22rem; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--text); }
.foot-brand p { margin: 0; font-size: .875rem; color: var(--text-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 9rem)); gap: 24px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-h { margin: 0 0 4px; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-cols a { font-size: .875rem; color: var(--text-2); text-decoration: none; }
.foot-cols a:hover { color: var(--brand); }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The globe's status: one pill at the crest, clear of the stack below ── */
.hud-r { left: 50%; right: auto; top: 58px; bottom: auto; translate: -50% 0; max-width: min(84%, 420px); padding-left: 24px; }
.hud-r::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 999px; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
@media (prefers-reduced-motion: no-preference) { .hud-r::before { animation: blink 2.4s ease-in-out infinite; } }
@media (max-width: 640px) { .hud-r { display: block; top: 40px; } }
.ly-front-cap { padding: 5px 10px 5px 5px; border-radius: 9px; background: rgba(10,6,24,.6); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); top: 18px; }

/* ── Nav: a full-width light bar above the dark card, sticky on scroll ── */
.nav { position: sticky; top: 0; left: auto; transform: none; width: 100%; height: 64px; padding: 0 24px; border: 0; border-bottom: 1px solid transparent; border-radius: 0; box-shadow: none;
  background: color-mix(in oklab, var(--page) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); transition: border-color .2s, box-shadow .2s; }
.nav.solid.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(17,12,34,.4); }
.hdr { margin-top: 0; }
.hero { padding-top: 88px; }
@media (max-width: 640px) { .nav { height: 58px; padding: 0 14px; } .hdr { margin-top: 0; } .hero { padding-top: 64px; } }

/* ── Hero, refined: fewer pieces, a stronger headline, the search as the focal point ── */
.hero { max-width: 44rem; }
.badge { gap: 9px; margin-bottom: 28px; padding: 0; border: 0; background: none; font-size: .75rem; color: rgba(239,237,253,.55); letter-spacing: .01em; }
.badge i { width: 6px; height: 6px; border-radius: 999px; background: #A78BFA; box-shadow: 0 0 0 4px rgba(167,139,250,.16), 0 0 12px rgba(167,139,250,.8); }
.hero h1 { margin-bottom: 18px; font-size: clamp(2.75rem, 6.4vw, 4.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #FFFFFF 30%, #CFC3F5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 31rem; margin-bottom: 40px; font-size: 1.125rem; line-height: 1.55; color: rgba(239,237,253,.6); }
.lede span { color: rgba(239,237,253,.9); }
.try { max-width: 36rem; margin: 0 auto; }
.try church-lookup::part(label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.try church-lookup::part(input) { min-height: 60px; font-size: 1.0625rem; box-shadow: 0 0 0 6px rgba(124,58,237,.10), 0 24px 60px -24px rgba(124,58,237,.75); }
.chips { margin-top: 18px; gap: 4px 16px; font-size: .75rem; color: rgba(239,237,253,.38); }
.chips button { min-height: 24px; padding: 0; border: 0; border-radius: 4px; color: rgba(239,237,253,.7); text-decoration: underline; text-decoration-color: rgba(196,181,253,.35); text-underline-offset: 4px; }
.chips button:hover { color: #fff; text-decoration-color: #C4B5FD; }
.horizon { margin-top: 28px; }
.hud-r { transition: opacity .3s; }
.hud-r:empty { opacity: 0; }
.lede { text-wrap: balance; }
.hero { padding-top: 112px; }
@media (max-width: 640px) { .hero { padding-top: 72px; } }
/* ── The form stack rises over the globe, right under the search, so it shows above the fold ── */
.horizon { height: clamp(380px, 40vw, 576px); }
.stack-wrap { margin-top: calc(-1 * clamp(380px, 40vw, 576px) + 112px); }
@media (max-width: 760px) { .horizon { height: 340px; } .stack-wrap { margin-top: -200px; } }
.stack-wrap { max-width: calc(1040px + 2 * clamp(24px, 6vw, 72px)); padding: 0 clamp(24px, 6vw, 72px); }
@media (max-width: 760px) { .stack-wrap { padding: 0 16px; } }
/* More globe: a taller band of it shows above the stack, starting just under the try links. */
.horizon { margin-top: -28px; }
.stack-wrap { margin-top: calc(-1 * clamp(380px, 40vw, 576px) + 176px); }
@media (max-width: 760px) { .stack-wrap { margin-top: -150px; } }
.tag::after { left: calc(50% + var(--stem, 0px)); }

/* ── The church card on the globe ── */
.tag.big { padding: 10px 12px 10px 10px; border-radius: 14px; white-space: normal; width: max-content; max-width: 290px;
  background: linear-gradient(180deg, rgba(32,24,60,.94), rgba(14,10,28,.94)); border: 1px solid rgba(196,181,253,.28);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 18px 40px -12px rgba(0,0,0,.75), 0 0 44px -12px rgba(139,92,246,.6); }
.cc-top { display: flex; align-items: center; gap: 10px; }
.cc-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #A78BFA, #6D28D9); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px -6px rgba(124,58,237,.9); }
.cc-t { min-width: 0; }
.cc-t b { display: block; font-size: .875rem; font-weight: 600; line-height: 1.25; color: #fff; }
.tag.big .cc-t small { display: block; margin-top: 2px; font-family: var(--font); font-size: .75rem; color: rgba(237,233,254,.6); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.cc-meta:empty { display: none; }
.cc-chip { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; white-space: nowrap; font-family: var(--mono); font-size: .625rem; color: #DDD6FE; background: rgba(167,139,250,.14); border: 1px solid rgba(167,139,250,.2); }
.cc-chip.ok { color: #86EFAC; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.24); }
@media (prefers-reduced-motion: no-preference) {
  .cc-chip { animation: chipIn .35s cubic-bezier(.2,.8,.2,1) both; }
  .cc-chip:nth-child(2) { animation-delay: 60ms; } .cc-chip:nth-child(3) { animation-delay: 120ms; } .cc-chip:nth-child(4) { animation-delay: 180ms; }
  @keyframes chipIn { from { opacity: 0; transform: translateY(3px); } }
}
@media (max-width: 640px) { .tag.big { max-width: 250px; } }
.tag.big[data-side=right]::after, .tag.big[data-side=left]::after { top: var(--stem-y, 50%); width: 20px; height: 1px; }
.tag.big[data-side=right]::after { left: auto; right: 100%; background: linear-gradient(90deg, transparent, rgba(196,181,253,.75)); }
.tag.big[data-side=left]::after { left: 100%; background: linear-gradient(90deg, rgba(196,181,253,.75), transparent); }
@media (max-width: 760px) {
  .stack-wrap { margin-top: -110px; }
  .tag.big .cc-t small, .cc-chip.site { display: none; }
  .tag.big { padding: 8px 10px 8px 8px; }
  .cc-meta { margin-top: 7px; }
}

/* ── Sky, believable app chrome, an opaque church card ── */
.hdr::before { display: none; }
.sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.ws .logo { color: #fff; }
.ws-t { flex: 1; min-width: 0; line-height: 1.2; }
.ws-t b { display: block; font-weight: 600; color: var(--text); }
.ws-t small { display: block; margin-top: 1px; font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag.big { background: linear-gradient(180deg, #221A3D, #100C20); border-color: rgba(196,181,253,.3); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── Layering: the search results and the church card always sit above the form stack (z 6).
   The header and horizon stop forming their own layers so these can rise past it, while the
   globe itself stays below. ── */
.hdr { isolation: auto; }
.horizon { z-index: auto; }
.hero { z-index: 10; }
.tags { z-index: 9; }
/* Clip the globe area, not the whole header, so the results list can extend past the card. */
.hdr { overflow: visible; }
.horizon { overflow: hidden; border-radius: 0 0 13px 13px; }
.sky { border-radius: 13px; }
@media (max-width: 640px) { .horizon { border-radius: 0 0 11px 11px; } .sky { border-radius: 11px; } }
@media (max-width: 640px) { .tag:not(.big) { display: none; } }
.aurora { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 13px; }
@media (max-width: 640px) { .aurora { border-radius: 11px; } }
p.num::after { margin-left: 2px; }

/* ── Footer: Here's My Church on the left, GitHub on the right ── */
.foot { background: var(--page); }
.foot-in { max-width: 1120px; padding: 28px 24px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-hmc { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.foot-hmc svg { width: 32px; height: 32px; flex: none; }
.foot-hmc small { display: block; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot-hmc b { display: block; font-weight: 600; font-size: .9375rem; }
.foot-hmc:hover b { color: var(--brand); }
.gh { display: inline-flex; align-items: stretch; min-height: 36px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); font-size: .875rem; font-weight: 500; background: var(--panel); }
.gh > svg { align-self: center; margin-left: 12px; }
.gh > span { display: flex; align-items: center; padding: 0 12px 0 8px; }
.gh b { display: flex; align-items: center; gap: 5px; padding: 0 12px; border-left: 1px solid var(--line-2); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--frame); }
.gh b[hidden] { display: none; }
.gh b svg { color: #E3B341; }
.gh:hover { border-color: var(--muted); }
.foot-hmc b, .gh > span { white-space: nowrap; }
.gh > span i { font-style: normal; }
@media (max-width: 480px) { .gh > span i { display: none; } .foot-in { padding: 24px 16px 32px; } }

/* ── Made in the open (matches harvous.com/open-source) ── */
.oss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.oss-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--frame)); }
.oss-main { grid-column: 1 / -1; background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--brand) 9%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), var(--frame)); }
.oss-top { display: flex; align-items: center; gap: 12px; }
.oss-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,12,34,.1); }
.oss-ic svg { width: 100%; height: 100%; }
.oss-harvous { font-weight: 700; color: #fff; background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.oss-card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.oss-card h3::before { display: none; }
.oss-card code { display: block; margin-top: 2px; padding: 0; background: none; font-size: .75rem; color: var(--muted); }
.oss-card > p { margin: 0; font-size: .9375rem; color: var(--text-2); }
.oss-facts { margin: 0; display: grid; gap: 8px; }
.oss-facts div { display: grid; gap: 2px; }
.oss-main .oss-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
.oss-facts dt { font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.oss-facts dd { margin: 0; font-size: .875rem; color: var(--text-2); }
.oss-actions { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.oss-link { font-size: .875rem; text-decoration: none; }
.oss-link:hover { text-decoration: underline; }
.oss-gh { min-height: 34px; font-size: .8125rem; }
.oss-more { margin-top: 18px; font-size: .9375rem; }
@media (max-width: 720px) { .oss { grid-template-columns: 1fr; } .oss-main .oss-facts { grid-template-columns: 1fr; } }
.oss-facts div { align-content: start; }
.cc-top { align-items: flex-start; }

/* ── Theming: before/after slider and playground ── */
.ba { position: relative; height: 420px; overflow: hidden; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; padding: 56px 32px 24px; }
.ba-before { background: #FFFFFF; color: #18181B; color-scheme: light; }
.ba-before church-lookup { --hmc-bg: initial; --hmc-text: initial; --hmc-border: initial; --hmc-input-border: initial; --hmc-accent: initial; --hmc-active-bg: initial; --hmc-active-text: initial; --hmc-muted: initial; --hmc-radius: initial; --hmc-popover: initial; --hmc-popover-text: initial; font-family: ui-sans-serif, system-ui, sans-serif; color-scheme: light; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); background: var(--ba-bg, #F5F3FF); color: #18181B; }
.ba-after[data-mode=dark] { color: #fff; }
.ba-form { max-width: 26rem; margin: 0 auto; }
.ba-tag { position: absolute; top: 16px; left: 16px; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: .6875rem; color: #52525B; background: #F4F4F5; }
.ba-after .ba-tag { left: auto; right: 16px; color: inherit; background: color-mix(in oklab, currentColor 10%, transparent); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(17,12,34,.15); pointer-events: none; z-index: 3; }
.ba-line span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 999px; color: #18181B; background: #fff; box-shadow: 0 2px 10px rgba(17,12,34,.25); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-line span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ba-controls { display: grid; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ba-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ba-l { margin-right: 4px; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ba-chip { min-height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font: inherit; font-size: .8125rem; cursor: pointer; }
.ba-chip[aria-pressed=true] { border-color: var(--brand); color: var(--brand); background: var(--tint); }
.ba-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#ba-r { width: 110px; accent-color: var(--brand); }
#ba-r-out { min-width: 3ch; font-family: var(--mono); font-size: .75rem; color: var(--text-2); }
#ba-font { min-height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-size: .8125rem; }
@media (max-width: 640px) { .ba { height: 400px; } .ba-layer { padding: 52px 14px 16px; } }
.ba-layer { isolation: isolate; z-index: 0; }
.ba-after { z-index: 1; }
/* The headline keeps growing and stays on one line on desktop; the copy and search keep their own widths. */
.hero { max-width: 64rem; }
@media (min-width: 900px) { .hero h1 { white-space: nowrap; } }
.lede { max-width: 36rem; }
.nw { white-space: nowrap; color: inherit !important; }
/* App window footer: one line at any width; the credit is a small pill that shrinks to its mark. */
.win-main { container-type: inline-size; }
.win-foot { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.sc-credit { gap: 6px; min-width: 0; padding: 4px 9px 4px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.sc-credit span { overflow: hidden; text-overflow: ellipsis; }
.sc-credit img { border-radius: 4px; }
.sc-btn { flex: none; white-space: nowrap; min-height: 34px; padding: 0 14px; }
@container (max-width: 440px) { .sc-credit { padding: 4px; } .sc-credit span { display: none; } }
/* Below the rail breakpoint, the section index docks under the nav as one continuous bar. */
@media (max-width: 1000px) {
  .index { top: 64px; margin: 0 -24px 72px; padding: 8px 24px; border-radius: 0; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--page) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 8px 24px -20px rgba(17,12,34,.4); }
  .nav.solid.scrolled { box-shadow: none; }
  html { scroll-padding-top: 128px; }
  section { scroll-margin-top: 128px; }
}
@media (max-width: 640px) { .index { top: 58px; } }
/* Site dropdowns: a drawn chevron with room, instead of the browser arrow at the far edge. */
#ba-font, .docs select { appearance:none; -webkit-appearance:none; padding-right:30px; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 16px) 52%,calc(100% - 11px) 52%; background-size:5px 5px; background-repeat:no-repeat; }
@media (forced-colors: active) { #ba-font, .docs select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 8px; } }
/* Made in the open, refined: two primary projects, Harvous as a secondary strip. */
.oss-card { gap: 10px; }
.oss-card > p { flex: 1; }
.oss-also { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px 12px 12px; border: 1px solid var(--line); border-radius: 14px; }
.oss-also .oss-ic { width: 32px; height: 32px; border-radius: 9px; }
.oss-also p { margin: 0; font-size: .875rem; color: var(--text-2); }
.oss-also b { font-weight: 600; color: var(--text); }
.oss-also-l { display: block; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.oss-also .oss-actions { margin: 0; padding: 0; flex-wrap: nowrap; }
@media (max-width: 720px) { .oss-also { grid-template-columns: 32px minmax(0, 1fr); } .oss-also .oss-actions { grid-column: 1 / -1; flex-wrap: wrap; } }
.oss-card > p .oss-link { font-size: inherit; white-space: nowrap; }
/* Wordmark with its maker. */
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-by { padding-left: 10px; border-left: 1px solid var(--line-2); font-size: .8125rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.brand-by:hover { color: var(--brand); }
@media (max-width: 420px) { .brand-by { display: none; } }
/* Harvous: one quiet row under the two project cards. */
.oss-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--frame); text-decoration: none; color: var(--text-2); transition: background .2s; }
.oss-row:hover { background: color-mix(in oklab, var(--brand) 7%, var(--frame)); }
.oss-row img { flex: none; border-radius: 8px; }
.oss-row-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .9375rem; }
.oss-row-t b { font-weight: 600; color: var(--text); }
.oss-row-t span { font-size: .875rem; color: var(--muted); }
.oss-row-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 500; color: var(--brand); white-space: nowrap; }
.oss-row:hover .oss-row-go svg { transform: translateX(2px); }
.oss-row-go svg { transition: transform .2s; }
@media (max-width: 560px) { .oss-row-go { font-size: 0; } .oss-row-go svg { width: 16px; height: 16px; } }
.tag.big[data-side=bottom]::after { top: auto; bottom: 100%; height: 18px; background: linear-gradient(transparent, rgba(196,181,253,.75)); }
@media (max-width: 640px) { .lede { max-width: none; font-size: clamp(.875rem, 4.1vw, 1.0625rem); } }
@media (max-width: 360px) { .hero { padding-left: 12px; padding-right: 12px; } .lede { font-size: .84375rem; } }
@media (max-width: 640px) { .hero h1 { font-size: clamp(2rem, 11.4vw, 3.25rem); letter-spacing: -0.03em; } }
.oss-top > div { min-width: 0; }
.oss-card code { overflow-wrap: anywhere; }
:not(pre) > code { overflow-wrap: anywhere; }
/* Search sits closer to the copy, leaving more globe below it. */
.lede { margin-bottom: 28px; }
@media (max-width: 640px) { .hero { padding-top: 56px; } .lede { margin-bottom: 24px; } }
/* No dragging: plain cursor, and touch scrolls the page. At the top the nav has no hairline. */
.horizon canvas, .horizon canvas:active { cursor: default; touch-action: auto; }
.nav.solid:not(.scrolled) { border-bottom-color: transparent; box-shadow: none; }
/* Nav contents line up with the docs container (1120px, 24px gutters). */
.nav { padding-left: max(24px, calc((100% - 1120px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1120px) / 2 + 24px)); }
@media (max-width: 640px) { .nav { padding-left: 14px; padding-right: 14px; } }
.verb.post { background: rgba(124,58,237,.12); color: #6D28D9; }
:root[data-theme=dark] .verb.post { color: #C4B5FD; }
/* Widget options: a live preview beside the attributes it's built from. */
.wo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.wo-stage { position: relative; min-height: 568px; padding: 56px 32px 24px; background: #FFFFFF; color: #18181B; color-scheme: light; }
.wo-stage church-lookup { --hmc-bg: initial; --hmc-text: initial; --hmc-border: initial; --hmc-input-border: initial; --hmc-accent: initial; --hmc-active-bg: initial; --hmc-active-text: initial; --hmc-muted: initial; --hmc-radius: initial; --hmc-popover: initial; --hmc-popover-text: initial; font-family: ui-sans-serif, system-ui, sans-serif; color-scheme: light; }
.wo-form { max-width: 26rem; margin: 0 auto; }
.wo-log { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 12px 18px; border-top: 1px solid var(--line); }
.wo-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 4.6em; align-content: start; }
.wo-log li { display: flex; gap: 10px; align-items: baseline; font-size: .8125rem; color: var(--text-2); min-width: 0; }
.wo-log li code { flex: none; min-width: 9.5em; font-size: .75rem; color: var(--brand); background: none; padding: 0; }
.wo-log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-log li:first-child { animation: wo-in .25s ease-out; }
.wo-log .wo-empty { color: var(--muted); }
@keyframes wo-in { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wo-log li:first-child { animation: none; } }
.wo-opts { display: grid; align-content: start; gap: 18px; padding: 18px; border-left: 1px solid var(--line); }
.wo-sec { display: grid; gap: 10px; }
.wo-f { display: grid; gap: 6px; margin: 0; }
.wo-f > code { justify-self: start; font-size: .75rem; color: var(--text-2); background: none; padding: 0; }
.wo-f input[type=text] { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-size: .8125rem; }
.wo-f input[type=text]:focus-visible, .wo-range input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.wo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-chips .ba-chip { min-height: 30px; padding: 0 9px; font-family: var(--mono); font-size: .75rem; }
.wo-range { display: flex; align-items: center; gap: 10px; }
.wo-range input { flex: 1; accent-color: var(--brand); }
.wo-range output { min-width: 2ch; font-family: var(--mono); font-size: .75rem; color: var(--text-2); text-align: right; }
.wo-hint { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) { .wo { grid-template-columns: 1fr; } .wo-opts { border-left: 0; border-top: 1px solid var(--line); } .wo-stage { min-height: 620px; padding: 52px 16px 20px; } .wo-log { grid-template-columns: 1fr; } .wo-log li code { min-width: 0; } }

/* ── Homepage after the docs moved to /docs ── */
.home { max-width: 64rem; }
.home section { margin-bottom: 120px; }
.home section h2 { font-size: 2rem; }
.more { margin-top: 14px; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Example cards, each with a small drawn preview of its app */
.exs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ex-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--frame); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ex-card:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(76,29,149,.45); }
.ex-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* Final call to action */
.cta { margin-bottom: 0; padding: 0 10px 10px; }
.cta-in { position: relative; overflow: hidden; max-width: none; padding: 72px 24px 64px; border-radius: 14px; text-align: center; color: #fff; background: radial-gradient(90% 120% at 50% 0%, #3B1D6E 0%, #160B30 55%, #07040F 100%); border: 1px solid rgba(255,255,255,.06); }
.cta-in h2 { margin: 0 0 10px; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; color: #fff; text-wrap: balance; }
.cta-in > p { margin: 0 auto 28px; max-width: 30rem; color: rgba(239,237,253,.7); }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); color: #fff; background: rgba(255,255,255,.06); font-weight: 600; text-decoration: none; }
.cta-btn:hover { background: rgba(255,255,255,.12); }
.cta-btn.primary { border-color: transparent; background: #fff; color: #1E0B45; }
.cta-btn.primary:hover { background: #EDE9FE; }
.cta-btn:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.cta-agent { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 28px; padding: 6px 6px 6px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.25); }
.cta-agent > span { font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: #C4B5FD; }
.cta-agent code { min-width: 0; overflow-x: auto; white-space: nowrap; padding: 0 !important; background: none !important; color: rgba(239,237,253,.85) !important; font-size: .8125rem; }
.cta-copy { flex: none; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-family: var(--mono); font-size: .6875rem; cursor: pointer; }
.cta-copy:hover { background: rgba(255,255,255,.18); }
@media (max-width: 560px) { .cta-agent > span { display: none; } .cta-in { padding: 56px 16px 48px; } }

/* Footer: part of Here's My Church */
.foot { border-top: 0; background: var(--page); }
.foot .foot-in { max-width: 1120px; margin: 0 auto; padding: 28px 24px 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { font-size: .875rem; color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand); }
.foot-thanks { max-width: 1120px; margin: 0 auto; padding: 0 24px 32px; font-size: .8125rem; color: var(--muted); }
.foot-thanks a { color: var(--text-2); }

/* Examples, full screen */
.exm { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0B0816; color: #fff; display: none; flex-direction: column; }
.exm[open] { display: flex; }
.exm::backdrop { background: rgba(5,2,15,.7); }
.exm-top { display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 18px; }
.exm-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.exm-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.exm-logo svg { width: 16px; height: 16px; }
.exm-id b { display: block; font-size: .9375rem; font-weight: 600; }
.exm-id small { display: block; font-size: .75rem; color: rgba(239,237,253,.55); }
.exm-pager { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: rgba(239,237,253,.6); }
.exm-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; }
.exm-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.exm-ic:hover { background: rgba(255,255,255,.14); }
.exm-link { padding: 8px 10px; border-radius: 8px; font-size: .8125rem; color: rgba(239,237,253,.8); text-decoration: none; }
.exm-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.exm-win { flex: 1; display: flex; flex-direction: column; min-height: 0; margin: 0 14px 14px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.exm-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 12px; background: #EDEDF0; border-bottom: 1px solid #DADADF; }
.exm-bar .lights { display: flex; gap: 6px; }
.exm-bar .lights i { width: 11px; height: 11px; border-radius: 99px; background: #FF5F57; }
.exm-bar .lights i + i { background: #FEBC2E; } .exm-bar .lights i + i + i { background: #28C840; }
.exm-addr { display: inline-flex; align-items: center; gap: 6px; min-width: min(420px, 50vw); justify-content: center; padding: 4px 14px; border-radius: 7px; background: #fff; color: #52525B; font-size: .75rem; }
.exm-win iframe { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 720px) {
  .exm-top { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .exm-link { display: none; }
  .exm-pager { order: 3; width: 100%; justify-content: center; display: none; }
  .exm-win { margin: 0; border-radius: 0; }
  .exm-addr { min-width: 0; }
}

/* Example cards and modal: each app's own icon and palette. */
.exm-logo { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: none; box-shadow: 0 4px 12px -4px rgba(0,0,0,.6); }
.exm-logo svg { width: 100%; height: 100%; }
.ex-icon { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; box-shadow: 0 4px 10px -6px rgba(17,12,34,.45), 0 0 0 1px rgba(17,12,34,.04); }
.ex-icon svg { width: 100%; height: 100%; }
/* Kinship thumbnail: warm paper, ink active nav, coral action */
/* Harvest thumbnail: cream, tomato, leaf */
/* Steeple thumbnail: ink chrome, lime, green sunset site */

/* Choose your path */
.path-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.path-notes p { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: .9375rem; }
.path-notes b { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .path-notes { grid-template-columns: 1fr; } }

/* Theming: the right side is styled only by page tokens, never --hmc-* */
.ba-after { background: var(--background, #fff); color: var(--foreground, #18181B); font-family: ui-sans-serif, system-ui, sans-serif; }
.ba-after church-lookup { --hmc-bg: initial; --hmc-text: initial; --hmc-border: initial; --hmc-input-border: initial; --hmc-accent: initial; --hmc-active-bg: initial; --hmc-active-text: initial; --hmc-muted: initial; --hmc-radius: initial; --hmc-popover: initial; --hmc-popover-text: initial; }
.ba-controls { display: grid; gap: 10px; }
.ba-edit { margin: 4px 0 -4px; }
.ba-tokens { width: 100%; min-height: 220px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--code, #16151C); color: #ECEBF2; font: .8125rem/1.65 var(--mono); resize: vertical; tab-size: 2; }
.ba-tokens:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Example cards: label and name sit together beside the icon */

/* Example cards: the link sits at the bottom, whatever the text length */
/* Kinship's two versions, switched in the modal */
.exm-ver { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.exm-ver[hidden] { display: none; }
.exm-ver button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: rgba(239,237,253,.7); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.exm-ver button[aria-pressed=true] { background: #fff; color: #0B0816; }
.exm-ver button:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 2px; }
@media (max-width: 720px) { .exm-ver { order: 2; } }

/* ══ Homepage, condensed: centered heads, a bento, image-first examples, two ways in ══ */
.home { --dots: color-mix(in oklab, var(--text) 13%, transparent); --hi: rgba(255,255,255,.7); display: block; max-width: 1120px; padding: 96px 24px 96px; position: relative; }
:root[data-theme=dark] .home { --hi: rgba(255,255,255,.05); }
/* Faint guide lines down the content edges, the way a blueprint marks its margins */
.home::before { content: ""; position: absolute; inset: 0 24px; pointer-events: none; border-inline: 1px dashed color-mix(in oklab, var(--line) 80%, transparent); mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent); -webkit-mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent); }
.home > section { margin: 0; padding: 0 clamp(0px, 3vw, 40px); }
.home > section + section { margin-top: 112px; }
.h-head { max-width: 38rem; margin: 0 auto 36px; text-align: center; }
.home section h2 { margin: 0 0 12px; font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.h-head > p:last-child { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; box-shadow: 0 0 0 3px var(--tint); }

/* Bento: three tiles, each a small drawing of the thing it describes, on a dot grid */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.b-tile { position: relative; display: flex; flex-direction: column; padding: 8px 8px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--frame)); box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(17,12,34,.04); }
.b-art { position: relative; height: 168px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--frame); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 12px 12px; background-position: center; }
.b-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 45%, transparent 40%, var(--frame)); }
.b-art > * { position: relative; z-index: 1; }
.b-tile h3 { margin: 0 12px 6px; font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; }
.b-tile h3::before { display: none; }
.b-tile p { margin: 0 12px; font-size: .875rem; line-height: 1.55; color: var(--muted); }
/* Shared mini-UI surface inside the drawings */
.b-search, .b-fields, .b-fix { width: min(86%, 260px); padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 24px -14px rgba(17,12,34,.3), inset 0 1px 0 var(--hi); font-size: .75rem; color: var(--text-2); }
.b-input { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; margin-bottom: 4px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 3px var(--tint); color: var(--text); }
.b-input svg { color: var(--muted); }
.b-input i { width: 1px; height: 13px; background: var(--brand); }
@media (prefers-reduced-motion: no-preference) { .b-input i { animation: blink 1.1s steps(1) infinite; } }
.b-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 7px; }
.b-row b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-row small { flex: none; color: var(--muted); font-size: .6875rem; }
.b-row.on { background: var(--tint); }
.b-fields { display: grid; gap: 4px; }
.b-fields span { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); }
.b-fields em { font-style: normal; font-family: var(--mono); font-size: .625rem; color: var(--muted); }
.b-fields b { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-fields span:has(.ok) { background: color-mix(in oklab, var(--brand) 5%, transparent); }
.b-fields .ok { width: 14px; height: 14px; border-radius: 99px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.b-fields small { font-family: var(--mono); font-size: .5625rem; padding: 1px 5px; border-radius: 4px; color: var(--muted); background: var(--frame); border: 1px solid var(--line); }
.b-fix { display: grid; gap: 8px; }
.b-diff { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.b-diff em { grid-column: 1 / -1; font-style: normal; font-family: var(--mono); font-size: .625rem; color: var(--muted); }
.b-diff s { color: var(--muted); text-decoration-color: #F87171; }
.b-diff b { font-weight: 600; color: var(--text); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, #22C55E 16%, transparent); }
.b-check { display: flex; align-items: center; gap: 8px; padding: 2px 4px; color: var(--text); }
.b-check i { width: 15px; height: 15px; flex: none; border-radius: 4px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Examples: image first, one short caption under it */
.home .exs { margin: 0; gap: 12px; }
.home .ex-card { padding: 8px 8px 16px; border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--frame)); box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgba(17,12,34,.04); }
.home .ex-card:hover { transform: none; box-shadow: inset 0 1px 0 var(--hi), 0 18px 40px -26px rgba(76,29,149,.45); }
.ex-cap { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; }
.ex-cap .ex-icon { flex: none; width: 30px; height: 30px; }
.ex-cap .ex-icon svg { width: 100%; height: 100%; }
.ex-cap > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.ex-cap b { font-size: .9375rem; font-weight: 600; color: var(--text); }
.ex-cap small { font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ex-arrow { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); transition: color .2s, border-color .2s, transform .2s; }
.ex-card:hover .ex-arrow { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); transform: translateX(2px); }
.ex-desc { display: block; padding: 6px 8px 0 48px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* Two ways in: words on the left, code on the right, the docs underneath */
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: center; }
.h-split .frame { margin: 0; }
.h-split pre { font-size: .75rem; }
.ways { display: grid; gap: 18px; margin: 24px 0 0; }
.ways div { padding-left: 14px; border-left: 2px solid var(--line); }
.ways div:first-child { border-left-color: var(--brand); }
.ways dt { font-weight: 600; color: var(--text); font-size: .9375rem; }
.ways dd { margin: 4px 0 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.doc-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: inset 0 1px 0 var(--hi); }
.doc-links a { position: relative; display: grid; gap: 2px; padding: 14px 40px 14px 16px; text-decoration: none; transition: background .2s; }
.doc-links a + a { border-left: 1px solid var(--line); }
.doc-links a:hover { background: var(--frame); }
.doc-links b { font-size: .875rem; font-weight: 600; color: var(--text); }
.doc-links span { font-size: .8125rem; color: var(--muted); }
.doc-links svg { position: absolute; right: 14px; top: 50%; margin-top: -7px; color: var(--muted); transition: transform .2s, color .2s; }
.doc-links a:hover svg { color: var(--brand); transform: translateX(2px); }

@media (max-width: 900px) {
  .home .exs { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .home .ex-card { flex-direction: column; }
  .h-split { grid-template-columns: minmax(0, 1fr); }
  .doc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-links a:nth-child(3) { border-left: 0; }
  .doc-links a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .home { padding: 72px 16px 72px; }
  .home::before { display: none; }
  .home > section { padding: 0; }
  .home > section + section { margin-top: 80px; }
  .b-art { height: 144px; }
}
@media (max-width: 420px) { .home .code-bar [role=tab] { white-space: nowrap; padding: 0 6px; } .doc-links { grid-template-columns: 1fr; } .doc-links a + a { border-left: 0; border-top: 1px solid var(--line); } }

/* Example previews: a light window floating on a soft tint of each app's colour, one accent each */
.ex-thumb { position: relative; display: block; height: 184px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--t1), var(--t2)); }
.ex-thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in oklab, var(--ac) 22%, transparent) 1px, transparent 1.3px); background-size: 12px 12px; mask: linear-gradient(160deg, #000, transparent 70%); -webkit-mask: linear-gradient(160deg, #000, transparent 70%); }
.ex-kinship { --ac: #7C3AED; --t1: #F6F2FF; --t2: #E6DCFF; }
.ex-harvest { --ac: #E8891A; --t1: #FFF8EA; --t2: #FDE6BC; }
.ex-steeple { --ac: #93B51C; --t1: #F8FCE8; --t2: #E5F3B0; }
:root[data-theme=dark] .ex-kinship { --t1: #1D1733; --t2: #2A1E4D; }
:root[data-theme=dark] .ex-harvest { --t1: #221A10; --t2: #3A2913; }
:root[data-theme=dark] .ex-steeple { --t1: #1A1F0E; --t2: #2A3413; }
.ext-win { position: absolute; left: 22px; top: 22px; right: -1px; bottom: -1px; display: flex; flex-direction: column; border-radius: 10px 0 0 0; overflow: hidden; border: 1px solid color-mix(in oklab, var(--ac) 18%, var(--line)); background: var(--panel); box-shadow: 0 16px 32px -18px color-mix(in oklab, var(--ac) 55%, transparent), inset 0 1px 0 var(--hi); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ex-card:hover .ext-win { transform: translate(-4px, -4px); }
.ext-win { --bar: color-mix(in oklab, var(--text) 9%, transparent); --ink: color-mix(in oklab, var(--text) 70%, transparent); }
.ext-bar { display: flex; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.ext-bar i { width: 6px; height: 6px; border-radius: 99px; background: var(--bar); }
.ext-body { flex: 1; display: flex; min-height: 0; }
.ext-side { width: 24%; padding: 10px 8px; display: grid; align-content: start; gap: 7px; border-right: 1px solid var(--line); background: var(--frame); }
.ext-side i { height: 5px; border-radius: 3px; background: var(--bar); }
.ext-side i.on { background: var(--ac); }
.ext-main { flex: 1; padding: 12px 14px; display: grid; align-content: start; gap: 7px; }
.ext-main b { width: 50%; height: 7px; border-radius: 4px; background: var(--ink); }
.ext-main em { width: 72%; height: 5px; border-radius: 3px; background: var(--bar); }
.ext-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.ext-fields i { height: 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--page); }
.ext-fields i:first-child { grid-column: 1 / -1; border-color: color-mix(in oklab, var(--ac) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--ac) 16%, transparent); }
.ext-btn { justify-self: end; width: 30%; height: 12px; margin-top: 4px; border-radius: 4px; background: var(--ac); }
.ex-harvest .ext-body { flex-direction: column; }
.ext-steps { display: flex; gap: 5px; padding: 12px 14px 0; }
.ext-steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--bar); }
.ext-steps i.on { background: var(--ac); }
.ext-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.ex-steeple .ext-fields { grid-template-columns: 1fr; }
.ext-site { display: grid; align-content: start; gap: 6px; padding: 10px; border-left: 1px solid var(--line); background: var(--frame); }
.ext-hero { height: 52px; border-radius: 6px; background: radial-gradient(circle at 72% 70%, #F8D27A 0 13%, transparent 14%), linear-gradient(180deg, color-mix(in oklab, var(--ac) 35%, var(--panel)), color-mix(in oklab, var(--ac) 75%, var(--panel))); }
.ext-site i { height: 5px; border-radius: 3px; background: var(--bar); }
.ext-site i + i { width: 70%; }
@media (prefers-reduced-motion: reduce) { .ext-win { transition: none; } .ex-card:hover .ext-win { transform: none; } }

/* Hero, balanced: a narrower frame on wide screens, and more globe between the search and the app */
@media (min-width: 641px) { .hdr { margin-left: max(10px, calc((100% - 1320px) / 2)); margin-right: max(10px, calc((100% - 1320px) / 2)); } }
@media (min-width: 761px) {
  .horizon { height: clamp(460px, 44vw, 660px); }
  .stack-wrap { margin-top: calc(-1 * clamp(460px, 44vw, 660px) + 280px); }
}

/* Closing call to action: the hero's night sky again, a dot grid at the edges, and a globe rising from the bottom */
.cta { margin-bottom: 0; padding: 0 10px 10px; }
@media (min-width: 641px) { .cta { padding-left: max(10px, calc((100% - 1320px) / 2)); padding-right: max(10px, calc((100% - 1320px) / 2)); } }
.cta-in { isolation: isolate; padding: 88px 24px 0; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 80px -40px rgba(76,29,149,.6);
  background: radial-gradient(50rem 22rem at 50% 100%, rgba(124,58,237,.34), transparent 70%), radial-gradient(40rem 18rem at 50% 0%, rgba(124,58,237,.14), transparent 70%), var(--night); }
.cta-in::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(196,181,253,.22) 1px, transparent 1.3px); background-size: 14px 14px; background-position: center;
  mask: radial-gradient(ellipse 46% 52% at 50% 36%, transparent 40%, #000 100%); -webkit-mask: radial-gradient(ellipse 46% 52% at 50% 36%, transparent 40%, #000 100%); }
.cta-in > :not(.cta-horizon) { position: relative; z-index: 2; }
.cta-in .eyebrow { color: #C4B5FD; }
.cta-in .eyebrow::before { box-shadow: 0 0 0 3px rgba(167,139,250,.2); }
.cta-in h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.cta-in > p:not(.eyebrow) { margin-bottom: 32px; }
.cta-btn { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cta-btn.primary { box-shadow: 0 0 0 6px rgba(124,58,237,.14), 0 18px 40px -18px rgba(167,139,250,.8); }
.cta-agent { background: rgba(12,6,28,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cta-horizon { position: relative; z-index: 1; height: calc(clamp(240px, 26vw, 340px) + 144px); margin: -294px -24px 0; pointer-events: none; }
.cta-horizon canvas { -webkit-mask-image: linear-gradient(transparent, #000 150px); mask-image: linear-gradient(transparent, #000 150px); }
.cta-horizon canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .cta-in { padding-top: 72px; } .cta-horizon { height: 344px; margin-top: -216px; } .cta-in::before { mask: radial-gradient(ellipse 70% 40% at 50% 34%, transparent 30%, #000 100%); -webkit-mask: radial-gradient(ellipse 70% 40% at 50% 34%, transparent 30%, #000 100%); } }

/* Nav, simplified: the brand on the left; a quiet GitHub link and one primary button on the right */
.nav:not(:has(.nav-links)) { grid-template-columns: 1fr auto; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .15s, background .15s; }
.nav-gh svg { color: var(--muted); transition: color .15s; }
.nav-gh:hover { color: var(--text); background: var(--frame); }
.nav-gh:hover svg { color: var(--text); }
.nav-end { gap: 4px; }
.nav-end .btn { margin-left: 4px; }
@media (max-width: 420px) { .nav-gh { font-size: 0; gap: 0; padding: 0 9px; } }

/* Homepage footer: three quiet, centered lines */
.hf { display: grid; justify-items: center; gap: 12px; max-width: 40rem; margin: 0 auto; padding: 36px 20px 40px; text-align: center; font-size: .8125rem; color: var(--muted); }
.hf-hmc { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; font-size: .875rem; }
.hf-hmc svg { width: 22px; height: 22px; flex: none; }
.hf-hmc b { font-weight: 600; color: var(--text); transition: color .15s; }
.hf-hmc:hover b { color: var(--brand); }
.hf-links { display: flex; flex-wrap: wrap; justify-content: center; }
.hf-links a { padding: 2px 12px; color: var(--muted); text-decoration: none; transition: color .15s; }
.hf-links a + a { border-left: 1px solid var(--line-2); }
.hf-links a:hover { color: var(--text); }

/* Nav, Clerk-style: a flat full-width bar at the top that contracts into a floating card once you scroll.
   The bar itself never moves, so nothing shifts; only its background (::before) eases in from the edges. */
.nav { isolation: isolate; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.nav.solid.scrolled { border-bottom-color: transparent; box-shadow: none; }
.nav::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; border-radius: 0;
  background: color-mix(in oklab, var(--page) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  --ring-in: rgba(255,255,255,0); --ring: rgba(19,19,22,0);
  box-shadow: inset 0 0 0 .5px var(--ring-in), 0 0 0 .5px var(--ring), 0 2px 3px rgba(0,0,0,0), 0 4px 6px rgba(34,42,53,0), 0 1px 1px rgba(0,0,0,0);
  transition: inset .45s cubic-bezier(.33,1,.68,1), border-radius .45s cubic-bezier(.33,1,.68,1), background-color .45s cubic-bezier(.33,1,.68,1), box-shadow .45s cubic-bezier(.33,1,.68,1); }
.nav.scrolled::before { inset: 8px max(8px, calc((100% - 1104px) / 2)) 4px; border-radius: 14px;
  background: color-mix(in oklab, var(--panel) 90%, transparent);
  --ring-in: rgba(255,255,255,.9); --ring: rgba(19,19,22,.15);
  box-shadow: inset 0 0 0 .5px var(--ring-in), 0 0 0 .5px var(--ring), 0 2px 3px rgba(0,0,0,.04), 0 4px 6px rgba(34,42,53,.04), 0 1px 1px rgba(0,0,0,.05); }
:root[data-theme=dark] .nav.scrolled::before { --ring-in: rgba(255,255,255,.06); --ring: rgba(255,255,255,.12); }
@media (max-width: 640px) { .nav.scrolled::before { inset: 6px 6px 2px; } }
@media (prefers-reduced-motion: reduce) { .nav::before { transition: none; } }

/* Get started, always dark (Clerk-style): a full-bleed night band that the light page hangs into with a notched tab,
   its globe fading out into the footer, which sits on the same night. */
.cta { position: relative; padding: 0; background: var(--night); }
.cta::before { content: ""; position: absolute; z-index: 3; top: -1px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 32px)); height: 26px; background: var(--page);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 26px 100%); }
.cta-in { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding-top: 128px; }
.cta-in::before { border-radius: 0; }
.cta-horizon canvas { -webkit-mask-image: linear-gradient(transparent, #000 150px, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 150px, #000 72%, transparent); }
.hf { max-width: none; margin: 0; padding: 8px 20px 44px; background: var(--night); color: rgba(239,237,253,.5); }
.hf-hmc { color: rgba(239,237,253,.7); }
.hf-hmc b { color: #fff; }
.hf-hmc:hover b { color: #C4B5FD; }
.hf-links a { color: rgba(239,237,253,.55); }
.hf-links a + a { border-left-color: rgba(255,255,255,.12); }
.hf-links a:hover { color: #fff; }
@media (max-width: 640px) { .cta::before { height: 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%); } .cta-in { padding-top: 96px; } }
.cta-in { background: radial-gradient(50rem 20rem at 50% 62%, rgba(124,58,237,.30), transparent 70%), radial-gradient(40rem 18rem at 50% 0%, rgba(124,58,237,.12), transparent 70%), var(--night); }

/* Softer notch: the tab's bottom corners round off, and concave fillets ease it out of the page edge */
.cta::before { --r: 28px; height: var(--r); clip-path: none; border-radius: 0 0 var(--r) var(--r); }
.cta::after { content: ""; position: absolute; z-index: 3; top: -1px; left: 50%; transform: translateX(-50%); --r: 28px;
  width: calc(min(1120px, calc(100% - 32px)) + 2 * var(--r)); height: var(--r); pointer-events: none;
  background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), var(--page) var(--r)) left top / var(--r) var(--r) no-repeat,
              radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), var(--page) var(--r)) right top / var(--r) var(--r) no-repeat; }
@media (max-width: 640px) { .cta::before, .cta::after { --r: 18px; } .cta::before { clip-path: none; } }

/* Theme toggle, minimal: no outline, just the icon with a soft hover */
.theme, .nav.solid .theme { border-color: transparent; background: transparent; color: var(--muted); transition: color .15s, background .15s; }
.nav.solid .theme:hover { color: var(--text); background: var(--frame); }

/* Footer credit without a link sits like the others */
.hf-links span { padding: 2px 12px; color: rgba(239,237,253,.55); }
.hf-links > * + * { border-left: 1px solid rgba(255,255,255,.12); }
.cta-in::before { -webkit-mask: radial-gradient(ellipse 46% 52% at 50% 36%, transparent 40%, #000 100%), linear-gradient(#000 55%, transparent 100%); -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 46% 52% at 50% 36%, transparent 40%, #000 100%) intersect, linear-gradient(#000 55%, transparent 100%); }
/* Notch fix: the fillet takes the top half, the tab's rounded corner the bottom half, so they meet in one smooth S */
.cta::before { --r: 18px; height: calc(2 * var(--r)); border-radius: 0 0 var(--r) var(--r); }
.cta::after { --r: 18px; height: var(--r); }
@media (max-width: 640px) { .cta::before, .cta::after { --r: 12px; } }

/* Agent prompt, Clerk-style: a pill with a stack of agent icons, the prompt, and one solid copy button */
.cta-agent { display: inline-flex; align-items: center; gap: 14px; max-width: min(100%, 40rem); margin-top: 28px; padding: 6px 6px 6px 8px; border-radius: 999px; text-align: left;
  border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 40px -24px rgba(0,0,0,.8); }
.ag-stack { display: flex; flex: none; padding-left: 8px; }
.ag-stack i { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border-radius: 99px; box-shadow: 0 0 0 2px #1A1230, 0 4px 10px -4px rgba(0,0,0,.6); transition: margin .35s cubic-bezier(.33,1,.68,1), transform .35s cubic-bezier(.33,1,.68,1); }
.ag-stack svg { width: 17px; height: 17px; }
.ag-term { background: linear-gradient(180deg, #2A2733, #111014); }
.ag-spark { background: linear-gradient(180deg, #9A6CFA, #5B21D6); }
.ag-burst { background: linear-gradient(180deg, #E8896A, #C8573A); }
.ag-code { background: linear-gradient(180deg, #4F8DF7, #1F5FD6); }
.cta-agent:hover .ag-stack i { margin-left: -2px; }
.cta-agent:hover .ag-stack i:nth-child(odd) { transform: translateY(-2px); }
.ag-txt { display: grid; gap: 1px; min-width: 0; }
.ag-txt b { font-size: .8125rem; font-weight: 600; color: #fff; }
.cta-agent .ag-txt code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem !important; color: rgba(239,237,253,.55) !important; }
.cta-agent .cta-copy { flex: none; min-height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: #1E0B45; font-family: var(--font); font-size: .875rem; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(167,139,250,.9); transition: background .15s; }
.cta-agent .cta-copy:hover { background: #EDE9FE; }
@media (max-width: 560px) { .cta-agent { gap: 18px; } .ag-txt { display: none; } }
@media (prefers-reduced-motion: reduce) { .ag-stack i { transition: none; } }

/* Real agent icons (Simple Icons, CC0) in their brand colours */
.ag-copilot { background: #fff; }
.ag-cursor, .ag-openai { background: linear-gradient(180deg, #26232D, #0B0A0E); }
.ag-claude { background: #D97757; }
.ag-stack svg { width: 16px; height: 16px; }
.ag-claude svg { width: 18px; height: 18px; }
/* Nav card: equal space above and below the buttons */
.nav.scrolled::before { inset: 6px max(8px, calc((100% - 1104px) / 2)); }
@media (max-width: 640px) { .nav.scrolled::before { inset: 5px 6px; } }

/* Slide-over: the light page sticks (site.js sets its top) and the dark band rides up over it */
.home { position: sticky; z-index: 0; transform-origin: 50% 100%; will-change: transform; }
.cta { z-index: 1; box-shadow: 0 -40px 80px -40px rgba(5,2,15,.45); }
.hf { position: relative; z-index: 1; }
/* The notch is now a mask on the band (site.js), so the painted tab shapes go */
.cta::before, .cta::after { display: none; }

/* Hero subtitle: two even lines split at the natural pause; the number stays with its word */
.lede { max-width: 40rem; }
.lede .nw { white-space: nowrap; }
@media (max-width: 720px) { .lede-br { display: none; } }

/* Example apps open in a window over the site, not a takeover: centered, framed, the page still visible around it */
.exm { width: min(1240px, calc(100vw - 96px)); height: min(860px, calc(100dvh - 96px)); margin: auto; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 120px -30px rgba(5,2,15,.75), 0 0 0 1px rgba(5,2,15,.2), inset 0 1px 0 rgba(255,255,255,.06);
  background: linear-gradient(180deg, #160F2A, #0B0816 120px); }
.exm::backdrop { background: rgba(11,8,22,.42); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); }
.exm-win { box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
@media (prefers-reduced-motion: no-preference) {
  .exm[open] { animation: exm-in .32s cubic-bezier(.33,1,.68,1); }
  .exm[open]::backdrop { animation: exm-fade .32s ease-out; }
  @keyframes exm-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
  @keyframes exm-fade { from { opacity: 0; } }
}
@media (max-width: 720px) { .exm { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 14px; } }

/* Hero as a planet: the nav sits on the dark header, and a second horizon arcs across its top at the globe's own
   radius (site.js draws it): a thin lit rim of atmosphere with a soft glow. --nav-h is the nav's height; the header
   tucks up under it and pads its content back down. */
:root { --nav-h: 64px; }
@media (max-width: 640px) { :root { --nav-h: 58px; } }
/* The header runs full-bleed: dark edge to edge from the very top, no light frame around it. */
.hdr { margin: calc(-1 * var(--nav-h)) 0 0; padding-top: var(--nav-h); border: 0; border-radius: 0; }
.hdr .aurora, .hdr .sky, .hdr .horizon { border-radius: 0; }
.hdr-sky { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.hdr-glow { fill: none; stroke: rgba(139,92,246,.55); stroke-width: 10; filter: blur(9px); }
.hdr-rim { fill: none; stroke: rgba(216,205,255,.7); stroke-width: 1.25; }

/* At the top the nav is see-through and light on the night, flat above the horizon; scrolled, it is the light
   floating bar as before. */
.nav .brand, .nav .brand-by, .nav .theme, .nav .nav-gh, .nav .nav-gh svg { transition: color .3s, background-color .15s; }
/* The bar itself never paints: at the top it's see-through, and scrolled only the floating card (::before) shows. */
.nav.solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav:not(.scrolled)::before { background-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.solid:not(.scrolled) .brand { color: #fff; }
.nav:not(.scrolled) .brand-by { color: rgba(239,237,253,.62); border-left-color: rgba(255,255,255,.18); }
.nav:not(.scrolled) .brand-by:hover { color: #fff; }
.nav.solid:not(.scrolled) .theme, .nav:not(.scrolled) .nav-gh, .nav:not(.scrolled) .nav-gh svg { color: rgba(239,237,253,.75); }
.nav.solid:not(.scrolled) .theme:hover, .nav:not(.scrolled) .nav-gh:hover, .nav:not(.scrolled) .nav-gh:hover svg { color: #fff; background-color: rgba(255,255,255,.08); }
.nav:not(.scrolled) .nav-gh:hover svg { background-color: transparent; }

/* The bento keeps three columns until there's truly no room; it stacks below 760px, where the tiles' mock UIs start to truncate. */
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
/* Mid widths: the tiles are narrow, so their mock UIs tighten up instead of truncating. */
@media (min-width: 761px) and (max-width: 1000px) {
  .b-search, .b-fields, .b-fix { width: 94%; padding: 6px; font-size: .6875rem; }
  .b-fields span { grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 6px; padding: 0 6px; }
  .b-row small { display: none; }
}

/* Wrapping: centered intros balance their lines so the last one is never a stray few words; body copy avoids orphans. */
p, li { text-wrap: pretty; }
.h-head > p:last-child, .cta-in p, .lede { text-wrap: balance; }

/* ── The video: a thumbnail callout under the hero search that opens a lightbox (Harvous's pattern and Plyr player) ── */
.watch { position: relative; z-index: 11; display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 5px 18px 5px 5px; border-radius: 14px;
  font: inherit; font-size: .875rem; font-weight: 500; line-height: 1; color: rgba(239,237,253,.86); cursor: pointer;
  background: rgba(13,9,28,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.watch:hover { color: #fff; background: rgba(32,22,64,.72); border-color: rgba(196,181,253,.4); }
.watch:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.watch-thumb { position: relative; flex: none; width: 80px; height: 45px; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(196,181,253,.25); }
.watch-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s cubic-bezier(.2,.8,.2,1); }
.watch:hover .watch-thumb img { opacity: 1; transform: scale(1.06); }
.watch-ic { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #A78BFA, #6D28D9); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 0 14px -2px rgba(139,92,246,.9); }
.watch-ic svg { margin-left: 1px; }
.watch-t { font-family: var(--mono); font-size: .75rem; color: rgba(239,237,253,.45); }

.video-lb { --chrome: #0B0716; position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: clamp(1rem, 4vw, 2rem); }
.video-lb[hidden] { display: none; }
.video-lb-backdrop { position: absolute; inset: 0; background: rgba(5,2,15,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  animation: videoIn .3s ease both; }
.video-lb-panel { position: relative; z-index: 1; width: min(1120px, 100%); max-height: min(85dvh, 720px); border-radius: clamp(12px, 2vw, 18px); overflow: hidden;
  background: var(--chrome); border: 1px solid rgba(196,181,253,.18);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 140px -40px rgba(124,58,237,.6); animation: videoPanel .45s cubic-bezier(.2,.8,.2,1) both; }
.video-lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.22);
  background: color-mix(in oklab, var(--chrome) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .15s ease; }
.video-lb-close:hover { background: color-mix(in oklab, var(--chrome) 80%, transparent); }
.video-lb-close:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 2px; }
.video-lb-close svg { width: 1rem; height: 1rem; }
.video-lb-video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #05020F; }
/* Plyr in Lookup's violet. */
.video-lb .plyr { --plyr-color-main: #8B5CF6; --plyr-video-background: #05020F; --plyr-font-family: var(--font);
  --plyr-video-control-background-hover: #7C3AED; --plyr-range-thumb-background: #fff; width: 100%; max-height: min(85dvh, 720px); }
.video-lb .plyr__video-wrapper, .video-lb .plyr video { max-height: min(85dvh, 720px); }
.video-lb .plyr__control--overlaid { background: rgba(124,58,237,.85); box-shadow: 0 0 0 8px rgba(124,58,237,.18), 0 20px 50px -14px rgba(124,58,237,.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-lb .plyr__control--overlaid:hover { background: #7C3AED; }
@keyframes videoIn { from { opacity: 0; } }
@keyframes videoPanel { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 640px) { .watch { margin-top: 18px; } .watch-thumb { width: 64px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .watch, .watch-thumb img, .video-lb-close { transition: none; } .video-lb-backdrop, .video-lb-panel { animation: none; } }

/* Scrolled, the floating nav tucks in to just fit its contents (brand left, actions right, a calm gap between),
   and its contents move in with the card. */
.nav { --nav-card: 640px; transition: padding .45s cubic-bezier(.33,1,.68,1); }
.nav.scrolled { padding-left: max(24px, calc((100% - var(--nav-card)) / 2 + 16px)); padding-right: max(24px, calc((100% - var(--nav-card)) / 2 + 12px)); }
.nav.scrolled::before { inset: 6px max(8px, calc((100% - var(--nav-card)) / 2)); }
@media (max-width: 680px) { .nav.scrolled { padding-left: 14px; padding-right: 14px; } .nav.scrolled::before { inset: 5px 6px; } }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
