/* =========================================================
   DR. KATRYNA KING EVANS
   SHARED STYLESHEET FOR ALL PAGES
   One design system: colors, fonts, header, footer, buttons.
========================================================= */


/* =========================================================
   1. DESIGN TOKENS
========================================================= */

:root {
    --navy: #071747;
    --navy-deep: #030b2d;
    --navy-soft: #142c70;

    --purple: #5b21c4;
    --purple-deep: #431589;
    --purple-pale: #eee3ff;

    --pink: #b5115f;
    --pink-pale: #ffe6f3;

    --blue-deep: #0b4fa8;
    --green-deep: #087a58;

    --blue-pale: #e3f7ff;
    --mint-pale: #e5fff4;
    --yellow-pale: #fff3b8;

    --gold: #c28a00;
    --gold-light: #ffe38a;
    --gold-dark: #6b4c00;
    --amber: #ffc933;

    --cream: #fffaf0;

    --text: #161d3a;
    --muted: #38435f;
    --border: rgba(7, 23, 71, 0.2);

    --shadow: 0 18px 50px rgba(20, 25, 83, 0.16);

    /* Deep frame color used around book covers. */
    --frame-gradient: linear-gradient(145deg, #6d28d9, #4c1d95 55%, #0b4fa8);

    --font-heading: "Baloo 2", "Trebuchet MS", sans-serif;
    --font-body: "DM Sans", Arial, sans-serif;

    --radius: 24px;
    --radius-small: 14px;

    --header-height: 80px;

    /* Change this to adjust how portraits are framed (x y). */
    --photo-focus: center 20%;
}


/* =========================================================
   2. BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: #fffdfb;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: clip;
}

body.cart-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

::selection {
    color: var(--navy-deep);
    background: var(--gold-light);
}


/* =========================================================
   3. ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.site-footer :focus-visible,
.cta-card :focus-visible,
.credentials :focus-visible,
.game-panel :focus-visible {
    outline-color: var(--gold-light);
}

.skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--navy);
    border-radius: 12px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   4. TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
    margin: 0 0 16px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
}

h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
}

.lead {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--purple-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================
   5. BUTTONS AND LINKS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(105deg, #3b1190, #6d1fb8 55%, var(--pink));
    box-shadow: 0 8px 22px rgba(59, 17, 144, 0.38);
}

.button-primary:hover:not(:disabled) {
    box-shadow: 0 12px 28px rgba(59, 17, 144, 0.5);
}

.button-outline {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--purple-deep);
}

.button-outline:hover:not(:disabled) {
    color: #ffffff;
    background: var(--navy);
    border-color: var(--navy);
}

.button-gold {
    color: #1d1500;
    background: linear-gradient(120deg, #ffcb2f, #e8a100);
    border-color: #b88000;
}

.button-gold:hover:not(:disabled) {
    box-shadow: 0 10px 24px rgba(184, 128, 0, 0.45);
}

.button-soft {
    color: #ffffff;
    background: var(--navy-soft);
    border-color: var(--navy-soft);
}

.button-soft:hover:not(:disabled) {
    background: var(--navy);
    border-color: var(--navy);
}

.button-light {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
}

.button-light:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    color: var(--purple-deep);
    background: transparent;
    border: 0;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.text-link:hover {
    color: var(--pink);
}

.icon-button {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: var(--navy);
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}

.icon-button:hover {
    background: var(--pink);
}


/* =========================================================
   6. HEADER AND NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled {
    box-shadow: 0 8px 28px rgba(7, 23, 71, 0.12);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1280px, 92%);
    min-height: var(--header-height);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-frame {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--gold);
    border-radius: 16px;
}

.site-logo {
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
}

.logo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    color: var(--gold-light);
    background: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.logo-frame.logo-missing .logo-fallback {
    display: grid;
}

.logo-frame.logo-missing .site-logo {
    display: none;
}

.brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.5vw, 24px);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--purple);
}

.nav-link.active {
    color: var(--purple-deep);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 20px;
    content: "";
}

.button.nav-cta {
    min-height: 44px;
    padding: 9px 20px;
    font-size: 0.9rem;
}

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #1d1500;
    background: var(--amber);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.menu-toggle {
    display: none;
    place-items: center;
    align-content: center;
    gap: 5px;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #ffffff;
    border: 2px solid var(--navy);
    border-radius: 14px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   7. LAYOUT AND SECTIONS
========================================================= */

.container {
    width: min(1180px, 90%);
    margin-inline: auto;
}

.section {
    padding: clamp(64px, 8vw, 104px) 0;
}

.bg-white {
    background: #fffdfb;
}

.bg-soft {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 179, 219, 0.4), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(109, 210, 255, 0.35), transparent 32%),
        linear-gradient(145deg, #fff8e6, #f3e8ff 58%, #e8faff);
}

.section-heading {
    max-width: 740px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.stack {
    display: grid;
    gap: 16px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.split > * {
    min-width: 0;
}

.split--reverse > :first-child {
    order: 2;
}


/* =========================================================
   8. HERO (USED ON EVERY PAGE)
========================================================= */

.hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
    background:
        radial-gradient(ellipse at 0% 15%, rgba(255, 147, 203, 0.3), transparent 36%),
        radial-gradient(ellipse at 95% 15%, rgba(88, 201, 255, 0.32), transparent 36%),
        radial-gradient(ellipse at 75% 95%, rgba(178, 255, 218, 0.45), transparent 34%),
        linear-gradient(135deg, #fff4d7 0%, #ffe8f6 36%, #e8e4ff 68%, #e2f9ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.hero-copy {
    min-width: 0;
}

.hero h1 span {
    display: block;
}

.hero h1 .accent {
    color: var(--purple);
}

.hero-media {
    width: min(100%, 520px);
    min-width: 0;
    justify-self: center;
}

.hero-media--wide {
    width: min(100%, 560px);
}

.photo-card {
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border: 3px solid var(--purple-deep);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: var(--photo-focus);
    background: var(--purple-pale);
    border-radius: 22px;
}

.photo-card--wide img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.photo-card figcaption {
    padding: 12px 8px 4px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-top: 14px;
    padding: 0;
    color: var(--purple-deep);
    background: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 800;
}

.video-link-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding-left: 3px;
    color: #ffffff;
    background: var(--purple-deep);
    border-radius: 50%;
    font-size: 0.8rem;
}

.video-link:hover .video-link-icon {
    background: var(--pink);
}


/* =========================================================
   9. CREDENTIALS STRIP
========================================================= */

.credentials {
    padding: 22px 0;
    color: #ffffff;
    background: var(--navy);
}

.credential-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.credential-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.credential-list li::before {
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    content: "";
}


/* =========================================================
   10. CARDS (deep, rich colors)
========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(7, 23, 71, 0.16);
}

.card p {
    margin: 0 0 16px;
}

.card .text-link {
    margin-top: auto;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(7, 23, 71, 0.22);
    font-size: 1.7rem;
}

.card--pink {
    background: linear-gradient(145deg, #d81b78, #9b0d55);
}

.card--blue {
    background: linear-gradient(145deg, #1670d6, #0a3f94);
}

.card--mint {
    background: linear-gradient(145deg, #08795a, #05563f);
}

.card--lavender {
    background: linear-gradient(145deg, #7f3ff0, #4a1a9c);
}

.card--yellow {
    background: linear-gradient(145deg, #ffc933, #f09a00);
}

.card--white {
    border-color: #b79af0;
}

/* White text on the deep colored cards */

.card--pink,
.card--blue,
.card--mint,
.card--lavender,
.card--pink h3,
.card--blue h3,
.card--mint h3,
.card--lavender h3,
.card--pink .text-link,
.card--blue .text-link,
.card--mint .text-link,
.card--lavender .text-link {
    color: #ffffff;
}

.card--pink .text-link:hover,
.card--blue .text-link:hover,
.card--mint .text-link:hover,
.card--lavender .text-link:hover {
    color: var(--gold-light);
}

/* Dark text on the amber card */

.card--yellow,
.card--yellow h3,
.card--yellow .text-link {
    color: #1d1500;
}

.card--yellow .text-link:hover {
    color: #6b0b3a;
}


/* =========================================================
   11. BOOKS AND IMAGE FRAMES
   The frame is sized to the image, so covers fill it neatly.
========================================================= */

.book-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.book-feature > * {
    min-width: 0;
}

.book-cover-panel {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 440px);
    margin-inline: auto;
    padding: clamp(16px, 3vw, 26px);
    background: var(--frame-gradient);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.book-cover-panel img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(3, 11, 45, 0.45);
}

.cover-badge {
    position: absolute;
    z-index: 2;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    color: #ffffff;
    background: var(--navy);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.badge--gold {
    color: #1d1500;
    background: var(--amber);
    border: 2px solid #b88000;
}

/* "Coming Soon" label shown beside the shopping buttons */
.availability-pill {
    padding: 8px 16px;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.pill-list li {
    padding: 8px 16px;
    color: #ffffff;
    background: var(--purple-deep);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
}

.fact-list {
    margin: 20px 0 24px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--purple-deep);
    border-radius: var(--radius-small);
}

.fact-list div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.fact-list div:last-child {
    border-bottom: 0;
}

.fact-list dt {
    color: var(--navy);
    font-weight: 800;
}

.fact-list dd {
    margin: 0;
}

.cover-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: clamp(16px, 3vw, 26px);
    background: var(--frame-gradient);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.cover-row img {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 22px rgba(3, 11, 45, 0.45);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

/* Shop page with a single book: keep the card a sensible width, centered */
.book-grid--single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}

.book-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid var(--purple-deep);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(7, 23, 71, 0.18);
}

.book-card-media {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 24px);
    background: var(--frame-gradient);
}

.book-card-media img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 14px 24px rgba(3, 11, 45, 0.45);
}

.book-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.book-category {
    color: var(--purple-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-card-body h3 {
    margin-top: 6px;
}

.book-card-body p {
    color: var(--muted);
}


/* =========================================================
   12. NOTICES, LISTS, STEPS AND ACCORDIONS
========================================================= */

.notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    color: #2b2000;
    background: var(--yellow-pale);
    border: 1px solid #d9b92d;
    border-left: 6px solid var(--gold);
    border-radius: var(--radius-small);
}

.notice p {
    margin: 0;
}

.notice strong {
    color: #1d1500;
}

.notice-icon {
    flex: 0 0 auto;
    font-size: 1.4rem;
    line-height: 1.4;
}

.notice--info {
    color: var(--text);
    background: var(--purple-pale);
    border-color: #b79af0;
    border-left-color: var(--purple);
}

.notice--info strong {
    color: var(--navy);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 700;
}

.check-list li::before {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    color: #ffffff;
    background: var(--green-deep);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    content: "✓";
}

.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 20px 22px 20px 74px;
    background: #ffffff;
    border: 2px solid #8d63e0;
    border-radius: var(--radius-small);
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 18px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--purple-deep);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    content: counter(step);
}

.steps strong {
    display: block;
    color: var(--navy);
}

.accordion {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.accordion details {
    background: #ffffff;
    border: 2px solid #8d63e0;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(7, 23, 71, 0.1);
}

.accordion details[open] {
    border-color: var(--purple-deep);
}

.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 14px 22px;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--purple-deep);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    content: "+";
}

.accordion details[open] summary::after {
    content: "−";
}

.accordion .answer {
    padding: 0 22px 20px;
}

.accordion .answer p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   13. CALL TO ACTION BAND
========================================================= */

.cta-band {
    padding: clamp(56px, 7vw, 88px) 0;
    background:
        radial-gradient(circle at 0% 0%, #ffd8ed, transparent 32%),
        radial-gradient(circle at 100% 100%, #c8f0ff, transparent 32%),
        linear-gradient(145deg, #f8edff, #e9f8ff);
}

.cta-card {
    padding: clamp(34px, 6vw, 70px);
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.14), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(255, 65, 169, 0.3), transparent 38%),
        linear-gradient(125deg, #050f33, #3a1a80 58%, #8f1a73);
    border-radius: 32px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-card .eyebrow {
    color: var(--gold-light);
}

.cta-card h2 {
    color: #ffffff;
}

.cta-card p {
    max-width: 640px;
    margin: 0 auto 28px;
    color: #ffffff;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}


/* =========================================================
   14. FOOTER
========================================================= */

.site-footer {
    color: #eef1ff;
    background:
        radial-gradient(circle at 80% 0%, rgba(91, 54, 176, 0.3), transparent 34%),
        var(--navy-deep);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
    gap: 36px;
    padding: 64px 0 44px;
}

.site-footer .brand-copy strong {
    color: #ffffff;
}

.site-footer .brand-copy small {
    color: #d5dcf6;
}

.footer-brand p,
.footer-column p {
    max-width: 320px;
    margin: 16px 0 0;
    color: #d5dcf6;
    font-size: 0.95rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 6px;
    color: var(--gold-light);
    font-size: 1.15rem;
}

.footer-column p {
    margin: 0;
}

.footer-column a,
.footer-bottom a {
    color: #ffffff;
    font-size: 0.95rem;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--gold-light);
}

.footer-column .footer-contact-link {
    color: var(--gold-light);
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    color: #d5dcf6;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   15. WELCOME VIDEO DIALOG (HOME PAGE)
========================================================= */

.video-dialog {
    width: min(920px, calc(100% - 32px));
    padding: 0;
    overflow: hidden;
    background: #000000;
    border: 0;
    border-radius: 24px;
}

.video-dialog::backdrop {
    background: rgba(3, 11, 45, 0.88);
}

.video-dialog video {
    width: 100%;
    max-height: 80vh;
    background: #000000;
}

.video-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
}

.video-error {
    margin: 0;
    padding: 24px;
    color: #ffffff;
    text-align: center;
}


/* =========================================================
   16. FUN ACTIVITY GAME (HOME PAGE): BELONGING MATCH
========================================================= */

.game-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px);
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 65, 169, 0.35), transparent 40%),
        linear-gradient(145deg, #071747, #2e1a78 60%, #6a1b8f);
    border: 3px solid var(--gold-light);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.game-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.game-stat {
    display: grid;
    line-height: 1.25;
}

.game-stat-label {
    color: #e3e9ff;
    font-size: 0.9rem;
    font-weight: 700;
}

.game-stat strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
}

.game-message {
    min-height: 30px;
    margin: 16px 0 18px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 16px);
    color: #ffffff;
}

.game-card {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0;
    color: var(--navy);
    background: linear-gradient(145deg, #8a3bf0, #4c1d95);
    border: 3px solid var(--gold-light);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(3, 11, 45, 0.4);
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1;
    transition: transform 0.15s ease;
}

.game-card::before {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    content: "?";
}

.game-card-face {
    display: none;
}

.game-card:hover:not(.is-flipped):not(.is-matched) {
    transform: translateY(-3px);
}

.game-card.is-flipped,
.game-card.is-matched {
    background: #ffffff;
}

.game-card.is-flipped::before,
.game-card.is-matched::before {
    content: none;
}

.game-card.is-flipped .game-card-face,
.game-card.is-matched .game-card-face {
    display: block;
}

.game-card.is-matched {
    background: #c9f7e4;
    border-color: var(--green-deep);
}

.game-win {
    margin-top: 20px;
    padding: 22px;
    color: var(--text);
    background: #ffffff;
    border-radius: 20px;
    text-align: center;
}

.game-win h3 {
    color: var(--purple-deep);
}

.game-win p {
    margin-bottom: 16px;
}


/* =========================================================
   17. SHOP PAGE
========================================================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.shop-toolbar p {
    margin: 0;
    color: var(--muted);
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: auto 0 16px;
    padding-top: 16px;
    border-top: 2px solid #b79af0;
}

.product-price {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
}

.price-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.book-card-body .button {
    width: 100%;
}

/* Shopping button with its "Coming Soon" label beside it */
.buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.book-card-body .buy-row .button {
    flex: 1 1 180px;
    width: auto;
}

.cart-feedback {
    min-height: 28px;
    margin: 20px 0 0;
    color: var(--navy);
    font-weight: 800;
    text-align: center;
}

.button-count,
.drawer-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #1d1500;
    background: var(--amber);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.cart-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(3, 14, 38, 0.8);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-overlay.is-visible {
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    z-index: 2001;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(460px, 100%);
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    background: #ffffff;
    box-shadow: -15px 0 50px rgba(3, 11, 45, 0.4);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 3px solid #b79af0;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.cart-items {
    flex: 1;
    min-height: 0;
    padding: 16px 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    text-align: center;
}

.cart-empty > span {
    font-size: 3rem;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    background: var(--purple-pale);
    border: 2px solid #8d63e0;
    border-radius: 18px;
}

.cart-item h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.cart-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.quantity-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--navy);
    border: 0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.quantity-button:hover:not(:disabled) {
    background: var(--purple-deep);
}

.quantity-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    min-width: 24px;
    font-weight: 800;
    text-align: center;
}

.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-price {
    color: var(--navy);
    white-space: nowrap;
}

.remove-cart-item {
    min-height: 44px;
    padding: 0;
    color: #a3003f;
    background: transparent;
    border: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: underline;
}

.cart-summary {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 3px solid #b79af0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--navy);
}

.cart-subtotal strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.cart-note {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cart-summary .button {
    width: 100%;
}

.cart-summary .text-link {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.checkout-dialog {
    width: min(480px, calc(100% - 32px));
    max-height: 90vh;
    padding: 0;
    color: var(--text);
    background: #ffffff;
    border: 3px solid var(--purple-deep);
    border-radius: 28px;
    box-shadow: 0 25px 90px rgba(3, 11, 45, 0.45);
}

.checkout-dialog::backdrop {
    background: rgba(3, 14, 38, 0.85);
}

.checkout-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 44px 28px 28px;
    text-align: center;
}

.checkout-content .icon-button {
    position: absolute;
    top: 14px;
    right: 14px;
}

.checkout-options {
    display: grid;
    gap: 12px;
    margin-bottom: 8px;
}

.checkout-content .text-link {
    justify-content: center;
    margin-top: 8px;
}


/* =========================================================
   18. CONTACT PAGE
========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(32px, 5.5vw, 72px);
}

.contact-layout > * {
    min-width: 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(7, 23, 71, 0.16);
}

.info-card h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
}

.info-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 15px;
    font-size: 1.6rem;
}

.contact-form-card {
    padding: clamp(24px, 3.5vw, 40px);
    background: #ffffff;
    border: 1px solid #b9c3e0;
    border-top: 6px solid var(--purple-deep);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.form-intro {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-bottom: 20px;
}

.form-field label {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 800;
}

.form-field label span,
.form-consent label span {
    color: #b3003d;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    color: var(--text);
    background: #f7f9ff;
    border: 2px solid #7d89ad;
    border-radius: 13px;
}

.form-field textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.65;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #55607c;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: #ffffff;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(91, 33, 196, 0.22);
    outline: none;
}

.form-field [aria-invalid="true"] {
    background: #fff4f7;
    border-color: #b3003d;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.character-count {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.field-error {
    color: #a3003f;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.field-error:empty {
    display: none;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.form-consent input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    accent-color: var(--purple-deep);
}

.form-consent label {
    color: var(--muted);
    font-size: 0.95rem;
}

.consent-error {
    display: block;
    margin-left: 34px;
}

.submit-button {
    width: 100%;
    margin-top: 18px;
}

.form-feedback {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.form-feedback.is-visible {
    display: block;
}

.form-feedback.is-success {
    color: #064b31;
    background: #c8ffe8;
    border: 1px solid #68e5b1;
}

.form-feedback.is-error {
    color: #7a0b27;
    background: #ffe0e8;
    border: 1px solid #ff9bb4;
}

.honeypot {
    position: absolute;
    left: -9999px;
}


/* =========================================================
   19. RESPONSIVE: SMALL LAPTOPS AND TABLETS
========================================================= */

@media (max-width: 1040px) {
    .menu-toggle {
        display: grid;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        max-height: calc(100dvh - var(--header-height));
        padding: 8px 5% 24px;
        overflow-y: auto;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(7, 23, 71, 0.14);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .nav-link {
        min-height: 52px;
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem;
    }

    .nav-link.active::after {
        right: auto;
        bottom: 8px;
        width: 40px;
    }

    .button.nav-cta {
        align-self: flex-start;
        margin-top: 16px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .book-feature,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .split--reverse > :first-child {
        order: 0;
    }

    .hero-media,
    .hero-media--wide {
        width: min(100%, 520px);
    }
}


/* =========================================================
   20. RESPONSIVE: PHONES
========================================================= */

@media (max-width: 560px) {
    :root {
        --header-height: 72px;
    }

    html {
        scroll-padding-top: 84px;
    }

    body {
        font-size: 1rem;
    }

    .nav-shell {
        gap: 10px;
    }

    .logo-frame {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .brand {
        gap: 9px;
    }

    .brand-copy strong {
        font-size: 0.92rem;
    }

    .brand-copy small {
        display: none;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions .button {
        width: 100%;
    }

    .actions .availability-pill {
        align-self: flex-start;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .card {
        padding: 24px;
    }

    .fact-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .game-panel {
        border-radius: 24px;
    }

    .game-status {
        gap: 12px;
    }

    .game-card {
        border-width: 2px;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .cart-drawer {
        padding: 18px;
    }

    .cart-item {
        padding: 14px;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 48px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   21. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}