/* Kherafy pre-launch site. The Meadow (app/lib/core/theme.dart `Meadow`), mobile first. */
@font-face { font-family: "Baloo Bhaijaan 2"; src: url(../fonts/baloo-bhaijaan-2.ttf) format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Noto Sans Coptic"; src: url(../fonts/noto-sans-coptic.woff2) format("woff2"); font-display: swap; }

:root {
  --grass: #7bc96f; --grass-deep: #4f9a46; --sky: #cdeeff; --wool: #fff8ec; --sun: #ffb627; --berry: #e85d75;
  --ink: #1f4d2b; --navy: #1f2a44; --soft: #4f6b55; --card: #ffffff; --line: #ece4cf;
  --pink: #f9c9dc; --peach: #f8d5ab; --mint: #a8eadf; --teal: #4fd8c4; --coral: #ff9b85; --lilac: #d7c6f5; --skyt: #8fd6f7; --suny: #ffd76a;
  --r: 22px; --shadow: 0 10px 0 rgba(31, 77, 43, .08), 0 18px 34px rgba(31, 77, 43, .10);
  --kid: "Baloo Bhaijaan 2", system-ui, sans-serif;
  --body: "Baloo Bhaijaan 2", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wool); color: var(--ink); font: 500 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--grass-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 12px; }
.skip:focus { top: 10px; }

/* Language: Arabic by default; html[lang=en] shows the English twins. */
html[lang="ar"] body [lang="en"]:not(.keep), html[lang="en"] body [lang="ar"]:not(.keep) { display: none !important; }
html[lang="en"] .tagline-en { display: block; }
.tagline-en { display: none; }
/* Arabic content kept inside the English page reads right to left. */
html[lang="en"] [lang="ar"].keep { direction: rtl; unicode-bidi: isolate; }
html[lang="en"] .tagline { text-align: left; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--kid); line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
.sub { color: var(--soft); margin: 6px 0 0; font-size: 1.05rem; max-width: 62ch; }
.sub.small { font-size: .98rem; display: flex; gap: 8px; align-items: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(205, 238, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 77, 43, .06); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-family: var(--kid); font-weight: 800; font-size: 1.5rem; }
.lamb-mini { display: inline-block; width: 40px; height: 34px; flex: none; }
.lamb-big { display: block; width: 100%; aspect-ratio: 373 / 556; }
.lamb-mini img, .lamb-big img { width: 100%; height: 100%; display: block; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.lamb-mini img { filter: drop-shadow(0 2px 0 rgba(31, 77, 43, .12)); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 8px; font-family: var(--kid); font-weight: 800; font-size: 1.1rem; box-shadow: 0 3px 0 rgba(31, 77, 43, .1); }
.star-pill.bump { animation: bump .5s ease; }
.lang-btn { border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 16px; font-family: var(--kid); font-weight: 700; min-height: 44px; }

/* Hero */
.hero { position: relative; background: linear-gradient(rgba(255, 248, 236, .80), rgba(255, 248, 236, .55) 55%, rgba(255, 248, 236, 0) 80%), url(../img/meadow/hero.webp) center bottom / cover no-repeat, var(--sky); padding: 26px 0 120px; overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 18px; align-items: center; }
.soon { display: inline-block; margin: 0; background: var(--berry); color: #fff; font-family: var(--kid); font-weight: 800; border-radius: 999px; padding: 4px 16px; font-size: 1.05rem; transform: rotate(-2deg); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.hero h1 { font-size: clamp(4rem, 18vw, 7.5rem); color: var(--navy); line-height: 1; margin-top: 6px; }
.hero h1 small { font-size: .45em; color: var(--soft); display: block; }
.tagline { font-family: var(--kid); font-size: clamp(1.45rem, 5vw, 2rem); color: #3f8a3a; margin: 6px 0 0; font-weight: 800; }
.tagline .ref { font-size: .62em; color: var(--soft); font-weight: 600; white-space: nowrap; }
.tagline-en { color: var(--soft); margin: 0; font-style: italic; }
.lede { font-size: 1.15rem; max-width: 40ch; margin: 12px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--grass); color: #fff; font-family: var(--kid); font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 5px 0 var(--grass-deep); transition: transform .12s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--grass-deep); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #8a3ab9); box-shadow: 0 5px 0 #8f2252; }
.btn-fb { background: #1877f2; box-shadow: 0 5px 0 #0e4fa8; }
.demo-note-hero { margin: 16px 0 0; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 5px 0 rgba(31, 77, 43, .08); font-size: 1.05rem; max-width: 44ch; }
.stores-note { color: var(--soft); font-size: .98rem; margin: 14px 0 0; }
.hero-lamb { justify-self: center; width: min(230px, 56vw); padding-top: 40px; }
.lamb-btn { position: relative; border: 0; background: none; padding: 0; width: 100%; display: block; }
.lamb-btn .lamb-big { animation: float 4s ease-in-out infinite; }
.bubble { position: absolute; top: -26px; inset-inline-start: 40%; width: max-content; max-width: min(210px, 58vw) !important; border: 3px solid var(--ink); background: #fff; border-radius: 20px; padding: 8px 14px; font-family: var(--kid); font-weight: 800; color: var(--ink); box-shadow: var(--shadow); max-width: 210px; font-size: 1rem; line-height: 1.3; text-align: start; }
.bubble .tap-hint { display: block; font-size: .78rem; color: var(--berry); font-weight: 700; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: linear-gradient(rgba(255, 248, 236, 0), var(--wool)); }
.hills.small { height: 70px; }

/* Bands and features */
.band { padding: 34px 0; }
.videos { background: var(--grass); color: #fff; }
.videos .sub { color: #effbe9; }
.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; max-width: 900px; }
.video-card { margin: 0; background: rgba(255, 255, 255, .16); border-radius: var(--r); padding: 8px; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #0d2a14; display: block; }
.video-card figcaption { text-align: center; font-family: var(--kid); font-weight: 800; padding-top: 6px; }

.feature-map { padding: 40px 16px 10px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 18px; border: 3px solid var(--ink); text-decoration: none; color: var(--navy); font-family: var(--kid); font-weight: 800; box-shadow: 0 4px 0 rgba(31, 42, 68, .12); min-height: 52px; }
.pink { background: var(--pink); } .peach { background: var(--peach); } .sun { background: var(--suny); }
.mint { background: var(--mint); } .coral { background: var(--coral); } .grass { background: #bfe8b5; } .sky { background: var(--skyt); } .lilac { background: var(--lilac); }

.feature { padding: 46px 0; scroll-margin-top: 50px; }
.feature.alt { background: #fffdf6; border-block: 1px solid var(--line); }
.feat-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.feat-icon { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(31, 42, 68, .12); }
.two-col { display: grid; gap: 10px; }
.demo { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 16px; position: relative; }
.demo + .demo { margin-top: 18px; }
.demo-note { color: var(--soft); font-size: .92rem; margin: 10px 0 0; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; font-size: 1.4rem; font-weight: 800; box-shadow: 0 5px 0 rgba(31, 42, 68, .18); color: var(--navy); }
.round.big { width: 68px; height: 68px; font-size: 1.6rem; }
.round.sun { background: var(--suny); }
.round:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(31, 42, 68, .18); }
.round:disabled { opacity: .45; cursor: default; }
.say { border: 0; background: var(--navy); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.say img { filter: invert(1) brightness(2); }
.link-btn { border: 0; background: none; color: var(--grass-deep); font-family: var(--kid); font-weight: 800; font-size: 1.05rem; padding: 10px 4px; min-height: 44px; }

/* Film */
.film-stage { position: relative; }
.film-frame { border-radius: 22px; overflow: hidden; border: 6px solid #ffd76a; aspect-ratio: 368 / 275; background: #fbe7c5; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.film-frame img.fade { animation: fadein .6s ease; }
.cam-zoom-in { animation: zoomin 14s ease-out forwards; }
.cam-pan-start { animation: panstart 14s ease-out forwards; }
.cam-pan-end { animation: panend 14s ease-out forwards; }
.cam-still { animation: breathe 9s ease-in-out infinite; }
.film-choice { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 16px; background: rgba(255, 248, 236, .55); backdrop-filter: blur(1.5px); border-radius: 22px; }
.film-choice[hidden] { display: none; }
.choice-q { margin: 0; display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--kid); font-weight: 800; font-size: 1.35rem; }
.big-btn { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 22px; padding: 10px 16px; text-align: start; box-shadow: 0 6px 0 rgba(31, 42, 68, .16); color: var(--navy); min-height: 64px; }
.big-btn b { display: block; font-family: var(--kid); font-size: 1.25rem; line-height: 1.2; }
.big-btn small { display: block; font-size: .85rem; opacity: .8; }
.big-btn.sun { background: var(--suny); }
.film-bar { display: grid; gap: 8px; margin-top: 10px; justify-items: center; }
.film-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.film-dots span { width: 12px; height: 12px; border-radius: 99px; background: #e3edf3; transition: width .3s; }
.film-dots span.on { width: 30px; background: var(--sun); }
.film-controls { display: flex; gap: 18px; align-items: center; }
.film-text { font-family: var(--kid); font-weight: 700; font-size: clamp(1.2rem, 4.2vw, 1.5rem); line-height: 1.8; text-align: center; margin: 12px 0 0; min-height: 4.5em; background: #f7fbff; border-radius: 20px; padding: 12px 14px; }
.film-text .w { transition: color .15s, background .15s; border-radius: 8px; padding: 0 2px; }
.film-text .w.on { background: var(--suny); color: var(--navy); }
.film-text .w.done { color: var(--ink); }
.film-text.karaoke .w:not(.done):not(.on) { color: #93a99a; }

.order-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.order-card { position: relative; border: 4px solid transparent; border-radius: 18px; padding: 0; overflow: hidden; background: #fbe7c5; aspect-ratio: 368 / 275; box-shadow: 0 5px 0 rgba(31, 42, 68, .12); }
.order-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-card .num { position: absolute; top: 6px; inset-inline-start: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--grass); color: #fff; font-family: var(--kid); font-weight: 800; display: grid; place-items: center; font-size: 1.2rem; }
.order-card.picked { border-color: var(--grass); }
.order-card.nope { animation: shake .4s; border-color: var(--coral); }
.order-msg { font-family: var(--kid); font-weight: 800; min-height: 1.6em; margin: 10px 0 0; text-align: center; font-size: 1.15rem; }

/* Pray */
.pray-card { background: linear-gradient(#fff3e2, #fff); border-radius: 22px; padding: 14px; }
.pray-title { display: flex; align-items: center; gap: 8px; }
.pray-lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.pray-lines li { font-family: var(--kid); font-weight: 700; font-size: 1.3rem; padding: 8px 12px; border-radius: 14px; transition: background .25s, transform .25s, color .25s; color: #7d8f80; }
.pray-lines li.on { background: var(--suny); color: var(--navy); transform: scale(1.02); }
.pray-lines li.turn { background: var(--mint); color: var(--navy); }
.pray-lines li.done { color: var(--ink); }
.your-turn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-family: var(--kid); font-size: 1.6rem; color: var(--berry); animation: pop .4s ease; }
.your-turn[hidden] { display: none; }
.big-start { width: 100%; font-size: 1.25rem; }

/* Verse */
.flip { perspective: 1200px; }
.flip-inner { position: relative; display: grid; transition: transform .7s cubic-bezier(.3, 1.3, .6, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; padding: 18px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(160deg, #fff6d6, #ffe7a3); }
.flip-face.back { transform: rotateY(180deg); background: linear-gradient(160deg, #e6f8ff, #c8ecff); }
.v-label { margin: 0; color: var(--soft); font-family: var(--kid); font-weight: 700; }
.v-text { font-family: var(--kid); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.4; margin: 8px 0; color: var(--navy); }
.v-ref { margin: 0 0 12px; color: var(--soft); font-weight: 700; }
.v-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.v-words { font-family: var(--kid); font-weight: 800; font-size: clamp(1.4rem, 5.4vw, 2rem); line-height: 1.9; margin: 10px 0 14px; color: var(--navy); }
.v-word { border: 0; background: none; font: inherit; color: inherit; padding: 0 4px; border-radius: 10px; }
.v-word.hid { background: #fff; color: transparent; min-width: 2.4em; box-shadow: inset 0 -4px 0 var(--skyt); }
.v-word.hid::after { content: "؟"; color: var(--skyt); }
html[lang="en"] .v-word.hid::after { content: "?"; }

/* Quiz */
.q-head { display: flex; justify-content: space-between; align-items: center; color: var(--soft); font-family: var(--kid); font-weight: 700; }
.q-progress { display: flex; gap: 4px; }
.q-progress span { width: 22px; height: 8px; border-radius: 9px; background: #e8efe6; }
.q-progress span.ok { background: var(--grass); } .q-progress span.cur { background: var(--sun); } .q-progress span.miss { background: var(--coral); }
.q-q { display: flex; gap: 10px; align-items: center; font-family: var(--kid); font-weight: 800; font-size: 1.45rem; margin: 12px 0; line-height: 1.35; }
.q-opts { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 10px; }
.q-opt .ans { flex: 1; text-align: start; border: 0; border-radius: 18px; padding: 12px 16px; font-family: var(--kid); font-weight: 800; font-size: 1.2rem; background: #f1f8ff; box-shadow: 0 5px 0 #d5e7f3; min-height: 56px; }
.q-opt .ans.right { background: #c9f0c0; box-shadow: 0 5px 0 #8fd27f; }
.q-opt .ans.wrong { background: #ffe0d8; box-shadow: 0 5px 0 #ffb7a6; }
.q-why { margin: 12px 0 0; background: #fff8e3; border-radius: 16px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.q-end { text-align: center; }
.q-stars { font-size: 3rem; letter-spacing: 6px; margin: 6px 0; }

/* Colour */
.color-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.color-tabs button { border: 0; border-radius: 999px; padding: 8px 14px; background: #f1f1ea; font-family: var(--kid); font-weight: 800; min-height: 44px; }
.color-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
#color-canvas { width: 100%; max-width: 460px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 20px; background: #fff; touch-action: none; box-shadow: inset 0 0 0 3px #f1ead6; cursor: crosshair; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #e5dfcf; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 4px var(--navy); transform: scale(1.08); }
.color-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn.on { background: var(--navy); color: #fff; box-shadow: 0 5px 0 #000; }

/* Paths */
.seg { display: inline-flex; background: #eef4ea; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg-btn { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-family: var(--kid); font-weight: 800; min-height: 44px; }
.seg-btn[aria-selected="true"] { background: #fff; box-shadow: 0 3px 0 rgba(31, 77, 43, .12); }
.trail-wrap { display: grid; gap: 16px; margin-top: 14px; }
.trail { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 6px; background: linear-gradient(#eaf8e4, #d6f1cc); border-radius: 24px; position: relative; }
.trail li { display: flex; padding: 0 16%; }
.trail li:nth-child(4n+1) { justify-content: center; } .trail li:nth-child(4n+2) { justify-content: flex-start; } .trail li:nth-child(4n+3) { justify-content: center; } .trail li:nth-child(4n) { justify-content: flex-end; }
.node { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; font-family: var(--kid); font-weight: 800; font-size: 1.35rem; background: #fff; color: var(--navy); box-shadow: 0 6px 0 rgba(31, 77, 43, .2); position: relative; }
.node.done { background: var(--grass); color: #fff; }
.node.next { background: var(--suny); animation: pulse 1.8s ease-in-out infinite; }
.node.locked { background: #e7ece4; color: #9aa79c; }
.node.sel { outline: 4px solid var(--navy); outline-offset: 3px; }
.node .lk { position: absolute; bottom: -4px; inset-inline-end: -4px; font-size: .9rem; }
.lesson-card { background: #fffdf6; border-radius: 22px; padding: 16px; border: 2px solid var(--line); }
.lesson-card h3 { font-size: 1.4rem; }
.lesson-step { color: var(--soft); font-weight: 700; margin: 0; }
.verse-box, .say-box { margin: 12px 0; padding: 12px 14px; border-radius: 18px; font-family: var(--kid); font-weight: 800; font-size: 1.25rem; }
.verse-box { background: #fff3c4; } .say-box { background: #d8f5ee; }
.verse-box small, .say-box small { display: block; font-weight: 600; font-size: .85rem; color: var(--soft); }
.learn { margin: 8px 0 12px; padding-inline-start: 20px; }

/* Year */
.year-card { background: linear-gradient(160deg, #e8f7ff, #fff); border-radius: 22px; padding: 18px; text-align: center; }
.y-greg { margin: 0; color: var(--soft); font-weight: 700; }
.y-coptic { margin: 4px 0; font-family: var(--kid); font-weight: 800; font-size: clamp(2rem, 8vw, 2.8rem); color: var(--navy); line-height: 1.2; }
.y-proverb { margin: 0; color: var(--soft); font-style: italic; }
.y-feast { margin: 14px 0 0; padding: 14px; border-radius: 18px; background: var(--suny); font-family: var(--kid); }
.y-feast.season { background: var(--lilac); }
.y-feast.plain { background: #f1f6ef; }
.y-feast b { display: block; font-size: 1.35rem; }
.y-feast span { font-weight: 600; }
.y-next { margin: 12px 0 0; color: var(--soft); }
.year-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.y-pick { order: 5; flex-basis: 100%; display: flex; justify-content: center; }
.y-pick input { font: inherit; border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; min-height: 48px; background: #fff; color: var(--ink); }
.y-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.y-jump button { border: 0; border-radius: 999px; padding: 6px 12px; background: #f1f6ef; font-family: var(--kid); font-weight: 700; min-height: 40px; }

/* Hymns */
.hymn-demo { display: grid; gap: 16px; }
.ladder { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; width: 100%; max-width: 420px; position: relative; border-inline: 10px solid #c79a64; border-radius: 8px; padding: 6px 0; }
.rung { border: 0; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f9ecd8; border-radius: 6px; font-family: var(--kid); font-weight: 800; text-align: start; min-height: 46px; box-shadow: inset 0 -4px 0 #e6cfae; }
.rung .n { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; font-size: .95rem; }
.rung.done { background: #dff3d8; box-shadow: inset 0 -4px 0 #b6e0aa; }
.rung.next { background: var(--suny); }
.rung.locked { color: #a39684; }
.rung.sel { outline: 3px solid var(--navy); }
.rung .climber { width: 46px; height: 34px; margin-inline-start: auto; }
.hymn-card { background: linear-gradient(160deg, #f3edff, #fff); border-radius: 22px; padding: 16px; }
.coptic { font-family: "Noto Sans Coptic", serif; font-size: 1.35rem; direction: ltr; text-align: center; background: #fff; border-radius: 16px; padding: 12px; margin: 10px 0; line-height: 1.7; color: var(--navy); }
.hymn-say { font-family: var(--kid); font-weight: 800; font-size: 1.2rem; margin: 6px 0; }
.hymn-note { color: var(--soft); font-size: .92rem; margin: 10px 0 0; }

/* Gallery */
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: linear-gradient(90deg, #fff1c2, #ffe39a); border-radius: 22px; padding: 10px; }
.top3 h3 { grid-column: 1 / -1; font-size: 1.1rem; }
.top3 figure { margin: 0; text-align: center; font-family: var(--kid); font-weight: 700; font-size: .85rem; }
.top3 canvas { width: 100%; max-width: 150px; margin: 0 auto; aspect-ratio: 1; border-radius: 14px; background: #fff; display: block; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.post { background: #fffdf8; border: 2px solid var(--line); border-radius: 20px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.post canvas, .post .rec { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; display: block; }
.post .rec { display: grid; place-items: center; background: linear-gradient(160deg, #efe6ff, #fff); border: 0; }
.rec .wave { display: flex; gap: 3px; align-items: center; height: 60px; }
.rec .wave i { width: 5px; border-radius: 4px; background: #9b7be0; }
.rec.playing .wave i { animation: wave .8s ease-in-out infinite alternate; }
.post-name { font-family: var(--kid); font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: 4px; }
.post-name .lamb-mini { width: 30px; height: 22px; }
.reacts { display: flex; gap: 6px; }
.react { flex: 1; border: 0; border-radius: 14px; background: #f3f3ec; font-size: 1.25rem; min-height: 44px; }
.react[aria-pressed="true"] { background: var(--suny); animation: bump .35s; }
.report { border: 0; background: none; color: var(--soft); font-size: .82rem; text-decoration: underline; min-height: 32px; }
.send-flow { margin-top: 14px; }
.send-card { display: flex; gap: 12px; align-items: center; background: #f3fbff; border-radius: 20px; padding: 12px; }
.send-card canvas { width: 90px; height: 90px; border-radius: 14px; background: #fff; flex: none; }
.status { font-family: var(--kid); font-weight: 800; }
.feedback { margin-top: 6px; background: #fff; border-radius: 14px; padding: 8px 10px; font-weight: 600; }

/* Stars */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border-radius: 20px; padding: 12px; display: grid; justify-items: center; font-family: var(--kid); font-weight: 700; box-shadow: 0 5px 0 rgba(31, 42, 68, .12); }
.tile b { font-size: 2rem; line-height: 1.1; }
.tile.coral { background: var(--coral); }
.flame { font-size: 2rem; }
.stickers { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sticker { border-radius: 20px; padding: 10px 6px; text-align: center; background: #f2f2ec; color: #9aa39b; font-family: var(--kid); font-weight: 800; font-size: .92rem; line-height: 1.25; position: relative; min-height: 112px; display: grid; align-content: center; justify-items: center; gap: 4px; }
.sticker .em { font-size: 2rem; filter: grayscale(1); opacity: .5; }
.sticker small { font-weight: 600; font-size: .78rem; }
.sticker.got { color: var(--navy); box-shadow: 0 5px 0 rgba(31, 42, 68, .14); }
.sticker.got .em { filter: none; opacity: 1; }
.sticker.new { animation: sticker .8s cubic-bezier(.3, 1.6, .5, 1); }
.sticker-msg { font-family: var(--kid); font-weight: 800; text-align: center; min-height: 1.5em; margin: 10px 0 0; }

/* Parents */
.parents-demo { display: grid; gap: 18px; background: linear-gradient(160deg, #eef9f6, #fff); }
.phone { background: #fff; border-radius: 34px; border: 8px solid var(--navy); padding: 14px; box-shadow: var(--shadow); }
.parent-phone { font-family: system-ui, "Segoe UI", "Geeza Pro", sans-serif; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; }
.kid-chip { display: inline-flex; align-items: center; gap: 4px; background: #eef4ea; border-radius: 99px; padding: 2px 10px 2px 4px; font-weight: 700; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.kpis div { background: #f6f8f4; border-radius: 14px; padding: 8px; text-align: center; font-size: .78rem; color: var(--soft); display: grid; }
.kpis b { font-size: 1.2rem; color: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; padding: 6px 4px 0; background: #fbfcfa; border-radius: 14px; }
.bar { display: grid; justify-items: center; gap: 2px; font-size: .7rem; color: var(--soft); align-self: end; }
.bar i { width: 70%; background: #9fd793; border-radius: 6px 6px 2px 2px; display: block; transition: height .5s; }
.bar.today i { background: var(--sun); }
.p-today { font-size: .9rem; color: var(--soft); margin: 10px 0; }
.cheers-q { margin: 0 0 6px; font-weight: 700; }
.cheer-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.cheer-btns button { border: 1.5px solid #cfe3d3; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: .95rem; min-height: 44px; }
.talk { margin-top: 12px; background: #fff7e6; border-radius: 16px; padding: 12px; font-size: .95rem; }
.talk b { display: block; }
.talk p { margin: 4px 0; }
.kid-phone { background: linear-gradient(var(--sky), var(--wool)); display: grid; align-content: start; position: relative; min-height: 360px; }
.kid-screen { text-align: center; padding: 10px; position: relative; }
.kid-greet { font-family: var(--kid); font-weight: 800; font-size: 1.5rem; margin: 6px 0; }
.kid-screen .lamb-big { width: 70%; margin: 0 auto; }
.cheer-pop { position: absolute; inset: 20px 6px auto; background: #fff; border-radius: 24px; padding: 16px; box-shadow: var(--shadow); font-family: var(--kid); font-weight: 800; font-size: 1.3rem; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.cheer-pop small { display: block; font-size: .9rem; color: var(--soft); }
.cheer-pop .confetti { font-size: 2rem; }
.phone-label { text-align: center; color: var(--soft); margin: auto 0 0; font-weight: 700; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.shots figure { margin: 0; text-align: center; font-family: var(--kid); font-weight: 700; font-size: .9rem; }
.shots img { border-radius: 18px; box-shadow: var(--shadow); display: block; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }

/* Safety */
.safe-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.safe { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 5px 0 rgba(31, 77, 43, .07); }
.safe-ic { font-size: 1.8rem; }
.safe p { margin: 4px 0 0; color: var(--soft); }
.gate-demo { margin-top: 16px; max-width: 460px; margin-inline: auto; background: linear-gradient(160deg, #fff, #f2f7ff); }
.gate-card { text-align: center; }
.gate-q { font-size: 1.25rem; font-weight: 700; margin: 6px 0 10px; }
.gate-ans { font-family: var(--kid); font-size: 2rem; font-weight: 800; letter-spacing: 4px; min-height: 1.6em; background: #fff; border-radius: 14px; border: 2px solid var(--line); margin: 0 auto 10px; max-width: 180px; }
.pad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; justify-content: center; direction: ltr; }
.pad button { height: 56px; border: 0; border-radius: 16px; background: #fff; font-size: 1.4rem; font-weight: 700; box-shadow: 0 4px 0 #dfe6ee; }
.gate-msg { font-weight: 700; min-height: 1.6em; margin: 10px 0 0; }

/* Plans */
.plans { display: grid; gap: 14px; margin-top: 16px; }
.plan { border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.plan ul { margin: 10px 0 0; padding-inline-start: 22px; }
.plan li { margin: 4px 0; }
.plan.free { background: #fff; }
.plan.plus { background: linear-gradient(160deg, #fff4cc, #ffe08a); }
.plan-note { margin: 12px 0 0; font-weight: 700; color: var(--soft); }

/* FAQ */
details { background: #fff; border-radius: 18px; padding: 4px 16px; margin-top: 10px; box-shadow: 0 4px 0 rgba(31, 77, 43, .06); }
summary { cursor: pointer; font-family: var(--kid); font-weight: 800; font-size: 1.15rem; padding: 12px 0; list-style-position: inside; }
details p { margin: 0 0 14px; color: var(--soft); }

/* Follow and footer */
.follow { position: relative; background: linear-gradient(var(--wool), var(--sky)); padding: 50px 0 100px; text-align: center; }
.follow-inner { display: grid; justify-items: center; gap: 6px; }
.follow .lamb-big { width: 170px; animation: float 4s ease-in-out infinite; }
.follow p { max-width: 46ch; margin: 4px auto; }
.foot { background: var(--grass); color: #fff; padding: 20px 0 30px; }
.foot a { color: #fff; }
.foot-inner { display: grid; gap: 6px; text-align: center; }
.foot-verse { font-family: var(--kid); font-weight: 800; font-size: 1.2rem; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.foot-small { margin: 0; font-size: .85rem; opacity: .9; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-family: var(--kid); font-weight: 800; padding: 10px 18px; border-radius: 999px; z-index: 60; box-shadow: var(--shadow); animation: pop .4s; max-width: calc(100vw - 32px); text-align: center; }
.toast[hidden] { display: none; }

/* Lamb parts (from the brand engine) */
[data-lamb] .eyes { animation: blink 5s infinite; }
[data-lamb] .head { animation: nod 6s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes drift { to { transform: translateX(calc(100vw + 700px)); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes nod { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-6deg); } 94% { transform: rotate(3deg); } }
@keyframes bump { 40% { transform: scale(1.25); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes sticker { 0% { transform: scale(.2) rotate(-30deg); } 100% { transform: none; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes zoomin { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes panstart { from { transform: scale(1.12) translateX(4%); } to { transform: scale(1.12) translateX(-4%); } }
@keyframes panend { from { transform: scale(1.12) translateX(-4%); } to { transform: scale(1.12) translateX(4%); } }
@keyframes breathe { 50% { transform: scale(1.03); } }
@keyframes wave { from { transform: scaleY(.4); } to { transform: scaleY(1.2); } }

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

/* Wider screens */
@media (min-width: 760px) {
  .hero { padding: 50px 0 140px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-lamb { width: min(280px, 26vw); }
  .two-col { grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
  .two-col > :first-child { position: sticky; top: 90px; }
  .trail-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .hymn-demo { grid-template-columns: 1fr 1fr; align-items: start; }
  .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .parents-demo { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .plans { grid-template-columns: 1fr 1fr; }
  .film-demo { padding: 22px; }
  .video-row { gap: 22px; }
  .feature { padding: 64px 0; }
}
@media (min-width: 1000px) {
  .film-demo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 22px; align-items: start; }
  .film-demo .film-stage { grid-row: span 2; }
  .film-demo .film-bar { order: 3; grid-column: 1; }
  .film-demo .film-text { margin-top: 0; }
  .film-demo .demo-note { grid-column: 2; }
}

/* Painted places from the app's meadow home (tall pictures; the object sits in the upper part). */
img.paint { object-fit: cover; object-position: 50% 30%; border-radius: 12px; background: #dfeccf; }
.chip img.paint { width: 36px; height: 36px; flex: none; }
.feat-icon img.paint { width: 100%; height: 100%; border-radius: 0; }
.pill { border: 3px solid var(--ink); }
.soon { border: 3px solid var(--ink); }
.btn, .big-btn { border: 3px solid var(--ink) !important; }

/* Real screens from the Kids app */
.shots-title { margin-top: 30px; color: #fff; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot { flex: 0 0 min(190px, 46vw); margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; border-radius: 22px; border: 4px solid var(--ink); background: #fff; display: block; box-shadow: 0 8px 0 rgba(0, 0, 0, .12); }
.shot figcaption { text-align: center; font-family: var(--kid); font-weight: 800; padding-top: 6px; font-size: .98rem; }
