/* ═══════════════════════════════════════════════
   ZIARM ERP — school landing page
   Rides on style.css for tokens, type and buttons;
   everything here is specific to this one page.
   ═══════════════════════════════════════════════ */

.erp-page .wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.erp-page section { padding: clamp(56px, 8vw, 104px) 0; }
.erp-page .tinted { background: var(--bg-tint); border-block: 1px solid var(--line); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(120px, 15vw, 188px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 620px;
  background: radial-gradient(50% 50% at 50% 40%, rgba(46, 124, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-sub {
  margin-top: 18px;
  max-width: 40ch;
  color: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.trust span { font-size: 0.85rem; color: var(--muted); }

/* ─────────── DEVICE MOCKS ─────────── */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sk-1); }
.mock-body { padding: 18px; display: grid; gap: 12px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
}
.kpi b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.kpi span { font-size: 0.72rem; color: var(--muted); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 108px; padding-top: 6px; }
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: var(--grad);
  opacity: 0.85;
}

.rows { display: grid; gap: 8px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
}
.row small { color: var(--muted); display: block; font-size: 0.72rem; }
.row b { white-space: nowrap; }
.paid { color: var(--green); font-weight: 600; }

/* WhatsApp bubble strip */
.chat { display: grid; gap: 8px; }
.bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bubble.out {
  margin-left: auto;
  background: linear-gradient(100deg, rgba(22, 163, 74, 0.14), rgba(22, 163, 74, 0.08));
  border-color: rgba(22, 163, 74, 0.3);
}
.bubble small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.68rem; }

/* Phone frame for the parent app */
.phone {
  width: min(300px, 78vw);
  margin-inline: auto;
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.phone-top {
  height: 26px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  width: 46%;
  margin-inline: auto;
}
.phone-body { padding: 14px; display: grid; gap: 10px; }
.p-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-2);
}
.p-card b { font-size: 0.9rem; }
.p-card p { font-size: 0.76rem; color: var(--body); margin-top: 3px; }
.p-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(46, 124, 246, 0.12);
  color: var(--blue);
}

/* ─────────── PAIN STRIP ─────────── */
.pains { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--surface);
}
.pain b { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.pain p { color: var(--body); font-size: 0.93rem; line-height: 1.65; }
.pain .fix {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─────────── FEATURE GRID ─────────── */
.feats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.feat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feat:hover { border-color: var(--blue); transform: translateY(-3px); }
.feat-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 14px;
  background: var(--grad);
  color: #fff;
}
.feat-ic svg { width: 21px; height: 21px; }
.feat h3 { font-size: 1.03rem; letter-spacing: -0.01em; }
.feat p { margin-top: 6px; color: var(--body); font-size: 0.9rem; line-height: 1.65; }

/* ─────────── SPLIT SECTIONS ─────────── */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split.flip > *:first-child { order: 2; } }

.ticks { display: grid; gap: 12px; margin-top: 22px; }
.tick { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; line-height: 1.6; }
.tick i {
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.14);
  color: var(--green);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ─────────── STEPS ─────────── */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: s; }
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px 22px;
  background: var(--surface);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.step b { display: block; margin-bottom: 6px; }
.step p { color: var(--body); font-size: 0.92rem; line-height: 1.65; }

/* ─────────── FAQ ─────────── */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--body); line-height: 1.7; font-size: 0.95rem; }

/* ─────────── CTA + FORM ─────────── */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--body); }
.field input {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus { outline: 2px solid rgba(46, 124, 246, 0.35); outline-offset: 1px; border-color: var(--blue); }
.form-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); min-height: 1.2em; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  margin-bottom: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-line span { font-weight: 400; color: var(--muted); font-size: 0.85rem; display: block; }
.contact-line:hover { border-color: var(--blue); }

/* Sticky bar so a phone visitor always has the call/WhatsApp button in reach. */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--nav-bg-solid);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) { .sticky-cta { display: flex; } body.erp-page { padding-bottom: 74px; } }
