/* ============================================
   REBOOT CAMP EBOOK — BLUEPRINT PALETTE v1.3
   DN Creative LLC · June 2026
   ============================================ */

:root {
  --bg:          #F8FAFC;
  --midnight:    #0F172A;
  --cyan:        #06B6D4;
  --cyan-deep:   #0891B2;
  --bone:        #E2E8F0;
  --slate:       #475569;
  --gunmetal:    #1E293B;
  --silver:      #CBD5E1;
  --pewter:      #94A3B8;
  --fog:         #64748B;
  --max-width:   680px;
  --reading-pad: clamp(20px, 5vw, 48px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--midnight);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PROGRESS BAR — web only */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--cyan);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* NAV */
.ebook-nav {
  position: sticky;
  top: 0;
  background: var(--midnight);
  z-index: 100;
  padding: 16px var(--reading-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ebook-nav .logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ebook-nav img.logo {
  height: 28px;
  width: auto;
}

/* Text logo (used when SVG is unavailable) */
.logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F8FAFC;
  line-height: 1;
}

.logo-weight-light {
  font-weight: 200;
  opacity: 0.55;
}


/* WRAPPER */
.ebook-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--reading-pad);
}

/* ============================================
   COVER
   ============================================ */
.cover {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  page-break-after: always;
  break-after: page;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.2) 0%,
    rgba(15,23,42,0.5) 50%,
    rgba(15,23,42,0.95) 100%
  );
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 60px var(--reading-pad) 200px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.cover-logo {
  height: 36px;
  width: auto;
  margin-bottom: 40px;
  display: block;
}

/* Text logo variant for cover */
.cover-logo-brand {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F8FAFC;
  line-height: 1;
  margin-bottom: 40px;
}

.cover-overline {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4em;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}

.cover-title {
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.0;
  color: #F8FAFC;
  margin-bottom: 20px;
}

.cover-title em {
  font-style: normal;
  color: var(--cyan);
}

.cover-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(248,250,252,0.7);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.cover-rule {
  width: 48px;
  height: 3px;
  background: var(--cyan);
  margin-bottom: 16px;
}

.cover-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(248,250,252,0.6);
}

/* SCROLL HINT — web only */
@media screen {
  @keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 0.8; }
  }

  .scroll-hint {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    color: #F8FAFC;
    animation: scroll-bounce 2s ease-in-out infinite;
    pointer-events: none;
  }
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-section {
  background: var(--midnight);
  padding: 80px 0;
  page-break-after: always;
  break-after: page;
}

.toc-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--reading-pad);
}

.toc-overline {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}

.toc-heading {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #F8FAFC;
  margin-bottom: 48px;
  line-height: 1.1;
}

.toc-list {
  list-style: none;
  border-top: 1px solid var(--gunmetal);
}

.toc-list li {
  border-bottom: 1px solid var(--gunmetal);
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  text-decoration: none;
  color: rgba(248,250,252,0.8);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--cyan);
}

.toc-num {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  min-width: 36px;
  flex-shrink: 0;
}

.toc-title {
  flex: 1;
}

/* ============================================
   CHAPTER SECTIONS
   ============================================ */
.chapter {
  padding: 80px 0 64px;
  page-break-before: always;
  break-before: page;
}

.chapter + .chapter {
  border-top: 1px solid var(--bone);
}

/* Image flush against opener when image leads the chapter */
.chapter:has(> .image-wrap:first-child) {
  padding-top: 0;
}
.chapter > .image-wrap:first-child {
  margin-top: 0;
}

/* Chapter opener — dark */
.chapter-opener {
  background: var(--midnight);
  padding: 80px 0 64px;
  page-break-before: always;
  break-before: page;
}

.chapter-opener .ebook-body {
  padding: 0 var(--reading-pad);
}

/* Step number display */
.step-number {
  font-size: clamp(80px, 20vw, 120px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  opacity: 0.25;
}

.chapter-opener .step-number {
  -webkit-text-stroke: 2px var(--cyan);
  opacity: 0.3;
}

.step-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}

.chapter-title {
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--midnight);
  line-height: 1.05;
  margin-bottom: 24px;
}

.chapter-opener .chapter-title {
  color: #F8FAFC;
}

/* Section opener (non-step) */
.section-opener {
  background: var(--bone);
  padding: 64px 0 48px;
  page-break-before: always;
  break-before: page;
}

.section-title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--midnight);
  line-height: 1.1;
  margin-bottom: 24px;
}

.accent-rule {
  width: 48px;
  height: 3px;
  background: var(--cyan);
  margin-bottom: 24px;
}

/* ============================================
   TYPOGRAPHY — BODY
   ============================================ */
.body-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--midnight);
  opacity: 0.85;
}

.chapter-opener .body-text,
.toc-section .body-text {
  color: rgba(248,250,252,0.75);
}

.body-text p {
  margin-bottom: 1.4em;
}

.body-text p:last-child {
  margin-bottom: 0;
}

.body-text strong {
  font-weight: 900;
  color: var(--midnight);
  opacity: 1;
}

.chapter-opener .body-text strong {
  color: #F8FAFC;
}

.body-text ul,
.body-text ol {
  padding-left: 20px;
  margin-bottom: 1.4em;
}

.body-text li {
  margin-bottom: 0.6em;
}

/* PULL QUOTE */
blockquote.pull-quote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 20px;
  margin: 32px 0;
}

blockquote.pull-quote p {
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  color: var(--midnight);
  line-height: 1.65;
  margin: 0;
}

.chapter-opener blockquote.pull-quote p {
  color: #F8FAFC;
}

blockquote.pull-quote cite {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 8px;
}

/* CALLOUT BOX */
.callout {
  background: var(--midnight);
  padding: 28px 24px;
  margin: 32px 0;
}

.callout.cyan {
  background: var(--cyan);
}

.callout p {
  font-size: 14px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.6;
  margin: 0;
}

.callout.cyan p {
  color: #000000;
}

/* STATEMENT — emphasis lines */
.statement {
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--midnight);
  line-height: 1.3;
  margin: 32px 0;
  text-transform: uppercase;
}

.chapter-opener .statement {
  color: #F8FAFC;
}

/* AFFIRMATION */
.affirmation {
  background: var(--gunmetal);
  border-left: 3px solid var(--cyan);
  padding: 20px 24px;
  margin: 28px 0;
}

.affirmation p {
  font-size: 14px;
  font-weight: 900;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  margin: 0;
}

/* FORMULA */
.formula {
  text-align: center;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--midnight);
  padding: 28px 0;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  margin: 32px 0;
}

/* STAT BLOCK */
.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
  margin: 32px 0;
  background: var(--silver);
}

.stat-item {
  background: var(--midnight);
  padding: 24px 20px;
  text-align: center;
}

.stat-number {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cyan);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 6px;
  display: block;
}

/* ============================================
   IMAGES
   ============================================ */
.chapter-image {
  width: calc(100% + (var(--reading-pad) * 2));
  margin-left: calc(var(--reading-pad) * -1);
  margin-right: calc(var(--reading-pad) * -1);
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0;
}

.image-wrap {
  margin: 40px 0;
}

.image-caption {
  background: var(--midnight);
  padding: 10px var(--reading-pad);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  width: calc(100% + (var(--reading-pad) * 2));
  margin-left: calc(var(--reading-pad) * -1);
}

/* ============================================
   THE ACTION
   ============================================ */
.the-action {
  background: var(--cyan);
  padding: 32px 28px;
  margin: 40px 0 0;
}

.action-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 12px;
  display: block;
}

.action-text {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  line-height: 1.65;
  margin: 0;
}

/* CHAPTER DIVIDER */
.chapter-divider {
  border: none;
  height: 1px;
  background: var(--silver);
  margin: 48px 0;
}

/* SIGN-OFF */
.sign-off {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 3px solid var(--cyan);
}

.sign-off p {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--slate);
  margin: 0;
}

/* ============================================
   ABOUT / BACK MATTER
   ============================================ */
.about-section {
  background: var(--midnight);
  padding: 80px 0;
  page-break-before: always;
  break-before: page;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--reading-pad);
}

.author-photo-placeholder {
  width: 400px;
  height: 500px;
  border-radius: 0;
  background: var(--gunmetal);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.author-photo-placeholder span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
}

.author-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 2px solid var(--cyan);
}

/* 2-col author layout — photo left, header right, body below */
.author-2col {
  display: grid;
  grid-template-columns: 113px 1fr;
  grid-template-areas:
    "photo header"
    "body  body";
  column-gap: 16px;
  row-gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}

.author-photo {
  grid-area: photo;
  max-width: none;
  width: 100%;
}

.author-2col-content {
  grid-area: header;
  display: flex;
  flex-direction: column;
  align-self: center;
}

.author-2col-body {
  grid-area: body;
}

@media screen and (min-width: 768px) {
  .author-2col {
    grid-template-columns: 240px 1fr;
    grid-template-areas:
      "photo header"
      "photo body";
    column-gap: 48px;
    row-gap: 24px;
    align-items: start;
  }

  .author-photo {
    height: 100%;
    object-fit: cover;
  }

  .author-2col-content {
    align-self: start;
  }
}

.author-name {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #F8FAFC;
  margin-bottom: 6px;
}

.author-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: block;
}

.about-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(248,250,252,0.75);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.2em;
}

/* CTA BUTTON */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--cyan);
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-top: 32px;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--cyan-deep);
}

/* ============================================
   FOOTER
   ============================================ */
.ebook-footer {
  background: var(--midnight);
  border-top: 3px solid var(--cyan);
  padding: 40px var(--reading-pad);
  text-align: center;
}

.footer-logo {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo-text {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,250,252,0.5);
  margin-bottom: 16px;
  text-align: center;
}

.footer-signoff {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 12px;
}

.footer-legal {
  font-size: 9px;
  font-weight: 500;
  color: var(--fog);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ============================================
   PRINT / EPUB
   ============================================ */
@media print {
  #progress-bar,
  .ebook-nav {
    display: none !important;
  }

  body {
    font-size: 12pt;
    background: white;
    color: black;
  }

  .cover {
    min-height: 100vh;
  }

  .cover-overlay {
    background: rgba(15,23,42,0.7);
  }

  /* Chapter opener starts on its own page; body flows directly after — no second forced break */
  .chapter-opener,
  .section-opener,
  .toc-section,
  .about-section {
    page-break-before: always;
    break-before: page;
  }

  .chapter {
    page-break-before: auto;
    break-before: auto;
  }

  /* Keep TOC entirely on one page */
  .toc-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Prevent heading orphans — keep chapter head glued to the content that follows */
  .chapter-opener,
  .section-opener {
    page-break-after: avoid;
    break-after: avoid;
  }

  .chapter-title,
  .section-title,
  .step-label,
  .step-number {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Widow / orphan control */
  p {
    orphans: 3;
    widows: 3;
  }

  /* "A Quick Note from Me" — compress to fit on one page */
  #note {
    padding: 32px 0 24px;
  }

  #note + article.chapter {
    padding: 24px 0 32px;
  }

  #note + article.chapter .body-text p,
  #note + article.chapter .sign-off p {
    font-size: 9.5pt;
    line-height: 1.55;
    margin-bottom: 0.55em;
  }

  /* About page: 2-col layout + keep on one page */
  .about-section {
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 48px 0;
  }

  .author-2col {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas:
      "photo header"
      "photo body";
    gap: 40px;
    align-items: start;
    margin-bottom: 0;
  }

  .author-photo {
    max-width: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .chapter-image {
    max-height: 300px;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}

@page {
  margin: 0;
  size: 8.5in 11in;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .stat-block {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   CHAPTER NAV — screen only
   ============================================ */
@media screen {
  /* sticky is set in base styles; add relative only as containing block fallback */
  .ebook-nav { position: sticky; }

  .nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--fog);
    transition: color 0.2s;
  }
  .nav-toggle:hover { color: var(--silver); }

  .nav-toggle-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }

  .nav-toggle-chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .ebook-nav.nav-open .nav-toggle-chevron { transform: rotate(180deg); }

  .nav-hamburger-bars {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 22px;
  }
  .nav-hamburger-bars span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
  }
  .ebook-nav.nav-open .nav-hamburger-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ebook-nav.nav-open .nav-hamburger-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .ebook-nav.nav-open .nav-hamburger-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #ffffff;
    border-top: 3px solid var(--cyan);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.1);
    display: none;
    z-index: 200;
  }
  .ebook-nav.nav-open .nav-menu { display: block; }

  .nav-menu-head { display: none; }

  .nav-menu-list { list-style: none; padding: 0; }

  .nav-menu-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-deep);
    text-decoration: none;
    background: #F0FDFF;
    border-bottom: 1px solid var(--bone);
    transition: background 0.15s, color 0.15s;
  }
  .nav-menu-cta:hover {
    background: #E0F9FF;
    color: #0369A1;
  }

  .nav-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--slate);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .nav-menu-link:hover {
    background: #F0FDFF;
    color: var(--midnight);
  }
  .nav-menu-link.nav-coming-soon {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
  }

  .nav-step-num {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--cyan-deep);
    min-width: 20px;
    flex-shrink: 0;
  }

  .nav-menu-sep {
    height: 1px;
    background: var(--bone);
    margin: 4px 18px;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    z-index: 95;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav-overlay.nav-open { display: block; }
}

/* Mobile — drawer pattern */
@media screen and (max-width: 640px) {
  .nav-toggle-label,
  .nav-toggle-chevron { display: none; }
  .nav-hamburger-bars { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    border-top: none;
    border-left: 2px solid var(--cyan);
    overflow-y: auto;
    display: block;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.28s;
    z-index: 200;
  }
  .ebook-nav.nav-open .nav-menu {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), visibility 0s;
  }

  .nav-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu-title {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fog);
  }
  .nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pewter);
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
  }
  .nav-close:hover { color: #F8FAFC; }

  .nav-menu-list { padding: 12px 0; }
  .nav-menu-link { padding: 12px 18px; font-size: 13px; }
}

/* ============================================
   DN CREATIVE FOOTER CREDIT
   ============================================ */
.footer-producer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  justify-content: center;
}

.dn-produced {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  opacity: 0.7;
}

.dn-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.dn-credit:hover { opacity: 1; }

.dn-icon {
  height: 16px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.dn-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--silver);
  white-space: nowrap;
}

/* ============================================
   DOWNLOAD DROPDOWN
   ============================================ */
.download-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 28px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--midnight);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #22d3ee;
}

.dropdown-chevron {
  transition: transform 0.2s;
}

.download-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.download-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--midnight);
  border: 1px solid var(--cyan);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 100;
}

.download-menu.is-open {
  display: block;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #F8FAFC;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.download-option:hover {
  background: var(--cyan);
  color: var(--midnight);
}

/* ============================================
   CLOSING STATEMENT
   ============================================ */
.closing-statement {
  position: relative;
  overflow: hidden;
  background: var(--midnight);
  text-align: center;
  padding: 100px 24px;
}

.closing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}

.closing-content {
  position: relative;
  z-index: 1;
}

.closing-statement h2 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--cloud);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1;
}

.closing-statement p {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================
   EBOOK PROMO CARD
   ============================================ */
.promo-card-section {
  padding: clamp(24px, 4vw, 40px) var(--reading-pad) clamp(48px, 8vw, 80px);
  background: var(--bg);
}

.chapter-pre-promo {
  padding-bottom: 24px;
}

.promo-card {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--bone);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 2px 16px rgba(15,23,42,0.06);
}

.promo-card-image-wrap {
  position: relative;
}

.promo-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.08);
}

.promo-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-card-overline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  width: fit-content;
}

.promo-card-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--midnight);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.promo-card-body {
  font-size: clamp(0.875rem, 1.5vw, 0.975rem);
  color: var(--slate);
  line-height: 1.75;
  margin: 0;
}

.promo-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--midnight);
  color: #F8FAFC;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 24px;
  border: none;
  border-radius: 4px;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
}

.promo-card-cta:hover {
  background: var(--gunmetal);
  transform: translateY(-1px);
}

.promo-card-cta svg {
  flex-shrink: 0;
  transition: transform 0.15s;
}

.promo-card-cta:hover svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .promo-card {
    grid-template-columns: 1fr;
  }

  .promo-card-image-wrap {
    max-width: 260px;
    margin: 0 auto;
  }
}

