/* ==========================================================================
   ERP theme layer — makes the marketing site look and feel like myerphome.com.
   Loaded after styles.css. Ported from the ERP app's guest shell (header,
   footer, front page): same palette, Georgia hero headings, 10px pill-less
   buttons, soft grid + glow background, compact one-line footer.
   Themes still follow [data-theme] because everything reads the site tokens.
   ========================================================================== */

:root {
    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-text: var(--text);
    --color-text-muted: var(--text-muted);
    --color-primary: var(--primary);
    --color-accent: var(--accent);
    --color-border: var(--border-strong);
    --color-success: #16a34a;
    --mk-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

/* ERP light palette: cool grey page, white cards. */
:root, [data-theme="light"] {
    --bg: #eef1f7;
    --bg-soft: #e8ecf5;
    --border: #d8dce9;
    --border-strong: #d8dce9;
    --radius-btn: 10px;
}
[data-theme="dark"], [data-theme="purple"], [data-theme="ocean"] { --radius-btn: 10px; }

body {
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}

/* ---------- Header: translucent bar, hairline border, 10px buttons ---------- */
.navbar {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--border);
}
.navbar .btn, .mobile-menu-cta .btn { border-radius: var(--radius-btn); font-weight: 700; font-size: 0.875rem; }
.navbar .btn-ghost { background: var(--surface); border-color: var(--border); }
.navbar .btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 60%, transparent); }
.navbar .btn-primary i { color: inherit; }
.nav-links a { border-radius: 10px; font-weight: 600; }

/* ---------- Buttons site-wide: 10px radius, edge-ring hover (no lift) ---------- */
.btn { border-radius: var(--radius-btn); }
.btn:hover { transform: none; }
.btn-primary:hover, .btn-solid:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent), var(--shadow-md); }
.btn-ghost:hover { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); background: var(--surface); }

/* ---------- Headings: classical serif on page titles ---------- */
h1, .section-head h2 { font-family: var(--mk-serif); letter-spacing: -0.015em; }

/* ---------- Footer: tinted bar like the ERP footer ---------- */
.reg-bar {
    background: color-mix(in srgb, var(--text) 5%, var(--bg));
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 24px -20px rgb(0 0 0 / 35%);
}

/* ==========================================================================
   Front page (mirrors the ERP "Splash" page)
   ========================================================================== */
.mk-wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.mk-hero {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    background:
        radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%);
}
.mk-hero-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .mk-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.mk-h1 {
    font-family: var(--mk-serif); font-weight: 700; letter-spacing: -0.015em;
    font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.12; margin: 0 0 0.6rem;
}
.mk-h1 em {
    display: block; font-style: italic; font-weight: 700;
    background: linear-gradient(120deg, var(--primary), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mk-lead { font-size: clamp(0.95rem, 1.5vw, 1.1rem); line-height: 1.5; color: var(--text-muted); max-width: 44ch; margin: 0; }
.mk-cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0.85rem; }
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0.65rem 1.25rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.mk-btn-primary { color: #fff; background: linear-gradient(120deg, #4f46e5, #6d28d9); box-shadow: 0 10px 26px -12px rgba(79, 70, 229, 0.8); }
.mk-btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent), 0 10px 26px -12px rgba(79, 70, 229, 0.8); }
.mk-btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.mk-btn-ghost:hover { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.mk-hero .mk-cta-row .mk-btn { flex: 1 1 170px; }
@media (min-width: 640px) { .mk-hero .mk-cta-row .mk-btn { flex: 0 0 auto; } }
.mk-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.mk-trust-sep { opacity: 0.4; }
.mk-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 639px) { .mk-trust-sep { display: none; } .mk-trust .mk-link { flex-basis: 100%; } }

/* The billing picture */
.mk-mock {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.35);
    overflow: hidden; width: 100%; max-width: 440px; margin-inline: auto; font-variant-numeric: tabular-nums;
}
.mk-mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; font-size: 0.8rem; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-bottom: 1px solid var(--border); }
.mk-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mk-mock-bar span:nth-child(1) { background: #f87171; } .mk-mock-bar span:nth-child(2) { background: #fbbf24; } .mk-mock-bar span:nth-child(3) { background: #4ade80; }
.mk-mock-bar strong { margin-left: 0.6rem; }
.mk-mock-bar em { margin-left: auto; font-style: normal; color: var(--text-muted); }
.mk-mock-body { padding: 0.25rem 0.85rem; }
.mk-mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); animation: mkRowIn 0.5s ease both; }
.mk-mock-row b { display: block; font-size: 0.875rem; }
.mk-mock-row small { color: var(--text-muted); font-size: 0.72rem; }
.mk-mock-qty { color: var(--text-muted); font-size: 0.9rem; }
.mk-mock-amt { font-weight: 700; min-width: 5.2rem; text-align: right; }
.mk-mock-totals { padding: 0.6rem 0.85rem 0.75rem; font-size: 0.82rem; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border-top: 1px solid var(--border); animation: mkRowIn 0.5s ease 3.9s both; }
.mk-mock-totals > div { display: flex; justify-content: space-between; padding: 0.15rem 0; color: var(--text-muted); }
.mk-mock-pay { margin-top: 0.4rem; padding-top: 0.55rem !important; border-top: 1px dashed var(--border); color: var(--text) !important; font-weight: 700; align-items: baseline; }
.mk-mock-pay strong { font-size: 1.35rem; letter-spacing: -0.02em; color: var(--primary); }
.mk-mock-row:nth-child(1) { animation-delay: 0.9s; } .mk-mock-row:nth-child(2) { animation-delay: 1.8s; } .mk-mock-row:nth-child(3) { animation-delay: 2.7s; }
@keyframes mkRowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk-mock-row, .mk-mock-totals { animation: none; } }

/* Proof strip: four words */
.mk-proof { border-block: 1px solid var(--border); background: var(--surface); }
.mk-proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .mk-proof-grid { grid-template-columns: repeat(4, 1fr); } }
.mk-proof-grid li { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.85rem 0.75rem; border-left: 1px solid var(--border); text-align: left; }
.mk-proof-grid li:nth-child(odd) { border-left: 0; }
.mk-proof-grid li:nth-child(n + 3) { border-top: 1px solid var(--border); }
@media (min-width: 760px) {
    .mk-proof-grid li { border-top: 0 !important; border-left: 1px solid var(--border) !important; }
    .mk-proof-grid li:first-child { border-left: 0 !important; }
}
.mk-proof-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.mk-proof-a .mk-proof-ico { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.mk-proof-b .mk-proof-ico { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.mk-proof-c .mk-proof-ico { background: linear-gradient(135deg, #22c55e, #15803d); }
.mk-proof-d .mk-proof-ico { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.mk-proof-text { display: grid; gap: 0.1rem; }
.mk-proof-grid strong { font-family: var(--mk-serif); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
.mk-proof-grid li span.note { color: var(--text-muted); font-size: 0.78rem; line-height: 1.25; }

/* One plan, calmly */
.mk-section { padding: clamp(1.25rem, 2.6vw, 2rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.mk-featured {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
    padding: 1rem 1.25rem; border: 1px solid var(--primary); border-radius: 14px; background: var(--surface);
    box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--primary) 70%, transparent);
}
.mk-featured-info { display: grid; gap: 0.1rem; min-width: 0; }
.mk-featured-name { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); }
.mk-plan-price { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.mk-plan-price small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.mk-featured-blurb { color: var(--text-muted); font-size: 0.875rem; }
.mk-featured-act { display: grid; justify-items: center; gap: 0.35rem; }
.mk-featured-act .mk-btn { white-space: nowrap; }
@media (max-width: 560px) { .mk-featured-act, .mk-featured-act .mk-btn { width: 100%; } }

/* The front page hero is content-height: hero, proof strip and plan bar read as one screen. */
body[data-page="home"] #slide-hero { min-height: 0; padding-block: 0; justify-content: flex-start; overflow: visible; }

/* Catchy touches: proof tiles light up, plan bar lifts, hero gets a soft entrance that never hides content. */
.mk-proof-grid li { transition: background-color 0.18s ease; }
.mk-proof-grid li:hover { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.mk-featured { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.mk-featured:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -26px color-mix(in srgb, var(--primary) 80%, transparent); }
@media (prefers-reduced-motion: no-preference) { .mk-mock { animation: mkFloat 6s ease-in-out infinite; } }
@keyframes mkFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
/* Long-form sections below the fold: skip rendering work until they scroll near. */
body[data-page="home"] .snap-section:not(#slide-hero) { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* Feature-suite diagram: compact card with a soft frame, crisp at any width. */
.zoom-target-wrap img#hubImage { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 24px 60px -34px rgba(15, 23, 42, 0.4); }
