/* ============================================================
   TalkAI Tutor Landing — Light Luxe
   화이트 + 브랜드 그린 · 넉넉한 여백 · 정제된 타이포그래피
   ============================================================ */

@font-face {
  font-family: 'Noto Sans SC Local';
  src: url('fonts/noto-sans-sc-subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #fcfcfa;
  --surface: #ffffff;
  --ink: #17251d;
  --ink-soft: #33443a;
  --muted: #5e6d63;
  --line: #e6ebe4;
  --line-strong: #d8e0d6;

  --green-900: #0f3d27;
  --green-700: #15734a;
  --green-600: #1e8a55;
  --green: #22a45d;
  --green-bright: #34c37b;
  --green-soft: #eaf6ef;
  --green-softer: #f2faf5;
  --honey: #f6b73c;

  --grad-green: linear-gradient(135deg, #22a45d, #34c37b);

  --shadow-xs: 0 1px 2px rgba(21, 58, 38, 0.06);
  --shadow-sm: 0 6px 18px rgba(21, 58, 38, 0.07);
  --shadow-md: 0 14px 36px rgba(21, 58, 38, 0.09);
  --shadow-lg: 0 26px 64px rgba(15, 61, 39, 0.13);
  --ring-glow: 0 0 0 6px rgba(52, 195, 123, 0.14);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;

  --section-title-font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.55rem);
  --section-subtitle-font-size: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);

  --wrap-max: 1140px;
  --header-h: 68px;
}

html[lang="zh-CN"] {
  --font: 'Noto Sans SC Local', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap {
  width: min(var(--wrap-max), calc(100% - 48px));
  margin-inline: auto;
}

.section { padding-block: clamp(72px, 10vw, 120px); }

.tinted {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(52, 195, 123, 0.05), transparent 60%),
    linear-gradient(180deg, var(--green-softer), var(--bg));
  border-block: 1px solid rgba(230, 235, 228, 0.7);
}

::selection { background: rgba(52, 195, 123, 0.25); }

/* ---------- Typography helpers ---------- */
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--green-600);
  margin-bottom: 14px;
}

.sec-head.centered { text-align: center; max-width: 700px; margin-inline: auto; }
.sec-head .lead { margin-top: 18px; margin-inline: auto; }

.sec-title {
  font-size: var(--section-title-font-size);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-title span { color: var(--green-600); }

.lead {
  font-size: var(--section-subtitle-font-size);
  color: var(--muted);
  max-width: 56ch;
}
.lead.left { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn-primary {
  color: #fff;
  background: var(--grad-green);
  box-shadow: 0 12px 28px rgba(34, 164, 93, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(34, 164, 93, 0.4);
}
.btn-ghost {
  color: var(--green-900);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-xs);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--green-bright), var(--shadow-sm); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(252, 252, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(21, 58, 38, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; object-fit: contain; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-block: 6px;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a:hover::after { right: 0; }

.top-cta {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green-700);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(34, 164, 93, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.top-cta:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--grad-green);
  box-shadow: 0 8px 20px rgba(34, 164, 93, 0.32);
}
/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 112px);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero-blob-a {
  width: 560px;
  height: 560px;
  right: -160px;
  top: -180px;
  background: rgba(52, 195, 123, 0.16);
}
.hero-blob-b {
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -220px;
  background: rgba(246, 183, 60, 0.1);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
}

.hero-copy {
  align-self: start;
  padding-top: clamp(96px, 10vw, 144px);
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-700);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(34, 164, 93, 0.25), var(--shadow-xs);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(52, 195, 123, 0.45);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 195, 123, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(52, 195, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 195, 123, 0); }
}

.hero-title {
  font-size: clamp(2.05rem, 1.15rem + 3vw, 3.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.hero-title span {
  color: var(--green-600);
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1.08rem, 1rem + 0.55vw, 1.32rem);
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-proof {
  position: relative;
  max-width: 55ch;
  margin-top: 18px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -0.012em;
  color: var(--muted);
}
.hero-proof::before {
  content: '';
  position: absolute;
  top: 0.28em;
  bottom: 0.28em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--honey), var(--green-bright));
}
.hero-proof span { display: block; margin-top: 2px; }
.hero-proof strong { color: var(--green-700); font-weight: 850; }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
html[lang="zh-CN"] .stat strong {
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.1rem);
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Hero lesson video ---------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lesson-video-phone {
  position: relative;
  width: clamp(230px, 22vw, 292px);
  filter: drop-shadow(0 24px 32px rgba(15, 61, 39, 0.19));
}

.lesson-iphone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 417 / 876;
  padding: clamp(7px, 0.75vw, 9px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: clamp(38px, 3.3vw, 48px);
  background: linear-gradient(145deg, #fff 0%, #f2f2ef 48%, #fff 100%);
  box-shadow:
    0 0 0 1px rgba(23, 37, 29, 0.08),
    0 28px 70px rgba(15, 61, 39, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.lesson-iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(29px, 2.7vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background: #f9c20f;
}

.lesson-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f9c20f;
}

.lesson-iphone-island {
  position: absolute;
  top: clamp(10px, 1.35vw, 12px);
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 4.35%;
  max-height: 37px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.lesson-iphone-home {
  position: absolute;
  bottom: clamp(8px, 1.1vw, 10px);
  left: 50%;
  z-index: 3;
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.4));
  pointer-events: none;
}

.lesson-audio-toggle {
  position: absolute;
  top: 5.8%;
  right: 2.4%;
  z-index: 7;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #17251d;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 7px 18px rgba(15, 20, 17, 0.22);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lesson-audio-toggle:hover,
.lesson-audio-toggle:focus-visible {
  color: #fff;
  background: var(--green-700);
  outline: 0;
}
.lesson-audio-toggle:active { transform: scale(0.94); }
.lesson-audio-icon { width: 17px; height: 17px; fill: currentColor; }
.lesson-audio-toggle.is-sound-on .lesson-audio-icon-muted { display: none; }
.lesson-audio-toggle:not(.is-sound-on) .lesson-audio-icon-on { display: none; }

.lesson-audio-hint {
  position: absolute;
  top: 7.7%;
  left: calc(100% - 9px);
  width: 148px;
  z-index: 6;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: var(--green-700);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 7px 18px rgba(15, 20, 17, 0.17);
  pointer-events: none;
}
.lesson-audio-hint::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
}

.lesson-pagination {
  display: flex;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin-top: 18px;
}
.lesson-page {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.lesson-page::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd8d2;
  box-shadow: 0 1px 4px rgba(21, 58, 38, 0.12);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}
.lesson-page:hover::before {
  background: rgba(34, 164, 93, 0.55);
  transform: scale(1.12);
}
.lesson-page:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 1px;
  border-radius: 50%;
}
.lesson-page.is-current::before {
  width: 10px;
  height: 10px;
  background: var(--grad-green);
  box-shadow: 0 3px 9px rgba(34, 164, 93, 0.36);
}

.lesson-timeline {
  width: min(460px, 100%);
  margin-top: 14px;
  list-style: none;
}
.lesson-timeline > li[hidden] { display: none; }

.lesson-step {
  display: block;
  width: 100%;
  padding: 0;
  text-align: center;
  color: var(--ink);
  pointer-events: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.lesson-step.is-current { animation: lesson-caption-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lesson-step > span {
  position: relative;
  display: block;
  padding-top: 18px;
}
.lesson-step > span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--honey), var(--green-bright));
  transform: translateX(-50%);
}
.lesson-step strong,
.lesson-step small { display: block; }
.lesson-step strong {
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--green-900);
}
.lesson-step small {
  max-width: 42ch;
  margin: 8px auto 0;
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  color: #68766d;
}

@keyframes lesson-caption-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- WHY (learning flow) ---------- */
.why-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 440px at 82% 30%, rgba(52, 195, 123, 0.11), transparent 68%),
    linear-gradient(180deg, #f8fbf8 0%, #f1f8f4 58%, #fbfcfa 100%);
  border-block: 1px solid rgba(216, 224, 214, 0.7);
}
.why-section::after {
  content: '';
  position: absolute;
  top: 12%;
  right: -9%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border: 1px solid rgba(34, 164, 93, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(34, 164, 93, 0.025), 0 0 0 92px rgba(34, 164, 93, 0.018);
  pointer-events: none;
}
.why-section .wrap { position: relative; z-index: 1; }

.why-intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}
.why-copy { padding-left: clamp(0px, 2vw, 24px); }
.why-title {
  max-width: 12ch;
  font-size: var(--section-title-font-size);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.why-title span {
  color: var(--green-600);
  background: linear-gradient(transparent 68%, rgba(246, 183, 60, 0.22) 68%);
}
.why-lead {
  max-width: 44ch;
  margin-top: 22px;
  font-size: var(--section-subtitle-font-size);
  line-height: 1.78;
  color: var(--muted);
}
.why-result {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink-soft);
  border-block: 1px solid rgba(21, 115, 74, 0.2);
}
.why-result-arrow {
  font-size: 18px;
  font-style: normal;
  color: var(--honey);
}
.why-result strong { color: var(--green-700); font-weight: 850; }

.why-visual {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
}
.why-visual img {
  width: auto;
  max-width: 100%;
  height: min(400px, 34vw);
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(15, 61, 39, 0.13));
}

.why-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3.5vw, 46px);
  margin-top: clamp(28px, 5vw, 56px);
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
}
.why-process::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 8%;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-bright), rgba(52, 195, 123, 0.38) 70%, rgba(246, 183, 60, 0.72));
}
.why-stage {
  position: relative;
  min-width: 0;
}
.why-stage::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 3px solid #f4faf6;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 1px rgba(21, 115, 74, 0.26), 0 3px 9px rgba(34, 164, 93, 0.2);
}
.why-stage:last-child::before { background: var(--honey); }
.why-stage-index {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.15em;
  color: var(--green-600);
}
.why-stage strong {
  display: block;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.13rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.why-stage p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Feature sections (shared) ---------- */
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.feature-layout.flip .feature-copy { order: 1; }
.feature-layout.flip .feature-visual { order: 2; }

.feature-copy .point-row { margin-top: 30px; display: grid; gap: 16px; }
.point strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}
.point strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  flex: none;
}
.point span {
  display: block;
  margin-top: 4px;
  padding-left: 15px;
  font-size: 14px;
  color: var(--muted);
}

.feature-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.feature-phone {
  width: min(300px, 74%);
  aspect-ratio: 10 / 16.6;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 7px #fff, 0 0 0 8px var(--line-strong);
  position: relative;
  z-index: 2;
}
.feature-phone img { width: 100%; height: 100%; object-fit: cover; }

/* --- Avatar talk recording and benefits --- */
.feature-avatar .feature-layout {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
}
.avatar-video-stage {
  min-height: 660px;
}
.avatar-video-stage::before {
  content: '';
  position: absolute;
  width: min(500px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96), rgba(224, 243, 232, 0.74) 54%, rgba(52, 195, 123, 0.08) 68%, transparent 69%);
}
.avatar-video-phone {
  position: relative;
  z-index: 2;
  width: clamp(232px, 22vw, 282px);
  filter: drop-shadow(0 25px 34px rgba(15, 61, 39, 0.18));
}
.avatar-talk-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f1813;
}
.avatar-audio-toggle {
  position: relative;
  z-index: 8;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--green-800);
  border: 1px solid rgba(21, 115, 74, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 24px rgba(15, 61, 39, 0.2);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.avatar-audio-toggle:hover,
.avatar-audio-toggle:focus-visible {
  color: #fff;
  background: var(--green-700);
  outline: 0;
}
.avatar-audio-toggle.is-sound-on { color: #fff; background: var(--green-700); }
.avatar-audio-toggle:active { transform: scale(0.97); }
.avatar-audio-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.avatar-audio-toggle.is-sound-on .avatar-audio-icon-muted { display: none; }
.avatar-audio-toggle:not(.is-sound-on) .avatar-audio-icon-on { display: none; }

.avatar-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.avatar-benefit {
  min-width: 0;
  padding: 18px 18px 17px;
  border: 1px solid rgba(21, 115, 74, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(15, 61, 39, 0.045);
}
.avatar-benefit-index {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--green-600);
}
.avatar-benefit strong {
  display: block;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.avatar-benefit p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
}
.feature-copy .avatar-plan-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 115, 74, 0.14);
}

/* --- Curriculum visual --- */
.curriculum-journey {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.curriculum-journey-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.journey-area {
  fill: url(#curriculumAreaGradient);
  opacity: 0;
  transform: translateY(24px);
}
.journey-line {
  fill: none;
  stroke: url(#curriculumLineGradient);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 6px 8px rgba(21, 115, 74, 0.23));
}
.journey-level {
  --i: 0;
  opacity: 0;
  transform: translateY(9px);
  transform-box: fill-box;
  transform-origin: center bottom;
}
.journey-level-leader {
  fill: none;
  stroke: rgba(21, 115, 74, 0.62);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.journey-level-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-anchor: middle;
  fill: var(--green-700);
}
.journey-runner {
  offset-path: path('M50 455 C90 450 105 422 135 410 C165 397 180 368 220 350 C260 332 278 311 305 287 C340 257 365 248 391 226 C426 197 448 159 478 140 C500 126 507 101 520 84');
  offset-distance: 0%;
  offset-rotate: 0deg;
  opacity: 0;
}
.journey-runner circle {
  fill: #20a762;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5;
  filter: drop-shadow(0 5px 8px rgba(15, 61, 39, 0.34));
}

.reveal.is-visible .journey-area {
  animation: journey-area-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}
.reveal.is-visible .journey-line {
  animation: journey-line-draw 6.9s linear 0.18s forwards;
}
.reveal.is-visible .journey-runner {
  animation: journey-runner-climb 6.9s linear 0.18s forwards;
}
.reveal.is-visible .journey-level:not([data-final='true']) {
  animation: journey-level-current 0.627s ease-out both;
  animation-delay: calc(var(--i) * 627ms + 180ms);
}
.reveal.is-visible .journey-level[data-final='true'] {
  animation: journey-level-final 0.48s ease-out forwards;
  animation-delay: calc(var(--i) * 627ms + 180ms);
}
@keyframes journey-area-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes journey-line-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes journey-runner-climb {
  0% { opacity: 1; offset-distance: 0%; }
  100% { opacity: 1; offset-distance: 100%; }
}
@keyframes journey-level-current {
  0%, 100% { opacity: 0; transform: translateY(9px); }
  14%, 96% { opacity: 1; transform: translateY(0); }
}
@keyframes journey-level-final {
  to { opacity: 1; transform: translateY(0); }
}
/* ---------- Tools grid (All-in-one) ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}

.tool {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tool:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px rgba(52, 195, 123, 0.45), var(--shadow-md);
}

.tool h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.tool p { margin-top: 7px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--green-600);
  background: var(--green-soft);
}
.tool-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon.grape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.tool-icon.grape i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 -12px 0 -2.5px var(--honey), 0 -12px 0 -2.5px var(--honey);
}
.tool-icon.grape i:nth-child(1) { transform: translate(-6px, 4px); }
.tool-icon.grape i:nth-child(2) { transform: translateY(4px); }
.tool-icon.grape i:nth-child(3) { transform: translate(6px, 4px); }

/* ---------- Parents / Report ---------- */
.parents-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.parent-list {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}
.parent-list li {
  padding-left: 20px;
  border-left: 3px solid var(--green-bright);
}
.parent-list strong { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.parent-list span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.report-card {
  justify-self: center;
  width: min(380px, 100%);
  padding: 30px 28px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.report-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--green-600);
}

.report-stats {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line-strong);
}
.report-stats b {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-700);
}
.report-stats span { font-size: 11.5px; color: var(--muted); }

.report-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  margin-top: 22px;
}
.report-chart i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #cfe9da, #e7f3ec);
  animation: growBar 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.report-chart .today { background: var(--grad-green); }
@keyframes growBar {
  from { height: 0 !important; }
}

.report-dots {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.report-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.report-dots .on { background: var(--green-bright); box-shadow: none; }
.report-dots .on.today { background: var(--honey); }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs);
}
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green-bright);
}
.step strong {
  display: block;
  margin-top: 10px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.step span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -19px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-bright), transparent);
}
.step:last-child::after { display: none; }
/* ---------- Screens carousel ---------- */
.screens-section {
  padding-block: clamp(72px, 10vw, 120px);
}

.screens-viewport {
  margin-top: clamp(40px, 6vw, 60px);
}

.screens-track {
  display: flex;
  gap: clamp(18px, 3vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px max(calc((100% - var(--wrap-max)) / 2), 24px) 34px;
  scrollbar-width: none;
  cursor: grab;
}
.screens-track::-webkit-scrollbar { display: none; }
.screens-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.screens-track:focus-visible { outline: 2px solid var(--green-bright); outline-offset: -2px; border-radius: 20px; }

.shot {
  flex: 0 0 auto;
  width: clamp(230px, 23vw, 295px);
  aspect-ratio: 1284 / 2778;
  scroll-snap-align: center;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s ease;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.shot:hover {
  transform: translateY(-8px);
  box-shadow: none;
}

.screens-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.screens-count {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.screens-arrows { display: flex; gap: 10px; }
.screens-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  font-size: 17px;
  color: var(--green-700);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.screens-arrows button:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--grad-green);
  box-shadow: 0 10px 24px rgba(34, 164, 93, 0.35);
}

/* ---------- Download CTA ---------- */
.download-section { padding-block: clamp(80px, 11vw, 130px); }

.download-inner {
  position: relative;
  text-align: center;
  padding: clamp(52px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--r-xl) + 8px);
  background:
    radial-gradient(640px 300px at 50% -60px, rgba(52, 195, 123, 0.14), transparent 70%),
    linear-gradient(180deg, #fff, var(--green-softer));
  box-shadow: inset 0 0 0 1px rgba(34, 164, 93, 0.22), var(--shadow-lg);
  overflow: hidden;
}
.download-inner .kicker { margin-bottom: 10px; }

.dl-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 24px rgba(21, 58, 38, 0.18));
}
.download-inner .lead { margin: 18px auto 0; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 196px;
  padding: 12px 22px;
  border-radius: 15px;
  background: #101410;
  color: #fff;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 26px rgba(10, 20, 12, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 16px 34px rgba(10, 20, 12, 0.38);
}

.store-logo { width: 27px; height: 27px; color: #fff; flex: none; }
.store-logo.play { width: 25px; height: 25px; }

.badge-text { display: grid; line-height: 1.25; }
.badge-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.badge-text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.dl-meta {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 34px 26px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 15px; font-weight: 800; }
.footer-brand span { display: block; font-size: 12px; color: var(--muted); }

.language-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.language-box label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.language-box select {
  appearance: none;
  padding: 9px 36px 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg)
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%235e6d63" stroke-width="2" d="m6 9 6 6 6-6"/></svg>')
    right 13px center/12px no-repeat;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.language-box select:hover { border-color: var(--green-bright); }
.language-box select:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .why-intro { grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
  .why-process { gap: 24px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .lesson-video-phone { width: min(280px, 55vw); }

  .feature-layout { grid-template-columns: 1fr; gap: 44px; }
  .feature-avatar .feature-layout { grid-template-columns: 1fr; gap: 28px; }
  .feature-layout.flip .feature-copy { order: 1; }
  .feature-layout.flip .feature-visual { order: 2; }
  .feature-visual { min-height: 420px; }
  .avatar-video-stage { min-height: 620px; }

  .parents-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }

  .main-nav { display: none; }

  body,
  button,
  select,
  .avatar-audio-toggle,
  .store-badge {
    text-align: center;
  }

  .why-title,
  .why-lead,
  .lead.left {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats,
  .point strong,
  .report-stats,
  .footer-inner {
    justify-content: center;
  }

  .hero-proof {
    margin-inline: auto;
    padding-top: 18px;
    padding-left: 0;
    text-wrap: balance;
  }
  .hero-proof::before {
    top: 0;
    bottom: auto;
    left: 50%;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, var(--honey), var(--green-bright));
    transform: translateX(-50%);
  }
  .hero-proof span { margin-top: 7px; }
  .point span { padding-left: 0; }

  .feature-curriculum .feature-copy {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }
  .feature-curriculum .sec-title {
    max-width: none;
    text-wrap: balance;
  }
  .feature-curriculum .lead {
    width: calc(100% - 40px);
    margin-inline: auto;
  }
  .feature-curriculum .point-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature-curriculum .point {
    padding: 18px 12px 16px;
    border: 1px solid rgba(21, 115, 74, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
  }
  .feature-curriculum .point strong {
    min-height: 2.8em;
    justify-content: center;
  }
  .feature-curriculum .point span {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .hero-stats { grid-template-columns: repeat(2, auto); gap: 16px 28px; }
  .hero-lesson-visual { margin-top: 24px; }

  .lesson-video-phone { width: min(254px, 67vw); }
  .lesson-timeline {
    width: min(320px, calc(100% - 40px));
    margin-inline: auto;
  }
  .lesson-audio-hint {
    top: -28px;
    right: -60px;
    left: auto;
    width: 170px;
    white-space: normal;
  }
  .lesson-audio-hint::after {
    top: 100%;
    left: 50%;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
    border-right: 7px solid transparent;
    border-bottom: 0;
    border-left: 7px solid transparent;
    transform: translateX(-50%);
  }
  .why-intro { grid-template-columns: 1fr; gap: 24px; }
  .why-copy { max-width: 650px; padding-left: 0; }
  .why-title { max-width: 13ch; }
  .why-visual { min-height: 0; }
  .why-visual img { height: min(380px, 98vw); }
  .why-process {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 22px;
    padding-top: 0;
    padding-left: 32px;
    border-top: 0;
  }
  .why-process::before {
    top: 6px;
    right: auto;
    bottom: 8px;
    left: 5px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--green-bright), rgba(52, 195, 123, 0.38) 70%, rgba(246, 183, 60, 0.72));
  }
  .why-stage::before { top: 4px; left: -32px; }
  .why-stage { text-align: left; }
  .parent-list li { text-align: left; }
  .parents-copy > .lead {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .avatar-video-stage { min-height: 590px; }
  .avatar-video-phone { width: min(268px, 68vw); }
  .avatar-benefit-grid { grid-template-columns: 1fr; }
  .feature-copy .avatar-plan-details { grid-template-columns: 1fr; gap: 14px; }

  .tools-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tool { padding: 20px 18px; }

  .steps-grid { grid-template-columns: 1fr; }

  .screens-section .sec-head .lead {
    width: calc(100% - 40px);
    margin-inline: auto;
  }
  .screens-track { scroll-padding-inline: 24px; }
  .shot { width: min(250px, 72vw); }

  .store-badge { min-width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 430px) {
  .tools-grid { grid-template-columns: 1fr; }
  .lesson-video-phone { width: min(222px, 67vw); }
  .lesson-pagination { gap: 1px; margin-top: 15px; }
  .why-section { padding-block: 70px; }
  .why-result { gap: 8px; font-size: 12.5px; }
  .lesson-audio-hint {
    top: -26px;
    right: -50px;
    left: auto;
    width: 150px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .avatar-video-stage { min-height: 540px; }
  .avatar-video-phone { width: min(238px, 66vw); }
  .avatar-audio-toggle { padding-inline: 9px; font-size: 10px; }
  .report-stats { gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot,
  .report-chart i,
  .lesson-step.is-current,
  .why-visual img { animation: none !important; }
  .journey-area,
  .journey-line,
  .journey-runner,
  .journey-level { animation: none !important; }
  .journey-area,
  .journey-runner {
    opacity: 1;
    transform: none;
  }
  .journey-line { stroke-dashoffset: 0; }
  .journey-runner { offset-distance: 100%; }
  .journey-level[data-final='true'] {
    opacity: 1;
    transform: none;
  }
  .btn,
  .tool,
  .shot,
  .store-badge,
  .why-stage { transition: none; }
}
