/* Homepage compression — intent / outcomes / architecture / evidence / convert */

.hp-fragment-aliases,
.hp-anchor {
    position: relative;
    display: block;
    height: 0;
    width: 0;
    overflow: hidden;
    scroll-margin-top: 112px;
}

#intent,
#outcomes,
#fail-closed,
#architecture,
#evidence,
#convert,
#founding-special-offer,
#pack-benchmarks {
    scroll-margin-top: 112px;
}

.hp-intent,
.hp-outcomes,
.hp-fail-closed,
.hp-architecture,
.hp-evidence,
.hp-convert {
    padding: 72px 0;
}

.hp-intent {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hp-outcomes {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.hp-fail-closed {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.hp-fail-closed .section-header-new {
    max-width: 42rem;
}

.hp-fail-closed-body {
    max-width: 42rem;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.65;
}

.hp-fail-closed-body p {
    margin: 0 0 1rem;
}

.hp-fail-closed-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.hp-fail-closed-list li {
    margin-bottom: 0.55rem;
}

.hp-fail-closed-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: fcstep;
}

.hp-fail-closed-steps li {
    counter-increment: fcstep;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
    color: #0f172a;
}

.hp-fail-closed-steps li::before {
    content: counter(fcstep) ". ";
    font-weight: 700;
    color: #0f766e;
}

.hp-fail-closed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-orbit-sub--secondary {
    margin-top: 0.75rem;
    max-width: 40rem;
    opacity: 0.92;
}

.hp-architecture {
    background: #0f172a;
    color: #e2e8f0;
}

.hp-architecture .section-header-new h2,
.hp-architecture .section-header-new p {
    color: #f8fafc;
}

.hp-architecture .about-eyebrow {
    background: rgba(45, 212, 191, 0.15);
    border-color: rgba(45, 212, 191, 0.35);
    color: #5eead4;
}

.hp-evidence {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
}

.hp-convert {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

/* Tabs */
.hp-tabs {
    margin-top: 28px;
}

.hp-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hp-tab {
    appearance: none;
    border: 1px solid rgba(15, 118, 110, 0.28);
    background: #fff;
    color: #0f766e;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hp-tab:hover,
.hp-tab:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.hp-tab[aria-selected="true"] {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.hp-tabpanel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hp-architecture .hp-tabpanel {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(94, 234, 212, 0.2);
    color: #e2e8f0;
}

.hp-link-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.hp-link-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-secondary, #475569);
}

.hp-link-list a {
    color: #0f766e;
    font-weight: 600;
}

/* Outcomes */
.hp-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.hp-outcome-grid--infra {
    grid-template-columns: repeat(5, 1fr);
}

.hp-infra-tree {
    margin-top: 28px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
}

.hp-infra-tree-root {
    margin: 0 0 8px;
    color: #0f453d;
}

.hp-infra-tree ul {
    margin: 4px 0 4px 1.15rem;
    padding: 0;
}

.hp-infra-tree li {
    margin: 6px 0;
    line-height: 1.5;
    color: #334155;
}

.hp-outcome-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 24px;
}

.hp-outcome-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--text-primary, #0f172a);
}

.hp-outcome-card > p {
    margin: 0 0 16px;
    color: var(--text-secondary, #475569);
    line-height: 1.55;
}

.hp-outcome-card details {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 12px;
}

.hp-outcome-card summary {
    cursor: pointer;
    font-weight: 650;
    color: #0f766e;
    list-style-position: outside;
}

.hp-outcome-card details[open] summary {
    margin-bottom: 10px;
}

.hp-outcomes-foot {
    margin-top: 28px;
    text-align: center;
    color: var(--text-secondary, #64748b);
}

.hp-outcomes-foot a {
    color: #0f766e;
    font-weight: 600;
}

/* Architecture */
.hp-arch-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 20px;
}

.hp-arch-node {
    appearance: none;
    border: 1px solid rgba(94, 234, 212, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font: inherit;
    font-weight: 650;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hp-arch-node:hover,
.hp-arch-node:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

.hp-arch-node.is-active,
.hp-arch-node[aria-pressed="true"] {
    background: rgba(20, 184, 166, 0.25);
    border-color: #5eead4;
}

.hp-arch-node--optional {
    opacity: 0.92;
}

.hp-arch-opt {
    font-weight: 500;
    font-size: 0.85em;
    color: #99f6e4;
}

.hp-arch-arrow {
    color: #5eead4;
    font-weight: 700;
}

.hp-arch-panel {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 16px;
    padding: 24px 28px;
    min-height: 140px;
}

.hp-arch-panel h3 {
    margin: 0 0 10px;
    color: #f8fafc;
}

.hp-arch-panel p {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.hp-arch-panel a {
    color: #5eead4;
    font-weight: 600;
}

.hp-arch-sr-list {
    margin: 20px 0 0;
    color: #94a3b8;
    line-height: 1.6;
}

.hp-arch-note {
    margin: 12px 0 0;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.hp-arch-note a {
    color: #5eead4;
}

.hp-arch-foot {
    margin-top: 16px;
    text-align: center;
}

.hp-arch-foot a {
    color: #5eead4;
}

/* Evidence — pack teaser (HO-024 / BUG-035: #pack-benchmarks must be non-empty) */
#pack-benchmarks.hp-pack-teaser {
    scroll-margin-top: 112px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
    margin: 0 0 36px;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #f8fafc 100%);
}

.hp-pack-teaser-copy h3 {
    margin: 8px 0 12px;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.25;
}

.hp-pack-teaser-copy p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.55;
    max-width: 46ch;
}

.hp-pack-teaser-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
}

.hp-pack-teaser-media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.hp-pack-teaser-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Evidence */
.hp-proof-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 12px;
}

.hp-proof-highlight article {
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    padding: 18px 20px;
}

.hp-proof-highlight strong {
    display: block;
    color: #0f172a;
    margin-bottom: 8px;
}

.hp-proof-highlight p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Convert / FAQ / contact */
.hp-convert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 8px 0 40px;
}

.hp-faq {
    max-width: 820px;
    margin: 0 auto 48px;
}

.hp-faq h2 {
    text-align: center;
    margin-bottom: 20px;
}

.hp-contact {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.hp-contact-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.hp-contact-social a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(15, 118, 110, 0.35);
    padding: 10px 18px;
    border-radius: 8px;
}

.hp-contact-schedule h3 {
    margin: 16px 0 8px;
}

.hp-catalog-details,
.hp-shop-collapse .hp-catalog-details {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 8px 20px 20px;
    background: #fff;
}

.hp-catalog-details > summary {
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 0;
    color: var(--text-primary, #0f172a);
}

.hp-founding-compact {
    padding-top: 48px;
    padding-bottom: 48px;
}

.product-showcase.hp-catalog-collapse {
    padding-top: 40px;
    padding-bottom: 24px;
}

.aiweb-products.hp-shop-collapse {
    padding-top: 24px;
    padding-bottom: 40px;
}

@media (max-width: 900px) {
    .hp-outcome-grid,
    .hp-outcome-grid--infra,
    .hp-proof-highlight,
    #pack-benchmarks.hp-pack-teaser {
        grid-template-columns: 1fr;
    }

    .hp-arch-flow {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .hp-intent,
    .hp-outcomes,
    .hp-fail-closed,
    .hp-architecture,
    .hp-evidence,
    .hp-convert {
        padding: 56px 0;
    }

    .hp-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.88rem;
        padding: 10px 12px;
    }

    /* Compact sticky: one action on small screens */
    .homepage-sticky-cta-text,
    .homepage-sticky-cta-btn--chat {
        display: none;
    }

    .homepage-sticky-cta-inner {
        justify-content: center;
    }

    .homepage-sticky-cta-btn--primary {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-tab,
    .hp-arch-node {
        transition: none;
    }
}
