/* The Slow Crash — site stylesheet
   Palette pulled from the book cover: near-black ground, cream text, gold accent, red banner. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --card: #1a1a1e;
  --cream: #f0ede4;
  --cream-dim: #c9c6bc;
  --gold: #c9a961;
  --red: #c8102e;
  --border: #2a2a2f;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

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

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

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

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.topbar .brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.1rem;
}
.topbar .cta {
  background: var(--gold);
  color: #14140f;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.topbar .cta:hover { opacity: 0.9; }

/* Banner strip (matches cover) */
.banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 10px 16px;
}

/* Hero */
.hero {
  padding: 64px 0 80px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: #fff;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--cream-dim);
  margin-bottom: 28px;
  max-width: 46ch;
}
.hero .subtitle { max-width: 54ch; margin-bottom: 14px; font-size: 1.05rem; }
.hero h1 { text-wrap: balance; }
.hero h1 .h1-2 { display: block; margin-top: 10px; color: var(--gold); font-size: 0.86em; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 7px; color: var(--cream-dim); font-size: 1rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.checks li strong { color: var(--cream); }
.byline { color: var(--cream-dim); font-size: 0.9rem; margin: 0 0 22px; }
.hero .cover-wrap { text-align: center; }
.hero .cover-wrap img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #14140f; }
.btn-secondary { background: transparent; color: var(--cream); border: 1px solid var(--border); }
.trust-note { color: var(--cream-dim); font-size: 0.85rem; margin-top: 14px; }

/* Section basics */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; max-width: 30ch; }
section .lede { color: var(--cream-dim); max-width: 62ch; font-size: 1.05rem; }

/* Hook section */
.hook p { max-width: 68ch; font-size: 1.08rem; color: var(--cream-dim); }
.hook p strong { color: var(--cream); }

/* Inside grid */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.inside-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.inside-item h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.inside-item p { margin: 0; color: var(--cream-dim); font-size: 0.96rem; }

/* Author */
.author-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
.author-badge {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 700;
}
.author-grid p { color: var(--cream-dim); }
.author-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.price-card .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.price-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; margin-bottom: 4px; }
.price-card .price { font-size: 2rem; font-weight: 700; color: #fff; margin: 12px 0; font-family: 'Playfair Display', serif; }
.price-card .price sup { font-size: 1rem; color: var(--cream-dim); font-weight: 400; }
.price-card ul { margin: 0 0 24px; padding-left: 20px; color: var(--cream-dim); font-size: 0.95rem; }
.price-card ul li { margin-bottom: 6px; }
.price-card .btn { margin-top: auto; text-align: center; }
.placeholder-flag {
  display: inline-block;
  background: rgba(200,16,46,0.15);
  color: #ff8a94;
  border: 1px dashed var(--red);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-family: 'Inter', sans-serif; font-size: 1.02rem; color: var(--cream); margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--cream-dim); }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 0.85rem;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--cream-dim); text-decoration: underline; }

/* Simple pages (success/terms) */
.simple-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.simple-page .mark { font-size: 2.4rem; margin-bottom: 8px; }
.simple-page h1 { font-size: 2rem; color: #fff; }
.simple-page p { color: var(--cream-dim); font-size: 1.05rem; }
.simple-page .btn { margin-top: 24px; }
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal-page h1 { color: #fff; }
.legal-page h2 { font-size: 1.2rem; color: var(--gold); margin-top: 36px; }
.legal-page p, .legal-page li { color: var(--cream-dim); }

/* Direct-from-publisher (Coming Soon) */
.direct-block { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--border); }
.direct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.direct-grid .price-card { padding: 26px; }
.direct-grid .price-card h3 { font-size: 1.2rem; }
.price-card .tag.soon { color: #ff8a94; }
.btn-disabled {
  background: transparent;
  color: var(--cream-dim);
  border: 1px dashed var(--border);
  cursor: not-allowed;
  margin-top: auto;
  text-align: center;
}
.btn-disabled:hover { transform: none; }
.buy-note { color: var(--cream-dim); font-size: 0.78rem; text-align: center; margin: 10px 0 0; }
.fine-print { color: var(--cream-dim); font-size: 0.85rem; margin-top: 24px; }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cover-wrap img { max-width: 220px; }
  .inside-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .direct-grid { grid-template-columns: 1fr 1fr; }
  .author-grid { grid-template-columns: 1fr; text-align: left; }
  .author-badge { width: 100px; margin-bottom: 8px; }
  .author-photo { width: 160px; height: 160px; margin-bottom: 8px; }
}

@media (max-width: 1000px) and (min-width: 861px) {
  .direct-grid { gap: 14px; }
  .direct-grid .price-card { padding: 20px; }
}
@media (max-width: 560px) {
  .direct-grid { grid-template-columns: 1fr; }
}
