/* Start Here: styled after the ebook. Navy and orange, Poppins headings, Noto Serif body. */
:root {
  --navy: #15213b;
  --navy-2: #22325a;
  --navy-3: #2d3f6b;
  --orange: #e07b2e;
  --orange-dark: #c4651d;
  --cream: #fcefe3;
  --tint: #f3f5f9;
  --blue-box: #e8eef6;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #d6dbe5;
  --heading: 'Poppins', system-ui, sans-serif;
  --body: 'Noto Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: #fff; }
img { max-width: 100%; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.rule { width: 96px; height: 6px; background: var(--orange); margin: .5rem 0 1.5rem; }
.kicker { font-family: var(--heading); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.kicker-light { color: var(--orange); }
.lede { font-size: 1.15rem; max-width: 720px; }
.small { font-size: .95rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--heading); font-weight: 600; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-dark); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-light { background: var(--orange); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: #fff; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--orange); }
.buy-form { display: inline-block; margin: 0; }
.buy-note { font-family: var(--heading); font-size: .82rem; color: #b7c0d4; margin: .6rem 0 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--navy-2); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.wordmark { font-family: var(--heading); font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.wordmark::after { content: ''; display: block; width: 28px; height: 3px; background: var(--orange); margin-top: 2px; }
.topnav { display: flex; gap: 1.5rem; margin-left: auto; }
.topnav a { font-family: var(--heading); font-size: .92rem; color: #d5dbe8; text-decoration: none; }
.topnav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .eyebrow { font-family: var(--heading); font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #c9d1e2; margin: 0; }
.hero-title { font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; margin: 0 0 1rem; }
.hero-sub { font-family: var(--heading); font-weight: 300; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; color: #eef1f7; max-width: 34ch; }
.hero-tag { font-family: var(--heading); font-weight: 500; color: var(--orange); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }

/* The book cover, drawn in CSS to match the real one. Sized with container units so it scales as a whole. */
.hero-book { display: flex; justify-content: center; }
.book { width: min(100%, 340px); container-type: inline-size; transform: rotate(2deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.book-cover { position: relative; aspect-ratio: 952 / 1233; background: var(--navy); border: 1px solid var(--navy-3); border-radius: 3px 8px 8px 3px; padding: 9cqw 10cqw; overflow: hidden; box-shadow: inset 6px 0 0 rgba(255, 255, 255, .05); }
.book-cover p { margin: 0; color: #fff; font-family: var(--heading); }
.bc-eyebrow { font-size: 3.1cqw; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: #c9d1e2 !important; }
.bc-rule { display: block; width: 13cqw; height: 1.1cqw; background: var(--orange); margin: 3cqw 0 5cqw; }
.bc-title { font-size: 15cqw; font-weight: 800; line-height: .95; letter-spacing: -.02em; margin-bottom: 4cqw !important; }
.bc-sub { font-size: 3.6cqw; font-weight: 300; line-height: 1.35; margin-bottom: 3.5cqw !important; }
.bc-tag { font-size: 3cqw; font-weight: 500; color: var(--orange) !important; }
.bc-bars { position: absolute; right: 10cqw; bottom: 16cqw; display: flex; align-items: flex-end; gap: 1cqw; height: 37cqw; }
.bc-bars i { display: block; width: 6cqw; background: var(--navy-2); }
.bc-bars i:nth-child(1) { height: 14%; } .bc-bars i:nth-child(2) { height: 28%; } .bc-bars i:nth-child(3) { height: 43%; }
.bc-bars i:nth-child(4) { height: 57%; } .bc-bars i:nth-child(5) { height: 71%; } .bc-bars i:nth-child(6) { height: 86%; }
.bc-bars i:nth-child(7) { height: 100%; background: var(--orange); }
.bc-author { position: absolute; left: 10cqw; bottom: 9cqw; font-size: 4.3cqw; font-weight: 800; text-transform: uppercase; }
.bc-author span { display: block; font-size: 2.6cqw; font-weight: 400; color: #c9d1e2; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: #e6eaf2; }
.section-navy h2 { color: #fff; }

.worries { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.worries li { font-style: italic; padding: .6rem 1rem; margin-bottom: .5rem; background: var(--blue-box); border-radius: 10px; }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.steps strong { font-family: var(--heading); color: var(--navy); }
.steps span:last-child { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.step-n { font-family: var(--heading); font-weight: 800; font-size: 1.4rem; color: var(--orange); }

.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-top: 2rem; }
.chapter { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 10px; padding: 1.25rem 1.4rem; }
.chapter p { font-size: .97rem; color: var(--muted); margin: 0; line-height: 1.55; }
.chapter .ch-n { font-family: var(--heading); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }
.chapter h3 { margin-bottom: .4rem; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.extra { background: var(--cream); border-left: 5px solid var(--orange); border-radius: 0 10px 10px 0; padding: 1.25rem 1.4rem; }
.extra p { margin: 0; font-size: .97rem; line-height: 1.55; }

/* Boxes styled like the book's "You type" and tip boxes. */
.box { border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.box p:last-child { margin-bottom: 0; }
.box-label { font-family: var(--heading); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: .35rem !important; }
.box-type { background: #fff; border: 1.5px solid #b9c1d2; font-family: var(--heading); font-size: .95rem; line-height: 1.6; }
.box-tip { background: var(--cream); border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.not-list { background: var(--tint); border-radius: 12px; padding: 1.5rem; }
.not-list ul { margin: 0; padding-left: 1.2rem; }
.not-list li { margin-bottom: .4rem; }

.author { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; max-width: 860px; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: #fff; object-fit: cover; flex-shrink: 0; }
.experience { margin: 1.5rem 0 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--navy-3); }
.experience p { color: #fff; font-size: 1.1rem; }

details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; }
summary { font-family: var(--heading); font-weight: 600; color: var(--navy); padding: 1rem 1.25rem; cursor: pointer; list-style: none; position: relative; padding-right: 3rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--orange); }
details[open] summary::after { content: '–'; }
details p { padding: 0 1.25rem 1rem; margin: 0; }

.cta-band { background: var(--navy); padding: 4.5rem 0; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 2rem; }
.cta-band .buy-note { color: #b7c0d4; }

/* ---------- Footer ---------- */
.footer-band { background: #0e1729; color: #aab3c6; padding: 2rem 0; font-family: var(--heading); font-size: .88rem; }
.footer-band .site-footer p { margin: 0 0 .5rem; }
.footer-band nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-band a { color: #d5dbe8; text-decoration: none; }
.footer-band a:hover { color: #fff; text-decoration: underline; }
.footer-fine { margin: 1rem 0 0; color: #7f8aa3; }

/* ---------- Legal and other plain pages ---------- */
.prose-page { padding: 3.5rem 1.25rem 5rem; max-width: 760px; }
.prose-page h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; }
.prose-page .prose h2 { font-size: 1.3rem; margin: 2.25rem 0 .5rem; }
.prose-page .prose ul { padding-left: 1.25rem; }
.prose-page .prose li { margin-bottom: .4rem; }
.legal-updated { color: var(--muted); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-book { order: -1; }
  .book { width: min(62%, 260px); }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; gap: 1rem; }
  .avatar { width: 64px; height: 64px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .hero-cta .buy-form { width: 100%; }
}

/* Live price inside buy buttons. */
.btn-price { display: inline-block; margin-left: .5rem; padding-left: .6rem; border-left: 1px solid rgba(255, 255, 255, .45); font-weight: 700; }

/* Download buttons on the shared thank-you and download pages. */
.download-form { margin: 1.5rem 0; }
