:root {
    --ink: #172b3a;
    --muted: #52616f;
    --blue: #1a4d86;
    --blue-dark: #11365f;
    --blue-soft: #eaf3ff;
    --red: #b23a48;
    --red-dark: #8b2a35;
    --gold: #f3c15f;
    --green: #2f7d64;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --line: #d9e4ee;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.home-nav {
    width: min(100% - 32px, var(--max));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    width: 40px;
    flex: 0 0 auto;
}

.brand span {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav-links a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-links a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.mobile-label {
    display: none;
}

.hero {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(234, 243, 255, 0.72) 0%, rgba(255, 255, 255, 0.96) 72%);
}

.hero-shell {
    width: min(100% - 40px, var(--max));
    min-height: calc(100vh - 210px);
    margin: 0 auto;
    padding: 34px 0 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    grid-template-areas: "copy cover";
    align-items: center;
    gap: 48px;
}

.hero-copy {
    grid-area: copy;
}

.cover-area {
    grid-area: cover;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cover-frame {
    display: grid;
    place-items: center;
    max-width: 430px;
}

.book-cover {
    width: min(100%, 420px);
    filter: drop-shadow(0 24px 28px rgba(23, 43, 58, 0.22));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.82rem;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(3.2rem, 4.8vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--ink);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--red);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--red-dark);
}

.button.secondary {
    background: var(--blue);
    color: #ffffff;
}

.button.secondary:hover {
    background: var(--blue-dark);
}

.button.tertiary {
    background: #ffffff;
    border-color: var(--line);
    color: var(--blue);
}

.button.tertiary:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.trust-line {
    max-width: 760px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.trust-item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.trust-item strong {
    display: block;
    color: var(--blue-dark);
    font-size: 1.28rem;
    line-height: 1.1;
}

.trust-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 50px 0;
}

.section.alt {
    background: var(--surface-soft);
}

.section-shell {
    width: min(100% - 40px, var(--max));
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2,
.audio-note h2,
.purchase-band h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.path-card,
.audio-note,
.quote-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(23, 43, 58, 0.06);
}

.path-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    text-decoration: none;
}

.path-card span {
    color: var(--red);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.path-card h3,
.audio-note h3,
.quote-card h3 {
    margin: 10px 0 0;
    color: var(--blue-dark);
    font-size: 1.22rem;
    line-height: 1.24;
}

.path-card p,
.audio-note p,
.quote-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.path-card b {
    margin-top: auto;
    padding-top: 20px;
    color: var(--blue);
}

.path-card:hover {
    border-color: var(--blue);
}

.audio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: stretch;
}

.audio-note {
    padding: 24px;
}

.audio-note ol {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--ink);
}

.audio-note li + li {
    margin-top: 8px;
}

.audio-links {
    display: grid;
    gap: 10px;
}

.audio-link {
    min-height: 58px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 800;
}

.audio-link span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.audio-link:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

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

.quote-card {
    padding: 22px;
}

.quote-card strong {
    color: var(--green);
}

.purchase-band {
    background: var(--blue-dark);
    color: #ffffff;
}

.purchase-band .section-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.purchase-band h2 {
    color: #ffffff;
}

.purchase-band p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.mobile-cta-bar {
    display: none;
}

.home-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    font-size: 0.95rem;
}

.home-footer .section-shell {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-footer a {
    color: var(--blue);
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-shell,
    .audio-grid,
    .purchase-band .section-shell {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        grid-template-areas:
            "cover"
            "copy";
    }

    .cover-area {
        justify-content: center;
    }

    .path-grid,
    .quote-grid,
    .trust-line {
        grid-template-columns: 1fr;
    }

    .purchase-band .button {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .home-nav {
        width: min(100% - 24px, 430px);
        min-height: 60px;
    }

    .brand img {
        width: 38px;
    }

    .brand span {
        max-width: 136px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding: 8px 7px;
        font-size: 0.86rem;
    }

    .nav-optional,
    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .hero-shell {
        width: min(100% - 28px, 430px);
        min-height: auto;
        padding: 24px 0 22px;
        gap: 18px;
        text-align: center;
    }

    .book-cover {
        width: min(64vw, 205px);
        filter: drop-shadow(0 16px 22px rgba(23, 43, 58, 0.18));
    }

    h1 {
        font-size: 2.45rem;
        line-height: 1.02;
    }

    .lead {
        margin-top: 12px;
        font-size: 1.02rem;
    }

    .button-row {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .button {
        width: 100%;
    }

    .trust-line {
        display: none;
    }

    .section {
        padding: 28px 0;
    }

    .section-shell {
        width: min(100% - 28px, 430px);
    }

    .section-heading h2,
    .audio-note h2,
    .purchase-band h2 {
        font-size: 1.65rem;
    }

    .section-heading p {
        font-size: 0.98rem;
    }

    .audio-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .purchase-band .button {
        width: 100%;
    }

    .mobile-cta-bar {
        position: sticky;
        bottom: 0;
        z-index: 18;
        display: grid;
        grid-template-columns: 1fr 0.82fr;
        gap: 8px;
        padding: 10px 14px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
    }

    .mobile-cta-bar .button {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.92rem;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2.2rem;
    }

    .brand img {
        width: 34px;
    }

    .nav-links a {
        padding: 7px 5px;
        font-size: 0.8rem;
    }
}
