@layer insights-tokens {
    .insights-framework {
        --ins-muted: rgba(255, 255, 255, 0.72);
        --ins-dim: rgba(255, 255, 255, 0.5);
        --ins-accent: #ffffff;
    }
}

/* Unlayered page styles intentionally override unlayered vendor rules in app.css */
/* Keep background transparent so site-wide <splash-bg> fluid cursor renders identically */
.insights-skip {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: -100%;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    color: #000000;
    font-size: 0.875rem;
}

.insights-skip:focus-visible {
    inset-block-start: 1rem;
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Hero matching Services / Agency Layout */
.insights-hero {
    margin-bottom: clamp(4rem, 7vw, 7rem);
}

.insights-hero__title {
    max-width: 17ch;
}

/* Minimal Typographic Section Filter */
.insights-toolbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.insights-toolbar::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0.25;
}

.insights-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.insights-filter-btn {
    position: relative;
    min-block-size: 44px;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: currentColor;
    opacity: 0.48;
    font-family: HelveticaNeueCyr, Arial, sans-serif;
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.insights-filter-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.insights-filter-btn:hover:not([aria-pressed="true"]) {
    opacity: 0.85;
}

.insights-filter-btn[aria-pressed="true"] {
    opacity: 1;
}

.insights-filter-btn[aria-pressed="true"]::after {
    transform: scaleX(1);
}

.insights-filter-btn:focus-visible,
.article-details summary:focus-visible,
.insights-cta-bar__text a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* =====================================================================
   Articles & Brand Audit Examples — Clean Open Editorial Rows
   ===================================================================== */
.articles-section[hidden],
.audits-section[hidden] {
    display: none;
}

.insights-section-kicker {
    margin: 0 0 clamp(4rem, 6.5vw, 6.5rem) 0;
    padding-top: 0.75rem;
    font-family: HelveticaNeueCyr, Arial, sans-serif;
    font-size: clamp(2.125rem, 3.4vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: #ffffff;
}

#audits-heading.insights-section-kicker {
    margin-bottom: clamp(4.5rem, 7vw, 7rem);
}

.article-list {
    display: grid;
    gap: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: clamp(5rem, 8vw, 8.5rem);
}

.article-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    grid-gap: clamp(2rem, 6vw, 6rem);
    align-items: flex-start;
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.article-item::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

.article-item__left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.article-item__title {
    margin: 0;
    font-family: HelveticaNeueCyr, Arial, sans-serif;
    font-size: clamp(1.75rem, 2.6vw, 2.625rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.article-item__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
}

.article-item__summary {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 165%;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
}

.article-item__note {
    margin: 0;
    padding-inline-start: 1.25rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.96875rem;
    line-height: 160%;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
}

.article-item__note strong {
    font-weight: 500;
    color: #ffffff;
}

/* Clean Monochrome Hairline Metrics for Brand Audit Rows */
.audit-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 2rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.audit-metrics__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.audit-metrics__val {
    font-size: 1.0625rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

.audit-metrics__before {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-inline-end: 0.4rem;
}

.audit-diff-clean {
    display: grid;
    gap: 0.65rem;
    padding-inline-start: 1.25rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.96875rem;
    line-height: 160%;
    font-weight: 300;
}

.audit-diff-clean__before {
    color: rgba(255, 255, 255, 0.58);
}

.audit-diff-clean__after {
    color: #ffffff;
}

.audit-diff-clean strong {
    font-weight: 500;
    color: #ffffff;
    margin-inline-end: 0.35rem;
}

.article-details summary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-block-size: 44px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    text-decoration: underline;
    text-underline-offset: 0.35em;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.25s ease;
}

.article-details summary:hover {
    text-decoration-color: #ffffff;
}

.article-details summary::-webkit-details-marker {
    display: none;
}

.article-details summary::before {
    content: "+";
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.7;
}

.article-details[open] summary::before {
    content: "−";
}

.article-details__body {
    padding-top: 1.25rem;
    display: grid;
    gap: 1rem;
    font-size: 1rem;
    line-height: 165%;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
}

.article-details__body p,
.article-details__list {
    margin: 0;
}

.article-details__list {
    padding-inline-start: 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.article-details__body strong {
    font-weight: 500;
    color: #ffffff;
}

@media (max-width: 899px) {
    .article-item {
        grid-template-columns: 1fr;
        grid-gap: 1.75rem;
    }
}

@media (max-width: 640px) {
    .audit-metrics {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   3-Step Audit Methodology Section
   ===================================================================== */
.insights-framework {
    padding-top: clamp(3rem, 6vh, 4.5rem);
    margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

.insights-framework__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.insights-framework__title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ins-accent);
    max-width: 20ch;
    margin: 0;
}

.insights-framework__sub {
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ins-muted);
    margin: 0;
}

.insights-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.insights-step {
    padding: 1.5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.insights-step__num {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ins-dim);
    margin-bottom: 0.75rem;
}

.insights-step__title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ins-accent);
    margin: 0 0 0.625rem 0;
}

.insights-step__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ins-muted);
    margin: 0;
}

.insights-cta-bar {
    padding: clamp(1.75rem, 3vw, 2.25rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.insights-cta-bar__text h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--ins-accent);
    margin: 0 0 0.4rem 0;
}

.insights-cta-bar__text p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ins-muted);
    margin: 0;
}

.insights-cta-bar__text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 920px) {
    .insights-steps {
        grid-template-columns: 1fr;
    }
}

/* Homepage Insights section spacing (matches .home-audit rhythm) */
.home-page__insights {
    margin-top: clamp(5rem, 8vw, 10rem);
}

@media (max-width: 899px) {
    .home-page__insights {
        margin-top: 5rem;
    }
}
