/* ============================================
   Reclaim Your Life — design tokens
   ============================================ */
:root {
  --paper: hsl(24 22% 8%);       /* deep warm chocolate — background */
  --paper-2: hsl(22 20% 11%);    /* lifted surface / cards */
  --ink: hsl(36 30% 92%);        /* warm cream — primary text */
  --ink-soft: hsl(36 18% 72%);   /* secondary text */
  --gold: hsl(36 52% 64%);       /* warm gold — italic accents, primary CTA */
  --rust: hsl(14 62% 52%);       /* terracotta — eyebrow labels, small accents */
  --ember: hsl(18 55% 42%);      /* deeper ember */
  --hairline: hsl(30 14% 18%);   /* dividers / borders */
  --muted: hsl(30 12% 62%);
  --btn-ink: hsl(24 22% 8%);     /* dark text on light/gold buttons */

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 720px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 { letter-spacing: -0.025em; }

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  display: block;
}

/* ============================================
   Nav — glass, blurred
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: hsla(24, 22%, 8%, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--hairline);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  border-color: var(--gold);
  background: var(--paper-2);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--btn-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px hsla(36, 52%, 64%, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 88px;
  overflow: hidden;
}

.hero .wrap {
  max-width: 980px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  text-align: left;
}

.hero-copy { flex: 1 1 420px; min-width: 0; }
.hero-copy .eyebrow { text-align: left; }

.hero-cover-wrap {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 0;
  position: relative;
  align-self: center;
}

.hero-cover {
  position: relative;
  width: 100%;
  max-width: 260px;
  overflow: hidden;
  border-radius: 3px;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.24) 0%, rgba(176, 141, 87, 0) 68%);
  z-index: 0;
  pointer-events: none;
}

.hero-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.3);
  outline: 1px solid hsla(36, 30%, 92%, 0.12);
  outline-offset: -1px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  max-width: 480px;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-soft);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 420px;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-form {
  margin-top: 40px;
  max-width: 420px;
}

.hero-form .waitlist-success { text-align: left; }
.hero-form .waitlist-success p { margin: 0; max-width: 420px; }

@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-copy .eyebrow { text-align: center; }
  .hero-cover-wrap { flex: 0 0 auto; width: 240px; order: -1; }
  .hero h1, .hero-sub { max-width: 480px; margin-left: auto; margin-right: auto; }
  .hero-form { margin-left: auto; margin-right: auto; }
  .hero-form .waitlist-success { text-align: center; }
}

/* ============================================
   Crack divider — signature motif, echoes the cover
   ============================================ */
.crack-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
}

.crack-divider path {
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.55;
}

/* ============================================
   Excerpt — a real passage from the book
   ============================================ */
.excerpt {
  background: var(--paper-2);
}

.excerpt .wrap { max-width: 640px; }

.excerpt-label {
  text-align: center;
}

.excerpt blockquote {
  margin: 0;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
  color: var(--ink);
}

.excerpt blockquote p { margin-bottom: 20px; }
.excerpt blockquote p:last-child { margin-bottom: 0; }

.excerpt-mark {
  text-align: center;
  color: var(--gold);
  font-size: 20px;
  margin: 36px 0;
}

.excerpt-close {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
}

.excerpt-close strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ============================================
   Pull quote — the dripping tap
   ============================================ */
.pull-quote {
  text-align: center;
}

.pull-quote .wrap { max-width: 620px; }

.pull-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.4;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================
   Waitlist form
   ============================================ */
.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1 1 240px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--btn-ink);
  min-width: 0;
}

.waitlist-input::placeholder { color: hsl(30 12% 42%); }

.waitlist-input:focus {
  border-color: var(--gold);
  outline: none;
}

.waitlist-micro {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.waitlist-error {
  margin-top: 12px;
  font-size: 14px;
  color: var(--rust);
  display: none;
}

.waitlist-error.is-visible { display: block; }

.waitlist-success {
  display: none;
  text-align: center;
}

.waitlist-success.is-visible { display: block; }

.waitlist-success h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.waitlist-success p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 380px;
  margin: 0 auto;
}

.waitlist-form.is-hidden { display: none; }

/* ============================================
   Generic section
   ============================================ */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
}

.section-desc {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Intro */
.intro { text-align: center; }
.intro .wrap { max-width: 620px; }
.intro p {
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.intro p:last-child { margin-bottom: 0; }
.intro p.intro-italic {
  font-style: italic;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
}

/* What's inside — list */
.inside-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inside-list li {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  font-size: 18px;
  color: var(--ink);
}

.inside-list li:last-child { border-bottom: 1px solid var(--hairline); }

/* Recognize yourself — relatable checklist */
.recognize-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recognize-list li {
  position: relative;
  padding: 22px 0 22px 34px;
  border-top: 1px solid var(--hairline);
  font-size: 17px;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
}

.recognize-list li:last-child { border-bottom: 1px solid var(--hairline); }

.recognize-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--gold);
}

/* Final CTA supporting line */
.final-cta-sub {
  max-width: 460px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  font-size: 16px;
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.test-card {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}

.test-card:hover {
  border-color: hsla(36, 52%, 64%, 0.4);
  transform: translateY(-2px);
}

.test-card h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--sans);
  margin-bottom: 10px;
}

.test-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.test-card .arrow {
  color: var(--gold);
  font-size: 18px;
}

/* About author */
.about { text-align: center; }
.about .wrap { max-width: 580px; }
.about p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.about p:last-child { margin-bottom: 0; }
.about p.about-emphasis {
  font-style: italic;
  color: var(--ink);
}

/* Final CTA */
.final-cta { text-align: center; }

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

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

/* Privacy page */
.legal {
  padding: calc(var(--nav-h) + 64px) 0 96px;
}
.legal .wrap { max-width: 640px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 40px; display: block; }
.legal h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
}
.legal p { color: var(--ink-soft); margin-bottom: 14px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .section { padding: 64px 0; }
  .test-grid { grid-template-columns: 1fr; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; }
}
