/* ===== GLOBAL ===== */
:root {
    --bg: #0b0715;
    --surface: #120d20;
    --surface-light: #1b1430;
    --border: #302344;
    --text: #f5f0ff;
    --muted: #aaa0c2;
    --accent: #9065ff;
    --accent-light: #bca5ff;
    --green: #70e1b1;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

p {
    color: var(--muted);
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.035em;
}

[hidden] {
    display: none !important;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 6%;
    background: rgba(11, 16, 32, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #9c8cff, #6254e8);
    color: white;
    box-shadow: 0 5px 20px rgba(139, 124, 255, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.main-nav a,
.footer-links a {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
    color: white;
}

.header-cta,
.primary-link,
.plan-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 13px;
    transition: transform 0.2s, background 0.2s;
}

.header-cta:hover,
.primary-link:hover,
.plan-button:hover {
    transform: translateY(-2px);
    background: #7665f0;
}

/* ===== HOME HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 105px 20px 95px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(115, 93, 255, 0.18), transparent 60%),
        var(--bg);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

/* Premium, lighter hero typography */
.hero h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(42px, 5.4vw, 72px);
    font-weight: 600;
    letter-spacing: -2.8px;
    line-height: 1.12;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(36px, 9vw, 48px);
        letter-spacing: -1.5px;
        line-height: 1.14;
    }
}
.hero h1 span {
    color: var(--accent-light);
}

.hero-description {
    max-width: 640px;
    margin: 24px auto 0;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.secondary-link:hover {
    background: var(--surface-light);
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
    color: #b6c4d8;
    font-size: 12px;
}

/* ===== SECTIONS ===== */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 85px 24px;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(29px, 4vw, 43px);
}

.section-heading > p:last-child {
    font-size: 14px;
    line-height: 1.8;
}

/* ===== FEATURE CARDS ===== */
.feature-grid,
.distribution-grid,
.pricing-grid,
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.distribution-card,
.pricing-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--surface), #0e1628);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover,
.distribution-card:hover,
.pricing-card:hover {
    transform: translateY(-3px);
    border-color: #6559b5;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(139, 124, 255, 0.14);
    color: var(--accent-light);
    font-size: 25px;
}

.feature-card h3,
.distribution-card h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.feature-card p,
.distribution-card p {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.8;
}

.feature-card a {
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 700;
}

/* ===== DASHBOARD & RESEARCH ===== */
.dashboard-section {
    max-width: 1050px;
}

.workspace-panel {
    margin-bottom: 25px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.workspace-panel > h2 {
    margin-bottom: 23px;
    font-size: 25px;
}

.search-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg);
}

.mode-button {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.mode-button.active {
    background: var(--accent);
    color: white;
}

.preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.preset {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-light);
    color: #d8def0;
    font-size: 12px;
}

.preset:hover,
.choice-button:hover {
    border-color: var(--accent);
    background: #202b45;
}

label {
    display: block;
    margin: 18px 0 8px;
    color: #e4e9f5;
    font-size: 13px;
    font-weight: 700;
}

textarea,
input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
}

textarea {
    min-height: 125px;
    resize: vertical;
}

textarea::placeholder,
input::placeholder {
    color: #6e7d96;
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--accent);
}

#researchButton,
.distribution-form button {
    width: 100%;
    margin-top: 16px;
    padding: 13px 18px;
    border: none;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    font-weight: 750;
}

#researchButton:hover,
.distribution-form button:hover {
    background: #7665f0;
}

.helper-text {
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.7;
}

.question-description {
    margin: 12px 0 20px;
    font-size: 13px;
}

.choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.choice-button {
    flex: 1;
    min-width: 190px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
}

/* ===== DISTRIBUTION ===== */
.distribution-panel .section-heading {
    margin-bottom: 30px;
}

.distribution-grid {
    margin-bottom: 28px;
}

.distribution-card {
    padding: 20px;
}

.distribution-card h3 {
    font-size: 16px;
}

.distribution-card p {
    margin-bottom: 0;
}

.distribution-form {
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

#distributionResults {
    margin-top: 18px;
}

#distributionResults:empty {
    display: none;
}

/* ===== PRICING ===== */
.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-plan {
    border-color: var(--accent);
    background: linear-gradient(160deg, #201d45, var(--surface));
}

.plan-label {
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.pricing-card h3 {
    margin: 12px 0;
    font-size: 29px;
}

.plan-price {
    margin: 5px 0 12px;
    color: var(--text);
    font-weight: 750;
}

.plan-description {
    min-height: 48px;
    font-size: 13px;
}

.pricing-card ul {
    margin: 22px 0 28px;
    padding-left: 20px;
    color: #d4dced;
    font-size: 13px;
    line-height: 2.2;
}

.pricing-card .plan-button {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

/* ===== BILLING ===== */
.billing-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.billing-card h3 {
    margin: 9px 0;
    font-size: 24px;
}

.billing-card > div:first-child p:last-child {
    font-size: 13px;
}

.status-pill {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 10px;
    border: 1px solid #3b6958;
    border-radius: 30px;
    background: #163629;
    color: var(--green);
    font-size: 11px;
}

.billing-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--border);
}

.billing-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.billing-row span {
    color: var(--muted);
}

.billing-row strong {
    text-align: right;
}

.billing-card .primary-link {
    margin-top: 24px;
}

/* ===== ABOUT ===== */
.about-section {
    max-width: 1100px;
}

.about-section .section-heading {
    max-width: 760px;
    margin-bottom: 35px;
}

.about-section .section-heading > p:last-child {
    max-width: 680px;
    margin: 0 auto;
}

.about-grid .feature-card {
    padding: 23px;
}

.about-grid .feature-card p {
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 45px 6% 25px;
    border-top: 1px solid var(--border);
    background: #080d19;
    text-align: center;
}

.site-footer .brand {
    justify-content: center;
}

.site-footer > p {
    margin-top: 12px;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 25px 0;
}

.site-footer .footer-note {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        padding: 8px 0 3px;
    }

    .feature-grid,
    .distribution-grid,
    .pricing-grid,
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .site-header {
        gap: 12px;
        padding: 12px 5%;
    }

    .brand {
        font-size: 14px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .header-cta {
        padding: 9px 11px;
        font-size: 11px;
    }

    .main-nav {
        gap: 18px;
    }

    .hero {
        padding: 75px 20px 65px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .content-section {
        padding: 60px 18px;
    }

    .feature-grid,
    .distribution-grid,
    .pricing-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .workspace-panel {
        padding: 20px 16px;
    }

    .preset-list {
        flex-direction: column;
    }

    .preset {
        text-align: left;
    }

    .choice-list {
        flex-direction: column;
    }

    .choice-button {
        width: 100%;
    }

    .billing-card {
        padding: 22px 17px;
    }

    .billing-row {
        font-size: 12px;
    }
}

/* ===== CONSISTENT BUTTON STYLING ===== */

button {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-light);
    color: var(--text);
    font-weight: 650;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

button:hover {
    border-color: var(--accent);
    background: #25304a;
}

button:active {
    transform: scale(0.98);
}

/* Main action buttons */
#researchButton,
.distribution-form button {
    border: 1px solid transparent;
    background: var(--accent);
    color: #ffffff;
}

#researchButton:hover,
.distribution-form button:hover {
    background: #7665f0;
}

/* Research mode tabs */
.mode-button.active {
    border-color: transparent;
    background: var(--accent);
    color: #ffffff;
}

/* Presets and Deep Search choices */
.preset,
.choice-button {
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--text);
}

/* Make links and buttons feel consistent */
.header-cta,
.primary-link,
.plan-button {
    border: 1px solid transparent;
    border-radius: 9px;
}

/* Dropdowns and form controls */
input,
textarea,
select {
    color-scheme: dark;
}

/* Prevent white backgrounds on browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
}

/* ===== Research Report — polished dark SaaS dashboard ===== */

#research-results {
    margin: 36px auto;
    padding: 32px;
    max-width: 1100px;
    color: #eef0ff;
    background: #10111c;
    border: 1px solid #292b40;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    scroll-margin-top: 100px;
}

#research-results[hidden] {
    display: none !important;
}

.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid #292b40;
}

.report-eyebrow {
    margin: 0 0 12px;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.report-header h2 {
    margin: 0;
    color: #f7f7ff;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -1px;
    line-height: 1.2;
}

.report-subtitle {
    margin: 12px 0 0;
    color: #a4a7bd;
    font-size: 14px;
    line-height: 1.7;
}

.demo-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.report-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.overview-item {
    min-width: 0;
    padding: 18px;
    background: #171827;
    border: 1px solid #292b40;
    border-radius: 13px;
}

.overview-label {
    display: block;
    margin-bottom: 10px;
    color: #969ab3;
    font-size: 12px;
}

.overview-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f1f0ff;
    font-size: 15px;
    line-height: 1.5;
}

.report-notice {
    margin: 22px 0 34px;
    padding: 18px 20px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-left: 3px solid #9b7bff;
    border-radius: 12px;
}

.report-notice strong {
    display: block;
    margin-bottom: 7px;
    color: #c4b5fd;
    font-size: 14px;
}

.report-notice p {
    margin: 0;
    color: #b3b5ca;
    font-size: 13px;
    line-height: 1.7;
}

.report-section {
    margin-top: 34px;
}

.report-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 19px;
}

.section-number {
    display: grid;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.report-section-heading h3 {
    margin: 2px 0 7px;
    color: #f1f0ff;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.report-section-heading p {
    margin: 0;
    color: #969ab3;
    font-size: 13px;
    line-height: 1.6;
}

.report-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.report-card {
    min-width: 0;
    padding: 21px;
    background: #171827;
    border: 1px solid #292b40;
    border-radius: 14px;
    transition: border-color 180ms ease, transform 180ms ease;
}

.report-card:hover {
    border-color: #6250a5;
    transform: translateY(-2px);
}

.report-icon {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 17px;
    place-items: center;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.13);
    border-radius: 10px;
    font-size: 19px;
    font-weight: 700;
}

.report-card h4 {
    margin: 0 0 10px;
    color: #ecebff;
    font-size: 15px;
    line-height: 1.5;
}

.report-card p {
    margin: 0 0 15px;
    color: #a4a7bd;
    font-size: 13px;
    line-height: 1.8;
}

.evidence-status {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 9px;
    color: #fcd28b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
}

.report-checklist {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.report-checklist li {
    position: relative;
    padding-left: 27px;
    color: #c2c4d7;
    font-size: 13px;
    line-height: 1.7;
}

.report-checklist li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "✓";
    color: #a78bfa;
    font-weight: 800;
}

.report-next-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: report-step;
}

.report-next-steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    color: #c2c4d7;
    background: #171827;
    border: 1px solid #292b40;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
    counter-increment: report-step;
}

.report-next-steps li::before {
    content: counter(report-step, decimal-leading-zero);
    flex-shrink: 0;
    color: #b9a5ff;
    font-size: 11px;
    font-weight: 800;
}

.report-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #292b40;
}

#backToResearchButton {
    padding: 12px 17px;
    color: #e4ddff;
    background: #211b38;
    border: 1px solid #514078;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

#backToResearchButton:hover {
    background: #30244d;
    border-color: #8b5cf6;
}

@media (max-width: 700px) {
    #research-results {
        margin: 24px auto;
        padding: 20px;
        border-radius: 16px;
    }

    .report-header {
        flex-direction: column;
        gap: 16px;
    }

    .report-card-grid {
        grid-template-columns: 1fr;
    }

    .report-section-heading h3 {
        font-size: 18px;
    }

    .report-card {
        padding: 18px;
    }
}

/* ===== Fix Deep Search button sizing and alignment ===== */

#deepSearchView button,
#deepSearchView .preset {
    box-sizing: border-box;
    max-width: 100%;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}

#deepSearchView button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
}

#deepSearchView button + button {
    margin-left: 6px;
}

#deepSearchView #hasIdeaButton,
#deepSearchView #noIdeaButton,
#deepSearchView #continueButton,
#deepSearchView #reviewResearchPlanButton,
#deepSearchView #startDeepSearchButton,
#deepSearchView #editResearchOptionsButton {
    margin-top: 8px;
    margin-bottom: 8px;
}

#deepSearchView details summary {
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

#deepSearchView .deep-search-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#deepSearchView .deep-search-actions button {
    margin: 0;
}

#deepSearchView button:focus-visible,
#deepSearchView summary:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    #deepSearchView button {
        max-width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }

    #deepSearchView button + button {
        margin-left: 0;
    }
}


/* ===== Premium violet grid + light atmosphere ===== */

body {
    background-color: #090611;
    background-image:
        /* Soft illuminated beam from the upper-right */
        linear-gradient(
            132deg,
            transparent 35%,
            rgba(139, 92, 246, 0.025) 43%,
            rgba(173, 125, 255, 0.13) 48%,
            rgba(218, 194, 255, 0.20) 49%,
            rgba(139, 92, 246, 0.09) 51%,
            transparent 59%
        ),

        /* Violet glow behind the hero */
        radial-gradient(
            ellipse at 50% 0%,
            rgba(91, 43, 158, 0.28) 0%,
            rgba(61, 30, 108, 0.16) 32%,
            transparent 68%
        ),

        /* Additional side glow */
        radial-gradient(
            ellipse at 100% 18%,
            rgba(112, 54, 190, 0.16) 0%,
            transparent 48%
        ),

        /* Fine grid lines */
        linear-gradient(
            rgba(177, 132, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(177, 132, 255, 0.055) 1px,
            transparent 1px
        ),

        /* Dark purple base */
        linear-gradient(
            180deg,
            #0d0818 0%,
            #0b0715 48%,
            #080610 100%
        );

    background-size:
        100% 100%,
        100% 760px,
        100% 850px,
        44px 44px,
        44px 44px,
        100% 100%;

    background-position:
        center top,
        center top,
        right top,
        center top,
        center top,
        center top;

    background-attachment: fixed;
}

#home,
#dashboard,
#pricing,
#billing,
#about {
    background-color: transparent;
}

/* Let the grid and glow show through the header */
.site-header {
    background: rgba(11, 7, 21, 0.76);
    border-bottom-color: rgba(180, 145, 255, 0.16);
    backdrop-filter: blur(18px);
}

/* Keep the footer dark while retaining the same purple theme */
.site-footer {
    background: rgba(8, 6, 16, 0.82);
}

/* ===== Refined purple surfaces ===== */

.feature-card,
.distribution-card,
.pricing-card,
.workspace-panel,
.billing-card {
    border-color: rgba(174, 139, 255, 0.16);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.feature-card,
.distribution-card,
.pricing-card {
    background: linear-gradient(
        145deg,
        rgba(30, 19, 49, 0.94),
        rgba(13, 9, 24, 0.98)
    );
}

.feature-card:hover,
.distribution-card:hover,
.pricing-card:hover {
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 12px 35px rgba(91, 45, 160, 0.12);
}

.featured-plan {
    background: linear-gradient(
        145deg,
        rgba(73, 39, 120, 0.52),
        rgba(18, 13, 32, 0.98) 75%
    );
    border-color: rgba(174, 139, 255, 0.55);
}

.header-cta,
.primary-link,
.plan-button,
#researchButton,
.distribution-form button {
    background: linear-gradient(135deg, #a184ff, #7650e8);
    box-shadow: 0 5px 20px rgba(126, 82, 231, 0.16);
}

.header-cta:hover,
.primary-link:hover,
.plan-button:hover,
#researchButton:hover,
.distribution-form button:hover {
    background: linear-gradient(135deg, #b39bff, #8966f5);
    box-shadow: 0 7px 25px rgba(126, 82, 231, 0.28);
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #e5dcff;
    border: 1px solid rgba(177, 132, 255, 0.25);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms, border-color 180ms;
}

.login-link:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(177, 132, 255, 0.55);
}

/* ===== Center the two pricing plans ===== */

.pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    width: 100%;
    text-align: center;
    align-items: center;
}

.pricing-card ul {
    width: 100%;
    text-align: left;
}

.pricing-card .plan-button {
    margin-top: auto;
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
    }
}


/* Demo subscription access locks */
.access-protected {
    position: relative;
}

.access-protected-content[aria-hidden="true"] {
    filter: blur(2px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.access-lock-card {
    margin: 20px 0;
    padding: 28px;
    text-align: center;
    background: #171326;
    border: 1px solid #554080;
    border-radius: 16px;
}

.access-lock-card h3 {
    margin-bottom: 10px;
}

.access-lock-card p {
    margin-bottom: 18px;
}

.access-lock-card a {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 9px;
    background: #8054d8;
    color: white;
    text-decoration: none;
    font-weight: 600;
}




/* ===== Deep midnight blue-purple background ===== */

:root {
    --bg: #090713;
    --surface: #100c1d;
    --surface-light: #18112a;
    --border: #30213f;
    --accent: #9065ff;
    --accent-light: #bca5ff;
}

body {
    background-color: #090713;
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(83, 51, 145, 0.14),
            transparent 58%
        ),
        linear-gradient(
            135deg,
            #0b1020 0%,
            #100b1c 48%,
            #140b20 75%,
            #090713 100%
        );
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.hero {
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(105, 70, 180, 0.13),
            transparent 65%
        ),
        transparent;
}

.site-header {
    background: rgba(9, 7, 19, 0.94);
}

.site-footer {
    background: rgba(7, 5, 14, 0.94);
}


/* Research report tables */
.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.research-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.research-table th,
.research-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.research-table th {
    background: rgba(139, 92, 246, 0.10);
    color: var(--accent-light);
    font-weight: 750;
}

.research-table td {
    color: var(--muted);
}

.research-table tbody tr:last-child td {
    border-bottom: 0;
}

#research-results .report-card-grid {
    margin-top: 12px;
}

#research-results .report-card {
    background: rgba(24, 17, 42, 0.85);
}

#research-results .report-notice {
    margin-top: 18px;
}

#research-results .report-section {
    scroll-margin-top: 100px;
}

@media (max-width: 600px) {
    #research-results {
        padding: 18px;
    }

    .research-table th,
    .research-table td {
        padding: 11px;
    }
}


.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.billing-note {
    color: #aaa2c0;
    font-size: 13px;
    line-height: 1.8;
}

.billing-actions {
    margin-top: 22px;
}


.login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.is-open {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 12, 0.78);
    backdrop-filter: blur(8px);
}

.login-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 28px;
    text-align: center;
    color: #f5f0ff;
    background: linear-gradient(145deg, #1c1230, #100b1c);
    border: 1px solid rgba(160, 120, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.login-modal-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.login-modal-card h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.login-modal-card p {
    color: #bcb2d2;
    line-height: 1.6;
    margin-bottom: 24px;
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: 0;
    background: transparent;
    color: #c9bddf;
    font-size: 28px;
    cursor: pointer;
}

.login-modal-continue,
.login-modal-cancel {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.login-modal-continue {
    color: white;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(100deg, #7745e8, #a16cff);
}

.login-modal-cancel {
    margin-top: 10px;
    border: 1px solid #38284f;
    color: #c9bddf;
    background: transparent;
}

body.login-modal-open {
    overflow: hidden;
}





/* =========================================
   GAPFOUND — MODERN DEVELOPER THEME
   Dark Slate + Electric Blue + Cyan
   Append after the existing CSS
========================================= */

:root {
    --bg: #0B0F17;
    --surface: #111827;
    --surface-light: #1E293B;
    --border: #293548;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --green: #34D399;

    --blue-glow: rgba(59, 130, 246, 0.16);
    --cyan: #22D3EE;
}

/* Base */

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(37, 99, 235, 0.13),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #0B0F17 0%,
            #0A101C 55%,
            #080D16 100%
        );
    background-attachment: scroll;
}

p {
    color: var(--muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Header and brand */

.site-header {
    background: rgba(11, 15, 23, 0.84);
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    backdrop-filter: blur(18px);
}

.brand-icon {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.22);
}

.main-nav a:hover,
.footer-links a:hover {
    color: #F8FAFC;
}

/* Primary actions */

.header-cta,
.primary-link,
.plan-button,
#researchButton,
.distribution-form button {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.header-cta:hover,
.primary-link:hover,
.plan-button:hover,
#researchButton:hover,
.distribution-form button:hover {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    box-shadow: 0 7px 26px rgba(37, 99, 235, 0.24);
    transform: translateY(-2px);
}

/* Hero — subtle blue/cyan atmosphere */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(37, 99, 235, 0.18),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 25%,
            rgba(34, 211, 238, 0.07),
            transparent 42%
        ),
        transparent;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(
            rgba(96, 165, 250, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(96, 165, 250, 0.045) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.eyebrow,
.report-eyebrow {
    color: var(--cyan);
}

.hero h1 span {
    color: #60A5FA;
    background: linear-gradient(90deg, #60A5FA, #22D3EE);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-trust {
    color: #A5B4C7;
}

/* Secondary actions */

.secondary-link,
.login-link {
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #DCE7F5;
    transition: background 180ms ease, border-color 180ms ease;
}

.secondary-link:hover,
.login-link:hover {
    background: rgba(59, 130, 246, 0.09);
    border-color: rgba(96, 165, 250, 0.48);
}

/* General cards and panels */

.feature-card,
.distribution-card,
.pricing-card,
.workspace-panel,
.billing-card {
    border-color: var(--border);
    background: linear-gradient(
        145deg,
        rgba(17, 24, 39, 0.97),
        rgba(13, 20, 32, 0.98)
    );
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.feature-card:hover,
.distribution-card:hover,
.pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.58);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.09);
}

.feature-icon,
.report-icon {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.09);
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.feature-card a {
    color: var(--accent-light);
}

.feature-card a:hover {
    color: var(--cyan);
}

/* Dashboard and search controls */

.search-mode-selector {
    background: #0B0F17;
    border-color: var(--border);
}

.mode-button {
    color: var(--muted);
}

.mode-button.active {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
}

.preset,
.choice-button {
    background: #151F2E;
    border-color: var(--border);
    color: #DCE7F5;
}

.preset:hover,
.choice-button:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent);
}

label {
    color: #DCE7F5;
}

input,
textarea,
select {
    background: #0B1220;
    color: var(--text);
    border-color: #334155;
}

input::placeholder,
textarea::placeholder {
    color: #718096;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

/* Pricing */

.featured-plan {
    background: linear-gradient(
        150deg,
        rgba(37, 99, 235, 0.15),
        #111827 70%
    );
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 32px rgba(37, 99, 235, 0.07);
}

.plan-label {
    color: var(--cyan);
}

.plan-price {
    color: #F8FAFC;
}

.pricing-card ul {
    color: #C4D0E0;
}

/* Billing */

.status-pill {
    color: #34D399;
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(52, 211, 153, 0.25);
}

/* Footer */

.site-footer {
    background: rgba(8, 13, 22, 0.94);
    border-top-color: var(--border);
}

/* Research report */

#research-results {
    color: var(--text);
    background: #0F1724;
    border-color: var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.report-header {
    border-bottom-color: var(--border);
}

.report-header h2,
.report-section-heading h3 {
    color: #F8FAFC;
}

.report-subtitle,
.report-section-heading p {
    color: var(--muted);
}

.overview-item,
.report-card,
.report-next-steps li {
    background: #151F2E;
    border-color: var(--border);
}

.overview-label {
    color: var(--muted);
}

.overview-item strong,
.report-card h4 {
    color: #EAF2FC;
}

.report-notice {
    background: rgba(59, 130, 246, 0.07);
    border-color: rgba(59, 130, 246, 0.25);
    border-left-color: var(--accent);
}

.report-notice strong,
.section-number,
.report-next-steps li::before {
    color: #60A5FA;
}

.report-notice p,
.report-card p,
.report-checklist li,
.report-next-steps li {
    color: #B5C3D6;
}

.section-number {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.22);
}

.report-card:hover {
    border-color: rgba(34, 211, 238, 0.38);
}

.report-checklist li::before {
    color: var(--cyan);
}

.report-footer {
    border-top-color: var(--border);
}

#backToResearchButton {
    background: #172438;
    color: #DCE7F5;
    border-color: #334B6B;
}

#backToResearchButton:hover {
    background: #1D314C;
    border-color: var(--accent);
}

/* Research tables */

.research-table th {
    background: rgba(59, 130, 246, 0.10);
    color: #93C5FD;
}

.research-table th,
.research-table td {
    border-bottom-color: var(--border);
}

.research-table td {
    color: var(--muted);
}

#research-results .report-card {
    background: #151F2E;
}

/* Report evidence badge */

.evidence-status {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.22);
}

/* Demo access locks — keep protected content behavior */

.access-lock-card {
    background: #111C2B;
    border-color: #334B6B;
}

.access-lock-card a {
    background: #2563EB;
}

/* Deep Search controls */

#deepSearchView button:focus-visible,
#deepSearchView summary:focus-visible {
    outline-color: var(--cyan);
}

/* Login-required popup — preserve existing behavior */

.login-modal-backdrop {
    background: rgba(3, 8, 18, 0.78);
    backdrop-filter: blur(9px);
}

.login-modal-card {
    color: var(--text);
    background: linear-gradient(145deg, #172438, #0F1724);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.login-modal-card p {
    color: var(--muted);
}

.login-modal-close {
    color: #B5C3D6;
}

.login-modal-continue {
    background: linear-gradient(100deg, #2563EB, #0891B2);
}

.login-modal-cancel {
    color: #C4D0E0;
    background: transparent;
    border-color: #334155;
}

.login-modal-cancel:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3B82F6;
}

/* Intent badges — ready for research report HTML */

.intent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;
}

.intent-high {
    color: #F87171;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.22);
}

.intent-medium {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.22);
}

.intent-low {
    color: #34D399;
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.22);
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Stronger premium cyan hero glow */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 420px;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(34, 211, 238, 0.20) 0%,
        rgba(37, 99, 235, 0.13) 35%,
        rgba(37, 99, 235, 0.05) 58%,
        transparent 75%
    );
    filter: blur(35px);
    pointer-events: none;
    z-index: -1;
}


/* GapFound — Research intent badges */
.report-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.report-card-title-row h4 {
    margin: 0;
}

.intent-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    flex-shrink: 0;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.07em;
    line-height: 1.3;
}

.intent-high {
    color: #FDA4AF;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.28);
}

.intent-medium {
    color: #FCD34D;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.intent-low {
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.intent-not-assessed {
    color: #94A3B8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
}

.brand-logo {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

/* GapFound navbar branding */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img.brand-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #F8FAFC;
    white-space: nowrap;
}

.brand-name::after {
    content: "";
}

.brand-name {
    background: linear-gradient(100deg, #F8FAFC 0%, #60A5FA 60%, #22D3EE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.report-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.report-footer button {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    box-sizing: border-box;
}


/* ===== MY REPORTS — PREMIUM STYLING ===== */

#myReportsList {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.saved-report-card {
    padding: 24px;
    border: 1px solid rgba(130, 150, 190, 0.2);
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(20, 29, 48, 0.95),
        rgba(15, 20, 36, 0.98)
    );
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.saved-report-card:hover {
    border-color: rgba(120, 145, 255, 0.48);
    transform: translateY(-2px);
}

.saved-report-card h3 {
    margin: 0 0 10px;
    color: #f1f5ff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.saved-report-card > p {
    margin: 0 0 12px;
    color: #b9c5dc;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.saved-report-card .helper-text {
    color: #8494b3;
    font-size: 12px;
}

.saved-report-card button {
    margin-top: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(133, 151, 255, 0.35);
    border-radius: 9px;
    background: linear-gradient(135deg, #5945b8, #3658b8);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.saved-report-card button:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.saved-report-details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(130, 150, 190, 0.18);
}

.saved-report-details p {
    margin: 0 0 12px;
    color: #c4cee1;
    font-size: 14px;
    line-height: 1.7;
}

.saved-report-details strong {
    color: #edf2ff;
}

@media (max-width: 600px) {
    .saved-report-card {
        padding: 18px;
    }

    .saved-report-card h3 {
        font-size: 18px;
    }
}
.ai-report-content {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ai-report-content h3 {
    margin: 28px 0 12px;
    color: var(--accent-light);
}

.ai-report-content h4 {
    margin: 22px 0 10px;
}

.ai-report-content p {
    margin: 0 0 14px;
}

.ai-report-content ul,
.ai-report-content ol {
    padding-left: 24px;
    margin: 10px 0 20px;
}

.ai-report-content li {
    margin-bottom: 8px;
}

.ai-report-content strong {
    color: var(--accent-light);
}

.ai-report-content code {
    overflow-wrap: anywhere;
}

.ai-report-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
}

.ai-report-content h3 {
    margin: 30px 0 12px;
    line-height: 1.4;
}

.ai-report-content h4 {
    margin: 20px 0 10px;
}

.ai-report-content p {
    margin: 0 0 16px;
}

.ai-report-content ul,
.ai-report-content ol {
    padding-left: 24px;
    margin: 12px 0 22px;
}

.ai-report-content li {
    margin-bottom: 10px;
}

.ai-report-content strong {
    color: var(--accent-light);
}

.ai-report-content code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .report-overview {
        grid-template-columns: 1fr;
    }

    .ai-report-content {
        padding: 16px;
    }
}
/* =========================================
   GAPFOUND STRUCTURED RESEARCH REPORT
========================================= */

.structured-report-section {
    margin: 22px 0;
    padding: 22px;
    background: linear-gradient(
        145deg,
        rgba(25, 32, 52, 0.96),
        rgba(16, 22, 38, 0.96)
    );
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.report-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.section-number {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #b5dafd;
    background: rgba(92, 159, 246, 0.14);
    border: 1px solid rgba(139, 174, 250, 0.3);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.report-section-heading h3 {
    margin: 2px 0 6px;
    color: #f8fafc;
    font-size: 19px;
    line-height: 1.4;
}

.report-section-heading p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.structured-report-section > p {
    color: #cbd2e1;
    font-size: 14px;
    line-height: 1.85;
}

/* Finding cards */

.structured-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.structured-finding-card {
    min-width: 0;
    padding: 18px;
    background: rgba(10, 15, 29, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.structured-finding-card:hover {
    border-color: rgba(92, 190, 246, 0.65);
    transform: translateY(-2px);
}

.structured-finding-card h4 {
    margin: 0 0 10px;
    color: #ddf4ff;
    font-size: 15px;
    line-height: 1.5;
}

.structured-finding-card p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Competitor and complaint tables */

.structured-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
}

.structured-report-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: rgba(10, 15, 29, 0.5);
}

.structured-report-table th {
    padding: 14px;
    color: #c4b5fd;
    background: rgba(92, 184, 246, 0.12);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.structured-report-table td {
    padding: 14px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    overflow-wrap: anywhere;
}

.structured-report-table tbody tr:last-child td {
    border-bottom: none;
}

.structured-report-table tbody tr:hover {
    background: rgba(92, 172, 246, 0.06);
}

.structured-report-table a {
    color: #8bcefa;
    text-decoration: none;
    font-weight: 700;
}

.structured-report-table a:hover {
    color: #d6e9fe;
    text-decoration: underline;
}

/* Pending platform integration cards */

.platform-pending-card {
    margin: 12px 0;
    padding: 17px;
    background: rgba(10, 15, 29, 0.55);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
}

.platform-pending-card h4 {
    margin: 0 0 8px;
    color: #ddf1ff;
    font-size: 14px;
}

.platform-pending-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

/* Build recommendation */

.recommendation-panel {
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(58, 130, 237, 0.13),
        rgba(37, 99, 235, 0.08)
    );
    border: 1px solid rgba(92, 154, 246, 0.35);
    border-left: 3px solid #5cbef6;
    border-radius: 12px;
}

.recommendation-panel p {
    margin: 0 0 10px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.85;
}

.recommendation-panel p:last-child {
    margin-bottom: 0;
}

/* Recommended actions */

.structured-report-section ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.structured-report-section li {
    padding-left: 5px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}

.structured-report-section li::marker {
    color: #8bcefa;
}

/* Report notice */

.report-notice {
    margin: 20px 0;
    padding: 18px 20px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-left: 3px solid #3b82f6;
    border-radius: 12px;
}

.report-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #93c5fd;
    font-size: 14px;
}

.report-notice p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.8;
}

/* Mobile layout */

@media (max-width: 650px) {
    .structured-report-section {
        padding: 16px;
        margin: 16px 0;
    }

    .structured-card-grid {
        grid-template-columns: 1fr;
    }

    .report-section-heading h3 {
        font-size: 17px;
    }

    .structured-finding-card {
        padding: 15px;
    }
}

.accuracy-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(188, 165, 255, 0.25);
  border-radius: 12px;
  background: rgba(144, 101, 255, 0.08);
  color: #d6cfea;
  font-size: 14px;
  line-height: 1.6;
}

.accuracy-notice-title {
  color: #c9b5ff;
  font-weight: 600;
  margin-bottom: 6px;
}

.accuracy-notice p {
  margin: 0;
}

.accuracy-notice a {
  color: #bca5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accuracy-notice a:hover {
  color: #ffffff;
}


/* ===== GapFound: globe, sources strip, loading animation ===== */

/* Globe: big, tilted and turning, filling the right side of the hero */
.hero {
    --gf-d: clamp(520px, 58vw, 860px);
}

.hero .gf-globe-wrap {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    /* soft top and bottom, so the globe never ends in a hard line above the sources strip */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 62%, transparent 100%);
}

.hero .gf-globe {
    position: absolute;
    top: 50%;
    right: calc(var(--gf-d) * -0.2);
    width: var(--gf-d);
    height: var(--gf-d);
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 24%, #000 52%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 24%, #000 52%);
}

@media (max-width: 1000px) {
    .hero { --gf-d: 120vw; }
    .hero .gf-globe {
        right: -48vw;
        opacity: 0.3;
    }
}

/* Sources strip */
.gf-sources {
    padding: 8px 0 54px;
    text-align: center;
}

.gf-sources-title {
    margin: 0 0 4px;
    color: #8fa0c2;
    font-size: 0.95rem;
}

.gf-pointer {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto 8px;
    color: #22d3ee;
}

.gf-marquee {
    position: relative;
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.gf-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
}

.gf-chip {
    flex: none;
    box-sizing: border-box;
    width: 176px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(130, 215, 255, 0.18);
    border-radius: 14px;
    background: rgba(17, 25, 38, 0.85);
    color: #c7d2e8;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.55;
    transform: scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s ease,
                border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.gf-chip.is-center {
    opacity: 1;
    transform: scale(1.04);
    color: #fff;
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22),
                0 10px 30px rgba(34, 211, 238, 0.12);
}

.gf-chip-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* If someone prefers less motion: a still row, no pointer */
.gf-marquee.is-static {
    -webkit-mask-image: none;
    mask-image: none;
}
.gf-marquee.is-static .gf-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
    transform: none !important;
}
.gf-marquee.is-static .gf-chip {
    opacity: 1;
    transform: none;
}
.gf-sources.is-static .gf-pointer { display: none; }

/* Loading animation inside the report box */
.gf-loading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.gf-spinner {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(96, 165, 250, 0.18);
    border-top-color: #22d3ee;
    border-right-color: #60a5fa;
    animation: gf-spin 0.9s linear infinite;
}

.gf-loading-status {
    margin: 0 0 4px;
    color: #e6edf8;
    font-weight: 600;
}

.gf-loading .helper-text { margin: 0; }

.gf-progress {
    position: relative;
    height: 4px;
    margin-top: 18px;
    border-radius: 4px;
    background: rgba(96, 165, 250, 0.14);
    overflow: hidden;
}

.gf-progress::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    animation: gf-slide 1.7s ease-in-out infinite;
}

@keyframes gf-spin  { to { transform: rotate(360deg); } }
@keyframes gf-slide {
    0%   { left: -40%; }
    100% { left: 102%; }
}
@keyframes gf-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* Reduced motion: keep a gentle pulse so people still see it is working */
@media (prefers-reduced-motion: reduce) {
    .gf-spinner {
        animation-name: gf-pulse !important;
        animation-duration: 1.8s !important;
        animation-iteration-count: infinite !important;
        border-top-color: #22d3ee;
    }
    .gf-progress::before {
        animation-name: gf-pulse !important;
        animation-duration: 1.8s !important;
        animation-iteration-count: infinite !important;
        left: 0;
        width: 100%;
    }
}

/* Safety: nothing should push the page sideways (no horizontal scrollbar) */
body {
    overflow-x: clip;
}
