/* ============================================================
   Little Sprigs — the welcome page (littlesprigs.ie).
   The site's own font stack and the app's palette (src/theme.js T):
   ink, cream, sky, sun, AA green, blue vowels / pink consonants,
   white cards with the 0 6px 0 drop. Andika is served from this site
   (/fonts/andika.woff2), never from Google, so no visitor's address
   goes to a font company. The other website pages still use site.css.
   ============================================================ */
@font-face {
  font-family: 'Andika';
  src: url('/fonts/andika.woff2') format('woff2');
  font-display: swap;
}
:root {
  --ink: #2B3A55;
  --ink-soft: #5A6B8C;
  --cream: #FFF9EC;
  --cream-2: #FDF4DF;
  --sky: #DFF3FF;
  --sun: #FFC94D;
  --sun-dark: #E8A81F;
  --green: #21804B;
  --green-dark: #165C35;
  --mint: #E3F5EA;
  --blush: #FDE7EE;
  --butter: #FFF1CC;
  --vowel: #3F6BD0;
  --vowel-dark: #2D51A8;
  --cons: #C63F6C;
  --cons-dark: #A02E56;
  --card: #FFFFFF;
  --edge: #E9DFC6;
  --edge-cool: #D8E0EC;
  --device: #1E2A40;
  --ui: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --learn: 'Andika', 'Comic Sans MS', 'Chalkboard SE', 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--ui); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
[hidden], .hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--vowel); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.band { padding-block: 72px; }
.band.alt { background: var(--cream-2); }
.band.white { background: var(--card); }
.band.sky { background: var(--sky); }
.center { text-align: center; }
.eyebrow { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px; }
.title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.lead { color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 19px); max-width: 640px; }
.center .lead { margin-inline: auto; }
.lead.more-lead { font-size: 16.5px; margin-top: 8px; max-width: 700px; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 18px; border: none; font-family: var(--ui); font-size: 17px; text-decoration: none; white-space: nowrap; transition: transform .12s ease; }
.btn:active { transform: translateY(3px); }
.btn-green { background: var(--green); color: #FFFFFF; box-shadow: 0 5px 0 var(--green-dark); }
.btn-green:hover { background: #1C7342; color: #FFFFFF; }
.btn-white { background: var(--card); color: var(--ink); box-shadow: 0 5px 0 var(--edge-cool); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* ----- letter tiles (vowels blue, consonants pink, as in the app) ----- */
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 38px; padding: 0 6px; border-radius: 10px; color: #FFFFFF; font-family: var(--learn); font-weight: 700; font-size: 21px; line-height: 1; }
.tile.v { background: var(--vowel); box-shadow: 0 4px 0 var(--vowel-dark); }
.tile.c { background: var(--cons); box-shadow: 0 4px 0 var(--cons-dark); }

/* ----- devices ----- */
.phone { width: 240px; max-width: 100%; aspect-ratio: 390 / 844; border-radius: 40px; background: var(--device); padding: 9px; box-shadow: 0 30px 50px -28px rgba(30,42,64,.55); flex: none; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }

/* ----- header, with a phone-sized menu ----- */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,249,236,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid #F0E6CF; }
header.site .bar { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand span { font-size: 22px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 12px; border-radius: 12px; white-space: nowrap; }
.nav-links a:hover { background: #F3ECD9; color: var(--ink); }
.cta-short { display: none; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--edge-cool); background: var(--card); color: var(--ink); font-size: 15px; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-panel { border-top: 2px solid #F0E6CF; background: var(--cream); }
.menu-panel a { display: block; padding: 16px; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #F0E6CF; }
.menu-panel a:last-child { border-bottom: none; }
@media (max-width: 980px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 821px) { .menu-panel { display: none !important; } }
@media (max-width: 420px) {
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand span { font-size: 19px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .menu-btn .menu-word { display: none; }
}

/* ----- hero: the garden ----- */
.hero { position: relative; background: var(--sky); padding: 44px 0 0; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; position: relative; z-index: 1; padding-bottom: 40px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 16px 6px 8px; font-size: 14px; box-shadow: 0 3px 0 #CBE3F3; margin-bottom: 18px; }
.chip img { width: 30px; height: 25px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin-bottom: 14px; }
.hero .lead { color: #3E4D6B; margin-bottom: 24px; font-size: clamp(18px, 2vw, 21px); }
.mini-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mini-icons span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 14.5px; box-shadow: 0 3px 0 #CBE3F3; }
.mini-icons svg, .mini-icons img { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); padding: 3px; flex: none; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; min-width: 0; }
.bloom { position: relative; width: min(400px, 84vw); aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; box-shadow: 0 30px 50px -30px rgba(30,42,64,.4); display: flex; align-items: center; justify-content: center; }
.bloom > img { width: 80%; height: auto; }
.bloom .sticker { position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; box-shadow: 0 6px 0 #CBE3F3; display: flex; align-items: center; justify-content: center; }
.bloom .sticker img { width: 70%; height: 70%; object-fit: contain; }
.bloom .s1 { top: -2%; left: 2%; }
.bloom .s2 { top: 4%; right: -4%; }
.bloom .s3 { bottom: 16%; right: -8%; }
.bloom .pip { position: absolute; left: -6%; bottom: -6%; width: 36%; height: auto; }
.ground-wrap { position: relative; margin-top: -36px; height: 96px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 520px) {
  .bloom { width: 76vw; margin: 8px 0 12px; }
  .bloom .s3 { right: -6%; }
  .bloom .pip { left: -4%; }
}

/* ----- tap a letter ----- */
.tap { background: var(--sun); }
.tap-grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center; }
.tap .phone { width: 230px; transform: rotate(-3deg); }
.play { flex: 1 1 380px; max-width: 520px; min-width: 0; background: var(--card); border-radius: 34px; padding: 26px 22px 22px; box-shadow: 0 8px 0 var(--sun-dark); position: relative; }
.play h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; padding-right: 84px; }
.play .sub { color: var(--ink-soft); margin-bottom: 18px; padding-right: 84px; }
.play .pip { position: absolute; right: 14px; top: 12px; width: 80px; height: 80px; }
.letters { display: flex; flex-wrap: wrap; gap: clamp(6px, 1.6vw, 10px); justify-content: center; }
.letters button { width: clamp(42px, 11vw, 64px); height: clamp(50px, 12.5vw, 70px); border: none; border-radius: 18px; color: #FFFFFF; font-family: var(--learn); font-weight: 700; font-size: clamp(30px, 8vw, 42px); line-height: 1; transition: transform .15s ease; touch-action: manipulation; }
.letters .v { background: var(--vowel); box-shadow: 0 6px 0 var(--vowel-dark); }
.letters .c { background: var(--cons); box-shadow: 0 6px 0 var(--cons-dark); }
.letters button[aria-pressed="true"] { transform: translateY(-8px); }
.reveal { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; min-height: 132px; background: var(--cream); border-radius: 24px; padding: 12px; }
.reveal img { width: 120px; height: 100px; object-fit: contain; }
.reveal p { color: var(--ink-soft); font-size: 18px; }
.reveal .word { display: block; font-family: var(--learn); font-weight: 700; font-size: 46px; line-height: 1.1; color: var(--ink); }
.reveal .word span { color: var(--cons); }
.reveal .word span.v { color: var(--vowel); }
.sound-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.sound-note svg { width: 18px; height: 18px; flex: none; }
.all-sounds { text-align: center; margin-top: 10px; font-size: 16px; }
.all-sounds a { color: var(--green); font-weight: 700; text-decoration: none; padding: 8px 4px; }
.all-sounds a:hover { text-decoration: underline; }

/* ----- three corners as colour blocks ----- */
.blocks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin-top: 28px; }
.block { border-radius: 30px; padding: 26px; color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.block.pink { background: var(--cons); box-shadow: 0 6px 0 var(--cons-dark); }
.block.blue { background: var(--vowel); box-shadow: 0 6px 0 var(--vowel-dark); }
.block.green { background: var(--green); box-shadow: 0 6px 0 var(--green-dark); }
.block .head { display: flex; align-items: center; gap: 14px; }
.block .head img { width: 64px; height: 64px; object-fit: contain; background: #FFFFFF; border-radius: 18px; padding: 6px; flex: none; }
.block h3 { font-size: 26px; }
.block p { color: #FFFFFF; font-size: 17px; }
.block .strand { align-self: flex-start; font-size: 13px; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.24); color: #FFFFFF; }
.block p.more { font-size: 15.5px; opacity: .94; }
.block .art { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.block .art figure { margin: 0; flex: 0 1 33%; max-width: 92px; text-align: center; }
.block .art img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #FFFFFF; border-radius: 18px; padding: 8px; }
.block .art figcaption { font-size: 13px; margin-top: 5px; line-height: 1.25; }

/* ----- the growing garden of sets ----- */
.garden-row { margin-top: 28px; background: linear-gradient(180deg, transparent 58%, #CFEBB5 58%); border-radius: 30px; padding: 10px clamp(8px, 2vw, 16px) 16px; display: flex; justify-content: space-around; align-items: flex-end; gap: clamp(2px, 1vw, 6px); }
.garden-row figure { margin: 0; text-align: center; flex: 1 1 0; min-width: 0; }
.garden-row img { width: 100%; max-width: 92px; height: auto; }
.garden-row figcaption { font-size: clamp(11px, 2.8vw, 14px); line-height: 1.3; }
.garden-row .free { display: inline-block; background: var(--green); color: #FFFFFF; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.orders { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.orders > div { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--card); border-radius: 20px; padding: 14px 18px; box-shadow: 0 4px 0 var(--edge); }
.orders small { font-size: 13px; color: var(--ink-soft); }

/* ----- today's lesson ----- */
.lesson { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.lesson-copy { flex: 1 1 420px; min-width: 0; max-width: 560px; }
.lesson-copy .lesson-more { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.flow div { background: var(--card); border-radius: 22px; padding: 16px 12px; text-align: center; box-shadow: 0 4px 0 var(--edge); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15.5px; }
.flow svg, .flow img { width: 56px; height: 56px; object-fit: contain; }

/* ----- promises: a picture for each ----- */
.wall { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
@media (min-width: 1000px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brick { position: relative; border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.brick .ic { width: 78px; height: 78px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.brick .ic svg { width: 58px; height: 58px; }
.brick .ic img { width: 60px; height: 52px; object-fit: contain; }
.brick h3 { font-size: 20px; margin-top: 4px; }
.brick p { font-size: 15px; }
/* The second line on each promise: there is room for it on a tablet or a
   computer; on a phone the two-across tiles keep to their one line. */
.brick p.more { font-size: 14px; opacity: .9; }
@media (max-width: 599px) { .brick p.more { display: none; } }
.b-pink { background: var(--cons); color: #FFFFFF; }
.b-blue { background: var(--vowel); color: #FFFFFF; }
.b-green { background: var(--green); color: #FFFFFF; }
.b-sun { background: var(--sun); color: var(--ink); }
.b-sky { background: var(--sky); color: var(--ink); }
.b-mint { background: var(--mint); color: var(--ink); }
.b-blush { background: var(--blush); color: var(--ink); }
.b-butter { background: var(--butter); color: var(--ink); }
.b-sun p, .b-sky p, .b-mint p, .b-blush p, .b-butter p { color: #3F4C66; }
/* A tile that leads somewhere (Classroom mode → /schools/): the whole tile is
   the link, marked by a small arrow rather than an underline, so its heading
   sits like the others. */
.brick a { color: inherit; text-decoration: none; }
.brick a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.brick a .go { font-size: .9em; }
.brick:hover a { text-decoration: underline; text-underline-offset: 3px; }
.brick a:focus-visible { outline: none; }
.brick:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 479px) {
  .wall { gap: 10px; }
  .brick { padding: 14px; min-height: 170px; border-radius: 22px; }
  .brick .ic { width: 62px; height: 62px; }
  .brick .ic svg { width: 46px; height: 46px; }
  .brick .ic img { width: 48px; height: 42px; }
  .brick h3 { font-size: 17px; }
  .brick p { font-size: 14px; }
}

/* ----- made in Ireland ----- */
.maker { background: var(--butter); border-radius: 34px; padding: clamp(22px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.maker img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: none; border: 6px solid #FFFFFF; }
.maker div { flex: 1 1 320px; min-width: 0; }
.maker p.big { font-size: clamp(20px, 2.3vw, 25px); line-height: 1.4; margin-bottom: 8px; }
.maker p.maker-more { color: #4A3D14; font-size: 16.5px; margin-bottom: 10px; }
.maker p.who { color: #5C4A16; }

/* ----- parents' words (switched on in index.html once quotes are approved) ----- */
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 24px; }
.quote { margin: 0; background: var(--cream); border-radius: 24px; padding: 24px; box-shadow: 0 4px 0 var(--edge); }
.quote blockquote { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.quote figcaption { color: var(--ink-soft); font-size: 15px; }

/* ----- pricing ----- */
.prices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.price { background: var(--card); border-radius: 24px; padding: 28px 24px; box-shadow: 0 6px 0 var(--edge); display: flex; flex-direction: column; gap: 8px; position: relative; }
.price.featured { outline: 3px solid var(--green); }
.price .flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: #FFFFFF; font-size: 13px; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price h3 { font-size: 19px; }
.price .amount { font-size: 42px; line-height: 1; }
.price .amount s { font-size: 22px; color: var(--ink-soft); }
.price .per { color: var(--ink-soft); font-size: 14.5px; }
.price p.what { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.price .btn { width: 100%; margin-top: 8px; }

/* ----- the founding-price sign-up ----- */
.join { background: var(--green); border-radius: 34px; padding: clamp(26px, 5vw, 44px); color: #FFFFFF; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.join > div { flex: 1 1 320px; min-width: 0; }
.join h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.join p { color: #FFFFFF; font-size: 18px; }
.join .pip-j { width: 110px; margin-top: 12px; }
.form { flex: 1 1 340px; min-width: 0; background: var(--card); color: var(--ink); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 7px 0 rgba(0,0,0,.12); }
.form label { font-size: 15px; }
.form input[type="text"], .form input[type="email"], .form select { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; font-family: var(--ui); border: 2px solid var(--edge-cool); border-radius: 14px; background: #FBFDFF; color: var(--ink); margin-bottom: 8px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 12px; }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form .btn { width: 100%; box-shadow: 0 5px 0 #0E3F23; }

/* ----- questions ----- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 20px; padding: 0 22px; box-shadow: 0 4px 0 var(--edge); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 64px; font-size: 17.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; color: var(--green-dark); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; }

/* ----- footer: company particulars ----- */
footer.site { background: var(--ink); color: #DDE6F5; padding: 40px 0; font-size: 14.5px; }
footer.site .foot { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: #FFFFFF; display: inline-block; padding: 6px 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: #FFFFFF; margin-bottom: 4px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 10px; }
footer.site .made { color: #A9B9D4; text-align: right; max-width: 560px; }
footer.site .company { display: inline-block; margin-top: 4px; font-size: 13px; }
@media (max-width: 720px) { footer.site .made { text-align: left; } .band { padding-block: 56px; } }
@media (max-width: 560px) { .hide-narrow { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
