/* ===== FOUNDATION ===== */
/* PREVIOUS PALETTE (dark forest) — kept for quick revert. To roll back, delete the
   active :root below and uncomment this block.
:root {
    --bg: #0c0e0c;
    --bg-gradient: linear-gradient(165deg, #0c0e0c 0%, #13181a 40%, #0f1314 70%, #0c0e0c 100%);
    --bg-warm: #101614;
    --text: #ebeae4;
    --text-secondary: #a0a39a;
    --text-muted: #62655d;
    --accent: #4a7c59;
    --accent-hover: #5c9170;
    --accent-warm: #c79c5a;
    --accent-tan: #8b6f47;
    --accent-clay: #b94e2f;
    --border: #1f2330;
    --border-light: #1a1e28;
    --surface: #14171f;
    --surface-hover: #191d27;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
*/
:root {
    /* Deep ocean + editorial gold — blue-black background, warm gold primary
       accent, burnt-sienna secondary. Think magazine cover on dark paper. */
    --bg: #0d1b20;
    --bg-gradient: linear-gradient(165deg, #0d1b20 0%, #142830 40%, #0f2028 70%, #0d1b20 100%);
    --bg-warm: #122530;
    --text: #e4efef;
    --text-secondary: #9fb0b4;
    --text-muted: #677378;
    --accent: #d8a158;          /* editorial gold — primary CTA + brand */
    --accent-hover: #e4b679;    /* lighter gold on hover */
    --accent-warm: #b86e3c;     /* burnt sienna — secondary warm, distinct from primary */
    --accent-tan: #9a6f48;      /* walnut — tertiary emphasis */
    --accent-clay: #c44b26;     /* deep red-orange — warnings (counterfeit, severity high) */
    --border: #2a4850;
    --border-light: #20363d;
    --surface: #17292f;
    --surface-hover: #1d333a;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAV BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(12, 15, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-screen.active {
    display: block;
    min-height: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    0% { opacity: 0; transform: translateY(100%); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-100%); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.anim-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.35s; }
.anim-d4 { animation-delay: 0.5s; }
.anim-d5 { animation-delay: 0.65s; }
.anim-d6 { animation-delay: 0.9s; }

/* ===== LANDING PAGE ===== */
.landing {
    width: 100%;
    max-width: 860px;
    padding: 120px 32px 100px;
    margin: 0 auto;
}

.landing-hero {
    text-align: center;
    margin-bottom: 80px;
    /* Fill the initial viewport so the gallery sits below the fold — user scrolls
       (or clicks the chevron) to reveal it. 60px nav bar + the 120px landing top
       padding eat ~180px, so subtracting that keeps the hero centered. */
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Scroll-down affordance at the base of the hero — tells the user there's more below. */
.hero-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, opacity 0.35s ease, transform 0.35s ease;
}
.hero-scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.92);
}
.hero-scroll-indicator:focus-visible {
    outline: 2px solid rgba(216, 161, 88, 0.7);
    outline-offset: 3px;
    border-radius: 6px;
}
.hero-scroll-chevron {
    animation: heroChevronBounce 2s ease-in-out infinite;
}
.hero-scroll-indicator.is-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
@keyframes heroChevronBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-chevron { animation: none; }
}

.hero-logo {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 24px;
    width: 100%;
    max-width: 860px;
}

.rotating-wrapper {
    display: block;
    position: relative;
    overflow: hidden;
    height: 1.25em;
    width: 100%;
}

.rotating-text {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
    color: var(--accent);
    font-style: italic;
    animation: rotateIn 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 44px;
    font-weight: 400;
}

/* ===== SEARCH BAR ===== */
.hero-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15), 0 0 0 3px rgba(216, 161, 88, 0.15);
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hero-search input {
    flex: 1;
    padding: 14px 0;
    font-size: 15px;
    font-family: var(--sans);
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-weight: 400;
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.hero-search button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--sans);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.hero-search button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.hero-search button:active {
    transform: translateY(0);
}

.hero-search button:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ===== MODEL SELECT ===== */
.model-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.model-select label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-select select {
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--sans);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.model-select select:focus {
    border-color: var(--accent);
}

/* ===== EXAMPLE CHIPS ===== */
.hero-examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.examples-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.example-chip {
    font-size: 13px;
    font-family: var(--sans);
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.example-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(216, 161, 88, 0.08);
}

/* ===== PREVIEW CARD ===== */
.landing-preview {
    text-align: center;
}

.preview-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.15);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; }

.preview-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
    font-weight: 500;
}

.preview-body {
    padding: 24px;
}

.preview-section {
    margin-bottom: 20px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.blind-spots-label { color: #e879f9; }
.motivations-label { color: #38bdf8; }
.objections-label { color: #fb923c; }

.preview-blind-spot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.preview-spot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.preview-spot-detail {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.preview-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 12px;
}

.preview-tag.opportunity {
    background: rgba(122, 158, 126, 0.12);
    color: #4ade80;
    border: 1px solid rgba(122, 158, 126, 0.25);
}

.preview-tag.overserved {
    background: rgba(185, 78, 47, 0.12);
    color: #b94e2f;
    border: 1px solid rgba(185, 78, 47, 0.25);
}

.preview-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.preview-bar-name {
    font-size: 11px;
    color: var(--text-secondary);
    width: 72px;
    flex-shrink: 0;
}

.preview-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.preview-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c4915a, #7a9c9a);
    border-radius: 3px;
}

.preview-objection {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 7px 10px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid transparent;
}

.preview-objection.high { border-left-color: #b94e2f; }
.preview-objection.medium { border-left-color: #b8874f; }
.preview-objection.low { border-left-color: var(--border); }

/* ===== LANDING SECTIONS ===== */
.landing-section {
    margin-bottom: 100px;
}

.landing-section-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}

.landing-section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    margin-top: 40px;
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.how-step {
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.how-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.how-step-title {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.how-step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-step-arrow {
    color: var(--text-muted);
    padding-top: 8px;
    flex-shrink: 0;
}

/* Features Grid — 3 columns now that Segments was demoted, so all three cards
   sit on one row instead of orphaning the 3rd card in a 2-col layout. */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    cursor: default;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.feature-desc em {
    color: var(--text);
    font-style: italic;
}

/* Social Proof */
.social-proof {
    margin-bottom: 80px;
}

.proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.proof-stat {
    text-align: center;
}

.proof-stat-value {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--sans);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.proof-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Bottom CTA */
.bottom-cta {
    text-align: center;
    padding-bottom: 40px;
}
.bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.bottom-cta-btn:hover {
    background: #7a6aea;
    transform: translateY(-1px);
}

/* "Or, try your own" — secondary CTA between the gallery and how-it-works. */
.try-your-own {
    max-width: 720px;
    margin: 80px auto;
    padding: 36px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(216, 161, 88, 0.06), rgba(216, 161, 88, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}
.try-your-own-title {
    font-family: 'Fraunces', serif;
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: #fff;
}
.try-your-own-sub {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 24px;
}
.try-your-own .type-toggle {
    display: inline-flex;
    margin-bottom: 18px;
}
/* Stacked form layout: type → product → goal → analyze. Each row stacks vertically
   with consistent gap so the user reads the form top-to-bottom as a natural sentence. */
.try-your-own-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 520px;
    margin: 0 auto;
}
.try-your-own-form .type-toggle {
    align-self: center;
    margin-bottom: 0;
}
/* Inline search field — carries the border + background that the old .hero-search
   wrapper used to, since the form is now a flex column instead of a flex row. */
.try-your-own-input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 5px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.try-your-own-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15), 0 0 0 3px rgba(216, 161, 88, 0.15);
}
.try-your-own-input input {
    flex: 1;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-family: var(--sans);
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-weight: 400;
}
.try-your-own-input input::placeholder {
    color: var(--text-muted);
}
.analyze-btn-solo {
    align-self: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.analyze-btn-solo:hover:not(:disabled) {
    background: #7a6aea;
    transform: translateY(-1px);
}
.analyze-btn-solo:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Goal selector — required before Analyze fires. Disables the submit button until
   a chip is picked (or a non-empty "Other" text is entered). */
.goal-prompt {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.goal-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.goal-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.goal-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.goal-chip:hover {
    border-color: rgba(216, 161, 88, 0.5);
    color: #fff;
}
.goal-chip.active {
    background: rgba(216, 161, 88, 0.22);
    border-color: rgba(216, 161, 88, 0.75);
    color: #fff;
}
.goal-chip:focus-visible {
    outline: 2px solid rgba(216, 161, 88, 0.7);
    outline-offset: 2px;
}
.goal-custom {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 12px auto 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(216, 161, 88, 0.5);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 54px;
}
/* Respect the `hidden` attribute — `display: block` above would otherwise override it. */
.goal-custom[hidden] {
    display: none;
}
.goal-custom::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.goal-custom:focus {
    outline: none;
    border-color: rgba(216, 161, 88, 0.85);
    background: rgba(255, 255, 255, 0.06);
}
#analyze-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.goal-required-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 10px 0 0;
    text-align: center;
    transition: opacity 0.2s ease;
}
.goal-required-note.is-hidden {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 640px) {
    .try-your-own { margin: 56px 16px; padding: 28px 20px; }
    .try-your-own-title { font-size: 1.55rem; }
}

.bottom-search {
    max-width: 520px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .landing { padding: 48px 20px 60px; }
    .landing-hero { margin-bottom: 56px; }
    .hero-headline { font-size: 32px; }
    .hero-sub { font-size: 15px; }
    .hero-search { flex-direction: column; }
    .hero-search button { justify-content: center; }
    .preview-cols { grid-template-columns: 1fr; }
    .preview-blind-spot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .preview-tag { margin-left: 0; }
    .steps-row { flex-direction: column; align-items: center; }
    .how-step-arrow { transform: rotate(90deg); }
    .features-grid { grid-template-columns: 1fr; }
    .proof-stats { flex-direction: column; gap: 24px; }
    .proof-divider { width: 48px; height: 1px; }
    .landing-section { margin-bottom: 64px; }
    .stat-card { min-width: 100px; padding: 14px 16px; }
    .stat-value { font-size: 24px; }
}

/* ===== PROGRESS SCREEN ===== */
#progress-screen {
    background: transparent;
    flex-direction: column;
}

#progress-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
}

.progress-container h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    font-family: var(--serif);
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.progress-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s, transform 0.4s, border-color 0.3s, box-shadow 0.3s;
}

.step[hidden] { display: none; }

.step.active, .step.complete, .step.error {
    opacity: 1;
    transform: translateY(0);
    animation: cardSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step.active {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(216, 161, 88, 0.12);
}

.step.complete {
    border-color: var(--border-light);
    opacity: 0.65;
}

.step.error {
    border-color: #b94e2f;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.step.active .step-icon {
    border-color: transparent;
    border-top-color: var(--accent);
    animation: spinnerRotate 0.8s linear infinite;
}

.step.active .step-icon::after {
    content: none;
}

.step.complete .step-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step.complete .step-icon::after {
    content: '\2713';
    font-size: 13px;
    font-weight: 700;
}

.step.error .step-icon {
    background: #b94e2f;
    border-color: #b94e2f;
    color: white;
}

.step.error .step-icon::after {
    content: '\2715';
    font-size: 13px;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    font-family: var(--sans);
    display: flex;
    align-items: center;
}

.step.complete .step-label {
    color: var(--text-secondary);
}

.step-detail {
    font-size: 12px;
    color: var(--accent);
    margin-top: 2px;
    font-weight: 500;
}

.step.complete .step-detail {
    color: var(--text-muted);
}

.step.error .step-detail {
    color: #b94e2f;
}

/* ===== RESULTS SCREEN ===== */
#results-screen {
    background: transparent;
    position: relative;
}

/* Subtle vignette draws the eye to the centered content column. */
#results-screen::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 65% 80% at center,
        transparent 0%,
        transparent 42%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 0;
}

.results-container {
    position: relative;
    z-index: 1;
}

.results-screen.active {
    display: block;
    min-height: auto;
}

.results-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 72px 28px 80px;
}

/* Objections + Segments used to sit side-by-side. Stacked now — denser vertical flow. */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.result-section {
    margin-bottom: 44px;
}

.results-header {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.results-header h1 {
    font-size: 38px;
    font-weight: 400;
    font-family: var(--serif);
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 8px;
}

.stats {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    min-width: 100px;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--sans);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.primary-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.secondary-btn {
    padding: 10px 20px;
    font-size: 12px;
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.collapsible-section {
    margin-bottom: 0;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.collapsible-header:hover .collapsible-chevron {
    color: var(--text);
}

.collapsible-header .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.collapsible-chevron {
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.collapsible-section:not(.open) .collapsible-chevron {
    transform: rotate(-90deg);
}

/* grid-template-rows 0fr → 1fr is the modern expand-to-content-height trick.
   Unlike max-height, it doesn't cap at an arbitrary pixel value, so any number
   of gap / insight / copy cards fits without clipping. */
.collapsible-body {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s,
                padding 0.3s, margin 0.3s, border-color 0.3s;
}

.collapsible-body > .collapsible-body-inner {
    min-height: 0;
    overflow: hidden;
}

.collapsible-section:not(.open) .collapsible-body {
    grid-template-rows: 0fr;
    opacity: 0;
    padding-top: 0;
    border-top-color: transparent;
    margin-top: 0;
}

/* ===== SECTIONS ===== */
.result-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Per-section accent colors — keep in one place so palette swaps don't require
   hunting through renderer functions. Tuned for deep-ocean bg with gold primary. */
.section-title-motivations { color: #7fb5c2; }  /* sea teal */
.section-title-objections  { color: #e37550; }  /* ember-warning */
.section-title-segments    { color: #9fb89d; }  /* muted sage */
.section-title-copy        { color: #c4915a; }  /* walnut-gold, distinct from primary */
.section-title-insights    { color: #d8a158; }  /* primary gold — hero emphasis */
.section-title-gaps        { color: #7a9c9a; }  /* teal-sage */

/* ===== MOTIVATIONS ===== */
.motivation-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.motivation-name {
    width: 160px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.motivation-bar-bg {
    flex: 1;
    height: 24px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.motivation-bar-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.motivation-bar-fill {
    height: 100%;
    border-radius: 6px;
    width: var(--target-width, 0%);
    animation: barGrow 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes barGrow {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.motivation-pct {
    width: 48px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

.quote-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.discovered-badge {
    display: inline-block;
    background: rgba(216, 161, 88, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* ===== CONCERNS ===== */
.objection-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: transform 0.2s, border-color 0.2s;
}


.objection-card.high { border-left: 4px solid #b94e2f; }
.objection-card.medium { border-left: 4px solid #b8874f; }
.objection-card.low { border-left: 4px solid var(--border); }

.objection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.objection-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
}

.objection-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.objection-quote {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
    line-height: 1.5;
}

/* ===== SEGMENTS ===== */
.segments-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.segment-card {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}


.segment-visual {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.segment-ring {
    width: 56px;
    height: 56px;
}

.segment-ring-fill {
    transition: stroke-dashoffset 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.segment-ring-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
}

.segment-info {
    flex: 1;
}

.segment-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.segment-concerns { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

/* ===== HERO INSIGHT ===== */
.hero-insight {
    background: linear-gradient(135deg, rgba(216, 161, 88, 0.08), rgba(122, 156, 154, 0.04));
    border: 1px solid rgba(216, 161, 88, 0.2);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 48px;
    text-align: center;
}

.hero-insight-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.hero-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-arrow {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
    color: var(--text);
    border-color: var(--accent);
}

.hero-slides {
    position: relative;
    min-height: 100px;
    flex: 1;
}

.hero-slide {
    display: none;
    animation: heroFadeIn 0.4s ease;
}

.hero-slide.active {
    display: block;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-insight-headline {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-insight-detail {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.hero-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.hero-dot:hover {
    background: var(--text-muted);
}

/* ===== GAPS ===== */
.gap-subhead {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
    padding: 8px 14px;
    border-radius: 8px;
}

.gap-subhead:first-of-type { margin-top: 0; }

.gap-subhead.opportunity {
    color: #4ade80;
    background: rgba(122, 158, 126, 0.06);
    border-left: 3px solid #4ade80;
}

.gap-subhead.overserved {
    color: #b94e2f;
    background: rgba(185, 78, 47, 0.06);
    border-left: 3px solid #b94e2f;
}

.gap-card {
    background: var(--surface);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s, transform 0.2s;
}

.gap-card.gap-opportunity { border-left: 3px solid rgba(122, 158, 126, 0.5); }
.gap-card.gap-overserved { border-left: 3px solid rgba(185, 78, 47, 0.5); }

.gap-info { flex: 1; }

.gap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gap-motivation { font-size: 17px; font-weight: 700; color: var(--text); }
.gap-insight { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }

.gap-tag {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.gap-tag.opportunity { background: rgba(122, 158, 126, 0.1); color: #4ade80; border: 1px solid rgba(122, 158, 126, 0.25); }
.gap-tag.overserved { background: rgba(185, 78, 47, 0.1); color: #b94e2f; border: 1px solid rgba(185, 78, 47, 0.25); }

/* ===== INSIGHTS ===== */
.insight-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    transition: border-color 0.2s;
}

.insight-content { flex: 1; }
.insight-headline { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.insight-detail { font-size: 15px; color: var(--text-secondary); line-height: 1.6; font-weight: 400; }

.insight-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.insight-opportunity .insight-tag { background: rgba(122, 158, 126, 0.1); color: #4ade80; border: 1px solid rgba(122, 158, 126, 0.25); }
.insight-objection .insight-tag { background: rgba(185, 78, 47, 0.1); color: #b94e2f; border: 1px solid rgba(185, 78, 47, 0.25); }
.insight-segment .insight-tag { background: rgba(196, 145, 90, 0.1); color: #7a9c9a; border: 1px solid rgba(196, 145, 90, 0.25); }
.insight-general .insight-tag { background: rgba(216, 161, 88, 0.1); color: var(--accent); border: 1px solid rgba(216, 161, 88, 0.25); }

/* ===== SOURCES DROPDOWN ===== */
.sources-section {
    margin-top: 40px;
}

.sources-dropdown {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.sources-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    transition: background 0.2s;
}

.sources-dropdown-header:hover {
    background: var(--surface-hover);
}

.sources-dropdown-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sources-dropdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.sources-dropdown-count {
    font-size: 13px;
    color: var(--text-muted);
}

.sources-chevron {
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.sources-dropdown.open .sources-chevron {
    transform: rotate(180deg);
}

.sources-dropdown-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
    padding: 0 24px;
}

.sources-dropdown.open .sources-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 24px 20px;
    border-top: 1px solid var(--border);
}

.source-group { margin-bottom: 16px; margin-top: 16px; }
.source-group:last-child { margin-bottom: 0; }
.source-group-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

.source-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.source-link:hover { background: var(--bg); color: var(--text); }

.source-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.source-badge.reddit { background: rgba(255, 69, 0, 0.1); color: #ff6b4a; }
.source-badge.youtube { background: rgba(185, 78, 47, 0.1); color: #b94e2f; }
.source-badge.tiktok { background: rgba(37, 244, 238, 0.1); color: #25f4ee; }
.source-badge.bestbuy { background: rgba(0, 70, 190, 0.1); color: #5b9cf7; }
.source-badge.amazon { background: rgba(216, 161, 88, 0.12); color: #d8a158; }
.source-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== PRINT STYLESHEET ===== */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: #1a1a1a !important;
    }

    .navbar,
    .results-actions,
    .hero-dots,
    .hero-arrow,
    .collapsible-chevron {
        display: none !important;
    }

    /* Kill fixed-position decorative overlays that would redraw per page. */
    #results-screen::before,
    #results-screen::after {
        display: none !important;
        background: none !important;
    }

    /* Scrub the body's diagonal gradient so PDF pages aren't rendering
       a full-page gradient fill on every sheet. */
    html, body {
        background: #ffffff !important;
        background-image: none !important;
    }

    @page {
        size: Letter;
        margin: 0.55in 0.5in 0.7in;
    }

    .results-container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Print header */
    .results-header::before {
        content: "VoxBuyer Report";
        display: block;
        font-family: var(--serif);
        font-size: 14px;
        color: #8b6a25;   /* dark ochre — readable on white print paper */
        margin-bottom: 8px;
    }

    .results-header {
        border-bottom: 2px solid #e5e5e5 !important;
    }

    .results-header h1 {
        color: #1a1a1a !important;
        -webkit-text-fill-color: #1a1a1a !important;
        font-size: 28px !important;
    }

    .stats {
        color: #666 !important;
    }

    /* Stats bar */
    .stats-bar {
        gap: 8px !important;
    }

    .stat-card {
        background: #f5f5f5 !important;
        border-color: #e5e5e5 !important;
        padding: 10px 14px !important;
    }

    .stat-value {
        font-size: 20px !important;
    }

    /* Hero insight - show all slides */
    .hero-insight {
        background: #f8f7ff !important;
        border-color: #d4cfff !important;
        page-break-inside: avoid;
    }

    .hero-insight-label {
        color: #8b6a25 !important;
    }

    .hero-insight-headline {
        color: #1a1a1a !important;
        font-size: 20px !important;
    }

    .hero-insight-detail {
        color: #444 !important;
    }

    .hero-slide {
        display: block !important;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #eee;
    }

    .hero-slide:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Sections */
    .result-section {
        page-break-inside: avoid;
    }

    .section-title {
        border-bottom-color: #e5e5e5 !important;
    }

    /* Collapsible - force all open for print regardless of expanded state on screen */
    .collapsible-section {
        /* Print must show everything even if collapsed on screen. */
    }
    .collapsible-body {
        grid-template-rows: 1fr !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding-top: 12px !important;
        border-top: 1px solid #e5e5e5 !important;
        margin-top: 8px !important;
    }

    .collapsible-header .section-title {
        color: #1a1a1a !important;
    }

    /* Cards */
    .gap-card,
    .objection-card,
    .segment-card,
    .insight-card {
        background: #f9f9f9 !important;
        border-color: #e5e5e5 !important;
        page-break-inside: avoid;
    }

    .gap-motivation,
    .objection-title,
    .insight-headline {
        color: #1a1a1a !important;
    }

    .gap-insight,
    .objection-quote,
    .insight-detail,
    .segment-concerns {
        color: #444 !important;
    }

    /* Motivation bars */
    .motivation-name {
        color: #1a1a1a !important;
    }

    .motivation-pct {
        color: #1a1a1a !important;
    }

    .motivation-bar-bg {
        background: #e5e5e5 !important;
    }

    .quote-box {
        background: #f5f5f5 !important;
        border-color: #e5e5e5 !important;
        color: #444 !important;
    }

    /* Tags */
    .gap-tag.opportunity {
        background: #e6f9ed !important;
        color: #8b6a25 !important;
        border-color: #bbf0d0 !important;
    }

    .gap-tag.overserved {
        background: #fef2f2 !important;
        color: #933c22 !important;
        border-color: #fecaca !important;
    }

    /* Sources - force open and visible */
    .sources-dropdown {
        background: #f9f9f9 !important;
        border-color: #e5e5e5 !important;
    }

    .sources-dropdown-body {
        max-height: none !important;
        overflow: visible !important;
        padding: 12px 24px 20px !important;
        border-top: 1px solid #e5e5e5 !important;
    }

    .sources-chevron {
        display: none !important;
    }

    .sources-dropdown-title {
        color: #1a1a1a !important;
    }

    .source-link {
        color: #444 !important;
    }

    /* Grid */
    .results-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Footer */
    .results-container::after {
        content: "Generated by VoxBuyer · voxbuyer.com";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        margin-top: 40px;
        padding-top: 16px;
        border-top: 1px solid #e5e5e5;
    }

    /* Remove animations and transitions */
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* === Hero takeaway: force readable colors on white === */
    .hero-takeaway {
        background: #f8f7ff !important;
        border: 1px solid #d4cfff !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    .hero-takeaway-label {
        color: #8b6a25 !important;
    }
    .hero-takeaway-headline {
        color: #1a1a1a !important;
        font-size: 22px !important;
    }
    .hero-takeaway-detail {
        color: #333 !important;
    }

    /* === Copy-rewrite before/after: force readable background + text === */
    .copy-rewrite {
        page-break-inside: avoid;
    }
    .copy-rewrite-pane {
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
    }
    .copy-rewrite-before {
        background: #fafafa !important;
    }
    .copy-rewrite-after {
        background: #f8f7ff !important;
        border-color: #d4cfff !important;
    }
    .copy-rewrite-label {
        color: #666 !important;
    }
    .copy-rewrite-after .copy-rewrite-label {
        color: #8b6a25 !important;
    }
    .copy-rewrite-text {
        color: #1a1a1a !important;
    }

    /* === Page-break discipline for cards that were splitting mid-page === */
    .gap-card,
    .objection-card,
    .segment-card,
    .insight-card,
    .hero-slide {
        page-break-inside: avoid;
        break-inside: avoid-page;
    }

    /* === Sources: restore visibility (was hidden by .sources-section) === */
    .sources-section {
        display: block !important;
    }

    /* Heading widow/orphan control */
    h1, h2, h3, .section-title {
        page-break-after: avoid;
        break-after: avoid-page;
    }

    /* === Evidence (blind-spot card + insight + hero) on white === */
    .evidence-pane {
        background: #fafafa !important;
        border-color: #e5e5e5 !important;
    }
    .evidence-customer {
        border-left-color: #8b6a25 !important;
    }
    .evidence-brand {
        border-left-color: #bbb !important;
    }
    .evidence-label {
        color: #666 !important;
    }
    .evidence-customer .evidence-label {
        color: #8b6a25 !important;
    }
    .evidence-text {
        color: #1a1a1a !important;
    }
    .insight-evidence,
    .hero-takeaway-evidence {
        background: #faf9ff !important;
        border-left-color: #8b6a25 !important;
        color: #333 !important;
    }
}

/* ===== (Demo) nav pill ===== */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
/* ===== Gallery section ===== */
.gallery-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}
.gallery-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.gallery-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.gallery-card {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease;
  text-align: left;
  color: inherit;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover,
.gallery-card:focus-visible {
  outline: none;
  border-color: rgba(216, 161, 88, 0.6);
  background: rgba(216, 161, 88, 0.06);
  transform: translateY(-2px);
}
.gallery-card-thumb {
  height: 118px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}
.gallery-card-thumb.has-image {
  background: rgba(255, 255, 255, 0.04);
  text-shadow: none;
}
.gallery-card-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-card-thumb.has-image img,
.gallery-card:focus-visible .gallery-card-thumb.has-image img {
  transform: scale(1.04);
}
.gallery-card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
  padding: 0 0.25rem;
}
.gallery-card-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 0.25rem;
}

/* ===== Code modal ===== */
.code-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.code-modal[hidden] { display: none; }
.code-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.code-modal-card {
  position: relative;
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2rem;
  width: min(420px, calc(100vw - 3rem));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.code-modal-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
#code-modal-message {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
#code-modal-message.error { color: #ff8b8b; }
#code-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}
#code-modal-input:focus {
  outline: none;
  border-color: rgba(216, 161, 88, 0.7);
}
.code-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.code-modal-actions button {
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
#code-modal-submit {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1b20;
  font-weight: 500;
}

/* Inline rate-limit / error message — appears right below the hero search */
.rate-limit-message {
  margin: 1rem auto 0;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 139, 139, 0.10);
  border: 1px solid rgba(255, 139, 139, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 560px;
  text-align: center;
}

/* ===== Trust signals ===== */
/* "Analyzed 343 opinions across 5 platforms · Apr 18, 2026" — one-liner
   directly under the product title that anchors the report in real data. */
.trust-signals {
  margin: 0.35rem 0 1.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  font-family: var(--sans);
}
.trust-signals[hidden] { display: none; }

/* ===== Top Takeaways TL;DR ===== */
/* Editorial opener: 3-bullet summary above the hero takeaway. Designed to
   give a link-viewer the gist in 15 seconds. Framed as summary, not ranking. */
.top-takeaways {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(216, 161, 88, 0.035);
}
.top-takeaways[hidden] { display: none; }
.top-takeaways-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-family: var(--sans);
}
.top-takeaways-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: takeaway;
}
.top-takeaways-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.1rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  counter-increment: takeaway;
}
.top-takeaways-list li:last-child { border-bottom: none; }
.top-takeaways-list li::before {
  content: counter(takeaway);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ===== Hero takeaway ===== */
.hero-takeaway {
  margin: 1.5rem 0 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(216, 161, 88, 0.10), rgba(216, 161, 88, 0.03));
  border: 1px solid rgba(216, 161, 88, 0.28);
  border-radius: 16px;
  text-align: left;
}
.hero-takeaway[hidden] { display: none; }
.hero-takeaway-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 161, 88, 0.9);
  margin-bottom: 0.5rem;
}
.hero-takeaway-headline {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}
.hero-takeaway-detail {
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem 0;
}

/* ===== Copy rewrite (before/after) ===== */
.copy-rewrite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}
.copy-rewrite-inline { margin-top: 0.85rem; }
.copy-rewrite-pane {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.copy-rewrite-before {
  border-color: rgba(255, 255, 255, 0.10);
}
.copy-rewrite-after {
  border-color: rgba(216, 161, 88, 0.35);
  background: rgba(216, 161, 88, 0.06);
}
.copy-rewrite-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}
.copy-rewrite-after .copy-rewrite-label {
  color: rgba(216, 161, 88, 0.85);
}
.copy-rewrite-text {
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}
@media (max-width: 680px) {
  .copy-rewrite { grid-template-columns: 1fr; }
  .hero-takeaway { padding: 1.5rem; }
  .hero-takeaway-headline { font-size: 1.55rem; }
}

/* ===== Product-type toggle ===== */
.type-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.type-pill {
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.type-pill:hover {
  color: rgba(255, 255, 255, 0.9);
}
.type-pill.active {
  background: rgba(216, 161, 88, 0.18);
  color: #fff;
}
.type-pill:focus-visible {
  outline: 2px solid rgba(216, 161, 88, 0.7);
  outline-offset: 2px;
}

/* Consolidated scraper card: row of platform logos that animate as each source finishes. */
.step-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.step-logo {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% 70%;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.step-logo[data-state="active"] {
  opacity: 1;
  filter: none;
  animation: logoPulse 1.2s ease-in-out infinite;
}
.step-logo[data-state="complete"] {
  opacity: 1;
  filter: none;
}
.step-logo[data-state="error"] {
  opacity: 0.7;
  filter: grayscale(40%);
}
.step-logo[data-state="complete"]::after,
.step-logo[data-state="error"]::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  border: 1.5px solid var(--bg, #0b0b0f);
}
.step-logo[data-state="complete"]::after {
  content: "✓";
  background: #7a9e7e;
}
.step-logo[data-state="error"]::after {
  content: "✕";
  background: #b94e2f;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 161, 88, 0.4); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(216, 161, 88, 0); }
}

.step-logo[data-platform="amazon"]   { background-image: url('/static/icons/amazon.png'); }
.step-logo[data-platform="reddit"]   { background-image: url('/static/icons/reddit.svg'); }
.step-logo[data-platform="youtube"]  { background-image: url('/static/icons/youtube.png'); }
.step-logo[data-platform="tiktok"]   { background-image: url('/static/icons/tiktok.svg'); }
.step-logo[data-platform="bestbuy"]  { background-image: url('/static/icons/bestbuy.png'); background-size: 85% 85%; }
.step-logo[data-platform="appstore"] { background-image: url('/static/icons/appstore.svg'); }

/* Platform-logo visibility by product type inside the consolidated scraper card. */
#progress-steps.type-physical .step-logo[data-platform="appstore"] { display: none; }
#progress-steps.type-app .step-logo[data-platform="amazon"],
#progress-steps.type-app .step-logo[data-platform="bestbuy"] { display: none; }

/* ===== Evidence (blind-spot cards) ===== */
.evidence-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.evidence-pane {
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-left-width: 3px;
}
.evidence-customer {
  border-left-color: rgba(216, 161, 88, 0.65);
}
.evidence-brand {
  border-left-color: rgba(255, 255, 255, 0.35);
}
.evidence-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}
.evidence-customer .evidence-label {
  color: rgba(216, 161, 88, 0.85);
}
.evidence-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}
@media (max-width: 680px) {
  .evidence-pair { grid-template-columns: 1fr; }
}

/* ===== Jump-to nav (pill row under the hero) ===== */
.jump-to-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2rem 0;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.jump-to-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.3rem;
}
.jump-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.jump-pill:hover,
.jump-pill:focus-visible {
    outline: none;
    background: rgba(216, 161, 88, 0.12);
    border-color: rgba(216, 161, 88, 0.5);
    color: #fff;
}
.jump-pill-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.78rem;
    color: rgba(216, 161, 88, 0.85);
    background: rgba(216, 161, 88, 0.15);
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
}
@media print {
    .jump-to-nav { display: none !important; }
}

/* ===== Purchase Motivations donut chart ===== */
.motivations-chart {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    margin: 1.5rem 0 1.2rem;
}
.motivations-donut-wrap {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    height: 220px;
}
.motivations-donut {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.donut-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 14;
}
.donut-segment {
    fill: none;
    stroke-width: 14;
    transition: stroke-width 0.2s ease;
}
.motivations-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.donut-center-num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}
.donut-center-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}
.motivations-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.motivations-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.motivations-legend-item:last-child {
    border-bottom: none;
}
.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-name {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.4rem;
}
.legend-sub {
    flex-basis: 100%;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
    margin-top: 2px;
}
@media print {
    .legend-sub { color: #666 !important; }
}
.legend-pct {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-variant-numeric: tabular-nums;
}
@media (max-width: 680px) {
    .motivations-chart {
        flex-direction: column;
        gap: 1.2rem;
    }
    .motivations-donut-wrap { width: 180px; height: 180px; }
    .donut-center-num { font-size: 2rem; }
}
@media print {
    .donut-bg { stroke: #e5e5e5 !important; }
    .motivations-legend-item { border-bottom-color: #e5e5e5 !important; }
    .legend-name, .legend-pct { color: #1a1a1a !important; }
    .donut-center-num { color: #1a1a1a !important; }
    .donut-center-label { color: #666 !important; }
}

/* ===== Goal toggle on results — swap goal lens without leaving the page ===== */
.goal-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0.8rem auto 1.3rem;
    max-width: 740px;
    padding: 8px 12px;
    justify-content: center;
}
.goal-toggle-label {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 4px;
}
.goal-toggle-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.goal-toggle-chip:hover {
    border-color: rgba(216, 161, 88, 0.55);
    color: #fff;
}
.goal-toggle-chip.active {
    background: rgba(216, 161, 88, 0.22);
    border-color: rgba(216, 161, 88, 0.75);
    color: #fff;
    cursor: default;
}
.goal-toggle-chip:focus-visible {
    outline: 2px solid rgba(216, 161, 88, 0.7);
    outline-offset: 2px;
}
@media print {
    .goal-toggle { display: none; }
}

/* ===== Data-coverage banner (thin-corpus honesty) ===== */
.data-coverage-banner {
    margin: 0.8rem auto 1.2rem;
    max-width: 680px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}
@media print {
    .data-coverage-banner {
        background: #fefce8 !important;
        border-color: #facc15 !important;
        color: #92400e !important;
    }
}

/* ===== Counterfeit callout — buyer-trust warning surfaced above results ===== */
.counterfeit-callout {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(185, 78, 47, 0.14), rgba(185, 78, 47, 0.10));
    border: 1px solid rgba(185, 78, 47, 0.35);
    color: rgba(255, 255, 255, 0.92);
}
.counterfeit-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.counterfeit-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b94e2f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1;
}
.counterfeit-titles {
    flex: 1;
    min-width: 0;
}
.counterfeit-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}
.counterfeit-sub {
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}
.counterfeit-quotes {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.counterfeit-quotes li {
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(185, 78, 47, 0.55);
    font-size: 0.88rem;
    line-height: 1.45;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.counterfeit-quote {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    flex: 1;
    min-width: 0;
}
.counterfeit-link {
    font-size: 0.78rem;
    color: rgba(185, 78, 47, 0.9);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.counterfeit-link:hover {
    color: #fb923c;
    text-decoration: underline;
}
@media print {
    .counterfeit-callout {
        background: #fff7ed !important;
        border-color: #b94e2f !important;
        color: #7c2d12 !important;
    }
    .counterfeit-title, .counterfeit-sub, .counterfeit-quote { color: #7c2d12 !important; }
    .counterfeit-quotes li { background: #fff !important; border-left-color: #b94e2f !important; }
    .counterfeit-link { color: #9a3412 !important; }
}

/* ===== Copy suggestions for product/landing page placements ===== */
.ad-card {
  position: relative;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(106, 152, 136, 0.55);
}
.ad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.ad-placement {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(106, 152, 136, 0.95);
  background: rgba(106, 152, 136, 0.12);
  border: 1px solid rgba(106, 152, 136, 0.28);
}
.ad-addresses {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}
.ad-addresses-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}
.ad-headline {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.ad-primary {
  font-size: 0.93rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.2rem;
}
.ad-copy-btn {
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ad-copy-btn:hover {
  border-color: rgba(216, 161, 88, 0.65);
  color: #fff;
  background: rgba(216, 161, 88, 0.1);
}
.ad-rationale {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.55rem;
}
.ad-copy-empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
@media print {
  .ad-copy-btn { display: none; }
  .ad-card { background: #fff !important; color: #1a1a1a !important; border-color: #ddd !important; }
  .ad-headline, .ad-primary, .ad-addresses, .ad-addresses-label { color: #1a1a1a !important; }
  .ad-rationale { color: #666 !important; }
  .ad-placement { background: #e0f7fa !important; color: #006064 !important; border-color: #80deea !important; }
}

/* ===== Clickable quote source link ===== */
a.quote-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: opacity 0.15s ease;
    position: relative;
}
a.quote-link:hover {
    opacity: 0.82;
}
a.quote-link:hover::after {
    content: "\2197";
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    font-size: 0.85rem;
    color: rgba(216, 161, 88, 0.8);
}
@media print {
    a.quote-link::after { display: none !important; }
}

/* ===== Evidence quote (insight card + hero) ===== */
.insight-evidence,
.hero-takeaway-evidence {
  margin: 0.85rem 0 0 0;
  padding: 0.55rem 0.95rem;
  border-left: 3px solid rgba(216, 161, 88, 0.55);
  background: rgba(216, 161, 88, 0.06);
  border-radius: 0 6px 6px 0;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
}
.hero-takeaway-evidence {
  margin: 0 0 1.15rem 0;
  padding: 0.65rem 1.05rem;
  font-size: 0.98rem;
}

/* ===== A/B test proposal card per insight ===== */
.insight-test {
  margin-top: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(106, 152, 136, 0.05);
  border: 1px solid rgba(106, 152, 136, 0.22);
}
.insight-test-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(106, 152, 136, 0.95);
  margin-bottom: 0.55rem;
}
.insight-test-row {
  display: flex;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.insight-test-row:last-child {
  margin-bottom: 0;
}
.insight-test-key {
  flex-shrink: 0;
  width: 86px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 3px;
}
.insight-test-val {
  flex: 1;
  color: rgba(255, 255, 255, 0.88);
}
@media print {
  .insight-test {
    background: #f0fbff !important;
    border-color: #67e8f9 !important;
  }
  .insight-test-label { color: #0369a1 !important; }
  .insight-test-key { color: #475569 !important; }
  .insight-test-val { color: #1a1a1a !important; }
}

/* ===== AUTH (nav) ===== */
.nav-signin {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.nav-signin:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.clerk-user-button {
    display: flex;
    align-items: center;
}

/* ===== MY REPORTS ===== */
#myreports-screen.active {
    align-items: flex-start;
    justify-content: center;
}
.myreports-container {
    width: 100%;
    max-width: 880px;
    padding: 120px 32px 80px;
}
.myreports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.myreports-header h1 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}
.myreports-empty {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 40px 0;
}
.myreports-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.myreport-card {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.myreport-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.myreport-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.myreport-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== UPGRADE / PRICING ===== */
.nav-upgrade {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
.nav-upgrade:hover {
    color: var(--accent-hover);
}
#pricing-screen.active {
    align-items: flex-start;
    justify-content: center;
}
.pricing-container {
    width: 100%;
    max-width: 980px;
    padding: 120px 32px 80px;
}
.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.pricing-header h1 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}
.pricing-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}
.upgrade-inline-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s;
}
.upgrade-inline-btn:hover {
    background: var(--accent-hover);
}
