/*
 * homepage-v3.css — campaign homepage-004
 * Namespace: .hv3-*
 * v2 design language (docs/development/style-unification.md):
 *   flat dark surface, hairline borders, tabular monospace numbers.
 */

.hv3 {
    /* Background: transparent so the site's chart/candle background shows
     * through (parity with legacy homepage). Neve theme's .nv-content-wrap
     * is neutralized below via :has() so it can't reintroduce a black panel. */
    --hv3-surface: rgba(15, 23, 42, 0.72);
    --hv3-surface-2: rgba(26, 26, 46, 0.88);
    --hv3-hairline: #374151;
    --hv3-hairline-soft: rgba(55, 65, 81, 0.6);
    --hv3-text: #f1f5f9;
    --hv3-muted: #cbd5e1;
    --hv3-dim: #94a3b8;
    --hv3-faint: #64748b;
    --hv3-amber: #fbbf24;
    /* Badge accents — bumped from the washed v2 tokens toward the saturated
     * badge palette (splitting the difference between homepage-003's bright
     * set and the muted washed set). Original washed values kept as *-soft
     * for the low-emphasis rate-fill bars. */
    --hv3-hot: #ef4444;
    --hv3-hot-soft: #f87171;
    --hv3-hot-strong: #dc2626;
    --hv3-warm: #FFD700;
    --hv3-warm-soft: #eab308;
    --hv3-cold: #3b82f6;
    --hv3-cold-soft: #60a5fa;
    --hv3-cold-strong: #2563eb;
    --hv3-ok: #10b981;
    background: transparent;
    color: var(--hv3-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 24px 16px 64px;
}

/* Neve theme's .nv-content-wrap injects a solid background that reads as a
 * huge black rectangle around the page and destroys the see-through look.
 * Same pattern used by simple-sheet-v2.css — scoped via :has() so only pages
 * that contain the .hv3 root are affected. */
body:has(.hv3) .nv-content-wrap,
body:has(.hv3) .nv-content-wrap > .container {
    background: transparent !important;
    border: 0 !important;
}
.hv3-shell { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hv3-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace; font-variant-numeric: tabular-nums; }

/* ------- Hero ------- */
.hv3-hero { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 32px 16px; }
.hv3-hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.hv3-hero-sub { font-size: 1.05rem; color: var(--hv3-muted); max-width: 680px; margin: 0; line-height: 1.55; }
.hv3-hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ------- CTA ------- */
.hv3-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.hv3-cta-primary { background: var(--hv3-amber); color: #0f172a; }
.hv3-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(251, 191, 36, 0.35); color: #0f172a; }
.hv3-cta-secondary { background: transparent; color: var(--hv3-text); border: 1px solid var(--hv3-hairline); }
.hv3-cta-lg { padding: 14px 28px; font-size: 1.05rem; }


/* ------- QuarterPerformanceCard ------- */
.hv3-qpc { background: var(--hv3-surface); border: 1px solid var(--hv3-hairline); border-radius: 12px; padding: 24px; }
.hv3-qpc-head { text-align: center; margin-bottom: 20px; }
.hv3-qpc-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0.01em; }
.hv3-qpc-sub { color: var(--hv3-dim); font-size: 0.9rem; margin: 0; }
.hv3-qpc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hv3-qpc-card { border: 1px solid var(--hv3-hairline-soft); border-radius: 10px; padding: 16px; background: var(--hv3-surface-2); display: flex; flex-direction: column; gap: 10px; }
.hv3-qpc-card-hot  { border-top: 3px solid var(--hv3-hot); }
.hv3-qpc-card-warm { border-top: 3px solid var(--hv3-warm); }
.hv3-qpc-card-cold { border-top: 3px solid var(--hv3-cold); }
.hv3-qpc-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hv3-muted); }
.hv3-qpc-pct { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.hv3-qpc-card-hot  .hv3-qpc-pct { color: var(--hv3-hot); }
.hv3-qpc-card-warm .hv3-qpc-pct { color: var(--hv3-warm); }
.hv3-qpc-card-cold .hv3-qpc-pct { color: var(--hv3-cold); }
.hv3-qpc-bar { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.hv3-qpc-bar-fill { height: 100%; transition: width 0.4s ease; }
.hv3-qpc-bar-fill-hot  { background: var(--hv3-hot); }
.hv3-qpc-bar-fill-warm { background: var(--hv3-warm); }
.hv3-qpc-bar-fill-cold { background: var(--hv3-cold); }
.hv3-qpc-caption { color: var(--hv3-muted); font-size: 0.9rem; }
.hv3-qpc-edge { font-size: 0.85rem; color: var(--hv3-dim); }
.hv3-qpc-edge.is-pos { color: var(--hv3-ok); }
.hv3-qpc-edge.is-neg { color: var(--hv3-hot); }
.hv3-qpc-edge-base { color: var(--hv3-faint); }
.hv3-qpc-foot { text-align: center; color: var(--hv3-faint); font-size: 0.82rem; margin: 18px 0 0; }
.hv3-qpc-link { color: var(--hv3-amber); text-decoration: none; }
.hv3-qpc-link:hover { text-decoration: underline; }

/* ------- LiveLevelsWidget -------
 * The weekly ladder now emits the real member `lv3-*` DOM structure and
 * reuses levels-v3.css for byte-for-byte visual parity with the member
 * LevelsLadder React component. Only these homepage-specific extras remain
 * here: the outer widget wrapper (adds hairline/title header + locked
 * daily-tab affordance around the ladder), the mode-toggle "is-locked"
 * variant, and the daily-gate lock panel. All ladder rows / anchor / SD
 * labels / mono cells inherit from levels-v3.css unchanged. */
.hv3-llw { background: var(--hv3-surface); border: 1px solid var(--hv3-hairline); border-radius: 12px; padding: 20px; }
.hv3-llw-head { text-align: center; margin-bottom: 20px; }
.hv3-llw-title { font-size: 1.15rem; font-weight: 700; text-align: center; margin: 0 0 6px; letter-spacing: 0.01em; color: var(--hv3-text); }
.hv3-llw-week { color: var(--hv3-dim); font-size: 0.85rem; text-align: center; margin: -6px 0 12px; }
/* Locked daily tab — piggybacks on the real .lv3-mode-btn but adds a lock
 * glyph and dims the label so members visually recognize the pattern. */
.lv3-mode-btn.is-locked { color: var(--hv3-dim); cursor: pointer; }
.lv3-mode-btn.is-locked .hv3-llw-lock { margin-left: 4px; font-size: 0.85em; }
.lv3-mode-btn.is-locked:hover { color: var(--hv3-amber); }

/* ------- FeatureCards ------- */
.hv3-fc { padding-top: 8px; }
.hv3-fc-title { font-size: 1.35rem; font-weight: 700; text-align: center; margin: 0 0 20px; }
.hv3-fc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hv3-fc-card { background: var(--hv3-surface); border: 1px solid var(--hv3-hairline); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hv3-fc-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--hv3-amber); font-weight: 700; }
.hv3-fc-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.hv3-fc-body { color: var(--hv3-muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.hv3-fc-tickers { color: var(--hv3-dim); font-size: 0.85rem; letter-spacing: 0.02em; padding-top: 6px; border-top: 1px solid var(--hv3-hairline-soft); }
.hv3-fc-stat { color: var(--hv3-ok); font-size: 0.9rem; padding-top: 6px; border-top: 1px solid var(--hv3-hairline-soft); }
.hv3-fc-link { color: var(--hv3-amber); text-decoration: none; }
.hv3-fc-link:hover { text-decoration: underline; }

/* ------- PricingCard ------- */
.hv3-pc { padding: 8px 0; }
.hv3-pc-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0 0 20px; }
.hv3-pc-card { background: var(--hv3-surface); border: 1px solid var(--hv3-hairline); border-radius: 12px; padding: 28px; max-width: 560px; margin: 0 auto; text-align: center; }
.hv3-pc-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 4px; }
.hv3-pc-amount { font-size: 3rem; font-weight: 700; color: var(--hv3-text); }
.hv3-pc-per { color: var(--hv3-dim); font-size: 1.1rem; }
.hv3-pc-billing { color: var(--hv3-muted); margin-bottom: 20px; }
.hv3-pc-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.hv3-pc-features li { padding-left: 26px; position: relative; color: var(--hv3-muted); line-height: 1.5; }
.hv3-pc-features li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--hv3-ok); font-weight: 700; }
.hv3-pc-cta { display: flex; justify-content: center; margin-bottom: 12px; }
.hv3-pc-fineprint { color: var(--hv3-faint); font-size: 0.82rem; margin: 0; }

/* ------- Testimonial ------- */
.hv3-tm { display: flex; justify-content: center; }
.hv3-tm-card { background: rgba(96, 165, 250, 0.08); border-left: 3px solid var(--hv3-cold); padding: 20px 24px; margin: 0; max-width: 720px; border-radius: 8px; }
.hv3-tm-quote { color: var(--hv3-text); font-style: italic; font-size: 1.02rem; margin: 0 0 10px; line-height: 1.6; }
.hv3-tm-cite { color: var(--hv3-dim); font-size: 0.9rem; }
.hv3-tm-name { color: var(--hv3-text); font-weight: 600; }
.hv3-tm-sep { margin: 0 6px; color: var(--hv3-faint); }

/* ------- FAQ ------- */
.hv3-faq { background: var(--hv3-surface); border: 1px solid var(--hv3-hairline); border-radius: 12px; padding: 24px; }
.hv3-faq-title { font-size: 1.35rem; font-weight: 700; text-align: center; margin: 0 0 20px; }
.hv3-faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 780px; margin: 0 auto; }
.hv3-faq-item { border: 1px solid var(--hv3-hairline-soft); border-radius: 8px; background: var(--hv3-surface-2); }
.hv3-faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--hv3-text); list-style: none; }
.hv3-faq-item summary::-webkit-details-marker { display: none; }
.hv3-faq-item summary::after { content: "▾"; float: right; color: var(--hv3-faint); transition: transform 0.15s; }
.hv3-faq-item[open] summary::after { transform: rotate(180deg); }
.hv3-faq-item p, .hv3-faq-item ul { color: var(--hv3-muted); padding: 0 16px 14px; margin: 0; line-height: 1.55; }
.hv3-faq-item ul { padding-left: 36px; padding-bottom: 14px; }
.hv3-faq-item ul li { margin-bottom: 4px; }

/* ------- Final CTA ------- */
.hv3-final { text-align: center; padding: 32px 16px; }
.hv3-final-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; }
.hv3-final-sub { color: var(--hv3-muted); margin: 0 0 20px; }

/* ------- Responsive ------- */
@media (max-width: 768px) {
    .hv3-qpc-grid, .hv3-fc-grid { grid-template-columns: 1fr; }
    .hv3-pc-amount { font-size: 2.5rem; }
    .hv3-hero { padding: 20px 8px; }
}

.hv3-llw-daily-gate { text-align: center; padding: 24px 16px; border: 1px dashed var(--hv3-hairline); border-radius: 10px; margin-top: 12px; }
.hv3-llw-gate-icon { font-size: 2rem; margin-bottom: 8px; }
.hv3-llw-gate-copy { color: var(--hv3-muted); font-size: 0.95rem; max-width: 480px; margin: 0 auto 14px; line-height: 1.5; }
.hv3-llw-empty { color: var(--hv3-faint); text-align: center; padding: 20px; }

/* The homepage widget mounts the real member LevelsLadder in `marketing`
 * mode. ES + SPY cells render as locked placeholders (see .lv3-cell-locked
 * in levels-v3.css). Two tweaks are scoped here so member home stays
 * untouched:
 *   1. Drop the trailing copy column entirely — homepage visitors aren't
 *      copying values into a trading platform. Grid collapses from
 *      `46px 1fr 1fr 1fr 28px` to `46px 1fr 1fr 1fr` so σ / SPX / ES / SPY
 *      headers sit directly over their data columns.
 *   2. Right-align the SPX header cell to match the right-aligned SPX
 *      values (parity with the numeric column). ES / SPY headers stay
 *      centered to match the flex-centered locked cells. */
.hv3-llw .lv3-row {
    grid-template-columns: 46px 1fr 1fr 1fr;
}
.hv3-llw .lv3-copy-btn,
.hv3-llw .lv3-anchor-copy-icon {
    display: none;
}
.hv3-llw .lv3-row-header .lv3-cell-header:first-of-type {
    text-align: right;
    padding-right: 8px;
}
/* Right-align the σ header over the right-aligned σ data labels. */
.hv3-llw .lv3-row-header .lv3-sd-label-header {
    text-align: right;
    padding-right: 4px;
}
/* ES / SPY headers must center over their centered lock cells. `.lv3-cell`
 * declares `text-align: right` *after* `.lv3-cell-header` in levels-v3.css,
 * so at equal specificity the right-align wins on member home — invisible
 * there (numbers are right-aligned too) but wrong on the widget where those
 * columns render centered 🔒 glyphs. Override, widget-scoped. */
.hv3-llw .lv3-row-header .lv3-cell-header:nth-of-type(3),
.hv3-llw .lv3-row-header .lv3-cell-header:nth-of-type(4) {
    text-align: center;
}

/* Trial-CTA gate rendered *inside* the ladder card (below the Weekly |
 * Daily toggle) when the locked Daily tab is clicked. The toggle header
 * stays mounted above this node so Weekly remains a one-click exit. */
.hv3-llw-daily-gate-inline { padding: 20px 8px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hv3-llw-gate-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--hv3-text); }
