/* =======================================================
   HOME PAGE (index.html): introduces TeacherDox to teachers
   and sends them to the WhatsApp bot. Builds on style.css +
   register.css tokens. No JavaScript needed.
======================================================== */

.home-page main { overflow-x: hidden; }

.h-section { padding: clamp(48px, 8vw, 88px) 0; }
.h-section.tint { background: var(--brand-pale); }

.h-heading { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.h-heading h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-top: 10px; }
.h-heading p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.h-hero { padding: clamp(36px, 7vw, 88px) 0 clamp(32px, 6vw, 72px); }
.h-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .h-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.h-copy h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 7.4vw, 3.6rem);
  line-height: 1.1;
}
.h-copy h1 span { display: block; }
.h-lead {
  margin-top: 18px;
  max-width: 540px;
  font-size: clamp(1.02rem, 3.4vw, 1.2rem);
  color: var(--ink-soft);
}
.h-cta { margin-top: 28px; max-width: 420px; }
.h-cta .btn-wa { width: 100%; }
.h-num { margin-top: 10px; font-size: 0.9rem; color: var(--grey); text-align: center; }
.h-schools { margin-top: 22px; font-size: 0.95rem; color: var(--ink-soft); }
.h-schools a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-wa svg { width: 22px; height: 22px; flex-shrink: 0; }

.h-visual { display: flex; flex-direction: column; align-items: center; }

/* ---------- Steps ---------- */

.h-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 760px) { .h-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.h-steps li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 20px 22px 20px;
}
.h-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 0.95rem;
  margin-bottom: 12px;
}
.h-steps h3 { margin-bottom: 6px; }
.h-steps p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Cards ---------- */

.h-cards {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .h-cards { grid-template-columns: 1fr 1fr; gap: 18px; } }
.h-card {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.h-card h3 { margin-bottom: 6px; }
.h-card p { color: var(--ink-soft); font-size: 0.97rem; }
.h-card a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Schools band ---------- */

.h-schools-band {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 40px);
  text-align: center;
}
.h-schools-band h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); }
.h-schools-band p { margin: 12px auto 0; max-width: 560px; color: var(--ink-soft); }
.h-band-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 22px;
}
.h-band-actions .btn { min-height: 50px; }

/* ---------- Trust ---------- */

.h-trust { text-align: center; padding: 8px 16px 8px; color: var(--grey); font-size: 0.9rem; }
.h-trust strong { color: var(--ink-soft); }
.h-trust a { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* ---------- Sticky WhatsApp bar (phones) ---------- */

.sticky-wa {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 251, 250, 0.96);
  border-top: 1px solid var(--border);
}
.sticky-wa .btn-wa { min-height: 52px; padding: 12px 20px; font-size: 1rem; }
@media (max-width: 779px) {
  .sticky-wa { display: block; }
  .home-page footer, .reg-page footer { padding-bottom: 100px; }
}

/* ---------- Header: hide the WhatsApp button on very small screens ---------- */
@media (max-width: 519px) { .nav-wa { display: none; } }
