/* KidEnglish Homepage v2 — parent-first, multilingual, responsive. */

.ke2-home {
  --ke2-blue: #2a90e9;
  --ke2-blue-deep: #1768ad;
  --ke2-blue-soft: #eaf5ff;
  --ke2-green: #b2f2bb;
  --ke2-green-deep: #2d8b57;
  --ke2-purple: #7357d9;
  --ke2-orange: #ff9f43;
  --ke2-ink: #203247;
  --ke2-muted: #64748b;
  --ke2-line: #dde7f0;
  --ke2-canvas: #f7fbff;
  --ke2-white: #fff;
  --ke2-shadow: 0 18px 50px rgba(32, 50, 71, 0.11);
  --ke2-shadow-soft: 0 10px 30px rgba(32, 50, 71, 0.08);
  --ke2-radius-xl: 32px;
  --ke2-radius-lg: 24px;
  --ke2-radius-md: 18px;
  color: var(--ke2-ink);
  background: var(--ke2-white);
  overflow: hidden;
}

.ke2-home *,
.ke2-home *::before,
.ke2-home *::after {
  box-sizing: border-box;
}

.ke2-home a:focus-visible,
.ke2-home button:focus-visible,
.ke2-home summary:focus-visible {
  outline: 3px solid rgba(42, 144, 233, 0.38);
  outline-offset: 4px;
}

.ke2-section {
  padding: 92px 0;
}

.ke2-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.ke2-heading-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ke2-section-heading h2,
.ke2-adventure-copy h2,
.ke2-final-inner h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ke2-ink);
}

.ke2-section-heading p,
.ke2-adventure-copy > p,
.ke2-final-inner p {
  margin: 0;
  color: var(--ke2-muted);
  font-family: var(--ke-font-secondary, 'Poppins', sans-serif);
  font-size: 1.02rem;
  line-height: 1.8;
}

.ke2-kicker,
.ke2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ke2-blue-deep);
  letter-spacing: 0.02em;
}

.ke2-kicker-light {
  color: #dff6ff;
}

.ke2-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ke2-btn:hover {
  transform: translateY(-2px);
}

.ke2-btn-primary {
  background: var(--ke2-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(42, 144, 233, 0.25);
}

.ke2-btn-primary:hover {
  background: var(--ke2-blue-deep);
  color: #fff;
}

.ke2-btn-secondary {
  border: 1px solid rgba(42, 144, 233, 0.22);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ke2-blue-deep);
}

.ke2-btn-light {
  background: #fff;
  color: var(--ke2-blue-deep);
  box-shadow: 0 12px 30px rgba(5, 31, 54, 0.18);
}

/* Hero */
.ke2-hero {
  position: relative;
  padding: 148px 0 80px;
  background:
    radial-gradient(circle at 84% 16%, rgba(178, 242, 187, 0.72) 0, rgba(178, 242, 187, 0) 32%),
    radial-gradient(circle at 13% 20%, rgba(255, 235, 59, 0.2) 0, rgba(255, 235, 59, 0) 26%),
    linear-gradient(145deg, #eef8ff 0%, #f8fcff 50%, #eefbf2 100%);
}

.ke2-hero::after {
  content: '';
  position: absolute;
  inset: auto -8% -110px auto;
  width: 370px;
  height: 370px;
  border-radius: 50%;
  background: rgba(42, 144, 233, 0.07);
  pointer-events: none;
}

.ke2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  gap: 64px;
  align-items: center;
}

.ke2-hero-copy h1 {
  max-width: 800px;
  margin: 20px 0 22px;
  font-size: clamp(2.65rem, 5.3vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ke2-ink);
}

.ke2-hero-copy h1 span {
  display: block;
  color: var(--ke2-blue);
}

.ke2-hero-lead {
  max-width: 720px;
  margin: 0;
  color: #51677e;
  font-family: var(--ke-font-secondary, 'Poppins', sans-serif);
  font-size: 1.08rem;
  line-height: 1.82;
}

.ke2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ke2-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #445b70;
  font-size: 0.94rem;
  font-weight: 700;
}

.ke2-trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ke2-trust-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #def7e5;
  color: #207649;
  font-size: 0.75rem;
}

.ke2-hero-visual {
  min-height: 535px;
  position: relative;
  border-radius: 42px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(234, 245, 255, 0.86));
  border: 1px solid rgba(42, 144, 233, 0.12);
  box-shadow: var(--ke2-shadow);
  overflow: hidden;
}

.ke2-hero-orbit {
  position: absolute;
  border: 1px dashed rgba(42, 144, 233, 0.19);
  border-radius: 50%;
}

.ke2-orbit-one {
  width: 380px;
  height: 380px;
  top: 90px;
  left: 76px;
}

.ke2-orbit-two {
  width: 270px;
  height: 270px;
  top: 145px;
  left: 130px;
}

.ke2-hero-mascot {
  position: absolute;
  width: min(70%, 355px);
  height: auto;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 22px 25px rgba(32, 50, 71, 0.15));
}

.ke2-visual-card,
.ke2-progress-pill {
  position: absolute;
  z-index: 4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(42, 144, 233, 0.12);
  box-shadow: var(--ke2-shadow-soft);
}

.ke2-visual-card {
  width: 174px;
  padding: 14px 16px;
}

.ke2-visual-card strong,
.ke2-visual-card small {
  display: block;
}

.ke2-visual-card strong {
  margin-top: 5px;
  color: var(--ke2-ink);
  font-size: 0.94rem;
}

.ke2-visual-card small {
  margin-top: 3px;
  color: var(--ke2-muted);
  line-height: 1.35;
}

.ke2-visual-icon {
  font-size: 1.5rem;
}

.ke2-card-adventure { top: 34px; right: 22px; }
.ke2-card-vocab { top: 155px; left: 18px; }
.ke2-card-parent { top: 300px; right: 14px; }

.ke2-progress-pill {
  left: 24px;
  right: 24px;
  bottom: 20px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ke2-progress-pill > span {
  font-size: 1.6rem;
}

.ke2-progress-pill strong,
.ke2-progress-pill small {
  display: block;
}

.ke2-progress-pill small {
  color: var(--ke2-muted);
}

/* Proof strip */
.ke2-proof-strip {
  border-top: 1px solid #edf3f8;
  border-bottom: 1px solid #edf3f8;
  background: #fff;
}

.ke2-proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ke2-proof-grid > div {
  min-height: 92px;
  padding: 18px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  text-align: center;
  border-right: 1px solid #edf3f8;
  color: #40576e;
}

.ke2-proof-grid > div:last-child {
  border-right: 0;
}

.ke2-proof-grid span {
  font-size: 1.45rem;
}

/* Parent problem cards */
.ke2-parent-problems {
  background: var(--ke2-canvas);
}

.ke2-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ke2-problem-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  border-radius: var(--ke2-radius-lg);
  background: #fff;
  border: 1px solid var(--ke2-line);
  box-shadow: var(--ke2-shadow-soft);
  overflow: hidden;
}

.ke2-problem-number {
  position: absolute;
  top: 16px;
  right: 22px;
  color: #e6eef5;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
}

.ke2-problem-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ke2-blue-soft);
  font-size: 1.7rem;
}

.ke2-problem-card h3 {
  position: relative;
  margin: 22px 0 12px;
  max-width: 300px;
  font-size: 1.3rem;
  line-height: 1.35;
}

.ke2-problem-card p {
  margin: 0 0 20px;
  color: var(--ke2-muted);
  line-height: 1.72;
}

.ke2-problem-card a,
.ke2-feature-card a,
.ke2-text-link {
  color: var(--ke2-blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.ke2-problem-card a:hover,
.ke2-feature-card a:hover,
.ke2-text-link:hover {
  text-decoration: underline;
}

/* Feature cards */
.ke2-feature-section {
  background: #fff;
}

.ke2-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ke2-feature-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  border-radius: var(--ke2-radius-lg);
  border: 1px solid rgba(32, 50, 71, 0.08);
}

.ke2-feature-blue { background: #eef7ff; }
.ke2-feature-green { background: #f0fbf3; }
.ke2-feature-purple { background: #f5f1ff; }
.ke2-feature-orange { background: #fff6ec; }

.ke2-feature-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 2rem;
  box-shadow: 0 8px 18px rgba(32, 50, 71, 0.08);
}

.ke2-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4a6075;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ke2-feature-card h3 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.ke2-feature-card p {
  margin: 0 0 18px;
  color: var(--ke2-muted);
  line-height: 1.7;
}

/* Adventure */
.ke2-adventure-section {
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(178, 242, 187, 0.18), transparent 30%),
    linear-gradient(135deg, #164f82 0%, #1768ad 55%, #2a90e9 100%);
}

.ke2-adventure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.ke2-adventure-copy h2,
.ke2-adventure-copy > p {
  color: #fff;
}

.ke2-adventure-copy > p {
  color: #dceefb;
}

.ke2-check-list {
  display: grid;
  gap: 11px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.ke2-check-list li {
  display: flex;
  gap: 10px;
  line-height: 1.6;
}

.ke2-check-list span {
  flex: 0 0 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(178, 242, 187, 0.19);
  color: #d8ffe0;
  font-weight: 900;
}

.ke2-adventure-board {
  position: relative;
  min-height: 490px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(150deg, #89d7a0, #55b77a 52%, #319869);
  box-shadow: 0 22px 60px rgba(5, 31, 54, 0.28);
  overflow: hidden;
}

.ke2-adventure-board::before,
.ke2-adventure-board::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 120px;
  background: rgba(34, 116, 72, 0.3);
  border-radius: 50%;
  filter: blur(2px);
}

.ke2-adventure-board::before { left: -80px; bottom: 70px; }
.ke2-adventure-board::after { right: -70px; top: 50px; }

.ke2-map-path {
  position: absolute;
  width: 310px;
  height: 310px;
  left: 80px;
  top: 92px;
  border: 7px dashed rgba(255, 244, 188, 0.72);
  border-color: rgba(255, 244, 188, 0.8) transparent rgba(255, 244, 188, 0.8) rgba(255, 244, 188, 0.8);
  border-radius: 52% 42% 56% 40%;
  transform: rotate(-11deg);
}

.ke2-map-node {
  position: absolute;
  z-index: 3;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ke2-blue-deep);
  border: 5px solid rgba(255, 235, 59, 0.72);
  box-shadow: 0 10px 24px rgba(28, 75, 52, 0.25);
  font-weight: 900;
}

.ke2-map-node small {
  font-size: 0.68rem;
  color: #5b7185;
}

.ke2-node-1 { left: 48px; bottom: 72px; }
.ke2-node-2 { left: 180px; bottom: 145px; }
.ke2-node-3 { right: 90px; top: 118px; }
.ke2-node-4 { right: 38px; top: 34px; }
.ke2-map-castle { position: absolute; right: 25px; bottom: 24px; font-size: 5.3rem; filter: drop-shadow(0 12px 12px rgba(35, 83, 56, .22)); }

/* Learning cards */
.ke2-learning-section {
  background: #f8fbfe;
}

.ke2-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ke2-learning-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--ke2-radius-lg);
  background: #fff;
  color: var(--ke2-ink);
  text-decoration: none;
  border: 1px solid var(--ke2-line);
  box-shadow: 0 7px 20px rgba(32, 50, 71, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ke2-learning-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ke2-shadow-soft);
  color: var(--ke2-ink);
}

.ke2-learning-emoji {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--ke2-blue-soft);
  font-size: 1.8rem;
}

.ke2-learning-card h3 {
  margin: 22px 0 9px;
  font-size: 1.25rem;
}

.ke2-learning-card p {
  margin: 0;
  color: var(--ke2-muted);
  line-height: 1.72;
}

/* Parent flow */
.ke2-parent-flow {
  background: #fff;
}

.ke2-flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ke2-flow-grid::before {
  content: '';
  position: absolute;
  height: 2px;
  left: 9%;
  right: 9%;
  top: 28px;
  background: linear-gradient(90deg, #b7dffd, #bdeec8);
}

.ke2-flow-grid li {
  position: relative;
  padding: 0 12px;
  text-align: center;
}

.ke2-flow-step {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #9ed2f7;
  color: var(--ke2-blue-deep);
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(42, 144, 233, 0.13);
}

.ke2-flow-grid strong {
  font-size: 1.05rem;
}

.ke2-flow-grid p {
  margin: 7px 0 0;
  color: var(--ke2-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ke2-parent-cta {
  margin-top: 46px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--ke2-radius-lg);
  background: linear-gradient(120deg, #edf7ff, #f2fcf5);
  border: 1px solid #dcecf7;
}

.ke2-parent-cta strong {
  display: block;
  font-size: 1.15rem;
}

.ke2-parent-cta p {
  margin: 5px 0 0;
  color: var(--ke2-muted);
}

/* Games */
.ke2-games-section {
  background: linear-gradient(180deg, #f8fbfe, #fff);
}

.ke2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ke2-game-card {
  overflow: hidden;
  border-radius: var(--ke2-radius-lg);
  background: #fff;
  border: 1px solid var(--ke2-line);
  box-shadow: var(--ke2-shadow-soft);
}

.ke2-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ke2-game-card > div {
  padding: 18px;
}

.ke2-game-card span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ke2-blue-soft);
  color: var(--ke2-blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.ke2-game-card h3 {
  margin: 9px 0 0;
  font-size: 1.05rem;
}

.ke2-center-action {
  margin-top: 34px;
  text-align: center;
}

/* Blog */
.ke2-blog-section {
  background: #fff;
}

.ke2-blog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.ke2-blog-heading .ke2-section-heading {
  margin-bottom: 0;
}

.ke2-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ke2-blog-card,
.ke2-blog-empty {
  overflow: hidden;
  border-radius: var(--ke2-radius-lg);
  background: #fff;
  border: 1px solid var(--ke2-line);
  box-shadow: 0 8px 24px rgba(32, 50, 71, 0.06);
}

.ke2-blog-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c8e8ff, #c9f4d3);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
}

.ke2-blog-image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.ke2-blog-body {
  padding: 24px;
}

.ke2-blog-meta {
  color: #8798a8;
  font-size: 0.78rem;
  font-weight: 700;
}

.ke2-blog-card h3 {
  margin: 8px 0 10px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.ke2-blog-card h3 a {
  color: var(--ke2-ink);
  text-decoration: none;
}

.ke2-blog-card p {
  color: var(--ke2-muted);
  line-height: 1.65;
}

.ke2-blog-empty {
  grid-column: 1 / -1;
  padding: 45px;
  text-align: center;
}

.ke2-blog-empty > span {
  font-size: 2.5rem;
}

/* FAQ */
.ke2-faq-section {
  background: #f8fbfe;
}

.ke2-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.ke2-faq-list {
  display: grid;
  gap: 12px;
}

.ke2-faq-list details {
  border: 1px solid var(--ke2-line);
  border-radius: var(--ke2-radius-md);
  background: #fff;
  overflow: hidden;
}

.ke2-faq-list summary {
  min-height: 58px;
  padding: 18px 52px 18px 20px;
  position: relative;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.ke2-faq-list summary::-webkit-details-marker {
  display: none;
}

.ke2-faq-list summary::after {
  content: '+';
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ke2-blue-soft);
  color: var(--ke2-blue-deep);
  font-size: 1.25rem;
}

.ke2-faq-list details[open] summary::after {
  content: '–';
}

.ke2-faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ke2-muted);
  line-height: 1.7;
}

/* Final CTA */
.ke2-final-cta {
  padding: 82px 0;
  color: #fff;
  background: linear-gradient(120deg, #15588f, #2a90e9 58%, #48ad72);
}

.ke2-final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
}

.ke2-final-inner h2,
.ke2-final-inner p {
  color: #fff;
}

.ke2-final-inner p {
  color: #dceefb;
  max-width: 760px;
}

.ke2-final-actions {
  min-width: 250px;
  display: grid;
  gap: 13px;
  justify-items: center;
}

.ke2-final-blog-link {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.ke2-final-blog-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .ke2-hero-grid,
  .ke2-adventure-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 38px;
  }

  .ke2-hero-visual {
    min-height: 485px;
  }

  .ke2-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ke2-proof-grid > div:nth-child(3) {
    border-right: 0;
  }

  .ke2-proof-grid > div:nth-child(n + 4) {
    border-top: 1px solid #edf3f8;
  }

  .ke2-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ke2-section {
    padding: 74px 0;
  }

  .ke2-hero {
    padding-top: 128px;
  }

  .ke2-hero-grid,
  .ke2-adventure-grid,
  .ke2-faq-grid,
  .ke2-final-inner {
    grid-template-columns: 1fr;
  }

  .ke2-hero-copy {
    text-align: center;
  }

  .ke2-hero-lead,
  .ke2-section-heading {
    margin-left: auto;
    margin-right: auto;
  }

  .ke2-hero-actions,
  .ke2-trust-list {
    justify-content: center;
  }

  .ke2-hero-visual {
    width: min(100%, 620px);
    margin: 8px auto 0;
  }

  .ke2-problem-grid,
  .ke2-learning-grid,
  .ke2-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ke2-feature-grid {
    grid-template-columns: 1fr;
  }

  .ke2-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .ke2-flow-grid::before {
    display: none;
  }

  .ke2-faq-grid {
    gap: 28px;
  }

  .ke2-final-actions {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .ke2-section {
    padding: 62px 0;
  }

  .ke2-hero {
    padding: 112px 0 58px;
  }

  .ke2-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .ke2-hero-lead {
    font-size: 1rem;
  }

  .ke2-hero-actions {
    display: grid;
  }

  .ke2-btn {
    width: 100%;
    min-height: 52px;
  }

  .ke2-trust-list {
    display: grid;
    justify-content: start;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .ke2-hero-visual {
    min-height: 420px;
    border-radius: 30px;
  }

  .ke2-hero-mascot {
    width: 68%;
    bottom: 58px;
  }

  .ke2-visual-card {
    width: 142px;
    padding: 11px;
  }

  .ke2-visual-card small {
    display: none;
  }

  .ke2-card-adventure { top: 22px; right: 10px; }
  .ke2-card-vocab { top: 128px; left: 10px; }
  .ke2-card-parent { top: 246px; right: 8px; }
  .ke2-orbit-one { width: 315px; height: 315px; left: 50%; transform: translateX(-50%); }
  .ke2-orbit-two { width: 220px; height: 220px; left: 50%; transform: translateX(-50%); }

  .ke2-progress-pill {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ke2-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ke2-proof-grid > div {
    min-height: 78px;
    border-top: 1px solid #edf3f8;
  }

  .ke2-proof-grid > div:nth-child(odd) {
    border-right: 1px solid #edf3f8;
  }

  .ke2-proof-grid > div:nth-child(even) {
    border-right: 0;
  }

  .ke2-proof-grid > div:first-child,
  .ke2-proof-grid > div:nth-child(2) {
    border-top: 0;
  }

  .ke2-proof-grid > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .ke2-problem-grid,
  .ke2-learning-grid,
  .ke2-blog-grid,
  .ke2-game-grid,
  .ke2-flow-grid {
    grid-template-columns: 1fr;
  }

  .ke2-problem-card {
    min-height: 0;
  }

  .ke2-feature-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .ke2-adventure-board {
    min-height: 390px;
  }

  .ke2-map-path {
    width: 240px;
    height: 250px;
    left: 50%;
    top: 76px;
    transform: translateX(-50%) rotate(-11deg);
  }

  .ke2-map-node {
    width: 64px;
    height: 64px;
  }

  .ke2-node-1 { left: 26px; bottom: 54px; }
  .ke2-node-2 { left: 126px; bottom: 122px; }
  .ke2-node-3 { right: 72px; top: 100px; }
  .ke2-node-4 { right: 24px; top: 25px; }
  .ke2-map-castle { font-size: 4.4rem; }

  .ke2-parent-cta,
  .ke2-blog-heading {
    display: grid;
    align-items: start;
  }

  .ke2-parent-cta .ke2-btn {
    width: 100%;
  }

  .ke2-blog-image,
  .ke2-blog-image img {
    min-height: 190px;
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ke2-home *,
  .ke2-home *::before,
  .ke2-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
