.intertype-page {
    background: #f4efe8;
}

.intertype-page .diagnostic-spotlight {
    background: #f4efe8;
    padding-bottom: 14px;
}

.intertype-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 56px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 8, 8, 0.84), rgba(92, 23, 19, 0.68)),
        var(--intertype-hero-image) center/cover no-repeat;
}

.intertype-hero--entry {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 110px);
}

.intertype-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -60px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 190, 19, 0.18);
    filter: blur(8px);
}

.intertype-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 30px;
    align-items: end;
}

.intertype-hero--entry .intertype-hero-inner {
    align-items: center;
}

.intertype-hero--results .intertype-hero-inner {
    align-items: center;
}

.intertype-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intertype-eyebrow,
.intertype-kicker,
.intertype-dynamic-kicker,
.intertype-profile-kicker {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intertype-eyebrow {
    color: var(--yellow);
}

.intertype-hero-copy h1,
.intertype-section-head h2,
.intertype-intro-card h2,
.intertype-cta h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.04;
}

.intertype-lead,
.intertype-intro-card p,
.intertype-profile-head p,
.intertype-cta p,
.intertype-source-card p,
.intertype-section-head p {
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.72;
}

.intertype-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: #f2efeb;
}

.intertype-active-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.intertype-active-label,
.intertype-active-signature {
    font-size: 0.96rem;
    color: #f0e8de;
}

.intertype-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.intertype-type-chip--alt {
    background: rgba(255, 190, 19, 0.18);
    color: #fff7de;
}

.intertype-active-separator {
    font-size: 1.15rem;
    color: var(--yellow);
}

.intertype-selector-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.intertype-selector-card h2,
.intertype-profile-head h2,
.intertype-dynamic-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.14;
}

.intertype-selector-form {
    display: grid;
    gap: 18px;
}

.intertype-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.intertype-field {
    display: grid;
    gap: 8px;
}

.intertype-field span {
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff4e8;
}

.intertype-field select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #181818;
}

.intertype-field input[type="email"] {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #181818;
}

.intertype-selector-actions,
.intertype-intro-actions,
.intertype-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.intertype-form-note {
    margin: 0;
    color: #f4eee7;
}

.intertype-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.6;
}

.intertype-notice--success {
    background: rgba(44, 120, 73, 0.22);
    border: 1px solid rgba(145, 222, 166, 0.32);
    color: #f3fff5;
}

.intertype-notice--error {
    background: rgba(186, 35, 24, 0.22);
    border: 1px solid rgba(255, 174, 167, 0.3);
    color: #fff4f2;
}

.intertype-email-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.intertype-email-form .btn {
    width: 100%;
    justify-content: center;
}

.intertype-field-error {
    margin: -4px 0 0;
    color: #fff0ed;
}

.intertype-intro {
    padding: 26px 0 0;
}

.intertype-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 30px 34px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e5d8c9;
    box-shadow: 0 18px 44px rgba(28, 31, 37, 0.08);
}

.intertype-kicker,
.intertype-dynamic-kicker,
.intertype-profile-kicker {
    color: var(--red);
}

.intertype-intro-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #171a1f;
}

.intertype-intro-card p,
.intertype-section-head p,
.intertype-source-card p {
    margin: 16px 0 0;
    color: #2c3037;
}

.intertype-main {
    padding: 10px 0 84px;
}

.intertype-functions-reference {
    margin-top: 18px;
}

.intertype-page--results .intertype-functions-reference {
    margin-top: 30px;
}

.intertype-functions-head {
    max-width: none;
    margin-bottom: 18px;
}

.intertype-functions-head h2 {
    margin: 0;
    width: 100%;
    max-width: none;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.14;
    color: #171a1f;
}

.intertype-functions-head p {
    margin: 14px 0 0;
    width: 100%;
    max-width: none;
    color: #2c3037;
    line-height: 1.72;
}

.intertype-functions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.intertype-stack-card {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e4d9cd;
    box-shadow: 0 18px 44px rgba(28, 31, 37, 0.08);
}

.intertype-stack-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.intertype-stack-head p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.intertype-stack-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.intertype-stack-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.intertype-stack-item {
    display: grid;
    grid-template-columns: 110px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 20px;
    background: #f8f2e9;
    border: 1px solid #eadccb;
}

.intertype-stack-rank {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.intertype-stack-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.intertype-stack-icon img {
    display: block;
    width: 42px;
    height: 42px;
}

.intertype-stack-meta span {
    display: block;
    margin-top: 4px;
    color: #171a1f;
    line-height: 1.25;
}

.intertype-stack-meta strong {
    display: block;
    color: #171a1f;
    line-height: 1.25;
}

.intertype-stack-meta span {
    font-size: 0.95rem;
    color: #49515b;
    line-height: 1.45;
}

.intertype-request-section {
    padding: 10px 0 84px;
}

.intertype-request-section--entry {
    padding-top: 32px;
    padding-bottom: 54px;
}

.intertype-request-card {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
    padding: 30px 34px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e4d9cd;
    box-shadow: 0 18px 44px rgba(28, 31, 37, 0.08);
}

.intertype-request-card--single {
    grid-template-columns: 1fr;
}

.intertype-request-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.14;
    color: #171a1f;
}

.intertype-request-card p {
    margin: 16px 0 0;
    color: #2c3037;
    line-height: 1.72;
}

.intertype-request-list {
    display: grid;
    gap: 12px;
}

.intertype-request-list p {
    margin: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f8f2e9;
    border: 1px solid #eadccb;
}

.intertype-readonly-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 12px 0 18px;
}

.intertype-readonly-separator {
    color: var(--yellow);
    font-size: 1.2rem;
}

.intertype-readonly-button {
    display: flex;
    width: 100%;
    max-width: 280px;
    margin: 18px auto 0;
    justify-content: center;
    text-align: center;
}

.intertype-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.intertype-result-card,
.intertype-source-card {
    background: #fff;
    border: 1px solid #e4d9cd;
    border-radius: 30px;
    box-shadow: 0 18px 44px rgba(28, 31, 37, 0.08);
}

.intertype-section-head {
    max-width: 840px;
    margin-bottom: 22px;
}

.intertype-section-head h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    color: #171a1f;
}

.intertype-results-shell {
    margin-bottom: 20px;
}

.intertype-result-card {
    padding: 26px;
}

.intertype-result-card--wide {
    grid-column: 1 / -1;
}

.intertype-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.intertype-result-kicker {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.intertype-result-head h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.16;
    color: #171a1f;
}

.intertype-result-pair {
    display: flex;
    align-items: center;
    gap: 10px;
}

.intertype-result-separator {
    color: var(--muted);
    font-size: 1rem;
}

.intertype-type-chip--light {
    background: #faf2df;
    border-color: #ead8af;
    color: #171717;
}

.intertype-type-chip--solid {
    background: #111;
    border-color: #111;
    color: #fff;
}

.intertype-result-body ul {
    margin: 0;
    padding-left: 20px;
}

.intertype-result-body li {
    color: #2d3239;
    line-height: 1.7;
}

.intertype-result-body li + li {
    margin-top: 8px;
}

.intertype-source-card {
    margin-top: 18px;
    padding: 22px 24px;
}

.intertype-cta {
    padding: 0 0 82px;
}

.intertype-cta-inner {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 340px);
    align-items: center;
    padding: 38px 42px;
    border-radius: 30px;
    background: var(--red);
    color: #fff;
}

.intertype-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.intertype-cta p {
    margin: 16px 0 0;
    color: #fff;
}

.intertype-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    justify-self: center;
}

.intertype-cta-actions .btn {
    min-width: 0;
    width: auto;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    text-align: center;
}

@media (max-width: 1100px) {
    .intertype-hero-inner,
    .intertype-intro-card,
    .intertype-functions-grid,
    .intertype-request-card,
    .intertype-results-grid,
    .intertype-cta-inner {
        grid-template-columns: 1fr;
    }

    .intertype-intro-actions,
    .intertype-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .intertype-hero {
        padding-top: 72px;
    }

    .intertype-hero--entry {
        min-height: auto;
    }

    .intertype-selector-grid {
        grid-template-columns: 1fr;
    }

    .intertype-selector-card,
    .intertype-intro-card,
    .intertype-result-card,
    .intertype-cta-inner {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .intertype-active-pair,
    .intertype-selector-actions,
    .intertype-intro-actions,
    .intertype-cta-actions {
        align-items: stretch;
    }

    .intertype-stack-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .intertype-selector-actions .btn,
    .intertype-intro-actions .btn,
    .intertype-cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}
