/* Shared layout for the five internal pages. Page-specific styles live beside it. */
.inner-page {
    --page-container: 1536px;
    background: #fff;
}

.inner-page .container,
.inner-page .container-wide {
    width: min(calc(100% - 64px), var(--page-container));
}

@media (min-width: 1200px) {
    .inner-page .site-header .header-inner {
        width: min(calc(100% - 64px), 1600px);
    }
}

.inner-page .site-header {
    border-bottom-color: #edf0f4;
}

.inner-page .primary-navigation a[aria-current="page"] {
    color: var(--ink);
}

.inner-page .primary-navigation a[aria-current="page"]::after {
    right: 0;
    left: 0;
    background: var(--red);
}

.inner-page main {
    display: block;
}

.inner-page h1 {
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 4.15vw, 4.5rem);
    text-wrap: balance;
}

.inner-page h2 {
    font-size: clamp(1.85rem, 2.45vw, 2.8rem);
    text-wrap: balance;
}

.inner-page h3 {
    letter-spacing: -0.02em;
}

.section-compact {
    padding-block: clamp(44px, 4vw, 66px);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: clamp(34px, 4vw, 62px);
    gap: 10px;
    color: #202b39;
    font-size: 0.8rem;
    font-weight: 650;
}

.page-breadcrumb a {
    color: var(--blue);
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(600px, 1.22fr);
    min-height: clamp(520px, 40vw, 660px);
    align-items: stretch;
}

.page-hero-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(42px, 5vw, 76px) clamp(30px, 4.5vw, 72px) clamp(46px, 5vw, 78px) 0;
}

.page-hero-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: clamp(0.95rem, 1vw, 1.08rem);
    line-height: 1.62;
}

.page-hero-actions,
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-hero-tags,
.tag-list,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    margin: 24px 0 0;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.page-hero-tags li,
.tag-list li,
.tag,
.chip {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    color: #4e5a69;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.page-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
    background: var(--navy);
}

.page-hero-media img,
.page-hero-media picture {
    width: 100%;
    height: 100%;
}

.page-hero-media img {
    object-fit: cover;
    object-position: center;
}

.heartbeat-divider {
    position: relative;
    width: min(100%, 180px);
    height: 38px;
    margin: 14px 0 0 auto;
    background: url("../decorations/heartbeat-line.svg") center / contain no-repeat;
}

.value-strip,
.benefit-strip,
.page-benefits {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.value-strip-grid,
.benefit-strip-grid,
.page-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-item,
.benefit-item,
.page-benefit {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 112px;
    align-items: center;
    padding: 20px clamp(18px, 2.7vw, 42px);
    gap: 16px;
}

.value-item + .value-item,
.benefit-item + .benefit-item,
.page-benefit + .page-benefit {
    border-left: 1px solid var(--line);
}

.value-item img,
.benefit-item img,
.page-benefit img,
.feature-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.value-item h3,
.benefit-item h3,
.page-benefit h3 {
    margin: 0 0 4px;
    font-size: 0.88rem;
}

.value-item p,
.benefit-item p,
.page-benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.page-eyebrow {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-card,
.feature-card,
.content-card {
    padding: clamp(20px, 2.1vw, 30px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.info-card p,
.feature-card p,
.content-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.dark-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--navy) url("../backgrounds/navy-tech-grid.svg") center / cover no-repeat;
}

.dark-band h2,
.dark-band h3,
.dark-band p {
    color: inherit;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(var(--step-count, 4), minmax(0, 1fr));
    gap: 22px;
    list-style: none;
}

.process-steps > .process-step {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    gap: 0;
    text-align: center;
}

.process-steps > .process-step:not(:last-child)::after {
    right: auto;
    bottom: auto;
}

.process-step-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
    background: var(--blue-dark);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 820;
}

.process-step p {
    margin: 5px auto 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.dark-band .process-step p {
    color: #bed0e4;
}

/* Shared FAQ */
.page-faq {
    border-top: 1px solid var(--line);
    background: #fff;
}

.page-faq-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.55fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(30px, 5vw, 78px);
}

.page-faq-layout > h2 {
    margin: 4px 0 0;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.page-faq-list {
    display: grid;
    align-items: start;
    gap: 7px 14px;
}

.page-faq-list--2-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-faq-list--1-column {
    grid-template-columns: 1fr;
}

.page-faq .faq-item {
    min-width: 0;
}

.page-faq .faq-item summary {
    padding-right: 42px;
}

.page-faq .faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--blue);
    content: "+";
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-52%);
}

.page-faq .faq-item[open] summary::after {
    content: "−";
}

/* Shared closing contact band */
.page-contact-band {
    position: relative;
    overflow: hidden;
    padding-block: 34px;
    color: #fff;
    background: linear-gradient(110deg, #063fd9 0%, #075bff 56%, #003bbb 100%);
}

.page-contact-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.82fr) minmax(430px, 1.55fr) minmax(230px, 0.78fr);
    align-items: center;
    gap: clamp(28px, 3.6vw, 58px);
}

.page-contact-intro h2,
.page-direct-contact h3 {
    color: #fff;
}

.page-contact-intro h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 2.1vw, 2.35rem);
}

.page-contact-intro p {
    margin: 0;
    color: #e4edff;
    font-size: 0.82rem;
}

.page-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.page-contact-form .field,
.page-contact-form input,
.page-contact-form textarea {
    min-width: 0;
}

.page-contact-form .field-message,
.page-contact-form .page-privacy-note,
.page-contact-form .form-status {
    grid-column: 1 / -1;
}

.page-contact-form input,
.page-contact-form textarea {
    width: 100%;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgb(0 26 56 / 25%);
    border-radius: 4px;
}

.page-contact-form input {
    min-height: 40px;
    padding: 8px 12px;
}

.page-contact-form textarea {
    min-height: 52px;
    padding: 9px 12px;
    resize: vertical;
}

.page-contact-form .button-contact {
    grid-column: 2;
    width: 100%;
    min-height: 40px;
    margin: 0;
}

.page-privacy-note {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    margin: 0;
    color: #e9f0ff;
    font-size: 0.75rem;
    line-height: 1.35;
    gap: 8px;
    cursor: pointer;
}

.page-contact-form .page-privacy-note input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--red);
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.page-direct-contact {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: 7px;
}

.page-direct-contact h3 {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.78rem;
}

.page-direct-contact a {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 8px 14px;
    gap: 11px;
    border-top: 1px solid rgb(255 255 255 / 17%);
}

.page-direct-contact a:hover,
.page-direct-contact a:focus-visible {
    background: rgb(255 255 255 / 10%);
}

.page-direct-contact a:focus-visible {
    outline-offset: -3px;
}

.page-direct-contact img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.page-direct-contact strong,
.page-direct-contact small {
    display: block;
    color: #fff;
    line-height: 1.25;
}

.page-direct-contact strong {
    font-size: 0.72rem;
}

.page-direct-contact small {
    margin-top: 2px;
    font-size: 0.69rem;
    overflow-wrap: anywhere;
}

.inner-footer {
    padding-block: 18px;
    color: #b8c7d7;
    background: var(--navy-deep);
}

.inner-footer-layout {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.inner-footer-brand img {
    width: 190px;
}

.inner-footer p {
    margin: 0;
    font-size: 0.7rem;
    text-align: center;
}

.inner-footer nav {
    display: flex;
    gap: 14px;
    font-size: 0.72rem;
}

/* Keep the shared Home footer typography independent from page heading rules. */
.inner-page .site-footer .footer-column h2 {
    font-size: 0.86rem;
    text-wrap: wrap;
}

.inner-page .site-footer .container {
    width: min(calc(100% - 48px), 1320px);
}

@media (min-width: 1500px) {
    .inner-page .site-footer .container {
        width: min(calc(100% - 64px), 1568px);
    }
}

@media (max-width: 1199px) {
    .inner-page .container,
    .inner-page .container-wide {
        width: min(calc(100% - 48px), var(--page-container));
    }

    .page-hero-grid {
        grid-template-columns: minmax(320px, 0.86fr) minmax(500px, 1.14fr);
    }

    .page-contact-layout {
        grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.45fr);
    }

    .page-direct-contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto repeat(2, minmax(0, 1fr));
    }

    .page-direct-contact a {
        border-top: 0;
        border-left: 1px solid rgb(255 255 255 / 17%);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .inner-page .site-header .header-inner {
        width: min(calc(100% - 48px), var(--page-container));
    }
}

@media (max-width: 991px) {
    .inner-page .site-footer .container {
        width: min(calc(100% - 40px), 900px);
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-copy {
        min-height: auto;
        padding-right: 0;
    }

    .page-hero-media {
        min-height: min(62vw, 620px);
    }

    .value-strip-grid,
    .benefit-strip-grid,
    .page-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-item:nth-child(3),
    .benefit-item:nth-child(3),
    .page-benefit:nth-child(3) {
        border-left: 0;
    }

    .value-item:nth-child(n + 3),
    .benefit-item:nth-child(n + 3),
    .page-benefit:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

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

    .page-faq-layout,
    .page-contact-layout {
        grid-template-columns: 1fr;
    }

    .page-direct-contact {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .inner-page .container,
    .inner-page .container-wide {
        width: min(calc(100% - 32px), var(--page-container));
    }

    .inner-page .site-footer .container {
        width: min(calc(100% - 32px), 680px);
    }

    .inner-page h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .inner-page h2 {
        font-size: clamp(1.65rem, 7.6vw, 2.35rem);
    }

    .section-compact {
        padding-block: 40px;
    }

    .page-breadcrumb {
        margin-bottom: 28px;
    }

    .page-hero-copy {
        padding-block: 36px 42px;
    }

    .page-hero-media {
        min-height: 65vw;
    }

    .heartbeat-divider {
        margin-left: 0;
    }

    .value-item,
    .benefit-item,
    .page-benefit {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 94px;
        padding: 16px;
        gap: 12px;
    }

    .value-item img,
    .benefit-item img,
    .page-benefit img {
        width: 34px;
        height: 34px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .process-step {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        text-align: left;
        gap: 0 14px;
    }

    .process-step-number {
        grid-row: 1 / span 2;
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .process-step p {
        margin-inline: 0;
    }

    .page-faq-list--2-column {
        grid-template-columns: 1fr;
    }

    .page-contact-form {
        grid-template-columns: 1fr;
    }

    .page-contact-form .field,
    .page-contact-form .button-contact {
        grid-column: 1;
    }

    .page-direct-contact {
        display: block;
    }

    .page-direct-contact a {
        border-top: 1px solid rgb(255 255 255 / 17%);
        border-left: 0;
    }

    .inner-footer-layout {
        flex-direction: column;
        padding-block: 8px;
    }
}

@media (max-width: 559px) {
    .value-strip-grid,
    .benefit-strip-grid,
    .page-benefits-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .value-item + .value-item,
    .benefit-item + .benefit-item,
    .page-benefit + .page-benefit {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .page-hero-actions .button,
    .page-actions .button {
        width: 100%;
    }
}
