/* Brand colours and fonts live here. */
:root {
  --navy-950: #071322;
  --navy-900: #0b1a2e;
  --navy-800: #12263f;
  --navy-700: #1b3352;
  --green: #5fae5a;
  --yellow: #ffe600;        /* boxes, buttons */
  --yellow-text: #fddb05;   /* yellow lettering */
  --cream: #f6f1e4;
  --ink: #16202c;
  --text: #e8edf3;
  --muted: #a9b6c6;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
}
h2 { font-size: clamp(34px, 7vw, 52px); text-transform: uppercase; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--yellow-text); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-text);
  margin-bottom: 10px;
}
.eyebrow--dark { color: var(--navy-700); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 0 #b9a400, 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b9a400, 0 16px 32px rgba(0, 0, 0, 0.4); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b9a400, 0 6px 14px rgba(0, 0, 0, 0.3); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn--small { font-size: 17px; padding: 8px 16px; box-shadow: 0 3px 0 #b9a400; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 19, 34, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.topbar .btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.topbar--cta .btn { opacity: 1; pointer-events: auto; transform: none; }

/* Hero: photo on top on phones, behind the text on wider screens */
.hero { position: relative; background: var(--navy-950); overflow: hidden; }
.hero__photo { display: block; position: relative; }
.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 48% 20%;
}
.hero__photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 45%;
  background: linear-gradient(to bottom, rgba(7, 19, 34, 0), var(--navy-950));
}
.hero__content { position: relative; padding-top: 4px; padding-bottom: 52px; }
.hero__title {
  font-size: clamp(54px, 15vw, 104px);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.hero__sub { font-size: 21px; color: var(--text); max-width: 30ch; margin-bottom: 28px; }
.hero__note { font-size: 16px; color: var(--muted); margin: 18px 0 0; }

@media (min-width: 760px) {
  .hero { min-height: 640px; display: flex; align-items: center; }
  .hero__photo { position: absolute; top: 0; bottom: 0; right: 0; left: 36%; }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 45% 30%; }
  .hero__photo::after {
    top: 0; bottom: 0; height: auto;
    background:
      linear-gradient(90deg, var(--navy-950) 0%, rgba(7, 19, 34, 0.6) 14%, rgba(7, 19, 34, 0) 36%),
      linear-gradient(to top, rgba(7, 19, 34, 0.7), rgba(7, 19, 34, 0) 30%);
  }
  .hero__content { padding-top: 72px; padding-bottom: 80px; }
  .hero__content > * { max-width: 560px; }
  .hero__title { font-size: clamp(64px, 7.4vw, 104px); max-width: 640px; }
}

/* Intro */
.intro { padding: 64px 0; background: var(--navy-900); }
.intro__lead {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 8vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--yellow-text);
}
.intro p:not(.intro__lead) { font-size: 20px; }

/* What's inside */
.inside { padding: 72px 0; background: var(--navy-800); }
.inside__head { display: grid; gap: 36px; align-items: center; margin-bottom: 40px; }
@media (min-width: 760px) { .inside__head { grid-template-columns: 300px 1fr; gap: 56px; } }

.book { perspective: 1200px; display: flex; justify-content: center; }
.book__cover {
  width: 230px;
  height: auto;
  border-radius: 3px 8px 8px 3px;
  transform: rotateY(-14deg);
  box-shadow: inset 6px 0 10px rgba(0, 0, 0, 0.35), 18px 22px 40px rgba(0, 0, 0, 0.5);
}

.chapters {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
@media (min-width: 760px) { .chapters { grid-template-columns: 1fr 1fr; gap: 14px 18px; } }
.chapters li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.chapters__num {
  flex: none;
  font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1;
  color: var(--yellow-text);
  min-width: 36px;
}
.chapters h3 { font-size: 23px; margin-bottom: 4px; color: #fff; }
.chapters p { font-size: 16px; color: var(--muted); margin: 0; }

.extras {
  margin-top: 28px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 18px;
}
.extras h3 { text-transform: uppercase; font-size: 26px; }
.extras ul { margin: 0; padding-left: 1.2em; }
.extras li { margin-bottom: 6px; }

/* Sample */
.sample { padding: 72px 0; background: var(--cream); color: var(--ink); }
.sample h2 { color: var(--navy-900); }
.catch {
  background: var(--yellow);
  border-left: 8px solid var(--navy-900);
  border-radius: 6px var(--radius) var(--radius) 6px;
  padding: 18px 20px 6px;
  margin-top: 8px;
}
.catch__label {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  text-transform: uppercase; margin-bottom: 4px;
}

/* About */
.about { padding: 72px 0; background: var(--navy-900); }
.about__inner { display: grid; gap: 30px; align-items: center; }
@media (min-width: 760px) { .about__inner { grid-template-columns: 320px 1fr; gap: 56px; } }
.about__photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--yellow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 760px) { .about__photo { width: 300px; height: 300px; } }
.link-yt {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; text-decoration: none;
  padding: 10px 0;
}
.link-yt:hover { text-decoration: underline; }

/* FAQ */
.faq { padding: 72px 0; background: var(--navy-800); }
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-weight: 700; font-size: 20px; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head); font-size: 32px; line-height: 1; color: var(--yellow-text);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: -4px; padding-bottom: 6px; }

/* Final CTA */
.final {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(95, 174, 90, 0.28), transparent 60%),
    var(--navy-950);
}
.final h2 { margin-bottom: 28px; }

/* Footer */
.footer { background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 26px 0; font-size: 15px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: #fff; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(42px, 9vw, 64px); text-transform: uppercase; }
.legal h2 { font-size: 28px; margin-top: 1.6em; }
.legal li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
