/* ═══════════════════════════════════════════════
   RESULTS — Robustness (score, gauge, distribution, boxplots, spaghetti)
   ═══════════════════════════════════════════════ */

/* ═══ DISTRIBUTION SECTION ═══ */
.dist-section { padding: 100px 0; position: relative; }
.dist-header { max-width: var(--content-max-w); margin: 0 auto; padding: 0 var(--section-px); }
.dist-prob-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 12px; font-size: 14px; font-weight: 700; margin-top: 20px; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.dist-prob-badge.low { background: var(--green-soft); color: var(--green); border: 1px solid rgba(5,150,105,0.12); }
.dist-prob-badge.medium { background: rgba(245,158,11,0.08); color: var(--amber); border: 1px solid rgba(245,158,11,0.12); }
.dist-prob-badge.high { background: var(--red-soft); color: var(--red); border: 1px solid rgba(220,38,38,0.12); }
.dist-chart-full { height: 420px; padding: 28px var(--section-px); margin-top: 28px; }

/* ═══ EXPECT CARDS ═══ */

/* Legend */
.expect-legend {
    display: flex; align-items: center; gap: 20px;
    margin-top: 32px; margin-bottom: 20px;
}
.expect-legend-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.expect-legend-dot {
    width: 10px; height: 10px; border-radius: 3px;
}
.expect-dot--returns { background: var(--teal); }
.expect-dot--risk { background: var(--amber, #F59E0B); }
.expect-dot--ratios { background: var(--navy); }

/* Grid */
.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Card */
.expect-card {
    background: var(--warm);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px 16px;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
    will-change: transform;
}
.expect-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Layer 1: Name row with family dot */
.expect-name-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
}
.expect-family-dot {
    width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0;
}
.expect-family-dot--returns { background: var(--teal); }
.expect-family-dot--risk { background: var(--amber, #F59E0B); }
.expect-family-dot--ratios { background: var(--navy); }
.expect-name {
    font-size: 11px; font-weight: 700; color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.06em;
    display: block;
}

/* Layer 2: Two numbers side by side */
.expect-numbers {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 16px;
}
.expect-expected {
    display: flex; flex-direction: column; gap: 2px;
}
.expect-expected-val {
    font-size: 26px; font-weight: 800; color: var(--navy);
    letter-spacing: -0.03em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.expect-expected-label {
    font-size: 9px; font-weight: 600; color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.expect-yours {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.expect-yours-val {
    font-size: 15px; font-weight: 700; color: var(--teal);
    letter-spacing: -0.01em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.expect-yours-label {
    font-size: 9px; font-weight: 500; color: var(--ink-4);
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* Layer 3: Range bar — taller, more prominent */
.expect-bar-wrap {
    display: flex; align-items: center; gap: 8px;
}
.expect-bar-edge {
    font-size: 9px; font-weight: 600; color: var(--ink-4);
    white-space: nowrap; flex-shrink: 0; min-width: 32px;
    font-variant-numeric: tabular-nums;
}
.expect-bar-edge:last-child { text-align: right; }
.expect-range-bar {
    position: relative; height: 10px; flex: 1;
    background: var(--border); border-radius: 5px;
    overflow: visible;
}
.expect-range-fill {
    position: absolute; top: 0; height: 100%;
    background: linear-gradient(90deg, rgba(0,191,179,0.10), rgba(0,191,179,0.22));
    border-radius: 5px;
    transition: width 1.4s var(--ease-out-expo), left 1.4s var(--ease-out-expo);
    width: 0;
}
.expect-range-median {
    position: absolute; top: -3px; width: 2px; height: 16px;
    background: var(--ink-4); border-radius: 1px; opacity: 0.4;
    transition: left 1.4s var(--ease-out-expo); left: 0;
}
.expect-range-you {
    position: absolute; top: -4px; width: 10px; height: 18px;
    border-radius: 4px; background: var(--teal);
    box-shadow: 0 2px 8px rgba(0,191,179,0.35);
    transition: left 1.4s var(--ease-out-expo); left: 0;
}

/* ═══ SPAGHETTI SECTION ═══ */
.spag-section { padding: 100px 0; position: relative; }
.spag-header { max-width: var(--content-max-w); margin: 0 auto; padding: 0 var(--section-px); }
.spag-header--centered { text-align: center; }
.spag-header--centered .section-label { justify-content: center; }
.spag-header--centered .section-label::before { display: none; }
.spag-header--centered .section-text { max-width: 640px; margin-left: auto; margin-right: auto; }
.spag-header--centered .spag-legend { justify-content: center; }
.spag-chart-full { height: 480px; padding: 28px var(--section-px); margin-top: 32px; }

/* ═══ ROBUSTNESS HERO — SCORE REVEAL ═══ */
.rob-hero {
    /* Inherits from .dark-hero-section; no justify-content needed */
}
.rob-hero-ambient {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0,191,179,0.06) 0%, rgba(0,191,179,0.02) 25%, transparent 60%);
    pointer-events: none;
}
.rob-hero-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.rob-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 16px;
}
.rob-hero-tag::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--teal);
}
.rob-hero-title {
    font-family: var(--serif);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
}
.rob-hero-title em {
    font-style: italic;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}
.rob-hero-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0 auto;
}

/* Centerpiece */
.rob-centerpiece {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

/* Large Gauge */
.rob-gauge-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Callout verdict */
/* Confidence warning — glass card in dark hero sections */
.confidence-warning {
    display: flex; align-items: flex-start; gap: 14px;
    margin: 24px auto 0; padding: 18px 24px; max-width: 620px;
    border-radius: 14px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    backdrop-filter: blur(16px);
}
.confidence-warning.is-hidden { display: none; }
.confidence-warning.cw-low {
    background: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.2);
}
.confidence-warning svg {
    flex-shrink: 0; margin-top: 2px;
    color: #fbbf24;
}
.confidence-warning.cw-low svg { color: #f87171; }
.confidence-warning-body { flex: 1; }
.confidence-warning-title {
    font-size: 14px; font-weight: 700; color: #fbbf24;
    margin-bottom: 4px;
}
.confidence-warning.cw-low .confidence-warning-title { color: #f87171; }
.confidence-warning-detail {
    font-size: 13px; font-weight: 500; line-height: 1.55;
    color: rgba(255,255,255,0.55);
}
.confidence-warning-detail strong { color: rgba(255,255,255,0.85); }

.rob-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 24px;
    padding: 14px 28px;
    max-width: 680px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.rob-callout-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rob-callout span {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* Breakdown label */
.rob-breakdown-label {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}
.rob-gauge-ring {
    position: relative;
    width: 220px;
    height: 220px;
}
@keyframes gaugeGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.rob-gauge-ring svg {
    filter: drop-shadow(0 0 28px rgba(0,191,179,0.20));
    animation: gaugeGlow 4s ease-in-out infinite;
}
.rob-gauge-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.rob-gauge-score {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
    line-height: 1;
}
@keyframes verdictGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
    50% { box-shadow: 0 0 0 8px rgba(52,211,153,0.06); }
}
.rob-gauge-verdict {
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(5,150,105,0.15);
    color: #34D399;
    margin-top: 8px;
    animation: verdictGlow 3s ease-in-out infinite;
}

/* Confidence Scale */
.confidence-wrap {
    position: relative;
    max-width: 460px;
    margin: 0 auto 20px;
    padding-bottom: 32px;
}
.confidence-track {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    gap: 3px;
}
.confidence-zone {
    height: 100%;
    border-radius: 2px;
    position: relative;
}
.confidence-poor { flex: 30; background: rgba(220,38,38,0.3); }
.confidence-fair { flex: 20; background: rgba(245,158,11,0.25); }
.confidence-good { flex: 25; background: rgba(0,191,179,0.3); }
.confidence-excellent { flex: 25; background: rgba(5,150,105,0.35); }
.confidence-zone span {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
}
.confidence-marker {
    position: absolute;
    top: -5px;
    left: 0%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 2s var(--ease-out-expo);
    z-index: 2;
}
.confidence-marker-pip {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 16px rgba(0,191,179,0.5), 0 0 40px rgba(0,191,179,0.15);
    transition: background 0.6s ease, box-shadow 0.6s ease;
}
.confidence-marker-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--white);
}

/* (interpret text is now .rob-gauge-interpret inside the gauge block) */

/* Glass Metric Cards */
.rob-glass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.rob-glass-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 16px 12px;
    text-align: center;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rob-glass-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

/* ── Info tooltip ── */
.rob-glass-info {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.30);
    font-size: 10px;
    font-weight: 600;
    font-style: italic;
    font-family: 'Georgia', 'Times New Roman', serif;
    cursor: default;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
    z-index: 2;
    line-height: 1;
}
.rob-glass-info:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.60);
    background: rgba(255,255,255,0.08);
}
.rob-glass-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: -4px;
    width: 210px;
    padding: 10px 12px;
    background: rgba(8, 32, 50, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    font-size: 11.5px;
    font-weight: 400;
    font-style: normal;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
    text-align: left;
    letter-spacing: 0;
    text-transform: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 10;
}
.rob-glass-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: rgba(8, 32, 50, 0.92);
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    transform: rotate(45deg);
}
.rob-glass-info:hover .rob-glass-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.rob-glass-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.40);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.rob-glass-icon {
    margin: 0 auto 8px;
    display: flex;
    justify-content: center;
}
.rob-glass-pct {
    font-size: 13px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}
.rob-glass-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 10px;
}
.rob-glass-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 1.8s var(--ease-out-expo);
}
.rob-glass-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.50);
    font-weight: 400;
    line-height: 1.4;
}

/* Mini Distribution */
.rob-mini-dist {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px 28px 16px;
    margin-bottom: 28px;
}
.rob-mini-dist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.rob-mini-dist-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}
.rob-mini-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,191,179,0.12);
    color: var(--teal);
}
.rob-mini-dist-chart {
    height: 110px;
    margin-bottom: 10px;
}
.rob-mini-dist-text {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-weight: 500;
}
.rob-mini-dist-text strong {
    color: var(--teal);
    font-weight: 700;
}

/* Hero Pills */
.rob-hero-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 8px;
}
.rob-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
}
.rob-hero-pill span {
    color: var(--teal);
    font-weight: 800;
}

/* Rob Hero Scroll Cue */
.rob-hero .scroll-cue { position: relative; z-index: 1; }

/* Rob Hero Responsive */
@media (max-width: 1024px) {
    .rob-hero { padding: calc(var(--header-h) + 28px) var(--section-px) 48px; }
    .rob-hero-title { font-size: 36px; }
    .rob-glass-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .rob-hero { padding: calc(var(--header-h) + 20px) var(--section-px) 40px; }
    .rob-hero-title { font-size: 28px; }
    .rob-gauge-ring { width: 180px; height: 180px; }
    .rob-gauge-ring svg { width: 180px; height: 180px; }
    .rob-gauge-score { font-size: 44px; }
    .rob-glass-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rob-glass-val { font-size: 22px; }
    .confidence-wrap { max-width: 100%; }
    .rob-hero-pills { gap: 6px; }
    .rob-hero-pill { padding: 6px 12px; font-size: 11px; }
}

/* Spaghetti Chart */
.spag-chart-wrap { height: 400px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px; margin-top: 32px; position: relative; }
.spag-legend { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.spag-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.spag-legend-line { width: 20px; height: 3px; border-radius: 2px; }
.spag-legend-band { width: 20px; height: 10px; border-radius: 2px; }
.spag-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.spag-stat { text-align: center; padding: 16px 12px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm); }
.spag-stat-val { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.spag-stat-label { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ═══ ROBUSTNESS MINI-VERDICT ═══ */
.rob-mini-verdict {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 14px;
    background: var(--white);
    border-left: 4px solid var(--teal);
    box-shadow: var(--shadow-sm);
}
.rob-mini-verdict-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,191,179,0.08);
    color: var(--teal);
}
.rob-mini-verdict-content { flex: 1; }
.rob-mini-verdict-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-1);
    margin-bottom: 4px;
}
.rob-mini-verdict-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-3);
    line-height: 1.6;
}
.rob-mini-verdict-cta { flex-shrink: 0; align-self: center; }
.rob-mini-verdict-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--warm-3);
    border-radius: 8px;
    background: var(--warm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rob-mini-verdict-btn:hover { background: var(--warm-2); border-color: var(--teal); color: var(--navy); }

/* ═══ HORIZONTAL BOXPLOTS ═══ */

/* How-to-read helper */
.bp-howto {
    max-width: 560px;
    margin: 28px auto 0;
    padding: 20px 28px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.bp-howto-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-4);
    margin-bottom: 14px;
    text-align: center;
}
.bp-howto-diagram {
    position: relative;
    padding: 0 24px;
    margin-bottom: 14px;
}
.bp-howto-bar {
    position: relative;
    height: 18px;
    display: flex;
    align-items: center;
}
.bp-howto-whisker-l, .bp-howto-whisker-r {
    height: 1px;
    background: var(--ink-4);
    opacity: 0.35;
}
.bp-howto-whisker-l { width: 22%; }
.bp-howto-whisker-r { width: 24%; }
.bp-howto-iqr {
    height: 18px;
    flex: 1;
    background: rgba(5,28,44,0.08);
    border: 1.5px solid var(--navy);
    border-radius: 4px;
    position: relative;
}
.bp-howto-med {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48%;
    width: 2px;
    background: var(--navy);
    border-radius: 1px;
}
.bp-howto-labels {
    position: relative;
    height: 18px;
    margin-top: 4px;
}
.bp-howto-lbl {
    position: absolute;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: var(--ink-4);
    white-space: nowrap;
}
.bp-howto-desc {
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.55;
    text-align: center;
}
.bp-howto-desc strong { color: var(--ink); font-weight: 600; }

/* Legend */
.bp-h-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 28px 0 8px;
}
.bp-h-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
}
.bp-h-legend-swatch {
    width: 24px;
    height: 10px;
    border-radius: 3px;
}
.bp-h-legend-swatch.strat {
    background: rgba(5,28,44,0.10);
    border: 1.5px solid var(--navy);
}
.bp-h-legend-swatch.msci {
    background: rgba(184,196,206,0.15);
    border: 1.5px solid var(--msci);
}
.bp-h-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0,191,179,0.3), 0 1px 3px rgba(0,0,0,0.12);
}

/* Grid of rows */
.bp-h-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

/* Single row */
.bp-h-row {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.bp-h-row:last-child { border-bottom: none; }

.bp-h-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.bp-h-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.bp-h-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bp-h-badge.win {
    background: rgba(5,150,105,0.08);
    color: var(--green);
}
.bp-h-badge.lose {
    background: rgba(220,38,38,0.06);
    color: var(--red);
}
.bp-h-badge-icon::before {
    font-size: 12px;
}
.bp-h-badge.win .bp-h-badge-icon::before { content: '▲'; }
.bp-h-badge.lose .bp-h-badge-icon::before { content: '▼'; }

/* Delta chip */
.bp-h-delta {
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    padding: 4px 12px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: 10px;
}
.bp-h-delta.positive,
.bp-h-delta.negative {
    color: var(--ink);
    background: rgba(0,0,0,0.04);
}

/* Chart area */
.bp-h-chart {
    position: relative;
}

/* Graduated axis */
.bp-h-axis {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 6px;
    position: relative;
}
.bp-h-axis-tick {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-4);
    text-align: center;
    position: relative;
    min-width: 0;
}
.bp-h-axis-tick::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 1px;
    height: 4px;
    background: rgba(0,0,0,0.10);
}

/* Track group */
.bp-h-track-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Single track row (label + track) */
.bp-h-track-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bp-h-track-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-4);
    width: 60px;
    flex-shrink: 0;
    text-align: right;
}

/* Horizontal track */
.bp-h-track {
    position: relative;
    height: 28px;
    flex: 1;
    cursor: pointer;
}
.bp-h-track:hover .bp-h-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

/* Whisker (horizontal line) */
.bp-h-track .bp-h-whisker {
    position: absolute;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: var(--ink-4);
    opacity: 0.30;
    transition: left 1.2s var(--ease-out-expo), width 1.2s var(--ease-out-expo);
    left: 50%;
    width: 0;
}
/* Whisker caps */
.bp-h-track .bp-h-whisker::before,
.bp-h-track .bp-h-whisker::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 1px;
    height: 11px;
    background: var(--ink-4);
    opacity: 0.30;
}
.bp-h-track .bp-h-whisker::before { left: 0; }
.bp-h-track .bp-h-whisker::after { right: 0; }

/* Box (IQR) */
.bp-h-track .bp-h-box {
    position: absolute;
    top: 2px;
    height: 24px;
    border-radius: 5px;
    transition: left 1.2s var(--ease-out-expo), width 1.2s var(--ease-out-expo);
    left: 50%;
    width: 0;
}
.bp-h-box.strat {
    background: rgba(5,28,44,0.08);
    border: 1.5px solid var(--navy);
}
.bp-h-box.bench {
    background: rgba(184,196,206,0.12);
    border: 1.5px solid var(--msci);
}

/* Median line (vertical) */
.bp-h-track .bp-h-median {
    position: absolute;
    top: 0;
    width: 2.5px;
    height: 28px;
    border-radius: 2px;
    transition: left 1.2s var(--ease-out-expo);
    left: 50%;
}
.bp-h-box.strat ~ .bp-h-median { background: var(--navy); }
.bp-h-box.bench ~ .bp-h-median { background: #8A9BAB; }

/* Your result dot */
.bp-h-point {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    border: 2.5px solid var(--white);
    box-shadow: 0 0 0 2px rgba(0,191,179,0.25), 0 2px 6px rgba(0,0,0,0.12);
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: left 1.2s var(--ease-out-expo);
    left: 50%;
    animation: bpPointPulse 3s ease-in-out infinite;
}
@keyframes bpPointPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* Tooltip */
.bp-h-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    will-change: left;
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.6;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(5,28,44,0.20);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10;
    pointer-events: none;
}
.bp-h-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--navy);
}
.bp-h-tooltip .tip-row { display: flex; justify-content: space-between; gap: 16px; }
.bp-h-tooltip .tip-label { color: rgba(255,255,255,0.5); font-weight: 500; }
.bp-h-tooltip .tip-val { font-weight: 700; }

/* ═══ REPRESENTATIVENESS / REALITY CHECK (in-scroll) ═══ */
.rob-upsell-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.rob-subtitle { font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.65; color: var(--ink-2); margin-bottom: 28px; max-width: 440px; }
.rob-card { background: var(--white); border-radius: 16px; padding: 40px 36px; text-align: center; box-shadow: var(--shadow-lg); }
.repr-card { padding: 32px 28px 28px; }
.rob-card-top { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.rob-card-label { font-size: 11px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.08em; }
.rob-gauge-area { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.repr-gauge { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.repr-gauge .rob-gauge-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.repr-gauge-score { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-1); line-height: 1; }

/* Verdict pill */
.repr-verdict-pill {
    display: inline-block; padding: 5px 16px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 20px;
}

/* Divider */
.repr-divider { width: 100%; height: 1px; background: var(--warm); margin-bottom: 18px; }

/* Percentile position track */
.repr-position-wrap { margin-bottom: 20px; text-align: left; }
.repr-position-label { font-size: 11px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; text-align: center; }
.repr-position-track {
    position: relative; width: 100%; height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, rgba(5,28,44,0.06) 0%, rgba(5,28,44,0.12) 50%, rgba(5,28,44,0.06) 100%);
    margin-bottom: 6px;
}
.repr-position-fill { display: none; }
.repr-position-marker {
    position: absolute; top: -6px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    left: 50%;
}
.repr-marker-pip {
    width: 20px; height: 20px; border-radius: 50%; background: var(--white);
    border: 3px solid var(--navy); box-shadow: var(--shadow-sm);
}
.repr-marker-label {
    font-size: 11px; font-weight: 700; color: var(--navy); margin-top: 4px;
    background: var(--white); padding: 1px 8px; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.repr-position-ends {
    display: flex; justify-content: space-between;
    font-size: 10px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.04em;
}

/* Stats row (3 mini stats) */
.repr-stats-row {
    display: flex; align-items: center; justify-content: center; gap: 0;
    background: var(--warm); border-radius: 10px; padding: 14px 8px; margin-bottom: 16px;
}
.repr-stat { flex: 1; text-align: center; }
.repr-stat-label { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.repr-stat-value { font-size: 15px; font-weight: 800; color: var(--ink-1); letter-spacing: -0.02em; }
.repr-stat-divider { width: 1px; height: 32px; background: rgba(0,0,0,0.08); flex-shrink: 0; }

/* Context sentence */
.repr-context { font-size: 12px; color: var(--ink-3); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* Card blur overlay (free users) */
.repr-card { position: relative; overflow: hidden; }
.repr-card-blur {
    display: none; position: absolute; inset: 0; z-index: 3;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.5); border-radius: 16px;
}
.repr-lock-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; background: var(--white); border-radius: 50%;
    box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
}
.repr-card.is-locked .repr-card-blur { display: block; }

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Upgrade CTA (free users) */
.repr-upgrade-cta { margin-top: 24px; }
.repr-cta-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
    background: var(--navy); color: var(--white); border: none; border-radius: 8px;
    font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.repr-cta-btn:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(5,28,44,0.2); }

/* Premium hint (premium users) */
.repr-premium-hint {
    display: flex; align-items: center; gap: 10px; margin-top: 24px;
    font-size: 13px; color: var(--ink-3); font-weight: 500; line-height: 1.5;
}

/* Left column data rows */
.repr-data-rows { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.repr-data-row { display: flex; align-items: center; gap: 14px; }
.repr-data-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.repr-data-content { display: flex; flex-direction: column; gap: 2px; }
.repr-data-label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
