:root {
  --black: #070707;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --white: #f6f5f2;
  --white-dim: rgba(246, 245, 242, 0.72);
  --gold: #c6a45a;
  --gold-bright: #e0c47a;
  --gold-deep: #8a7035;
  --line: rgba(198, 164, 90, 0.28);
  --danger: #b33a3a;
  --radius: 0;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--white);
  background: var(--black);
  font-family: var(--font-body);
  line-height: 1.55;
  font-weight: 400;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(198, 164, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, rgba(198, 164, 90, 0.06), transparent 50%),
    var(--black);
  color: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.gold {
  color: var(--gold);
}

.muted {
  color: var(--white-dim);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 7, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 7, 0.88);
}

.site-header .inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.brand span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.28rem auto;
  background: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-links .nav-cta {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  padding: 0.55rem 0.9rem;
  margin-left: 0.35rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--black);
  background: linear-gradient(135deg, #ead7a2, var(--gold), var(--gold-deep));
  background-size: 160% 160%;
}

.btn-primary:hover {
  background-position: 100% 50%;
}

.btn-secondary {
  color: var(--white);
  border-color: var(--gold);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(198, 164, 90, 0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  max-width: 11ch;
}

.hero-brand em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold), #9a7a38);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero-support {
  max-width: 34rem;
  color: var(--white-dim);
  margin-bottom: 1.75rem;
}

.hero-author {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70svh;
  padding: clamp(1rem, 3vw, 2rem);
  background: #0a0a0a;
  overflow: hidden;
}

.hero-visual img {
  width: auto;
  height: auto;
  max-width: min(100%, 28rem);
  max-height: min(78svh, 44rem);
  object-fit: contain;
  object-position: center center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  background: #ffffff;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}

.section-lede {
  max-width: 38rem;
  color: var(--white-dim);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.cover-frame {
  position: relative;
  max-width: min(420px, 100%);
  width: 100%;
  margin-inline: auto;
}

.cover-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #ffffff;
}

.cover-frame.author-photo img {
  background: #111;
  object-fit: cover;
  object-position: center 12%;
  aspect-ratio: 4 / 5;
}

.cover-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line);
  z-index: -1;
}

/* Formats — editorial rows, not cards */
.formats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.format-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.format-row h3 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.format-row p {
  margin: 0;
  color: var(--white-dim);
  max-width: 36rem;
}

.format-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer-picker {
  margin-top: 1.25rem;
}

.offer-card {
  margin-top: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.offer-picker-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.offer-picker-count {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.lessons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.lesson {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.lesson strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.audience-list,
.faq-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.audience-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white-dim);
}

.audience-list li strong {
  color: var(--white);
  font-weight: 600;
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0;
}

.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  color: var(--white-dim);
  margin: 0.75rem 0 0.25rem;
  max-width: 40rem;
}

/* Page shells */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 14ch;
}

.page-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0 4rem;
}

.auth-form,
.library-empty {
  width: min(420px, 100%);
  display: grid;
  gap: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.auth-form input {
  background: var(--black-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 0.85rem 0.9rem;
}

.auth-form input:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.form-note {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.form-error {
  color: #ffb4b4;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.chapter-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-list .num {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.player-shell {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.player-shell audio {
  width: 100%;
  margin-top: 1rem;
}

.ad-slot {
  margin-top: 1rem;
  min-height: 90px;
  border: 1px dashed rgba(198, 164, 90, 0.35);
  display: grid;
  place-items: center;
  color: var(--white-dim);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer a {
  display: block;
  color: var(--white-dim);
  margin: 0.4rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white-dim);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }

.hero-visual {
  animation: coverIn 1.2s var(--ease) both;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes coverIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem 0;
    background: transparent;
  }

  .hero-visual img {
    width: min(100%, 22rem);
    max-width: 22rem;
    max-height: min(68svh, 34rem);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  }

  .hero-brand {
    max-width: none;
  }

  .split,
  .lessons,
  .footer-grid,
  .format-row {
    grid-template-columns: 1fr;
  }

  .split .cover-frame {
    width: min(100%, 20rem);
  }

  .cover-frame::before {
    inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  }

  .cover-frame.author-photo img {
    object-position: center 8%;
    aspect-ratio: 3 / 4;
  }

  .format-row .btn {
    justify-self: start;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 7, 7, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 2rem 1.25rem 3rem;
  }

  .hero-visual {
    padding: 0.85rem 1rem 0;
  }

  .hero-visual img {
    width: min(100%, 18.5rem);
    max-width: 18.5rem;
    max-height: min(62svh, 28rem);
  }

  .split .cover-frame {
    width: min(100%, 17.5rem);
  }

  .cover-frame.author-photo {
    width: min(100%, 16.5rem);
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.format-grid {
  display: grid;
  gap: 1rem;
}

/* Digital workbook */
.workbook-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.workbook-rail {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(17, 17, 17, 0.7);
}

.workbook-chapter-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-height: min(70vh, 36rem);
  overflow: auto;
}

.workbook-chapter-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.65rem;
  align-items: baseline;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
}

.workbook-chapter-list button.is-active,
.workbook-chapter-list button:hover {
  color: var(--gold-bright);
}

.workbook-chapter-list .lock {
  color: var(--white-dim);
  font-size: 0.75rem;
}

.workbook-intro {
  margin: 1rem 0 1.5rem;
  color: var(--white-dim);
  max-width: 42rem;
}

.workbook-prompt {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.workbook-prompt span {
  font-size: 0.95rem;
  line-height: 1.45;
}

.workbook-input,
.auth-form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font: inherit;
  padding: 0.85rem 1rem;
}

.workbook-input:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.workbook-input[readonly] {
  opacity: 0.72;
}

.fatb-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
}

.fatb-modal[hidden] {
  display: none !important;
}

.fatb-modal-card {
  width: min(34rem, 100%);
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .workbook-layout {
    grid-template-columns: 1fr;
  }

  .workbook-rail {
    position: static;
  }
}
