/* PulseTeach landing — follows DESIGN.md (dark + sage-emerald, one bright element per screen) */
:root {
  --bg: #0F1316;
  --panel: #161B1E;
  --line: #222A2D;
  --line2: #283134;
  --ink: #EDEFF7;
  --muted: #9AA0A6;
  --accent: #6FC79A;
  --accent-2: #8FD9B4;
  --btnink: #08110D;
  --glow: rgba(111, 199, 154, .22);
  --radius-btn: 14px;
  --radius-card: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 19, 22, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo svg { height: 26px; width: auto; }
.logo .word { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.logo .word b { font-weight: 700; }
.logo .word span { font-weight: 400; }
.nav .spacer { flex: 1; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line2); border-radius: 10px; padding: 2px; }
.lang a {
  padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted);
}
.lang a.on { background: var(--panel); color: var(--ink); }
.btn {
  display: inline-block; background: var(--accent); color: var(--btnink);
  font-weight: 700; font-size: 15px; padding: 13px 24px;
  border-radius: var(--radius-btn); transition: background .15s;
}
.btn:hover { background: var(--accent-2); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.big { padding: 16px 34px; font-size: 17px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 64px 0 40px; display: flex; gap: 48px; align-items: center; }
.hero-copy { flex: 1.2; }
.kicker {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.14;
  letter-spacing: -.01em; margin-bottom: 18px;
}
.sub { font-size: 18px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.sub b { color: var(--ink); font-weight: 600; }
.trust { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
/* hero chips: Telegram-native + the three pain points at a glance */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line2);
  border-radius: 999px; padding: 7px 13px;
  font-size: 13px; color: var(--ink);
}
.chip svg { width: 15px; height: 15px; flex-shrink: 0; }
/* push-notification banner inside the hero phone mockup */
.push {
  display: flex; gap: 9px; align-items: flex-start;
  background: #1D2529; border: 1px solid var(--line2);
  border-radius: 12px; padding: 8px 11px; margin-bottom: 12px;
  font-size: 11.5px; line-height: 1.4; color: var(--muted);
}
.push b { color: var(--ink); }
.push .appic {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
}
.push .appic svg { width: 17px; height: 12px; }
.push.reveal { transform: translateY(-14px); }
.push.reveal.shown { transform: none; }

/* ── Phone / chat mockups ───────────────────────────── */
.phone {
  width: 300px; flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 32px;
  padding: 14px 12px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.phone .bar {
  display: flex; align-items: center; gap: 9px;
  padding: 2px 6px 12px; border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.phone .ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-2); color: var(--btnink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.phone .who { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.phone .who small { display: block; font-weight: 400; font-size: 11px; color: var(--accent); }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.msg {
  max-width: 86%; padding: 9px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.45;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.msg.shown { opacity: 1; transform: none; }
.msg.in  { align-self: flex-start; background: #1D2529; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #24443A; border-bottom-right-radius: 4px; }
.msg .tick { color: var(--accent); }
.msg small { color: var(--muted); font-size: 11px; }
.msg .mbtn {
  display: block; margin-top: 8px; padding: 7px 10px; text-align: center;
  border: 1px solid var(--accent); border-radius: 9px;
  color: var(--accent); font-weight: 600; font-size: 12.5px;
}
/* voice message bubble */
.voice { display: flex; align-items: center; gap: 9px; }
.voice .play {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1.6px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.voice .play svg { width: 11px; height: 11px; fill: var(--accent); margin-left: 2px; }
.voice .wave { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.voice .wave i {
  width: 2.5px; border-radius: 2px; background: var(--accent);
  height: calc(6px + var(--h) * 14px); opacity: .85;
}
.voice .dur { font-size: 11px; color: var(--muted); }
/* typing indicator */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: tblink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tblink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ── Sections ───────────────────────────────────────── */
section { padding: 56px 0; }
section.alt { background: #121719; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { display: flex; gap: 48px; align-items: center; }
.feature.flip { flex-direction: row-reverse; }
.feature-copy { flex: 1.2; }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2;
  letter-spacing: -.01em; margin-bottom: 14px;
}
.feature .num {
  font-family: var(--font-display); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; margin-bottom: 10px;
}
.feature ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.feature li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15.5px; }
.feature li b { color: var(--ink); font-weight: 600; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── How it works ───────────────────────────────────── */
.steps { display: flex; gap: 20px; margin-top: 36px; }
.step {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px 22px;
}
.step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.6px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: 0 0 18px var(--glow);
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ── Quotes ─────────────────────────────────────────── */
.quotes { display: flex; gap: 20px; margin-top: 36px; }
.quote {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px 22px;
}
.quote p { font-size: 16px; line-height: 1.55; }
.quote p::before { content: "“"; color: var(--accent); font-size: 22px; }
.quote p::after { content: "”"; color: var(--accent); font-size: 22px; }
.quote .who { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── Pricing ────────────────────────────────────────── */
.price-card {
  max-width: 520px; margin: 36px auto 0; text-align: center;
  background: var(--panel); border: 1px solid var(--line2);
  border-radius: 20px; padding: 40px 32px;
}
.price-card .free {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2;
}
.price-card .free em { font-style: normal; color: var(--accent); }
.price-card .then { margin-top: 12px; color: var(--muted); font-size: 16px; }
.price-card .all { margin-top: 6px; font-size: 14px; color: var(--muted); }
.price-card .btn { margin-top: 26px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 36px auto 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0;
  font-size: 16.5px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  color: var(--accent); font-size: 22px; font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ── Final CTA / footer ─────────────────────────────── */
.finale { text-align: center; padding: 72px 0; }
.finale h2 { margin-bottom: 10px; }
.finale p { color: var(--muted); margin-bottom: 26px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer .cols { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer, footer a { color: var(--muted); font-size: 13.5px; }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }

/* centered section intros */
.center { text-align: center; }
.center .lead { color: var(--muted); max-width: 42em; margin: 0 auto; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ── Legal text pages ───────────────────────────────── */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p b, .legal li b { color: var(--ink); font-weight: 600; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal li { margin-bottom: 6px; }
.legal .card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 20px 22px; margin-bottom: 12px;
}
.legal .card p { margin-bottom: 4px; }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { flex-direction: column; padding: 40px 0 32px; text-align: left; }
  .feature, .feature.flip { flex-direction: column; }
  .phone { width: min(300px, 88vw); margin: 0 auto; }
  .steps, .quotes { flex-direction: column; }
  section { padding: 44px 0; }
  .nav .btn { display: none; }
}
