/* ==========================================================================
   demo-v2.css
   Demo page redesign (2026-04-16). Dark premium hero with dashboard stat tiles,
   Calendly frame, ambient + hover motion. Matches homepage v2 design language.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root + design tokens (scoped to demo page)
   -------------------------------------------------------------------------- */

body.demo-full,
body.demo-email-variant {
    background: #0a1628;
}

/* Shared eyebrow style */
.demo-v2-eyebrow {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFA000;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.demo-v2-eyebrow--light {
    color: #1547BC;
}

/* --------------------------------------------------------------------------
   Section 1: Hero
   -------------------------------------------------------------------------- */

.demo-v2-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(135deg, #041835 0%, #041E88 100%);
    background-image:
        linear-gradient(135deg, #041835 0%, #041E88 100%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
    overflow: hidden;
}

.demo-v2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.demo-v2-hero__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.demo-v2-hero__left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-v2-hero__headline {
    font-size: 2.6rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin: 0;
    text-wrap: balance;
}

.demo-v2-hero__sub {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
    max-width: 520px;
}

/* Stat tile grid */
.demo-v2-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.demo-v2-stat {
    --stat-accent: #60a5fa;
    --stat-accent-soft: rgba(96, 165, 250, 0.16);
    position: relative;
    padding: 1rem 1rem 1rem 1.25rem;
    background: #0b1830;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-v2-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.demo-v2-stat--gold {
    --stat-accent: #FFA000;
    --stat-accent-soft: rgba(255, 160, 0, 0.18);
}

.demo-v2-stat--amber {
    --stat-accent: #f59e0b;
    --stat-accent-soft: rgba(245, 158, 11, 0.16);
}

.demo-v2-stat--blue {
    --stat-accent: #3b82f6;
    --stat-accent-soft: rgba(59, 130, 246, 0.16);
}

.demo-v2-stat__glow {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--stat-accent);
    box-shadow: 0 0 12px var(--stat-accent), 0 0 24px var(--stat-accent-soft);
    opacity: 0.75;
    animation: demo-v2-glow 4s ease-in-out infinite;
    animation-delay: var(--stat-delay, 0s);
}

.demo-v2-stat:hover .demo-v2-stat__glow {
    opacity: 1;
}

@keyframes demo-v2-glow {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.95; }
}

.demo-v2-stat__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--stat-accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.35rem;
}

.demo-v2-stat__label {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.35;
}

/* Product screenshot */
.demo-v2-screenshot {
    margin-top: 0.5rem;
    width: 100%;
    display: block;
    animation: demo-v2-screenshot-pulse 12s ease-in-out infinite;
}

.demo-v2-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes demo-v2-screenshot-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
    50%      { filter: drop-shadow(0 0 18px rgba(255, 160, 0, 0.18)); }
}

/* 3 bullets */
.demo-v2-bullets {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.demo-v2-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.45;
}

.demo-v2-bullets li strong {
    color: #f8fafc;
    font-weight: 700;
}

.demo-v2-bullets__check {
    width: 16px;
    height: 16px;
    color: #FFA000;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Cynthia testimonial */
.demo-v2-quote {
    margin: 1rem 0 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid #FFA000;
    color: #e2e8f0;
    font-style: italic;
}

.demo-v2-quote p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.demo-v2-quote cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
}

.demo-v2-quote cite strong {
    color: #f8fafc;
    font-weight: 700;
}

.demo-v2-quote cite span {
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Hero right — Calendly frame
   -------------------------------------------------------------------------- */

.demo-v2-hero__right {
    position: sticky;
    top: 6rem;
}

.demo-v2-calendly-frame {
    position: relative;
    background: #0b1830;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 160, 0, 0.3),
        0 0 40px rgba(255, 160, 0, 0.12),
        0 0 80px rgba(21, 71, 188, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: demo-v2-frame-ring 4s ease-in-out infinite;
}

@keyframes demo-v2-frame-ring {
    0%, 100% { box-shadow:
        0 0 0 1px rgba(255, 160, 0, 0.3),
        0 0 40px rgba(255, 160, 0, 0.12),
        0 0 80px rgba(21, 71, 188, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4); }
    50%      { box-shadow:
        0 0 0 1px rgba(255, 160, 0, 0.5),
        0 0 50px rgba(255, 160, 0, 0.2),
        0 0 90px rgba(21, 71, 188, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.4); }
}

.demo-v2-calendly-frame:hover {
    animation-play-state: paused;
    box-shadow:
        0 0 0 1px rgba(255, 160, 0, 0.7),
        0 0 60px rgba(255, 160, 0, 0.28),
        0 0 100px rgba(21, 71, 188, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

.demo-v2-calendly-frame__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-v2-calendly-frame__eyebrow {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFA000;
    font-weight: 700;
    margin: 0;
}

.demo-v2-calendly-frame__live {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.demo-v2-calendly-frame__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: demo-v2-live-dot 1.6s ease-in-out infinite;
}

@keyframes demo-v2-live-dot {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50%      { opacity: 1; transform: scale(1.1); }
}

.demo-v2-calendly-frame__body {
    background: #ffffff;
    border-radius: 0 0 15px 15px;
    min-height: 600px;
    position: relative;
}

/* Strip the generic padding from the included schedule-demo.php */
.demo-v2-calendly-frame__body .calendar-hero {
    padding: 0.75rem 1rem 0;
}

.demo-v2-calendly-frame__body .calendly-scripts-wrapper {
    padding: 0 0 0.5rem;
}

.demo-v2-calendly-frame__body .iframe-container {
    background: #ffffff;
}

/* --------------------------------------------------------------------------
   Section 2: Trust Bar (integration logos)
   -------------------------------------------------------------------------- */

.demo-v2-trust {
    background: #041835;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-v2-trust__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-v2-trust__eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #FFA000;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

.demo-v2-trust__logos {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-v2-trust__logos img {
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.25s ease;
    max-height: 28px;
    width: auto;
}

.demo-v2-trust__logos img:hover {
    opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Section 3: See it, hear from advisors
   -------------------------------------------------------------------------- */

.demo-v2-proof {
    background: #ffffff;
    padding: 4.5rem 1.5rem;
}

.demo-v2-proof__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-v2-proof__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.demo-v2-proof__headline {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.75rem;
}

.demo-v2-proof__sub {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.demo-v2-proof__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
}

.demo-v2-proof__video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.demo-v2-proof__video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-v2-proof__label {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.demo-v2-proof__label strong {
    font-weight: 700;
}

.demo-v2-proof__label span {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Section 4: Migration
   -------------------------------------------------------------------------- */

.demo-v2-migration {
    background: linear-gradient(135deg, #041835 0%, #0a1628 100%);
    padding: 4.5rem 1.5rem;
    position: relative;
}

.demo-v2-migration::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.demo-v2-migration__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.demo-v2-migration__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.demo-v2-migration__headline {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.75rem;
    text-wrap: balance;
}

.demo-v2-migration__sub {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
    text-wrap: pretty;
}

.demo-v2-migration__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.demo-v2-migration__tile {
    --stat-accent: #f59e0b;
    --stat-accent-soft: rgba(245, 158, 11, 0.16);
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: #0b1830;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.demo-v2-migration__tile:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.3);
}

.demo-v2-migration__tile strong {
    display: block;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.demo-v2-migration__tile p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.demo-v2-migration__tile-glow {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--stat-accent);
    box-shadow: 0 0 12px var(--stat-accent), 0 0 24px var(--stat-accent-soft);
    opacity: 0.75;
    animation: demo-v2-glow 4s ease-in-out infinite;
    animation-delay: var(--stat-delay, 0s);
}

.demo-v2-migration__pricing {
    text-align: center;
    margin: 2.5rem 0 0;
    color: #FFA000;
    font-size: 0.95rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section 5: FAQ
   -------------------------------------------------------------------------- */

.demo-v2-faq {
    background: #ffffff;
    padding: 4.5rem 1.5rem;
}

.demo-v2-faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.demo-v2-faq__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.demo-v2-faq__headline {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0;
}

.demo-v2-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.demo-v2-faq__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-v2-faq__item:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.demo-v2-faq__item[open] {
    border-color: rgba(255, 160, 0, 0.4);
    background: #fffef8;
}

.demo-v2-faq__item summary {
    list-style: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-v2-faq__item summary::-webkit-details-marker { display: none; }

.demo-v2-faq__chevron {
    width: 14px;
    height: 14px;
    color: #FFA000;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.demo-v2-faq__item[open] .demo-v2-faq__chevron {
    transform: rotate(180deg);
}

.demo-v2-faq__item p {
    padding: 0 1.25rem 1.1rem;
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.demo-v2-faq__item p a {
    color: #1547BC;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sticky CTA bar
   -------------------------------------------------------------------------- */

.demo-v2-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #041835;
    border-top: 1px solid rgba(255, 160, 0, 0.35);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.demo-v2-sticky-bar.visible {
    transform: translateY(0);
}

.demo-v2-sticky-bar__text {
    color: #f8fafc;
    font-size: 0.9rem;
    flex: 1;
}

.demo-v2-sticky-bar__text strong {
    color: #FFA000;
    font-weight: 700;
}

.demo-v2-sticky-bar__btn {
    background: #FFA000;
    color: #041835;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.demo-v2-sticky-bar__btn:hover {
    background: #ffbf42;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Exit-intent popup
   -------------------------------------------------------------------------- */

.demo-v2-exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 24, 53, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
}

.demo-v2-exit-overlay.visible {
    display: flex;
    animation: demo-v2-exit-in 0.25s ease-out;
}

@keyframes demo-v2-exit-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.demo-v2-exit-popup {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.demo-v2-exit-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: 0;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.demo-v2-exit-popup img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.demo-v2-exit-popup h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.demo-v2-exit-popup p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.demo-v2-exit-cta {
    display: inline-block;
    background: #1547BC;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.demo-v2-exit-cta:hover {
    background: #1a5ae0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .demo-v2-stat__glow,
    .demo-v2-screenshot,
    .demo-v2-calendly-frame,
    .demo-v2-calendly-frame__dot,
    .demo-v2-migration__tile-glow {
        animation: none !important;
    }
    .demo-v2-hero *,
    .demo-v2-hero *::before,
    .demo-v2-hero *::after {
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .demo-v2-hero__inner {
        gap: 2.5rem;
    }
    .demo-v2-hero__headline {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .demo-v2-hero {
        padding: 4rem 1.25rem 3rem;
    }
    .demo-v2-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .demo-v2-hero__right {
        position: static;
        order: 2;
    }
    .demo-v2-hero__left {
        order: 1;
    }
    .demo-v2-stats {
        gap: 0.65rem;
    }
    .demo-v2-proof__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .demo-v2-migration__grid {
        grid-template-columns: 1fr;
    }
    .demo-v2-trust__inner {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .demo-v2-hero__headline {
        font-size: 1.85rem;
    }
    .demo-v2-hero__sub {
        font-size: 0.98rem;
    }
    .demo-v2-stat__value {
        font-size: 1.5rem;
    }
    .demo-v2-proof,
    .demo-v2-migration,
    .demo-v2-faq {
        padding: 3.5rem 1rem;
    }
    .demo-v2-proof__headline,
    .demo-v2-migration__headline,
    .demo-v2-faq__headline {
        font-size: 1.65rem;
    }
    .demo-v2-sticky-bar {
        padding: 0.7rem 1rem;
    }
    .demo-v2-sticky-bar__text {
        font-size: 0.8rem;
    }
    .demo-v2-sticky-bar__btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .demo-v2-stats {
        grid-template-columns: 1fr;
    }
}
