/* ===================================================================
   Toddler Milestones — soft & playful theme
   Shared by index.html and storefront.html
   =================================================================== */

:root {
  --cream:      #FFF9F3;
  --cream-2:    #FDEEE3;
  --ink:        #4A4458;
  --ink-soft:   #7A7488;
  --white:      #ffffff;

  --purple:     #8B6FE0;
  --purple-2:   #A98EF0;
  --purple-ink: #5B44A8;
  --peach:      #FFC7B2;
  --peach-2:    #FFE0D3;
  --mint:       #A9E0CE;
  --mint-2:     #D7F2E9;
  --yellow:     #FFE39B;
  --yellow-2:   #FFF3D1;
  --lav:        #E4DBFB;

  --shadow:     0 18px 40px -18px rgba(91, 68, 168, .28);
  --shadow-sm:  0 8px 22px -12px rgba(91, 68, 168, .30);
  --radius:     26px;
  --radius-sm:  16px;

  --maxw: 1120px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; border: 0; cursor: pointer;
  text-decoration: none; padding: .7rem 1.2rem; border-radius: 14px; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--pill { border-radius: 999px; padding: .8rem 1.5rem; }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--purple-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #362f45; }
.btn--ghost { background: #fff; color: var(--purple-ink); box-shadow: inset 0 0 0 2px var(--lav); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--purple-2); }
.btn--amazon { background: #FF9900; color: #232F3E; }
.btn--amazon:hover { background: #ffb03e; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,249,243,.82); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(139,111,224,.12); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { font-size: 1.4rem; }
.brand__text { font-weight: 500; }
.brand__text strong { color: var(--purple-ink); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 1.3rem; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav__links a:hover { color: var(--purple-ink); text-decoration: none; }
.nav__cta { color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 3px; background: var(--purple-ink); border-radius: 3px; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 600; color: var(--purple-ink); letter-spacing: .02em; margin: 0 0 .6rem; text-transform: uppercase; font-size: .82rem; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; }
.hl--purple { color: var(--purple); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; margin: 1.1rem 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--purple-ink); }
.stat__label { font-size: .85rem; color: var(--ink-soft); }
.hero__media { display: flex; justify-content: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .55; z-index: -1; }
.blob--1 { width: 320px; height: 320px; background: var(--peach-2); top: -60px; right: -60px; }
.blob--2 { width: 260px; height: 260px; background: var(--mint-2); bottom: -80px; left: -70px; }
.blob--3 { width: 180px; height: 180px; background: var(--yellow-2); top: 40%; right: 46%; }

/* ---------- hero peek card ---------- */
.peek { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; width: min(380px, 92vw); transform: rotate(-1.5deg); }
.peek__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.peek__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.peek__head strong { display: block; font-family: var(--font-head); }
.peek__head span { font-size: .8rem; color: var(--ink-soft); }
.peek__pill { margin-left: auto; background: var(--lav); color: var(--purple-ink); font-family: var(--font-head); font-weight: 600; font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; }
.peek__list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .55rem; }
.peek__list li { position: relative; padding-left: 1.8rem; font-size: .92rem; color: var(--ink-soft); }
.peek__list li::before { content: "○"; position: absolute; left: 0; color: var(--lav); font-size: 1.1rem; top: -2px; }
.peek__list li.is-checked { color: var(--ink); }
.peek__list li.is-checked::before { content: "✓"; color: #fff; background: var(--purple); width: 18px; height: 18px; border-radius: 50%; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; top: 2px; }
.peek__bar { height: 10px; border-radius: 999px; background: var(--lav); overflow: hidden; }
.peek__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-2)); border-radius: 999px; }
.peek__progress p { margin: .5rem 0 0; font-size: .82rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 2.6rem; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 600; }
.section__title a { color: var(--purple-ink); }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: .8rem; }
.grid { display: grid; gap: 1.4rem; }
.disclaimer { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 1.6rem; }

/* ===================================================================
   Interactive checklist tool
   =================================================================== */
.tool { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.4rem); max-width: 920px; margin: 0 auto; }
.tool__ages { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.8rem; }
.agebtn { font-family: var(--font-head); font-weight: 500; font-size: 1rem; background: var(--cream); color: var(--ink); border: 2px solid transparent; border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; transition: .18s; }
.agebtn:hover { border-color: var(--purple-2); }
.agebtn.is-active { background: var(--purple); color: #fff; }

.tool__progress { display: flex; align-items: center; gap: 1.4rem; background: var(--cream); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin-bottom: 1.8rem; }
.ring { --pct: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--purple) calc(var(--pct) * 1%), var(--lav) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 10px; background: var(--cream); border-radius: 50%; }
.ring span { position: relative; font-family: var(--font-head); font-weight: 700; color: var(--purple-ink); font-size: 1.1rem; }
.tool__progress-copy strong { font-family: var(--font-head); font-size: 1.1rem; }
.tool__progress-copy p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .95rem; }

.tool__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.mgroup { border: 0; margin: 0; padding: 1.1rem 1.2rem; background: var(--cream); border-radius: var(--radius-sm); }
.mgroup__title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: .7rem; display: flex; align-items: center; gap: .4rem; }
.mgroup__items { display: flex; flex-direction: column; gap: .35rem; }
.mitem { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem .3rem; border-radius: 10px; cursor: pointer; transition: background .15s; }
.mitem:hover { background: #fff; }
.mitem input { position: absolute; opacity: 0; width: 0; height: 0; }
.mitem__box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--purple-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; transition: .15s; }
.mitem__box::after { content: "✓"; color: #fff; font-size: .8rem; opacity: 0; transform: scale(.5); transition: .15s; }
.mitem input:checked + .mitem__box { background: var(--purple); border-color: var(--purple); }
.mitem input:checked + .mitem__box::after { opacity: 1; transform: scale(1); }
.mitem input:focus-visible + .mitem__box { outline: 3px solid var(--lav); outline-offset: 2px; }
.mitem__label { font-size: .96rem; }
.mitem input:checked ~ .mitem__label { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--purple-2); }

.tip-card { grid-column: 1 / -1; display: flex; gap: .9rem; align-items: flex-start; background: linear-gradient(160deg, var(--lav), #fff); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.tip-card__emoji { font-size: 1.6rem; }
.tip-card p { margin: 0; }

.tool__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }

/* ===================================================================
   Resources / shop cards
   =================================================================== */
.grid--res { grid-template-columns: repeat(4, 1fr); }
.res-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .7rem; }
.res-card h3 { font-size: 1.2rem; }
.res-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.res-card .btn { align-self: flex-start; }
.res-card__tag { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .74rem; text-transform: uppercase; padding: .22rem .6rem; border-radius: 999px; }
.res-card__tag--free { background: var(--mint-2); color: #2f8368; }
.res-card__tag--paid { background: var(--yellow-2); color: #a97b18; }
.res-card--feature { background: linear-gradient(160deg, var(--lav), #fff); border: 2px solid var(--purple-2); }

/* ===================================================================
   Apps section
   =================================================================== */
.grid--apps { grid-template-columns: repeat(3, 1fr); }
.appcard { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .8rem; position: relative; overflow: hidden; }
.appcard__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: var(--lav); }
.appcard h3 { font-size: 1.2rem; }
.appcard p { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.appcard__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { font-family: var(--font-head); font-weight: 600; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; }
.badge--pwa { background: var(--mint-2); color: #2f8368; }
.badge--ios { background: #eef1f6; color: #232F3E; }
.badge--soon { background: var(--peach-2); color: #b5533a; }
.appcard__links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }

/* ===================================================================
   About
   =================================================================== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about__media { position: relative; justify-self: center; }
.about__media img { width: min(320px, 78vw); aspect-ratio: 1; object-fit: cover; border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; border: 8px solid #fff; box-shadow: var(--shadow); background: var(--lav); }
.about__sticker { position: absolute; bottom: 8px; right: 8px; background: #fff; border-radius: 999px; padding: .4rem .7rem; box-shadow: var(--shadow-sm); font-size: 1.2rem; }
.about__copy p { color: var(--ink-soft); }
.about__copy .btn { margin-top: 1rem; }
.checklist-inline { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .5rem; }
.checklist-inline li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.checklist-inline li::before { content: "✔️"; position: absolute; left: 0; }
.about__socials { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.appcard code { background: var(--cream); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }

/* ===================================================================
   Newsletter
   =================================================================== */
.newsletter { background: linear-gradient(135deg, var(--purple), var(--purple-2)); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; box-shadow: var(--shadow); }
.newsletter__copy h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
.newsletter__copy p { margin: .6rem 0 0; opacity: .92; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .7rem; }
.newsletter__form input { flex: 1 1 220px; border: 0; border-radius: 999px; padding: .85rem 1.2rem; font-family: var(--font-body); font-size: 1rem; }
.newsletter__msg { flex-basis: 100%; margin: .3rem 0 0; font-weight: 700; min-height: 1.2em; }

/* ===================================================================
   Follow card
   =================================================================== */
.follow-card { display: flex; align-items: center; gap: 1.6rem; background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.follow-card__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid var(--lav); background: var(--lav); }
.follow-card__body { flex: 1 1 260px; }
.follow-card__body h2 { font-size: 1.5rem; font-weight: 600; }
.follow-card__body p { margin: .3rem 0 .6rem; color: var(--ink-soft); }
.follow-card__stats { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.follow-card__stats strong { color: var(--purple-ink); }
.follow-card__btns { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ===================================================================
   Footer
   =================================================================== */
.footer { background: #fff; border-top: 1px solid rgba(139,111,224,.12); padding-top: 3rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer__brand .brand__text { font-family: var(--font-head); font-size: 1.3rem; }
.footer__brand p { color: var(--ink-soft); max-width: 34ch; margin-top: .6rem; font-size: .95rem; }
.footer__col h4 { font-size: 1rem; margin-bottom: .8rem; }
.footer__col a { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .5rem; }
.footer__col a:hover { color: var(--purple-ink); text-decoration: none; }
.footer__base { border-top: 1px solid rgba(139,111,224,.12); text-align: center; padding: 1.2rem 0; }
.footer__base p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

/* ===================================================================
   Storefront (Amazon) page
   =================================================================== */
.page-hero { text-align: center; padding: clamp(2.4rem, 6vw, 4rem) 0 1rem; position: relative; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; margin: 1rem auto 1.4rem; }

.disclosure { background: var(--yellow-2); border: 1px solid #f1d78a; border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: #7a5a12; font-size: .9rem; max-width: 860px; margin: 0 auto 2.4rem; }
.disclosure strong { color: #614509; }

.shop-cats { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }

.grid--shop { grid-template-columns: repeat(4, 1fr); }
.prod { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.prod__media { aspect-ratio: 1; background: var(--cream-2); display: grid; place-items: center; font-size: 3rem; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.prod__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prod__cat { font-family: var(--font-head); font-weight: 600; font-size: .72rem; text-transform: uppercase; color: var(--purple-ink); }
.prod__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.prod__desc { font-size: .88rem; color: var(--ink-soft); flex: 1; margin: 0; }
.prod .btn { margin-top: .4rem; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .grid--res, .grid--shop { grid-template-columns: repeat(2, 1fr); }
  .grid--apps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .tool__groups { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about__copy .btn { margin-inline: auto; }
  .newsletter { grid-template-columns: 1fr; text-align: center; }
  .newsletter__form { justify-content: center; }
  .follow-card { text-align: center; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--cream); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .7rem 0; width: 100%; }
  .nav__cta { margin-top: .5rem; }
  .grid--res, .grid--apps, .grid--shop { grid-template-columns: 1fr; }
  .tool__progress { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ===================================================================
   Print — only the checklist
   =================================================================== */
@media print {
  .nav, .hero, #resources, #about, #newsletter, #follow, .footer,
  .tool__actions, .section__head .eyebrow, .blob { display: none !important; }
  body { background: #fff; }
  .tool { box-shadow: none; padding: 0; }
  .mgroup { break-inside: avoid; border: 1px solid #ddd; }
  .tip-card { background: #f5f5f5; }
}
