/* ═══════════════════════════════════════════════
   RESULTS — Hero (strategy results, alloc, PnL, metrics)
   ═══════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.hero { min-height: 100vh; background: linear-gradient(170deg, #F3F2EE 0%, var(--warm-soft) 50%, var(--white) 100%); padding: 120px var(--section-px) 80px; padding-top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; position: relative; }
.hero-compact { min-height: auto; padding: calc(var(--header-h) + 48px) var(--section-px) 64px; }
.hero-header { max-width: var(--content-max-w); margin: 0 auto 56px; width: 100%; }
.hero-compact .hero-header { margin-bottom: 0; }
.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; }
.hero-tag::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.hero-title { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 12px; }
.hero-title em { font-style: italic; color: var(--ink-3); font-weight: 500; }
.hero-subtitle { font-size: 16px; line-height: 1.7; color: var(--ink-3); max-width: 520px; }

.hero-grid { max-width: var(--content-max-w); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; flex: 1; }

/* ═══ PARAMS PANEL ═══ */
.params-panel { padding-top: 8px; }
.params-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 24px; }
.param-list { display: flex; flex-direction: column; }
.param-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.param-item:first-child { border-top: 1px solid var(--border); }
.param-item:last-child { border-bottom: none; }
.param-key { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.param-val { font-size: 14px; font-weight: 600; color: var(--ink); }

/* Allocation */
.alloc-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.alloc-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 14px; }
.alloc-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.alloc-seg { border-radius: 3px; transition: width 1.2s var(--ease-out-expo); width: 0; }
.alloc-legend { display: flex; flex-direction: column; gap: 8px; }
.alloc-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alloc-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.alloc-name { color: var(--ink-3); font-weight: 500; flex: 1; }
.alloc-pct { font-weight: 700; color: var(--ink); }

/* ═══ RESULT CARD ═══ */
.result-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.result-main { padding: 40px 40px 32px; }
.pnl-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); margin-bottom: 8px; }
.pnl-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.pnl-number { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--green), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pnl-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--green-soft); border-radius: 20px; color: var(--green); font-size: 13px; font-weight: 700; }
.pnl-context { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* Waterfall Bars */
.waterfall-chart { padding: 28px 40px 24px; border-top: 1px solid var(--border); }
.waterfall-chart-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); margin-bottom: 20px; }
.waterfall-bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; max-width: 280px; margin: 0 auto; }
.mk-bar { display: flex; flex-direction: column; align-items: center; width: 110px; }
.mk-bar-val { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.mk-bar-fill { width: 100%; max-width: 80px; border-radius: 4px 4px 0 0; transition: height 1.4s var(--ease-out-expo); height: 0; }
.mk-bar-fill.invested { background: #D4D3CF; }
.mk-bar-fill.portfolio { background: var(--navy); }
.mk-bar-label { margin-top: 10px; font-size: 12px; color: var(--ink-3); font-weight: 500; text-align: center; }
.waterfall-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 30px; color: var(--ink-4); }

/* Metrics Strip */
.metrics-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.metric-cell { padding: 20px 24px; text-align: center; border-right: 1px solid var(--border); }
.metric-cell:last-child { border-right: none; }
.metric-value-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; }
.metric-val { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.metric-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.metric-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(5,150,105,0.35); }
.metric-dot.red { background: var(--red); box-shadow: 0 0 6px rgba(220,38,38,0.3); }
.metric-dot.neutral { background: var(--ink-4); box-shadow: 0 0 6px rgba(0,0,0,0.1); }
.metric-label { font-size: 11px; font-weight: 500; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }

/* Scroll Cue */
.scroll-cue { text-align: center; padding-top: 40px; max-width: var(--content-max-w); margin: auto auto 0; width: 100%; }
.scroll-cue span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-4); display: block; margin-bottom: 8px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
.scroll-cue svg { animation: float 2.5s ease-in-out infinite; }

/* ═══ SECTIONS ═══ */
.section { padding: 120px var(--section-px); position: relative; }
.section-inner { max-width: var(--content-max-w); margin: 0 auto; }
.bg-white { background: var(--white); }
.bg-warm { background: var(--warm); }
.bg-navy { background: var(--navy); color: var(--white); }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--teal); }
.section-title { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--ink-3); font-weight: 500; }
.section-text { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 520px; }

/* ═══ EVOLUTION CHART ═══ */
.section-evo { background: var(--white); padding-top: 120px; border-top: 1px solid var(--border); }
.evo-header { max-width: var(--content-max-w); margin: 0 auto; padding: 0 var(--section-px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 40px; }
.evo-stats { max-width: var(--content-max-w); margin: 0 auto; padding: 0 var(--section-px); display: flex; gap: 40px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.evo-stat-label { font-size: 11px; font-weight: 500; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.evo-stat-val { font-size: 20px; font-weight: 700; color: var(--ink); }
.evo-stat-val .teal { color: var(--teal); }
.evo-chart-wrap { width: 100%; height: 420px; }
.chart-legends { display: flex; gap: 6px; }
.cl-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink-4); background: transparent; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.cl-pill.on { background: var(--white); border-color: var(--border); color: var(--ink); font-weight: 600; }
.cl-pill .dot { width: 8px; height: 8px; border-radius: 2px; }

/* ═══ RESILIENCE STRIP ═══ */
.resilience-section { max-width: var(--content-max-w); margin: 0 auto; padding: 36px var(--section-px) 80px; }
.resilience-inner { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; padding: 24px 28px; background: var(--warm); border-radius: 14px; border: 1px solid var(--border); }
.resilience-tl-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-4); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.resilience-tl-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: 0.5; }
.resilience-timeline { position: relative; height: 8px; background: var(--warm-2); border-radius: 4px; }
.resilience-tl-zone { position: absolute; top: 0; height: 100%; background: rgba(220,38,38,0.18); border-radius: 3px; border-left: 2px solid rgba(220,38,38,0.4); transition: width 1.2s var(--ease-out-expo); }
.resilience-tl-labels { display: flex; justify-content: space-between; margin-top: 6px; }
.resilience-tl-labels span { font-size: 10px; color: var(--ink-4); font-weight: 500; }
.resilience-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.resilience-stat { text-align: center; padding: 14px 8px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm); }
.resilience-stat-val { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.resilience-stat-unit { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.resilience-stat-label { font-size: 10px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* ═══ BENCHMARKING ═══ */
.bench-header { margin-bottom: 56px; }
.bench-legend { display: flex; gap: 24px; margin-top: 24px; }
.bench-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.bench-legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.bench-legend-swatch.strategy { background: var(--navy); }
.bench-legend-swatch.msci { background: var(--msci); }
.bench-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); }
.bench-col { padding: 28px 20px; border-right: 1px solid var(--border); position: relative; transition: background 0.25s var(--ease); }
.bench-col:hover { background: var(--warm-soft); }
.bench-col:last-child { border-right: none; }
.bench-metric-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.bench-metric-desc { font-size: 11px; color: var(--ink-4); margin-bottom: 20px; min-height: 32px; }
.bench-multiplier-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.bench-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bench-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(5,150,105,0.3); }
.bench-dot.red { background: var(--red); box-shadow: 0 0 6px rgba(220,38,38,0.25); }
.bench-multiplier { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.bench-bars-wrap { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.bench-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bench-bar-val { font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; white-space: nowrap; }
.bench-bar-fill { width: 100%; border-radius: 3px 3px 0 0; transition: height 1.2s var(--ease-out-expo); height: 0; }
.bench-bar-fill.strategy { background: var(--navy); }
.bench-bar-fill.msci { background: var(--msci); }
/* Alpha & Beta insight strip */
.bench-ab-strip {
    display: flex; align-items: stretch;
    margin-top: 40px; padding: 28px 32px;
    background: var(--warm); border-radius: 14px;
    border: 1px solid var(--border);
}
.ab-card { flex: 1; }
.ab-divider {
    width: 1px; background: var(--border);
    margin: 0 32px; flex-shrink: 0;
}
.ab-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.ab-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-4);
}
.ab-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.ab-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(5,150,105,0.3); }
.ab-dot.red { background: var(--red); box-shadow: 0 0 6px rgba(220,38,38,0.25); }
.ab-value {
    font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--ink); line-height: 1.1; margin-bottom: 8px;
}
.ab-desc {
    font-size: 14px; color: var(--ink-3); line-height: 1.5;
    max-width: 400px;
}

/* Robustness CTA strip (premium only) */
.rob-cta-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    margin-top: 48px; padding: 28px 32px;
    background: linear-gradient(135deg, var(--navy), #0A2E44);
    border-radius: 14px;
    color: var(--white);
}
.rob-cta-text { flex: 1; }
.rob-cta-question {
    display: block;
    font-family: var(--serif); font-size: 20px; font-weight: 700;
    line-height: 1.3; margin-bottom: 6px;
}
.rob-cta-hint {
    display: block;
    font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5;
}
.rob-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px;
    background: var(--teal); color: var(--white);
    font-size: 14px; font-weight: 700; font-family: var(--sans);
    border: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
    box-shadow: 0 4px 16px rgba(0,191,179,0.3);
}
.rob-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,191,179,0.4);
}
.rob-cta-btn:active { transform: translateY(0) scale(0.98); }

.bench-summary { margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--border); }
.bench-summary-text { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.6; color: var(--ink-2); max-width: 640px; padding-left: 24px; border-left: 3px solid var(--teal); }

/* ═══ FOOTER ═══ */
.foot { background: var(--navy); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--section-px); }
.foot-text { font-size: 13px; color: rgba(255,255,255,0.3); }
.foot-text strong { color: rgba(255,255,255,0.6); font-weight: 600; }

/* ── 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;
    }
}
