/* =============================================================
   Kids Beachhead landing page (/kids)
   Scoped under the .kbh- prefix. Mobile-first: base rules target the
   small screen, min-width media queries scale up. Colors reference the
   brand tokens in brand-tokens.css and the five live journey accents.
   ============================================================= */

.kbh-shell {
    /* brand + journey accents */
    --kbh-blue: #00B4FF;
    --kbh-blue-deep: #0090cc;
    --kbh-orange: #FFAA00;
    --kbh-coral: #FF6B5B;   /* Travel the World */
    --kbh-green: #2EB872;   /* How Things Work */
    --kbh-rose: #FF80AB;    /* Big Feelings and Growing Up */

    /* neutrals */
    --kbh-ink: #0e2433;
    --kbh-slate: #3f5566;
    --kbh-mist: #f3f9fd;
    --kbh-line: #e3eef5;
    --kbh-white: #ffffff;
    --kbh-deep: #012d42;
    --kbh-deep-2: #01435f;

    --kbh-radius: 18px;
    --kbh-radius-lg: 26px;
    --kbh-shadow: 0 12px 34px rgba(14, 36, 51, .09);
    --kbh-shadow-sm: 0 6px 16px rgba(14, 36, 51, .07);
    --kbh-maxw: 1080px;

    color: var(--kbh-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: var(--kbh-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.kbh-shell *,
.kbh-shell *::before,
.kbh-shell *::after {
    box-sizing: border-box;
}

.kbh-wrap {
    max-width: var(--kbh-maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.kbh-shell h1,
.kbh-shell h2,
.kbh-shell h3,
.kbh-shell h4 {
    line-height: 1.16;
    letter-spacing: -.01em;
    margin: 0;
}

.kbh-shell h1 {
    font-size: clamp(2rem, 6.4vw, 3.3rem);
    font-weight: 800;
}

.kbh-shell h2 {
    font-size: clamp(1.55rem, 4.6vw, 2.2rem);
    font-weight: 800;
}

.kbh-shell p {
    color: var(--kbh-slate);
    font-size: 1.05rem;
    margin: 0;
}

/* ---- buttons ---- */
.kbh-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--kbh-orange);
    color: #3a2600;
    font-weight: 800;
    padding: 15px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-size: 1.02rem;
    line-height: 1;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 6px 16px rgba(255, 170, 0, .3);
}

.kbh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 170, 0, .4);
    color: #3a2600;
}

.kbh-btn-ghost {
    background: transparent;
    color: var(--kbh-blue-deep);
    box-shadow: none;
    border: 2px solid var(--kbh-blue);
    padding: 13px 24px;
}

.kbh-btn-ghost:hover {
    background: rgba(0, 180, 255, .08);
    color: var(--kbh-blue-deep);
}

.kbh-btn-light {
    background: var(--kbh-white);
    color: var(--kbh-blue-deep);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.kbh-btn-light:hover {
    color: var(--kbh-blue-deep);
}

/* ---- section scaffolding ---- */
.kbh-section {
    padding: 52px 0;
}

.kbh-alt {
    background: var(--kbh-mist);
    border-top: 1px solid var(--kbh-line);
    border-bottom: 1px solid var(--kbh-line);
}

.kbh-center {
    text-align: center;
    max-width: 40em;
    margin: 0 auto 32px;
}

.kbh-center p {
    font-size: 1.08rem;
}

.kbh-eyebrow {
    display: inline-block;
    background: rgba(0, 180, 255, .12);
    color: var(--kbh-blue-deep);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* =================== HERO =================== */
.kbh-hero {
    background: linear-gradient(168deg, #eaf7ff 0%, #fff6e9 70%, #fff 100%);
    /* The global NavSelector is position:fixed and overlays the hero. It scales
       with width (about 65px on phones up to ~91px on desktop), so the base clears
       the tallest it reaches in the mobile range (~80px near the 760px breakpoint)
       with room to spare; the >=760px override below clears the full 91px. */
    padding: calc(96px + env(safe-area-inset-top)) 0 54px;
    border-bottom: 1px solid var(--kbh-line);
}

.kbh-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.kbh-hero p.kbh-lead {
    font-size: 1.16rem;
    margin: 16px 0 24px;
    max-width: 32em;
}

.kbh-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.kbh-price-note {
    font-size: .94rem;
    color: var(--kbh-slate);
    margin-top: 16px;
    max-width: 34em;
}

.kbh-price-note b {
    color: var(--kbh-ink);
}

/* reading-loop card */
.kbh-loop {
    background: var(--kbh-white);
    border: 1px solid var(--kbh-line);
    border-radius: var(--kbh-radius-lg);
    box-shadow: var(--kbh-shadow);
    padding: 22px;
}

.kbh-loop-stack {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.kbh-loop-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border-radius: 14px;
    background: var(--kbh-mist);
    border: 1px solid var(--kbh-line);
}

.kbh-loop-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
}

.kbh-loop-badge svg {
    width: 24px;
    height: 24px;
}

.kbh-bg-read { background: var(--kbh-blue); }
.kbh-bg-listen { background: var(--kbh-orange); color: #3a2600; }
.kbh-bg-win { background: var(--kbh-green); }

.kbh-loop-row .kbh-t {
    font-weight: 700;
    color: var(--kbh-ink);
    font-size: 1rem;
}

.kbh-loop-row .kbh-s {
    font-size: .86rem;
    color: var(--kbh-slate);
}

.kbh-pill {
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1a5e36;
    background: rgba(46, 184, 114, .16);
    padding: 4px 9px;
    border-radius: 999px;
    margin-left: auto;
    flex: none;
}

.kbh-loop-foot {
    font-size: .86rem;
    margin-top: 14px;
    text-align: center;
}

/* =================== METHOD =================== */
.kbh-three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.kbh-card {
    background: var(--kbh-white);
    border: 1px solid var(--kbh-line);
    border-radius: var(--kbh-radius);
    padding: 24px;
    box-shadow: var(--kbh-shadow-sm);
}

.kbh-card .kbh-k {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--kbh-blue-deep);
    margin-bottom: 6px;
}

.kbh-card h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.kbh-card p {
    font-size: .97rem;
}

/* =================== WHAT'S INSIDE =================== */
/* Two core teach-to-read journeys, presented as feature cards. */
.kbh-core {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.kbh-journey {
    border: 1px solid var(--kbh-line);
    border-radius: var(--kbh-radius-lg);
    background: var(--kbh-white);
    box-shadow: var(--kbh-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* the accent "cover" panel that carries the character art */
.kbh-cover {
    position: relative;
    min-height: 168px;
    display: grid;
    place-items: center;
    padding: 22px;
    color: #fff;
    overflow: hidden;
}

.kbh-cover svg {
    width: 100%;
    height: auto;
    max-width: 260px;
}

/* Real lead-book cover fan (up to 3 spines) shown on the accent panel when the
   journey is published with covers; replaces the placeholder emblem. */
.kbh-fan {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kbh-fan-spine {
    width: 78px;
    height: 112px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(14, 36, 51, .3);
}

.kbh-fan-spine:not(:first-child) {
    margin-left: -24px;
}

.kbh-fan-spine:nth-child(1) { transform: rotate(-8deg); z-index: 1; }
.kbh-fan-spine:nth-child(2) { transform: translateY(-4px); z-index: 3; }
.kbh-fan-spine:nth-child(3) { transform: rotate(8deg); z-index: 2; }
.kbh-fan-spine:only-child { transform: none; }

.kbh-cover-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .9);
    color: var(--kbh-ink);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}

/* The journey's real age band (e.g. "Ages 4-6"), top-right on the accent panel. */
.kbh-cover-age {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(14, 36, 51, .28);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 5px 11px;
    border-radius: 999px;
}

.kbh-cover-blue { background: linear-gradient(150deg, #00B4FF, #0090cc); }
.kbh-cover-orange { background: linear-gradient(150deg, #FFC04D, #FFAA00); }
.kbh-cover-coral { background: linear-gradient(150deg, #FF8a7d, #FF6B5B); }
.kbh-cover-green { background: linear-gradient(150deg, #54cf90, #2EB872); }
.kbh-cover-rose { background: linear-gradient(150deg, #ffa0c2, #FF80AB); }

.kbh-journey-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.kbh-journey-body h3 {
    font-size: 1.32rem;
}

.kbh-journey-kicker {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kbh-ac-blue { color: var(--kbh-blue-deep); }
.kbh-ac-orange { color: #b87a00; }
.kbh-ac-coral { color: #d44b3c; }
.kbh-ac-green { color: #1f8a55; }
.kbh-ac-rose { color: #c25683; }

.kbh-journey-body p {
    font-size: .98rem;
}

/* the wedge: games made from the same book's words */
.kbh-wedge {
    margin-top: 6px;
    border-radius: 14px;
    background: rgba(0, 180, 255, .07);
    border: 1px solid rgba(0, 180, 255, .2);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.kbh-wedge svg {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--kbh-blue-deep);
    margin-top: 2px;
}

.kbh-wedge b {
    color: var(--kbh-ink);
    display: block;
    margin-bottom: 2px;
    font-size: .98rem;
}

.kbh-wedge span {
    font-size: .9rem;
    color: var(--kbh-slate);
}

/* read-aloud band */
.kbh-readaloud {
    background: var(--kbh-white);
    border: 1px solid var(--kbh-line);
    border-radius: var(--kbh-radius-lg);
    box-shadow: var(--kbh-shadow-sm);
    padding: 24px;
    margin-bottom: 22px;
}

.kbh-readaloud-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.kbh-readaloud-ic {
    width: 50px;
    height: 50px;
    flex: none;
    border-radius: 14px;
    background: rgba(255, 107, 91, .14);
    color: var(--kbh-coral);
    display: grid;
    place-items: center;
}

.kbh-readaloud-ic svg {
    width: 28px;
    height: 28px;
}

.kbh-readaloud-head h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.kbh-readaloud-head p {
    font-size: .98rem;
}

.kbh-stories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.kbh-story {
    border: 1px solid var(--kbh-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--kbh-white);
    display: flex;
    flex-direction: column;
}

.kbh-story-cover {
    height: 130px;
    display: grid;
    place-items: center;
    color: #fff;
    padding: 12px;
}

.kbh-story-cover svg {
    width: 100%;
    max-width: 150px;
    height: auto;
}

/* Real lead cover for a published read-aloud journey, on the card's surface. */
.kbh-story-img {
    width: 78px;
    height: 110px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 6px 14px rgba(14, 36, 51, .22);
    background: #fff;
}

/* Tinted badge when a real read-aloud journey carries no cover yet. */
.kbh-story-emblem {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.kbh-story-emblem svg {
    width: 34px;
    height: 34px;
}

.kbh-story-body {
    padding: 14px 16px 18px;
}

.kbh-story-body h4 {
    font-size: 1.02rem;
    margin-bottom: 3px;
}

.kbh-story-body p {
    font-size: .88rem;
}

.kbh-coming {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: .82rem;
    color: var(--kbh-slate);
    background: var(--kbh-mist);
    border: 1px solid var(--kbh-line);
    padding: 7px 13px;
    border-radius: 999px;
}

.kbh-coming b {
    color: var(--kbh-ink);
}

/* reward stickers */
.kbh-rewards {
    border: 1px solid var(--kbh-line);
    border-radius: var(--kbh-radius-lg);
    background: linear-gradient(150deg, #fff8ec, #fffdf8);
    box-shadow: var(--kbh-shadow-sm);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
}

.kbh-rewards h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.kbh-rewards p {
    font-size: .97rem;
}

.kbh-sticker-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.kbh-sticker {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--kbh-shadow-sm);
    border: 3px solid #fff;
}

.kbh-sticker svg {
    width: 42px;
    height: 42px;
    color: #fff;
}

/* =================== A PEEK AT THE LIBRARY =================== */
/* Real book covers (a horizontal shelf) and a real kids-audiobook row built
   from BookCard. Both sections only render when their data source returns
   something, so the page never shows an empty shelf. */
.kbh-shelf {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.kbh-shelf-cover {
    flex: 0 0 auto;
    width: 104px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--kbh-shadow-sm);
    background: var(--kbh-mist);
    scroll-snap-align: start;
}

.kbh-listen {
    margin-top: 30px;
}

.kbh-listen-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 18px;
}

.kbh-listen-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.kbh-listen-item {
    flex: 0 0 140px;
    width: 140px;
}

/* =================== WHY FAMILIES =================== */
.kbh-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.kbh-why-item {
    padding: 20px;
    border-radius: 16px;
    background: var(--kbh-white);
    border: 1px solid var(--kbh-line);
    box-shadow: var(--kbh-shadow-sm);
}

.kbh-why-item.kbh-why-lead {
    border-color: rgba(0, 180, 255, .35);
    background: linear-gradient(160deg, #f1faff, #fff);
}

.kbh-why-ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: rgba(0, 180, 255, .12);
    color: var(--kbh-blue-deep);
}

.kbh-why-ic svg {
    width: 26px;
    height: 26px;
}

.kbh-why-item b {
    display: block;
    color: var(--kbh-ink);
    margin-bottom: 4px;
    font-size: 1.04rem;
}

.kbh-why-item span {
    font-size: .93rem;
    color: var(--kbh-slate);
}

/* =================== OFFER =================== */
.kbh-offer {
    background: linear-gradient(160deg, var(--kbh-deep), var(--kbh-deep-2));
    color: #fff;
    border-radius: var(--kbh-radius-lg);
    padding: 36px 24px;
    text-align: center;
}

.kbh-offer h2 {
    color: #fff;
}

.kbh-offer p {
    color: #bfe6f7;
}

.kbh-offer-tag {
    display: inline-block;
    background: rgba(255, 170, 0, .16);
    color: var(--kbh-orange);
    font-weight: 800;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: .82rem;
    margin-bottom: 16px;
}

.kbh-offer-price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 8px 0 2px;
    line-height: 1;
}

.kbh-offer-price span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #bfe6f7;
}

.kbh-offer-sub {
    margin: 12px auto 22px;
    max-width: 32em;
}

.kbh-offer-fine {
    font-size: .82rem;
    color: #8fc3dc;
    margin-top: 16px;
}

/* =================== FAQ =================== */
.kbh-faq {
    max-width: 760px;
    margin: 0 auto;
}

.kbh-faq details {
    background: var(--kbh-white);
    border: 1px solid var(--kbh-line);
    border-radius: 14px;
    padding: 2px 18px;
    margin-bottom: 12px;
}

.kbh-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--kbh-ink);
    padding: 16px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 1.04rem;
}

.kbh-faq summary::-webkit-details-marker {
    display: none;
}

/* Firefox renders a native disclosure triangle via the list marker; the custom
   plus/minus affordance below replaces it, so suppress the default. */
.kbh-faq summary::marker {
    content: "";
}

.kbh-faq summary::after {
    content: "+";
    color: var(--kbh-blue);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    flex: none;
}

.kbh-faq details[open] summary::after {
    content: "\2212"; /* minus sign: the collapse affordance for an open item */
}

.kbh-faq details p {
    padding: 0 0 18px;
    font-size: .97rem;
}

/* =================== CLOSING CTA =================== */
/* No wordmark here: the global site footer (rendered by the layout below) owns
   the unQbd logo and tagline, so this is a plain final call to action. */
.kbh-closing {
    text-align: center;
    padding: 48px 0 56px;
}

.kbh-closing-inner {
    max-width: 34em;
    margin: 0 auto;
}

.kbh-closing-inner h2 {
    margin-bottom: 10px;
}

.kbh-closing-inner p {
    margin-bottom: 22px;
}

/* =================== responsive =================== */
@media (min-width: 760px) {
    .kbh-wrap { padding: 0 24px; }
    .kbh-section { padding: 60px 0; }

    /* The fixed nav stays about 91px tall at tablet/desktop width, so clear it. */
    .kbh-hero { padding-top: 140px; }

    .kbh-three { grid-template-columns: repeat(3, 1fr); }
    .kbh-core { grid-template-columns: 1fr 1fr; }
    .kbh-stories { grid-template-columns: repeat(3, 1fr); }
    .kbh-why { grid-template-columns: repeat(2, 1fr); }

    .kbh-rewards {
        grid-template-columns: 1.1fr .9fr;
        padding: 30px;
    }

    .kbh-offer { padding: 44px; }

    .kbh-shelf-cover { width: 116px; height: 168px; }
    .kbh-listen-item { flex-basis: 156px; width: 156px; }
}

@media (min-width: 1000px) {
    .kbh-hero { padding: 140px 0 68px; }
    .kbh-hero-grid {
        grid-template-columns: 1.12fr .88fr;
        gap: 46px;
    }
    .kbh-why { grid-template-columns: repeat(4, 1fr); }
}

/* =================== dark mode =================== */
/* The site toggles dark mode by adding .dark-mode to <html> (client) and
   <body> (server prerender). Keep the marketing page legible under both. */
html.dark-mode .kbh-shell,
body.dark-mode .kbh-shell {
    --kbh-ink: #eaf2f8;
    --kbh-slate: #a9bccb;
    --kbh-mist: #16242e;
    --kbh-line: #2a3b47;
    --kbh-white: #0f1b22;
    background: #0b151b;
}

html.dark-mode .kbh-hero,
body.dark-mode .kbh-hero {
    background: linear-gradient(168deg, #122a34 0%, #1c2620 70%, #0f1b22 100%);
}

html.dark-mode .kbh-eyebrow,
body.dark-mode .kbh-eyebrow {
    background: rgba(0, 180, 255, .18);
    color: #8fdcff;
}

html.dark-mode .kbh-card,
body.dark-mode .kbh-card,
html.dark-mode .kbh-journey,
body.dark-mode .kbh-journey,
html.dark-mode .kbh-readaloud,
body.dark-mode .kbh-readaloud,
html.dark-mode .kbh-story,
body.dark-mode .kbh-story,
html.dark-mode .kbh-why-item,
body.dark-mode .kbh-why-item,
html.dark-mode .kbh-loop,
body.dark-mode .kbh-loop {
    background: #11202a;
    border-color: #2a3b47;
}

html.dark-mode .kbh-why-item.kbh-why-lead,
body.dark-mode .kbh-why-item.kbh-why-lead {
    background: linear-gradient(160deg, #13303d, #11202a);
}

html.dark-mode .kbh-rewards,
body.dark-mode .kbh-rewards {
    background: linear-gradient(150deg, #23271c, #14201a);
    border-color: #2a3b47;
}

html.dark-mode .kbh-wedge,
body.dark-mode .kbh-wedge {
    background: rgba(0, 180, 255, .1);
    border-color: rgba(0, 180, 255, .28);
}

html.dark-mode .kbh-coming,
body.dark-mode .kbh-coming {
    background: #16242e;
    border-color: #2a3b47;
}
