:root{
  --bg: #ffffff;
  --bg-soft: #fbfbff;
  --text: #0f1222;
  --muted: #5b607a;
  --border: rgba(20, 24, 44, .10);
  --shadow: 0 18px 48px rgba(20,24,44,.08);
  --shadow-soft: 0 10px 24px rgba(20,24,44,.06);

  --p1: #5B2EEA;
  --p2: #8B5CF6;
  --p3: #A78BFA;
  --grad: linear-gradient(120deg, var(--p1), var(--p2) 60%, var(--p3));
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1160px;

  /* if you later set fixed bars, keep these */
  --promo-h: 44px;
  --nav-h: 72px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* If promo + header are fixed in public.php, uncomment:
main.public-main{ padding-top: calc(var(--promo-h) + var(--nav-h)); }
*/

/* =========================
   TOP PROMO BAR
========================= */
.promo{
  background: rgba(91,46,234,.10);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.promo .row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
}
.promo strong{ color: var(--text); }
.promo .links{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}
.promo .links a{
  color: var(--muted);
  text-decoration: none;
}
.promo .links a:hover{ color: var(--text); text-decoration: underline; }

/* =========================
   PUBLIC HEADER (PURPLE)
========================= */
.public-nav{
  background: rgba(62, 26, 168, .92); /* darker purple */
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.public-nav .container{
  padding: 18px 0; /* taller header */
}
.public-nav strong{
  color: #fff;
  font-size: 18px;
  letter-spacing: .2px;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{
  text-decoration: none;
  border-color: rgba(91,46,234,.35);
  box-shadow: 0 10px 26px rgba(91,46,234,.10);
}
.btn:active{ transform: translateY(1px); }

.btn-primary,
.btn--primary{
  border: none;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 34px rgba(91,46,234,.22);
}
.btn-primary:hover,
.btn--primary:hover{
  box-shadow: 0 18px 44px rgba(91,46,234,.28);
}
.btn--ghost{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn--ghost:hover{
  border-color: rgba(255,255,255,.40);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.btn--sm{
  padding: 8px 12px;
  font-size: 13px;
}

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  background: radial-gradient(900px 400px at 18% 10%, rgba(139,92,246,.16), transparent 60%),
              radial-gradient(700px 380px at 80% 0%, rgba(91,46,234,.12), transparent 55%),
              linear-gradient(180deg, var(--bg-soft), #fff 55%);
  overflow:hidden;
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero .wrap{
  padding: 18px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 34px;
  align-items: start;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91,46,234,.10);
  border: 1px solid rgba(91,46,234,.18);
  color: #2b1c66;
  font-size: 13px;
  font-weight: 650;
}
.kicker svg{ width: 16px; height: 16px; }

h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.8px;
}
.lead{
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 58ch;
}
.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 16px;
}

.hero-note{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.hero-note svg{ width: 16px; height: 16px; }

/* HITL pill link inside hero note */
.pill-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91,46,234,.12);
  border: 1px solid rgba(91,46,234,.20);
  color: #2b1c66;
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
}
.pill-link:hover{ text-decoration: none; filter: brightness(.98); }

/* Right enclosure look */
.hero-illustration{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: radial-gradient(400px 220px at 40% 30%, rgba(167,139,250,.20), transparent 60%),
              radial-gradient(420px 260px at 70% 70%, rgba(91,46,234,.12), transparent 60%),
              linear-gradient(180deg, #fff, #fbfbff);
  padding: 16px;
  overflow:hidden;
  position: relative;
  min-height: 340px;
}

.hero-enclosure{
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(91,46,234,.06), rgba(255,255,255,1));
  box-shadow: 0 18px 48px rgba(20,24,44,.08);
}

/* =========================
   TRUST (RIGHT CARD)
========================= */
.trust{ padding: 0; }
.trust-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20,24,44,.10);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: center;
}
.trust-card h2{ margin: 0 0 6px; }
.trust-card p{ margin: 0; color: var(--muted); }
.trust-right{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.trust-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: #1b1f3a;
}
.trust-chip svg{ width: 18px; height: 18px; }

@media (max-width: 940px){
  .trust-card{ grid-template-columns: 1fr; }
  .trust-right{ justify-content: flex-start; }
}

/* centered trust line above footer */
.trust-center-note{
  margin: 18px 0 8px;
  padding: 10px 0;
  text-align: left; /* change to center if you want */
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.trust-center-note strong{
  color: var(--text);
  margin-right: 6px;
}

/* =========================
   AGENTS
========================= */
.agent-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.agent{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.70);
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.agent .left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.agent .icon{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: rgba(91,46,234,.12);
  border: 1px solid rgba(91,46,234,.18);
  display:grid; place-items:center;
}
.agent .icon svg{ width: 18px; height: 18px; }
.agent .meta{
  display:flex;
  flex-direction: column;
  line-height: 1.2;
}
.agent .meta strong{ font-size: 13px; }
.agent .desc{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.pill{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
}
.pill--ok{
  border-color: rgba(91,46,234,.26);
  background: rgba(91,46,234,.10);
  color: #2b1c66;
}
.pill--muted{
  background: #fff;
  color: var(--muted);
}

.status{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

.agent.disabled{
  opacity: .55;
  filter: grayscale(.1);
}

@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .agent-row{ grid-template-columns: 1fr; }
}

/* =========================
   FOOTER (FULL WIDTH)
========================= */
.footer{
  padding: 26px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-left{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-left .muted{ color: var(--muted); font-size: 14px; }
.footer-links{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.footer-links a:hover{ color: var(--text); text-decoration: underline; }

.icon-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-link svg{ width: 18px; height: 18px; }

/* =========================
   PRICING MODAL
========================= */
.modal{ display:none; }
.modal.is-open{ display:block; }
body.modal-open{ overflow:hidden; }

.modal__overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,18,34,.55);
  z-index: 2000;
}
.modal__panel{
  position: fixed;
  z-index: 2001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 22px; /* more bottom air */
}

.modal__head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.modal__title{ margin:0; }
.modal__sub{ margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.modal__close{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal__close svg{ width: 20px; height: 20px; }

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 0;
}
@media (max-width: 940px){
  .pricing-grid{ grid-template-columns: 1fr; }
}

.price-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  background: #fff;
  position: relative;
}
.price-card.featured{
  border-color: rgba(91,46,234,.30);
  box-shadow: 0 16px 44px rgba(91,46,234,.12);
}

.price-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(91,46,234,.12);
  border: 1px solid rgba(91,46,234,.20);
  color: #2b1c66;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}

.price-top{ margin-bottom: 10px; }
.price-name{ font-weight: 900; font-size: 16px; }
.price-amt{ font-weight: 950; font-size: 34px; margin-top: 6px; }
.price-amt span{ font-size: 14px; color: var(--muted); font-weight: 800; margin-left: 6px; }
.price-desc{ color: var(--muted); margin-top: 6px; }

.price-list{
  margin: 12px 0 14px;
  padding-left: 18px;
  color: var(--text);
}
.price-list li{ margin: 6px 0; }

.modal__footnote{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* =========================
   MOBILE MENU SAFETY
   (desktop: never show)
========================= */
.mobile-menu{ display:none; }
.hamburger{ display:none; }

@media (max-width: 940px){
  .hamburger{
    display:inline-flex;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 10px 12px;
    cursor:pointer;
  }
  .mobile-menu{
    display:none;
    padding: 0 0 14px;
  }
  .mobile-menu a{
    display:block;
    padding: 10px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a:last-child{ border-bottom: none; }
  body.menu-open .mobile-menu{ display:block; }
}