/* ═══════════════════════════════════════════════
   RESULTS — Verdict (grade, takeaways, config)
   ═══════════════════════════════════════════════ */

/* ═══ VERDICT — REDESIGNED v3 ═══ */

/* Section 1: Hero — Editorial */
.verdict-hero {
    /* Inherits from .dark-hero-section */
    min-height: auto;
    padding: calc(var(--header-h) + 64px) var(--section-px) 72px;
}
.verdict-hero-ambient {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0,191,179,0.07) 0%, rgba(0,191,179,0.02) 30%, transparent 60%);
    pointer-events: none;
    animation: ambientBreathe 6s ease-in-out infinite;
    transition: background 0.8s ease;
}
.verdict-hero-ambient.warn {
    background: radial-gradient(circle, rgba(251,191,36,0.07) 0%, rgba(251,191,36,0.02) 30%, transparent 60%);
}
.verdict-hero-ambient.poor {
    background: radial-gradient(circle, rgba(248,113,113,0.07) 0%, rgba(248,113,113,0.02) 30%, transparent 60%);
}
@keyframes ambientBreathe {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.verdict-hero-inner {
    /* Inherits from .dark-hero-inner */
    max-width: 920px;
}
.verdict-hero-tag {
    /* Inherits from .dark-hero-tag */
    margin-bottom: 32px;
}

/* Overall Score — big number above grade word */
.verdict-score-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}
.verdict-score-number {
    font-family: var(--sans);
    font-size: clamp(56px, 10vw, 88px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--teal);
    font-variant-numeric: tabular-nums;
}
.verdict-score-max {
    font-family: var(--sans);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    letter-spacing: -0.02em;
}
/* Score color variants — 5 tiers */
.verdict-score-wrap.grade-vstrong  .verdict-score-number { color: var(--teal); }
.verdict-score-wrap.grade-strong   .verdict-score-number { color: var(--teal); opacity: 0.85; }
.verdict-score-wrap.grade-moderate .verdict-score-number { color: #94d5d0; }
.verdict-score-wrap.grade-mixed    .verdict-score-number { color: #fbbf24; }
.verdict-score-wrap.grade-weak     .verdict-score-number { color: #f87171; }

/* Grade Word — the cinematic centerpiece */
.verdict-grade-word-wrap {
    margin-bottom: 0;
    line-height: 1;
}
.verdict-grade-word {
    font-family: var(--serif);
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(255,255,255,0.70);
    display: inline-block;
    opacity: 0;
    filter: blur(16px);
    transform: scale(0.92);
    animation: none;
}
.verdict-grade-word.revealed {
    animation: wordReveal 1.2s var(--ease-out-expo) forwards;
}
@keyframes wordReveal {
    0%   { opacity: 0; filter: blur(16px); transform: scale(0.92); }
    60%  { opacity: 1; filter: blur(2px);  transform: scale(1.01); }
    100% { opacity: 1; filter: blur(0);    transform: scale(1); }
}
/* Color variants for grade word glow — 5 tiers */
.verdict-grade-word.grade-vstrong {
    text-shadow: 0 0 80px rgba(0,191,179,0.25), 0 0 160px rgba(0,191,179,0.08);
}
.verdict-grade-word.grade-strong {
    text-shadow: 0 0 80px rgba(0,191,179,0.18), 0 0 160px rgba(0,191,179,0.06);
}
.verdict-grade-word.grade-moderate {
    text-shadow: 0 0 80px rgba(148,213,208,0.18), 0 0 160px rgba(148,213,208,0.06);
}
.verdict-grade-word.grade-mixed {
    text-shadow: 0 0 80px rgba(251,191,36,0.20), 0 0 160px rgba(251,191,36,0.06);
}
.verdict-grade-word.grade-weak {
    text-shadow: 0 0 80px rgba(248,113,113,0.20), 0 0 160px rgba(248,113,113,0.06);
}

/* Accent Line */
.verdict-accent-line {
    width: 0;
    height: 2px;
    background: var(--teal);
    margin: 24px auto 28px;
    border-radius: 1px;
    transition: width 0.8s var(--ease-out-expo);
    opacity: 0.5;
}
.verdict-accent-line.vis { width: 60px; }

/* Verdict Statement (serif, below grade word) */
.verdict-statement {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
    max-width: 620px;
}
.verdict-statement em {
    font-style: italic;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* Hero footer group */
.verdict-hero-sub {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin: 0 auto 4px;
}

/* Config Strip */
.verdict-config-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 44px auto 12px;
}
.verdict-config-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Radar Chart — strategy DNA
   The outer wrapper is oversized to give room for labels outside the chart.
   The canvas sits centered inside at a fixed size. Labels are positioned
   relative to the wrapper using % coordinates computed in JS. */
.verdict-radar-wrap {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 40px auto 0;
}
.verdict-radar-wrap canvas {
    display: block;
    position: absolute;
    /* Center a 260×260 canvas inside the 440×440 wrapper */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px !important;
    height: 260px !important;
}

/* HTML dimension labels positioned around the radar */
.verdict-radar-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.verdict-radar-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
.verdict-radar-label-name {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.50);
    white-space: nowrap;
    transition: color 0.3s var(--ease);
}
.verdict-radar-label-val {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.85);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s var(--ease);
}
.verdict-radar-label.positive .verdict-radar-label-val { color: var(--teal); }
.verdict-radar-label.negative .verdict-radar-label-val { color: #f87171; }
.verdict-radar-label.neutral  .verdict-radar-label-val { color: #fbbf24; }

/* Radar reveal animation — use scale on wrapper, labels fade in separately */
.verdict-radar-wrap {
    opacity: 0;
    transition: opacity 0.9s var(--ease-out-expo);
}
.verdict-radar-wrap.revealed {
    opacity: 1;
}
.verdict-radar-label {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}
.verdict-radar-wrap.revealed .verdict-radar-label {
    opacity: 1;
}
/* Stagger label reveals */
.verdict-radar-label:nth-child(1) { transition-delay: 0.5s; }
.verdict-radar-label:nth-child(2) { transition-delay: 0.6s; }
.verdict-radar-label:nth-child(3) { transition-delay: 0.7s; }
.verdict-radar-label:nth-child(4) { transition-delay: 0.8s; }
.verdict-radar-label:nth-child(5) { transition-delay: 0.9s; }

.verdict-takeaways-disclaimer {
    font-size: 10px;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin: 0;
}

/* ═══ Radar + Insight Boxes layout ═══ */
.verdict-radar-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 48px auto 0;
    max-width: 1040px;
}
.verdict-insight-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 230px;
    align-self: stretch;
    padding-top: 20px;
    padding-bottom: 40px;
}
/* Efficiency box: bottom-left, aligned with Efficiency label (~75% down the radar) */
.verdict-insight-bl {
    flex: 0 0 230px;
    align-self: flex-end;
    margin-bottom: 40px;
}
.verdict-insight-box {
    width: 230px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 20px 16px;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.verdict-insight-box.vis {
    opacity: 1;
    transform: translateY(0);
}
.verdict-insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.verdict-insight-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.verdict-insight-dot.green  { background: var(--green); box-shadow: 0 0 6px rgba(5,150,105,0.4); }
.verdict-insight-dot.yellow { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.verdict-insight-dot.red    { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.4); }
.verdict-insight-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
}
.verdict-insight-score {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}
.verdict-insight-text {
    font-size: 12.5px;
    font-weight: 450;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* Radar responsive */
@media (max-width: 768px) {
    .verdict-radar-section { flex-direction: column; align-items: center; gap: 20px; }
    .verdict-insight-bl { align-self: center; margin-bottom: 0; order: 3; }
    .verdict-radar-wrap { order: 1; width: 340px; height: 340px; }
    .verdict-insight-col-right { order: 2; flex: none; width: 100%; max-width: 340px; align-items: center; padding: 0; }
    .verdict-insight-box { width: 100%; max-width: 340px; }
    .verdict-radar-wrap canvas { width: 200px !important; height: 200px !important; }
    .verdict-radar-label-name { font-size: 9px; }
    .verdict-radar-label-val { font-size: 14px; }
    .verdict-hero { padding-left: var(--section-px); padding-right: var(--section-px); }
}

/* Hero action buttons */
.verdict-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 0;
}
.verdict-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
}
.verdict-action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Primary — teal pill, stands out */
.verdict-action-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(0,191,179,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.verdict-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,191,179,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    background: #00c4b8;
}
.verdict-action-primary svg { opacity: 0.9; }

/* Outline — subtle glass on dark bg */
.verdict-action-outline {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
}
.verdict-action-outline:hover {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}
.verdict-action-outline svg { opacity: 0.5; }
.verdict-action-outline:hover svg { opacity: 0.8; }

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

