/* =========================================================
   VIBE CODING WITH CHATGPT
   Premium eBook Design System
   ========================================================= */

:root {
    --ink: #102033;
    --muted: #607086;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --violet: #7c3aed;
    --page: #ffffff;
    --line: rgba(15, 23, 42, 0.10);
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.20);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--ink);

    background:
        radial-gradient(circle at 15% 20%,
            rgba(37, 99, 235, 0.30),
            transparent 30%),
        radial-gradient(circle at 85% 75%,
            rgba(124, 58, 237, 0.28),
            transparent 32%),
        linear-gradient(135deg,
            #07111f 0%,
            #10213c 48%,
            #07111f 100%);
}

/* =========================================================
   EBOOK
   ========================================================= */

.ebook {
    width: 100%;
}

.ebook-page {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 24px;

    overflow: hidden;
}

/* Decorative coding grid */

.ebook-page::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px);

    background-size: 42px 42px;

    pointer-events: none;
}

/* =========================================================
   WHITE READING PANEL
   This is our locked eBook design direction:
   information inside a highly readable white rectangle,
   artwork/design outside it.
   ========================================================= */

.reading-panel {
    position: relative;
    z-index: 2;

    width: min(920px, 100%);
    min-height: 680px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(45px, 8vw, 100px);

    background:
        linear-gradient(145deg,
            #ffffff 0%,
            #fbfdff 100%);

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;

    box-shadow: var(--shadow);
}

/* Small premium accent */

.reading-panel::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--cyan),
            var(--violet));
}

/* =========================================================
   COVER TYPOGRAPHY
   ========================================================= */

.eyebrow {
    margin-bottom: 22px;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;

    color: var(--blue);
}

h1 {
    max-width: 760px;

    font-size: clamp(3.2rem, 8vw, 6.7rem);
    line-height: 0.92;
    letter-spacing: -0.065em;

    color: #0b1728;
}

h1 span {
    display: block;

    margin-top: 12px;

    font-size: 0.54em;
    letter-spacing: -0.035em;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--cyan),
            var(--violet));

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.subtitle {
    margin-top: 34px;

    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;

    color: #263a52;
}

.description {
    max-width: 680px;

    margin-top: 22px;

    font-size: 1.05rem;
    line-height: 1.85;

    color: var(--muted);
}

.cover-note {
    max-width: 680px;

    margin-top: 38px;
    padding: 18px 22px;

    font-size: 0.95rem;
    line-height: 1.6;

    color: #33465d;

    background: #f5f8fc;

    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);

    border-radius: 6px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .ebook-page {
        padding: 24px 14px;
    }

    .reading-panel {
        min-height: calc(100vh - 48px);

        padding: 42px 28px;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .description {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* =========================================================
   OFFICIAL EBOOK COVER
   ========================================================= */

.official-cover-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.official-cover-wrap {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);

    margin: 0 auto;

    border-radius: 8px;
    overflow: hidden;

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(6, 182, 212, 0.15);
}

.official-cover-image {
    display: block;

    width: 100%;
    height: auto;
}

/* Keep the cover comfortable on smaller screens */

@media (max-width: 640px) {

    .official-cover-page {
        padding: 14px;
    }

    .official-cover-wrap {
        border-radius: 4px;
    }
}

/* =========================================================
   PAGE 2 — WELCOME
   ========================================================= */

.chapter-panel {
    justify-content: flex-start;
}

.page-number {
    position: absolute;
    top: 42px;
    right: 48px;

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;

    color: #9aa7b7;
}

.chapter-title {
    max-width: 700px;

    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;

    color: #0b1728;
}

.chapter-title span {
    display: block;

    background: linear-gradient(90deg,
            var(--blue),
            var(--cyan),
            var(--violet));

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.chapter-lead {
    max-width: 680px;

    margin-top: 26px;

    font-size: 1.3rem;
    line-height: 1.65;
    font-weight: 600;

    color: #33465d;
}

.idea-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 34px;
}

.idea-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.idea-item span {
    font-size: 0.72rem;
    font-weight: 800;

    color: var(--blue);
}

.idea-item p {
    font-size: 0.95rem;
    font-weight: 600;

    color: #33465d;
}

.simple-message {
    margin-top: 28px;
    padding: 22px 24px;

    background: #eef6ff;

    border-left: 4px solid var(--blue);
    border-radius: 6px;
}

.simple-message p {
    line-height: 1.7;
    color: #50627a;
}

.simple-message strong {
    display: block;

    margin-top: 8px;

    font-size: 1.15rem;
    color: #102033;
}

.vibe-steps {
    display: flex;
    align-items: stretch;
    gap: 12px;

    margin-top: 30px;
}

.vibe-step {
    flex: 1;

    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.vibe-step span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-bottom: 12px;

    border-radius: 50%;

    background: #102033;
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 800;
}

.vibe-step p {
    font-size: 0.9rem;
    line-height: 1.6;

    color: #50627a;
}

.step-arrow {
    display: flex;
    align-items: center;

    font-size: 1.4rem;
    color: var(--blue);
}

.chapter-closing {
    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid var(--line);
}

.chapter-closing p {
    color: #607086;
}

.chapter-closing strong {
    display: block;

    margin-top: 7px;

    font-size: 1.25rem;
    color: #102033;
}

@media (max-width: 700px) {

    .idea-list {
        grid-template-columns: 1fr;
    }

    .vibe-steps {
        flex-direction: column;
    }

    .step-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }

    .page-number {
        top: 24px;
        right: 24px;
    }
}

/* =========================================================
   PAGE 3 — SIMPLE CONVERSATION EXAMPLE
   ========================================================= */

.conversation-example {
    margin-top: 28px;
}

.example-label {
    margin-bottom: 10px;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;

    color: var(--blue);
}

.example-prompt {
    padding: 22px 24px;

    background: #102033;
    color: #ffffff;

    border-radius: 8px;
}

.example-prompt span {
    display: block;

    margin-bottom: 10px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;

    color: #67e8f9;
}

.example-prompt p {
    font-size: 1rem;
    line-height: 1.75;

    color: #eef6ff;
}

/* =========================================================
   PAGE 4 — PROJECT IDEAS
   ========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;

    margin-top: 32px;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding: 20px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.project-icon {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    font-size: 1.5rem;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 10px;
}

.project-card h3 {
    margin-bottom: 7px;

    font-size: 1rem;

    color: #102033;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;

    color: #607086;
}

.mini-prompt {
    margin-top: 28px;
}

@media (max-width: 700px) {

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PAGE 5 — STARTER TOOLS
   ========================================================= */

.starter-tools {
    display: grid;
    gap: 14px;

    margin-top: 34px;
}

.starter-tool {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    padding: 22px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.tool-number {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    font-size: 0.75rem;
    font-weight: 800;

    color: #ffffff;
    background: #102033;

    border-radius: 10px;
}

.starter-tool h3 {
    margin-bottom: 7px;

    font-size: 1.05rem;

    color: #102033;
}

.starter-tool p {
    max-width: 620px;

    font-size: 0.95rem;
    line-height: 1.65;

    color: #607086;
}

.simple-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 28px;
    padding: 20px;

    background: #102033;

    border-radius: 8px;
}

.simple-flow>div {
    flex: 1;
    text-align: center;
}

.simple-flow strong {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;
}

.simple-flow span {
    font-size: 0.78rem;

    color: #b9c7d8;
}

.simple-flow .flow-arrow {
    flex: 0 0 auto;

    font-size: 1.2rem;

    color: #67e8f9;
}

@media (max-width: 700px) {

    .simple-flow {
        flex-direction: column;
    }

    .simple-flow .flow-arrow {
        transform: rotate(90deg);
    }
}

/* =========================================================
   PAGES 6–15
   BEGINNER PROJECT COMPONENTS
   ========================================================= */

/* PAGE 6 */

.first-project-card {
    margin-top: 30px;
    padding: 24px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.project-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 14px;
}

.project-checklist div {
    padding: 14px 16px;

    font-size: 0.95rem;
    font-weight: 600;

    color: #33465d;
    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 6px;
}


/* PAGE 8 */

.baby-code-window {
    margin-top: 30px;

    overflow: hidden;

    background: #0b1728;

    border-radius: 9px;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14);
}

.code-window-top {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 12px 16px;

    background: #17263a;
}

.code-window-top span {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #607086;
}

.code-window-top p {
    margin-left: 8px;

    font-size: 0.72rem;
    color: #aebdce;
}

.baby-code-window pre {
    padding: 24px;

    overflow-x: auto;

    white-space: pre-wrap;
}

.baby-code-window code {
    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.92rem;
    line-height: 1.75;

    color: #dff7ff;
}

.plain-explanation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 24px;
}

.plain-explanation>div {
    padding: 18px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 7px;
}

.plain-explanation strong {
    display: block;

    margin-bottom: 7px;

    color: var(--blue);
}

.plain-explanation p {
    font-size: 0.9rem;
    line-height: 1.6;

    color: #607086;
}


/* PAGE 9 */

.instruction-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-top: 16px;
    padding: 20px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.instruction-box:first-of-type {
    margin-top: 32px;
}

.instruction-number {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    font-size: 0.8rem;
    font-weight: 800;

    color: #ffffff;
    background: #102033;

    border-radius: 50%;
}

.instruction-box strong {
    display: block;

    margin-bottom: 6px;

    color: #102033;
}

.instruction-box p {
    font-size: 0.92rem;
    line-height: 1.6;

    color: #607086;
}

.filename-example {
    display: inline-block;

    margin-top: 10px;
    padding: 8px 12px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.88rem;
    font-weight: 700;

    color: #ffffff;
    background: #102033;

    border-radius: 5px;
}


/* PAGE 10 */

.big-action {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 13px;
    padding: 17px 20px;

    background: #ffffff;

    border: 1px solid var(--line);
    border-radius: 8px;

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.05);
}

.big-action:first-of-type {
    margin-top: 30px;
}

.big-action span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    font-size: 0.72rem;
    font-weight: 800;

    color: var(--blue);
    background: #eef6ff;

    border-radius: 50%;
}

.big-action p {
    color: #40536b;
}


/* PAGE 11 */

.keyboard-card {
    margin-top: 36px;
    padding: 32px;

    text-align: center;

    background: #102033;

    border-radius: 10px;
}

.keyboard-card>p {
    margin-bottom: 20px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: #aebdce;
}

.keyboard-keys {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.keyboard-keys kbd {
    min-width: 72px;

    padding: 14px 18px;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 800;

    color: #102033;
    background: #ffffff;

    border-radius: 7px;

    box-shadow:
        0 4px 0 #b8c5d4;
}

.keyboard-keys span {
    font-size: 1.3rem;
    color: #67e8f9;
}

.save-habit {
    margin-top: 28px;
    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.save-habit h3 {
    margin-bottom: 10px;

    font-size: 1.15rem;

    color: #102033;
}

.save-habit p:last-child {
    font-size: 0.92rem;
    line-height: 1.65;

    color: #607086;
}


/* PAGE 12 */

.mini-browser {
    margin-top: 26px;

    overflow: hidden;

    border: 1px solid #ccd6e2;
    border-radius: 9px;

    box-shadow:
        0 16px 35px rgba(15, 23, 42, 0.10);
}

.mini-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 11px 14px;

    background: #edf1f6;
}

.mini-browser-bar>span {
    width: 9px;
    height: 9px;

    background: #9aa7b7;
    border-radius: 50%;
}

.mini-browser-bar div {
    flex: 1;

    margin-left: 8px;
    padding: 6px 10px;

    font-size: 0.72rem;

    color: #607086;
    background: #ffffff;

    border-radius: 4px;
}

.mini-browser-page {
    padding: 40px 25px;

    text-align: center;

    background: #fffaf1;
}

.mini-browser-page small {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;

    color: #a16a25;
}

.mini-browser-page h3 {
    margin-top: 8px;

    font-size: 1.8rem;

    color: #55351d;
}

.mini-browser-page p {
    margin-top: 9px;

    color: #7b624f;
}

.mini-browser-page button {
    margin-top: 18px;
    padding: 11px 20px;

    font: inherit;
    font-weight: 700;

    color: #ffffff;
    background: #55351d;

    border: 0;
    border-radius: 6px;
}

.celebration-box {
    margin-top: 26px;
    padding: 22px;

    text-align: center;

    font-size: 1.15rem;
    font-weight: 900;

    color: #102033;

    background: #eef6ff;

    border: 1px solid #d8e8fb;
    border-radius: 8px;
}


/* PAGE 14 */

.make-better-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;

    margin-top: 30px;
}

.make-better-card {
    padding: 20px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.make-better-card>span {
    display: block;

    margin-bottom: 10px;

    font-size: 1.6rem;
}

.make-better-card h3 {
    margin-bottom: 7px;

    color: #102033;
}

.make-better-card p {
    font-size: 0.9rem;
    line-height: 1.6;

    color: #607086;
}


/* PAGE 15 */

.dont-panic-box {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-top: 30px;
    padding: 24px;

    background: #fff8e8;

    border: 1px solid #f2dfad;
    border-radius: 8px;
}

.dont-panic-box>span {
    font-size: 2.6rem;
}

.dont-panic-box h3 {
    margin-bottom: 6px;

    color: #553b12;
}

.dont-panic-box p {
    font-size: 0.92rem;
    line-height: 1.6;

    color: #755c31;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 24px;
}

.help-options>div {
    padding: 18px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 7px;
}

.help-options strong {
    display: block;

    margin-bottom: 7px;

    color: var(--blue);
}

.help-options p {
    font-size: 0.86rem;
    line-height: 1.55;

    color: #607086;
}


/* =========================================================
   PAGES 6–15 — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .project-checklist,
    .plain-explanation,
    .make-better-grid,
    .help-options {
        grid-template-columns: 1fr;
    }

    .dont-panic-box {
        align-items: flex-start;
    }

    .keyboard-card {
        padding: 26px 16px;
    }

    .keyboard-keys kbd {
        min-width: 60px;
    }
}

/* =========================================================
   PAGES 16–20
   ========================================================= */

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.achievement-card span {
    font-size: 1.5rem;
}

.achievement-card strong {
    font-size: 0.92rem;
    color: #33465d;
}

.loop-list {
    max-width: 600px;
    margin: 34px auto 0;
}

.loop-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.loop-card>span,
.small-step-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #102033;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.loop-card strong {
    display: block;
    margin-bottom: 3px;
    color: #102033;
}

.loop-card p {
    font-size: 0.9rem;
    color: #607086;
}

.loop-arrow {
    padding: 5px;
    text-align: center;
    color: var(--blue);
    font-weight: 800;
}

.prompt-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.ask-recipe {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.ask-recipe>div {
    padding: 16px 18px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.ask-recipe strong {
    display: block;
    margin-bottom: 4px;
    color: #102033;
}

.ask-recipe p {
    font-size: 0.9rem;
    color: #607086;
}

.big-idea-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 24px;
    background: #fff8e8;
    border: 1px solid #f2dfad;
    border-radius: 8px;
}

.big-idea-box p {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #755c31;
}

.big-idea-box span {
    font-size: 2.5rem;
}

.small-step-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.small-step-list>div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.small-step-list p {
    font-size: 0.92rem;
    color: #50627a;
}

.safe-copy-demo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.safe-file {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.safe-file>span {
    font-size: 2rem;
}

.safe-file strong {
    display: block;
    margin-bottom: 4px;
    color: #102033;
}

.safe-file p {
    font-size: 0.84rem;
    color: #607086;
}

.safe-arrow {
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 800;
}

@media (max-width: 700px) {

    .achievement-grid,
    .prompt-compare,
    .small-step-list {
        grid-template-columns: 1fr;
    }

    .safe-copy-demo {
        flex-direction: column;
        align-items: stretch;
    }

    .safe-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

/* =========================================================
   PAGES 21–25
   FINAL BEGINNER CHAPTERS
   ========================================================= */

/* PAGE 21 */

.next-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;

    margin-top: 30px;
}

.next-project-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 18px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 8px;
}

.next-project-card>span {
    font-size: 1.7rem;
}

.next-project-card h3 {
    margin-bottom: 6px;

    font-size: 0.98rem;

    color: #102033;
}

.next-project-card p {
    font-size: 0.86rem;
    line-height: 1.55;

    color: #607086;
}


/* PAGE 22 */

.cheat-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-top: 30px;
}

.cheat-prompt {
    padding: 18px;

    background: #102033;

    border-radius: 8px;
}

.cheat-prompt span {
    display: block;

    margin-bottom: 8px;

    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;

    color: #67e8f9;
}

.cheat-prompt p {
    font-size: 0.9rem;
    line-height: 1.6;

    color: #eef6ff;
}


/* PAGE 23 */

.beginner-checklist {
    display: grid;
    gap: 11px;

    margin-top: 30px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 15px 18px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 7px;
}

.check-row>span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    font-weight: 900;

    color: #ffffff;
    background: var(--blue);

    border-radius: 50%;
}

.check-row strong {
    display: block;

    margin-bottom: 3px;

    font-size: 0.94rem;

    color: #102033;
}

.check-row p {
    font-size: 0.84rem;

    color: #607086;
}


/* PAGE 24 */

.journey-card {
    margin-top: 32px;
    padding: 24px;

    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 9px;
}

.journey-point {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.journey-point>span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    font-size: 0.72rem;
    font-weight: 800;

    color: #ffffff;
    background: #102033;

    border-radius: 50%;
}

.journey-point strong {
    display: block;

    margin-bottom: 5px;

    color: #102033;
}

.journey-point p {
    font-size: 0.88rem;
    line-height: 1.55;

    color: #607086;
}

.journey-line {
    width: 2px;
    height: 18px;

    margin: 5px 0 5px 18px;

    background: #d7e0eb;
}


/* PAGE 25 */

.final-panel {
    align-items: center;
    justify-content: center;

    text-align: center;
}

.final-icon {
    margin-top: 18px;

    font-size: 3rem;
}

.final-title {
    margin-top: 18px;

    font-size: clamp(3.3rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.055em;

    color: #0b1728;
}

.final-title span {
    display: block;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--cyan),
            var(--violet));

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.final-lead {
    max-width: 580px;

    margin-top: 24px;

    font-size: 1.2rem;
    line-height: 1.6;

    color: #607086;
}

.final-message {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;

    max-width: 650px;

    margin-top: 28px;
}

.final-message p {
    padding: 10px 14px;

    font-size: 0.86rem;
    font-weight: 700;

    color: #33465d;
    background: #f7f9fc;

    border: 1px solid var(--line);
    border-radius: 100px;
}

.final-loop {
    margin-top: 30px;
    padding: 16px 24px;

    font-size: 1.1rem;
    font-weight: 900;

    color: #ffffff;
    background: #102033;

    border-radius: 7px;
}

.final-quote {
    margin-top: 30px;
}

.final-quote p {
    color: #607086;
}

.final-quote strong {
    display: block;

    margin-top: 6px;

    font-size: 1.2rem;

    color: #102033;
}

.final-brand {
    margin-top: 36px;
    padding-top: 22px;

    width: 100%;

    border-top: 1px solid var(--line);
}

.final-brand strong {
    display: block;

    font-size: 1rem;
    letter-spacing: 0.12em;

    color: var(--blue);
}

.final-brand span {
    display: block;

    margin-top: 6px;

    font-size: 0.76rem;

    color: #8a98a9;
}


/* =========================================================
   PAGES 21–25 — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .next-project-grid,
    .cheat-sheet {
        grid-template-columns: 1fr;
    }

    .journey-card {
        padding: 20px;
    }

    .final-message {
        flex-direction: column;
    }
}

/* =========================================================
   CHATGPT × BUILDFRAME
   PREMIUM EBOOK EXPERIENCE
   FINAL GLOBAL VISUAL LAYER

   This block intentionally comes LAST so it can refine
   the earlier page styles without rewriting every page.
   ========================================================= */


/* =========================================================
   EXPERIENCE VARIABLES
   ========================================================= */

:root {
    --pointer-x: 50vw;
    --pointer-y: 50vh;

    --experience-navy: #06101e;
    --experience-navy-soft: #0b1930;
    --experience-blue: #2563eb;
    --experience-cyan: #22d3ee;
    --experience-violet: #8b5cf6;

    --panel-width: 920px;
    --panel-radius: 12px;

    --panel-shadow:
        0 35px 90px rgba(0, 0, 0, 0.34),
        0 8px 30px rgba(15, 23, 42, 0.16);
}


/* =========================================================
   WHOLE EBOOK ENVIRONMENT
   ========================================================= */

body {
    position: relative;

    overflow-x: hidden;

    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y),
            rgba(34, 211, 238, 0.10),
            transparent 300px),
        radial-gradient(circle at 12% 20%,
            rgba(37, 99, 235, 0.24),
            transparent 34%),
        radial-gradient(circle at 88% 72%,
            rgba(139, 92, 246, 0.20),
            transparent 35%),
        linear-gradient(135deg,
            #040a13 0%,
            #09182d 46%,
            #07111f 100%);

    background-attachment: fixed;
}


/* Soft technological atmosphere */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -2;

    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px);

    background-size: 48px 48px;

    -webkit-mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.30));

    mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.30));


    /* Ambient light */

    body::after {
        content: "";

        position: fixed;

        width: 520px;
        height: 520px;

        right: -220px;
        top: 18%;

        z-index: -1;

        pointer-events: none;

        border-radius: 50%;

        background:
            radial-gradient(circle,
                rgba(124, 58, 237, 0.18),
                transparent 68%);

        filter: blur(12px);
    }


    /* =========================================================
   EACH PAGE
   ========================================================= */

    .ebook-page {
        position: relative;

        min-height: 100svh;

        padding:
            clamp(46px, 6vw, 82px) clamp(22px, 5vw, 72px);

        isolation: isolate;
    }


    /* Coding-style outer decoration */

    .content-page::after {
        content: "< build / learn / create >";

        position: absolute;

        right: clamp(16px, 3vw, 42px);
        bottom: 26px;

        z-index: 0;

        font-family:
            Consolas,
            "Courier New",
            monospace;

        font-size: 0.67rem;
        font-weight: 700;
        letter-spacing: 0.12em;

        color: rgba(148, 210, 255, 0.34);

        pointer-events: none;
    }


    /* Alternate decoration position */

    .content-page:nth-child(even)::after {
        right: auto;
        left: clamp(16px, 3vw, 42px);

        content: "{ idea → code → creation }";
    }


    /* =========================================================
   THE LOCKED WHITE RECTANGLE

   This is the most important design rule.
   Pages 2–25 keep their information inside this canvas.
   ========================================================= */

    .content-page .reading-panel {
        position: relative;

        width: min(var(--panel-width),
                calc(100vw - 110px));

        min-height: min(790px, calc(100svh - 110px));

        margin: 0 auto;

        padding:
            clamp(44px, 5vw, 68px) clamp(42px, 6vw, 76px);

        justify-content: center;

        background:
            linear-gradient(145deg,
                #ffffff 0%,
                #ffffff 58%,
                #f8fbff 100%);

        border:
            1px solid rgba(255, 255, 255, 0.82);

        border-radius:
            var(--panel-radius);

        box-shadow:
            var(--panel-shadow);

        overflow: hidden;
    }


    /* Premium top line */

    .content-page .reading-panel::before {
        content: "";

        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 5px;

        background:
            linear-gradient(90deg,
                var(--experience-blue),
                var(--experience-cyan),
                var(--experience-violet));
    }


    /* Very subtle inner technical detail */

    .content-page .reading-panel::after {
        content: "";

        position: absolute;

        width: 170px;
        height: 170px;

        right: -85px;
        bottom: -85px;

        pointer-events: none;

        border:
            1px solid rgba(37, 99, 235, 0.08);

        border-radius: 50%;

        box-shadow:
            0 0 0 24px rgba(37, 99, 235, 0.025),
            0 0 0 48px rgba(124, 58, 237, 0.018);
    }


    /* Keep actual content above decorative elements */

    .content-page .reading-panel>* {
        position: relative;
        z-index: 2;
    }


    /* =========================================================
   PAGE TYPOGRAPHY REFINEMENT
   ========================================================= */

    .content-page .eyebrow {
        margin-bottom: 16px;

        font-size: 0.70rem;
        line-height: 1.3;

        letter-spacing: 0.18em;
    }


    .content-page .chapter-title {
        max-width: 720px;

        font-size:
            clamp(2.55rem, 4.8vw, 4.35rem);

        line-height: 0.98;

        letter-spacing: -0.047em;
    }


    .content-page .chapter-lead {
        max-width: 680px;

        margin-top: 20px;

        font-size:
            clamp(1.02rem, 1.5vw, 1.18rem);

        line-height: 1.58;
    }


    .content-page .page-number {
        top: 32px;
        right: 38px;

        font-family:
            Consolas,
            "Courier New",
            monospace;

        font-size: 0.72rem;

        color: #9aa7b7;
    }


    /* =========================================================
   CONSISTENT VERTICAL RHYTHM

   This reduces the imbalance we saw earlier.
   ========================================================= */

    .content-page .simple-message,
    .content-page .conversation-example,
    .content-page .chapter-closing {
        flex-shrink: 0;
    }


    .content-page .chapter-closing {
        margin-top: 24px;
        padding-top: 18px;
    }


    .content-page .simple-message {
        margin-top: 22px;
        padding: 18px 20px;
    }


    .content-page .conversation-example {
        margin-top: 22px;
    }


    /* =========================================================
   CARDS — GLOBAL POLISH
   ========================================================= */

    .idea-item,
    .project-card,
    .starter-tool,
    .instruction-box,
    .big-action,
    .make-better-card,
    .achievement-card,
    .ask-recipe>div,
    .small-step-list>div,
    .safe-file,
    .next-project-card,
    .check-row,
    .journey-card {
        transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            border-color 180ms ease;
    }


    .idea-item:hover,
    .project-card:hover,
    .starter-tool:hover,
    .instruction-box:hover,
    .big-action:hover,
    .make-better-card:hover,
    .achievement-card:hover,
    .safe-file:hover,
    .next-project-card:hover,
    .check-row:hover {
        transform: translateY(-2px);

        border-color:
            rgba(37, 99, 235, 0.20);

        box-shadow:
            0 10px 25px rgba(15, 23, 42, 0.07);
    }


    /* =========================================================
   CODE / PROMPT BOXES
   ========================================================= */

    .example-prompt,
    .baby-code-window {
        box-shadow:
            0 16px 34px rgba(15, 23, 42, 0.13);
    }


    .example-prompt {
        position: relative;

        overflow: hidden;
    }


    .example-prompt::after {
        content: "";

        position: absolute;

        width: 100px;
        height: 100px;

        right: -50px;
        top: -50px;

        border-radius: 50%;

        background:
            rgba(34, 211, 238, 0.05);
    }


    /* =========================================================
   JS — READING PROGRESS
   ========================================================= */

    .ebook-progress-track {
        position: fixed;

        top: 0;
        left: 0;

        z-index: 1000;

        width: 100%;
        height: 4px;

        background:
            rgba(255, 255, 255, 0.08);

        pointer-events: none;
    }


    .ebook-progress-bar {
        width: 100%;
        height: 100%;

        transform: scaleX(0);
        transform-origin: left center;

        background:
            linear-gradient(90deg,
                var(--experience-blue),
                var(--experience-cyan),
                var(--experience-violet));

        box-shadow:
            0 0 14px rgba(34, 211, 238, 0.45);

        transition:
            transform 80ms linear;
    }


    /* =========================================================
   JS — PAGE INDICATOR
   ========================================================= */

    .ebook-page-indicator {
        position: fixed;

        right: 24px;
        top: 24px;

        z-index: 900;

        padding: 9px 12px;

        font-family:
            Consolas,
            "Courier New",
            monospace;

        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.10em;

        color: #dcecff;

        background:
            rgba(5, 14, 27, 0.78);

        border:
            1px solid rgba(103, 232, 249, 0.15);

        border-radius: 6px;

        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.20);
    }


    /* =========================================================
   JS — CHATGPT × BUILDFRAME MARK
   ========================================================= */

    .ebook-experience-mark {
        position: fixed;

        left: 22px;
        bottom: 22px;

        z-index: 900;

        display: flex;
        align-items: center;
        gap: 8px;

        padding: 9px 12px;

        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.05em;

        color: #d7e9ff;

        background:
            rgba(5, 14, 27, 0.72);

        border:
            1px solid rgba(103, 232, 249, 0.13);

        border-radius: 6px;

        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);

    }


    .experience-dot {
        width: 7px;
        height: 7px;

        border-radius: 50%;

        background:
            var(--experience-cyan);

        box-shadow:
            0 0 12px var(--experience-cyan);
    }

    /* =========================================================
   JS — NAVIGATION BUTTONS
   ========================================================= */

    .ebook-navigation {
        position: fixed;

        right: 22px;
        bottom: 22px;

        z-index: 900;

        display: flex;
        gap: 7px;
    }
}


.ebook-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    font-size: 1rem;

    color: #eaf5ff;

    cursor: pointer;

    background:
        rgba(5, 14, 27, 0.78);

    border:
        1px solid rgba(103, 232, 249, 0.16);

    border-radius: 7px;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}


.ebook-nav-button:hover:not(:disabled) {
    transform: translateY(-2px);

    background:
        rgba(37, 99, 235, 0.35);

    border-color:
        rgba(103, 232, 249, 0.38);
}


.ebook-nav-button:disabled {
    opacity: 0.28;
    cursor: default;
}


/* =========================================================
   JS — PAGE REVEAL
   ========================================================= */

.ebook-reveal {
    opacity: 0;

    transform:
        translateY(20px) scale(0.992);

    transition:
        opacity 650ms ease,
        transform 650ms ease;
}


.ebook-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0) scale(1);
}


/* Active page gets a subtle premium edge */

.content-page.is-active-page .reading-panel {
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.38),
        0 8px 30px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(103, 232, 249, 0.06);
}


/* =========================================================
   OFFICIAL COVER

   Keep Page 1 clean and special.
   ========================================================= */

.official-cover-page {
    min-height: 100svh;

    padding:
        clamp(20px, 4vw, 42px);

    background:
        radial-gradient(circle at 50% 45%,
            rgba(37, 99, 235, 0.15),
            transparent 45%);
}


.official-cover-wrap {
    transition:
        transform 500ms ease,
        box-shadow 500ms ease;
}


.official-cover-page.is-active-page .official-cover-wrap {
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.60),
        0 0 65px rgba(34, 211, 238, 0.13);
}


/* Hide reading furniture on the cover */

body.is-reading-cover .ebook-experience-mark,
body.is-reading-cover .ebook-navigation {
    opacity: 0;
    pointer-events: none;
}


/* Keep page indicator subtle on cover */

body.is-reading-cover .ebook-page-indicator {
    opacity: 0.25;
}


/* =========================================================
   FINAL PAGE
   ========================================================= */

.final-page .reading-panel {
    background:
        radial-gradient(circle at 50% 15%,
            rgba(37, 99, 235, 0.07),
            transparent 35%),
        linear-gradient(145deg,
            #ffffff,
            #f7fbff);
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

.reduce-motion * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .content-page .reading-panel {
        width:
            min(820px,
                calc(100vw - 48px));

        padding:
            50px clamp(28px, 6vw, 54px);
    }

    .content-page .chapter-title {
        font-size:
            clamp(2.4rem, 7vw, 3.8rem);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .ebook-page {
        padding:
            22px 12px 70px;
    }


    .content-page .reading-panel {
        width: 100%;

        min-height:
            calc(100svh - 92px);

        padding:
            48px 24px 38px;

        border-radius: 8px;
    }


    .content-page .page-number {
        top: 22px;
        right: 22px;
    }


    .content-page .chapter-title {
        font-size:
            clamp(2.25rem, 12vw, 3.25rem);
    }


    .ebook-page-indicator {
        top: 12px;
        right: 12px;
    }


    .ebook-experience-mark {
        left: 12px;
        bottom: 12px;
    }


    .ebook-navigation {
        right: 12px;
        bottom: 12px;
    }


    .ebook-nav-button {
        width: 38px;
        height: 38px;
    }


    .content-page::after {
        display: none;
    }

}

/* =========================================================
   BUILDFRAME × CHATGPT
   MIDNIGHT EXPEDITION THEME
   Premium adventurous override
   ========================================================= */

:root {
    --adventure-ink: #0b1324;
    --adventure-cyan: #00c7d9;
    --adventure-violet: #7c4dff;
    --adventure-magenta: #c13cff;
    --adventure-amber: #f4a62a;
    --adventure-night: #050b16;
}


/* =========================================================
   OUTER WORLD
   More adventurous — less corporate blue
   ========================================================= */

body {
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y),
            rgba(244, 166, 42, 0.08),
            transparent 260px),
        radial-gradient(circle at 14% 24%,
            rgba(0, 199, 217, 0.14),
            transparent 32%),
        radial-gradient(circle at 84% 68%,
            rgba(124, 77, 255, 0.20),
            transparent 34%),
        radial-gradient(circle at 58% 105%,
            rgba(193, 60, 255, 0.10),
            transparent 35%),
        linear-gradient(135deg,
            #030711 0%,
            #071221 42%,
            #100c27 100%);

    background-attachment: fixed;
}


/* =========================================================
   WHITE READING CANVAS
   Keep it clean and premium
   ========================================================= */

.content-page .reading-panel {
    background:
        radial-gradient(circle at 100% 0%,
            rgba(124, 77, 255, 0.025),
            transparent 28%),
        linear-gradient(145deg,
            #ffffff 0%,
            #ffffff 68%,
            #fbfafc 100%);

    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.42),
        0 10px 30px rgba(0, 0, 0, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65),
        0 0 42px rgba(124, 77, 255, 0.07);
}


/* Aurora edge instead of plain blue */

.content-page .reading-panel::before {
    height: 5px;

    background:
        linear-gradient(90deg,
            var(--adventure-cyan) 0%,
            var(--adventure-violet) 42%,
            var(--adventure-magenta) 70%,
            var(--adventure-amber) 100%);
}


/* =========================================================
   SMALLER, MORE EDITORIAL TITLES
   ========================================================= */

.content-page .chapter-title {
    max-width: 690px;

    font-size:
        clamp(2.25rem, 3.8vw, 3.55rem);

    line-height: 1.02;

    letter-spacing: -0.045em;

    color: var(--adventure-ink);
}


/* The highlighted part of the title */

.content-page .chapter-title span {
    background:
        linear-gradient(100deg,
            #087e92 0%,
            #6250d9 45%,
            #9a3fc4 72%,
            #c27a22 100%);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   EYEBROWS
   Small adventurous accent
   ========================================================= */

.content-page .eyebrow {
    color: #7250b5;

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.20em;
}


/* Tiny expedition marker */

.content-page .eyebrow::before {
    content: "◆";

    margin-right: 9px;

    font-size: 0.58rem;

    color: var(--adventure-amber);
}


/* =========================================================
   LEAD TEXT
   ========================================================= */

.content-page .chapter-lead {
    color: #435269;

    font-size:
        clamp(1rem, 1.35vw, 1.12rem);

    line-height: 1.6;
}


/* =========================================================
   PAGE NUMBER
   ========================================================= */

.content-page .page-number {
    color: #8e7aa9;

    font-weight: 900;
}


/* =========================================================
   CARDS
   Softer and more editorial
   ========================================================= */

.loop-card,
.idea-item,
.project-card,
.starter-tool,
.instruction-box,
.big-action,
.make-better-card,
.achievement-card,
.ask-recipe>div,
.small-step-list>div,
.safe-file,
.next-project-card,
.check-row {

    background:
        linear-gradient(145deg,
            #fafbfc,
            #f6f4f9);

    border-color:
        rgba(72, 55, 100, 0.10);
}


/* Number circles */

.loop-card>span,
.small-step-list span,
.instruction-number,
.tool-number {

    background:
        linear-gradient(135deg,
            #102033,
            #352658);

    box-shadow:
        0 5px 14px rgba(53, 38, 88, 0.15);
}


/* =========================================================
   ACTIVE PAGE
   Subtle aurora halo
   ========================================================= */

.content-page.is-active-page .reading-panel {
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.44),
        0 10px 30px rgba(0, 0, 0, 0.14),
        -12px 0 50px rgba(0, 199, 217, 0.035),
        12px 0 55px rgba(124, 77, 255, 0.055);
}


/* =========================================================
   PROGRESS BAR
   Aurora journey
   ========================================================= */

.ebook-progress-bar {
    background:
        linear-gradient(90deg,
            var(--adventure-cyan),
            var(--adventure-violet),
            var(--adventure-magenta),
            var(--adventure-amber));

    box-shadow:
        0 0 16px rgba(124, 77, 255, 0.35);
}


/* =========================================================
   EXPERIENCE DOT
   Warm contrast instead of another blue dot
   ========================================================= */

.experience-dot {
    background:
        var(--adventure-amber);

    box-shadow:
        0 0 13px rgba(244, 166, 42, 0.65);
}


/* =========================================================
   OUTER CODE DETAILS
   ========================================================= */

.content-page::after {
    color:
        rgba(201, 180, 255, 0.32);
}


/* =========================================================
   DESKTOP CONTENT BALANCE
   Give lower content more breathing room
   ========================================================= */

@media (min-width: 901px) {

    .content-page .reading-panel {
        padding:
            54px 68px;
    }

}

/* =========================================================
   FINAL TITLE SIZE & PAGE BALANCE
   Pages 2–25
   ========================================================= */

/* Smaller premium chapter titles */

.content-page .chapter-title {
    max-width: 640px;

    font-size:
        clamp(2rem, 3vw, 3rem);

    line-height: 1.04;

    letter-spacing: -0.038em;
}


/* Highlighted second line */

.content-page .chapter-title span {
    margin-top: 3px;
}


/* Smaller supporting sentence */

.content-page .chapter-lead {
    max-width: 650px;

    margin-top: 16px;

    font-size:
        clamp(0.96rem, 1.2vw, 1.08rem);

    line-height: 1.55;
}


/* Slightly tighter top label */

.content-page .eyebrow {
    margin-bottom: 13px;

    font-size: 0.65rem;
}


/* Give the actual lesson more room */

.content-page .reading-panel {
    padding-top: 48px;
    padding-bottom: 48px;
}


/* Tighten common sections slightly */

.content-page .simple-message {
    margin-top: 18px;
}

.content-page .conversation-example {
    margin-top: 18px;
}

.content-page .chapter-closing {
    margin-top: 20px;
    padding-top: 16px;
}


/* =========================================================
   SMALLER LAPTOPS / TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .content-page .chapter-title {
        font-size:
            clamp(1.9rem, 5vw, 2.7rem);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .content-page .chapter-title {
        font-size:
            clamp(1.85rem, 9vw, 2.5rem);

        line-height: 1.06;
    }

    .content-page .reading-panel {
        padding-top: 44px;
        padding-bottom: 36px;
    }

}

/* =========================================================
   BUILDFRAME EBOOK FOOTER
   ========================================================= */

.ebook-page-footer {
    position: absolute !important;

    left: 48px;
    right: 48px;
    bottom: 20px;

    z-index: 5 !important;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding-top: 12px;

    border-top:
        1px solid rgba(15, 23, 42, 0.08);

    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.08em;
}


.footer-brand {
    justify-self: start;

    font-weight: 900;
    letter-spacing: 0.14em;

    background:
        linear-gradient(90deg,
            #087e92,
            #6250d9,
            #9a3fc4);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.footer-guide {
    justify-self: center;

    color: #9aa5b5;
}


.footer-page {
    justify-self: end;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-weight: 800;

    color: #8e7aa9;
}


/* Leave room for footer */

.content-page .reading-panel {
    padding-bottom: 66px;
}


/* Mobile */

@media (max-width: 640px) {

    .ebook-page-footer {
        left: 24px;
        right: 24px;
        bottom: 16px;

        grid-template-columns: 1fr auto;
    }

    .footer-guide {
        display: none;
    }

}

/* =========================================================
   BUILDFRAME CLICKABLE FOOTER — FINAL
   ========================================================= */

.ebook-page-footer {
    left: 42px;
    right: 42px;
    bottom: 17px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;

    padding-top: 13px;

    border-top: 2px solid transparent;

    border-image:
        linear-gradient(90deg,
            #00c7d9,
            #7c4dff,
            #c13cff,
            #f4a62a) 1;

    font-size: 0.74rem;
    line-height: 1.2;
}


/* BUILDFRAME */

.footer-brand {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;

    text-decoration: none;

    background:
        linear-gradient(90deg,
            #087e92,
            #6250d9,
            #9a3fc4);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.footer-brand:hover {
    transform: translateY(-1px);
    opacity: 0.75;
}


/* CLICKABLE LINKS */

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-links a {
    position: relative;

    font-size: 0.72rem;
    font-weight: 700;

    color: #65758b;

    text-decoration: none;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.footer-links a:hover {
    color: #6c4bd2;

    transform: translateY(-1px);
}

.footer-links a:not(:last-child)::after {
    content: "•";

    position: absolute;
    right: -12px;

    color: #c2cad5;
}


/* PAGE NUMBER */

.footer-page {
    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.74rem;
    font-weight: 900;

    color: #8e7aa9;
}


/* Give the footer proper breathing room */

.content-page .reading-panel {
    padding-bottom: 78px;
}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media (max-width: 640px) {

    .ebook-page-footer {
        left: 22px;
        right: 22px;

        grid-template-columns: 1fr auto;

        gap: 12px;
    }

    .footer-links {
        grid-column: 1 / -1;

        order: 3;

        justify-content: flex-start;

        gap: 14px;

        margin-top: 6px;
    }

    .footer-links a {
        font-size: 0.66rem;
    }

}

/* =========================================================
   PAGE 9 — HTML, CSS & JAVASCRIPT
   ========================================================= */

.web-building-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.web-block-card {
    position: relative;
    min-height: 190px;
    padding: 20px 18px;

    background:
        linear-gradient(145deg,
            #ffffff 0%,
            #f8faff 100%);

    border: 1px solid #e5e9f2;
    border-radius: 14px;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.07);

    overflow: hidden;
}

.web-block-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.html-card::before {
    background:
        linear-gradient(90deg,
            #f4a62a,
            #ff7a45);
}

.css-card::before {
    background:
        linear-gradient(90deg,
            #00c7d9,
            #4776e6);
}

.js-card::before {
    background:
        linear-gradient(90deg,
            #7c4dff,
            #c13cff);
}

.web-block-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 6px 11px;
    margin-bottom: 12px;

    border-radius: 7px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.html-card .web-block-label {
    color: #9a4d0b;
    background: #fff3df;
}

.css-card .web-block-label {
    color: #08798b;
    background: #e8fbfd;
}

.js-card .web-block-label {
    color: #6840b5;
    background: #f0eaff;
}

.web-block-card h3 {
    margin: 0 0 8px;

    color: #172033;

    font-size: 1rem;
    line-height: 1.25;
}

.web-block-card p {
    margin: 0;

    color: #657187;

    font-size: 0.82rem;
    line-height: 1.5;
}

.web-block-examples {
    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid #e8ebf2;

    color: #7b8496;

    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.45;
}


/* HOUSE EXAMPLE */

.house-example {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;

    margin-top: 18px;
    padding: 17px 20px;

    background:
        linear-gradient(135deg,
            rgba(0, 199, 217, 0.07),
            rgba(124, 77, 255, 0.07),
            rgba(244, 166, 42, 0.07));

    border: 1px solid #e3e7f0;
    border-radius: 13px;
}

.house-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background: #ffffff;

    border: 1px solid #e1e6ef;
    border-radius: 14px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08);

    font-size: 1.7rem;
}

.house-example .example-label {
    margin: 0 0 7px;

    color: #7250b5;

    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.house-example p {
    margin: 3px 0;

    color: #566277;

    font-size: 0.78rem;
    line-height: 1.4;
}

.house-example strong {
    color: #1d2940;
}


/* RESPONSIVE */

@media (max-width: 760px) {

    .web-building-blocks {
        grid-template-columns: 1fr;
    }

    .web-block-card {
        min-height: 0;
    }

}

@media (max-width: 520px) {

    .house-example {
        grid-template-columns: 1fr;
    }

    .house-icon {
        width: 52px;
        height: 52px;
    }

}

/* =========================================================
   PAGE 9 — HTML, CSS & JAVASCRIPT
   ========================================================= */

.web-building-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.web-block-card {
    position: relative;
    min-height: 190px;
    padding: 20px 18px;

    background:
        linear-gradient(145deg,
            #ffffff 0%,
            #f8faff 100%);

    border: 1px solid #e5e9f2;
    border-radius: 14px;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.07);

    overflow: hidden;
}

.web-block-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.html-card::before {
    background:
        linear-gradient(90deg,
            #f4a62a,
            #ff7a45);
}

.css-card::before {
    background:
        linear-gradient(90deg,
            #00c7d9,
            #4776e6);
}

.js-card::before {
    background:
        linear-gradient(90deg,
            #7c4dff,
            #c13cff);
}

.web-block-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 6px 11px;
    margin-bottom: 12px;

    border-radius: 7px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.html-card .web-block-label {
    color: #9a4d0b;
    background: #fff3df;
}

.css-card .web-block-label {
    color: #08798b;
    background: #e8fbfd;
}

.js-card .web-block-label {
    color: #6840b5;
    background: #f0eaff;
}

.web-block-card h3 {
    margin: 0 0 8px;

    color: #172033;

    font-size: 1rem;
    line-height: 1.25;
}

.web-block-card p {
    margin: 0;

    color: #657187;

    font-size: 0.82rem;
    line-height: 1.5;
}

.web-block-examples {
    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid #e8ebf2;

    color: #7b8496;

    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.45;
}


/* HOUSE EXAMPLE */

.house-example {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;

    margin-top: 18px;
    padding: 17px 20px;

    background:
        linear-gradient(135deg,
            rgba(0, 199, 217, 0.07),
            rgba(124, 77, 255, 0.07),
            rgba(244, 166, 42, 0.07));

    border: 1px solid #e3e7f0;
    border-radius: 13px;
}

.house-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background: #ffffff;

    border: 1px solid #e1e6ef;
    border-radius: 14px;

    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08);

    font-size: 1.7rem;
}

.house-example .example-label {
    margin: 0 0 7px;

    color: #7250b5;

    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.house-example p {
    margin: 3px 0;

    color: #566277;

    font-size: 0.78rem;
    line-height: 1.4;
}

.house-example strong {
    color: #1d2940;
}


/* RESPONSIVE */

@media (max-width: 760px) {

    .web-building-blocks {
        grid-template-columns: 1fr;
    }

    .web-block-card {
        min-height: 0;
    }

}

@media (max-width: 520px) {

    .house-example {
        grid-template-columns: 1fr;
    }

    .house-icon {
        width: 52px;
        height: 52px;
    }

}