/* ============================================================
   CRM — Landing Page Styles
   ============================================================ */

/* ── Reset & base ── */
#homePage { font-family: 'Inter', sans-serif; background: #fff; color: #0f172a; }
#homePage a { color: inherit; text-decoration: none; }
#homePage button { font-family: inherit; cursor: pointer; }

/* ── Layout helpers ── */
.lp-wrap  { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.lp-wrap-sm { max-width: 780px; margin: 0 auto; padding: 0 32px; }
.lp-sec   { padding: 88px 0; }
.lp-sec-alt { background: #f8fafc; }
.lp-sec-dark { background: #0f172a; color: #e2e8f0; }
.lp-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3b82f6; margin-bottom: 12px; }
.lp-h2    { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.lp-sub   { font-size: 17px; color: #64748b; line-height: 1.7; max-width: 560px; }
.lp-center { text-align: center; }
.lp-center .lp-sub { margin: 0 auto; }
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media(max-width:900px) { .lp-grid-2 { grid-template-columns: 1fr; } .lp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px) { .lp-grid-3,.lp-grid-4 { grid-template-columns: 1fr; } .lp-wrap,.lp-wrap-sm { padding: 0 20px; } .lp-sec { padding: 60px 0; } }

/* ── Header ── */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; }
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand-icon { width: 36px; height: 36px; background: #3b82f6; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-brand-icon svg { width: 20px; height: 20px; fill: white; }
.lp-brand-name { font-size: 18px; font-weight: 800; color: #0f172a; }
.lp-nav { display: flex; align-items: center; gap: 6px; }
.lp-nav-link { padding: 7px 14px; font-size: 14px; font-weight: 500; color: #64748b; border-radius: 7px; border: none; background: none; transition: all .15s; }
.lp-nav-link:hover { color: #0f172a; background: #f1f5f9; }
.lp-nav-divider { width: 1px; height: 20px; background: #e2e8f0; margin: 0 6px; }
.lp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; transition: all .15s; }
.lp-btn-ghost { background: none; color: #0f172a; border: 1.5px solid #e2e8f0; }
.lp-btn-ghost:hover { border-color: #94a3b8; }
.lp-btn-primary { background: #3b82f6; color: white; }
.lp-btn-primary:hover { background: #2563eb; }
.lp-btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 9px; }
.lp-btn-outline { background: none; color: #0f172a; border: 1.5px solid #cbd5e1; font-size: 15px; padding: 13px 28px; border-radius: 9px; }
.lp-btn-outline:hover { border-color: #3b82f6; color: #3b82f6; }
@media(max-width:700px) { .lp-nav .lp-nav-link { display: none; } .lp-nav-divider { display: none; } }

/* ── Hero ── */
.lp-hero { padding: 80px 0 64px; text-align: center; }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 28px; border: 1px solid #bfdbfe; }
.lp-hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.1; margin-bottom: 22px; letter-spacing: -.02em; }
.lp-hero h1 em { color: #3b82f6; font-style: normal; }
.lp-hero-desc { font-size: 18px; color: #64748b; line-height: 1.7; max-width: 540px; margin: 0 auto 36px; }
.lp-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.lp-hero-trust { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.lp-hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.lp-hero-trust-item svg { color: #22c55e; }

/* ── Platform preview ── */
.lp-preview { padding: 0 0 80px; }
.lp-preview-card { background: #0f172a; border-radius: 16px; overflow: hidden; border: 1px solid #1e293b; box-shadow: 0 32px 80px rgba(0,0,0,.2); }
.lp-preview-bar { background: #1e293b; padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.lp-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-preview-url { flex: 1; background: #0f172a; border-radius: 6px; padding: 4px 12px; font-size: 12px; color: #64748b; font-family: monospace; }
.lp-preview-body { display: grid; grid-template-columns: 180px 1fr; min-height: 300px; }
.lp-preview-sidebar { background: #1e293b; padding: 20px 0; border-right: 1px solid #334155; }
.lp-preview-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 12px; color: #94a3b8; }
.lp-preview-nav-item.active { color: #e2e8f0; background: rgba(59,130,246,.2); border-left: 2px solid #3b82f6; }
.lp-preview-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.lp-preview-main { padding: 24px; }
.lp-preview-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.lp-preview-stat { background: #1e293b; border-radius: 8px; padding: 14px; }
.lp-preview-stat-val { font-size: 20px; font-weight: 700; color: #e2e8f0; }
.lp-preview-stat-lbl { font-size: 11px; color: #64748b; margin-top: 2px; }
.lp-preview-table { background: #1e293b; border-radius: 8px; overflow: hidden; }
.lp-preview-th { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 10px 14px; font-size: 10px; color: #475569; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #334155; }
.lp-preview-tr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 10px 14px; font-size: 11px; color: #94a3b8; border-bottom: 1px solid #1e293b; }
.lp-preview-tr:last-child { border: none; }
.lp-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.lp-tag-green { background: rgba(34,197,94,.15); color: #4ade80; }
.lp-tag-yellow { background: rgba(245,158,11,.15); color: #fbbf24; }
.lp-tag-blue { background: rgba(59,130,246,.15); color: #60a5fa; }
.lp-preview-metrics { display: flex; gap: 0; border-top: 1px solid #1e293b; }
.lp-preview-metric { flex: 1; padding: 16px 20px; text-align: center; border-right: 1px solid #1e293b; }
.lp-preview-metric:last-child { border: none; }
.lp-preview-metric-val { font-size: 14px; font-weight: 700; color: #60a5fa; }
.lp-preview-metric-lbl { font-size: 11px; color: #64748b; margin-top: 2px; }
@media(max-width:700px) { .lp-preview-body { grid-template-columns: 1fr; } .lp-preview-sidebar { display: none; } .lp-preview-row { grid-template-columns: 1fr 1fr; } .lp-preview-th,.lp-preview-tr { grid-template-columns: 1fr 1fr; } }

/* ── Why section ── */
.lp-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.lp-why-col { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; }
.lp-why-col.bad { border-color: #fecaca; background: #fff7f7; }
.lp-why-col.good { border-color: #bbf7d0; background: #f0fdf4; }
.lp-why-col-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.lp-why-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #475569; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.lp-why-item:last-child { border: none; }
.lp-why-item svg { flex-shrink: 0; margin-top: 1px; }
@media(max-width:640px) { .lp-why-grid { grid-template-columns: 1fr; } }

/* ── Feature cards ── */
.lp-feat-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; transition: box-shadow .2s; }
.lp-feat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.lp-feat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-feat-icon svg { width: 20px; height: 20px; }
.lp-feat-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lp-feat-desc { font-size: 14px; color: #64748b; line-height: 1.6; }

/* ── Security grid ── */
.lp-sec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.lp-sec-item { display: flex; gap: 14px; align-items: flex-start; }
.lp-sec-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.lp-sec-title { font-size: 14px; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.lp-sec-desc { font-size: 13px; color: #94a3b8; line-height: 1.5; }
@media(max-width:700px) { .lp-sec-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .lp-sec-grid { grid-template-columns: 1fr; } }

/* ── Pricing ── */
.lp-price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.lp-price-card { background: white; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 28px 24px; position: relative; transition: box-shadow .2s; }
.lp-price-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.lp-price-card.popular { border-color: #3b82f6; box-shadow: 0 8px 32px rgba(59,130,246,.15); }
.lp-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #3b82f6; color: white; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 20px; white-space: nowrap; letter-spacing: .04em; }
.lp-price-name { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.lp-price-amount { font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.lp-price-per { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.lp-price-users { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.lp-price-features { list-style: none; margin-bottom: 24px; }
.lp-price-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; padding: 5px 0; }
.lp-price-features li svg { color: #22c55e; flex-shrink: 0; }
.lp-price-btn { width: 100%; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: all .15s; }
.lp-price-btn-primary { background: #3b82f6; color: white; }
.lp-price-btn-primary:hover { background: #2563eb; }
.lp-price-btn-outline { background: none; color: #0f172a; border: 1.5px solid #e2e8f0; }
.lp-price-btn-outline:hover { border-color: #3b82f6; color: #3b82f6; }
.lp-trial-note { text-align: center; margin-top: 20px; font-size: 13px; color: #64748b; }
.lp-trial-note strong { color: #22c55e; }
@media(max-width:900px) { .lp-price-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px) { .lp-price-grid { grid-template-columns: 1fr; } }

/* ── Compare table ── */
.lp-table-wrap { overflow-x: auto; margin-top: 48px; }
.lp-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-compare-table th { padding: 14px 20px; font-size: 13px; font-weight: 700; border-bottom: 2px solid #e2e8f0; text-align: left; }
.lp-compare-table th:not(:first-child) { text-align: center; }
.lp-compare-table td { padding: 13px 20px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.lp-compare-table td:not(:first-child) { text-align: center; }
.lp-compare-table tr:hover td { background: #f8fafc; }
.lp-compare-table .ours td { background: #eff6ff; color: #0f172a; font-weight: 700; }
.lp-chk { color: #22c55e; font-size: 16px; font-weight: 700; }
.lp-x   { color: #ef4444; font-size: 16px; }
.lp-part { color: #f59e0b; font-size: 13px; }

/* ── Testimonials ── */
.lp-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.lp-testi-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; }
.lp-stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.lp-testi-text { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.lp-testi-author { font-size: 13px; font-weight: 700; color: #0f172a; }
.lp-testi-role { font-size: 12px; color: #94a3b8; margin-top: 2px; }
@media(max-width:700px) { .lp-testi-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.lp-faq-list { margin-top: 48px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.lp-faq-item { border-bottom: 1px solid #e2e8f0; }
.lp-faq-item:last-child { border: none; }
.lp-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 15px; font-weight: 600; color: #0f172a; background: none; border: none; text-align: left; cursor: pointer; gap: 16px; }
.lp-faq-q:hover { background: #f8fafc; }
.lp-faq-icon { flex-shrink: 0; transition: transform .2s; }
.lp-faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: #64748b; line-height: 1.7; }
.lp-faq-item.open .lp-faq-icon { transform: rotate(45deg); }
.lp-faq-item.open .lp-faq-a { display: block; }

/* ── Footer ── */
.lp-footer { background: #0f172a; color: #94a3b8; padding: 64px 0 32px; }
.lp-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #1e293b; }
.lp-footer-brand-icon { width: 36px; height: 36px; background: #3b82f6; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-footer-brand-icon svg { width: 20px; height: 20px; fill: white; }
.lp-footer-brand-name { font-size: 17px; font-weight: 800; color: #e2e8f0; margin-bottom: 10px; }
.lp-footer-tagline { font-size: 13px; line-height: 1.6; max-width: 240px; }
.lp-footer-col-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.lp-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-footer-links a { font-size: 13px; color: #94a3b8; text-decoration: none; transition: color .15s; }
.lp-footer-links a:hover { color: #e2e8f0; }
.lp-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.lp-footer-note { font-size: 12px; color: #475569; max-width: 400px; line-height: 1.5; }
@media(max-width:800px) { .lp-footer-top { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .lp-footer-top { grid-template-columns: 1fr; } }

/* ── Modal ── */
.lp-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 200; align-items: center; justify-content: center; padding: 24px; }
.lp-modal-overlay.open { display: flex; }
.lp-modal { background: white; border-radius: 16px; padding: 36px; width: 100%; max-width: 460px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.lp-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: #64748b; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; }
.lp-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.lp-modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.lp-modal p { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.lp-form-group { margin-bottom: 14px; }
.lp-form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-form-label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.lp-form-input { width: 100%; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; font-family: inherit; color: #0f172a; background: white; outline: none; transition: border-color .15s; }
.lp-form-input:focus { border-color: #3b82f6; }
.lp-form-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; font-family: monospace; min-height: 14px; }
.lp-form-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; display: none; }
.lp-form-msg.error   { background: #fef2f2; border: 1px solid #fecaca; color: #ef4444; }
.lp-form-msg.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.lp-form-btn { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s; margin-top: 4px; }
.lp-form-btn-blue  { background: #3b82f6; color: white; }
.lp-form-btn-blue:hover { background: #2563eb; }
.lp-form-btn-blue:disabled { opacity: .6; cursor: not-allowed; }
.lp-form-btn-green { background: #22c55e; color: white; }
.lp-form-btn-green:hover { background: #16a34a; }
.lp-form-btn-green:disabled { opacity: .6; cursor: not-allowed; }
.lp-modal-switch { text-align: center; margin-top: 18px; font-size: 13px; color: #64748b; }
.lp-modal-switch a { color: #3b82f6; font-weight: 600; cursor: pointer; }
