/* landing.css — Pulse · Light Design */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent:       #7C3AED;
    --accent-light: #EDE9FE;
    --accent-dark:  #5B21B6;
    --bg:           #FFFFFF;
    --bg2:          #F8FAFC;
    --bg3:          #F1F5F9;
    --border:       #E2E8F0;
    --text:         #0F172A;
    --muted:        #64748B;
    --muted2:       #94A3B8;
    --success:      #10B981;
    --danger:       #EF4444;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:       0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.10);
    --radius:       16px;
    --font:         'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Nav ─────────────────────────────────────────────── */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px;
    padding: 16px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark { background: var(--accent); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 8px; border-radius: 8px; letter-spacing: -0.02em; }
.logo-mark.sm { font-size: 11px; padding: 3px 6px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost-sm {
    color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border); transition: all 0.15s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: #CBD5E1; background: var(--bg2); }
.btn-solid-sm {
    background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
    text-decoration: none; padding: 8px 18px; border-radius: 10px; transition: all 0.15s;
}
.btn-solid-sm:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }

/* ── Section wrapper ─────────────────────────────────── */
.section { max-width: 1160px; margin: 0 auto; padding: 80px 24px; }
.section-sm { padding: 60px 24px; }

/* ── Hero ────────────────────────────────────────────── */
.hero-section {
    padding: 140px 24px 80px; text-align: center;
    background: linear-gradient(180deg, #FAF9FF 0%, #FFFFFF 100%);
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-light); border: 1px solid rgba(124,58,237,0.2);
    color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge::before { content: '●'; font-size: 8px; }
.hero-h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; color: var(--text); }
.hero-h1 span { color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
    background: var(--accent); color: #fff; font-size: 15px; font-weight: 800;
    padding: 14px 32px; border-radius: 12px; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-cta-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.4); }
.btn-cta-ghost {
    background: var(--bg); color: var(--text); font-size: 15px; font-weight: 600;
    padding: 14px 32px; border-radius: 12px; text-decoration: none; border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-cta-ghost:hover { border-color: #CBD5E1; background: var(--bg2); transform: translateY(-2px); }

/* Hero screen mockup */
.hero-screen {
    margin: 56px auto 0; max-width: 860px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
}
.hero-screen-bar {
    background: var(--bg2); padding: 12px 16px;
    display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border);
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.screen-dot.r { background: #ff5f57; }
.screen-dot.y { background: #ffbd2e; }
.screen-dot.g { background: #28c840; }
.hero-screen-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.screen-sidebar { background: var(--bg2); padding: 20px 16px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.screen-nav-item { height: 28px; background: var(--border); border-radius: 8px; }
.screen-nav-item.active { background: var(--accent-light); }
.screen-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.screen-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.screen-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.screen-card-val { font-size: 22px; font-weight: 900; color: var(--accent); }
.screen-card-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.screen-chart { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; flex: 1; display: flex; align-items: flex-end; gap: 4px; }
.screen-bar { background: var(--border); border-radius: 3px 3px 0 0; flex: 1; }
.screen-bar.hi { background: var(--accent); opacity: 0.7; }

/* ── Stats strip ─────────────────────────────────────── */
.stats-strip { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1160px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-val { font-size: 2.2rem; font-weight: 900; color: var(--accent); letter-spacing: -0.04em; }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── Feature sections ────────────────────────────────── */
.features-header { text-align: center; margin-bottom: 56px; }
.section-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; color: var(--text); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }

.feature-grid { display: grid; gap: 20px; }
.feature-grid-2 { grid-template-columns: 1fr 1fr; }
.feature-grid-3 { grid-template-columns: repeat(3,1fr); }

.feature-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.3); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card.accent-border { border-color: rgba(124,58,237,0.25); background: linear-gradient(160deg, var(--accent-light) 0%, white 60%); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-tag { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-top: 14px; }

/* Feature spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 24px; max-width: 1160px; margin: 0 auto; }
.spotlight.reverse { direction: rtl; }
.spotlight.reverse > * { direction: ltr; }
.spotlight-text .section-label { margin-bottom: 12px; }
.spotlight-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 16px; color: var(--text); }
.spotlight-text p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 900; margin-top: 2px; flex-shrink: 0; }

.spotlight-visual {
    background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
    padding: 28px; min-height: 260px; display: flex; flex-direction: column; gap: 12px;
    box-shadow: var(--shadow-lg);
}
.vis-row { display: flex; gap: 10px; align-items: center; }
.vis-pill { background: var(--accent-light); border: 1px solid rgba(124,58,237,0.2); color: var(--accent); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.vis-bar-wrap { flex: 1; }
.vis-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.vis-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; opacity: 0.8; }
.vis-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.vis-card-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.vis-card-val { font-size: 1.4rem; font-weight: 900; margin-top: 4px; color: var(--text); }
.vis-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vis-step:last-child { border-bottom: none; }
.vis-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); border: 2px solid rgba(124,58,237,0.2); color: var(--accent); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vis-step-text { font-size: 13px; color: var(--muted); }
.vis-step-text strong { color: var(--text); display: block; font-size: 14px; font-weight: 700; }
.vis-chip { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: var(--muted); }
.vis-chip-val { color: var(--accent); font-weight: 800; font-size: 16px; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing-section { background: var(--bg2); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.price-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px;
    display: flex; flex-direction: column; gap: 20px; position: relative;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured {
    border-color: var(--accent); background: linear-gradient(160deg, var(--accent-light) 0%, white 50%);
    box-shadow: 0 8px 40px rgba(124,58,237,0.15);
}
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 16px; border-radius: 100px; letter-spacing: 0.06em; text-transform: uppercase;
    white-space: nowrap; box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.price-name { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.price-amount { display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 1.2rem; font-weight: 700; color: var(--muted); }
.price-num { font-size: 3rem; font-weight: 900; letter-spacing: -0.05em; color: var(--text); }
.price-period { font-size: 13px; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.price-features li .check { color: var(--success); font-size: 13px; margin-top: 2px; flex-shrink: 0; font-weight: 900; }
.price-features li .lock { color: var(--border); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.price-features li.locked-feat { opacity: 0.5; }
.price-cta {
    margin-top: auto; background: var(--bg2); border: 1px solid var(--border);
    color: var(--text); font-size: 14px; font-weight: 700; padding: 13px; border-radius: 12px;
    cursor: pointer; text-decoration: none; display: block; text-align: center;
    transition: all 0.2s; font-family: var(--font);
}
.price-cta:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.price-card.featured .price-cta { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.price-card.featured .price-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ── How it works ────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step-card { text-align: center; padding: 28px 16px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-light); border: 2px solid rgba(124,58,237,0.2); color: var(--accent); font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; padding: 18px 24px; background: none; border: none;
    color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: var(--font); transition: background 0.15s;
}
.faq-q:hover { background: var(--bg2); }
.faq-q .faq-arrow { color: var(--accent); font-size: 20px; transition: transform 0.2s; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ── Final CTA ───────────────────────────────────────── */
.cta-final { text-align: center; padding: 100px 24px; background: linear-gradient(180deg, white 0%, #FAF9FF 100%); }
.cta-glow {
    display: inline-block; max-width: 600px; margin: 0 auto;
    background: linear-gradient(135deg, var(--accent-light) 0%, white 80%);
    border: 1px solid rgba(124,58,237,0.2); border-radius: 28px; padding: 60px 64px;
    box-shadow: 0 20px 60px rgba(124,58,237,0.10);
}
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 16px; color: var(--text); }
.cta-final p { color: var(--muted); margin-bottom: 32px; font-size: 15px; }

/* ── Footer ─────────────────────────────────────────── */
.landing-footer { border-top: 1px solid var(--border); background: var(--bg2); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted2); font-size: 12px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .feature-grid-2, .feature-grid-3, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
    .spotlight, .spotlight.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .nav-links { display: none; }
    .cta-glow { padding: 40px 28px; }
}
@media (max-width: 600px) {
    .hero-section { padding: 120px 24px 60px; }
    .hero-screen-body { grid-template-columns: 1fr; }
    .screen-sidebar { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { margin-left: 0; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    /* Signup / auth pages served via landing-layout: reduce form padding */
    section[style*="max-width:480px"],
    section[style*="max-width: 480px"] { padding-left: 12px !important; padding-right: 12px !important; padding-top: 32px !important; }
    /* Inner form card: reduce padding */
    #signup-form-wrap { padding: 20px !important; }
    /* Inputs: 16px prevents iOS auto-zoom */
    input, textarea, select { font-size: 16px !important; }
}
