/* ==========================================================================
   VaydaERP — public marketing redesign (GO-WEB2-PUBLIC-MARKETING-REDESIGN)
   New-customer message: Saudi cloud ERP — fast, easy, professional.
   Reuses theme.css brand tokens (--brand-primary #0E7C66, --brand-cta #CC5A1E,
   --surface, --text, --text-muted, --border) and its [data-theme="dark"].
   All visuals are ILLUSTRATIVE (CSS/SVG), not app screenshots.
   ========================================================================== */
.mk { --mk-max: 1160px; --mk-band: #F4F7FA; display: block; }
:root[data-theme="dark"] .mk { --mk-band: #0F1722; }
@media (prefers-color-scheme: dark) { .mk { --mk-band: #0F1722; } }
.mk-section { padding: clamp(3rem, 6vw, 5.5rem) 1.25rem; }
/* Alternating section band — restores the visual separation that was lost when a
   later :root in theme.css collapsed --surface onto --bg. Scoped, not global. */
.mk-section--band { background: var(--mk-band); }
.mk-wrap { max-width: var(--mk-max); margin-inline: auto; }
.mk-center { text-align: center; }
.mk-eyebrow { color: var(--brand-primary); font-weight: 700; font-size: .92rem; letter-spacing: .01em; }
.mk-h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.3; margin: .5rem 0 .6rem; }
.mk-lead { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; max-width: 640px; margin-inline: auto; }
.mk-ic { width: 1.4em; height: 1.4em; flex: none; vertical-align: middle; }

/* ---- Hero ---- */
.mk-hero { background: linear-gradient(180deg, var(--brand-cta-soft) 0%, transparent 55%); }
.mk-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.mk-hero-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.22; margin: .6rem 0 0; }
.mk-hero-title .mk-accent { color: var(--brand-primary); }
.mk-hero-sub { color: var(--text-muted); font-size: 1.12rem; line-height: 1.95; margin: 1.2rem 0 1.7rem; max-width: 560px; }
.mk-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.mk-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: .7rem; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border: 1.5px solid transparent; cursor: pointer; }
.mk-btn-primary { background: var(--brand-cta-strong, #B34D17); color: #fff; box-shadow: 0 8px 22px rgba(204,90,30,.26); }
.mk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(204,90,30,.34); }
.mk-btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.mk-btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.mk-trust-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; color: var(--text-muted); font-size: .9rem; }
.mk-trust-strip span { display: inline-flex; align-items: center; gap: .45rem; }
.mk-trust-strip .mk-ic { color: var(--brand-primary); width: 1.15em; height: 1.15em; }

/* ---- App mockup (illustrative, not a real screenshot) ---- */
.mk-mock { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px rgba(15,23,42,.13); overflow: hidden; }
.mk-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mk-mock-bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mk-mock-bar .t { margin-inline-start: auto; font-size: .72rem; color: var(--text-muted); }
.mk-mock-body { display: grid; grid-template-columns: 54px 1fr; }
.mk-mock-side { background: var(--surface); border-inline-start: 1px solid var(--border); padding: 14px 8px; display: flex; flex-direction: column; gap: 11px; }
.mk-mock-side .s { height: 8px; border-radius: 4px; background: var(--border); }
.mk-mock-side .s.on { background: var(--brand-primary); opacity: .85; }
.mk-mock-main { padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.mk-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mk-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mk-kpi .lbl { font-size: .68rem; color: var(--text-muted); }
.mk-kpi .val { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-top: 3px; }
.mk-kpi .val.brand { color: var(--brand-primary); }
.mk-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.mk-chart .bar { flex: 1; background: var(--brand-primary); opacity: .85; border-radius: 4px 4px 0 0; }
.mk-rows { display: flex; flex-direction: column; gap: 7px; }
.mk-rows .r { height: 9px; border-radius: 4px; background: var(--border); }
.mk-rows .r:nth-child(odd) { width: 92%; }
.mk-rows .r:nth-child(3n) { width: 78%; }

/* ---- Pillars ---- */
.mk-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem; }
.mk-pillar { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem; text-align: center; }
.mk-pillar .ic { width: 58px; height: 58px; margin: 0 auto 1.1rem; border-radius: 15px; display: grid; place-items: center; background: var(--brand-cta-soft); color: var(--brand-primary); }
.mk-pillar .ic .mk-ic { width: 28px; height: 28px; }
.mk-pillar h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.mk-pillar p { color: var(--text-muted); line-height: 1.85; font-size: .98rem; }

/* ---- Modules ---- */
.mk-modules { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1rem; margin-top: 2.5rem; }
.mk-mod { display: flex; align-items: center; gap: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.05rem 1.2rem; font-weight: 700; }
.mk-mod .ic { color: var(--brand-primary); display: inline-flex; }
.mk-mod .ic .mk-ic { width: 26px; height: 26px; }

/* ---- ZATCA ---- */
.mk-zatca-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.75rem,3vw,2.5rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.mk-zatca-card h2 { font-size: clamp(1.35rem,2.6vw,1.85rem); font-weight: 800; }
.mk-zatca-card p { color: var(--text-muted); line-height: 1.95; margin-top: .75rem; }
.mk-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.mk-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .42rem .95rem; font-size: .86rem; font-weight: 600; }
.mk-badge .mk-ic { width: 1.05em; height: 1.05em; color: var(--brand-primary); }
.mk-zatca-visual { display: grid; place-items: center; }
.mk-shield { width: 130px; height: 130px; color: var(--brand-primary); opacity: .9; }

/* ---- Trial band ---- */
.mk-trial { background: var(--brand-primary); color: #fff; border-radius: 20px; padding: clamp(1.75rem,3.5vw,3rem); text-align: center; }
.mk-trial h2 { color: #fff; font-size: clamp(1.45rem,3vw,2.05rem); font-weight: 800; }
.mk-trial p { color: rgba(255,255,255,.92); margin: .7rem auto 1.4rem; max-width: 560px; line-height: 1.9; }
.mk-trial .feats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1.7rem; color: #fff; font-size: .95rem; }
.mk-trial .feats span { display: inline-flex; align-items: center; gap: .45rem; }
.mk-trial .feats .mk-ic { width: 1.1em; height: 1.1em; }
.mk-trial .mk-btn-primary { background: #fff; color: var(--brand-primary); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.mk-trial .mk-btn-primary:hover { transform: translateY(-2px); }

/* ---- Migrate / SafeImport side-path ---- */
.mk-migrate { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; padding: 1.5rem 1.75rem; }
.mk-migrate .ic { color: var(--text-muted); display: inline-flex; }
.mk-migrate .ic .mk-ic { width: 34px; height: 34px; }
.mk-migrate .txt { flex: 1 1 320px; }
.mk-migrate h3 { font-size: 1.12rem; font-weight: 700; }
.mk-migrate p { color: var(--text-muted); margin-top: .35rem; line-height: 1.8; }
.mk-link { color: var(--brand-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mk-link:hover { text-decoration: underline; }

/* ---- eyebrow rhythm ---- */
.mk-eyebrow { display: inline-block; margin-bottom: .35rem; text-transform: none; }

/* ---- card lift (matches the pricing-card hover, gives the whole page life) ---- */
.mk-pillar, .mk-mod, .mk .trust-card, .mk .faq-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mk-pillar:hover, .mk-mod:hover, .mk .trust-card:hover, .mk .faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
}

/* ---- scroll reveal (progressive enhancement) ----
   Hidden only when JS is on AND motion is allowed. No-JS or reduced-motion users
   see everything immediately (the .js class is set in <head>; see _Layout). */
.js .mk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .mk-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .mk-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .mk-hero-grid { grid-template-columns: 1fr; }
  .mk-hero-visual { order: 2; }
  .mk-pillars { grid-template-columns: 1fr; }
  .mk-zatca-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .mk-zatca-visual { order: -1; }
  .mk-shield { width: 92px; height: 92px; }
  .mk-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .mk-modules { grid-template-columns: 1fr; }
}
