:root {
  --ink: #102a33;
  --muted: #5b6f76;
  --teal: #0f6b6b;
  --teal-dark: #0a4f4f;
  --chat-accent: #52c1d3;
  --chat-accent-dark: #3fa9bb;
  --chat-ink: #102a33;
  --sand: #f6f1e8;
  --line: #e3e8e6;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fbfbf8;
  line-height: 1.55;
}

[hidden] { display: none !important; }

a { color: var(--teal); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--teal); }

.site-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
}

main { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}

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

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--teal);
  cursor: pointer;
  font-size: 15px;
}

.button:hover { background: var(--teal-dark); }

.button-ghost { background: transparent; color: var(--teal); }
.button-ghost:hover { background: var(--sand); }

.hero-card {
  background: var(--sand);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid #ece5d8;
}

.hero-card h2 { margin: 0 0 12px; font-size: 18px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hero-card li { margin-bottom: 8px; }
.small { font-size: 13px; color: var(--muted); margin-bottom: 0; }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--sand); border-radius: 24px; padding: 44px 32px; margin-bottom: 56px; }

.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.03em; }
.section-heading p { margin: 0; color: var(--muted); }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.card-tag {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 700;
}

.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0 0 12px; }
.price { font-size: 22px; font-weight: 750; color: var(--ink) !important; margin-top: auto !important; }
.was { font-size: 14px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.card-link { font-weight: 650; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps span { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: 0.1em; }
.steps h3 { margin: 6px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 110px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer p { margin: 4px 0; }

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--chat-accent);
  color: var(--chat-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(82, 193, 211, 0.45);
  z-index: 50;
}

.chat-launcher:hover { background: var(--chat-accent-dark); }

.chat-launcher:focus-visible,
#chat-close:focus-visible {
  outline: 2px solid var(--chat-ink);
  outline-offset: 2px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  height: min(580px, calc(100dvh - 48px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(16, 42, 51, 0.28);
  overflow: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--chat-accent);
  color: var(--chat-ink);
}

.chat-panel__header h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.chat-panel__header p { margin: 2px 0 0; font-size: 12px; opacity: 0.8; }

#chat-close {
  border: 0;
  background: transparent;
  color: var(--chat-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -10px -10px -10px 0;
}

#eduling-chat { flex: 1; min-height: 0; display: block; }

.chat-panel__foot {
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: #fcfcfa;
}

.chat-panel__foot a { color: var(--teal); }

@media (max-width: 820px) {
  .topbar { padding: 14px 20px; }
  main { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 52px 0 40px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .section-alt { padding: 32px 20px; }
  .chat-panel {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    height: min(70dvh, 560px);
  }
  .chat-launcher { right: 16px; bottom: 16px; }
}

@media (max-height: 520px) {
  .chat-panel { height: calc(100dvh - 24px); bottom: 12px; }
  .chat-panel__header { padding: 8px 12px; }
  .chat-panel__header p { display: none; }
}
