/* DailyPrep Kids — Kindergarten-to-Primary Daily Practice */
:root {
  --cream: #fff8ec;
  --cream-2: #fff3d9;
  --line: #f3e3c3;
  --ink: #3d3229;
  --ink-soft: #7a6a58;
  --brand: #f2704f;
  --brand-dark: #e05a38;
  --sun: #f7b32b;
  --leaf: #4caf7d;
  --sky: #5c8def;
  --radius: 22px;
  --shadow: 0 10px 24px rgba(93, 64, 28, 0.12);
  --shadow-lg: 0 22px 44px rgba(93, 64, 28, 0.2);
  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  /* every screenshot in the app is 1216x2640 — devices keep this exact ratio, so nothing is ever squashed */
  --shot-ratio: 1216 / 2640;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
[id] { scroll-margin-top: 92px; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .paw { font-size: 1.6rem; }
.logo .brand-accent { color: var(--brand); }
.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: 0.95rem;
}
.main-nav a:hover { background: var(--cream-2); text-decoration: none; }
.main-nav a.active { background: var(--brand); color: #fff; }
.nav-toggle {
  display: none; border: 2px solid var(--brand); background: none; color: var(--brand);
  font-size: 1.3rem; border-radius: 10px; padding: 4px 12px; cursor: pointer; font-weight: 700;
}

/* ---------- Device mockups (screenshots keep their real 1216x2640 ratio) ---------- */
.device {
  position: relative;
  aspect-ratio: var(--shot-ratio);
  border-radius: 30px;
  overflow: hidden;
  background: #2f2a25;
  box-shadow: 0 0 0 7px #2f2a25, 0 0 0 9px rgba(255, 255, 255, 0.55), var(--shadow-lg);
  flex: 0 0 auto;
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device::after {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 26%; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.32);
}
.device-hero { height: clamp(400px, 40vw, 540px); }
.device-lg { height: clamp(340px, 34vw, 470px); }
.device-fill { height: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--cream-2); color: var(--brand-dark);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 28px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 800; font-family: var(--font-display); font-size: 1.02rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }

.phone-wrap { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.float-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 8px 14px;
  font-weight: 800; font-family: var(--font-display); box-shadow: var(--shadow); font-size: 0.95rem;
  border: 1px solid var(--line);
}
.chip-1 { top: 6%; left: 2%; color: var(--sky); transform: rotate(-6deg); }
.chip-2 { top: 44%; right: 2%; color: var(--leaf); transform: rotate(5deg); }
.chip-3 { bottom: 4%; left: 4%; color: var(--sun); transform: rotate(3deg); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 24px 18px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat .ico { font-size: 1.5rem; line-height: 1; margin-bottom: 6px; }
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--brand); font-weight: 600; line-height: 1.1; }
.stat .lbl { color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }

/* Feature trio (module highlights) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--line);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* media band holds a full phone mockup — never a squashed strip */
.feature-media {
  height: 360px; display: flex; align-items: flex-end; justify-content: center;
  padding: 26px 0 0; position: relative; overflow: hidden;
}
.feature-media .device { height: 100%; }
.feature-media .device::after { height: 4px; width: 28%; top: 6px; }
.feature-media::before {
  content: ""; position: absolute; inset: -20% -30% auto -30%; height: 70%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), transparent);
}
.media-pinyin { background: linear-gradient(165deg, #ffe3f1, #fbcee5); }
.media-math { background: linear-gradient(165deg, #e4eeff, #cfe2ff); }
.media-listening { background: linear-gradient(165deg, #efe6ff, #ddcefb); }
.feature-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-body h3 { font-size: 1.3rem; }
.feature-body p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.feature-body .more { font-weight: 800; }

/* Module cards grid */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module-card {
  border-radius: 20px; padding: 22px 20px; color: #fff; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 18px rgba(93, 64, 28, 0.18); transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative; overflow: hidden; isolation: isolate;
}
.module-card::after {
  content: ""; position: absolute; right: -34px; bottom: -44px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.15); z-index: -1;
}
.module-card:hover { transform: translateY(-4px) scale(1.02); text-decoration: none; box-shadow: 0 14px 26px rgba(93, 64, 28, 0.28); }
.module-card h3 { font-size: 1.12rem; color: #fff; }
.module-card .count { font-weight: 700; opacity: 0.92; font-size: 0.9rem; }
.module-card .go { font-size: 1.2rem; align-self: flex-end; transition: transform 0.15s ease; }
.module-card:hover .go { transform: translateX(4px); }
.g1 { background: linear-gradient(135deg, #e0518f, #b83280); }
.g2 { background: linear-gradient(135deg, #58b97c, #2e8b57); }
.g3 { background: linear-gradient(135deg, #35c3d6, #0e97a7); }
.g4 { background: linear-gradient(135deg, #6a72d8, #4549ab); }
.g5 { background: linear-gradient(135deg, #6497ef, #3f6fd8); }
.g6 { background: linear-gradient(135deg, #f2a93b, #dd8d0c); }
.g7 { background: linear-gradient(135deg, #ef7253, #d4503f); }
.g8 { background: linear-gradient(135deg, #8b63c9, #5e35b1); }

/* Check list */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.check-list li {
  background: #fff; border-radius: 16px; padding: 18px; font-weight: 800;
  box-shadow: 0 6px 14px rgba(93, 64, 28, 0.08); display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line);
}
.check-list .tick {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--leaf);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; margin-top: 2px;
}
.check-list .txt { display: block; color: var(--ink-soft); font-weight: 600; font-size: 0.94rem; margin-top: 2px; }

/* ---------- Sub pages ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #c9b795; }
.page-hero { padding: 44px 0 40px; text-align: center; }
.page-hero .icon-big { font-size: 3.4rem; line-height: 1; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); max-width: 42rem; margin: 0 auto; font-size: 1.08rem; }
.badge-count {
  display: inline-block; background: var(--sun); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 5px 18px; margin-bottom: 14px; font-size: 0.95rem;
}
.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 46px; align-items: center; }
.split h2 { font-size: 1.7rem; margin-bottom: 14px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.shot-wrap { display: flex; justify-content: center; }
.feature-pills { display: grid; gap: 12px; margin-top: 20px; }
.pill {
  background: #fff; border-radius: 14px; padding: 13px 16px; box-shadow: 0 6px 14px rgba(93,64,28,0.08);
  display: flex; gap: 10px; font-weight: 700; font-size: 0.97rem; align-items: flex-start;
  border: 1px solid var(--line);
}
.pill .pi { font-size: 1.2rem; }

/* Sample content */
.sample-box {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  margin-top: 14px; border: 1px solid var(--line);
}
.sample-box h3 { margin-bottom: 6px; }
.sample-box .note { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--cream-2); border: 2px solid #f0dfba; border-radius: 12px;
  padding: 8px 14px; font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink);
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border-radius: 16px; box-shadow: 0 6px 14px rgba(93,64,28,0.08);
  margin-bottom: 12px; padding: 16px 20px; border: 1px solid var(--line);
}
.faq summary { font-weight: 800; cursor: pointer; font-family: var(--font-display); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--brand); }
.faq details[open] summary::after { content: "－"; }
.faq p { margin-top: 10px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--sun) 100%);
  border-radius: 26px; padding: 46px 34px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { opacity: 0.94; margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }

/* Hub mini-cards reuse module-card; two-col variant */
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-card, .contact-side {
  background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-line .ci { font-size: 1.5rem; }
.contact-line h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-line p, .contact-line a { color: var(--ink-soft); font-size: 0.97rem; }
.contact-side h2 { font-size: 1.35rem; margin-bottom: 10px; }
.form-intro { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 20px; }
.btn-block { display: block; text-align: center; padding: 15px 20px; word-break: break-all; }
.tip-title { font-size: 1.05rem; margin: 26px 0 12px; }
.tip-list { list-style: none; display: grid; gap: 10px; }
.tip-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; align-items: flex-start; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Legal / privacy ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .updated { color: var(--ink-soft); font-style: italic; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #40332a; color: #e8ddcd; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; padding: 52px 0 34px;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #e8ddcd; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .about-blurb { font-size: 0.94rem; opacity: 0.85; margin-top: 10px; max-width: 26rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .phone-wrap { margin-top: 12px; }
  .device-hero { height: clamp(360px, 62vw, 460px); }
  .device-lg { height: clamp(320px, 52vw, 420px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 2px solid var(--line); padding: 10px 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .feature-media { height: 320px; }
  .sample-box, .contact-card, .contact-side { padding: 24px; }
}
