/* Harmony Report — scoped styles.
   All selectors are prefixed with .report-page to prevent bleed into
   palette or age-estimator pages. */

/* ── Page layout ─────────────────────────────────────────────────── */
.report-page {
    padding-top: calc(6rem + var(--banner-height, 0px));
    min-height: 100vh;
}

.report-hero {
    width: 100%;
    padding: 2rem 1rem 3rem;
    display: flex;
    justify-content: center;
}

.report-hero .hero-inner {
    width: 100%;
    max-width: 660px;
    text-align: center;
}

.report-hero h1 .ai {
    color: #ffd700;
}

/* ── Status banners ───────────────────────────────────────────────── */
.report-status {
    margin: 1rem 0;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.report-status.info {
    background: rgba(102, 126, 234, 0.1);
    color: #4c5fa8;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.report-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #c53030;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.report-status.success {
    background: rgba(34, 197, 94, 0.12);
    color: #16653a;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* ── Payment-finalizing banner (checkout=success polling state) ───── */
.report-status-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #4c5fa8;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-size: 0.95rem;
    font-weight: 500;
}

.report-status-banner.report-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #c53030;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-spinner {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    flex-shrink: 0;
    animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

/* ── Results container ────────────────────────────────────────────── */
.report-results {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Free-preview card ────────────────────────────────────────────── */
.report-preview-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.report-preview-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.report-summary-text {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.report-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    color: #4c5fa8;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ── Metric preview row ───────────────────────────────────────────── */
.harmony-metric-preview {
    background: rgba(102, 126, 234, 0.06);
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid #667eea;
}

.harmony-metric-preview .metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667eea;
    margin-bottom: 0.2rem;
}

.harmony-metric-preview .metric-value {
    font-size: 1.05rem;
    color: #1e293b;
    line-height: 1.5;
}

/* ── Harmony Radar (metric bars, full report) ─────────────────────── */
.harmony-radar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.harmony-radar-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.harmony-radar-item .metric-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.harmony-radar-item .metric-explanation {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}

/* ── Four-week plan ───────────────────────────────────────────────── */
.four-week-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.week-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.875rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #667eea;
}

.week-card .week-number {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #667eea;
}

.week-card .week-focus {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0.25rem 0 0.5rem;
}

.week-card ul {
    padding-left: 1.2rem;
    margin: 0;
}

.week-card li {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* ── Product recommendations ──────────────────────────────────────── */
.product-recs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.product-rec-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    padding: 0.875rem 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-rec-item .rec-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #764ba2;
    margin-bottom: 0.15rem;
}

.product-rec-item .rec-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.product-rec-item .rec-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* ── Paywall card ─────────────────────────────────────────────────── */
.paywall-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
    margin-bottom: 1.5rem;
}

.paywall-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.paywall-card .paywall-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.paywall-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.paywall-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #334155;
}

.paywall-features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.paywall-price-block {
    margin: 1.5rem 0 1rem;
}

.paywall-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
}

.paywall-price-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.paywall-tier-message {
    font-size: 0.92rem;
    color: #374151;
    font-weight: 500;
    margin: 0.25rem auto 1rem;
    max-width: 34rem;
    line-height: 1.5;
}

.paywall-guarantee {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.paywall-age-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(102, 126, 234, 0.06);
    border-radius: 0.625rem;
    padding: 0.75rem 0.9rem;
    margin: 1rem 0;
    text-align: left;
    font-size: 0.85rem;
    color: #334155;
}

.paywall-age-check input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: #667eea;
}

.paywall-buy-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.paywall-buy-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(102, 126, 234, 0.45);
}

.paywall-buy-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.paywall-disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ── Report page medical disclaimer ─────────────────────────────── */
.report-medical-disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    padding: 1rem 1.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Cross-link promo ─────────────────────────────────────────────── */
.harmony-report-promo {
    margin-top: 1.5rem;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: 1rem;
    border: 1px solid rgba(102,126,234,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.harmony-report-promo p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
    flex: 1;
}

.harmony-report-promo a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.harmony-report-promo a:hover {
    color: #764ba2;
}

/* ══════════════════════════════════════════════════════════════════
   Landing content sections — unified design system.
   Every below-hero section shares ONE container width, vertical rhythm,
   heading style, and card language so the page reads as one cohesive
   layout instead of a stack of differently sized blocks.
   ══════════════════════════════════════════════════════════════════ */

/* Shared section shell: identical width + horizontal padding for all.
   Also resets the glassmorphism card styling that .comparison inherits
   from the shared style.css so it behaves like the other sections. */
.report-page .report-steps,
.report-page .comparison,
.report-page .report-compare,
.report-page .report-faq,
.report-page .report-final-cta {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.75rem 1.5rem 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
}

.report-page .comparison:hover {
    transform: none;
    box-shadow: none;
}

/* Consistent section headings across every section */
.report-page .report-steps > h2,
.report-page .comparison > h2,
.report-page .report-compare > h2,
.report-page .report-faq > h2,
.report-page .report-final-cta > h2 {
    text-align: center;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin: 0 auto 2rem;
    max-width: 760px;
}

/* Consistent supporting / lead paragraphs */
.report-page .report-compare-intro,
.report-page .report-compare-close {
    max-width: 720px;
    margin: -1rem auto 2rem;
    text-align: center;
    color: #475569;
    line-height: 1.65;
}

.report-page .report-compare-close {
    margin: 2rem auto 0;
}

/* Unified card language shared by steps, feature cards, and FAQ items */
.report-page .report-step,
.report-page .comparison-box,
.report-page .report-faq-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(102, 126, 234, 0.14);
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.report-page .report-step:hover,
.report-page .comparison-box:hover,
.report-page .report-faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

/* ── How it works steps ───────────────────────────────────────────── */
.report-page .report-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.report-page .report-step {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.report-page .report-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.report-page .report-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    color: #1e293b;
}

.report-page .report-step p {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

/* ── Feature cards (What's in Your Full Report) ───────────────────── */
.report-page .comparison-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    max-width: none;
}

.report-page .comparison-box {
    padding: 1.75rem 1.4rem;
    text-align: center;
}

.report-page .comparison-box span {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.report-page .comparison-box h3 {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.report-page .comparison-box p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* ── Comparison table ─────────────────────────────────────────────── */
.report-page .report-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.14);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.report-page .report-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.85);
    min-width: 640px;
}

.report-page .report-compare-table th,
.report-page .report-compare-table td {
    padding: 1rem 1.15rem;
    text-align: left;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    vertical-align: top;
}

.report-page .report-compare-table thead th {
    font-weight: 700;
    color: #1e293b;
    background: rgba(102, 126, 234, 0.08);
}

.report-page .report-compare-table thead th:nth-child(2) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #4c3a8c;
}

.report-page .report-compare-table tbody th[scope="row"] {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.report-page .report-compare-table td.report-compare-highlight {
    font-weight: 600;
    color: #4c3a8c;
    background: rgba(102, 126, 234, 0.06);
}

.report-page .report-compare-table tbody tr:last-child th,
.report-page .report-compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── FAQ (always visible, no accordion JS on this page) ───────────── */
.report-page .report-faq-item {
    padding: 1.25rem 1.4rem;
    text-align: left;
}

.report-page .report-faq-item + .report-faq-item {
    margin-top: 1rem;
}

.report-page .report-faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    color: #1e293b;
}

.report-page .report-faq-item p {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}

/* ── Final CTA band ───────────────────────────────────────────────── */
.report-page .report-final-cta {
    margin-top: 4rem;
    margin-bottom: 3.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 1.25rem;
}

.report-page .report-final-cta > h2 {
    margin-bottom: 0.75rem;
}

.report-page .report-final-cta p {
    color: #475569;
    line-height: 1.65;
    margin: 0 auto 1.75rem;
    max-width: 560px;
}

.report-page .report-final-cta-btn {
    display: inline-block;
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .report-page .report-steps-grid,
    .report-page .comparison-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .report-preview-card,
    .paywall-card {
        padding: 1.5rem 1.2rem;
    }

    .four-week-plan {
        grid-template-columns: 1fr;
    }

    .harmony-report-promo {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-page .report-steps,
    .report-page .comparison,
    .report-page .report-compare,
    .report-page .report-faq,
    .report-page .report-final-cta {
        padding-top: 2.75rem;
    }

    .report-page .report-final-cta {
        padding: 2.25rem 1.5rem;
    }

    .report-page .report-steps-grid,
    .report-page .comparison-container {
        grid-template-columns: 1fr;
    }
}

/* ── Harmony Report v2 ─────────────────────────────────────────────── */
.report-page .report-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
@media (max-width: 860px) {
    .report-page .report-hero-grid { grid-template-columns: 1fr; }
}
.report-page .report-hero-photo #annotated-photo-container { text-align: center; }
.report-page .annotated-photo-canvas {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    border-radius: 0.875rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
    .report-page .annotated-photo-canvas { max-height: 420px; }
}
.report-page .photo-privacy-note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
}
.report-page .overlay-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #475569;
}
.report-page .overlay-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.report-page .overlay-legend-swatch {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    display: inline-block;
}

/* Face shape */
.report-page .face-shape-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}
.report-page .face-shape-glyph-wrap { color: #667eea; display: inline-flex; }
.report-page .face-shape-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
}
.report-page .face-shape-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
}
.report-page .face-shape-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0.9rem;
}

/* Radar */
.report-page .radar-card { text-align: center; }
.report-page .radar-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}
.report-page .radar-caption {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0.5rem;
}
.report-page .radar-footnote {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}
.report-page .radar-preview-wrap { margin-top: 1.1rem; text-align: center; }
.pdf-modules-notice {
    font-size: 0.875rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}
.link-btn {
    background: none;
    border: none;
    color: #4338ca;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

/* Regions + metric cards */
.report-page .measurement-count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4338ca;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.report-page .region-block {
    margin: 1.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.report-page .region-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}
.report-page .region-summary {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}
.report-page .region-tag-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.report-page .region-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0e7490;
    background: rgba(56, 189, 248, 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}
.report-page .region-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.8rem;
}
.report-page .metric-card-v2 {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 0.75rem;
    padding: 0.8rem 0.9rem;
}
.report-page .metric-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.report-page .metric-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}
.report-page .metric-card-prox {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.report-page .metric-card-implication {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 0.55rem;
}

/* Range bands */
.report-page .metric-band-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}
.report-page .metric-band-ref {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(102, 126, 234, 0.35);
    border-radius: 999px;
}
.report-page .metric-band-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.report-page .metric-band-dot.status-within { background: #22c55e; }
.report-page .metric-band-dot.status-above { background: #f59e0b; }
.report-page .metric-band-dot.status-below { background: #ef4444; }
.report-page .metric-band-dot.status-common_variation { background: #6366f1; }
.report-page .metric-band-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
}
.report-page .metric-band-value { font-weight: 700; color: #1e293b; }
.report-page .metric-band-status.status-within { color: #16a34a; font-weight: 600; }
.report-page .metric-band-status.status-above { color: #b45309; font-weight: 600; }
.report-page .metric-band-status.status-below { color: #dc2626; font-weight: 600; }
.report-page .metric-band-status.status-common_variation { color: #4f46e5; font-weight: 600; }

/* Asymmetry breakdown */
.report-page .asym-breakdown { margin-top: 1rem; }
.report-page .asym-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.report-page .asym-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
}
.report-page .asym-bar-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.report-page .asym-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #667eea, #f093fb);
}
.report-page .asym-value { white-space: nowrap; font-weight: 600; }

/* Collapse the hero grid to one column while the photo card is hidden */
.report-page .report-hero-grid:has(#annotated-photo-card[style*="display:none"]),
.report-page .report-hero-grid:has(#annotated-photo-card[style*="display: none"]) {
    grid-template-columns: 1fr;
}

/* ── v3: content expanders, caveats, interactions, framing note ────── */
.metric-expander {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 0.4rem;
}
.metric-expander summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6d28d9;
}
.metric-expander summary:hover { color: #5b21b6; }
.metric-expander-body {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #475569;
}
.metric-expander-body p { margin: 0 0 0.5rem; }
.metric-card-caveat {
    font-size: 0.8rem;
    color: #92400e;
    background: #fef3c7;
    border-radius: 0.5rem;
    padding: 0.45rem 0.65rem;
    margin: 0.4rem 0;
}
.metric-low-confidence { opacity: 0.92; border-style: dashed; }
.report-caveat-banner {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0;
}
.interactions-list {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}
.interactions-list li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: #334155;
}
.report-framing-note {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    max-width: 640px;
    margin: 1.5rem auto 0.5rem;
    line-height: 1.6;
}

/* ── Harmony Report v4: layers, headline moves, playbook, share ───── */
.report-layer-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2.2rem 0 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headline-moves { list-style: none; margin: 0; padding: 0; counter-reset: hmove; }
.headline-move {
    counter-increment: hmove;
    display: flex; flex-direction: column; gap: 0.2rem;
    padding: 0.9rem 1rem 0.9rem 3.2rem; position: relative;
    border-radius: 0.75rem; background: rgba(99, 102, 241, 0.06);
    margin-bottom: 0.7rem;
}
.headline-move::before {
    content: counter(hmove);
    position: absolute; left: 1rem; top: 0.95rem;
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
}
.headline-move-action { font-weight: 700; }
.headline-move-helps { font-size: 0.9rem; color: #64748b; }
.headline-moves-note { font-size: 0.85rem; color: #94a3b8; margin-top: 0.5rem; }

.locked-blur { filter: blur(6px); user-select: none; pointer-events: none; }
.locked-block-title { margin: 1.4rem 0 0.7rem; font-size: 1.1rem; }
.locked-block-note { font-size: 0.9rem; color: #64748b; }
.playbook-module-lock { margin-left: auto; }

.report-share-row {
    display: flex; align-items: center; gap: 0.8rem;
    margin: 1rem 0 1.5rem; flex-wrap: wrap;
}
.report-share-note { font-size: 0.85rem; color: #64748b; }

/* Playbook section */
.playbook-intro { color: #64748b; margin-bottom: 1.2rem; }
.playbook-modules { display: grid; gap: 1rem; }
.playbook-module {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem; padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.6);
}
.playbook-module-hidden { display: none; }
.playbook-module-head {
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem;
}
.playbook-module-icon { font-size: 1.3rem; }
.playbook-module-promise { color: #64748b; font-size: 0.95rem; margin-bottom: 0.8rem; }
.playbook-show-all {
    background: none; border: none; color: #6366f1;
    font-weight: 600; cursor: pointer; text-decoration: underline;
    padding: 0.3rem 0;
}
.playbook-error-note { color: #dc2626; font-size: 0.9rem; margin-top: 0.8rem; }

.playbook-suggestion {
    padding: 0.9rem 0; border-top: 1px solid rgba(100, 116, 139, 0.15);
}
.playbook-suggestion-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.playbook-suggestion-num {
    width: 1.5rem; height: 1.5rem; border-radius: 50%; flex-shrink: 0;
    background: rgba(99, 102, 241, 0.15); color: #6366f1;
    font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.playbook-suggestion-name { font-weight: 700; }
.playbook-why { color: #475569; font-size: 0.95rem; margin: 0.3rem 0 0.5rem; }
.playbook-howto { margin: 0.3rem 0 0.6rem 1.2rem; font-size: 0.92rem; color: #475569; }
.playbook-askforit {
    margin: 0.6rem 0; padding: 0.7rem 1rem;
    border-left: 3px solid #a855f7; background: rgba(168, 85, 247, 0.06);
    border-radius: 0 0.6rem 0.6rem 0; font-style: italic; color: #334155;
}
.playbook-askforit-label {
    display: block; font-style: normal; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #a855f7; font-weight: 700; margin-bottom: 0.2rem;
}
.playbook-share-card-btn {
    background: none; border: 1px solid rgba(99, 102, 241, 0.35);
    color: #6366f1; border-radius: 0.6rem; padding: 0.35rem 0.8rem;
    font-size: 0.85rem; cursor: pointer;
}
.playbook-avoid {
    margin-top: 0.9rem; padding: 0.7rem 1rem; border-radius: 0.75rem;
    background: rgba(220, 38, 38, 0.06); font-size: 0.92rem; color: #475569;
}
.playbook-avoid-label { color: #dc2626; font-weight: 700; margin-right: 0.3rem; }
.playbook-profile-note, .playbook-palette-note { font-size: 0.85rem; color: #64748b; margin-bottom: 0.6rem; }

/* Style profile */
.style-profile-panel {
    border: 1px solid rgba(99, 102, 241, 0.25); border-radius: 1rem;
    padding: 1.2rem 1.3rem; margin-bottom: 1.3rem;
    background: rgba(99, 102, 241, 0.04);
}
.style-profile-optional { font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-left: 0.5rem; }
.style-profile-q { margin: 0.9rem 0; }
.style-profile-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.style-profile-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.style-profile-options label {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.8rem; border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 999px; font-size: 0.9rem; cursor: pointer;
    background: #fff;
}
.style-profile-options label:has(input:checked) {
    border-color: #6366f1; background: rgba(99, 102, 241, 0.1); color: #4338ca;
}
.style-profile-actions { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.style-profile-edit-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.style-profile-edit-link {
    background: none; border: none; color: #6366f1; font-weight: 600;
    cursor: pointer; text-decoration: underline; padding: 0;
}
.style-profile-edit-note { font-size: 0.82rem; color: #94a3b8; }

/* Palette card */
.playbook-palette-linked {
    padding: 0.8rem 1rem; border-radius: 0.75rem; margin-bottom: 1.2rem;
    background: rgba(16, 185, 129, 0.08); font-size: 0.95rem;
}
.playbook-palette-upsell {
    padding: 1rem 1.1rem; border-radius: 0.9rem; margin-bottom: 1.2rem;
    border: 1px dashed rgba(99, 102, 241, 0.4);
    display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.95rem;
}
.playbook-palette-upsell-actions { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.playbook-palette-token-toggle {
    background: none; border: none; color: #6366f1; cursor: pointer;
    font-size: 0.85rem; text-decoration: underline; padding: 0;
}
.playbook-palette-token-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.playbook-palette-token-row input {
    flex: 1; min-width: 200px; padding: 0.5rem 0.8rem;
    border: 1px solid rgba(100, 116, 139, 0.35); border-radius: 0.6rem;
}

/* Layer 3 collapsed regions */
details.region-collapse { border-top: 1px solid rgba(100, 116, 139, 0.15); padding: 0.4rem 0; }
.region-collapse-summary {
    display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
    cursor: pointer; list-style: none; padding: 0.7rem 0;
}
.region-collapse-summary::-webkit-details-marker { display: none; }
.region-summary-inline { font-size: 0.9rem; color: #64748b; flex: 1; min-width: 200px; }
.region-collapse-hint::after { content: '▾'; color: #94a3b8; }
details.region-collapse[open] .region-collapse-hint::after { content: '▴'; }
.region-collapse-body { padding-bottom: 0.8rem; }

/* Eye shape hero block */
.eye-shape-block { margin-top: 1rem; }
.eye-shape-name { text-transform: capitalize; }
.eye-shape-spacing { font-size: 0.85rem; color: #64748b; font-weight: 500; }

/* PDF photo toggle */
.pdf-photo-toggle {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.92rem; color: #475569; cursor: pointer;
}

/* ── Mobile optimization (report result + landing) ────────────────── */
.report-page .report-results { padding-top: 5rem; }

.report-page .report-compare-scroll,
.report-page .report-compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
    .report-page { padding-top: calc(4.5rem + var(--banner-height, 0px)); }

    .report-results { padding: 0 0.9rem 3rem; }
    .report-page .report-results { padding-top: 4rem; }
    .report-page .radar-wrap svg { width: 100%; height: auto; }

    .report-preview-card { padding: 1.4rem 1.1rem; border-radius: 1rem; }
    .report-preview-card h2 { font-size: 1.15rem; }
    .report-layer-title { font-size: 1.3rem; margin: 1.8rem 0 0.8rem; }

    /* Hero / glance */
    .report-page .face-shape-name { font-size: 1.15rem; }
    .report-page .annotated-photo-canvas { max-height: 360px; }
    .report-page .measurement-count {
        display: block;
        margin: 0.4rem 0 0;
        width: fit-content;
    }

    /* Headline moves */
    .headline-move { padding: 0.8rem 0.8rem 0.8rem 2.9rem; }
    .headline-move::before { left: 0.8rem; }

    /* Share row: full-width tappable buttons */
    .report-share-row { flex-direction: column; align-items: stretch; }
    .report-share-row .action-btn { width: 100%; text-align: center; }
    .report-share-note { text-align: center; }

    /* Playbook */
    .playbook-module { padding: 0.95rem 0.9rem; }
    .playbook-suggestion-head { flex-wrap: wrap; }
    .playbook-share-card-btn { margin-left: 2.1rem; }
    .playbook-howto { margin-left: 1rem; }
    .style-profile-panel { padding: 1rem 0.9rem; }
    .playbook-palette-token-row input { min-width: 0; }

    /* Measurements */
    .report-page .region-metrics { grid-template-columns: 1fr; }
    .report-page .region-collapse-summary { padding: 0.85rem 0; }
    .report-page .region-summary-inline { min-width: 100%; order: 3; }
    .report-page .metric-card-head { flex-wrap: wrap; }
    .report-page .asym-row {
        grid-template-columns: 72px 1fr;
        row-gap: 0.15rem;
    }
    .report-page .asym-value {
        grid-column: 2;
        white-space: normal;
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Paywall + status banners */
    .paywall-price { font-size: 1.85rem; }
    .report-status-banner { align-items: flex-start; font-size: 0.9rem; }
    .payment-spinner { margin-top: 0.15rem; }

    /* Action buttons at page bottom */
    .report-page .action-buttons { flex-direction: column; }
    .report-page .action-buttons .action-btn { width: 100%; text-align: center; }

    /* PDF block */
    .pdf-download-block a#pdf-download-btn { width: 100%; box-sizing: border-box; }

    /* Comparison table → stacked cards (no horizontal scroll on phones) */
    .report-page .report-compare-scroll {
        overflow-x: visible;
        border: none;
        box-shadow: none;
        border-radius: 0;
        background: none;
    }

    .report-page .report-compare-table {
        min-width: 0;
        width: 100%;
        background: none;
        display: block;
    }

    /* Visually hide headers but keep them for screen readers */
    .report-page .report-compare-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .report-page .report-compare-table tbody {
        display: block;
    }

    .report-page .report-compare-table tbody tr {
        display: block;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(102, 126, 234, 0.14);
        border-radius: 1rem;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
        padding: 0.35rem 1rem 0.85rem;
        margin-bottom: 0.9rem;
        overflow: hidden;
    }

    .report-page .report-compare-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .report-page .report-compare-table tbody th[scope="row"] {
        display: block;
        white-space: normal;
        padding: 0.75rem 0 0.5rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    }

    .report-page .report-compare-table td {
        display: block;
        padding: 0.55rem 0;
        font-size: 0.88rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .report-page .report-compare-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .report-page .report-compare-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        margin-bottom: 0.15rem;
    }

    .report-page .report-compare-table td.report-compare-highlight {
        background: rgba(102, 126, 234, 0.06);
        margin: 0 -1rem;
        padding: 0.55rem 1rem;
    }

    .report-page .report-compare-table td.report-compare-highlight::before {
        color: #4c3a8c;
    }
}

@media (max-width: 380px) {
    .report-results { padding: 0 0.7rem 2.5rem; }
    .report-preview-card { padding: 1.2rem 0.9rem; }
}
