/* EaseKid company site. One stylesheet for both languages; each product keeps its own
   brand colour (Player orange, Dict purple) and the company itself is leaf green. */

:root {
  --bg: #FFFBF3;
  --bg-alt: #F4F1E8;
  --surface: #FFFFFF;
  --ink: #1D2B24;
  --ink-2: #4E5C55;
  --ink-3: #85918B;
  --line: #E7E2D6;
  --leaf: #1E9E5A;
  --leaf-deep: #147A44;
  --leaf-wash: #E3F4EA;
  --sun: #FFC845;
  --player: #FF6900;
  --player-wash: #FFF0E4;
  --dict: #6D4AFF;
  --dict-wash: #EFEBFF;
  --piggy: #FF6F91;
  --piggy-wash: #FFEDF1;
  --radius: 24px;
  --shadow: 0 1px 2px rgb(29 43 36 / 0.04), 0 12px 32px rgb(29 43 36 / 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
a { color: var(--leaf-deep); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 251 243 / 0.85);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lang:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.lang svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--leaf-wash); color: var(--leaf-deep);
  font-size: 14px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 32em; margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px rgb(30 158 90 / 0.28); }
.btn-primary:hover { background: var(--leaf-deep); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 500px; justify-self: center; width: 100%; }
.hero-art .blob {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 30% 30%, #FFE7A8 0%, #FFD86B 45%, #FFC845 100%);
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
}
.hero-art .app {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 23%;
  box-shadow: 0 18px 40px rgb(29 43 36 / 0.18);
  overflow: hidden; background: #fff;
}
.hero-art .app img { width: 100%; height: 100%; }
.hero-art .a1 { left: 8%; top: 16%; transform: rotate(-8deg); }
.hero-art .a2 { right: 8%; top: 30%; transform: rotate(7deg); width: 30%; }
.hero-art .a3 { left: 34%; bottom: 6%; transform: rotate(-2deg); width: 31%; }
.hero-art .spark { position: absolute; color: var(--leaf); }
.hero-art .s1 { right: 18%; top: 6%; width: 30px; }
.hero-art .s2 { left: 4%; bottom: 20%; width: 22px; color: var(--piggy); }
.hero-art .s3 { right: 6%; bottom: 14%; width: 18px; color: var(--dict); }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .kicker {
  color: var(--leaf-deep); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
:lang(zh) .section-head .kicker { letter-spacing: 0.12em; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Products */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--surface); border-radius: 32px; padding: 48px;
  box-shadow: var(--shadow); margin-bottom: 28px;
}
.product-info .app-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.product-info .app-row img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 6px 16px rgb(29 43 36 / 0.14); }
.product-info h3 { font-size: 28px; font-weight: 800; }
.product-info .platform { color: var(--ink-3); font-size: 15px; font-weight: 500; margin-top: 2px; }
.product-info .tagline { font-size: 21px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.product-info .desc { color: var(--ink-2); margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.store { display: inline-block; border-radius: 9px; transition: transform .15s ease; }
.store:hover { transform: translateY(-1px); }
.store img { height: 44px; width: auto; }
.product .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; text-decoration: none; color: var(--tint-ink);
}
.product .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.product .more svg { width: 18px; height: 18px; transition: transform .15s ease; }
.product .more:hover svg { transform: translateX(3px); }

.product.player { --tint: var(--player); --tint-ink: #D95600; --tint-wash: var(--player-wash); }
.product.dict { --tint: var(--dict); --tint-ink: #5634E6; --tint-wash: var(--dict-wash); }
.product.piggy { --tint: var(--piggy); --tint-ink: #E0426A; --tint-wash: var(--piggy-wash); }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--tint-wash); color: var(--tint-ink);
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}

.product-art {
  background: var(--tint-wash); border-radius: 24px;
  aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 32px; overflow: hidden;
}
.product.flip .product-art { order: -1; }

/* Player art: an iPad */
.ipad {
  width: 78%; background: #1b1b1f; border-radius: 26px; padding: 10px;
  box-shadow: 0 24px 48px rgb(120 50 0 / 0.22); transform: rotate(-3deg) translateY(22%);
}
.ipad img { width: 100%; height: auto; border-radius: 17px; }

/* Dict art: a word card */
.phone {
  width: 44%; min-width: 190px; max-width: 230px; aspect-ratio: 9 / 17; background: #fff; border-radius: 30px;
  border: 8px solid #241E4E; padding: 18px 14px 14px;
  box-shadow: 0 24px 48px rgb(60 30 160 / 0.22); transform: rotate(3deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.phone .typed {
  display: flex; gap: 4px; margin-bottom: 4px;
}
.phone .typed span {
  width: 24px; height: 30px; border-radius: 8px; background: var(--dict-wash);
  color: #241E4E; font-weight: 800; font-size: 18px; display: grid; place-items: center;
}
.phone .pic {
  width: 100%; aspect-ratio: 5 / 4; flex: none; border-radius: 22px; background: #FFF6D8;
  display: grid; place-items: center; font-size: 64px; line-height: 1;
}
.phone .word { font-size: 26px; line-height: 1; font-weight: 800; color: #241E4E; letter-spacing: 0.02em; }
.phone .meaning { font-size: 13px; color: #5B5580; line-height: 1.45; }
.phone .speak {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--dict); display: grid; place-items: center;
}
.phone .speak svg { width: 22px; height: 22px; }


/* The phone is shown whole, so its box sizes to it rather than to the shared 5:4. */
.product.dict .product-art { aspect-ratio: auto; padding: 40px 32px; }

/* Piggy art: jars */
.jars { display: flex; gap: 18px; align-items: flex-end; width: 100%; justify-content: center; }
.jar {
  flex: 1; max-width: 120px; background: #fff; border-radius: 20px 20px 26px 26px;
  padding: 14px 12px 16px; text-align: center; box-shadow: 0 14px 30px rgb(200 40 90 / 0.14);
  position: relative;
}
.jar .fill {
  height: var(--h); border-radius: 12px; margin-bottom: 12px;
  background: repeating-linear-gradient(0deg, #FFD166 0 10px, #FFC23A 10px 12px);
}
.jar .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.jar .amt { font-size: 13px; color: var(--ink-3); }

/* Principles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle {
  background: var(--surface); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow);
}
.principle .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--leaf-wash); color: var(--leaf-deep); margin-bottom: 20px;
}
.principle .ico svg { width: 26px; height: 26px; }
.principle h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.principle p { color: var(--ink-2); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about .section-head { margin-bottom: 0; }
.about .story p { color: var(--ink-2); font-size: 17.5px; }
.about .story p + p { margin-top: 18px; }
.facts {
  background: var(--surface); border-radius: var(--radius); padding: 10px 30px;
  box-shadow: var(--shadow);
}
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }

/* Contact */
.contact {
  background: var(--leaf); color: #fff; border-radius: 32px; padding: 64px 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgb(255 255 255 / 0.08);
}
.contact h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-bottom: 12px; }
.contact p { color: rgb(255 255 255 / 0.86); font-size: 18px; }
.contact .mail {
  justify-self: end; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--leaf-deep); text-decoration: none;
  padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
}
.contact .mail:hover { transform: translateY(-1px); }
.contact .mail svg { width: 22px; height: 22px; }

/* Footer */
footer { padding: 56px 0 48px; color: var(--ink-3); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer .brand { font-size: 17px; margin-bottom: 10px; }
footer .brand img { width: 28px; height: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .product.flip .product-art { order: 0; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 380px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  section { padding: 72px 0; }
  .contact { grid-template-columns: 1fr; padding: 44px 32px; }
  .contact .mail { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .product { padding: 24px 20px; border-radius: 26px; }
  .product-art { padding: 20px; }
  .facts { padding: 4px 22px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .contact .mail { font-size: 16px; padding: 14px 22px; }
  .hero-art { max-width: 300px; }
  .cta .btn { flex: 1 1 100%; }
  .product-info .app-row img { width: 60px; height: 60px; border-radius: 14px; }
  .product-info h3 { font-size: 23px; }
  .product-info .platform { font-size: 14px; }
  .product-info .tagline { font-size: 19px; }
}
footer .legal span span { white-space: nowrap; }
