/* ============================================================
   Pulse — Site Stylesheet
   Brand: #0094FF (blue), white, dark accents
   ============================================================ */

:root {
    --pulse-blue: #0094FF;
    --pulse-blue-dark: #0070CC;
    --pulse-blue-darker: #0060B0;
    --pulse-blue-light: #E8F4FF;
    --pulse-dark: #0D1B2A;
    --pulse-dark-2: #1A2D42;
    --pulse-dark-3: #233550;
    --pulse-text: #2C3E50;
    --pulse-text-muted: #6B7C8D;
    --pulse-border: rgba(255,255,255,0.1);
    --nav-height: 64px;
    --cta-bar-height: 40px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--pulse-text);
    background: #ffffff;
    padding-top: calc(var(--nav-height) + var(--cta-bar-height));
}

body.no-cta-bar { padding-top: var(--nav-height); }

/* ── CTA Bar ─────────────────────────────────────────────── */
.pulse-cta-bar {
    background: var(--pulse-blue-dark);
    height: var(--cta-bar-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: transform .25s ease;
}

.pulse-cta-bar.hidden {
    transform: translateY(-100%);
}

/* ── Navigation ──────────────────────────────────────────── */
.pulse-nav {
    top: var(--cta-bar-height);
    height: var(--nav-height);
    background: rgba(13, 27, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pulse-border);
    transition: background .3s ease, top .25s ease;
}

.pulse-nav.scrolled {
    background: rgba(13, 27, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.pulse-nav.no-cta-bar { top: 0; }

.pulse-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.pulse-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pulse-blue) !important;
    letter-spacing: -0.5px;
}

.pulse-logo-sub {
    font-size: .65rem;
    color: rgba(255,255,255,.6) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav logo pill — white background wraps the logo cleanly on dark nav */
.pulse-nav-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 4px 10px;
    transition: opacity .15s;
}

.pulse-nav-logo-wrap:hover { opacity: .92; }

.pulse-nav-logo {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* Footer logo — same white pill, slightly larger */
.pulse-footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.95);
    border-radius: 8px;
    padding: 6px 12px;
}

.pulse-footer-logo {
    display: block;
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Remove old text-based brand styles from nav */
.pulse-brand { text-decoration: none; }

.pulse-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-size: .9rem;
    font-weight: 500;
    padding: .4rem .75rem !important;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.pulse-nav .nav-link:hover,
.pulse-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.08);
}

/* Dropdown toggle as button (no <a> navigation side effect) */
.pulse-nav button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
}

/* Features mega dropdown */
.dropdown-menu-features {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    animation: fadeInDown .15s ease;
}

.dropdown-menu-features .dropdown-item {
    border-radius: 8px;
    transition: background .12s;
    font-size: .9rem;
}

.dropdown-menu-features .dropdown-item:hover { background: var(--pulse-blue-light); }
.dropdown-menu-features .dropdown-header { color: #888 !important; font-size: .72rem !important; }

/* Show dropdown on hover (CSS fallback for when Bootstrap JS is initializing) */
@media (min-width: 992px) {
    .pulse-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: var(--pulse-blue);
    border-color: var(--pulse-blue);
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}

.btn-primary:hover {
    background: var(--pulse-blue-dark);
    border-color: var(--pulse-blue-dark);
    box-shadow: 0 4px 14px rgba(0,148,255,.35);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    color: var(--pulse-blue);
    border-color: var(--pulse-blue);
}

.btn-outline-primary:hover {
    background: var(--pulse-blue);
    border-color: var(--pulse-blue);
    color: white;
}

/* ── Hero Sections ───────────────────────────────────────── */
.pulse-hero {
    background: linear-gradient(135deg, var(--pulse-dark) 0%, var(--pulse-dark-3) 60%, #0060B0 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.pulse-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(0,148,255,.18) 0%, transparent 60%);
    pointer-events: none;
}

.pulse-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,148,255,.15);
    border: 1px solid rgba(0,148,255,.3);
    color: #70CAFF;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.pulse-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-rotate-word {
    display: inline-block;
    color: #7EC8FF;
    transition: opacity .45s ease, transform .45s ease;
}

.hero-rotate-word.fading {
    opacity: 0;
    transform: translateY(10px);
}

.pulse-hero .hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    line-height: 1.6;
    margin-top: .75rem;
}

.pulse-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.btn-hero-primary {
    background: var(--pulse-blue);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: .75rem 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,148,255,.4);
    transition: all .2s;
    display: inline-block;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: var(--pulse-blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,148,255,.5);
}

.btn-hero-secondary {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    transition: all .2s;
    display: inline-block;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
    color: white;
}

.hero-trust-bar {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: rgba(255,255,255,.65);
}

.hero-trust-item i { color: #4CD964; }

/* ── Hero Screenshot ─────────────────────────────────────── */
.hero-screenshot-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}

.hero-screenshot-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    z-index: 1;
    pointer-events: none;
}

.hero-screenshot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ── Feature Page Screenshots ────────────────────────────── */
.feature-screenshot-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
    background: #f8f9fa;
}

.feature-screenshot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Feature-page hero (smaller) */
.pulse-hero-sm {
    background: linear-gradient(135deg, var(--pulse-dark) 0%, var(--pulse-dark-3) 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* ── Feature Cards ───────────────────────────────────────── */
.feature-card {
    border: 1px solid #E8ECF0;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    background: white;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    border-color: var(--pulse-blue);
    box-shadow: 0 8px 30px rgba(0,148,255,.12);
    transform: translateY(-3px);
    color: inherit;
}

.feature-card.featured {
    border-color: var(--pulse-blue);
    background: linear-gradient(135deg, #F0F8FF 0%, white 100%);
    box-shadow: 0 4px 20px rgba(0,148,255,.1);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--pulse-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon-wrap i { font-size: 1.5rem; color: var(--pulse-blue); }

.feature-icon-wrap.featured-icon { background: var(--pulse-blue); }
.feature-icon-wrap.featured-icon i { color: white; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-highlight { background: var(--pulse-blue-light) !important; }
.pricing-highlight td, .pricing-highlight th { font-weight: 600; }

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pulse-blue);
    line-height: 1;
}

.price-tag .currency { font-size: 1.2rem; vertical-align: top; margin-top: .3rem; display: inline-block; }
.price-tag .unit { font-size: .85rem; font-weight: 500; color: var(--pulse-text-muted); }

/* ── Sections ────────────────────────────────────────────── */
.section-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pulse-blue);
    margin-bottom: .5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: var(--pulse-dark);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--pulse-text-muted);
    max-width: 560px;
    line-height: 1.6;
}

/* ── Trial transparency callout ──────────────────────────── */
.trial-callout {
    background: linear-gradient(135deg, #F0F8FF, #E8F4FF);
    border: 1px solid rgba(0,148,255,.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--pulse-dark) 0%, var(--pulse-dark-3) 100%);
    color: white;
    padding: 4rem 0;
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

/* ── Footer ──────────────────────────────────────────────── */
.pulse-footer {
    background: var(--pulse-dark);
    color: rgba(255,255,255,.75);
}

.pulse-footer .pulse-logo-text { color: var(--pulse-blue) !important; }

.footer-links { padding: 0; }
.footer-links li { margin-bottom: .5rem; }

.footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    transition: color .15s;
}

.footer-links a:hover { color: var(--pulse-blue); }

/* ── Blog ────────────────────────────────────────────────── */
.blog-card {
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
    color: inherit;
}

.blog-card img { object-fit: cover; height: 200px; width: 100%; }

.blog-card-placeholder {
    height: 160px;
    background: linear-gradient(135deg, var(--pulse-blue-light) 0%, #dbeeff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--pulse-blue);
    opacity: .6;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

/* ── Steps / How It Works ────────────────────────────────── */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pulse-blue);
    color: white;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Accordion (FAQ) ─────────────────────────────────────── */
.accordion-button:not(.collapsed) {
    background: var(--pulse-blue-light);
    color: var(--pulse-blue-darker);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; }
.breadcrumb-item a { color: var(--pulse-blue); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────── */
.text-primary { color: var(--pulse-blue) !important; }
.bg-primary { background: var(--pulse-blue) !important; }
.border-primary { border-color: var(--pulse-blue) !important; }
.tracking-wide { letter-spacing: .06em; }
.shadow-blue { box-shadow: 0 8px 32px rgba(0,148,255,.2); }

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--pulse-blue);
    line-height: 1;
}

/* ── Blog Article Body ───────────────────────────────────── */
.blog-body h2, .blog-body h3, .blog-body h4 { font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; color: var(--pulse-dark); }
.blog-body h2 { font-size: 1.5rem; }
.blog-body h3 { font-size: 1.2rem; }
.blog-body p { line-height: 1.75; margin-bottom: 1rem; color: var(--pulse-text); }
.blog-body ul, .blog-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-body li { margin-bottom: .4rem; line-height: 1.65; }
.blog-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.blog-body th { background: var(--pulse-dark); color: white; padding: .6rem 1rem; text-align: left; }
.blog-body td { padding: .6rem 1rem; border-bottom: 1px solid #E8ECF0; }
.blog-body tr:nth-child(even) td { background: #F8FAFC; }
.blog-body blockquote { border-left: 4px solid var(--pulse-blue); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--pulse-blue-light); border-radius: 0 8px 8px 0; }
.blog-body code { background: #F0F4F8; padding: .15rem .4rem; border-radius: 4px; font-size: .88em; color: var(--pulse-dark); }
.blog-body a { color: var(--pulse-blue); text-decoration: underline; }
.blog-body strong { color: var(--pulse-dark); }

/* ── Prose (Legal pages) ─────────────────────────────────── */
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; color: var(--pulse-dark); }
.prose p, .prose ul { line-height: 1.75; color: var(--pulse-text); margin-bottom: .75rem; }
.prose ul { padding-left: 1.5rem; }
.prose li { margin-bottom: .3rem; }
.prose a { color: var(--pulse-blue); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .pulse-nav { top: var(--cta-bar-height); }
}

@media (max-width: 575.98px) {
    .pulse-hero { padding: 3rem 0 2.5rem; }
    .hero-trust-bar { gap: .75rem; }
}
