/* =========================================================
   EduIntels — MOBILE CSS (Phone-only)
   - Works with header_mobile.php drawer markup
   - Works with footer_mobile.php (mobileBar + modal)
========================================================= */

:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;

  --primary:#5624D0;
  --primary2:#6D28D9;
  --accent:#0EA5E9;
  --mint:#10B981;
  --warn:#F59E0B;
  --danger:#EF4444;

  --border:#e5e7eb;
  --border2:#eef2f7;

  --shadow:0 10px 22px rgba(15,23,42,.06);
  --shadow2:0 18px 44px rgba(15,23,42,.10);

  --r12:12px;
  --r14:14px;
  --r16:16px;
  --r18:18px;

  --container:1140px;
  --pad:16px;

  --headerH:66px;
}

/* =========================
   Base
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  padding-bottom: 78px; /* room for sticky mobileBar (footer_mobile.php also adds padding) */
}
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; }
img{ max-width:100%; height:auto; display:block; }
.container{ max-width:var(--container); margin:0 auto; padding:0 var(--pad); }
.muted{ color:var(--muted); }
.tiny{ font-size:12px; }
.w100{ width:100%; }

:focus-visible{
  outline:3px solid rgba(86,36,208,.22);
  outline-offset:2px;
  border-radius:10px;
}

/* Hide desktop-only UI if it leaks in */
.nav{ display:none !important; }

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:var(--r14);
  border:1px solid transparent;
  cursor:pointer;
  font-weight:950;
  transition:transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 18px rgba(86,36,208,.16);
}
.btn--primary:hover{ background:var(--primary2); }

.btn--ghost{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}
.btn--ghost:hover{
  border-color:rgba(86,36,208,.25);
  box-shadow:0 10px 18px rgba(15,23,42,.06);
}

.iconbtn{
  border:0;
  background:transparent;
  cursor:pointer;
  width:40px;
  height:40px;
  border-radius:var(--r14);
  display:grid;
  place-items:center;
}
.iconbtn:hover{ background:rgba(15,23,42,.05); }

/* =========================
   Topbar
========================= */
.topbar{ background:#fff; border-bottom:1px solid var(--border); }
.topbar__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:8px;
  flex-wrap:wrap;
}
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(86,36,208,.18);
  background:rgba(86,36,208,.06);
  color:var(--primary);
  font-weight:900;
  font-size:12px;
}
.toplink{ color:var(--muted); font-weight:900; }
.toplink:hover{ color:var(--text); }
.sep{ color:rgba(15,23,42,.35); }

/* =========================
   Header (mobile)
========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 0;
  min-height:var(--headerH);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand__mark{
  width:40px;
  height:40px;
  border-radius:14px;
  background:var(--primary);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:950;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{ font-weight:950; letter-spacing:-.2px; }
.brand__tag{ font-size:12px; color:var(--muted); font-weight:800; margin-top:2px; }

.hamburger{
  width:44px;height:44px;
  border-radius:var(--r14);
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.hamburger span{
  display:block;
  width:18px;
  height:2px;
  background:rgba(15,23,42,.75);
  margin:4px auto;
  border-radius:2px;
}

/* =========================
   HERO
========================= */
.hero{
  padding:18px 0 14px;
  background:
    radial-gradient(700px 420px at 10% 0%, rgba(86,36,208,.12), transparent 60%),
    radial-gradient(700px 420px at 95% 10%, rgba(14,165,233,.10), transparent 58%),
    linear-gradient(180deg, rgba(16,185,129,.05), transparent 44%),
    #fff;
}
.hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(86,36,208,.18);
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.82);
}
.pill__dot{ width:10px;height:10px;border-radius:50%;background:var(--primary); }
.hero h1{
  margin:10px 0 8px;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.5px;
}
.lead{ margin:0 0 12px; color:var(--muted); font-size:15px; }

.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0;
}
.hero__actions .btn{ flex:1; min-width: 140px; }

.hero__chips{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:var(--r16);
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:900;
  color:rgba(15,23,42,.82);
}
.chip__i{
  width:34px;height:34px;
  border-radius:var(--r14);
  display:grid;
  place-items:center;
  background:rgba(86,36,208,.10);
  border:1px solid rgba(86,36,208,.18);
  color:var(--primary);
  font-weight:950;
  font-size:12px;
}
.hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.dotsep{ color:rgba(15,23,42,.35); font-weight:900; }

/* Trust */
.trust{ margin-top:12px; display:grid; gap:8px; }
.trust__label{ font-weight:900; color:rgba(15,23,42,.78); }
.trust__logos{ display:flex; flex-wrap:wrap; gap:8px; }
.trust__logo{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.78);
}

/* Hero card */
.heroCard{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.heroCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}
.heroCard__pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(86,36,208,.18);
  background:rgba(86,36,208,.06);
  color:var(--primary);
  font-weight:950;
  font-size:12px;
}
.heroCard__muted{ color:var(--muted); font-weight:900; font-size:12px; }
.dash{ padding:14px; }
.dash__kpis{ display:grid; grid-template-columns:1fr; gap:10px; }
.kpi{ border:1px solid var(--border2); border-radius:var(--r16); padding:12px; background:#fff; }
.kpi__k{ color:var(--muted); font-weight:900; font-size:12px; }
.kpi__v{ font-weight:950; font-size:20px; margin:4px 0; }
.kpi__m{ color:var(--muted); font-weight:800; font-size:12px; }

.dash__list{ margin-top:10px; display:grid; gap:10px; }
.dashRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:var(--r16);
  border:1px solid var(--border2);
  background:#fff;
}
.dash__foot{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
}

.heroSide{ margin-top:12px; display:grid; gap:10px; }
.heroSide__item{
  border:1px solid var(--border);
  border-radius:var(--r16);
  padding:12px;
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:900;
  color:rgba(15,23,42,.78);
}

/* =========================
   Sections (stacked)
========================= */
.section{
  padding:36px 0;
  border-top:1px solid var(--border2);
  background:#fff;
}
.section--soft{
  background:
    radial-gradient(700px 420px at 18% 0%, rgba(14,165,233,.08), transparent 62%),
    radial-gradient(700px 420px at 90% 10%, rgba(86,36,208,.08), transparent 58%),
    #fff;
}
.section__head{ margin-bottom:16px; }
.section__head h2{
  margin:0 0 6px;
  font-size:22px;
  letter-spacing:-.2px;
}
.section__head .sub{ margin:0; color:var(--muted); font-weight:800; }

/* Featured / grids */
.featured{ display:grid; grid-template-columns:1fr; gap:12px; }
.featuredMain{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow2);
}
.featuredMain__inner{ padding:14px; display:grid; gap:10px; }
.featuredMain__tag{
  width:fit-content;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(86,36,208,.18);
  background:rgba(86,36,208,.06);
  color:var(--primary);
  font-weight:950;
  font-size:12px;
}
.featuredMain h3{ margin:0; letter-spacing:-.2px; }
.featuredMain__bullets{ display:flex; flex-wrap:wrap; gap:8px; }
.miniPill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,.78);
}
.featuredMain__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.featuredMain__actions .btn{ flex:1; }

.featuredGrid{ display:grid; grid-template-columns:1fr; gap:10px; }
.fCard{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:var(--r16);
  background:#fff;
  box-shadow:var(--shadow);
  padding:12px;
}
.fCard__i{
  width:42px;height:42px;
  border-radius:var(--r14);
  display:grid; place-items:center;
  background:rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.20);
  color:#075985;
  font-weight:950;
}
.fCard__b{ display:grid; gap:4px; }
.fCard__b strong{ font-weight:950; }

/* Battle */
.battle{ display:grid; grid-template-columns:1fr; gap:12px; }
.battleBox{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow);
  padding:14px;
}
.battleBox--mint{
  border-color:rgba(16,185,129,.25);
  background:linear-gradient(180deg, rgba(16,185,129,.08), rgba(255,255,255,.85)), #fff;
}
.list{ margin:0; padding-left:18px; color:rgba(15,23,42,.82); font-weight:800; }
.list li{ margin:10px 0; }

/* Principles */
.principles{ margin-top:12px; display:grid; grid-template-columns:1fr; gap:10px; }
.pCard{
  border:1px solid var(--border);
  border-radius:var(--r16);
  background:#fff;
  box-shadow:var(--shadow);
  padding:12px;
  display:grid;
  gap:6px;
}
.pCard__h{ font-weight:950; }

/* Modules */
.modulesGrid{ display:grid; grid-template-columns:1fr; gap:10px; }
.mCard{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:var(--r16);
  background:#fff;
  box-shadow:var(--shadow);
  padding:12px;
}
.mCard__i{
  width:42px;height:42px;
  border-radius:var(--r14);
  display:grid; place-items:center;
  background:rgba(86,36,208,.10);
  border:1px solid rgba(86,36,208,.18);
  color:var(--primary);
  font-weight:950;
}
.mCard__b{ display:grid; gap:4px; }
.mCard__b strong{ font-weight:950; }

.ctaRow{ margin-top:14px; display:grid; gap:10px; }
.ctaRow .btn{ width:100%; }

/* Strip */
.strip{
  padding:18px 0;
  border-top:1px solid var(--border2);
  border-bottom:1px solid var(--border2);
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(86,36,208,.08), transparent 60%),
    radial-gradient(700px 220px at 90% 10%, rgba(16,185,129,.08), transparent 60%),
    #fff;
}
.strip__row{ display:grid; gap:10px; }
.strip h3{ margin:0 0 4px; }

/* Pricing */
.toggle{ display:flex; gap:10px; align-items:center; margin:14px 0; flex-wrap:wrap; }
.toggle__btn{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius:var(--r14);
  font-weight:950;
  cursor:pointer;
  color:rgba(15,23,42,.80);
  display:flex;
  align-items:center;
  gap:8px;
}
.toggle__btn.is-active{
  border-color:rgba(86,36,208,.28);
  background:rgba(86,36,208,.06);
  color:var(--primary);
}
.tagSave{
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(16,185,129,.25);
  background:rgba(16,185,129,.10);
  color:#065f46;
  font-weight:950;
  font-size:12px;
}

.pricing{ display:grid; grid-template-columns:1fr; gap:12px; }
.priceCard{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow2);
  padding:14px;
  position:relative;
}
.priceCard--featured{ border-color:rgba(86,36,208,.30); }
.ribbon{
  position:absolute;
  top:12px; right:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(86,36,208,.22);
  background:rgba(86,36,208,.06);
  color:var(--primary);
  font-weight:950;
  font-size:12px;
}
.amountRow{ display:flex; align-items:flex-end; gap:6px; margin:10px 0; }
.currency{ font-weight:950; color:rgba(15,23,42,.82); }
.amount{ font-size:34px; font-weight:950; letter-spacing:-.6px; }
.per{ color:var(--muted); font-weight:900; padding-bottom:6px; }

.ticks{ margin:0; padding-left:0; list-style:none; display:grid; gap:8px; }
.ticks li{ padding-left:26px; position:relative; font-weight:900; color:rgba(15,23,42,.82); }
.ticks li:before{
  content:"✓";
  position:absolute; left:0; top:0;
  width:18px; height:18px;
  border-radius:6px;
  display:grid; place-items:center;
  background:rgba(86,36,208,.10);
  border:1px solid rgba(86,36,208,.18);
  color:var(--primary);
  font-weight:950;
}
.procNote{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--r16);
  background:#fff;
  color:rgba(15,23,42,.78);
  font-weight:900;
}

/* FAQ */
.faq{ display:grid; gap:10px; }
.qa{
  border:1px solid var(--border);
  border-radius:var(--r16);
  background:#fff;
  overflow:hidden;
}
.qa__q{
  width:100%;
  text-align:left;
  padding:14px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-weight:950;
  color:rgba(15,23,42,.86);
}
.qa__a{ display:none; padding:0 14px 14px; color:var(--muted); font-weight:800; }
.qa.is-open .qa__a{ display:block; }

/* Talk / Form */
.talk{ display:grid; grid-template-columns:1fr; gap:12px; }
.talkCard{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow2);
  padding:14px;
}
.talkLinks{ display:grid; gap:10px; margin:12px 0 10px; }
.talkLinks a{
  padding:12px;
  border-radius:var(--r14);
  border:1px solid var(--border2);
  background:#fff;
  font-weight:900;
  color:rgba(15,23,42,.85);
}
.talkFlow{
  margin-top:10px;
  padding:12px;
  border-radius:var(--r16);
  border:1px solid rgba(86,36,208,.18);
  background:rgba(86,36,208,.05);
  font-weight:900;
  color:rgba(15,23,42,.82);
}
.supportLine{
  margin-top:12px;
  font-weight:900;
  color:rgba(15,23,42,.82);
}

.inlineAlert{
  padding:10px 12px;
  border-radius:var(--r16);
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  margin-bottom:12px;
}
.inlineAlert--success{ border-color:rgba(16,185,129,.30); background:rgba(16,185,129,.08); }
.inlineAlert--error{ border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.06); }

.form{
  border:1px solid var(--border);
  border-radius:var(--r18);
  background:#fff;
  box-shadow:var(--shadow2);
  padding:14px;
}
.form--flat{ border:0; box-shadow:none; background:#fff; padding: 14px 16px 16px; }
.field{ display:grid; gap:6px; }
.field label{ font-weight:950; font-size:13px; color:rgba(15,23,42,.84); }
.field input,
.field textarea,
.field select{
  width:100%;
  border:1px solid var(--border);
  background:#fff;
  border-radius:var(--r14);
  padding:12px;
  outline:none;
  font-weight:800;
  color:rgba(15,23,42,.88);
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color:rgba(86,36,208,.45);
  box-shadow:0 0 0 4px rgba(86,36,208,.12);
}
.row{ display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:12px; }

/* =========================
   Footer (mobile)
========================= */
.footer{
  border-top:1px solid var(--border);
  padding: 18px 0;
  background:#fff;
}

/* =========================
   Demo Modal (mobile)
========================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.45);
}
.modal__panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 18px auto;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--r18);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.modal__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3{ margin:0 0 4px; }
.modal__head p{ margin:0; }

/* =========================
   Sticky Mobile Action Bar (footer_mobile.php)
========================= */
.mobileBar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 9996;
}
.mobileBar__btn{
  flex: 1;
  padding: 14px 10px;
  text-align: center;
  font-weight: 950;
  color: rgba(15,23,42,.85);
  border-right: 1px solid var(--border2);
  background: transparent;
  cursor: pointer;
}
.mobileBar__btn:last-child{ border-right:0; }
.mobileBar__btn--primary{
  background: var(--primary);
  color:#fff;
  border-right: 0;
}

/* =========================================================
   MOBILE DRAWER (matches header_mobile.php structure)
========================================================= */
.mobile{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  background:rgba(2,6,23,.45);
  backdrop-filter:blur(6px);
}
.mobile.is-open{ display:block; }

.mobile__panel{
  position:absolute;
  top:0; right:0;
  width:min(92vw, 420px);
  height:100%;
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow:0 20px 60px rgba(2,6,23,.18);
  transform:translateX(100%);
  transition:transform .22s ease;
  display:flex;
  flex-direction:column;
}
.mobile.is-open .mobile__panel{ transform:translateX(0); }

.mobile__head{
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--border2);
}
.mobile__inner{
  padding:12px 14px 16px;
  display:grid;
  gap:10px;
  overflow:auto;
}
.mobile__inner a{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border2);
  background:#fff;
  font-weight:900;
}
.mobile__inner a:hover{ border-color:rgba(86,36,208,.22); }
.mobile__cta{ margin-top:6px; display:grid; gap:10px; }

body.menu-open{ overflow:hidden; }
