/* Talk English Kids website: one stylesheet for every page.
   Fonts are hosted here (no Google Fonts call), so visitors' browsers contact no one else. */
@font-face { font-family: "Baloo 2"; src: url(fonts/baloo2-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --sky: #d9eefb; --meadow: #bfe39a; --spruce: #2c5a4a; --spruce-dark: #1d3d32;
  --maple: #e04a2f; --maple-dark: #a8321d; --sun: #ffc845;
  --ink: #22313a; --ink-soft: #3d4d55; --paper: #ffffff; --good: #2e9a5b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; color: var(--ink); background: var(--sky); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); }
a:hover { color: var(--spruce-dark); }
:focus-visible { outline: 3px solid var(--maple); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Baloo 2", Nunito, sans-serif; font-weight: 800; color: var(--spruce); line-height: 1.08; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 14px; z-index: 9; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--spruce); }
.brand img { width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--paper); }
.brand span { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; line-height: 1; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-weight: 800; }
.top nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; border-radius: 999px; padding: 12px 22px; min-height: 48px; }
.btn-red { background: var(--maple); color: var(--paper) !important; border-bottom: 4px solid var(--maple-dark); }
.btn-red:hover { background: #c93f27; }
.btn-store { background: var(--ink); color: var(--paper) !important; border-radius: 16px; padding: 14px 24px; font-size: 18px; }
.btn-store:hover { background: #111a20; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 24px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; }
.hero p { margin: 0; font-size: 21px; color: var(--ink-soft); max-width: 34ch; }
.badge { align-self: flex-start; background: var(--sun); font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions span { font-weight: 800; color: var(--spruce); }
.hero-pic { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-pic img { width: 100%; max-width: 460px; border-radius: 48px; border: 8px solid var(--paper); box-shadow: 0 18px 0 rgba(34,49,58,0.10); }
.hill { height: 90px; background: var(--meadow); border-radius: 50% 50% 0 0 / 100% 100% 0 0; margin-top: 48px; }
.meadow { background: var(--meadow); }

/* sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); }
.center { text-align: center; }
.lead { margin: 0; font-size: 19px; color: var(--ink-soft); }
.white { background: var(--paper); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.feature { background: var(--paper); border-radius: 24px; padding: 24px; border-bottom: 6px solid rgba(34,49,58,0.12); display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 36px; height: 36px; stroke: var(--maple); }
.feature h3 { font-size: 24px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); }
.feature.sun { background: var(--sun); justify-content: center; }
.feature.sun p { color: var(--ink); }

/* feature rows: a clean app screen in a simple phone frame, next to the words */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li { background: var(--paper); border-radius: 999px; padding: 10px 18px; font-weight: 800; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 22px; margin-top: 36px; }
.row { background: var(--paper); border-radius: 32px; padding: 28px; display: flex; align-items: center; gap: 28px; border-bottom: 6px solid rgba(34,49,58,0.12); }
.row .words { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.row h3 { font-size: clamp(26px, 2.4vw, 32px); }
.row p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.kicker { align-self: flex-start; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--maple-dark); }
.phone { flex: 0 0 200px; min-width: 0; margin: 0; }
.phone img { width: 100%; border-radius: 28px; border: 7px solid var(--ink); background: var(--ink); }
.split .phone { flex: 0 0 260px; margin: 0 auto; }

/* screenshot rows */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split.flip { flex-wrap: wrap-reverse; }
.split .words { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split .shot { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.shot img { width: 100%; max-width: 300px; border-radius: 36px; border: 6px solid var(--ink); }
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 10px 16px; border-radius: 999px; font-weight: 800; }

/* price */
.price { background: var(--spruce); color: var(--paper); }
.price h2 { color: var(--paper); }
.price .lead { color: #e6f0ec; }
.plans { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plans > div { flex: 1 1 280px; min-width: 0; }
.plan { border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.plan b { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 40px; line-height: 1.05; }
.plan.free { background: var(--paper); }
.plan.free small { color: var(--good); }
.plan.premium { background: var(--sun); }
.plan small { font-weight: 800; font-size: 15px; }

/* questions */
.faq { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border-radius: 18px; padding: 18px 22px; }
.faq summary { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 21px; cursor: pointer; color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* footer */
.foot { background: var(--ink); color: #e6ecef; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-weight: 800; }
.foot a { color: var(--sun); }
.foot a:hover { color: #ffe08a; }
.foot small { width: 100%; color: #b9c4ca; }

/* privacy and help pages */
.doc { max-width: 860px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 8px; }
.doc .card { background: var(--paper); border-radius: 28px; padding: 28px 30px; margin-top: 20px; border-bottom: 6px solid rgba(34,49,58,0.12); }
.doc .card h2 { font-size: 26px; margin-top: 26px; }
.doc .card h2:first-child { margin-top: 0; }
.doc .card p { color: var(--ink-soft); }

@media (max-width: 640px) {
  .top { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 42px; height: 42px; border-radius: 13px; }
  .brand span { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top nav { flex-wrap: nowrap; gap: 12px; }
  .top .btn-red { padding: 9px 14px; min-height: 44px; font-size: 14px; white-space: nowrap; }
  .top nav .hide-sm { display: none; }
  .hero-pic img { max-width: 280px; border-radius: 36px; border-width: 6px; }
  .row { flex-direction: column; padding: 24px 20px; border-radius: 28px; }
  .row .words { flex: 1 1 auto; }
  .phone, .split .phone { width: 220px; flex: 0 0 auto; }
  .hero { gap: 28px; }
  .hero p { font-size: 19px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .doc .card { padding: 22px 20px; }
}
/* trust row, journey, final call */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0 auto; padding-top: 4px; list-style: none; font-weight: 800; color: var(--spruce); text-align: center; }
.trust li { display: flex; align-items: baseline; gap: 6px; }
.trust b { font-family: "Baloo 2", sans-serif; font-size: 26px; line-height: 1; color: var(--maple-dark); }
.journey { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: lv; }
.journey li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 58px; position: relative; background: var(--sky); border-radius: 18px; counter-increment: lv; }
.journey li::before { content: counter(lv); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }
.journey li:first-child { background: #e6f5d6; }
.journey b { color: var(--spruce); }
.journey span { color: var(--ink-soft); }
.split .words > p { margin: 0; color: var(--ink-soft); }
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 24px; padding-bottom: 80px; }
.final img { width: 120px; border-radius: 32px; border: 5px solid var(--paper); }
.final h2 { font-size: clamp(32px, 4vw, 48px); }
.final .lead { max-width: 40ch; }

/* motion: hover effects only with a real mouse; nothing moves with Reduce Motion on */
.btn, .row, .plan, .phone img { transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
  .row:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(34,49,58,0.06); }
  .row:hover .phone img { transform: rotate(-1deg); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-pic img { animation: bob 4s ease-in-out 900ms infinite; }
  .hero-text > * { animation: fadeup 600ms ease-out both; }
  .hero-text > :nth-child(2) { animation-delay: 120ms; }
  .hero-text > :nth-child(3) { animation-delay: 240ms; }
  .hero-text > :nth-child(4) { animation-delay: 360ms; }
  /* scroll reveals: browsers without scroll-driven animations just show everything */
  @supports (animation-timeline: view()) {
    .row, .journey li, .plan, .faq details, .final > * { animation: fadeup linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* tap targets */
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { min-height: 44px; display: list-item; }
@media (max-width: 640px) { .trust { gap: 8px 18px; font-size: 15px; } .trust b { font-size: 22px; } .final { padding-bottom: 56px; } }
@media (max-width: 359px) {
  .wrap { padding: 0 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 16px; }
  .top .btn-red { padding: 8px 12px; font-size: 14px; }
  .pills li { padding: 8px 14px; font-size: 15px; }
  .row { padding: 22px 16px; }
}
