.illustrated-post {
    --article-ink: #16112b;
    --article-muted: #5d5870;
    --article-purple: #5b21b6;
    --article-purple-bright: #7c3aed;
    padding: 3rem 0 4rem;
    color: var(--article-ink);
    background:
        radial-gradient(circle at 8% 3%, rgba(124, 58, 237, 0.08), transparent 22rem),
        #fff;
}

.illustrated-post * {
    box-sizing: border-box;
}

.saas-dead-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4.5rem);
    margin-bottom: 2.5rem;
}

.saas-dead-hero__art {
    width: min(100%, 360px);
    margin: 0 auto;
}

.saas-dead-hero__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--article-purple);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.saas-dead-hero h1 {
    max-width: 850px;
}

.saas-dead-hero h1 span {
    display: block;
    margin-top: 0.22em;
    font-size: 0.72em;
    font-weight: 500;
}

.saas-dead-hero__rule {
    width: min(100%, 620px);
    height: 6px;
    margin: 1.2rem 0 1.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--article-purple), var(--article-purple-bright), transparent);
    transform: rotate(-0.35deg);
}

.illustrated-post .saas-dead-hero__dek {
    max-width: 780px;
    margin-bottom: 0;
}

.saas-dead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 1.2rem;
    color: var(--article-muted);
    font-size: 0.9rem;
}

.saas-dead-meta span + span::before {
    content: "·";
    margin-right: 0.85rem;
}

.saas-dead-body {
    display: block;
}

.saas-dead-copy section + section {
    margin-top: 2.4rem;
}

.saas-dead-copy p:last-child {
    margin-bottom: 0;
}

.saas-dead-data {
    position: static;
    width: 100%;
    max-width: 594px;
    margin: 2.75rem auto 0;
}

.saas-dead-data img {
    display: block;
    width: 100%;
    height: auto;
}

.saas-dead-data figcaption {
    max-width: 36rem;
    margin: 0.85rem auto 0;
    color: var(--article-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    text-align: center;
}

.saas-dead-bottom-line {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    margin-top: 3rem;
    padding: 0.8rem 1.5rem 0.9rem;
    overflow: hidden;
    border: 1px solid #c4b5fd;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fbfaff 0%, #f4f0ff 100%);
    box-shadow: 0 14px 35px rgba(91, 33, 182, 0.09);
}

.saas-dead-bottom-line img {
    align-self: end;
    width: 100%;
    max-width: 235px;
    margin-bottom: -0.9rem;
}

.saas-dead-bottom-line h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.saas-dead-bottom-line ul {
    margin: 0;
}

.saas-dead-sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.saas-dead-sources h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.saas-dead-sources ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 2rem;
    margin: 0;
}

.saas-dead-sources li,
.saas-dead-sources a {
    font-size: 0.9375rem;
}

@media (max-width: 680px) {
    .illustrated-post {
        padding-top: 1.5rem;
    }

    .saas-dead-hero {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .saas-dead-hero__art {
        max-width: 265px;
    }

    .saas-dead-hero__rule {
        margin-right: auto;
        margin-left: auto;
    }

    .saas-dead-meta {
        justify-content: center;
    }

    .saas-dead-bottom-line {
        grid-template-columns: 1fr;
        padding-top: 1.25rem;
    }

    .saas-dead-bottom-line img {
        order: 2;
        max-width: 210px;
        margin: 0 auto -0.9rem;
    }

    .saas-dead-sources ol {
        grid-template-columns: 1fr;
    }
}

/* Visual article: the code got cheaper */
.code-company-content {
    --code-company-purple: #5b21b6;
    --code-company-navy: #172554;
    --code-company-coral: #f97360;
    --code-company-content-width: 100%;
}

.code-company-content section {
    max-width: var(--code-company-content-width);
    margin: 0 auto 2.35rem;
}

.code-company-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
    max-width: var(--code-company-content-width);
    margin: 0 auto 2.75rem;
}

.code-company-hero figure {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.code-company-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.code-company-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--code-company-purple);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.code-company-hero h1 span {
    display: block;
    margin-top: 0.2em;
    color: var(--code-company-purple);
}

.code-company-hero h1 {
    font-size: clamp(2.5rem, 3.5vw, 2.9rem);
}

.code-company-rule {
    width: min(100%, 31rem);
    height: 0.32rem;
    margin: 1rem 0 1.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--code-company-purple), var(--code-company-coral), transparent);
    transform: rotate(-0.4deg);
}

.illustrated-post .code-company-lead {
    margin: 0;
    color: #4b5563;
    font-size: 1.34rem;
    font-weight: 500;
    line-height: 1.7;
}

.code-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 1.15rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.code-company-meta span + span::before {
    content: "\00b7";
    margin-right: 0.85rem;
}

.code-company-infographic {
    max-width: var(--code-company-content-width);
    margin: 0 auto 2.75rem;
}

.code-company-infographic img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd6fe;
    border-radius: 1rem;
}

.code-company-infographic figcaption {
    max-width: 46rem;
    margin: 0.8rem auto 0;
    color: var(--article-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    text-align: center;
}

.code-company-bottom-line {
    max-width: var(--code-company-content-width);
    margin: 3rem auto 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid #c4b5fd;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fbfaff 0%, #f2f7ff 100%);
    box-shadow: 0 14px 35px rgba(91, 33, 182, 0.09);
}

.code-company-bottom-line h2 {
    margin: 0 0 0.75rem;
}

.code-company-bottom-line ul {
    margin: 0;
}

.code-company-sources {
    max-width: var(--code-company-content-width) !important;
    margin-top: 2.5rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.code-company-sources h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.code-company-sources ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 2rem;
    margin: 0;
}

.code-company-sources li,
.code-company-sources a {
    font-size: 0.9375rem;
}

@media (max-width: 850px) {
    .code-company-hero {
        grid-template-columns: 1fr;
    }

    .code-company-hero figure {
        width: min(100%, 560px);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .code-company-sources ol {
        grid-template-columns: 1fr;
    }

    .code-company-bottom-line {
        padding: 1.25rem 1.15rem;
    }
}

/* Shared structure for the SaaS Experts thought-leadership series */
.thought-post-content {
    --thought-post-accent: #5b21b6;
    --thought-post-accent-bright: #7c3aed;
    --thought-post-coral: #f97360;
}

.thought-post-content > section {
    width: 100%;
    margin: 0 auto 2.35rem;
}

.thought-post-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
    width: 100%;
    margin: 0 auto 2.75rem;
}

.thought-post-hero__art {
    margin: 0;
}

.thought-post-hero__art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.65rem;
}

.thought-post-hero__credit {
    margin: 0.45rem 0 0;
    color: #7b7280;
    font-size: 0.72rem;
    line-height: 1.35;
}

.thought-post-hero__credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.illustrated-post .thought-post-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--thought-post-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.thought-post-hero h1 {
    margin-top: 0;
    font-size: clamp(2.4rem, 3.5vw, 2.9rem);
}

.thought-post-hero h1 span {
    display: block;
    margin-top: 0.2em;
    color: var(--thought-post-accent);
}

.thought-post-rule {
    width: min(100%, 31rem);
    height: 0.32rem;
    margin: 1rem 0 1.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--thought-post-accent), var(--thought-post-coral), transparent);
    transform: rotate(-0.4deg);
}

.illustrated-post .thought-post-lead {
    margin: 0;
    color: #4b5563;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
}

.thought-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 1.15rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.thought-post-meta span + span::before {
    content: "\00b7";
    margin-right: 0.85rem;
}

.thought-post-infographic {
    width: 100%;
    margin: 0 auto 2.75rem;
}

.thought-post-infographic img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd6fe;
    border-radius: 1rem;
}

.thought-post-infographic figcaption {
    max-width: 46rem;
    margin: 0.8rem auto 0;
    color: var(--article-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    text-align: center;
}

.thought-post-bottom-line {
    width: 100%;
    margin: 3rem auto 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid #c4b5fd;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fbfaff 0%, #f2f7ff 100%);
    box-shadow: 0 14px 35px rgba(91, 33, 182, 0.09);
}

.thought-post-bottom-line h2 {
    margin: 0 0 0.75rem;
}

.thought-post-bottom-line ul {
    margin: 0;
}

.thought-post-sources {
    width: 100%;
    margin-top: 2.5rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.thought-post-sources h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.thought-post-sources ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 2rem;
    margin: 0;
}

.thought-post-sources li,
.thought-post-sources a {
    font-size: 0.9375rem;
}

.illustrated-post .search-intent-faq {
    width: 100%;
    margin: 2.75rem auto 0;
    padding-top: 1.75rem;
    border-top: 1px solid #ddd6fe;
}

.illustrated-post .search-intent-faq h2 {
    margin: 0 0 1.15rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.25;
}

.search-intent-faq__items {
    margin: 0;
    border-top: 1px solid #e5e7eb;
}

.search-intent-faq__item {
    border-bottom: 1px solid #e5e7eb;
}

.search-intent-faq__item summary {
    position: relative;
    padding: 1rem 3rem 1rem 0;
    color: #312e81;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.search-intent-faq__item summary::-webkit-details-marker {
    display: none;
}

.search-intent-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 0.85rem;
    right: 0.15rem;
    color: #7c3aed;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
}

.search-intent-faq__item[open] summary::after {
    content: "\2212";
}

.search-intent-faq__item summary:focus-visible {
    border-radius: 0.3rem;
    outline: 3px solid rgba(124, 58, 237, 0.3);
    outline-offset: 0.2rem;
}

.illustrated-post .search-intent-faq__answer {
    max-width: 50rem;
    padding: 0 3rem 1.15rem 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
}

.illustrated-post .search-intent-faq__answer p {
    margin: 0;
}

@media (max-width: 850px) {
    .thought-post-hero {
        grid-template-columns: 1fr;
    }

    .thought-post-hero__art {
        width: min(100%, 560px);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .illustrated-post .search-intent-faq__answer {
        padding-right: 1.5rem;
    }

    .thought-post-sources ol {
        grid-template-columns: 1fr;
    }

    .thought-post-bottom-line {
        padding: 1.25rem 1.15rem;
    }
}
