/* Children's book publishing — storybook layout, scoped to this page. */
.cbp {
    --cbp-ink: #241910;
    --cbp-muted: #5c4d42;
    --cbp-cream: #fff6ea;
    --cbp-paper: #fffaf3;
    --cbp-coral: #c44732;
    --cbp-sun: #f2b544;
    --cbp-sky: #6eb7d6;
    --cbp-leaf: #1f6b4d;
    --cbp-lilac: #6d548f;
    --cbp-navy: #143044;
    --cbp-line: rgba(36, 25, 16, 0.12);
    --cbp-display: "Fraunces", "Libertinus Serif", serif;
    --cbp-sans: "Nunito", "Archivo", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(242, 181, 68, 0.18), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(110, 183, 214, 0.16), transparent 26%),
        var(--cbp-cream);
    color: var(--cbp-ink);
    font-family: var(--cbp-sans);
    position: relative;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

.cbp .bi-container {
    max-width: 1180px;
    /* Keep side gutters; section blocks own their vertical spacing. */
    padding: 0 clamp(20px, 5vw, 28px);
}

.cbp *,
.cbp *::before,
.cbp *::after {
    box-sizing: border-box;
}

.cbp img {
    max-width: 100%;
    height: auto;
}

.cbp h1,
.cbp h2,
.cbp h3,
.cbp p,
.cbp a,
.cbp button,
.cbp label,
.cbp input,
.cbp select,
.cbp textarea,
.cbp summary {
    font-family: var(--cbp-sans);
}

.cbp h1,
.cbp h2,
.cbp h3 {
    font-family: var(--cbp-display);
    font-weight: 560;
    letter-spacing: -0.03em;
    color: var(--cbp-ink);
}

.cbp p {
    margin: 0;
    color: var(--cbp-muted);
    font-size: 14px;
    line-height: 1.65;
}

.cbp :focus-visible {
    outline: 3px solid var(--cbp-navy);
    outline-offset: 3px;
}

.cbp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--cbp-coral);
    font-family: var(--cbp-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cbp-section {
    position: relative;
    padding: 88px 0;
}

.cbp-section-head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.cbp-section-head h2,
.cbp-spread h2,
.cbp-consult h2,
.cbp-close h2,
.cbp-form-copy h2 {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.cbp-section-head p {
    margin: 16px auto 0;
    max-width: 640px;
}

.cbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cbp-btn:hover {
    transform: translateY(-2px);
}

.cbp-btn-primary {
    background: var(--cbp-coral);
    color: #fff;
    box-shadow: 0 10px 0 #8d2f22;
}

.cbp-btn-primary:hover {
    background: #a83828;
    color: #fff;
}

.cbp-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.cbp-btn-ink {
    background: #fff;
    color: var(--cbp-ink);
    border-color: var(--cbp-ink);
}

.cbp-hero {
    position: relative;
    padding: 138px 0 150px;
    background:
        radial-gradient(820px 360px at 78% 18%, rgba(242, 181, 68, 0.45), transparent 62%),
        radial-gradient(640px 320px at 8% 0%, rgba(110, 183, 214, 0.28), transparent 60%),
        linear-gradient(180deg, #102838 0%, #1b4d68 22%, #3d8aaa 48%, #f3c48a 76%, #fff6ea 100%);
    overflow: hidden;
}

.cbp-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cbp-cloud,
.cbp-star,
.cbp-plane {
    position: absolute;
    display: block;
}

.cbp-cloud {
    height: 46px;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 40px;
    animation: cbp-drift 18s ease-in-out infinite;
}

.cbp-cloud::before,
.cbp-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cbp-cloud::before {
    width: 34px;
    height: 34px;
    left: 14px;
    top: -16px;
}

.cbp-cloud::after {
    width: 48px;
    height: 48px;
    left: 38px;
    top: -24px;
}

.cbp-cloud-a { width: 110px; top: 92px; left: 6%; animation-duration: 16s; }
.cbp-cloud-b { width: 78px; top: 150px; right: 8%; animation-duration: 21s; animation-delay: -4s; }
.cbp-cloud-c { width: 64px; top: 54px; left: 42%; opacity: 0.7; animation-duration: 24s; }

.cbp-star {
    width: 10px;
    height: 10px;
    background: #fff6c8;
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
    animation: cbp-twinkle 2.8s ease-in-out infinite;
}

.cbp-star-a { top: 120px; left: 28%; }
.cbp-star-b { top: 70px; right: 22%; animation-delay: -1s; }
.cbp-star-c { top: 190px; left: 18%; width: 7px; height: 7px; animation-delay: -1.6s; }

.cbp-plane {
    top: 210px;
    left: -80px;
    width: 54px;
    height: 54px;
    color: #fff;
    animation: cbp-fly 22s linear infinite;
}

.cbp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.cbp-hero-copy {
    padding: 32px 32px 28px;
    background: rgba(255, 250, 243, 0.94);
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(16, 40, 56, 0.18);
}

.cbp-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cbp-muted);
    font-size: 14px;
    font-weight: 700;
}

.cbp-crumb a {
    color: var(--cbp-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cbp-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.08;
}

.cbp-hero h1 em {
    font-style: italic;
    font-weight: 560;
    color: var(--cbp-coral);
}

.cbp-hero-copy .cbp-lead {
    max-width: 36em;
    margin-top: 14px;
    color: var(--cbp-ink);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.55;
}

.cbp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.cbp-trust li {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--cbp-ink);
    font-size: 13px;
    font-weight: 800;
}

.cbp-trust li:nth-child(1) { background: #ffe1d8; }
.cbp-trust li:nth-child(2) { background: #fff0c9; }
.cbp-trust li:nth-child(3) { background: #d9f1ea; }

.cbp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cbp-hills {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 150px;
}

.cbp-hero-stage {
    position: relative;
    min-height: 640px;
}

.cbp-stage-cover {
    position: absolute;
    z-index: 1;
    height: auto;
    border-radius: 6px 14px 14px 6px;
    border: 6px solid #fffaf3;
    box-shadow: 0 22px 40px rgba(16, 40, 56, 0.3);
}

.cbp-stage-cover-a {
    top: 6px;
    left: 0;
    width: 36%;
    transform: rotate(-11deg);
    animation: cbp-sway-a 8s ease-in-out infinite;
}

.cbp-stage-cover-b {
    right: 0;
    bottom: 36px;
    width: 34%;
    transform: rotate(9deg);
    animation: cbp-sway-b 9s ease-in-out infinite;
}

.cbp-hero-stage .cbp-frame {
    position: absolute;
    top: 140px;
    left: 8%;
    z-index: 2;
    width: 84%;
}

.cbp-bubble {
    position: absolute;
    top: 52px;
    right: 2%;
    z-index: 3;
    margin: 0;
    padding: 14px 22px;
    background: #fffaf3;
    border-radius: 26px;
    color: var(--cbp-ink);
    font-family: var(--cbp-display);
    font-size: 24px;
    font-style: italic;
    box-shadow: 0 12px 0 rgba(16, 40, 56, 0.14);
    animation: cbp-bob 5.5s ease-in-out infinite;
}

.cbp-bubble::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 30px;
    width: 26px;
    height: 20px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 10% 100%);
}

.cbp-stage-card {
    position: absolute;
    left: -10px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    padding: 14px 18px;
    background: #fffaf3;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(16, 40, 56, 0.22);
    color: var(--cbp-muted);
    font-size: 13px;
    line-height: 1.35;
    animation: cbp-bob 6.5s ease-in-out -2s infinite;
}

.cbp-stage-card strong {
    display: block;
    color: var(--cbp-ink);
    font-size: 15px;
}

.cbp-spines {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    flex: 0 0 auto;
}

.cbp-spines i {
    display: block;
    width: 10px;
    border-radius: 3px;
}

.cbp-spines i:nth-child(1) { height: 26px; background: var(--cbp-coral); }
.cbp-spines i:nth-child(2) { height: 34px; background: var(--cbp-sun); }
.cbp-spines i:nth-child(3) { height: 30px; background: var(--cbp-sky); }
.cbp-spines i:nth-child(4) { height: 38px; background: var(--cbp-leaf); transform: rotate(8deg); }

.cbp-stage-sun {
    position: absolute;
    top: -26px;
    left: 38%;
    width: 84px;
    animation: cbp-spin 26s linear infinite;
}

.cbp-stage-arrow {
    position: absolute;
    top: 82px;
    left: 30%;
    z-index: 3;
    width: 120px;
    transform: rotate(14deg);
}

.cbp-stage-boat {
    position: absolute;
    right: 34%;
    bottom: -6px;
    z-index: 3;
    width: 110px;
    animation: cbp-rock 4.5s ease-in-out infinite;
}

.cbp-frame {
    position: relative;
    padding: 14px;
    background: var(--cbp-paper);
    border-radius: 36px 48px 32px 44px;
    box-shadow: 0 28px 50px rgba(16, 40, 56, 0.24);
    transform: rotate(2.2deg);
    animation: cbp-float 6.5s ease-in-out infinite;
}

.cbp-frame::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 92px;
    height: 28px;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(242, 181, 68, 0.92);
    border-radius: 3px;
}

.cbp-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px 32px 22px 28px;
}

.cbp-seal {
    position: absolute;
    left: -26px;
    top: -34px;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    padding: 12px;
    border-radius: 50%;
    background: var(--cbp-sun);
    color: var(--cbp-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transform: rotate(8deg);
    box-shadow: 0 10px 0 rgba(36, 25, 16, 0.12);
    animation: cbp-wobble 4.5s ease-in-out infinite;
}

.cbp-ribbon {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 28px 0 18px;
    background: #fffdf7;
    color: var(--cbp-ink);
}

.cbp-ribbon-kicker {
    max-width: 42em;
    margin: 0 0 26px;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: none;
}

.cbp-ribbon-break {
    display: none;
}

.cbp-ribbon-marquee {
    width: 100%;
    overflow: hidden;
}

.cbp-ribbon-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: cbp-trust-scroll 32s linear infinite;
    will-change: transform;
}

.cbp-ribbon:hover .cbp-ribbon-track {
    animation-play-state: paused;
}

.cbp-ribbon-group {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-around;
    gap: clamp(48px, 6vw, 96px);
    box-sizing: border-box;
    min-width: 100vw;
    padding-inline: clamp(24px, 3vw, 48px);
}

.cbp-ribbon-icon {
    display: block;
    flex: none;
    width: auto;
    max-width: 180px;
    height: clamp(36px, 4.2vw, 50px);
    object-fit: contain;
}

@keyframes cbp-trust-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-33.333%, 0, 0); }
}

.cbp-ages,
.cbp-formats,
.cbp-steps,
.cbp-covers-grid,
.cbp-benefits {
    display: grid;
    gap: 18px;
}

.cbp-ages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cbp-age,
.cbp-format,
.cbp-benefit,
.cbp-cover,
.cbp-step,
.cbp-faq-item {
    border: 0;
    border-radius: 28px;
}

.cbp-age {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 210px;
    padding: 22px;
    text-align: left;
    color: var(--cbp-ink);
    cursor: pointer;
    box-shadow: 0 10px 0 rgba(36, 25, 16, 0.08);
    transition: transform 0.2s ease;
}

.cbp-age:hover,
.cbp-age.is-selected {
    transform: translateY(-6px) rotate(-1deg);
}

.cbp-age.is-selected {
    outline: 3px solid var(--cbp-ink);
}

.cbp-age-1 { background: #ffd9cf; }
.cbp-age-2 { background: #ffe7ad; }
.cbp-age-3 { background: #d7f0fb; }
.cbp-age-4 { background: #d7f3e4; }

.cbp-age svg {
    width: 42px;
    height: 42px;
}

.cbp-age strong,
.cbp-format h3,
.cbp-stop h3,
.cbp-benefit h3,
.cbp-step h3,
.cbp-cover h3 {
    font-family: var(--cbp-display);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 560;
}

.cbp-age span,
.cbp-step p,
.cbp-format p,
.cbp-stop p,
.cbp-benefit p,
.cbp-cover p {
    font-size: 15px;
    line-height: 1.5;
}

.cbp-formats {
    grid-template-columns: 1fr 1fr;
}

.cbp-format {
    padding: 32px;
    background: var(--cbp-paper);
    box-shadow: inset 0 0 0 2px var(--cbp-line);
}

.cbp-format:first-child { background: #fff4ea; }
.cbp-format:last-child { background: #eef8f4; }

.cbp-format h3 { margin: 0 0 10px; }

.cbp-trail {
    position: relative;
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.cbp-trail-wrap {
    --cbp-progress: 1;
    position: relative;
}

.cbp-trail-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, rgba(196, 71, 50, 0.25) 0 12px, transparent 12px 22px);
    border-radius: 4px;
}

.cbp-trail-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--cbp-coral), var(--cbp-sun) 50%, var(--cbp-leaf));
    border-radius: 4px;
    transform: scaleY(var(--cbp-progress));
    transform-origin: top center;
}

.cbp-trail-plane {
    position: absolute;
    top: calc(var(--cbp-progress) * 100%);
    left: 50%;
    z-index: 2;
    width: 72px;
    transform: translate(-50%, -50%) rotate(118deg);
}

.cbp-trail-plane .t { display: none; }

.cbp-stop {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.cbp-stop-copy {
    padding: 26px;
    background: var(--cbp-paper);
    border-radius: 28px;
    box-shadow: 0 12px 0 rgba(36, 25, 16, 0.06);
}

.cbp-stop-gap {
    display: block;
    width: 76px;
    height: 1px;
    margin-inline: auto;
}

.cbp-stop:nth-child(odd) .cbp-stop-copy { grid-column: 1; text-align: left; }
.cbp-stop:nth-child(odd) .cbp-stop-gap { grid-column: 2; }
.cbp-stop:nth-child(odd) .cbp-stop-art { grid-column: 3; }
.cbp-stop:nth-child(even) .cbp-stop-art { grid-column: 1; }
.cbp-stop:nth-child(even) .cbp-stop-gap { grid-column: 2; }
.cbp-stop:nth-child(even) .cbp-stop-copy { grid-column: 3; }

.cbp-stop h3 { margin: 0 0 8px; }
.cbp-stop:nth-child(5n + 1) .cbp-stop-art { background: #ffd9cf; color: #9a2f1f; }
.cbp-stop:nth-child(5n + 2) .cbp-stop-art { background: #ffe7ad; color: #8a5a00; }
.cbp-stop:nth-child(5n + 3) .cbp-stop-art { background: #d7f0fb; color: #145a78; }
.cbp-stop:nth-child(5n + 4) .cbp-stop-art { background: #d7f3e4; color: #146344; }
.cbp-stop:nth-child(5n + 5) .cbp-stop-art { background: #efe4fb; color: #553f74; }

.cbp-stop-art {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 26px;
    border-radius: 28px;
    box-shadow: 0 12px 0 rgba(36, 25, 16, 0.06);
}

.cbp-stop-art span {
    font-family: var(--cbp-display);
    font-size: clamp(64px, 7vw, 96px);
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cbp-mini-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--cbp-navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Night storybook */
.cbp-night {
    position: relative;
    padding: 110px 0 190px;
    background:
        radial-gradient(700px 320px at 82% 8%, rgba(255, 233, 168, 0.16), transparent 60%),
        radial-gradient(600px 300px at 10% 70%, rgba(109, 84, 143, 0.35), transparent 60%),
        linear-gradient(180deg, #0d1f2e 0%, #143044 45%, #1b4660 100%);
    color: #fff6ea;
    overflow: hidden;
}

.cbp-night-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cbp-moon {
    position: absolute;
    top: 64px;
    right: 9%;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    box-shadow: inset -26px 10px 0 0 #ffe9a8;
    filter: drop-shadow(0 0 26px rgba(255, 233, 168, 0.55));
    animation: cbp-moon 9s ease-in-out infinite;
}

.cbp-nstar {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 9px;
    height: 9px;
    background: #fff3c4;
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
    animation: cbp-twinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d);
}

.cbp-shoot {
    position: absolute;
    top: 14%;
    left: 18%;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 243, 196, 0), #fff3c4);
    border-radius: 2px;
    opacity: 0;
    transform: rotate(18deg);
    animation: cbp-shoot 8s ease-in 2s infinite;
}

.cbp-night-hills {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 170px;
}

.cbp-night .bi-container { position: relative; z-index: 1; }

.cbp-night-head {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.cbp-night .cbp-kicker {
    background: rgba(255, 231, 173, 0.14);
    color: #ffe7ad;
}

.cbp-night-head h2 {
    margin: 16px 0 0;
    color: #fff6ea;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.06;
}

.cbp-night-head h2 span {
    display: block;
    color: var(--cbp-sun);
    font-family: var(--cbp-display);
    font-style: italic;
    font-weight: 560;
    letter-spacing: 0;
}

.cbp-night-head p {
    max-width: 600px;
    margin: 16px auto 0;
    color: rgba(255, 246, 234, 0.82);
}

.cbp-book {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 56px auto 0;
    perspective: 2200px;
}

.cbp-book::before {
    content: "";
    position: absolute;
    inset: -16px -18px -20px;
    z-index: -1;
    border-radius: 20px;
    background:
        linear-gradient(90deg, transparent 49.2%, rgba(0, 0, 0, 0.35) 50%, transparent 50.8%),
        linear-gradient(135deg, #c44732, #9b3324);
    box-shadow: 0 44px 70px rgba(0, 0, 0, 0.45);
}

.cbp-page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 540px;
    padding: 30px 36px 54px;
    background:
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 183, 214, 0.12) 31px 32px),
        var(--cbp-paper);
    color: var(--cbp-ink);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.cbp-page-left {
    border-radius: 12px 3px 3px 12px;
    box-shadow: -4px 0 0 #efe3d1, -8px 0 0 #e4d3ba, inset -38px 0 40px -30px rgba(36, 25, 16, 0.35);
    transform-origin: right center;
}

.cbp-page-right {
    border-radius: 3px 12px 12px 3px;
    box-shadow: 4px 0 0 #efe3d1, 8px 0 0 #e4d3ba, inset 38px 0 40px -30px rgba(36, 25, 16, 0.35);
    transform-origin: left center;
}

.cbp-page-art {
    position: relative;
    margin: 0 0 8px;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(36, 25, 16, 0.12);
    transform: rotate(-1.6deg);
}

.cbp-page-right .cbp-page-art { transform: rotate(1.8deg); }

.cbp-page-art::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 74px;
    height: 22px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(110, 183, 214, 0.75);
    border-radius: 2px;
}

.cbp-page-right .cbp-page-art::before { background: rgba(242, 181, 68, 0.8); }

.cbp-page-art img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.cbp-page-num {
    color: var(--cbp-coral);
    font-family: var(--cbp-display);
    font-size: 44px;
    font-style: italic;
    line-height: 1;
}

.cbp-page h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
}

.cbp-page p { font-size: 16px; }

.cbp-page-folio {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    color: var(--cbp-muted);
    font-family: var(--cbp-display);
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.cbp-book-ribbon {
    position: absolute;
    top: -16px;
    left: calc(50% + 26px);
    width: 22px;
    height: 132px;
    background: var(--cbp-sun);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
    z-index: 2;
}

.cbp-night-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    margin-top: 64px;
}

.cbp-night-themes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cbp-night-themes li {
    padding: 8px 16px;
    border: 1.5px dashed rgba(255, 246, 234, 0.45);
    border-radius: 999px;
    color: #fff6ea;
    font-family: var(--cbp-display);
    font-size: 18px;
    font-style: italic;
    animation: cbp-bob 5s ease-in-out infinite;
}

.cbp-night-themes li:nth-child(2) { animation-delay: -1s; }
.cbp-night-themes li:nth-child(3) { animation-delay: -2s; }
.cbp-night-themes li:nth-child(4) { animation-delay: -3s; }
.cbp-night-themes li:nth-child(5) { animation-delay: -4s; }

.cbp-stage {
    background: linear-gradient(180deg, rgba(255, 246, 234, 0) 0%, #fff1dc 100%);
}

.cbp-covers-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
    margin: 0 auto;
}

.cbp-cover {
    padding: 18px 18px 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 0 rgba(36, 25, 16, 0.06);
}

.cbp-cover img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 8px 14px 14px 8px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: rotate(-2deg);
    transition: transform 0.35s ease;
}

.cbp-cover:last-child img { transform: rotate(2.5deg); }
.cbp-cover:hover img { transform: rotate(0deg) translateY(-8px); }
.cbp-cover h3 { margin: 0 0 8px; }
.cbp-note {
    max-width: 680px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 14px;
}

.cbp-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    counter-reset: cbp-step;
}

.cbp-step {
    position: relative;
    padding: 22px 16px 20px;
    background: #fff;
    text-align: left;
}

.cbp-step::before {
    counter-increment: cbp-step;
    content: counter(cbp-step, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    color: var(--cbp-coral);
    font-family: var(--cbp-display);
    font-size: 28px;
}

.cbp-step:nth-child(2)::before { color: #b58108; }
.cbp-step:nth-child(3)::before { color: #1d6f93; }
.cbp-step:nth-child(4)::before { color: var(--cbp-leaf); }
.cbp-step:nth-child(5)::before { color: var(--cbp-lilac); }
.cbp-step h3 { margin: 0 0 8px; font-size: 22px; }

.cbp-consult {
    padding-top: 20px;
}

.cbp-consult-grid,
.cbp-form-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.cbp-consult-art {
    padding: 12px;
    background: #fff;
    border-radius: 36px;
    transform: rotate(-1.5deg);
    box-shadow: 0 18px 0 #ffe7ad;
}

.cbp-consult-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 28px;
}

.cbp-consult-copy .cbp-kicker { background: #d7f0fb; }
.cbp-consult-copy h2 { margin-top: 14px; }
.cbp-consult-copy p + p { margin-top: 14px; }
.cbp-consult-copy .cbp-btn { margin-top: 22px; }

.cbp-form-band {
    padding-bottom: 96px;
    scroll-margin-top: 24px;
}

.cbp-form-grid {
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(36, 25, 16, 0.08);
}

.cbp-form-copy {
    padding: 28px 18px 28px 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
        #ffd9cf;
}

.cbp-form-copy h2 { margin-top: 12px; }
.cbp-form-copy p { margin-top: 14px; color: var(--cbp-ink); }
.cbp-form-facts {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.cbp-form-facts li {
    position: relative;
    margin-top: 8px;
    padding-left: 22px;
    font-weight: 800;
}

.cbp-form-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cbp-coral);
}

.cbp-form {
    display: grid;
    gap: 14px;
    padding: 22px 18px 18px 8px;
}

.cbp-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cbp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbp-field-wide { grid-column: 1 / -1; }

.cbp-field label {
    font-size: 13px;
    font-weight: 800;
}

.cbp-field input,
.cbp-field select,
.cbp-field textarea {
    width: 100%;
    padding: 14px 14px;
    border: 2px solid #eadac8;
    border-radius: 16px;
    background: #fff;
    color: var(--cbp-ink);
    font-size: 16px;
}

.cbp-field textarea {
    min-height: 120px;
    resize: vertical;
}

.cbp-field input:focus,
.cbp-field select:focus,
.cbp-field textarea:focus {
    border-color: var(--cbp-navy);
    outline: none;
}

.cbp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cbp-form .cbp-btn { width: 100%; }
.cbp-privacy {
    margin: 0;
    font-size: 13px;
    text-align: center;
}

.cbp-faq-list {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.cbp-faq-item {
    background: #fff;
    box-shadow: 0 8px 0 rgba(36, 25, 16, 0.05);
}

.cbp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.cbp-faq-item summary::-webkit-details-marker { display: none; }

.cbp-faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--cbp-coral);
    font-family: var(--cbp-display);
    font-size: 32px;
    line-height: 1;
}

.cbp-faq-item[open] summary::after { content: "–"; }

.cbp-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
}

.cbp-close {
    padding: 88px 0 100px;
    background:
        radial-gradient(500px 180px at 10% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(120deg, #c44732 0%, #e39a3a 48%, #1d6f93 100%);
    color: #fff;
    text-align: center;
}

.cbp-close .cbp-kicker {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cbp-close h2,
.cbp-close p { color: #fff; }

.cbp-close h2 { margin: 12px auto 0; max-width: 16ch; }
.cbp-close .cbp-lead {
    max-width: 680px;
    margin: 16px auto 0;
}

.cbp-close-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.cbp-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 18px;
}

.cbp-phones a,
.cbp-address a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cbp-address {
    margin-top: 16px;
    color: #fff;
    font-style: normal;
    font-size: 15px;
}

/* Pencil sketches */
.cbp-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.cbp-sketch {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: url(#cbp-pencil);
}

.cbp-sketch path,
.cbp-sketch circle,
.cbp-sketch ellipse {
    fill: none;
    stroke: #39342e;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cbp-sketch .pf { fill: #fffaf3; }
.cbp-sketch .pf-sky { fill: #d7f0fb; }
.cbp-sketch .pf-sun { fill: #ffe7ad; }
.cbp-sketch .pf-coral { fill: #ffd9cf; }
.cbp-sketch .h { stroke-width: 1.2; opacity: 0.6; }
.cbp-sketch .t { stroke-width: 1.6; stroke-dasharray: 3 7; opacity: 0.7; }
.cbp-sketch .dot { fill: #39342e; stroke: none; }

.cbp-sketch-light path,
.cbp-sketch-light circle {
    stroke: #fffaf3;
}

.cbp-doodles {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.cbp-doodle-item {
    position: absolute;
    top: var(--cbp-top);
    width: 160px;
    will-change: transform;
}

.cbp-doodle-left { left: max(6px, calc(50% - 590px - 170px)); }
.cbp-doodle-right { right: max(6px, calc(50% - 590px - 170px)); }
.cbp-doodle-toddler,
.cbp-doodle-kite { width: 132px; }
.cbp-doodle-moon { width: 118px; }
.cbp-doodle-item .cbp-sketch path,
.cbp-doodle-item .cbp-sketch circle,
.cbp-doodle-item .cbp-sketch ellipse { stroke-width: 2.6; }
.cbp-doodle-item .cbp-sketch .h { stroke-width: 1.4; }
.cbp-doodle-flip .cbp-sketch { transform: scaleX(-1); }

.cbp-doodle-float { animation: cbp-bob 7s ease-in-out infinite; }
.cbp-doodle-plane .cbp-doodle-float { animation: cbp-glide 9s ease-in-out infinite; }
.cbp-doodle-boat .cbp-doodle-float { animation: cbp-rock 5s ease-in-out infinite; }
.cbp-doodle-kite .cbp-doodle-float { animation: cbp-kite 6s ease-in-out infinite; }
.cbp-doodle-moon .cbp-doodle-float { animation-duration: 10s; }

/* Scroll-driven states, only when JS confirms motion is welcome */
.cbp-anim [data-cbp-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.cbp-anim [data-cbp-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.cbp-anim .cbp-stop-copy,
.cbp-anim .cbp-stop-art {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.cbp-anim .cbp-stop:nth-child(odd) .cbp-stop-copy { transform: translateX(-90px) rotate(-3deg); }
.cbp-anim .cbp-stop:nth-child(odd) .cbp-stop-art { transform: translateX(90px) scale(0.8) rotate(6deg); }
.cbp-anim .cbp-stop:nth-child(even) .cbp-stop-copy { transform: translateX(90px) rotate(3deg); }
.cbp-anim .cbp-stop:nth-child(even) .cbp-stop-art { transform: translateX(-90px) scale(0.8) rotate(-6deg); }
.cbp-anim .cbp-stop .cbp-stop-art { transition-delay: 0.12s; }

.cbp-anim .cbp-stop.is-visible .cbp-stop-copy,
.cbp-anim .cbp-stop.is-visible .cbp-stop-art {
    opacity: 1;
    transform: none;
}

.cbp-anim .cbp-stop.is-visible .cbp-stop-art span {
    animation: cbp-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.cbp-anim .cbp-page {
    opacity: 0;
    transition: transform 1.3s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.7s ease;
}

.cbp-anim .cbp-page-left { transform: rotateY(80deg); }
.cbp-anim .cbp-page-right { transform: rotateY(-80deg); transition-delay: 0.15s; }

.cbp-anim .cbp-page > * {
    opacity: 0;
    transition: opacity 0.6s ease 0.7s;
}

.cbp-anim .cbp-book.is-open .cbp-page,
.cbp-anim .cbp-book.is-open .cbp-page > * {
    opacity: 1;
    transform: none;
}

.cbp-anim .cbp-book-ribbon {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s ease 1.1s;
}

.cbp-anim .cbp-book.is-open .cbp-book-ribbon { transform: none; }

.cbp-anim .cbp-doodle-item [pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.8s ease;
}

.cbp-anim .cbp-doodle-item .pf {
    fill-opacity: 0;
    transition: stroke-dashoffset 1.8s ease, fill-opacity 0.8s ease 1s;
}

.cbp-anim .cbp-doodle-item.is-drawn [pathLength] { stroke-dashoffset: 0; }
.cbp-anim .cbp-doodle-item.is-drawn .pf { fill-opacity: 1; }

.cbp-anim .cbp-hero-stage .cbp-sketch [pathLength] {
    stroke-dasharray: 1;
    animation: cbp-draw 1.8s ease 0.5s both;
}

@keyframes cbp-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes cbp-pop {
    0% { transform: scale(0.4) rotate(-20deg); }
    100% { transform: none; }
}

@keyframes cbp-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes cbp-glide {
    0%, 100% { transform: translate(0, 0) rotate(-6deg); }
    50% { transform: translate(14px, -16px) rotate(5deg); }
}

@keyframes cbp-rock {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-6px); }
}

@keyframes cbp-kite {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg) translateY(-10px); }
}

@keyframes cbp-spin {
    to { transform: rotate(360deg); }
}

@keyframes cbp-sway-a {
    0%, 100% { transform: rotate(-11deg); }
    50% { transform: rotate(-7deg) translateY(-8px); }
}

@keyframes cbp-sway-b {
    0%, 100% { transform: rotate(9deg); }
    50% { transform: rotate(5deg) translateY(-10px); }
}

@keyframes cbp-moon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes cbp-shoot {
    0% { opacity: 0; translate: 0 0; }
    4% { opacity: 1; }
    12% { opacity: 0; translate: 360px 120px; }
    100% { opacity: 0; translate: 360px 120px; }
}

@keyframes cbp-float {
    0%, 100% { transform: rotate(2.2deg) translateY(0); }
    50% { transform: rotate(1.2deg) translateY(-10px); }
}

@keyframes cbp-wobble {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(-4deg); }
}

@keyframes cbp-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 18px 8px; }
}

@keyframes cbp-twinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@keyframes cbp-fly {
    0% { transform: translateX(0) translateY(0) rotate(-8deg); }
    100% { transform: translateX(120vw) translateY(-30px) rotate(6deg); }
}

@keyframes cbp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .cbp-frame,
    .cbp-seal,
    .cbp-cloud,
    .cbp-star,
    .cbp-plane,
    .cbp-moon,
    .cbp-nstar,
    .cbp-shoot,
    .cbp-night-themes li,
    .cbp-stage-cover,
    .cbp-bubble,
    .cbp-stage-card,
    .cbp-stage-sun,
    .cbp-stage-boat,
    .cbp-doodle-float {
        animation: none;
    }

    .cbp-ribbon-track {
        animation: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 18px;
    }

    .cbp-ribbon-group {
        min-width: 0;
        width: auto;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cbp-ribbon-group[aria-hidden="true"] {
        display: none;
    }

    .cbp-frame { transform: none; }
    .cbp-btn:hover,
    .cbp-age:hover,
    .cbp-age.is-selected,
    .cbp-cover:hover img { transform: none; }
}

@media (max-width: 1440px) {
    .cbp-doodle-item { width: 128px; }
    .cbp-doodle-toddler,
    .cbp-doodle-kite,
    .cbp-doodle-moon { width: 108px; }
    .cbp-doodle-left { left: max(4px, calc(50% - 590px - 120px)); }
    .cbp-doodle-right { right: max(4px, calc(50% - 590px - 120px)); }
}

@media (max-width: 1199px) {
    .cbp-doodles { display: none; }
}

@media (max-width: 1100px) {
    .cbp-hero-stage { min-height: 560px; }
    .cbp-bubble { font-size: 20px; }
    .cbp-section-head h2,
    .cbp-form-copy h2,
    .cbp-consult h2,
    .cbp-close h2 {
        font-size: clamp(28px, 5vw, 44px);
    }
}

@media (max-width: 1024px) {
    .cbp-ages,
    .cbp-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .cbp-hero { padding: 118px 0 64px; }
    .cbp-section { padding: 56px 0; }
    .cbp-section-head {
        margin-bottom: 24px;
        text-align: left;
    }
    .cbp-section-head h2 {
        font-size: clamp(26px, 7vw, 36px);
    }
    .cbp-section-head p {
        margin-inline: 0;
        font-size: 15px;
        line-height: 1.55;
    }

    .cbp-hero-grid,
    .cbp-formats,
    .cbp-benefits,
    .cbp-covers-grid,
    .cbp-consult-grid,
    .cbp-form-grid,
    .cbp-fields {
        grid-template-columns: 1fr;
    }

    .cbp-hero-copy {
        padding: 24px 20px 22px;
        border-radius: 24px;
    }

    .cbp-frame { transform: none; }
    .cbp-seal { left: -6px; top: -24px; width: 92px; height: 92px; font-size: 12px; }

    .cbp-hero-stage {
        min-height: 0;
        padding: 70px 0 24px;
        overflow: hidden;
    }

    .cbp-hero-stage .cbp-frame {
        position: relative;
        top: 0;
        left: 0;
        width: min(86%, 420px);
        margin: 0 auto;
    }

    .cbp-stage-cover-a { top: 20px; width: 30%; }
    .cbp-stage-cover-b { bottom: 10px; width: 28%; }
    .cbp-bubble { top: 0; right: 4%; max-width: 46%; }
    .cbp-stage-card {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        width: fit-content;
        margin-inline: auto;
    }
    .cbp-stage-arrow { display: none; }

    /* Mobile timeline: number rail on the left, copy on the right */
    .cbp-trail-wrap {
        padding-left: 0;
    }

    .cbp-trail {
        gap: 18px;
        padding: 4px 0 8px;
    }

    .cbp-trail-track {
        left: 28px;
        transform: none;
    }

    .cbp-trail-plane {
        left: 28px;
        width: 48px;
    }

    .cbp-stop,
    .cbp-stop:nth-child(odd),
    .cbp-stop:nth-child(even) {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
        align-items: stretch;
    }

    .cbp-stop-gap,
    .cbp-stop:nth-child(odd) .cbp-stop-gap,
    .cbp-stop:nth-child(even) .cbp-stop-gap {
        display: none;
    }

    .cbp-stop-art,
    .cbp-stop:nth-child(odd) .cbp-stop-art,
    .cbp-stop:nth-child(even) .cbp-stop-art {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        width: 56px;
        min-height: 56px;
        padding: 8px;
        border-radius: 16px;
        box-shadow: none;
    }

    .cbp-stop-art span,
    .cbp-stop:nth-child(odd) .cbp-stop-art span,
    .cbp-stop:nth-child(even) .cbp-stop-art span {
        font-size: 28px;
    }

    .cbp-stop-copy,
    .cbp-stop:nth-child(odd) .cbp-stop-copy,
    .cbp-stop:nth-child(even) .cbp-stop-copy {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding: 18px 16px;
        border-radius: 20px;
    }

    .cbp-stop h3 {
        font-size: clamp(18px, 4.5vw, 22px);
    }

    .cbp-anim .cbp-stop:nth-child(odd) .cbp-stop-copy,
    .cbp-anim .cbp-stop:nth-child(even) .cbp-stop-copy,
    .cbp-anim .cbp-stop:nth-child(odd) .cbp-stop-art,
    .cbp-anim .cbp-stop:nth-child(even) .cbp-stop-art {
        transform: translateY(28px);
    }

    .cbp-anim .cbp-stop.is-visible .cbp-stop-copy,
    .cbp-anim .cbp-stop.is-visible .cbp-stop-art {
        transform: none;
    }

    .cbp-format { padding: 24px 20px; border-radius: 22px; }
    .cbp-age { padding: 18px 16px; border-radius: 22px; }

    .cbp-night { padding: 64px 0 120px; }
    .cbp-night-head { text-align: left; }
    .cbp-night-head h2 { font-size: clamp(28px, 7vw, 42px); }
    .cbp-moon { width: 56px; height: 56px; top: 24px; right: 5%; box-shadow: inset -16px 5px 0 0 #ffe9a8; }
    .cbp-book {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
        perspective: none;
    }
    .cbp-book::before { display: none; }
    .cbp-page,
    .cbp-page-left,
    .cbp-page-right {
        min-height: 0;
        border-radius: 18px;
        transform: none;
        box-shadow: 0 0 0 5px #c44732, 0 18px 32px rgba(0, 0, 0, 0.28);
    }
    .cbp-book-ribbon { display: none; }
    .cbp-anim .cbp-page-left,
    .cbp-anim .cbp-page-right { transform: translateY(36px); }
    .cbp-night-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .cbp-night-themes { justify-content: flex-start; }

    .cbp-form-grid { padding: 14px; border-radius: 24px; }
    .cbp-form-copy { padding: 22px 18px; }
    .cbp-form { padding: 12px 8px 8px; }
    .cbp-cover { border-radius: 22px; }
    .cbp-close { padding: 64px 0 80px; }
    .cbp-close h2 { max-width: none; }
}

@media (max-width: 760px) {
    .cbp-ribbon {
        padding: 22px 0 14px;
    }

    .cbp-ribbon-kicker {
        margin-bottom: 18px;
        padding-inline: clamp(16px, 4vw, 24px);
    }

    .cbp-ribbon-break { display: block; }

    .cbp-ribbon-group {
        gap: clamp(28px, 8vw, 48px);
        min-width: 100vw;
        padding-inline: 20px;
    }

    .cbp-ribbon-icon {
        height: 32px;
        max-width: 120px;
    }
    .cbp-ribbon-group img {
        max-width: 85px;
    }
    
    .cbp-ribbon-group {
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .cbp .bi-container {
        padding: 0 20px;
    }

    .cbp-hero { padding: 108px 0 48px; }
    .cbp-hero h1 { font-size: clamp(26px, 8vw, 34px); }
    .cbp-hero-copy { padding: 22px 18px 20px; border-radius: 20px; }
    .cbp-kicker { font-size: 11px; letter-spacing: 0.08em; }

    .cbp-ages,
    .cbp-steps { grid-template-columns: 1fr; }
    .cbp-actions,
    .cbp-close-actions { flex-direction: column; align-items: stretch; }
    .cbp-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cbp-plane { display: none; }
    .cbp-hero-stage { padding: 56px 0 12px; }
    .cbp-hero-stage .cbp-frame { width: 94%; }
    .cbp-stage-cover-b,
    .cbp-stage-boat { display: none; }
    .cbp-stage-cover-a { width: 34%; top: 6px; left: 2%; }
    .cbp-stage-sun { left: auto; right: 2%; top: 58px; width: 54px; }
    .cbp-bubble {
        top: -4px;
        right: 2%;
        font-size: 16px;
        max-width: 48%;
        padding: 10px 12px;
    }
    .cbp-stage-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        margin-top: 18px;
        animation: none;
    }

    .cbp-trail-track { left: 24px; }
    .cbp-trail-plane { left: 24px; width: 42px; }

    .cbp-stop,
    .cbp-stop:nth-child(odd),
    .cbp-stop:nth-child(even) {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .cbp-stop-art,
    .cbp-stop:nth-child(odd) .cbp-stop-art,
    .cbp-stop:nth-child(even) .cbp-stop-art {
        width: 48px;
        min-height: 48px;
        border-radius: 14px;
    }

    .cbp-stop-art span,
    .cbp-stop:nth-child(odd) .cbp-stop-art span,
    .cbp-stop:nth-child(even) .cbp-stop-art span {
        font-size: 24px;
    }

    .cbp-stop-copy,
    .cbp-stop:nth-child(odd) .cbp-stop-copy,
    .cbp-stop:nth-child(even) .cbp-stop-copy {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .cbp-page { padding: 20px 16px 44px; }
    .cbp-page-art img { height: 160px; }
    .cbp-page-num { font-size: 42px; }

    .cbp-faq-item { border-radius: 16px; }
    .cbp-faq-item summary { padding: 16px; font-size: 15px; }
    .cbp-faq-item p { padding: 0 16px 16px; font-size: 15px; }

    .cbp-form-grid { padding: 10px; }
    .cbp-form-copy { padding: 18px 14px; border-radius: 18px; }
    .cbp-phones { flex-direction: column; gap: 8px; }
}

li.cbp-step {
    list-style: none;
}

ol.cbp-steps {
    padding-left: 0;
}
