/* missionarylane.org — the platform's own identity (church galleries keep each church's brand).
   Idea: the missions board in a church foyer — prayer cards pinned up, thread from the church to each family. */
:root {
  --ink: #17325C;        /* map-ink blue: headings, dark bands */
  --paper: #EEF2F6;      /* cool sky paper: page */
  --card: #FFFFFF;
  --pin: #D93D32;        /* pin red: primary action */
  --pin-deep: #B8302A;
  --gold: #E8A920;       /* thread gold */
  --field: #3B8A5E;      /* field green */
  --text: #263142;
  --muted: #5B6779;
  --line: #D5DDE6;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; font-weight: 700; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.05; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 36em; text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pin-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font: 500 .88em/1 var(--display); background: #fff; border: 1px solid var(--line); padding: .15em .4em; border-radius: 6px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55em 1.2em; border-radius: 999px;
  font: 600 .95rem/1.1 var(--display); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-lg { min-height: 56px; padding: .7em 1.6em; font-size: 1.05rem; }
.btn-pin { background: var(--pin); color: #fff; }
.btn-pin:hover { background: var(--pin-deep); color: #fff; }
.btn-quiet { color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.top nav a:not(.btn) { font: 500 .95rem/1 var(--display); text-decoration: none; padding: 14px 0; }
@media (max-width: 760px) { .top nav a:not(.btn):not([href^="https://app"]) { display: none; } }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gut) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 920px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.lede { font-size: 1.15rem; line-height: 1.65; color: var(--text); max-width: 32em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 .9rem; }
.fine { font-size: .9rem; color: var(--muted); }

/* The board */
.board { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; justify-self: center; container-type: inline-size; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.t { fill: none; stroke-width: .55; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
.t1 { stroke: var(--pin); animation-delay: .2s; } .t2 { stroke: var(--gold); animation-delay: .45s; }
.t3 { stroke: var(--field); animation-delay: .7s; } .t4 { stroke: var(--pin); animation-delay: .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.card { position: absolute; left: var(--x); top: var(--y); width: 27cqw; padding: 2.4cqw 2.4cqw 2.8cqw; background: var(--card);
  border-radius: 1.2cqw; box-shadow: 0 1.6cqw 4cqw rgba(23,50,92,.18), 0 .2cqw .6cqw rgba(23,50,92,.12);
  transform: translate(-50%, -1.6cqw) rotate(var(--r)); transform-origin: 50% 0; display: flex; flex-direction: column; gap: .4cqw;
  opacity: 0; animation: pinup .5s ease-out forwards; }
.c1 { animation-delay: .9s; } .c2 { animation-delay: 1.15s; } .c3 { animation-delay: 1.4s; } .c4 { animation-delay: 1.65s; }
@keyframes pinup { from { opacity: 0; transform: translate(-50%, -4cqw) rotate(var(--r)); } to { opacity: 1; transform: translate(-50%, -1.6cqw) rotate(var(--r)); } }
.card b { font: 700 3cqw/1.1 var(--display); color: var(--ink); }
.card span { font: 400 2.3cqw/1.3 var(--display); color: var(--muted); }
.card em { font: italic 400 2.8cqw/1.2 var(--body); color: var(--ink); margin-top: .6cqw; }
.ph { height: 15cqw; border-radius: .8cqw; margin-bottom: 1.2cqw; }
.ph-alps { background: linear-gradient(160deg, transparent 52%, #7E9BB9 52.5%), linear-gradient(200deg, transparent 58%, #5B7A9C 58.5%), linear-gradient(#BFD4EA, #E8EEF5); }
.ph-savanna { background: radial-gradient(circle at 70% 35%, #F6D27A 0 9%, transparent 10%), linear-gradient(transparent 64%, #C98A3E 64%), linear-gradient(#F3B66B, #F7DDB0); }
.ph-andes { background: linear-gradient(150deg, transparent 45%, #6E8F5F 45.5%), linear-gradient(215deg, transparent 50%, #4E7347 50.5%), linear-gradient(#A9CBE8, #DCEAF5); }
.ph-delta { background: linear-gradient(transparent 55%, #7FB09A 55%, #7FB09A 70%, #5E9DB8 70%), linear-gradient(#F2C98F, #F6E3C4); }
.pin { position: absolute; left: 50%; top: -1.2cqw; width: 3.4cqw; height: 3.4cqw; margin-left: -1.7cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.65) 0 18%, transparent 20%), var(--c); box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.25); }
.home { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.home .pin { position: static; margin: 0; width: 5cqw; height: 5cqw; }
.home span { font: 700 2.6cqw/1 var(--display); color: #fff; background: var(--ink); padding: 1cqw 1.8cqw; border-radius: 999px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .t { animation: none; stroke-dashoffset: 0; } .card { animation: none; opacity: 1; } }

/* Sections */
section { scroll-margin-top: 24px; }
.visit, .keepers, .steps, .pricing, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut); }
.visit { border-top: 1px solid var(--line); }
.visit-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
@media (max-width: 820px) { .visit-head { grid-template-columns: minmax(0, 1fr); } }
.visit-head h2 { margin: 0; }
.visit-head p { margin: 0; color: var(--muted); }

/* Example kiosk */
.kiosk-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .kiosk-wrap { grid-template-columns: minmax(0, 1fr); } }
.kiosk { --k: #8A4B14; --k2: #F4E3C9; background: #FFFCF6; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(23,50,92,.16); border: 1px solid #EADBC3; counter-reset: k; }
.k-top { padding: 22px 26px 16px; display: grid; gap: 2px; position: relative; }
.k-greet { font: italic 400 1.6rem/1.1 var(--body); color: var(--k); }
.k-name { font: 700 1.7rem/1.1 var(--display); color: #2D1B0B; letter-spacing: -.02em; }
.k-place { font: 500 .95rem/1.4 var(--display); color: #7A5A3A; }
.k-photo { position: relative; height: 210px; background: linear-gradient(#F5B36B, #F9DDB0 70%); overflow: hidden; }
.k-photo .sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #FCE7A6; left: 62%; top: 30px; }
.k-photo .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.k-photo .h1 { bottom: -40px; height: 140px; background: #C48A44; transform: translateX(-18%); }
.k-photo .h2 { bottom: -70px; height: 150px; background: #9C6A2E; transform: translateX(22%); }
.k-photo .tree { position: absolute; left: 22%; bottom: 52px; width: 90px; height: 26px; background: #4E5B2A; border-radius: 50% 50% 40% 40%; }
.k-photo .tree::after { content: ""; position: absolute; left: 42px; top: 22px; width: 6px; height: 40px; background: #4A3518; }
.k-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.k-player { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--k2); border-radius: 14px; padding: 10px 14px; position: relative; }
.k-player .play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--k); color: #fff; font-size: 1rem; }
.k-player b { display: block; font: 650 1rem/1.2 var(--display); color: #2D1B0B; }
.k-player span { font: 400 .85rem/1.3 var(--display); color: #7A5A3A; }
.wave { display: flex; gap: 3px; align-items: center; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: var(--k); opacity: .7; }
.wave i:nth-child(odd) { height: 60%; } .wave i:nth-child(3n) { height: 95%; } .wave i:nth-child(4n) { height: 35%; } .wave i:nth-child(even):not(:nth-child(4n)) { height: 75%; }
.k-pray { position: relative; }
.k-pray b { font: 650 1rem/1.2 var(--display); color: #2D1B0B; }
.k-pray ul { margin: 6px 0 0; padding-left: 1.1em; color: #4B3825; font-size: .95rem; line-height: 1.55; }
.k-now { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.k-now span { font: 500 .82rem/1 var(--display); background: #fff; border: 1px solid #EADBC3; color: #6A4B2C; border-radius: 999px; padding: 7px 11px; }
/* Numbered pins tying the kiosk to the notes */
.k-photo::before, .k-player::before, .k-pray::before, .k-now::before { counter-increment: k; content: counter(k); position: absolute; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .85rem/1 var(--display);
  box-shadow: 0 0 0 3px #fff; }
.k-photo::before { right: 14px; top: 14px; } .k-player::before { right: -12px; top: -12px; } .k-pray::before { right: 0; top: 0; } .k-now::before { right: 0; top: -2px; position: absolute; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: note; }
.notes li { position: relative; padding-left: 50px; min-height: 34px; counter-increment: note; }
.notes li::before { content: counter(note); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 700 .95rem/1 var(--display); }
.notes b { font-family: var(--display); color: var(--ink); }

/* Keepers */
.keepers { border-top: 1px solid var(--line); }
.keep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; margin-top: 36px; }
@media (max-width: 720px) { .keep-grid { grid-template-columns: minmax(0, 1fr); } }
.keep-grid > div { border-left: 4px solid var(--gold); padding-left: 20px; }
.keep-grid > div:nth-child(2) { border-color: var(--pin); } .keep-grid > div:nth-child(3) { border-color: var(--field); } .keep-grid > div:nth-child(4) { border-color: var(--ink); }
.keep-grid p { margin: 0; color: var(--text); }

/* Steps: one thread with four pins */
.steps { border-top: 1px solid var(--line); }
.thread { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: s; }
.thread::before { content: ""; position: absolute; left: 17px; right: 8%; top: 17px; height: 3px; background: repeating-linear-gradient(90deg, var(--pin) 0 14px, transparent 14px 22px); }
.thread li { counter-increment: s; position: relative; display: grid; gap: 6px; padding-top: 56px; }
.thread li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--pin); color: #fff;
  display: grid; place-items: center; font: 700 1rem/1 var(--display); box-shadow: 0 0 0 5px var(--paper); }
.thread b { font: 650 1.15rem/1.25 var(--display); color: var(--ink); }
.thread span { color: var(--text); }
@media (max-width: 860px) {
  .thread { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .thread::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--pin) 0 14px, transparent 14px 22px); }
  .thread li { padding: 4px 0 0 58px; }
}

/* Pricing */
.pricing { border-top: 1px solid var(--line); }
.sub { color: var(--muted); }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 28px; }
.plan { background: #fff; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.plan.trial { border: 2px solid var(--ink); }
.plan h3 { margin: 0; }
.plan .price { font: 700 1.9rem/1.1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.plan ul { margin: 4px 0 8px; padding-left: 1.1em; flex: 1; }
.plan .btn { align-self: flex-start; }

/* Self-host band */
.self { background: var(--ink); color: #DCE5F0; }
.self-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .self-inner { grid-template-columns: minmax(0, 1fr); } }
.self h2 { color: #fff; }
.self a:not(.btn) { color: #fff; }
.self-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.self-list li { padding-left: 30px; position: relative; }
.self-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 52em; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 600 1.1rem/1.3 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--display); color: var(--pin); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 12px; }

/* Close + footer */
.close { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut) clamp(64px, 9vw, 112px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.close h2 { margin: 0; max-width: 14em; }
.foot { border-top: 1px solid var(--line); max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font: 400 .9rem/1.4 var(--display); color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Each church's look: real screenshots of the gallery in five starting looks (web/site/looks/, made by tests/looks/shoot.mjs). */
.looks { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .looks { grid-template-columns: minmax(0, 1fr); } }
.look-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.look-list button { display: grid; gap: 2px; min-height: 56px; padding: 10px 16px 10px 18px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; text-align: left; position: relative; font: inherit; }
.look-list button b { font: 650 1.02rem/1.25 var(--display); color: var(--ink); letter-spacing: -.01em; }
.look-list button span { font-size: .86rem; line-height: 1.4; color: var(--muted); }
.look-list button:hover { border-color: var(--ink); }
.look-list button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 6px 18px rgba(23,50,92,.12); }
.look-list button[aria-pressed="true"]::before { content: ""; position: absolute; left: -2px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pin); }
.looks-note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.looks-frame { position: sticky; top: 24px; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(23,50,92,.16); }
@media (max-width: 900px) { .looks-frame { position: static; } }
.looks-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #E4E9EF; border-bottom: 1px solid var(--line); }
.looks-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #C3CCD7; }
.looks-chrome span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; font: 400 .74rem/1.4 var(--display); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-shot { margin: 0; }
.look-shot[hidden] { display: none; }
.look-shot img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 1155; background: #E4E9EF; }
.look-shot figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--line); font: 400 .88rem/1.45 var(--display); color: var(--muted); }
.look-shot figcaption b { color: var(--ink); font-weight: 650; }
