/* ===========================
   The Debt Code — Design System
   =========================== */

:root {
  --charcoal: #2C2F35;
  --gold: #C09838;
  --sage: #8FAF8A;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --light-gray: #E8E5DE;
  --text-dark: #1A1C1E;
  --text-muted: #5A5E65;
  --max-width: 720px;
}

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

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

body {
  font-family: Georgia, Palatino, 'Times New Roman', serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: Impact, 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold); }

/* ---- Layout ---- */

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

section { padding: 64px 0; }

/* ---- Nav ---- */

.nav {
  background: var(--charcoal);
  padding: 16px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-brand {
  color: var(--white);
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--light-gray);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.88rem;
}

.nav-links a:hover { color: var(--gold); }

/* ---- Hero ---- */

.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0;
}

.hero-eyebrow {
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 20px;
  color: var(--white);
  max-width: 620px;
}

.hero-sub {
  font-size: 1.1rem;
  color: #C5C8CC;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-book-mock {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* CSS book cover mockup */
.book-cover {
  width: 140px;
  min-height: 196px;
  background: var(--charcoal);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  position: relative;
  flex-shrink: 0;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.book-cover-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.book-cover-subtitle {
  font-size: 0.65rem;
  color: var(--sage);
  font-family: Georgia, serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.book-cover-author {
  font-size: 0.7rem;
  color: #888;
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
}

.book-cover-ebook {
  background: #383C42;
}

.book-cover-paperback {
  background: var(--charcoal);
  width: 20px;
  min-height: 196px;
  border: none;
  padding: 8px 4px;
  justify-content: flex-start;
}

.book-price-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.9rem;
  padding: 6px 14px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  line-height: 1;
}

.btn:hover { opacity: 0.88; }

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

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

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 0;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-full { width: 100%; text-align: center; }

.btn-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Forms ---- */

.form-group { margin-bottom: 12px; }

.form-label {
  display: block;
  font-size: 0.88rem;
  color: #A0A4AA;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: Georgia, serif;
  border: 2px solid #3D4148;
  background: #383C42;
  color: var(--white);
  outline: none;
}

.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: #6A6E75; }

.form-trust {
  font-size: 0.82rem;
  color: #7A7E85;
  margin-top: 10px;
  font-family: Georgia, serif;
}

/* Light form (for white/light sections) */
.form-light .form-input {
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--text-dark);
}

.form-light .form-input::placeholder { color: #A0A4AA; }
.form-light .form-label { color: var(--text-muted); }
.form-light .form-trust { color: var(--text-muted); }

/* ---- Section variants ---- */

.section-light { background: var(--off-white); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-white { background: var(--white); }

.section-headline {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ---- Dividers ---- */

.gold-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0;
}

/* ---- Myth / Truth cards ---- */

.myth-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.myth-card {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--off-white);
}

.myth-label, .reality-label {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.myth-label { color: var(--text-muted); }
.reality-label { color: var(--sage); }

.myth-text {
  font-size: 1rem;
  margin-bottom: 14px;
  font-style: italic;
  color: var(--text-dark);
}

.reality-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
}

/* ---- Chapter list ---- */

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chapter-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
}

.chapter-num {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}

.chapter-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.chapter-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- Settlement examples ---- */

.example-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-card {
  padding: 28px;
  background: var(--charcoal);
  color: var(--white);
}

.example-amount {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.15;
}

.example-body {
  font-size: 0.92rem;
  color: #C5C8CC;
  margin: 0;
  line-height: 1.65;
}

/* ---- Pricing ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 580px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  border: 2px solid var(--light-gray);
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--gold);
}

.pricing-tag {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pricing-label {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 2.8rem;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---- Order Bump ---- */

.order-bump {
  border: 2px solid var(--gold);
  padding: 24px;
  background: #FBF8F0;
  margin: 24px 0;
}

.order-bump-header {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.order-bump label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.order-bump input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.order-bump-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  display: block;
}

.order-bump-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.order-bump-list {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 10px 0 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.order-bump-strike {
  text-decoration: line-through;
  color: #A0A4AA;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--light-gray);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
}

.faq-toggle {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  font-family: sans-serif;
}

.faq-item.open .faq-toggle::after { content: '−'; }
.faq-toggle::after { content: '+'; }

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---- Guarantee ---- */

.guarantee-box {
  border: 2px solid var(--light-gray);
  padding: 36px;
  text-align: center;
}

.guarantee-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ---- For/Not For ---- */

.for-list, .not-for-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.for-list li {
  padding: 14px 20px;
  background: var(--off-white);
  border-left: 3px solid var(--sage);
  font-size: 0.95rem;
  line-height: 1.6;
}

.not-for-list li {
  padding: 14px 20px;
  background: var(--off-white);
  border-left: 3px solid var(--light-gray);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Author ---- */

.author-block {
  padding: 36px;
  background: var(--off-white);
  border-top: 3px solid var(--gold);
}

.author-name {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---- CTA Section ---- */

.cta-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
  color: var(--white);
}

.trust-line {
  font-size: 0.85rem;
  color: #7A7E85;
  margin-top: 14px;
  font-style: italic;
}

/* ---- Feature list (OTO pages) ---- */

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dark);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: sans-serif;
}

.feature-list strong {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: block;
  margin-bottom: 2px;
}

/* ---- OTO Decision Buttons ---- */

.oto-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.oto-buttons .btn { text-align: center; }

.oto-no {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: Georgia, serif;
  padding: 8px;
}

/* ---- Callout box ---- */

.callout {
  background: var(--charcoal);
  color: var(--white);
  padding: 32px;
  margin: 32px 0;
}

.callout h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.callout p {
  color: #C5C8CC;
  font-size: 0.95rem;
}

/* ---- Download section (Thank You) ---- */

.download-section {
  text-align: center;
  padding: 40px;
  border: 2px solid var(--gold);
  margin: 32px 0;
}

.download-section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ---- Footer ---- */

footer {
  background: var(--charcoal);
  color: #7A7E85;
  padding: 48px 0;
  font-size: 0.82rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 580px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.footer-brand {
  font-family: Impact, 'Arial Black', sans-serif;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #7A7E85;
  text-decoration: none;
}

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

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #5A5E65;
}

/* ---- Alert / error ---- */

.form-error {
  color: #E05A5A;
  font-size: 0.85rem;
  margin-top: 8px;
  font-family: Georgia, serif;
  display: none;
}

/* ---- Responsive ---- */

@media (max-width: 580px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 0; }
  body { font-size: 16px; }
  .btn { padding: 14px 24px; }
  .cta-section { padding: 56px 0; }
  .nav-links { display: none; }
}
