.insight-hero {
    padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
    background:
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent, #4f46e5) 13%, transparent), transparent 34%),
        linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line, #e7e6f2);
}

.insight-hero .container {
    max-width: 980px;
}

.insight-kicker,
.insight-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.insight-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 30%, #e7e6f2);
    border-radius: 999px;
    color: var(--accent-dark, #4338ca);
    background: color-mix(in srgb, var(--accent, #4f46e5) 7%, white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.insight-hero h1 {
    max-width: 900px;
    margin: 1.1rem 0 1rem;
    font-size: clamp(2.15rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.insight-deck {
    max-width: 780px;
    margin: 0;
    color: var(--body, #40445c);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.insight-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.1rem;
    margin-top: 1.5rem;
    color: var(--muted, #6b7086);
    font-size: 0.9rem;
}

.insight-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: clamp(2.2rem, 6vw, 5rem);
    align-items: start;
    max-width: 1120px;
    padding-top: clamp(2.8rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.insight-article {
    min-width: 0;
    color: var(--body, #40445c);
    font-size: 1.04rem;
    line-height: 1.78;
}

.insight-article > :first-child {
    margin-top: 0;
}

.insight-article h2 {
    margin: 3.2rem 0 1rem;
    color: var(--ink, #12142b);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -0.025em;
    scroll-margin-top: 6rem;
}

.insight-article h3 {
    margin: 2.1rem 0 0.65rem;
    color: var(--ink, #12142b);
    font-size: 1.22rem;
    scroll-margin-top: 6rem;
}

.insight-article p,
.insight-article ul,
.insight-article ol {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.insight-article li + li {
    margin-top: 0.55rem;
}

.insight-article a {
    color: var(--accent-dark, #4338ca);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.17em;
}

.insight-article :where(p, li, td) a:not(.btn) {
    text-decoration: underline;
}

.insight-summary {
    margin: 0 0 2.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 24%, #e7e6f2);
    border-left: 4px solid var(--accent, #4f46e5);
    border-radius: 0 14px 14px 0;
    background: color-mix(in srgb, var(--accent, #4f46e5) 5%, white);
}

.insight-summary strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ink, #12142b);
    font-family: "Space Grotesk", sans-serif;
}

.insight-fit-grid,
.insight-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.insight-fit-card,
.insight-related-card {
    padding: 1.2rem;
    border: 1px solid var(--line, #e7e6f2);
    border-radius: 14px;
    background: white;
}

.insight-fit-card h3,
.insight-related-card h3 {
    margin-top: 0;
}

.insight-fit-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.insight-example {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--ink, #12142b);
    color: #f7f7ff;
}

.insight-example h3,
.insight-example strong {
    color: white;
}

.insight-example-label {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #c7c9ff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.insight-table-wrap {
    width: 100%;
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
    border: 1px solid var(--line, #e7e6f2);
    border-radius: 14px;
}

.insight-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.insight-table th,
.insight-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line, #e7e6f2);
    text-align: left;
    vertical-align: top;
}

.insight-table th {
    color: var(--ink, #12142b);
    background: color-mix(in srgb, var(--accent, #4f46e5) 7%, white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.insight-table tr:last-child td {
    border-bottom: 0;
}

.insight-checklist {
    padding: 0;
    list-style: none;
}

.insight-checklist li {
    position: relative;
    padding: 0.8rem 0 0.8rem 2rem;
    border-bottom: 1px solid var(--line, #e7e6f2);
}

.insight-checklist li::before {
    position: absolute;
    left: 0;
    top: 0.88rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--accent, #4f46e5);
    border-radius: 4px;
    content: "";
}

.insight-note,
.insight-disclosure {
    margin: 2rem 0;
    padding: 1.15rem 1.3rem;
    border-radius: 12px;
    background: #f7f6ff;
    color: #35384c;
    font-size: 0.94rem;
}

.insight-disclosure {
    border: 1px solid #b9e8d8;
    background: #f0fbf7;
}

.insight-toc {
    position: sticky;
    top: 6.5rem;
    padding: 1.15rem;
    border: 1px solid var(--line, #e7e6f2);
    border-radius: 14px;
    background: #fff;
}

.insight-toc strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--ink, #12142b);
    font-family: "Space Grotesk", sans-serif;
}

.insight-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted, #6b7086);
    font-size: 0.88rem;
    line-height: 1.45;
}

.insight-toc li + li {
    margin-top: 0.55rem;
}

.insight-toc a {
    color: inherit;
    text-decoration: none;
}

.insight-toc a:hover,
.insight-toc a:focus-visible {
    color: var(--accent-dark, #4338ca);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.insight-cta {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding: clamp(1.4rem, 4vw, 2rem);
    border-radius: 18px;
    background: var(--ink, #12142b);
    color: white;
}

.insight-cta h2,
.insight-cta p {
    margin: 0;
    color: white;
}

.insight-cta p {
    margin-top: 0.35rem;
    color: #d8daea;
}

.insight-index-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 2rem;
}

.insight-index-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line, #e7e6f2);
    border-radius: 999px;
    color: var(--body, #40445c);
    background: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.insight-library {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.insight-library-card {
    display: flex;
    min-height: 290px;
    padding: 1.4rem;
    flex-direction: column;
    border: 1px solid var(--line, #e7e6f2);
    border-top: 4px solid var(--accent, #4f46e5);
    border-radius: 16px;
    background: white;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.insight-library-card:hover,
.insight-library-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(18, 20, 43, 0.09);
}

.insight-library-card h2 {
    margin: 1rem 0 0.7rem;
    font-size: 1.38rem;
    line-height: 1.2;
}

.insight-library-card p {
    color: var(--body, #40445c);
    line-height: 1.6;
}

.insight-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--muted, #6b7086);
    font-size: 0.82rem;
}

.accent-violet {
    --accent: #7c3aed;
    --accent-dark: #5b21b6;
}

.accent-orange {
    --accent: #f97316;
    --accent-dark: #c2410c;
}

.accent-green {
    --accent: #10b981;
    --accent-dark: #047857;
}

.accent-sky {
    --accent: #0ea5e9;
    --accent-dark: #0369a1;
}

.accent-indigo {
    --accent: #4f46e5;
    --accent-dark: #4338ca;
}

@media (max-width: 900px) {
    .insight-shell {
        grid-template-columns: 1fr;
    }

    .insight-toc {
        position: static;
        grid-row: 1;
    }

    .insight-library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .insight-fit-grid,
    .insight-related-grid,
    .insight-library {
        grid-template-columns: 1fr;
    }

    .insight-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .insight-library-card {
        min-height: 0;
    }
}
