/* TeachBest — Production CSS (Modern Grotesque / Direction B) */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --bg:         oklch(0.984 0.005 255);
  --surface:    #ffffff;
  --ink:        oklch(0.24 0.035 262);
  --muted:      oklch(0.53 0.025 262);
  --line:       oklch(0.92 0.009 258);
  --accent:     oklch(0.55 0.145 258);
  --accent-soft:oklch(0.95 0.03  258);
  --accent-ink: #ffffff;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill:999px;
  --shadow:     0 2px 8px -2px rgba(30,50,90,.10);
  --shadow-lg:  0 24px 60px -24px rgba(30,50,110,.30);
  --hairline:   1px solid var(--line);
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 22px;
  color: var(--ink); text-wrap: balance;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 600; margin: 0;
  color: var(--ink);
}
h3 {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 12px;
  color: var(--ink);
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55; color: var(--muted);
  margin: 0 0 34px; max-width: 30em;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-body);
  font-weight: 600; font-size: 17px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Brand mark ────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: var(--radius);
  background: var(--accent);
  position: relative; flex: 0 0 auto;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--accent-ink) 0 0) center / 13px 3px no-repeat,
    linear-gradient(var(--accent-ink) 0 0) center / 3px 13px no-repeat;
  opacity: .92;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--ink);
}

/* ── Site header ───────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 72px);
  border-bottom: var(--hairline);
  max-width: 1440px; margin: 0 auto;
}
.header-links { display: flex; align-items: center; gap: 28px; }
.header-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .14s ease; white-space: nowrap;
}
.header-links a:hover { color: var(--ink); }

/* ── Page wrapper ──────────────────────────────────────────── */
.page { max-width: 1440px; margin: 0 auto; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 72px) clamp(60px, 8vw, 104px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 { max-width: 14em; }
.hero .lead { margin-left: auto; margin-right: auto; text-align: center; }

/* ── WhatsApp QR card ──────────────────────────────────────── */
.wa-card {
  display: flex; align-items: center; gap: 32px; text-align: left;
  background: var(--surface); border: var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px 30px; max-width: 560px;
  margin: 8px auto 0;
}
.wa-qr {
  width: 184px; height: 184px; flex: 0 0 auto;
  border-radius: var(--radius); overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.wa-qr img, .wa-qr canvas { display: block; width: 184px !important; height: 184px !important; }
.wa-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wa-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.45 0.13 152);
}
.wa-eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: oklch(0.55 0.18 150);
  box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.55 0.18 150) 22%, transparent);
}
.wa-title {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 3px 0 0; color: var(--ink);
}
.wa-sub {
  font-size: 15px; line-height: 1.5; color: var(--muted);
  margin: 2px 0 10px; max-width: 22em;
}

/* ── How it works ──────────────────────────────────────────── */
.how {
  background: var(--accent-soft);
  border-top: var(--hairline); border-bottom: var(--hairline);
}
.how-inner {
  padding: clamp(60px, 8vw, 112px) clamp(24px, 5vw, 72px) clamp(64px, 8vw, 118px);
  max-width: 1440px; margin: 0 auto;
}
.how-head {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  margin-bottom: 68px;
}
.how-head .eyebrow { margin-bottom: 14px; }
.how-lead {
  font-size: clamp(17px, 2vw, 22px); line-height: 1.5;
  color: var(--muted); max-width: 40em; margin: 22px auto 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px; margin-bottom: 60px;
}
.step {
  background: var(--surface); border: var(--hairline);
  border-radius: var(--radius-lg);
  padding: 44px 40px 48px; box-shadow: var(--shadow);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  background: var(--accent-soft); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 26px; font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: 22px;
}
.step h3 { font-size: 28px; margin-bottom: 16px; }
.step p { font-size: 18px; line-height: 1.58; color: var(--muted); margin: 0; }
.how-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: var(--hairline);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 72px) 36px;
  max-width: 1440px; margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px; margin-bottom: 44px;
}
.footer-tagline { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px;
}
.footer-col a {
  display: block; font-size: 15px; color: var(--muted);
  padding: 6px 0; transition: color .14s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  padding-top: 24px; border-top: var(--hairline);
  font-size: 14px; color: var(--muted);
}

/* ── Inner pages (privacy, contact) ───────────────────────── */
.inner-page {
  max-width: 800px; margin: 0 auto;
  padding: 60px clamp(24px, 5vw, 48px) 80px;
}
.inner-page h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.inner-page h2 {
  font-size: 22px; margin-top: 40px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: var(--hairline);
}
.inner-page p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.inner-page ul { padding-left: 20px; margin: 0 0 16px; }
.inner-page li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.inner-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.inner-page a:hover { opacity: 0.8; }
.effective-date {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 36px;
}
.contact-card {
  background: var(--surface); border: var(--hairline);
  border-radius: var(--radius-lg); padding: 32px 36px;
  box-shadow: var(--shadow); margin: 32px 0;
}
.contact-card p { margin: 0 0 6px; }
.contact-card a { font-size: 20px; font-weight: 600; }
.contact-note {
  font-size: 15px; color: var(--muted);
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 16px 20px; margin-top: 24px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .wa-card { flex-direction: column; text-align: center; padding: 24px; }
  .wa-info .btn { align-self: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .steps { gap: 20px; }
  .step { padding: 28px 24px 32px; }
}
