/* Two apps: Shoomi's Bakery + Math Adventure (added 2026-11). Loaded after styles.css. */
img[width][height] { height:auto; }
.button-ghost { color:var(--navy); background:#fff; border:2px solid #D5E2E0; }
.button-ghost:hover { border-color:var(--coral); color:var(--coral); }
.hero-duo { padding-bottom:40px; }
.hero-math-card { position:absolute; z-index:5; left:-26px; bottom:0; display:flex; align-items:center; gap:14px; padding:12px 20px 12px 12px; border-radius:22px; background:#fff; box-shadow:0 18px 40px rgba(23,59,77,.22); border:1px solid var(--border); transition:transform .2s ease; }
.hero-math-card:hover { transform:translateY(-3px); }
.hero-math-card img { width:74px; height:74px; border-radius:18px; object-fit:cover; }
.hero-math-card strong,.hero-math-card small { display:block; }
.hero-math-card strong { font-family:"Fredoka",sans-serif; font-size:1.25rem; color:var(--navy); line-height:1.1; }
.hero-math-card small { margin-top:3px; color:var(--coral); font-weight:900; font-size:.85rem; }
.apps-section { background:#fff; padding-bottom:40px; }
.apps-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.app-card { display:flex; flex-direction:column; overflow:hidden; border-radius:30px; background:#fff; border:1px solid var(--border); box-shadow:0 16px 44px rgba(23,59,77,.10); }
.app-card-art { height:270px; overflow:hidden; display:grid; place-items:center; }
.app-card-bakery .app-card-art { background:linear-gradient(145deg,#F7E7C9,#E7F0E9); }
.app-card-bakery .app-card-art img { height:92%; width:auto; object-fit:contain; filter:drop-shadow(0 14px 16px rgba(73,37,18,.22)); }
.app-card-math .app-card-art img { width:100%; height:100%; object-fit:cover; }
.app-card-body { display:flex; flex-direction:column; flex:1; padding:30px 32px 34px; }
.app-card-body p { color:var(--muted); margin:12px 0 22px; }
.app-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:auto; }
.store-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.store-badge { display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:6px 18px 6px 14px; border-radius:13px; background:#111; color:#fff; transition:transform .2s ease; }
.store-badge:hover { transform:translateY(-2px); }
.store-badge svg { width:24px; height:24px; fill:currentColor; flex:none; }
.store-badge span { display:flex; flex-direction:column; font-family:"Fredoka",sans-serif; font-size:1.12rem; line-height:1.05; }
.store-badge small { font-family:"Nunito",sans-serif; font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; opacity:.85; }
.store-badge-light { background:#fff; color:#141B33; }
.small-links { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.math-section { position:relative; overflow:hidden; background:radial-gradient(circle at 85% 10%,#3B3591 0%,rgba(59,53,145,0) 45%),linear-gradient(140deg,#141B48 0%,#262E78 55%,#3B2C83 100%); color:#fff; }
.math-intro { display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:center; }
.math-section .eyebrow { color:var(--gold); }
.math-tagline { margin:10px 0 18px; font-family:"Fredoka",sans-serif; font-size:1.45rem; color:#FFD27A; }
.math-copy > p { color:#D5DAF2; font-size:1.08rem; }
.math-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:26px 0 8px; }
.math-facts div { padding:14px; border-radius:16px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.12); }
.math-facts strong { display:block; font-family:"Fredoka",sans-serif; font-size:2rem; line-height:1; color:#fff; }
.math-facts span { display:block; margin-top:6px; font-size:.85rem; font-weight:800; color:#C5CBEA; line-height:1.3; }
.light-link { display:inline-block; margin-top:22px; color:#FFD27A; }
.math-shots { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.shot { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:18px; border:4px solid rgba(255,255,255,.9); box-shadow:0 22px 44px rgba(5,8,30,.45); }
.shot-main { grid-column:1 / -1; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; font-weight:800; font-size:.9rem; color:#51616A; }
.footer-links a:hover { color:var(--coral); }

/* Math Adventure page */
.ma-hero { position:relative; overflow:hidden; color:#fff; background:#131A45; }
.ma-hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.6; }
.ma-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(14,20,58,.94) 0%,rgba(14,20,58,.72) 48%,rgba(14,20,58,.12) 100%); }
.ma-hero .container { position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; min-height:620px; }
.ma-hero h1 span { color:#FFD27A; }
.ma-hero .eyebrow { color:var(--gold); }
.ma-hero p { color:#DCE1F5; font-size:1.15rem; max-width:560px; }
.ma-icon { width:min(360px,80%); justify-self:center; border-radius:64px; border:8px solid rgba(255,255,255,.9); box-shadow:0 30px 60px rgba(0,0,0,.4); }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature-card { padding:30px; border-radius:var(--radius); border:1px solid var(--border); background:#fff; box-shadow:0 12px 35px rgba(23,59,77,.07); }
.feature-card .number-icon { font-size:1.4rem; }
.feature-card p { color:var(--muted); margin-bottom:0; }
.tier-block { margin-top:40px; }
.tier-block h3 { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.tier-tag { font-family:"Nunito",sans-serif; font-size:.75rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; padding:5px 10px; border-radius:8px; }
.tier-beginner .tier-tag { background:#E2F3E7; color:#2F6B43; }
.tier-intermediate .tier-tag { background:#FFF1D2; color:#80590F; }
.tier-advanced .tier-tag { background:#ECE6FF; color:#4B3796; }
.topic-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.topic-card { padding:22px; border-radius:20px; border:1px solid var(--border); background:#fff; }
.topic-card h4 { margin:0 0 6px; font-family:"Fredoka",sans-serif; font-size:1.2rem; line-height:1.15; color:var(--navy); }
.topic-card p { margin:0 0 10px; color:var(--muted); font-size:.95rem; line-height:1.5; }
.topic-card span { font-weight:900; font-size:.82rem; color:var(--coral); }
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.gallery figure { margin:0; overflow:hidden; border-radius:22px; background:#fff; border:1px solid var(--border); box-shadow:0 12px 30px rgba(23,59,77,.08); }
.gallery img { width:100%; aspect-ratio:3/2; object-fit:cover; }
.gallery figcaption { padding:14px 18px 18px; }
.gallery figcaption strong { display:block; font-family:"Fredoka",sans-serif; font-size:1.12rem; color:var(--navy); }
.gallery figcaption span { color:var(--muted); font-size:.93rem; }
.explorers { display:grid; grid-template-columns:1fr 1.2fr; gap:50px; align-items:center; }
.explorers p { color:var(--muted); }
.explorer-cards { display:flex; justify-content:center; gap:14px; padding-top:22px; }
.explorer-cards img { width:31%; border-radius:16px; box-shadow:0 18px 36px rgba(23,59,77,.22); }
.explorer-cards img:nth-child(2) { transform:translateY(-22px); }
.plans { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:28px; }
.plan { padding:28px; border-radius:22px; background:#fff; border:2px solid var(--border); }
.plan.best { border-color:var(--gold); background:#FFFBF0; }
.plan strong { display:block; font-family:"Fredoka",sans-serif; font-size:1.5rem; color:var(--navy); }
.plan span { color:var(--muted); }
.plans-note { margin-top:18px; color:var(--muted); font-size:.95rem; }
.faq { max-width:860px; margin:0 auto; }
.faq details { border-bottom:1px solid var(--border); padding:18px 4px; }
.faq summary { cursor:pointer; font-family:"Fredoka",sans-serif; font-size:1.2rem; color:var(--navy); list-style:none; display:flex; justify-content:space-between; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--coral); font-size:1.5rem; line-height:1; }
.faq details[open] summary::after { content:"–"; }
.faq details p { margin:12px 0 0; color:var(--muted); }
.faq a { color:var(--navy); font-weight:800; text-decoration:underline; }
.soft-bg { background:linear-gradient(180deg,#F1F6F5 0%,#fff 100%); }
.policy-switch { display:inline-flex; gap:6px; margin-top:20px; padding:5px; border-radius:999px; background:#fff; border:1px solid var(--border); }
.policy-switch a { padding:7px 16px; border-radius:999px; font-weight:800; font-size:.92rem; color:#536575; }
.policy-switch a[aria-current="page"] { background:var(--navy); color:#fff; }

@media (max-width:920px) {
  .apps-grid,.math-intro,.explorers,.ma-hero .container { grid-template-columns:1fr; }
  .hero-math-card { left:12px; }
  .feature-grid,.gallery,.topic-grid { grid-template-columns:1fr 1fr; }
  .ma-hero .container { min-height:0; padding:70px 0; text-align:center; }
  .ma-hero p { margin-left:auto; margin-right:auto; }
  .ma-hero .store-row,.ma-hero .hero-actions { justify-content:center; }
  .ma-hero::after { background:rgba(14,20,58,.8); }
  .footer-wrap { flex-direction:column; text-align:center; }
  .footer-links { justify-content:center; }
}
@media (max-width:620px) {
  .feature-grid,.gallery,.topic-grid,.plans { grid-template-columns:1fr; }
  .math-facts { gap:8px; }
  .math-facts div { padding:10px; }
  .math-facts strong { font-size:1.6rem; }
  .app-card-art { height:210px; }
  .app-card-body { padding:24px 22px 26px; }
  .hero-math-card { position:relative; left:auto; margin:-34px auto 0; width:max-content; max-width:100%; }
  .hero-duo { padding-bottom:0; }
  .store-badge { flex:1 1 160px; justify-content:center; }
  .ma-icon { width:220px; border-radius:44px; }
}
