:root {
    --navy: #071a36;
    --navy-2: #0b2448;
    --blue: #0057ff;
    --blue-2: #1a6bff;
    --cyan: #1ec8ff;
    --ink: #15233a;
    --muted: #5b6b84;
    --line: #dce3ee;
    --soft: #f5f7fb;
    --white: #fff;
    --error: #b51b2b;
    --error-bg: #fdecee;
    --error-border: #f0b4ba;
    --shadow: 0 18px 50px rgba(7, 26, 54, 0.12);
    --radius: 8px;
    --container: 1120px;
    --header-h: 76px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

h1, h2, h3, p, ul, ol {
    margin-top: 0;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 1000;
    background: var(--blue);
    color: var(--white);
    padding: 0.75rem 1rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.brand-logo {
    display: block;
    width: auto;
    height: 3.35rem;
    max-width: min(220px, 46vw);
    object-fit: contain;
}

.brand-logo--footer {
    height: 3rem;
    max-width: 180px;
    filter: brightness(0) invert(1);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue);
    background: rgba(0, 87, 255, 0.08);
    border-color: rgba(0, 87, 255, 0.15);
}

.language-link {
    margin-left: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.language-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--white);
    cursor: pointer;
    position: relative;
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
    content: "";
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--navy);
    margin: 0 auto;
    position: relative;
}

.nav-toggle span[aria-hidden="true"]::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle span[aria-hidden="true"]::after {
    position: absolute;
    top: 6px;
    left: 0;
}

/* Hero */
.hero {
    position: relative;
    color: var(--white);
    background:
        linear-gradient(105deg, rgba(5, 16, 36, 0.96) 0%, rgba(5, 16, 36, 0.88) 42%, rgba(5, 16, 36, 0.35) 68%, rgba(5, 16, 36, 0.2) 100%),
        var(--hero-image) right center / cover no-repeat,
        var(--navy);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-inner {
    padding: 3.5rem 0 5.5rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 34rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
}

.audience-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    background: var(--blue);
    color: var(--white);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    position: relative;
    top: -0.2em;
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 26rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.hero-checks li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}

.hero-checks li::before {
    content: "";
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background:
        linear-gradient(var(--cyan), var(--cyan)) center / 0.45rem 0.2rem no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) center / 0.2rem 0.55rem no-repeat,
        rgba(30, 200, 255, 0.18);
    box-shadow: inset 0 0 0 2px var(--cyan);
    transform: rotate(45deg);
}

/* Partial-width bar flush to the bottom edge of the hero image */
.hero-bar-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.hero-bar {
    pointer-events: auto;
    display: grid;
    align-items: stretch;
    width: min(100% - 2rem, 46rem);
    background: #0052e0;
    box-shadow: 0 8px 24px rgba(5, 16, 36, 0.22);
}

.hero-bar--with-learn {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.35fr) auto;
}

.hero-bar--no-learn {
    grid-template-columns: 1fr 1fr;
}

.hero-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    line-height: 1.2;
    color: var(--white);
    text-align: left;
}

.hero-bar-item + .hero-bar-item {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-bar-lines {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-bar-lines strong {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.hero-bar-lines span {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.hero-bar-item--cta:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-bar-item--learn {
    white-space: nowrap;
    padding-inline: 1.5rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

.hero-bar-item--learn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-bar-item.is-disabled,
.button.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-bar-icon {
    font-size: 1.15rem;
    flex: 0 0 auto;
    line-height: 1;
}

/* Missing pages / errors on home */
.missing-pages {
    background: var(--soft);
    padding: 1.75rem 0;
    border-block: 1px solid var(--error-border);
}

.missing-pages-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: var(--error);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.missing-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.error-banner {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error);
    border-left: 4px solid var(--error);
    border-radius: 0.35rem;
    padding: 0.7rem 0.9rem;
    font-weight: 700;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.92rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.eyebrow {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    text-align: center;
    padding: 0.5rem 0.35rem;
}

.feature-card h3 {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0.85rem 0 0.45rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(0, 87, 255, 0.25);
    background: rgba(0, 87, 255, 0.06);
    position: relative;
}

.feature-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--blue);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.feature-icon--targeting::before {
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--blue);
    width: 0.55rem;
    height: 0.55rem;
}

.feature-icon--mail::before {
    clip-path: polygon(0 20%, 50% 55%, 100% 20%, 100% 80%, 0 80%);
}

.feature-icon--visibility::before {
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    width: 1.4rem;
    height: 0.85rem;
    box-shadow: inset 0 0 0 3px var(--white);
}

.feature-icon--results::before {
    clip-path: polygon(10% 80%, 10% 45%, 35% 55%, 55% 25%, 75% 40%, 90% 15%, 90% 80%);
}

.feature-icon--roi::before {
    border-radius: 50%;
    width: 1.1rem;
    height: 1.1rem;
    background:
        linear-gradient(var(--white), var(--white)) center 35% / 0.12rem 0.45rem no-repeat,
        linear-gradient(var(--white), var(--white)) 58% 58% / 0.35rem 0.12rem no-repeat,
        var(--blue);
}

/* Books / split */
.books-section {
    padding-top: 0.5rem;
}

.books-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}

.books-panel {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.books-panel img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.books-panel--wide {
    max-width: 920px;
    margin: 0 auto;
}

.books-stack .books-panel--wide {
    max-width: none;
    margin: 0;
    width: 100%;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1.25rem;
    align-items: center;
}

.split-card {
    background: var(--soft);
    border-radius: 0.85rem;
    padding: 1.25rem;
}

.split-label {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
    border-radius: 0.35rem;
    margin-bottom: 0.85rem;
}

.split-label--right {
    float: right;
}

.split-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    clear: both;
}

.split-list li + li {
    margin-top: 0.55rem;
}

/* Stats */
.stats {
    padding-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 1rem;
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
}

.stat-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.55rem;
    background: rgba(0, 87, 255, 0.1);
    color: var(--blue);
    flex: 0 0 auto;
    position: relative;
}

.stat-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1rem;
    height: 1rem;
    background: var(--blue);
}

.stat-icon--reach::before {
    clip-path: polygon(20% 70%, 35% 45%, 50% 60%, 70% 25%, 80% 35%, 80% 80%, 20% 80%);
}

.stat-icon--delivery::before {
    clip-path: polygon(0 25%, 50% 55%, 100% 25%, 100% 75%, 0 75%);
}

.stat-icon--read::before {
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--blue);
    width: 0.45rem;
    height: 0.45rem;
}

.stat-icon--local::before {
    clip-path: polygon(15% 80%, 15% 40%, 40% 55%, 55% 25%, 70% 45%, 85% 20%, 85% 80%);
}

/* CTA band */
.cta-band {
    background: linear-gradient(90deg, var(--blue) 0%, #0046d1 100%);
    color: var(--white);
    padding: 1.75rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-copy h2 {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
}

.cta-copy p {
    margin: 0;
    opacity: 0.92;
}

.cta-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    background: var(--blue);
    color: var(--white);
}

.button--light {
    background: var(--white);
    color: var(--blue);
}

.button--light:hover {
    color: var(--navy);
}

.button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.86);
    padding: 3rem 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h2 {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 22rem;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover {
    color: var(--cyan);
}

.footer-icon {
    opacity: 0.8;
}

.config-missing {
    display: inline-block;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.4rem;
    background: rgba(181, 27, 43, 0.18);
    border: 1px solid rgba(240, 180, 186, 0.35);
    color: #ffb4bc;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-weight: 700;
    font-size: 0.88rem;
}

.newsletter-form .inline-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: 0.7rem 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Stub pages */
.stub-page {
    min-height: 45vh;
    display: flex;
    align-items: center;
}

.stub-card {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}

.stub-card h1 {
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.stub-pending {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .language-link {
        margin-left: 0;
        text-align: center;
    }

    .hero {
        min-height: 440px;
        background:
            linear-gradient(180deg, rgba(5, 16, 36, 0.92) 0%, rgba(5, 16, 36, 0.78) 55%, rgba(5, 16, 36, 0.55) 100%),
            var(--hero-image) center top / cover no-repeat,
            var(--navy);
    }

    .hero-inner {
        padding-bottom: 9.5rem;
    }

    .hero-bar,
    .hero-bar--with-learn,
    .hero-bar--no-learn {
        grid-template-columns: 1fr;
        width: min(100% - 1.5rem, 28rem);
    }

    .hero-bar-item {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-bar-item + .hero-bar-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.28);
    }

    .hero-bar-item--learn {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .brand-logo {
        height: 2.85rem;
    }

    .feature-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
