/* LadderLeaf Learning website. The games' font (Andika, with the curled q of Home Run Q) and the brand colors (BRAND_NAME_PLAN.md). */
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url(/fonts/Andika-Regular-latin.dd6bb7266c.woff2) format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 700; font-display: swap; src: url(/fonts/Andika-Bold-latin.61c90acb5f.woff2) format('woff2'); }
@font-face { font-family: 'Home Run Q'; font-weight: 400; font-display: swap; unicode-range: U+0071; src: url(/fonts/HomeRunQ-Regular.30d1bfbcb6.woff2) format('woff2'); }
@font-face { font-family: 'Home Run Q'; font-weight: 700; font-display: swap; unicode-range: U+0071; src: url(/fonts/HomeRunQ-Bold.272421ddb5.woff2) format('woff2'); }

:root {
  --sky: #cde9ff;
  --sky-light: #eaf6ff;
  --sky-band: #eff8ff;
  --cream: #fffaf0;
  --ink: #1e3326;
  --soft: #4a5c50;
  --line: #dde6df;
  --leaf: #2f9e44;
  --leaf-dark: #1f7a34;
  --leaf-deeper: #165a26;
  --brown: #7a4d24;
  --link: #1b5cbf;
  --coral: #ef6f4f;
  --blue: #3b82f6;
  --purple: #9b5de5;
  --teal: #14b8a6;
  --sun: #f7b733;
  --red: #e8303a;
  --bezel: #1d2b23;
  --lift: 0 2px 0 rgba(30, 51, 38, 0.05), 0 12px 28px rgba(30, 51, 38, 0.1);
  --lift-high: 0 6px 14px rgba(30, 51, 38, 0.14), 0 30px 60px rgba(30, 51, 38, 0.22);
  --radius: 22px;
  --font: 'Home Run Q', Andika, 'Comic Sans MS', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: #123f86; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible { outline-color: var(--sun); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { font-weight: 700; color: var(--brown); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.92rem; margin-bottom: 0.6em; }
.lead { font-size: 1.22rem; color: var(--soft); }

/* buttons */
.btn { display: inline-block; background: var(--leaf-dark); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 999px; box-shadow: 0 4px 0 var(--leaf-deeper); transition: transform 0.12s, background 0.12s; }
.btn:hover { background: #1a6b2d; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--leaf-deeper); }
.btn-small { padding: 9px 18px; font-size: 1rem; box-shadow: 0 3px 0 var(--leaf-deeper); white-space: nowrap; }
.btn-big { font-size: 1.25rem; padding: 17px 34px; }
.text-link { font-weight: 700; color: var(--leaf-deeper); text-decoration: none; }
.text-link::after { content: ' →'; }
.text-link:hover { color: var(--ink); text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.site-nav a:hover { color: var(--leaf-dark); text-decoration: underline; }
@media (max-width: 920px) {
  .site-nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .brand img { height: 42px; }
}

/* hero */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #e2f2ff 60%, var(--sky-light) 100%); padding: 56px 0 150px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
.hero-copy h1 { color: var(--ink); }
.for-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.for-list li { background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 1rem; box-shadow: var(--lift); }
.for-list li:nth-child(1) { color: #1d4f9e; }
.for-list li:nth-child(2) { color: #a8391f; }
.for-list li:nth-child(3) { color: #6a32b0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-note { margin-top: 18px; font-size: 1rem; color: var(--soft); }
.hero-art { position: relative; height: 600px; }
.hero-art .phone { position: absolute; }
.phone-front { width: 290px; right: 40px; top: 0; z-index: 2; }
.phone-back { width: 240px; left: 0; top: 70px; transform: rotate(-7deg); z-index: 1; }
.sprig { position: absolute; z-index: 3; width: 118px; right: -6px; bottom: -78px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; display: block; }
@media (max-width: 920px) {
  .hero { padding: 36px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 470px; max-width: 440px; margin: 0 auto; width: 100%; }
  .phone-front { width: 220px; right: 12%; }
  .phone-back { width: 180px; left: 6%; top: 56px; }
  .sprig { width: 92px; right: 2%; bottom: -66px; }
}

/* device frames */
.phone, .tablet, .laptop { margin: 0; background: var(--bezel); box-shadow: var(--lift-high); }
.phone { border: 9px solid var(--bezel); border-radius: 38px; }
.phone img { display: block; width: 100%; border-radius: 29px; }
.tablet { border: 14px solid var(--bezel); border-radius: 32px; }
.tablet img { display: block; width: 100%; border-radius: 18px; }
.laptop { position: relative; border: 12px solid var(--bezel); border-bottom-width: 14px; border-radius: 18px 18px 8px 8px; margin-bottom: 26px; }
.laptop img { display: block; width: 100%; border-radius: 6px; }
.laptop::after { content: ''; position: absolute; left: -8%; right: -8%; bottom: -30px; height: 16px; background: linear-gradient(#d6ddd8, #a9b3ad); border-radius: 0 0 16px 16px; box-shadow: 0 8px 16px rgba(30, 51, 38, 0.16); }

/* promise strip */
.promise { background: #fff; border-bottom: 1px solid var(--line); }
.promise-list { list-style: none; margin: 0 auto; padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.promise-list strong { font-size: 1.15rem; }
.promise-list span:not(.dot) { grid-column: 2; color: var(--soft); font-size: 1rem; line-height: 1.4; }
.dot { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; align-self: start; margin-top: 7px; }
.dot-coral { background: var(--coral); } .dot-blue { background: var(--blue); } .dot-purple { background: var(--purple); } .dot-teal { background: var(--teal); }
@media (max-width: 920px) { .promise-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise-list { grid-template-columns: 1fr; gap: 14px; } }

/* bands */
.band { padding: 88px 0; }
.band-sky { background: var(--sky-band); }
.band-cream { background: var(--cream); }
.section-head { max-width: 780px; margin-bottom: 44px; }
@media (max-width: 700px) { .band { padding: 64px 0; } }

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--lift); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.steps li:nth-child(1) .step-num { background: #2563c9; }
.steps li:nth-child(2) .step-num { background: #b9442a; }
.steps li:nth-child(3) .step-num { background: var(--leaf-dark); }
.steps p { color: var(--soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* reading features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.feature { background: #fff; border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: var(--lift); }
.feature img { display: block; width: 100%; height: 160px; object-fit: contain; border-radius: 14px; margin-bottom: 16px; background: #1d3557; }
.feature h3, .feature p { padding: 0 8px; }
.feature p { color: var(--soft); font-size: 1.02rem; margin: 0; }
@media (max-width: 1040px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 40px; margin-bottom: 16px; color: var(--soft); }
.check-list li strong { color: var(--ink); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); }
.check-list li::after { content: ''; position: absolute; left: 9px; top: 8px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }

.scope { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--lift); }
.scope-title { margin-bottom: 14px; }
.scope-list { margin: 0; }
.scope-list div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.scope-list dt { font-weight: 700; color: var(--brown); }
.scope-list dd { margin: 0; color: var(--soft); font-size: 1.02rem; line-height: 1.5; }
.scope-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; align-items: start; }
.scope-cards img { border-radius: 12px; display: block; }
@media (max-width: 520px) { .scope-list div { grid-template-columns: 1fr; gap: 2px; } }

/* split sections */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-flip .split-copy { order: 2; }
.split-art { position: relative; display: flex; justify-content: center; }
.split-art .phone { width: 280px; }
.float-card { position: absolute; width: 300px; left: 0; bottom: -18px; border-radius: 16px; box-shadow: var(--lift-high); }
.split-art.tablets, .split-art.pair { display: block; position: relative; }
.tablets { min-height: 690px; }
.tablets .tablet { position: absolute; left: 0; top: 0; width: 62%; z-index: 2; }
.tablets .tablet-back { left: auto; top: auto; right: 0; bottom: 0; width: 54%; z-index: 1; }
.pair { min-height: 640px; }
.pair .phone { position: absolute; }
.pair .phone-pair-front { width: 270px; right: 6%; top: 0; z-index: 2; }
.pair .phone-pair-back { width: 230px; left: 4%; top: 80px; transform: rotate(-6deg); z-index: 1; }
.typing-row { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; max-width: 960px; margin: 0 auto; }
.typing-row p { color: var(--soft); }
.tablet-small { border-width: 12px; border-radius: 28px; }
@media (max-width: 760px) { .typing-row { grid-template-columns: 1fr; } .tablet-small { max-width: 300px; margin: 0 auto; } }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-flip .split-copy { order: 0; }
  .tablets { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 560px; margin: 0 auto; width: 100%; }
  .pair { min-height: 0; height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .pair .phone-pair-front { width: 220px; right: 4%; }
  .pair .phone-pair-back { width: 190px; left: 2%; top: 60px; }
  .float-card { width: min(260px, 52%); left: 0; }
}

/* games */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--lift); display: flex; flex-direction: column; }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.game-head img { width: 60px; height: 60px; border-radius: 15px; box-shadow: var(--lift); }
.game-head h3 { margin: 0; }
.phone-small { width: 230px; margin: 0 auto 20px; box-shadow: var(--lift); }
.game p { color: var(--soft); font-size: 1.04rem; margin: 0; }
@media (max-width: 1000px) { .games { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .games { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 22px 18px; margin: 0 -22px; }
  .game { flex: 0 0 82%; scroll-snap-align: center; }
  .phone-small { width: 200px; }
}
.hub-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; margin-top: 64px; }
.hub-row p { color: var(--soft); }
@media (max-width: 860px) { .hub-row { grid-template-columns: 1fr; } }

/* subjects */
.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 64px; }
.subject { border-radius: var(--radius); padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--c); box-shadow: var(--lift); }
.subject h3 { margin-bottom: 2px; }
.subject-grades { font-weight: 700; color: var(--c-text); margin-bottom: 10px; }
.subject p:last-child { color: var(--soft); font-size: 1.02rem; margin: 0; }
.subject-reading { --c: var(--leaf); --c-text: var(--leaf-dark); }
.subject-math { --c: var(--coral); --c-text: #a8391f; }
.subject-typing { --c: var(--blue); --c-text: #1d4f9e; }
.subject-scripture { --c: var(--purple); --c-text: #6a32b0; }
@media (max-width: 1000px) { .subjects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .subjects { grid-template-columns: 1fr; } }

/* standards */
.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.standard { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--lift); border-left: 6px solid var(--leaf); }
.standard:nth-child(2) { border-color: var(--blue); } .standard:nth-child(3) { border-color: var(--coral); }
.standard:nth-child(4) { border-color: var(--purple); } .standard:nth-child(5) { border-color: var(--teal); } .standard:nth-child(6) { border-color: var(--sun); }
.standard p { color: var(--soft); margin: 0; font-size: 1.04rem; }
@media (max-width: 960px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .standards { grid-template-columns: 1fr; } }

/* fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fit-col { border-radius: var(--radius); padding: 28px; }
.fit-is { background: #eaf7ee; }
.fit-add { background: var(--cream); border: 1px solid #f0e4c8; }
.fit-col ul { margin: 0; padding-left: 1.2em; color: var(--soft); }
.fit-col li { margin-bottom: 8px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq details { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: var(--lift); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.15rem; position: relative; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--soft); }

/* closing call to action */
.cta-band { position: relative; background: linear-gradient(180deg, var(--sky-light), var(--sky)); padding: 80px 0 150px; overflow: hidden; }
.cta { display: flex; align-items: center; gap: 36px; max-width: 860px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--soft); }
.cta-sprig { width: 120px; flex: none; }
.cta-mail { margin: 16px 0 0; }
@media (max-width: 600px) { .cta { flex-direction: column; text-align: center; gap: 18px; } .cta-sprig { width: 96px; } }

/* inner pages */
.page-head { background: linear-gradient(180deg, var(--sky), var(--sky-light)); padding: 64px 0 44px; margin-bottom: 44px; }
.page-head .lead { max-width: 760px; margin: 0; }
.page-head .meta { color: var(--soft); margin: 0; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }
.page-split { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.page-art { position: sticky; top: 100px; padding-bottom: 60px; }
.page-art .phone { width: 280px; }
.page-art .float-card { position: static; width: 100%; margin-top: 26px; }
.page-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
@media (max-width: 900px) { .page-split { grid-template-columns: 1fr; } .page-art { position: static; } .page-art .phone { margin: 0 auto; width: 240px; } }
.contact-card { background: var(--sky-band); border-radius: var(--radius); padding: 8px 24px; margin-bottom: 26px; }
.contact-row h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brown); margin: 16px 0 4px; }
.contact-row p { font-size: 1.25rem; font-weight: 700; }
.faq-plain h3 { margin: 1.4em 0 0.3em; }
.draft-note { background: #fff6dc; border: 1px solid #f0d58a; border-radius: 14px; padding: 14px 18px; }

/* footer */
.site-footer { background: var(--ink); color: #dfeae2; padding: 44px 0 30px; }
.site-footer a { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { text-decoration: none; font-weight: 700; }
.foot-nav a:hover { text-decoration: underline; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 6px; font-size: 1rem; }
.foot-fine { font-size: 0.95rem; color: #b9cbbf; margin: 0; }
