/* ============================================================
   Family Business Academy — master landing page
   Self-contained, mobile-first stylesheet. No dependency on
   landing-new.css / Tailwind. Single accent: deep blue.
   ============================================================ */

:root {
    --bg:            #fbfaf6;
    --bg-alt:        #f3f0e9;
    --panel:         #ffffff;
    --text:          #18211f;
    --muted:         #5f6a65;
    --soft:          #8a938e;
    --accent:        #234d6f;
    --accent-strong: #1b3c58;
    --accent-tint:   rgba(35, 77, 111, 0.08);
    --border:        rgba(24, 33, 31, 0.12);
    --border-strong: rgba(24, 33, 31, 0.22);
    --footer-bg:     #17201e;
    --footer-text:   #f7f3ea;
    --footer-muted:  rgba(247, 243, 234, 0.66);

    --shadow:        0 12px 35px rgba(30, 42, 36, 0.08);
    --shadow-lg:     0 22px 55px rgba(30, 42, 36, 0.14);

    --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius:   18px;
    --radius-sm: 12px;
    --pill: 999px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    --maxw: 1180px;
    --gutter: clamp(1.15rem, 5vw, 2.5rem);
    --header-h: 68px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* clip stops any rogue child from creating a horizontal scrollbar
       without breaking the sticky header (unlike overflow:hidden) */
    overflow-x: clip;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 2%, rgba(35, 77, 111, 0.06), transparent 26rem),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text);
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
    outline: 3px solid rgba(35, 77, 111, 0.4);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    transform: translateY(-160%);
    transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

/* Anchor targets clear the sticky header */
#home, #platform, #research, #voices, #pricing, #resources, #about {
    scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lede {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.6;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-head .lede { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: transform 160ms var(--ease), background-color 160ms var(--ease),
        border-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
    color: #fffdf8;
    background: var(--text);
    box-shadow: 0 10px 22px rgba(24, 33, 31, 0.16);
}
.btn--primary:hover { background: #26312d; }

.btn--accent {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 22px rgba(35, 77, 111, 0.24);
}
.btn--accent:hover { background: var(--accent-strong); }

.btn--ghost {
    color: var(--text);
    background: var(--panel);
    border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--border-strong); }

.btn--light {
    color: var(--text);
    background: #fffdf8;
}
.btn--light:hover { background: #fff; }

.btn--link {
    min-height: 0;
    padding: 0.4rem 0.3rem;
    color: var(--accent);
    background: transparent;
    border: 0;
}
.btn--link:hover { transform: none; text-decoration: underline; text-underline-offset: 3px; }
.btn--link i { font-size: 1.5rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 250, 246, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* object-fit + max-width:none guarantee the wordmark never distorts; the
   fluid height keeps the wide lockup from crowding the toggle on phones */
/* Matches the dashboard header (dashboard-new.css) so the two pages agree. */
.brand img { height: clamp(1.3rem, 5vw, 1.6rem); width: auto; max-width: none; object-fit: contain; }

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

.nav__links { display: flex; align-items: center; gap: 0.15rem; }
/* full-screen-menu-only pieces — hidden on desktop */
.nav__bar, .nav__foot, .nav-close { display: none; }

.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0 0.85rem;
    border-radius: var(--pill);
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 500;
    transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(24, 33, 31, 0.06); }
.nav__link[aria-current="page"] { color: var(--text); background: rgba(24, 33, 31, 0.08); }
/* Was stretching to fill the nav (70px), which pushed the header 2px past the
   dashboard's. Centred so it sits at its own height, matching the dashboard's
   account control. */
.nav__cta { margin-left: 0.4rem; align-self: center; }

.nav-toggle {
    display: none;
    position: relative;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--panel);
}
.nav-toggle i { position: absolute; font-size: 1.4rem; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.nav-toggle .i-close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.nav-toggle[aria-expanded="true"] .i-open  { opacity: 0; transform: rotate(45deg) scale(0.6); }
.nav-toggle[aria-expanded="true"] .i-close { opacity: 1; transform: rotate(0) scale(1); }

/* Hidden on desktop — overridden to flex inside the 880px media query below */
.nav__logogram-wrap { display: none; }

@media (max-width: 880px) {
    .nav-toggle { display: grid; }

    /* Full-screen, on-brand overlay menu */
    .nav {
        position: fixed;
        inset: 0;
        z-index: 1100;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: linear-gradient(165deg, #2a567d 0%, var(--accent) 42%, #142d44 100%);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1.5rem);
        transition: opacity 320ms var(--ease), transform 360ms var(--ease), visibility 0s 360ms;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 320ms var(--ease), transform 360ms var(--ease), visibility 0s 0s;
    }

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

    .nav-close {
        display: grid;
        place-items: center;
        width: 2.85rem;
        height: 2.85rem;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 0.85rem;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1.4rem;
    }

    .nav__links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: clamp(1rem, 5vw, 2.25rem) var(--gutter) 0;
    }
    .nav__link {
        min-height: 0;
        padding: clamp(0.8rem, 3.4vw, 1.2rem) 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(1.7rem, 7.5vw, 2.4rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        background: transparent;
        transition: color 160ms var(--ease), padding-left 220ms var(--ease);
    }
    .nav__link:hover {
        color: #fff;
        background: transparent;
        padding-left: 0.55rem;
    }
    .nav__link[aria-current="page"] {
        color: #fff;
        background: transparent;
        padding-left: 0rem;
        font-weight: bold;
        font-style: italic;
    }
    .nav__cta {
        width: auto;
        margin: clamp(1.5rem, 5vw, 2.25rem) var(--gutter) 0;
        background: #fffdf8;
        color: var(--text);
        box-shadow: none;
    }
    .nav__cta:hover { background: #fff; }

    .nav__foot {
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        margin-top: auto;
        padding: clamp(2rem, 7vw, 3rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    }
    .nav__foot p {
        max-width: 22rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .nav__social { display: flex; gap: 0.6rem; }
    .nav__social a {
        display: grid;
        place-items: center;
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #fff;
        font-size: 1.2rem;
        transition: background-color 180ms var(--ease), color 180ms var(--ease);
    }
    .nav__social a:hover { background: #fff; color: var(--accent); }

    /* Logogram in nav — fills the space between CTA and footer */
    .nav__logogram-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem var(--gutter);
        min-height: 0;
        overflow: hidden;
    }
    .nav__logogram {
        display: block;
        width: 100%;
        max-width: 100px;
        height: auto;
        object-fit: contain;
        filter: invert(1);
        
    }
}

/* Lock background scroll while the full-screen menu is open */
body.nav-open { overflow: hidden; }

/* The header's backdrop-filter creates a containing block for fixed
   descendants, which would shrink the overlay to header height. Drop it
   while the menu is open so the fixed .nav fills the whole viewport. */
body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(2.5rem, 5vw, 4rem); }

.hero__copy { max-width: 44rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.7rem); }
.hero .lede { margin-top: 1.3rem; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.85rem;
    color: var(--soft);
    font-size: 0.88rem;
    font-weight: 600;
}
.hero__trust i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* Full-width hero image */
.hero__media { margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; }
.hero__media img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Framed research model */
.frame {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.frame__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
}
.frame__dots { display: inline-flex; gap: 0.4rem; }
.frame__dots span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--border-strong); }
.frame__label {
    margin-left: 0.4rem;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.frame__body { padding: clamp(0.9rem, 2vw, 1.4rem); }
.frame__body img { width: 100%; border-radius: var(--radius-sm); }
.frame figcaption {
    padding: 0 clamp(0.9rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.3rem);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Research section — model frame beside the narrative */
.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.research-grid h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.research-grid .lede { margin-top: 1.1rem; }

@media (min-width: 880px) {
    .research-grid { grid-template-columns: 0.95fr 1.05fr; }
}

/* ============================================================
   Media split (journey + video)
   ============================================================ */
.media-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.media-split h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.media-split p { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }

.video-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: clamp(18rem, 42vw, 23rem);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    color: #fff;
    /* The video's own poster frame. The gradient stays underneath as the
       loading/fallback colour so the card never flashes empty. */
    background-color: #15324a;
    background-image: url("overview-poster.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow);
}

/* Keeps the play button legible over whatever frame the poster shows. */
.video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 26, 42, 0.45) 0%, rgba(10, 26, 42, 0.12) 45%, rgba(10, 26, 42, 0.4) 100%);
    transition: background 300ms var(--ease);
}

.video-card:hover::before {
    background: linear-gradient(160deg, rgba(10, 26, 42, 0.3) 0%, rgba(10, 26, 42, 0.05) 45%, rgba(10, 26, 42, 0.28) 100%);
}
.video-card__play {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.92);
    color: var(--text);
    font-size: 1.4rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    transition: transform 300ms var(--ease);
}
.video-card:hover .video-card__play { transform: scale(1.06); }
.video-card__caption {
    position: relative;
    margin: 1.2rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    background: rgba(13, 26, 38, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
}

@media (min-width: 860px) {
    .media-split { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Carousel (shared: steps + reviews)
   ============================================================ */
.carousel { position: relative; width: 100%; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track {
    display: flex;
    transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel__slide { flex: 0 0 100%; min-width: 0; }
/* Reviews: inset each slide a touch so the card's rounded corners and
   border aren't clipped flat by the viewport's overflow:hidden */
#reviews .carousel__slide { padding: 2px; }

.carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
}
.carousel__arrow {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    font-size: 1.1rem;
    transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.carousel__arrow:hover { color: var(--accent); border-color: var(--border-strong); }
.carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: var(--pill);
    background: var(--soft);
    transition: width 280ms var(--ease), background-color 280ms var(--ease);
}
.carousel__dot.is-active { width: 1.6rem; background: var(--accent); }

/* Step slides */
/* All four steps are shown at once, so each card is a compact row: icon,
   copy, step number. No reserved empty space to decorate. */
.steps-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.step {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.6rem);
    padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(35, 77, 111, 0.16);
    border-radius: var(--radius);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(35, 77, 111, 0.12), transparent 60%),
        linear-gradient(165deg, rgba(35, 77, 111, 0.08), rgba(255, 255, 255, 0.92));
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.step:hover {
    border-color: rgba(35, 77, 111, 0.3);
    transform: translateX(3px);
}
.step__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    background: var(--accent);
    color: #fffdf8;
    font-size: 1.6rem;
    box-shadow: 0 10px 22px rgba(35, 77, 111, 0.24);
}
.step__body { flex: 1; min-width: 0; }
.step__num {
    flex: none;
    color: var(--soft);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.step h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.step p { margin-top: 0.2rem; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

@media (max-width: 560px) {
    .step { gap: 0.9rem; padding: 1rem 1.1rem; }
    .step__icon { width: 2.8rem; height: 2.8rem; font-size: 1.3rem; border-radius: 0.85rem; }
    /* The order is already obvious once they're stacked. */
    .step__num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .step, .step:hover { transition: none; transform: none; }
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: clamp(2.25rem, 4vw, 3rem);
}
.stat {
    margin: 0;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    text-align: center;
}
.stat dt { color: var(--accent); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat dd { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }

@media (min-width: 720px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Trust logos
   ============================================================ */
.trust { text-align: center; }
.trust h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 18ch; margin-inline: auto; }
.trust__logos {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 6vw, 4.5rem);
    margin: clamp(2.25rem, 5vw, 3.25rem) 0;
}
@media (min-width: 560px) {
    .trust__logos { grid-template-columns: repeat(3, auto); }
}
@media (min-width: 1100px) {
    .trust__logos { grid-template-columns: repeat(6, auto); column-gap: clamp(2rem, 3.5vw, 3.5rem); }
}
.trust__logos img {
    height: calc(var(--s, 1) * clamp(2.1rem, 4vw, 2.9rem));
    width: auto;
    max-width: 100%;
    filter: grayscale(1) brightness(var(--b, 1)) opacity(0.7);
    transition: filter 280ms var(--ease);
}
.trust__logos img:hover { filter: grayscale(0) brightness(1) opacity(1); }
/* --s-sm: small-caps logos that turn illegible at phone size get a bump there */
@media (max-width: 559px) {
    .trust__logos img { height: calc(var(--s-sm, var(--s, 1)) * clamp(2.1rem, 4vw, 2.9rem)); }
}
.trust > p { max-width: 50rem; margin-inline: auto; color: var(--muted); }

/* ============================================================
   Voices (quotes)
   ============================================================ */
.quote-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.quote {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.quote blockquote {
    margin: 0;
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text);
}
.quote blockquote::before {
    content: "\201C";
    display: block;
    margin-bottom: 0.15rem;
    color: var(--accent);
    font-size: 2.8rem;
    line-height: 0.3;
    font-weight: 800;
}
.quote figcaption {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 759px) {
    .quote {
        padding: 1rem;
        gap: 0.85rem;
    }
    .quote blockquote {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .quote blockquote::before {
        font-size: 2rem;
    }
    .quote figcaption {
        padding-top: 0.65rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 760px) {
    .quote-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Pricing
   ============================================================ */
/* Two panels: the offer on the left, what you get on the right. A single
   narrow column left ~270px of dead gutter either side on wide screens. */
.plan {
    max-width: 64rem;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.75rem, 4vw, 3.25rem);
    padding: clamp(1.6rem, 4vw, 2.75rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.plan__lead { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.plan__included {
    padding-left: clamp(1.75rem, 4vw, 3.25rem);
    border-left: 1px solid var(--border);
}
.plan__included-title {
    margin: 0 0 1.1rem;
    color: var(--soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 860px) {
    .plan { grid-template-columns: 1fr; }
    .plan__included { padding-left: 0; padding-top: 1.75rem; border-left: 0; border-top: 1px solid var(--border); }
}

.plan__kicker { margin: 0; color: var(--soft); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.plan h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
/* An actual price, with the qualifier demoted to a subline underneath. */
.plan__price {
    /* No extra top margin — the .plan__lead flex gap already spaces it. */
    margin: 0;
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.plan__price-note { margin: 0; color: var(--soft); font-size: 0.95rem; font-weight: 600; }
.plan__lead > p:not([class]) { color: var(--muted); }
.plan__list { display: grid; gap: 0.7rem; margin: 0; }
.plan__list li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.plan__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}
.plan .btn { align-self: flex-start; }

.org {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    margin-top: clamp(3rem, 6vw, 5rem);
}
.org h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.org__items { display: grid; gap: 1rem; }
.org__items article {
    padding: clamp(1.3rem, 2.5vw, 1.7rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.org__items h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.org__items p { color: var(--muted); }

@media (min-width: 860px) {
    .org { grid-template-columns: 1fr 1.05fr; }
}

/* ============================================================
   Resources
   ============================================================ */
.subhead {
    margin: 0 0 1.5rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.subhead--gap { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.book {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.book__cover {
    width: min(13rem, 60vw);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.7rem;
    box-shadow: 0 18px 45px rgba(35, 77, 111, 0.22);
}
.book__meta { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 1.1rem; }
.book__meta h3 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
.book__meta > p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--pill);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

@media (min-width: 720px) {
    .book { grid-template-columns: 13rem 1fr; justify-items: start; align-items: start; }
}

/* Reviews live inside the book card */
.reviews { margin-top: 1rem; }
.reviews__title { margin: 0 0 1rem; color: var(--soft); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.review {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.review blockquote {
    margin: 0;
    flex: 1;
    color: var(--text);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.55;
}
.review blockquote::before {
    content: "\201C";
    display: block;
    margin-bottom: 0.1rem;
    color: var(--accent);
    font-size: 2.4rem;
    line-height: 0.3;
    font-weight: 800;
}
.review cite {
    display: block;
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
}
.review cite span { display: block; margin-top: 0.2rem; font-weight: 500; color: var(--muted); }

@media (max-width: 759px) {
    .review {
        padding: 1rem;
    }
    .review blockquote {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    .review blockquote::before {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    .review cite {
        margin-top: auto;
        padding-top: 0.65rem;
        font-size: 0.8rem;
    }
}

/* On mobile, break the reviews carousel to full book-card width */
@media (max-width: 719px) {
    .book {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    .book__meta {
        padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
    }
    .book .reviews {
        margin-left: calc(-1 * clamp(1.5rem, 4vw, 2.5rem));
        margin-right: calc(-1 * clamp(1.5rem, 4vw, 2.5rem));
        margin-bottom: calc(-1 * clamp(1.5rem, 4vw, 2.5rem));
    }
    .book .carousel__viewport {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .book .reviews__title {
        padding-left: 1rem;
    }
    .book .review {
        background: transparent;
        border: none;
        border-radius: 0;
    }
}

/* Articles */
.article {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article__badge {
    flex-shrink: 0;
    padding: 0.32rem 0.75rem;
    border: 1px solid rgba(35, 77, 111, 0.22);
    border-radius: var(--pill);
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.article__body { flex: 1 1 16rem; min-width: 0; }
.article__body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.article__body > p { color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.article__source { margin-top: 0.5rem; color: var(--soft); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.article__arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(24, 33, 31, 0.06);
    color: var(--text);
    transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.article:hover .article__arrow { background: var(--text); color: #fffdf8; }

/* Blogs placeholder */
.coming {
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
}
.coming h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.coming p { max-width: 42ch; margin: 0 auto; color: var(--muted); }
.coming__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.coming__tags span {
    padding: 0.32rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--pill);
    color: var(--soft);
    font-size: 0.82rem;
    font-weight: 650;
}

/* ============================================================
   About / team
   ============================================================ */
.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    align-items: start;
}
.about-split h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.about-split__text { display: grid; gap: 1rem; }
.about-split__text p { color: var(--muted); font-size: 1.05rem; }

@media (min-width: 860px) {
    .about-split { grid-template-columns: 1fr 1.05fr; align-items: center; }
}

.team {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.member {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 1.8rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.member__photo {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 1.2rem;
    margin-bottom: 1.4rem;
}
.member__role { margin: 0 0 0.35rem; color: var(--soft); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.member h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.member p { color: var(--muted); }
.member__link { margin-top: 1.3rem; color: var(--accent); font-weight: 700; }
.member__link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* Collaborate */
.collab {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.collab h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.collab p { margin-top: 0.7rem; max-width: 52ch; color: var(--muted); }

@media (min-width: 760px) {
    .collab { grid-template-columns: 1fr auto; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.25rem);
    border-radius: 1.5rem;
    background: var(--text);
    color: #fffdf8;
}
.cta .eyebrow { color: #fffdf8; opacity: 0.66; }
.cta h2 { color: #fffdf8; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta p { margin-top: 0.9rem; max-width: 58ch; color: rgba(255, 253, 248, 0.8); font-size: 1.08rem; line-height: 1.6; }

@media (min-width: 820px) {
    .cta { grid-template-columns: 1fr auto; gap: 2.5rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: clamp(2.75rem, 5vw, 3.5rem) 0 2rem;
    background: var(--footer-bg);
    color: var(--footer-text);
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top img { height: 1.45rem; width: auto; margin-bottom: 0.9rem; }
.footer-top p { max-width: 28rem; color: var(--footer-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; }
.footer-nav a { color: var(--footer-muted); font-size: 0.92rem; font-weight: 450; }
.footer-nav a:hover { color: var(--footer-text); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 1.4rem;
    color: var(--footer-muted);
    font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--footer-text); text-decoration: underline; }

@media (min-width: 720px) {
    .footer-top { grid-template-columns: 1fr auto; align-items: start; }
    .footer-nav { justify-content: flex-end; }
}

/* ============================================================
   Video modal
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 26, 24, 0.72); }
.modal__panel {
    position: relative;
    width: min(100%, 920px);
    max-height: calc(100dvh - 2.5rem);
    overflow: auto;
    padding: 1.25rem;
    border-radius: 1.2rem;
    background: #fffdf8;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.modal__panel h2 { margin: 0 3rem 1rem 0; font-size: 1.6rem; }
.modal__panel video { width: 100%; border-radius: var(--radius-sm); background: #111; }
.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
}

/* ============================================================
   Reveal-on-scroll (only hides when JS is active)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
