/* Engagify Landing — static HTML/CSS/JS port of wp site/engagify-landing.
   Same design tokens, same layout, same copy — no WordPress/PHP/MySQL. */

:root {
	--eg-green: #25D366;
	--eg-green-dark: #128C7E;
	--eg-green-light: #E7F9EE;
	--eg-ink: #0F172A;
	--eg-body: #51606f;
	--eg-bg: #ffffff;
	--eg-bg-alt: #F7F9FA;
	--eg-border: #E6EAED;
	--eg-radius: 12px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--eg-ink);
	background: var(--eg-bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { color: var(--eg-ink); margin: 0 0 12px; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: var(--eg-green-dark); text-decoration: none; }
img, svg { max-width: 100%; }

.eg-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.eg-icon { width: 20px; height: 20px; flex-shrink: 0; }
.eg-icon-check { width: 18px; height: 18px; color: var(--eg-green-dark); }

/* Buttons */
.eg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 15px; font-weight: 600; padding: 11px 20px; border-radius: 999px;
	border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
	font-family: inherit;
}
.eg-btn-primary { background: var(--eg-green); color: #06331d; }
.eg-btn-primary:hover { background: var(--eg-green-dark); color: #fff; }
.eg-btn-outline { background: transparent; color: var(--eg-ink); border-color: var(--eg-border); }
.eg-btn-outline:hover { border-color: var(--eg-green); color: var(--eg-green-dark); }
.eg-btn-ghost { background: transparent; color: var(--eg-body); }
.eg-btn-ghost:hover { color: var(--eg-green-dark); }
.eg-btn-lg { padding: 14px 26px; font-size: 16px; }
.eg-btn-block { width: 100%; }
.eg-link-btn { background: none; border: none; color: var(--eg-green-dark); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Nav */
.eg-nav { border-bottom: 1px solid var(--eg-border); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); z-index: 40; }
.eg-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.eg-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--eg-ink); }
.eg-logo .eg-icon { color: var(--eg-green); width: 24px; height: 24px; }
.eg-nav-links { display: flex; gap: 28px; }
.eg-nav-links a { color: var(--eg-body); font-weight: 500; font-size: 15px; }
.eg-nav-links a:hover { color: var(--eg-green-dark); }
.eg-nav-cta { display: flex; gap: 10px; }

/* Hero */
.eg-hero { padding: 72px 0 40px; }
.eg-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eg-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--eg-green-light); color: var(--eg-green-dark); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.eg-eyebrow .eg-icon { width: 14px; height: 14px; }
.eg-hero h1 { font-size: 44px; letter-spacing: -.02em; }
.eg-hero-sub { font-size: 17px; color: var(--eg-body); max-width: 46ch; }
.eg-hero-cta { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.eg-hero-trust { font-size: 13px; color: var(--eg-body); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.eg-hero-trust .eg-icon { width: 15px; height: 15px; margin-right: 2px; }

.eg-hero-art { display: flex; justify-content: center; }
.eg-chat-card { width: 100%; max-width: 340px; background: var(--eg-bg-alt); border: 1px solid var(--eg-border); border-radius: 18px; padding: 18px; box-shadow: 0 24px 48px -24px rgba(15,23,42,.18); }
.eg-chat-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--eg-border); }
.eg-chat-card-head .eg-icon { color: var(--eg-green); background: var(--eg-green-light); border-radius: 50%; padding: 6px; width: 32px; height: 32px; }
.eg-chat-card-head strong { display: block; font-size: 14px; }
.eg-chat-card-head span { font-size: 12px; color: var(--eg-green-dark); }
.eg-chat-bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; margin-bottom: 10px; }
.eg-chat-bubble-in { background: #fff; border: 1px solid var(--eg-border); border-bottom-left-radius: 4px; }
.eg-chat-bubble-out { background: var(--eg-green); color: #06331d; margin-left: auto; border-bottom-right-radius: 4px; display: flex; align-items: center; gap: 6px; }
.eg-icon-tick { width: 15px; height: 15px; flex-shrink: 0; }
.eg-chat-typing { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--eg-border); border-radius: 14px; border-bottom-left-radius: 4px; padding: 10px 12px; width: fit-content; }
.eg-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--eg-body); opacity: .5; animation: eg-blink 1.2s infinite ease-in-out; }
.eg-chat-typing span:nth-child(2) { animation-delay: .2s; }
.eg-chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes eg-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .8; } }

/* Marquee */
.eg-marquee { border-top: 1px solid var(--eg-border); border-bottom: 1px solid var(--eg-border); background: var(--eg-bg-alt); overflow: hidden; padding: 14px 0; }
.eg-marquee-track { display: flex; width: max-content; gap: 10px; white-space: nowrap; animation: eg-scroll 28s linear infinite; font-size: 13px; font-weight: 600; color: var(--eg-body); text-transform: uppercase; letter-spacing: .04em; }
.eg-marquee-track span { padding: 0 4px; }
.eg-dot { color: var(--eg-green); }
@keyframes eg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Features */
.eg-features { padding: 88px 0; }
.eg-features h2 { text-align: center; font-size: 32px; max-width: 34ch; margin: 0 auto 48px; letter-spacing: -.01em; }
.eg-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.eg-feature { padding: 26px; border: 1px solid var(--eg-border); border-radius: var(--eg-radius); transition: border-color .15s ease, transform .15s ease; }
.eg-feature:hover { border-color: var(--eg-green); transform: translateY(-2px); }
.eg-feature-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--eg-green-light); color: var(--eg-green-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.eg-feature h3 { font-size: 16px; }
.eg-feature p { color: var(--eg-body); font-size: 14.5px; margin: 0; }

/* Pricing */
.eg-pricing { padding: 88px 0; background: var(--eg-bg-alt); border-top: 1px solid var(--eg-border); border-bottom: 1px solid var(--eg-border); }
.eg-pricing h2 { text-align: center; font-size: 32px; }
.eg-pricing-sub { text-align: center; color: var(--eg-body); margin-bottom: 32px; }

.eg-toggle { display: flex; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--eg-border); border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto 44px; }
.eg-toggle-btn { border: none; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--eg-body); cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: inherit; }
.eg-toggle-btn.is-active { background: var(--eg-green); color: #06331d; }
.eg-toggle-badge { background: rgba(6,51,29,.15); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.eg-toggle-btn:not(.is-active) .eg-toggle-badge { display: none; }

.eg-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.eg-plan { position: relative; background: #fff; border: 1px solid var(--eg-border); border-radius: var(--eg-radius); padding: 30px 22px; display: flex; flex-direction: column; }
.eg-plan.is-highlighted { border-color: var(--eg-green); box-shadow: 0 20px 40px -24px rgba(37,211,102,.35); }
.eg-plan-badge { position: absolute; top: -13px; left: 26px; background: var(--eg-green); color: #06331d; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.eg-plan-name { font-size: 18px; margin-bottom: 14px; }
.eg-plan-price { margin-bottom: 20px; }
.eg-plan-price-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; display: block; }
.eg-plan-price-small { font-size: 13px; color: var(--eg-body); display: block; margin-top: 2px; }
.eg-plan-savings { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--eg-green-dark); background: var(--eg-green-light); padding: 3px 10px; border-radius: 999px; }
.eg-plan-savings:empty { display: none; }
.eg-plan-cta { margin-bottom: 22px; }
.eg-plan-features { display: flex; flex-direction: column; gap: 11px; }
.eg-plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--eg-ink); }
.eg-plan-features li span { flex: 1; }

.eg-pricing-note { text-align: center; font-size: 12.5px; color: var(--eg-body); margin-top: 36px; margin-bottom: 2px; }
.eg-pricing-addons { text-align: center; font-size: 14px; color: var(--eg-ink); margin: 28px 0 0; }
.eg-pricing-ad { text-align: center; font-size: 11px; color: #94a3b8; margin: 0; }

/* Trust */
.eg-trust { padding: 80px 0; }
.eg-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.eg-trust-item .eg-icon { width: 32px; height: 32px; color: var(--eg-green-dark); margin-bottom: 14px; }
.eg-trust-item h3 { font-size: 17px; }
.eg-trust-item p { color: var(--eg-body); font-size: 14.5px; }

/* CTA banner */
.eg-cta-banner { background: var(--eg-ink); padding: 64px 0; }
.eg-cta-banner-inner { text-align: center; }
.eg-cta-banner h2 { color: #fff; font-size: 28px; }
.eg-cta-banner p { color: #cbd5e1; margin-bottom: 24px; }

/* Footer */
.eg-footer { padding: 48px 0 32px; }
.eg-footer-inner { text-align: center; }
.eg-footer-logo { justify-content: center; margin-bottom: 10px; }
.eg-footer p { color: var(--eg-body); font-size: 14px; }
.eg-footer-links { display: flex; justify-content: center; gap: 20px; font-size: 14px; }
.eg-footer-copy { font-size: 12.5px; color: #94a3b8; margin-top: 18px; }

/* Modals */
.eg-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.eg-modal.is-open { display: block; }
.eg-modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.eg-modal-panel { position: relative; z-index: 1; background: #fff; max-width: 420px; margin: 8vh auto 0; border-radius: 16px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.eg-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--eg-body); cursor: pointer; }
.eg-modal-panel h3 { font-size: 20px; }
.eg-modal-sub { font-size: 13px; color: var(--eg-green-dark); background: var(--eg-green-light); display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.eg-lead-form { display: flex; flex-direction: column; gap: 14px; }
.eg-lead-form label { font-size: 13px; font-weight: 600; color: var(--eg-ink); display: flex; flex-direction: column; gap: 6px; }
.eg-lead-form input { font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--eg-border); border-radius: 8px; font-weight: 400; }
.eg-lead-form input:focus { outline: none; border-color: var(--eg-green); box-shadow: 0 0 0 3px var(--eg-green-light); }
.eg-form-status { font-size: 13px; margin: 0; min-height: 18px; }
.eg-form-status.is-success { color: var(--eg-green-dark); }
.eg-form-status.is-error { color: #c0392b; }

/* Responsive */
@media (max-width: 1100px) {
	.eg-plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
	.eg-hero-inner { grid-template-columns: 1fr; }
	.eg-hero-art { order: -1; }
	.eg-features-grid { grid-template-columns: repeat(2, 1fr); }
	.eg-plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
	.eg-trust-grid { grid-template-columns: 1fr; }
	.eg-nav-links { display: none; }
}

@media (max-width: 620px) {
	.eg-hero { padding: 44px 0 32px; }
	.eg-hero h1 { font-size: 32px; }
	.eg-features-grid { grid-template-columns: 1fr; }
	.eg-nav-cta .eg-btn-ghost { display: none; }
	.eg-modal-panel { margin: 0; min-height: 100vh; border-radius: 0; }
}
