/*
 * Zenret CRM — public marketing site.
 *
 * Mobile-first and app-like: sticky condensed header, bottom sheet nav,
 * snap-scroll cards, a fixed bottom CTA on small screens, and 44px+ tap targets.
 * Dark-first to match the product, using the same brand palette.
 */

.landing {
    --l-bg: #0b1220;
    --l-surface: #111a2c;
    --l-surface-2: #16213a;
    --l-border: #223252;
    --l-text: #e6edf7;
    --l-muted: #8ea0bd;
    --l-brand: #14b8a6;
    --l-brand-strong: #0d9488;
    --l-radius: 14px;
    --l-header-h: 60px;

    background: var(--l-bg);
    color: var(--l-text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

.landing *,
.landing *::before,
.landing *::after { box-sizing: border-box; }

.landing h1, .landing h2, .landing h3, .landing h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.landing p { margin: 0; }
.landing a { color: inherit; text-decoration: none; }
.landing img { max-width: 100%; height: auto; display: block; }

.l-shell { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.l-narrow { max-width: 720px; }
.l-center { text-align: center; margin-left: auto; margin-right: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--l-brand); color: #04211d; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.l-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(11, 18, 32, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
    padding-top: env(safe-area-inset-top, 0px);
}
.l-header.is-scrolled { border-bottom-color: var(--l-border); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.l-header .l-shell {
    height: var(--l-header-h);
    display: flex; align-items: center; gap: 14px;
}

.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .01em; }
.l-brand-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--l-brand), var(--l-brand-strong));
    color: #04211d; font-weight: 800;
}
.l-brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.l-brand-text { font-size: 15.5px; white-space: nowrap; }

.l-nav { display: none; align-items: center; gap: 4px; margin-left: 14px; }
.l-nav-link {
    padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--l-muted);
    transition: color .15s, background .15s;
}
.l-nav-link:hover, .l-nav-link:focus-visible { color: var(--l-text); background: rgba(255,255,255,.05); }
.l-nav-link.is-active { color: var(--l-brand); }

.l-head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.l-burger {
    margin-left: auto; width: 44px; height: 44px; display: grid; gap: 5px; place-content: center;
    background: transparent; border: 1px solid var(--l-border); border-radius: 10px; cursor: pointer;
}
.l-burger span { display: block; width: 18px; height: 2px; background: var(--l-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.l-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.l-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.l-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile sheet nav ---------- */
.l-sheet {
    position: fixed; inset: var(--l-header-h) 0 0 0; z-index: 55;
    background: rgba(11, 18, 32, .97);
    backdrop-filter: blur(10px);
    padding: 18px;
    animation: l-sheet-in .18s ease-out;
}
@keyframes l-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.l-sheet-nav { display: grid; gap: 2px; }
.l-sheet-nav a {
    display: flex; align-items: center; min-height: 52px; padding: 0 14px;
    border-radius: 12px; font-size: 16px; font-weight: 600;
}
.l-sheet-nav a:active { background: rgba(255,255,255,.06); }
.l-sheet-sep { height: 1px; background: var(--l-border); margin: 10px 6px; }

/* ---------- Buttons ---------- */
.l-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.l-btn:active { transform: scale(.985); }
.l-btn-primary { background: var(--l-brand); color: #04211d; }
.l-btn-primary:hover { background: var(--l-brand-strong); color: #fff; }
.l-btn-ghost { background: transparent; color: var(--l-text); border-color: var(--l-border); }
.l-btn-ghost:hover { border-color: var(--l-muted); }
.l-btn-block { width: 100%; }

/* ---------- Sections ---------- */
.l-section { padding: 56px 0; }
.l-section-alt { background: var(--l-surface); }
.l-h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
.l-h2 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.l-eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
    background: rgba(20,184,166,.12); color: var(--l-brand); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
}
.l-lead { color: var(--l-muted); font-size: 17px; margin-bottom: 22px; max-width: 62ch; }

/* ---------- Hero ---------- */
.l-hero { padding: 48px 0 56px; }
.l-hero-inner { max-width: 720px; }
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.l-hero-media { margin-top: 36px; border-radius: var(--l-radius); overflow: hidden; border: 1px solid var(--l-border); }

/* ---------- Cards: snap-scroll on mobile, grid on desktop ---------- */
.l-cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 18px 18px; margin: 0 -18px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.l-cards::-webkit-scrollbar { display: none; }
.l-card {
    scroll-snap-align: start;
    background: var(--l-surface-2); border: 1px solid var(--l-border);
    border-radius: var(--l-radius); padding: 20px;
}
.l-card-icon { font-size: 22px; display: block; margin-bottom: 10px; }
.l-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.l-card-body { color: var(--l-muted); font-size: 14px; }

/* ---------- Stats ---------- */
.l-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
.l-stat-value { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; color: var(--l-brand); }
.l-stat-label { margin: 0; color: var(--l-muted); font-size: 13.5px; }

/* ---------- Steps ---------- */
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.l-step { display: flex; gap: 14px; align-items: flex-start; }
.l-step-num {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(20,184,166,.14); color: var(--l-brand); font-weight: 800;
}

/* ---------- Testimonials ---------- */
.l-quotes { display: grid; gap: 14px; }
.l-quote {
    margin: 0; padding: 22px; border-radius: var(--l-radius);
    background: var(--l-surface-2); border: 1px solid var(--l-border);
}
.l-quote blockquote { margin: 0 0 14px; font-size: 15.5px; }
.l-quote figcaption { display: flex; flex-direction: column; }
.l-quote-name { font-weight: 700; font-size: 14px; }
.l-quote-role { color: var(--l-muted); font-size: 12.5px; }

/* ---------- FAQ (native accordion) ---------- */
.l-faq { border: 1px solid var(--l-border); border-radius: var(--l-radius); overflow: hidden; }
.l-faq-item + .l-faq-item { border-top: 1px solid var(--l-border); }
.l-faq-item summary {
    cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px;
    list-style: none; display: flex; justify-content: space-between; gap: 12px;
    min-height: 52px; align-items: center;
}
.l-faq-item summary::-webkit-details-marker { display: none; }
.l-faq-item summary::after { content: "+"; color: var(--l-brand); font-size: 20px; font-weight: 700; }
.l-faq-item[open] summary::after { content: "−"; }
.l-faq-answer { padding: 0 18px 18px; color: var(--l-muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.l-plans { display: grid; gap: 16px; margin-top: 8px; }
.l-plan {
    position: relative; padding: 26px 22px; border-radius: var(--l-radius);
    background: var(--l-surface-2); border: 1px solid var(--l-border);
    display: flex; flex-direction: column; gap: 8px;
}
.l-plan.is-featured { border-color: var(--l-brand); box-shadow: 0 0 0 1px var(--l-brand), 0 18px 50px rgba(20,184,166,.16); }
.l-plan-badge {
    position: absolute; top: -11px; left: 22px; background: var(--l-brand); color: #04211d;
    font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em;
}
.l-plan-name { font-size: 18px; font-weight: 800; }
.l-plan-desc { color: var(--l-muted); font-size: 13.5px; }
.l-plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.l-price { font-size: 32px; font-weight: 800; }
.l-price-per { color: var(--l-muted); font-size: 14px; }
.l-plan-annual, .l-plan-trial { color: var(--l-muted); font-size: 12.5px; }
.l-plan-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.l-plan-list li { position: relative; padding-left: 22px; font-size: 14px; }
.l-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--l-brand); font-weight: 800; }
.l-plan-limits li::before { content: "•"; }
.l-plan .l-btn { margin-top: 14px; }
.l-fineprint { color: var(--l-muted); font-size: 12.5px; margin-top: 16px; }

/* ---------- Integrations chips ---------- */
.l-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.l-chip {
    padding: 9px 16px; border-radius: 999px; background: var(--l-surface-2);
    border: 1px solid var(--l-border); font-size: 13.5px; font-weight: 600;
}

/* ---------- App showcase ---------- */
.l-app-grid { display: grid; gap: 32px; align-items: center; }
.l-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.l-checks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.l-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--l-brand); font-weight: 800; }
.l-app-device {
    border-radius: 26px; border: 1px solid var(--l-border); background: var(--l-surface-2);
    padding: 16px; max-width: 300px; margin: 0 auto; width: 100%;
}
.l-app-mock { display: grid; gap: 12px; }
.l-app-bar { height: 14px; border-radius: 999px; background: rgba(20,184,166,.35); }
.l-app-row { height: 46px; border-radius: 12px; background: rgba(255,255,255,.05); }
.l-app-row.short { height: 30px; width: 65%; }
.l-app-tab { height: 40px; border-radius: 12px; background: rgba(20,184,166,.18); }

/* ---------- Module showcase ---------- */
.l-module-group { margin-top: 30px; }
.l-module-cat {
    font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
    color: var(--l-brand); font-weight: 800; margin-bottom: 12px;
}

/* ---------- Contact form ---------- */
.l-form { display: grid; gap: 14px; margin-top: 6px; }
.l-form-row { display: grid; gap: 14px; }
.l-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.l-form input, .l-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-family: inherit;
    background: var(--l-surface-2); color: var(--l-text); border: 1px solid var(--l-border); outline: none;
}
.l-form input:focus, .l-form textarea:focus { border-color: var(--l-brand); box-shadow: 0 0 0 3px rgba(20,184,166,.16); }
.l-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l-alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.l-alert-ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); color: #6ee7b7; }
.l-alert-err { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.35); color: #fca5a5; }
.l-alert ul { margin: 0; padding-left: 18px; }
.l-prose { color: var(--l-muted); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.l-cta { background: linear-gradient(180deg, transparent, rgba(20,184,166,.07)); }

/* ---------- Footer ---------- */
.l-footer { border-top: 1px solid var(--l-border); background: var(--l-surface); padding: 42px 0 96px; }
.l-footer-grid { display: grid; gap: 30px; }
.l-footer-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--l-muted); font-weight: 800; margin-bottom: 12px; }
.l-footer-grid nav, .l-footer-grid > div { display: flex; flex-direction: column; }
.l-footer-grid nav a, .l-footer-grid > div > a { padding: 5px 0; color: var(--l-muted); font-size: 14px; }
.l-footer-grid nav a:hover, .l-footer-grid > div > a:hover { color: var(--l-text); }
.l-footer-tag { color: var(--l-muted); font-size: 14px; margin: 12px 0 0; max-width: 42ch; }
.l-footer-addr { color: var(--l-muted); font-size: 13.5px; font-style: normal; margin-top: 12px; }
.l-footer-addr a { color: var(--l-muted); }
.l-footer-bottom {
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--l-border);
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
    color: var(--l-muted); font-size: 12.5px;
}

/* ---------- Sticky mobile CTA ---------- */
.l-sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11,18,32,.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--l-border);
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
    .l-header .l-shell { height: 68px; }
    .l-burger { display: none; }
    .l-sheet { display: none !important; }
    .l-nav { display: flex; }
    .l-hide-sm { display: inline-flex; }
    .l-section { padding: 78px 0; }
    .l-hero { padding: 72px 0 84px; }

    .l-cards {
        grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
        overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
    }
    .l-stats { grid-template-columns: repeat(4, 1fr); }
    .l-quotes { grid-template-columns: repeat(3, 1fr); }
    .l-plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
    .l-stats, .l-app-grid { gap: 36px; }
    .l-app-grid { grid-template-columns: 1.1fr .9fr; }
    .l-form-row { grid-template-columns: 1fr 1fr; }
    .l-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .l-footer { padding-bottom: 42px; }

    /* The sticky CTA is a small-screen affordance only. */
    .l-sticky-cta { display: none !important; }
}

@media (min-width: 1000px) {
    .l-cards { grid-template-columns: repeat(3, 1fr); }
    .l-plans { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .landing * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
