/* Kingdom Kids: the public landing page.
   Soft blue and warm cream, sunshine yellow, leafy green, a little coral; Fredoka for headings, Nunito for reading.
   Buttons, the status pill and the focus ring are the shared parts in ui.css (loaded after this file); this file only places them.
   Every class here starts with lp-. Motion is decoration only: text never moves, and every loop stops under prefers-reduced-motion and the
   calm setting (html[data-motion="reduced"], set by landing-boot.js from the device and from kk-prefs, the classroom's own setting). */

@font-face { font-family: 'Fredoka'; src: url('/public/fonts/fredoka-600-normal.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-400-normal.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-400-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/public/fonts/nunito-700-normal.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1a1a1a; --yellow: #f7da5c; --sky: #84cbdf; --blue: #17b6e0; --cream: #fffbea; --white: #fff;
  --yellow-t: #fef4c7; --sky-t: #e4f4f9; --blue-t: #d3eef8; --muted: #4b5860; --line: #c9e4ee; --bg: #fffaf0;
  --leaf: #9fcb8e; --deep: #5e9b6a; --coral: #f2a38c; --green-t: #e8f3df; --coral-t: #fde9e2;
  --lp-nav: 4.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-motion='reduced'] { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.lp { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--cream); }
:where(.lp) :where(h1, h2, h3, h4, h5) { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; }
.lp-sec h2, .lp-close h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.65rem); }
:where(.lp) h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
:where(.lp) h4 { font-size: 1.25rem; } :where(.lp) h5 { font-size: 1.1rem; }
:where(.lp) p { margin: 0 0 .85rem; }
.lp a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.lp a:hover { background: none; text-decoration-color: var(--ink); }
.lp .btn, .lp .btn:hover { text-decoration: none; }
.lp img, .lp svg { max-width: 100%; }
:where(.lp) :where(ul, ol) { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: .6rem 1rem; z-index: 100; border: 2px solid var(--ink); border-radius: 0 0 12px 0; font-weight: 700; }
.skip:focus { left: 0; }
.lp-wrap { width: 100%; max-width: calc(72rem + var(--edge) + var(--edge-r)); margin-inline: auto; padding-left: var(--edge); padding-right: var(--edge-r); }
.lp-center { text-align: center; }
[id] { scroll-margin-top: calc(var(--lp-nav) + .5rem); }
.lp-eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; }

/* ---------- Navigation ---------- */
.lp-nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 251, 234, .97); border-bottom: 3px solid var(--ink); }
html:not(.lp-js) .lp-nav { position: static; }
.lp-nav-in { display: flex; align-items: center; gap: var(--s-2) var(--s-3); max-width: calc(78rem + var(--edge) + var(--edge-r)); margin-inline: auto; padding: .4rem var(--edge-r) .4rem var(--edge); min-height: var(--lp-nav); }
.lp-brand { display: flex; align-items: center; flex: none; min-height: var(--tap); min-width: var(--tap); line-height: 0; border-radius: 10px; }
.lp-brand img { display: block; width: 100px; height: auto; }
.lp-menu { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); flex: 1 1 auto; min-width: 0; }
.lp-menu ul { display: flex; flex-wrap: wrap; gap: 0 .125rem; list-style: none; padding: 0; }
.lp-menu a { display: inline-flex; align-items: center; min-height: var(--tap); padding: .45rem .8rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.lp-menu a:hover { background: var(--yellow); }
.lp-menu a[aria-current='true'] { background: var(--ink); color: var(--yellow); }
.lp-menu a.lp-signin { border: 2px solid var(--ink); background: var(--white); padding-inline: 1rem; }
.lp-menu a.lp-signin:hover { background: var(--yellow-t); }
.lp-nav-cta, .lp-nav-pick { flex: none; white-space: nowrap; }
.lp-menu a.lp-pick { border: 2px solid var(--ink); background: var(--white); padding-inline: 1rem; justify-content: center; }
.lp-menu a.lp-pick:hover { background: var(--yellow-t); }
.lp-menubtn { flex: none; margin-left: auto; }
/* Narrower than 1100px: the links fold into a Menu button, which opens a panel under the bar (landing.js adds the button) */
@media (max-width: 1099px) {
  .lp-nav-in { flex-wrap: wrap; }
  .lp-menu { flex: 1 0 100%; order: 5; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-2); padding: var(--s-2) 0 var(--s-3); border-top: 2px solid var(--ink); }
  .lp-menu ul { flex-direction: column; flex-wrap: nowrap; gap: var(--s-1); }
  .lp-menu a { width: 100%; border-radius: 12px; }
  .lp-menu a.lp-signin { justify-content: center; }
  .lp-js .lp-menu { display: none; }
  .lp-js .lp-nav.is-open .lp-menu { display: flex; }
  .lp-js .lp-nav.is-open { max-height: 100dvh; overflow-y: auto; }
  .lp-nav-cta { margin-left: auto; }
  .lp-menubtn + .lp-nav-cta { margin-left: 0; }
  .lp-nav .lp-nav-pick { display: none; }
}
@media (min-width: 1100px) { .lp-menu a.lp-pick { display: none; } .lp-nav-pick { margin-left: auto; } .lp-nav-pick + .lp-nav-cta { margin-left: 0; } }
@media (min-width: 1100px) { .lp-menubtn { display: none !important; } }
@media (max-width: 389px) { .lp-brand img { width: 78px; } .lp-nav-in { gap: var(--s-2); } .lp-nav .btn.small { font-size: .85rem; padding-inline: .6rem; } }
/* The narrowest phones: logo, Menu and Book a meeting still share one row */
@media (max-width: 359px) { .lp-brand img { width: 64px; } .lp-nav-in { gap: var(--s-1) var(--s-2); } .lp-nav .btn.small { font-size: .8rem; padding-inline: .5rem; } }

/* ---------- Hero ---------- */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; border-bottom: 4px solid var(--ink); background: linear-gradient(180deg, #bfe6f3 0%, #dff3f8 46%, #fff2c4 100%); }
.lp-hero::after { content: ''; position: absolute; z-index: -2; left: -10%; right: -10%; bottom: -2px; height: 5.5rem; background: #acd29b; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.lp-hero-copy { order: 1; }
.lp-hero-art { order: 2; position: relative; z-index: -1; width: min(100%, 38rem); margin: 0 auto; line-height: 0; }
.lp-line { display: block; }
.lp-art-wide { display: none; }
.lp-art-tall svg, .lp-art-wide svg { display: block; width: 100%; height: auto; }
.lp-hero-copy { padding-top: clamp(1.25rem, 4vw, 3rem); padding-bottom: .5rem; }
.lp-hero-copy h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.9rem); line-height: 1.06; margin-bottom: .6rem; text-wrap: balance; }
.lp-lead { font-size: clamp(1rem, .94rem + .4vw, 1.25rem); line-height: 1.5; margin: 0 0 1rem; max-width: 34rem; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 .5rem; }
.lp-cta-row .btn { flex: 1 1 100%; }
.lp-hero-signin { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-weight: 700; }
.lp-signin-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; }
.lp .lp-signin-link:hover { background: var(--yellow-t); }
@media (max-height: 700px) { .lp-eyebrow { display: none; } }
@media (min-width: 600px) { .lp-cta-row .btn { flex: 0 1 auto; } }
/* Tablet: copy on the left, the tall picture on the right */
@media (min-width: 760px) and (max-width: 1099px) {
  .lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; }
  .lp-hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding-block: 2rem 3rem; padding-right: 0; }
  .lp-hero-art { grid-column: 2; grid-row: 1; width: 100%; margin: 0; align-self: end; }
}
/* Wide screens: the wide picture fills the hero and the words sit on its calm left side */
@media (min-width: 1100px) {
  .lp-hero { display: block; min-height: clamp(34rem, 50vw, 60rem); }
  .lp-hero::after { display: none; }
  .lp-hero-art { position: absolute; inset: 0; z-index: -1; width: auto; margin: 0; }
  .lp-art-wide { display: block; position: absolute; inset: 0; }
  .lp-art-wide svg { height: 100%; }
  .lp-art-tall { display: none; }
  .lp-hero-copy { padding-top: clamp(3rem, 7vw, 6.5rem); padding-bottom: 4rem; }
  .lp-hero-copy > * { max-width: min(31rem, 40%); }
  .lp-hero-copy h1 { max-width: min(40rem, 52%); }
}

/* ---------- Sections ---------- */
.lp-sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.lp-sec-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.lp-sec-lead { font-size: 1.15rem; color: var(--ink); max-width: 42rem; }
.lp-prog { background: var(--cream); }
.lp-offers { background: var(--sky-t); border-block: 4px solid var(--ink); }
.lp-how { background: var(--yellow-t); }
.lp-fam { background: var(--cream); }
.lp-faq { background: var(--blue-t); border-top: 4px solid var(--ink); }

/* ---------- The two programmes ---------- */
.lp-prog-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: stretch; }
.lp-prog-card { display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; }
.lp-lamp { box-shadow: 7px 7px 0 var(--yellow); } .lp-rooted { box-shadow: 7px 7px 0 var(--leaf); }
.lp-prog-art { position: relative; aspect-ratio: 600 / 420; border-bottom: 3px solid var(--ink); overflow: hidden; background: var(--sky-t); }
.lp-prog-art svg { display: block; width: 100%; height: 100%; }
.lp-prog-body { padding: clamp(1.1rem, 3vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.lp-prog-body .lp-honest, .lp-prog-body .lp-lamp-btn { margin-top: auto; align-self: flex-start; }
.lp-prog-body .lp-honest { align-self: stretch; }
.lp-prog-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .6rem; font-weight: 700; font-size: .95rem; }
.lp-tag { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; color: var(--ink); margin-bottom: .6rem; }
.lp-ticks { list-style: none; padding: 0; display: grid; gap: .45rem; margin: .5rem 0 1rem; }
.lp-ticks li { position: relative; padding-left: 1.9rem; }
.lp-ticks li::before { content: ''; position: absolute; left: .15rem; top: .38rem; width: 1rem; height: .55rem; border-left: 3.5px solid var(--deep); border-bottom: 3.5px solid var(--deep); transform: rotate(-45deg); }
.lp-terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 1rem; }
.lp-terms li { background: var(--yellow-t); border: 2px solid var(--ink); border-radius: 999px; padding: .15rem .8rem; font-size: .92rem; font-weight: 700; }
.lp-terms li span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-right: .25rem; }
.lp-verse { margin: 0 0 1rem; padding: .8rem 1.1rem; background: var(--yellow-t); border: 2px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: 12px; }
.lp-verse p { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; line-height: 1.3; margin: 0 0 .2rem; }
.lp-verse footer { font-size: .9rem; font-weight: 700; color: var(--muted); }
.lp-years { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 0 0 1rem; }
.lp-year { display: flex; flex-direction: column; gap: .1rem; background: var(--green-t); border: 2px solid var(--ink); border-top: 8px solid var(--deep); border-radius: 12px; padding: .6rem .8rem .75rem; line-height: 1.25; }
.lp-year.y2 { border-top-width: 12px; } .lp-year.y3 { border-top-width: 16px; }
.lp-year-n { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lp-year-sub { font-size: .85rem; color: var(--muted); }
.lp-honest { background: var(--green-t); border: 2px dashed var(--ink); border-radius: 12px; padding: .7rem 1rem; margin: 0; font-weight: 700; }

/* ---------- What the platform offers ---------- */
.lp-legend { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 0 0 clamp(1.5rem, 4vw, 2.25rem); padding: 1rem 1.25rem; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; }
.lp-legend div { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.lp-legend dt, .lp-legend dd { margin: 0; }
.lp-features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); }
.lp-feature { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; }
.lp-feature.is-planned { border-style: dashed; background: #fcfdfd; }
.lp-feature-art { aspect-ratio: 320 / 200; border-bottom: 2px solid var(--ink); overflow: hidden; }
.lp-feature.is-planned .lp-feature-art { filter: saturate(.78); }
.lp-feature-art svg { display: block; width: 100%; height: 100%; }
.lp-feature-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.lp-feature-body h3 { font-size: 1.3rem; margin: 0; }
.lp-feature-body p { margin: 0 0 .35rem; font-size: 1rem; }
.lp-parts { list-style: none; padding: 0; display: grid; gap: .5rem; margin-top: auto; }
.lp-parts li { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem .5rem; font-size: .95rem; line-height: 1.35; }
.lp-parts .status { flex: none; }
.lp-parts li span:last-child { flex: 1 1 10rem; }

.lp-try { margin-top: clamp(2rem, 5vw, 3.25rem); }
.lp-try-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); margin-bottom: 1.5rem; align-items: start; }
.lp-demo { background: var(--white); border: 3px solid var(--ink); border-radius: 22px; padding: clamp(1rem, 3vw, 1.4rem); box-shadow: 6px 6px 0 var(--sky); }
.lp-demo[hidden] { display: none; }
.lp-demo > h4 { margin: 0 0 .25rem; }
.lp-caption { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
/* memory verse */
.lp-vb-board { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .75rem 1rem; align-items: start; margin-top: .75rem; }
.lp-vb-lantern svg { display: block; width: 100%; height: auto; }
.lp-vb-slots { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.lp-slot { display: inline-flex; align-items: center; min-height: var(--tap); min-width: 3.5rem; padding: .25rem .85rem; border: 2px dashed var(--ink); border-radius: 12px; background: #fffdf3; font-family: 'Fredoka', sans-serif; font-size: 1.15rem; line-height: 1.2; }
.lp-slot.is-filled { border-style: solid; background: var(--yellow); }
.lp-vb-pool { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.lp-piece { font-size: 1rem; }
.lp-piece[disabled] { visibility: hidden; }
.lp-piece.is-wrong { animation: lp-shake .35s ease both; }
.lp-vb-msg { min-height: 1.6em; margin: 0 0 .5rem; font-weight: 700; }
/* classroom screen mock */
.lp-pm-screen { margin-top: .75rem; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--cream); }
.lp-pm-screen:focus-visible { outline-offset: 3px; }
.lp-pm-phases { list-style: none; margin: 0; padding: .5rem .6rem; display: flex; flex-wrap: wrap; gap: .3rem; background: var(--sky); border-bottom: 3px solid var(--ink); }
.lp-pm-phases li { font-size: .74rem; font-weight: 700; padding: .12rem .55rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); line-height: 1.3; }
.lp-pm-phases li.is-on { background: var(--ink); color: var(--yellow); }
.lp-pm-stage { padding: 1rem 1.1rem; min-height: 14rem; }
.lp-pm-stage[hidden] { display: none; }
.lp-pm-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .15rem; }
.lp-pm-stage h5 { font-size: 1.6rem; margin: 0 0 .5rem; }
.lp-pm-env { width: min(11rem, 60%); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; margin-bottom: .6rem; }
.lp-pm-env svg { display: block; width: 100%; height: auto; }
.lp-pm-fake { display: inline-block; padding: .3rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 700; }
.lp-pm-verse { font-family: 'Fredoka', sans-serif; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.3; }
.lp-pm-bar { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; padding: .6rem .75rem; background: var(--white); border-top: 3px solid var(--ink); }
.lp-pm-count { text-align: center; font-size: .85rem; font-weight: 700; }
/* games shelf */
.lp-shelf { margin-bottom: 1rem; }
.lp-shelf-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .6rem .35rem 1rem; margin-top: .5rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.lp-game { flex: 0 0 min(15.5rem, 78%); scroll-snap-align: start; background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: 1rem; }
.lp-game-art { width: 4.75rem; margin-bottom: .5rem; }
.lp-game-art svg { display: block; width: 100%; height: auto; }
.lp-game h5 { margin: 0 0 .25rem; } .lp-game p { margin: 0; font-size: .95rem; }
.lp-shelf-ctl { display: flex; gap: .5rem; }
.lp-shelf-ctl[hidden] { display: none; }
/* screenshots */
.lp-seen { margin-top: clamp(2rem, 5vw, 3.25rem); }
.lp-seen > p { max-width: 42rem; }
.lp-shots { list-style: none; padding: 0; display: grid; gap: 1.5rem 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
/* Two across, then three across; a picture left on its own in the last row sits in the middle */
@media (min-width: 640px) { .lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-shots .lp-shot:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - .625rem); justify-self: center; } }
@media (min-width: 1024px) { .lp-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-shots .lp-shot:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; } .lp-shots .lp-shot:last-child:nth-child(3n + 1) { grid-column: 2; } }
.lp-shot-link { display: block; border-radius: 16px; line-height: 0; }
.lp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 600; border: 3px solid var(--ink); border-radius: 16px; background: var(--blue-t); }
.lp-shot-cap { margin: .6rem 0 0; font-size: .95rem; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .3rem .4rem; }
.lp-lightbox { width: min(96vw, 1200px); max-height: 94dvh; padding: .75rem; border: 3px solid var(--ink); border-radius: 18px; background: var(--white); }
.lp-lightbox::backdrop { background: rgba(26, 26, 26, .72); }
.lp-lightbox img { display: block; width: 100%; height: auto; max-height: calc(94dvh - 8rem); object-fit: contain; border-radius: 10px; }
.lp-lightbox p { margin: .5rem 0 .6rem; font-size: .95rem; }

/* ---------- How it works ---------- */
.lp-steps { list-style: none; padding: 0; display: grid; gap: 1.6rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); position: relative; counter-reset: s; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lp-steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 4.1rem; border-top: 4px dashed rgba(26, 26, 26, .35); z-index: 0; } }
.lp-step-card { position: relative; z-index: 1; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 1.4rem 1.1rem 1.25rem; text-align: center; transition: box-shadow .2s ease, background-color .2s ease; }
.lp-step-card.is-active { box-shadow: 0 0 0 4px var(--yellow); background: #fffdf3; }
.lp-step-n { position: absolute; top: -.85rem; left: 1rem; display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .4rem; background: var(--ink); color: var(--yellow); border-radius: 999px; font-family: 'Fredoka', sans-serif; }
.lp-step-art { width: 6.5rem; margin: 0 auto .5rem; }
.lp-step-art svg { display: block; width: 100%; height: auto; }
.lp-step-card h3 { margin-bottom: .3rem; } .lp-step-card p { margin: 0; }

/* ---------- Families and churches ---------- */
.lp-two { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.lp-panel { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 0 0 1.25rem; overflow: hidden; box-shadow: 6px 6px 0 var(--sky); }
.lp-panel > h3, .lp-panel > p { margin-inline: 1.3rem; }
.lp-panel-art { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--ink); margin-bottom: 1rem; }
.lp-panel-art svg { display: block; width: 100%; height: 100%; }
.lp-note { margin: 1.5rem 0; padding: .9rem 1.2rem; background: var(--yellow-t); border: 2px solid var(--ink); border-radius: 14px; }

/* ---------- Trust and FAQ ---------- */
.lp-faq-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .lp-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .lp-trust { position: sticky; top: calc(var(--lp-nav) + 1rem); } }
.lp-trust-line { font-family: 'Fredoka', sans-serif; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); line-height: 1.3; background: var(--yellow-t); border: 2px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: 0 16px 16px 0; padding: .9rem 1.1rem; margin: 0 0 1rem; }
.lp-q { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; margin-bottom: .75rem; overflow: hidden; }
.lp-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .7rem 1.1rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; }
.lp-q > summary::-webkit-details-marker { display: none; }
.lp-q > summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-weight: 700; line-height: 1; }
.lp-q[open] > summary { background: var(--yellow-t); border-bottom: 2px solid var(--ink); }
.lp-q[open] > summary::after { content: '\2212'; }
.lp-a { padding: .9rem 1.1rem .4rem; }

/* ---------- Closing ---------- */
.lp-close { position: relative; overflow: hidden; background: var(--sky); border-top: 4px solid var(--ink); padding-top: clamp(9.5rem, 17vw, 12.5rem); }
.lp-band { position: absolute; top: 0; left: 0; right: 0; height: clamp(9rem, 15vw, 12rem); line-height: 0; pointer-events: none; }
.lp-band svg { display: block; width: 100%; height: 100%; }
.lp-close-copy { text-align: center; }
.lp-close-copy h2 { margin-bottom: .6rem; }
.lp-close-copy .lp-sec-lead { margin-inline: auto; }
.lp-close-signin { margin-top: 1rem; font-weight: 700; }
.lp-cta-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.lp-cta-pair .btn { flex: 0 1 auto; }
@media (max-width: 599px) { .lp-cta-pair .btn { flex: 1 1 100%; } }
.lp-booknote { max-width: 38rem; margin: .75rem auto 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.lp-foot { background: var(--ink); color: var(--white); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .98rem; }
.lp-foot a { color: var(--white); text-decoration-color: var(--yellow); }
.lp-foot :focus-visible { outline-color: var(--yellow); }
.lp-foot-in { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lp-foot-in { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; } }
.lp-foot-brand img { display: block; width: 96px; height: auto; }
.lp-foot p { margin: 0 0 .5rem; }
.lp-foot-verse { color: var(--yellow); font-style: italic; }
.lp-foot-verse span { font-style: normal; font-weight: 700; margin-left: .35rem; }
.lp-foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
@media (min-width: 860px) { .lp-foot-links { flex-direction: column; flex-wrap: nowrap; } }
.lp-foot-links a, .lp-foot-links button { display: inline-flex; align-items: center; min-height: var(--tap); }
.lp-calm-foot { font: inherit; color: var(--white); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.lp .lp-calm-foot[hidden], .lp .lp-calm-top[hidden], .lp .lp-calm-menu[hidden] { display: none; }

/* the calm switch also sits in the phone menu, and at the top of the hero from tablet width up */
.lp-calm-menu { font: inherit; font-weight: 700; text-align: left; min-height: var(--tap); padding: .45rem .8rem; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp-calm-menu:hover { background: var(--yellow); }
@media (min-width: 1100px) { .lp-calm-menu { display: none; } }
@media (max-width: 759px) { .lp .lp-calm-top { display: none; } }

/* ---------- Pictures: motion is added only where a class asks for it ---------- */
.lp-glow, .lp-sway, .lp-float, .lp-drift, .lp-rays, .lp-rays-soft, .lp-bird, .lp-wing, .lp-open-l, .lp-open-r, .lp-flap, .lp-sprout, .lp-wave, .lp-swing, .lp-grow, .lp-root, .lp-snap, .lp-beat, .lp-tap { transform-box: fill-box; }
@keyframes lp-glow { 0%, 100% { opacity: .78; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes lp-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes lp-rise { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(-48px); opacity: 0; } }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lp-drift { from { transform: translateX(-22px); } to { transform: translateX(22px); } }
@keyframes lp-turn { to { transform: rotate(360deg); } }
@keyframes lp-glide { from { transform: translate(-10px, 3px); } to { transform: translate(16px, -7px); } }
@keyframes lp-flutter { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes lp-open-l { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@keyframes lp-open-r { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@keyframes lp-flap { 0%, 4% { transform: scaleX(1); opacity: 0; } 8%, 40% { transform: scaleX(1); opacity: 1; } 62% { transform: scaleX(.02); opacity: 1; } 80% { transform: scaleX(-1); opacity: 1; } 92% { transform: scaleX(-1); opacity: 0; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lp-wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
@keyframes lp-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes lp-grow { from { transform: scale(.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lp-roots { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@keyframes lp-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-tickdraw { 0%, 12% { stroke-dashoffset: 24; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 24; } }
@keyframes lp-snap { 0%, 15% { transform: translateX(-46px); opacity: .4; } 40%, 85% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-46px); opacity: .4; } }
@keyframes lp-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes lp-tap { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes lp-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes lp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion='reduced']) .lp-glow { transform-origin: 50% 50%; animation: lp-glow 3.8s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-glow.d2 { animation-delay: -1.2s; } html:not([data-motion='reduced']) .lp-glow.d3 { animation-delay: -2.4s; } html:not([data-motion='reduced']) .lp-glow.d4 { animation-delay: -3.1s; }
  html:not([data-motion='reduced']) .lp-sway { transform-origin: 50% 100%; animation: lp-sway 6.5s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-sway.s2 { animation-delay: -2.2s; animation-duration: 7.5s; } html:not([data-motion='reduced']) .lp-sway.s3 { animation-delay: -4.1s; animation-duration: 5.8s; }
  html:not([data-motion='reduced']) .lp-float { animation: lp-rise 7.5s ease-in infinite; }
  html:not([data-motion='reduced']) .lp-float.d2 { animation-delay: -1.2s; } html:not([data-motion='reduced']) .lp-float.d3 { animation-delay: -2.5s; } html:not([data-motion='reduced']) .lp-float.d4 { animation-delay: -3.7s; } html:not([data-motion='reduced']) .lp-float.d5 { animation-delay: -4.9s; } html:not([data-motion='reduced']) .lp-float.d6 { animation-delay: -6.1s; }
  html:not([data-motion='reduced']) .lp-feat-svg .lp-float, html:not([data-motion='reduced']) .lp-step-svg .lp-float { animation: lp-bob 3.4s ease-in-out infinite; opacity: 1; }
  html:not([data-motion='reduced']) .lp-drift { animation: lp-drift 26s ease-in-out infinite alternate; }
  html:not([data-motion='reduced']) .lp-drift.a2 { animation-duration: 32s; animation-delay: -9s; } html:not([data-motion='reduced']) .lp-drift.a3 { animation-duration: 38s; animation-delay: -15s; } html:not([data-motion='reduced']) .lp-drift.a4 { animation-duration: 29s; animation-delay: -4s; }
  html:not([data-motion='reduced']) .lp-rays { transform-origin: 50% 50%; animation: lp-turn 140s linear infinite; }
  html:not([data-motion='reduced']) .lp-rays-soft { animation: lp-glow 6s ease-in-out infinite; transform-origin: 50% 100%; }
  html:not([data-motion='reduced']) .lp-bird { animation: lp-glide 8s ease-in-out infinite alternate; }
  html:not([data-motion='reduced']) .lp-bird.b2 { animation-delay: -2.5s; } html:not([data-motion='reduced']) .lp-bird.b3 { animation-delay: -5s; }
  html:not([data-motion='reduced']) .lp-wing { transform-origin: 50% 100%; animation: lp-flutter 1.1s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-open-l { transform-origin: 100% 50%; animation: lp-open-l 1.5s cubic-bezier(.2, .8, .25, 1) both; }
  html:not([data-motion='reduced']) .lp-open-r { transform-origin: 0 50%; animation: lp-open-r 1.5s cubic-bezier(.2, .8, .25, 1) .1s both; }
  html:not([data-motion='reduced']) .lp-flap { transform-origin: 0 50%; animation: lp-flap 11s ease-in-out 2s infinite; opacity: 0; }
  html:not([data-motion='reduced']) .lp-sprout { transform-origin: 50% 100%; animation: lp-sway 4.5s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-wave { transform-origin: 18% 92%; animation: lp-wave 1.8s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-swing { transform-origin: 50% 8%; animation: lp-swing 3.6s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-tick { stroke-dasharray: 24; animation: lp-tickdraw 4.2s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-tick.d2 { animation-delay: .5s; } html:not([data-motion='reduced']) .lp-tick.d3 { animation-delay: 1s; }
  html:not([data-motion='reduced']) .lp-snap { animation: lp-snap 4s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-beat { transform-origin: 50% 60%; animation: lp-beat 1.5s ease-in-out infinite; }
  html:not([data-motion='reduced']) .lp-tap { transform-origin: 50% 50%; animation: lp-tap 1.8s ease-out infinite; }
  /* growing leaves and roots, once, when the picture scrolls into view (landing.js adds .is-in; without script they simply show) */
  .lp-js [data-grow]:not(.is-in) .lp-grow, .lp-js [data-grow]:not(.is-in) .lp-root { opacity: 0; }
  html:not([data-motion='reduced']) [data-grow].is-in .lp-grow { transform-origin: 50% 100%; animation: lp-grow 1.6s cubic-bezier(.2, .8, .25, 1) both; }
  html:not([data-motion='reduced']) [data-grow].is-in .lp-grow.d1 { animation-delay: .2s; } html:not([data-motion='reduced']) [data-grow].is-in .lp-grow.d2 { animation-delay: .9s; } html:not([data-motion='reduced']) [data-grow].is-in .lp-grow.d3 { animation-delay: 1.6s; }
  html:not([data-motion='reduced']) [data-grow].is-in .lp-root { transform-origin: 50% 0; animation: lp-roots 1.6s ease-out both; }
  html:not([data-motion='reduced']) [data-grow].is-in .lp-root.d1 { animation-delay: .1s; } html:not([data-motion='reduced']) [data-grow].is-in .lp-root.d2 { animation-delay: .8s; } html:not([data-motion='reduced']) [data-grow].is-in .lp-root.d3 { animation-delay: 1.5s; }
  html:not([data-motion='reduced']) .lp-prog-art:not(.is-dim) .lp-step { animation: lp-fadein .8s ease both; }
  html:not([data-motion='reduced']) .lp-prog-art:not(.is-dim) .lp-step.d2 { animation-delay: .5s; } html:not([data-motion='reduced']) .lp-prog-art:not(.is-dim) .lp-step.d3 { animation-delay: 1s; }
  .lp-slot.is-filled { animation: lp-pop .3s ease both; }
  /* pictures that are scrolled out of view, and the steps that are not the current one, stand still */
  .lp-sec.is-off .lp-art *, .lp-hero.is-off .lp-art *, .lp-step-card:not(.is-active) .lp-step-svg * { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-art *, .lp-piece, .lp-slot { animation: none !important; transition: none !important; }
}
html[data-motion='reduced'] .lp-art *, html[data-motion='reduced'] .lp-piece, html[data-motion='reduced'] .lp-slot { animation: none !important; transition: none !important; }
html[data-motion='reduced'] .lp-flap { opacity: 0; }
html[data-motion='reduced'] .lp-step-card { transition: none; }
.lp-art .lp-flap { opacity: 0; }

/* A lantern that can be lit: the lit parts show by default (no script), landing.js adds .is-dim to start dim and removes it on a tap */
.lp-lamp-unlit, .lp-step { opacity: 0; }
.lp-lamp-lit, .lp-litlayer, .lp-lit-sun { transition: opacity .6s ease; }
.is-dim .lp-lamp-lit, .is-dim .lp-litlayer { opacity: 0; }
.is-dim .lp-lamp-unlit { opacity: 1; }
.is-dim .lp-lit-sun { opacity: .4; }
html:not(.lp-js) .lp-lamp-unlit { opacity: 0; }
html:not(.lp-js) .lp-step { opacity: 1; }
.lp-prog-art:not(.is-dim) .lp-step { opacity: 1; }
.lp-prog-art.is-dim .lp-step { opacity: 0; }
html:not(.lp-js) .is-dim .lp-lamp-lit, html:not(.lp-js) .is-dim .lp-litlayer { opacity: 1; }
html:not(.lp-js) .is-dim .lp-lamp-unlit { opacity: 0; }
html:not(.lp-js) .is-dim .lp-lit-sun { opacity: 1; }
.lp-lamp-btn[hidden] { display: none; }
.lp-lamp-btn { margin-top: .5rem; }
.lp-lamp-btn[aria-pressed='true']::before { content: ''; }
@media (prefers-reduced-motion: reduce) { .lp-lamp-lit, .lp-litlayer, .lp-lit-sun { transition: none; } }
html[data-motion='reduced'] .lp-lamp-lit, html[data-motion='reduced'] .lp-litlayer, html[data-motion='reduced'] .lp-lit-sun { transition: none; }

/* Calm motion toggle (also in the footer) */
.lp-calm-top { position: absolute; z-index: 3; right: var(--edge-r); top: .75rem; }
