/* MizaPos vivid marketing theme — brand blue + product pastels */
:root {
  --navy: #0b5fff;
  --navy-dark: #0747c9;
  --navy-light: #3d82ff;
  --sky: #38bdf8;
  --bg: #f3f7ff;
  --brand-soft: #e8f0ff;
  --border: rgba(11, 95, 255, 0.14);
  --shadow: 0 28px 70px rgba(7, 71, 201, 0.16);
  --tile-radius: 22px;
  --accent-mint: #14b8a6;
  --accent-sun: #f59e0b;
  --accent-coral: #fb7185;
}

body.page-vivid {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(20, 184, 166, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f8ff 0%, #f8fafc 50%, #f3f7ff 100%);
}

.topbar--vivid {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(11, 95, 255, 0.1);
}

.topbar--vivid .nav a.is-active {
  color: var(--navy);
}

.btn-account {
  background: linear-gradient(135deg, #0b5fff, #38bdf8);
  color: #fff !important;
  border: none;
  box-shadow: 0 12px 28px rgba(11, 95, 255, 0.28);
}

.btn-account:hover {
  filter: brightness(1.05);
}

/* ——— Split hero: clear text + mockup ——— */
.hero-split {
  padding: 36px 0 28px;
}

.hero-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.hero-split__copy {
  color: #0f172a;
  padding: 8px 0;
}

.hero-brand {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0b5fff;
  animation: rise-in 0.55s ease both;
}

.hero-split__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  max-width: 18ch;
  animation: rise-in 0.55s ease 0.06s both;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.7;
  max-width: 36ch;
  animation: rise-in 0.55s ease 0.12s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: rise-in 0.55s ease 0.18s both;
}

.home-welcome {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #0b5fff;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(11, 95, 255, 0.18);
}

.home-welcome.hidden {
  display: none !important;
}

.site-auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-inline-start: auto;
  order: 3;
}

.auth-hello {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.auth-hello strong {
  color: #0b5fff;
}

.auth-link,
.auth-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(11, 95, 255, 0.16);
  background: #fff;
  color: #334155;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-link--primary {
  background: #0b5fff;
  border-color: #0b5fff;
  color: #fff;
}

.site-login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.site-login-modal.hidden {
  display: none !important;
}

.site-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.site-login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.site-login-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.site-login-sub {
  margin: 0 0 14px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-login-x {
  position: absolute;
  top: 10px;
  left: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.site-login-card .field-label {
  display: block;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 13.5px;
}

.site-login-card .field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(11, 95, 255, 0.18);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.site-login-card .portal-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
}

.site-login-card .portal-msg.hidden { display: none !important; }
.site-login-card .portal-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.site-login-card .portal-msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.site-login-card .btn-block { width: 100%; }
.site-login-foot {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

body.login-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .site-auth-slot {
    order: 3;
    width: auto;
  }
}

.hero-split__visual {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 95, 255, 0.12);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.hero-split__visual img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-split__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-split__copy h1 { max-width: none; }
  .hero-lead { max-width: none; }
}

/* ——— Module tiles ——— */
.section-modules {
  padding-top: 56px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mod-tile {
  background: var(--tile, #e8f0ff);
  border-radius: var(--tile-radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mod-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.mod-ico {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 4px;
}

.mod-tile strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.mod-tile span:last-child {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— Screenshots ——— */
.shots-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shots-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shot-card h4 {
  margin: 10px 0 0;
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .shots-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cta-band--vivid {
  background: linear-gradient(120deg, #0b5fff 0%, #0747c9 45%, #0ea5e9 100%);
  color: #fff;
  border-radius: 28px;
  margin: 24px auto 48px;
  width: min(1140px, 100% - 32px);
  box-shadow: var(--shadow);
}

.cta-band--vivid .btn-pricing {
  background: #fff;
  color: var(--navy-dark);
}

.footer--vivid {
  background: #071840;
  color: #e2e8f0;
}

.footer--vivid a { color: #93c5fd; }
