/* PulseCRM public website: landing page and user guide for visitors */
.site { background: var(--bg); }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-wrap.narrow { max-width: 820px; }
.site-nav {
    position: sticky; top: 0; z-index: 1030; height: 64px; display: flex; align-items: center;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-nav .site-wrap { width: 100%; }
.site-links { gap: 4px; margin-left: 16px; }
.site-links a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .92rem; padding: 6px 12px; border-radius: 8px; }
.site-links a:hover, .site-links a.active { color: var(--text); background: var(--surface-3); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .88rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

.site-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.site-hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: 0; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
                radial-gradient(closest-side at 80% 30%, color-mix(in srgb, #8b5cf6 18%, transparent), transparent 70%);
}
.site-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.site-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 18px 0; }
.site-hero .grad { background: linear-gradient(90deg, var(--brand), #8b5cf6 55%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-hero .lead { color: var(--text-2); font-size: 1.12rem; max-width: 560px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: 4px 12px 4px 4px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .82rem; text-decoration: none; font-weight: 550;
}
.hero-badge span { background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: .72rem; }
.hero-badge:hover { border-color: var(--brand); color: var(--text); }
.hero-trust { margin-top: 18px; color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-trust i { color: var(--success); margin-right: 4px; }

/* Mobile menu (under the top bar) */
.site-menu { position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35); }
.site-menu nav { display: grid; padding-top: 8px; padding-bottom: 12px; }
.site-menu a { color: var(--text); text-decoration: none; font-weight: 550; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.site-menu a:last-child { border-bottom: 0; }

/* Industries strip */
.site-industries { padding: 22px 0; border-bottom: 1px solid var(--border); }
.site-industries .site-wrap { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; }
.site-industries .ind { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--text-2); background: var(--surface); font-weight: 550; }
.site-industries .ind i { color: var(--brand); margin-right: 4px; }

/* Feature groups */
.fgroup-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -12px 0 28px; }
.fgroup-nav a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: .86rem; font-weight: 600; }
.fgroup-nav a:hover { border-color: var(--brand); color: var(--brand); }
.fgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fgroup { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; scroll-margin-top: 84px; transition: border-color .2s, box-shadow .2s; }
.fgroup:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: 0 16px 40px -22px rgba(15, 23, 42, .35); }
.fgroup:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fgroup-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.fgroup-head h3 { font-size: 1.12rem; font-weight: 750; margin: 2px 0 4px; }
.fgroup-head p { color: var(--text-2); font-size: .92rem; margin: 0; }
.fgroup-head .f-icon { flex-shrink: 0; }
.fgroup ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .92rem; flex: 1; }
.fgroup:last-child:nth-child(odd) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.fgroup li { display: flex; gap: 8px; color: var(--text); }
.fgroup li i { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.fgroup-more { font-size: .88rem; font-weight: 600; text-decoration: none; }

/* Spotlight sections (AI, mobile app) */
.spot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.spot-grid.reverse { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.spot-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; margin: 8px 0 12px; }
.spot-text { color: var(--text-2); font-size: 1.04rem; }
.spot-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.spot-list li { display: flex; gap: 14px; align-items: flex-start; }
.spot-list li > i { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.spot-list b { display: block; font-weight: 700; }
.spot-list span { color: var(--text-2); font-size: .92rem; }
.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 30px 70px -30px rgba(79, 70, 229, .45); }
.ai-card p { margin-bottom: 10px; }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 750; margin-bottom: 12px; }
.ai-head i { color: #8b5cf6; }
.ai-score { margin-left: auto; background: rgba(34, 197, 94, .14); color: #16a34a; border-radius: 999px; padding: 2px 10px; font-size: .82rem; }
.ai-next { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 600; }
.ai-ask { margin-top: 14px; border: 1px dashed var(--border); border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: .86rem; display: flex; gap: 8px; align-items: center; }
.phone { width: 270px; max-width: 100%; margin: 0 auto; border-radius: 36px; padding: 10px; background: #0f172a; box-shadow: 0 30px 70px -25px rgba(15, 23, 42, .55); }
.phone-screen { background: var(--surface); border-radius: 28px; padding: 22px 16px; display: grid; gap: 12px; font-size: .86rem; min-height: 440px; align-content: start; }
.ph-top { display: flex; justify-content: space-between; color: var(--muted); }
.ph-top b { color: var(--text); font-size: 1rem; }
.ph-lead { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px; }
.ph-lead small { display: block; color: var(--danger); }
.ph-why { color: var(--text-2); font-size: .8rem; }
.ph-call { background: #22c55e; color: #fff; border-radius: 16px; text-align: center; padding: 14px; font-weight: 700; font-size: 1rem; box-shadow: 0 8px 20px rgba(22, 163, 74, .3); }
.ph-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; color: var(--muted); }
.ph-row b { color: var(--text); font-weight: 600; }

/* Monthly / yearly switch */
.bill-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-top: 6px; }
.bill-switch button { border: 0; background: none; padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--text-2); }
.bill-switch button.on { background: var(--brand); color: #fff; }
.save-tag { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .72rem; font-weight: 700; letter-spacing: 0; color: #16a34a; background: rgba(34, 197, 94, .14); border-radius: 999px; padding: 2px 8px; }

/* App drawing */
.mock {
    display: flex; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .35); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    font-size: .8rem;
}
.mock-rail { width: 52px; background: var(--surface-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px 0; color: var(--muted); font-size: 1.05rem; }
.mock-rail .on { color: var(--brand); }
.m-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #8b5cf6); }
.mock-main { flex: 1; min-width: 0; padding: 12px; position: relative; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.m-search { flex: 1; max-width: 220px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; color: var(--muted); }
.m-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .66rem; }
.mock-tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.mock-tabs b { color: var(--text); border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: -10px; }
.mock-row { display: grid; grid-template-columns: 26px minmax(0, 1.5fr) 38px minmax(0, 1fr) minmax(0, 1fr) 26px; gap: 8px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.m-av { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .62rem; }
.m-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name small { display: block; color: var(--muted); font-weight: 400; }
.m-score { text-align: center; border-radius: 999px; font-weight: 700; font-size: .7rem; padding: 1px 0; }
.m-score.hot { background: rgba(239, 68, 68, .14); color: #ef4444; }
.m-score.warm { background: rgba(245, 158, 11, .16); color: #d97706; }
.m-score.cold { background: rgba(14, 165, 233, .14); color: #0284c7; }
.m-stage { color: var(--text-2); }
.m-fu { color: var(--muted); white-space: nowrap; }
.m-fu.late { color: var(--danger); font-weight: 650; }
.m-call { width: 24px; height: 24px; border-radius: 7px; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.mock-popup {
    position: absolute; right: 14px; bottom: -6px; width: 230px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .28); animation: floaty 4s ease-in-out infinite;
}
.mock-popup .chip { font-size: .68rem; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.mock-popup .chip.ok { background: rgba(34, 197, 94, .14); color: #16a34a; border-color: transparent; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 26px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-grid b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.stats-grid span { color: var(--muted); font-size: .88rem; }

.site-section { padding: 80px 0; }
.site-section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; margin: 8px 0 10px; }
.section-head p { color: var(--text-2); font-size: 1.04rem; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .35); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.feature h3 { font-size: 1.04rem; font-weight: 700; margin: 14px 0 6px; }
.feature p { color: var(--text-2); font-size: .92rem; margin: 0; }
.f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.step > span { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin: 14px 0 6px; }
.step p { color: var(--text-2); margin: 0; font-size: .93rem; }

.logo-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.logo-chips span { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--text-2); font-size: .9rem; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--brand); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.price-card h3 { font-size: 1.15rem; font-weight: 750; margin: 0 0 4px; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 14px; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; display: grid; gap: 8px; font-size: .9rem; }
.price-card li i { color: var(--success); margin-right: 6px; }
.price-card li.off { color: var(--muted); text-decoration: line-through; }
.price-card li.off i { color: var(--muted); }

.whatsnew { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.whatsnew li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; }

.cta-band { padding: 72px 0; background: linear-gradient(135deg, #4338ca, #7c3aed 60%, #db2777); color: #fff; }
.cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.cta-band p { opacity: .85; margin-bottom: 22px; }

@media (max-width: 991.98px) {
    .site-hero { padding: 40px 0; }
    .site-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .mock { transform: none; }
    .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
    .fgroups { grid-template-columns: 1fr; }
    .fgroup:last-child:nth-child(odd) ul { grid-template-columns: 1fr; }
    .spot-grid, .spot-grid.reverse { grid-template-columns: 1fr; gap: 32px; }
    .spot-grid.reverse .phone { order: 2; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .site-section { padding: 56px 0; }
}
@media (max-width: 575.98px) {
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .mock-row { grid-template-columns: 26px minmax(0, 1fr) 38px 26px; }
    .mock-row .m-stage, .mock-row .m-fu { display: none; }
    .mock-popup { position: static; width: auto; margin-top: 10px; }
}

/* User guide (visitors) */
.guide-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; }
.guide-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.guide-toc a { display: flex; gap: .6rem; align-items: center; padding: .45rem .7rem; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .9rem; }
.guide-toc a:hover { background: var(--surface-3); color: var(--text); }
.guide-toc a.active { background: var(--brand-soft); color: var(--brand); font-weight: 620; }
@media (max-width: 991.98px) { .guide-shell { grid-template-columns: 1fr; } .guide-toc { position: static; display: flex; overflow-x: auto; gap: 6px; } .guide-toc a { flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; } }

/* Less motion for people who ask for it */
@media (prefers-reduced-motion: reduce) {
    .mock-popup { animation: none; }
    .feature:hover, .fgroup:hover { transform: none; }
    html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
