:root {
  --blue: #1665a8;
  --blue-dark: #0e4d84;
  --blue-soft: #e7f1fb;
  --green: #2fa84f;
  --yellow: #f5c518;
  --ink: #13263a;
  --muted: #5d6e80;
  --line: #dfe7ef;
  --bg: #ffffff;
  --tint: #f4f8fc;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 38, 58, .08);
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .seg button:focus-visible, .pay-tabs button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(22, 101, 168, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; margin-top: 1.2rem; }
.btn-wa:hover { background: #1fb457; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.25rem var(--font-head); color: var(--blue); }
.brand b { color: var(--green); }
.brand img { width: 44px; height: 44px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; background: linear-gradient(180deg, var(--blue-soft), #fff 85%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hl { color: var(--blue); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em;
  background: var(--yellow); opacity: .55; z-index: -1; border-radius: 4px;
}
h1 { position: relative; z-index: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: .4em; }

.rating-pill {
  display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; text-decoration: none; margin-bottom: 1.2rem; box-shadow: var(--shadow);
}
.rating-pill:hover { border-color: var(--yellow); }
.stars { color: var(--yellow); letter-spacing: 2px; }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 6% 4%;
  background: radial-gradient(circle at 30% 30%, #5aa9e6, var(--blue) 70%);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 56% 44% 58% 42% / 44% 56% 44% 56%; }
}
.chat { position: relative; display: flex; flex-direction: column; gap: 12px; width: min(320px, 82%); }
.bubble { padding: .9em 1.1em; border-radius: 18px; font-weight: 600; box-shadow: 0 12px 24px rgba(0, 0, 0, .14); animation: pop .5s both; }
.b-left { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; max-width: 85%; }
.b-right { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; max-width: 85%; animation-delay: .35s; }
.bubble.small { font-size: .9rem; animation-delay: .7s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: .8em 1em; font-size: .85rem; line-height: 1.3;
}
.float-card b { font: 800 1.4rem var(--font-head); color: var(--blue); }
.float-card span { color: var(--green); font-weight: 700; }
.fc-1 { left: -4px; bottom: 6%; }
.fc-2 { right: 2%; top: 4%; padding: 6px; border-radius: 50%; }

/* ---------- Stats ---------- */
.stats { margin-top: -36px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats-grid div { padding: 22px 16px; text-align: center; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats-grid b { display: block; font: 800 2rem var(--font-head); color: var(--blue); }
.stats-grid span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.section-head .rating-pill { margin: .6rem 0 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: start; }
.features { display: grid; gap: 18px; margin-top: 1.8rem; }
.feature { display: flex; gap: 16px; }
.feature h3 { margin-bottom: .2em; }
.feature p { color: var(--muted); margin: 0; }
.f-ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); font-size: 1.5rem;
}
.teacher-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); text-align: center;
}
.teacher-card p:last-child { margin: 0; color: var(--muted); }
.teacher-photo {
  width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font: 800 2.6rem var(--font-head); color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: 5px solid var(--blue-soft);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 18px 40px rgba(22, 101, 168, .16); }
.plan-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .3em .8em; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 14px;
}
.plan.featured .plan-tag { background: var(--yellow); color: var(--ink); }
.plan h3 { font-size: 1.6rem; margin-bottom: .25em; }
.plan > .muted { min-height: 3.2em; }
.opt-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 6px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 12px; margin-bottom: 10px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: .55em .4em; border-radius: 9px;
  font: 600 .9rem var(--font-body); color: var(--muted); cursor: pointer; transition: .15s;
}
.seg button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(19, 38, 58, .1); }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.price b { font: 800 2.3rem var(--font-head); color: var(--ink); }
.price span { color: var(--muted); }
.per-session { margin: 0 0 14px; }
.checks { list-style: none; padding: 16px 0 0; margin: 0 0 24px; border-top: 1px dashed var(--line); flex: 1; }
.checks li { padding-left: 1.7em; position: relative; margin-bottom: .55em; font-size: .95rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: #e3f5e8; color: var(--green); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 30px 26px; }
.steps span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 800 1.4rem var(--font-head); margin-bottom: 16px;
}
.steps li:nth-child(2) span { background: var(--green); }
.steps li:nth-child(3) span { background: var(--wa); }
.steps p { color: var(--muted); margin: 0; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { position: relative; margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.testi blockquote { margin: 12px 0 20px; font-size: 1.02rem; flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font: 800 1.2rem var(--font-head);
}
.sample {
  position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  background: #fff4cc; color: #8a6a00; padding: .2em .6em; border-radius: 6px;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 1.3rem; transition: .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Location */
.loc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hours { border-collapse: collapse; margin: 1rem 0 1.4rem; }
.hours td { padding: .35em 1.6em .35em 0; }
.hours td:last-child { font-weight: 700; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* CTA + footer */
.cta { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; padding: 80px 0; text-align: center; }
.cta p { opacity: .85; font-size: 1.1rem; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Checkout dialog ---------- */
.checkout {
  width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto;
  border: 0; border-radius: 22px; padding: 30px 26px 24px; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.checkout::backdrop { background: rgba(10, 25, 40, .55); backdrop-filter: blur(3px); }
.checkout[open] { animation: pop .25s; }
.checkout h2 { font-size: 1.7rem; }
.co-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.co-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.co-summary { background: var(--tint); border-radius: 14px; padding: 14px 16px; margin: 1rem 0 1.2rem; }
.co-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.co-summary b { text-align: right; }
.co-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px !important; font-weight: 700; }
.co-total b { color: var(--blue); font: 800 1.5rem var(--font-head); }
.field { display: block; margin-bottom: 1.2rem; }
.field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px;
  font: 500 1rem var(--font-body); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input.invalid { border-color: #d93a3a; box-shadow: 0 0 0 3px #fde3e3; }
.pay-tabs { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 12px; }
.pay-tabs button {
  flex: 1; border: 0; background: transparent; padding: .65em; border-radius: 9px; cursor: pointer;
  font: 700 .95rem var(--font-body); color: var(--muted);
}
.pay-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(19, 38, 58, .1); }
.pay-panel { padding: 18px 0 0; text-align: center; }
.pay-panel img { width: 220px; height: 220px; object-fit: contain; margin: 0 auto 10px; border-radius: 12px; border: 1px solid var(--line); }
.pay-panel p { margin: 0; }
.bank { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.bank > div:nth-child(2) { flex: 1; }
.bank-logo { flex: none; width: 54px; height: 54px; border-radius: 12px; background: #f15a23; color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; }
.acc { font: 800 1.35rem var(--font-head); letter-spacing: 1px; }
.checkout > .small.center { margin: .7rem 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 100;
  background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .faq-wrap, .loc-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-visual { min-height: 340px; }
  .pricing, .testi-grid, .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head.left { text-align: center; margin-bottom: 24px; }
  .plan > .muted { min-height: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .brand { font-size: 1.1rem; }
  .hl { white-space: normal; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
