/* ─────────────────────────────────────────────────────────────
   Home page styles: restyle toward the /lead-engine-2 look.
   Loaded after the shared style.css by templates/index.html only.
   Palette taken from the lead-engine-2 demo widget.
   ───────────────────────────────────────────────────────────── */
:root {
    --pv-navy: #1B365D;
    --pv-navy-dark: #122542;
    --pv-slate: #5B6472;

    --bg-color: #F7F8FA;
    --text-main: #1F2937;
    --text-dim: #5B6472;
    --border-color: #E2E5EA;
    --accent-soft: #EEF2F7;

    /* Flatter shadows */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-xl: 0 8px 20px rgba(16, 24, 40, 0.07);
}

/* ── Line icons that replace the emoji ── */
.pv-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
span:has(> .pv-icon:only-child) { color: var(--pv-navy); }

.pv-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f7a4d;
    margin-right: 6px;
    vertical-align: 1px;
}

/* ── Hero: dark navy, same as the Lead Engine pages ── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    min-height: auto;           /* size to content so the opportunities strip shows on first load */
    padding: 7rem 0 2.5rem;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    font-weight: 600;
}
.hero-title { color: #fff; }
.hero-subtitle { color: rgba(255, 255, 255, 0.78); }
.hero-text > p[style] { color: rgba(255, 255, 255, 0.6) !important; }
.hero .btn-primary { background: #fff; color: var(--accent-secondary); }
.hero .btn-primary:hover { background: #EEF2F7; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; }

/* Pillar A–D switcher under the hero card */
.nav-connector { background: rgba(255, 255, 255, 0.25); }
.nav-dot:nth-child(n) { border-color: rgba(255, 255, 255, 0.45); color: rgba(255, 255, 255, 0.8); }
.nav-dot:nth-child(n).active { background: #fff; border-color: #fff; color: var(--pv-navy); }

/* ── Cards: thinner, flatter, squarer ── */
.dashboard-preview {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.dashboard-widget { border-radius: 10px; box-shadow: none; }
.dashboard-badge {
    background: #EEF2F7;
    color: var(--pv-navy);
    border-radius: 6px;
}
.feature-card { border-radius: 10px; }
.feature-card:hover { border-color: #C9D2DE; transform: none; box-shadow: var(--shadow-lg); }

/* ── Labels, headings, numbers: navy instead of bright blue ── */
.section-label { color: var(--pv-slate); font-weight: 600; letter-spacing: 1.2px; }
.section-title { color: var(--pv-navy-dark); }
.stat-big { color: var(--pv-navy); font-weight: 700; }
.problem-section .section-description[style] { color: var(--pv-navy) !important; font-weight: 600 !important; }

.pv-pillar-label {
    display: inline-block;
    background: #EEF2F7;
    color: var(--pv-navy);
    border: 1px solid #D5DDE8;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* ── Comparison table ── */
.comparison-table table { border: 1px solid var(--border-color); box-shadow: none; border-radius: 10px; }
.comparison-table thead th { background: var(--pv-navy-dark); font-weight: 600; }
.comparison-table th.our-column { background: var(--pv-navy); }
.comparison-table .our-column { background: rgba(27, 54, 93, 0.04); }
.comparison-table .our-column .check-icon,
.comparison-table .check-icon { color: #1f7a4d; }
.comparison-table .cross-icon { color: #9AA3AF; }

.comparison-highlight {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: none;
}
.comparison-highlight strong { color: var(--pv-navy); }

/* ── Suppressed blocks (kept in the markup for later use) ── */
.pv-suppressed { display: none !important; }

/* ── Nav: Log in link ── */
.pv-login {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0 0.5rem;
    align-self: center;
}
.pv-login:hover { color: var(--accent-secondary); }
.pv-login-mobile { display: none; }
@media (max-width: 968px) {
    .pv-login { display: none; }
    .pv-login-mobile { display: list-item; }
}

/* ── Hero video placeholder ── */
.pv-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}
.pv-video-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pv-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pv-video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.pv-video-label { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; font-weight: 500; }
.hero-visual { margin-top: 0; }

/* ── Funding-opportunities carousel ── */
.pv-opps {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0 1.5rem;
}
.pv-opps-label {
    text-align: center;
    font-size: 0.85rem;     /* same as .section-label ("THE PROBLEM") */
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pv-slate);
    margin-bottom: 1rem;
}
.pv-opps-viewport { overflow: hidden; max-width: 680px; margin: 0 auto; }
.pv-opps-track { display: flex; column-gap: 0; transition: transform 0.5s ease; }
.pv-opp {
    flex: 0 0 100%;
    text-align: center;
    padding: 0.5rem 1rem;
}
.pv-opp-amount { font-family: 'Outfit', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--pv-navy); line-height: 1.1; }
.pv-opp-type { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-top: 0.3rem; }
.pv-opp-who { font-size: 0.9rem; color: var(--text-dim); margin-top: 0.15rem; }
.pv-opps-controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.9rem; }
.pv-opps-arrow {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--border-color); background: #fff; color: var(--pv-navy);
    font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.pv-opps-arrow:hover { border-color: #C9D2DE; background: #F7F8FA; }
.pv-opps-dots { display: flex; gap: 6px; }
.pv-opps-dot {
    width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none;
    background: #D5DDE8; cursor: pointer;
}
.pv-opps-dot.active { background: var(--pv-navy); }

/* ── Five reasons (placeholder) ── */
.pv-reasons-section { background: #fff; }
.pv-reasons-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.pv-reasons-list { display: flex; flex-direction: column; gap: 0.9rem; }
.pv-reason {
    display: flex; gap: 1rem; align-items: flex-start;
    border: 1px solid var(--border-color); border-radius: 10px; padding: 1.1rem 1.25rem; background: #fff;
}
.pv-reason-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: #EEF2F7; color: var(--pv-navy); font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.pv-reason-title { font-weight: 600; color: var(--pv-navy-dark); margin-bottom: 0.25rem; }
.pv-reason-text { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.pv-placeholder-note { font-size: 0.85rem; color: #a16207; font-style: italic; margin-top: 0.5rem; }
@media (max-width: 768px) {
    .pv-reasons-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pv-opp-amount { font-size: 2rem; }
}

/* ── "Why now" box on each opportunity (same look as /lead-engine-2) ── */
.pv-why {
    margin: 1rem auto 0;
    max-width: 640px;
    text-align: left;
    font-size: 15.5px;
    line-height: 1.6;
    color: #3B1F6E;
    background: #F3EAFA;
    border-radius: 8px;
    padding: 12px 16px;
}
.pv-why-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7C3AED;
    margin-right: 8px;
}

/* ── "Our Edge" steps (replaces the Problem section's stats) ── */
.pv-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.pv-step {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}
.pv-step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: #EEF2F7; color: var(--pv-navy);
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.pv-step-title { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--pv-navy-dark); margin-bottom: 0.5rem; }
.pv-step-text { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
    .pv-steps { grid-template-columns: 1fr; }
}
.problem-section .section-description { text-align: center; }

/* ── Four-Pillar graphics palette: change colors here, not in the markup ── */
:root {
    --pv-good: #1f7a4d;          /* "with DealPilot" values, check marks */
    --pv-bad: #a63a32;           /* "without DealPilot" values, x marks */
    --pv-surface: #F7F8FA;       /* neutral tiles and rows */
    --pv-tint: #EEF2F7;          /* navy-tinted callouts and badges */
    --pv-line: #E2E5EA;          /* hairlines */
    --pv-line-strong: #C9D2DE;   /* stronger outlines (chips, search box) */
    --pv-ai-bg: #F3EAFA;         /* AI-generated content, same as /lead-engine-2 "Why now" */
    --pv-ai-line: #E6D5F5;
    --pv-ai-text: #3B1F6E;
    --pv-ai-label: #7C3AED;
    --pv-accent: #2563EB;        /* data and action: scores, bars, signal chips (same blue as buttons) */
    --pv-accent-tint: #EEF4FF;
    --pv-accent-line: #C9DAFB;
    --pv-accent-text: #1D4ED8;
    --pv-good-tint: #F0F7F2;     /* soft green fill: "with DealPilot" */
    --pv-good-line: #CDE5D5;
    --pv-bad-tint: #FBF2F1;      /* soft red fill: "without DealPilot" */
    --pv-bad-line: #F0D7D4;
    --pv-warn: #8A5A12;          /* single caution verdict in the hero risk report */
    --pv-warn-tint: #FBF3E4;
}

/* ── Pillar A signals popup: fixed header/tabs/footer, only the list scrolls ── */
.pv-signals-modal {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    overflow: hidden;
    padding: 2rem 2.25rem 1.5rem;
}
.pv-signals-modal .modal-description { margin-bottom: 0; }
.pv-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-top: 1.25rem;
    flex-shrink: 0;
}
.pv-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.6rem 0.9rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pv-slate);
    cursor: pointer;
}
.pv-tab:hover { color: var(--pv-navy); }
.pv-tab.active { color: var(--pv-accent); border-bottom-color: var(--pv-accent); }
.pv-signals-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}
.pv-tab-panel { display: flex; flex-direction: column; gap: 1rem; }
.pv-tab-panel[hidden] { display: none; }
.pv-signals-footer {
    flex-shrink: 0;
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* ── Pillar A: Public vs Private signal groups ── */
.pv-signal-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--pv-slate);
    margin-top: 0.25rem;
}
.pv-private-group {
    margin-top: 1.75rem;
    background: var(--pv-accent-tint);
    border: 1px solid var(--pv-accent-line);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.4rem;
}
.pv-private-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pv-private-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--pv-accent);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    white-space: nowrap;
}
.pv-private-sub { font-size: 0.9rem; color: var(--pv-navy); font-weight: 500; margin: 0.35rem 0 1rem; }
.pv-private-icon { background: #fff; color: var(--pv-accent); font-size: 1.4rem; }
.pv-private-group .features-grid-icons { margin-top: 0 !important; }

/* ── Final CTA: two products ── */
.pv-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}
.pv-product {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.pv-product-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--pv-accent-tint); color: var(--pv-accent);
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.pv-product-name { font-size: 1.4rem; color: var(--pv-navy-dark); margin-bottom: 0.35rem; }
.pv-product-tag { color: var(--text-dim); margin: 0 0 1.1rem; }
.pv-product-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.pv-product-points li { position: relative; padding-left: 1.5rem; color: var(--text-main); font-size: 0.95rem; }
.pv-product-points li::before {
    content: ""; position: absolute; left: 0; top: 0.4em;
    width: 0.8rem; height: 0.45rem;
    border-left: 2px solid var(--pv-good); border-bottom: 2px solid var(--pv-good);
    transform: rotate(-45deg);
}
.pv-product-price { font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--pv-navy-dark); margin-bottom: 1rem; }
.pv-product-price span { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--text-dim); margin-left: 0.2rem; }
.pv-product-btn { width: 100%; text-align: center; font-size: 1.05rem; padding: 0.9rem 1.5rem; }
.pv-products-note { text-align: center; color: var(--text-dim); margin-top: 1.75rem; }
.pv-products-note a { color: var(--pv-accent); font-weight: 600; text-decoration: none; }
.pv-products-note a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .pv-products { grid-template-columns: 1fr; }
}

/* ── Hero (desktop only): constant height across views A–D ──
   All four views share one grid cell, so the slot is as tall as the tallest view and the
   hero never grows/shrinks. Each card keeps its own natural height (vertically centered), so shorter
   views don't get extra white space inside the card. Fade/slide animation is unchanged.
   On phones/tablets (<= 968px, the site's mobile breakpoint) the original behavior stays:
   the card sizes to the visible view, keeping the stacked hero short. */
@media (min-width: 969px) {
    .dashboard-slider { display: grid; }
    .dashboard-view,
    .dashboard-view.active {
        grid-area: 1 / 1;
        align-self: center;
        position: relative;
        top: auto;
        left: auto;
    }
}

/* ── Mobile fixes ── */
/* 1. iPhones zoom into form fields whose text is under 16px; keep field text at 16px on phones/tablets. */
@media (max-width: 968px) {
    .modal input:not([type="checkbox"]):not([type="radio"]),
    .modal select,
    .modal textarea { font-size: 16px !important; }
}

/* 2. Signals popup on phones: tighter header so the scrolling list gets most of the height. */
@media (max-width: 600px) {
    .pv-signals-modal { padding: 1.4rem 1.15rem 1rem; max-height: 92vh; }
    .pv-signals-modal .modal-title { font-size: 1.2rem; padding-right: 2rem; }
    .pv-signals-modal .modal-description { font-size: 0.82rem; line-height: 1.45; }
    .pv-tabs { margin-top: 0.75rem; }
    .pv-signals-scroll { margin-top: 0.75rem; }
    .pv-signals-footer { padding-top: 0.75rem; margin-top: 0.6rem; }
}

/* 3. Bigger tap area around carousel dots: an invisible layer around each dot catches taps,
      so the dots themselves look exactly the same. */
.pv-opps-dot,
.loan-signal-dot { position: relative; }
.pv-opps-dot::after,
.loan-signal-dot::after {
    content: "";
    position: absolute;
    inset: -10px -3px;
}
