/* The Native Way — nativeway-next. Mobile-first; no external fonts (CSP: self only). */

:root {
  --paper: #faf5ec;
  --paper-deep: #f1e8d8;
  --ink: #241a10;
  --ink-soft: #4a3a28;
  --bark: #2b1d12;
  --bark-soft: #3d2c1c;
  --ember: #b4552d;
  --ember-deep: #8f3f1f;
  --gold: #c99a4b;
  --pine: #3f7d6f;
  --line: #e2d5bd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ember-deep); }

/* ---------- header ---------- */

.site-header {
  background: var(--bark);
  color: var(--paper);
  padding: 12px 0;
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-cta {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 4px;
}

/* ---------- hero ---------- */

.hero { padding: 44px 0 34px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 14px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-sub { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 12px; }

.hero-bridge {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 18px 0 22px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  padding: 15px 26px;
  cursor: pointer;
  border: 0;
}

.btn-buy { background: var(--ember); color: #fff; box-shadow: 0 2px 0 var(--ember-deep); }
.btn-buy:hover { background: var(--ember-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  font-weight: 600;
}

.micro-trust {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.hero-cover { justify-self: center; max-width: 300px; }
.hero-cover img {
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(43, 29, 18, 0.35);
}

/* ---------- proof strip ---------- */

.proof-strip { background: var(--bark); color: var(--paper); padding: 22px 0; }

.proof-strip .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: center;
}

.proof-cell strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

.proof-cell span {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d8cbb4;
}

/* ---------- generic sections ---------- */

section { padding: 46px 0; }

.section-alt { background: var(--paper-deep); }

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 18px;
}

.lede { font-size: 1.02rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- inside the book ---------- */

.parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.part-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.part-card h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 10px;
}

.part-card ol { padding-left: 20px; font-size: 0.95rem; color: var(--ink-soft); }
.part-card li { margin-bottom: 4px; }

.practices {
  margin-top: 28px;
  background: #fff;
  border-left: 4px solid var(--pine);
  border-radius: 0 8px 8px 0;
  padding: 20px 22px;
}

.practices h3 { font-size: 1.05rem; margin-bottom: 10px; }
.practices ul { padding-left: 20px; color: var(--ink-soft); }
.practices li { margin-bottom: 6px; }

/* ---------- author ---------- */

.author .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.author-photo { max-width: 260px; justify-self: center; }
.author-photo img { border-radius: 50%; border: 4px solid var(--gold); }

.author blockquote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-top: 14px;
}

.integrity {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 18px;
}

/* ---------- offer ---------- */

.offer { background: var(--bark); color: var(--paper); }

.offer h2, .offer .lede { color: var(--paper); }
.offer .lede { color: #d8cbb4; }

.offer-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 26px 22px;
  max-width: 640px;
  margin: 28px auto 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.stack { list-style: none; }

.stack li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stack .item-name { font-weight: 700; }
.stack .item-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.stack .item-value {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.price-line { text-align: center; margin: 20px 0 6px; }

.price-anchor {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-right: 10px;
}

.price-now { font-size: 2.2rem; font-weight: 700; color: var(--ember-deep); }

.price-note {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.offer-card .btn-buy { display: block; width: 100%; font-size: 1.08rem; }

.guarantee-box {
  margin-top: 20px;
  border: 1.5px solid var(--pine);
  border-radius: 8px;
  padding: 16px 18px;
  background: #f3f7f4;
}

.guarantee-box h3 { font-size: 1rem; margin-bottom: 6px; color: var(--pine); }
.guarantee-box p { font-size: 0.93rem; color: var(--ink-soft); }

.no-clock {
  margin-top: 18px;
  font-style: italic;
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: center;
}

.payment-line {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-align: center;
}

.readers-line {
  margin-top: 22px;
  text-align: center;
  font-style: italic;
  color: #d8cbb4;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- library ---------- */

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.library-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.library-card img { max-width: 120px; margin: 0 auto 12px; border-radius: 4px; }
.library-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.library-card p { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }

.library-note {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.faq details p, .faq details ul { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.faq details ul { padding-left: 20px; }

.qualifier-cols { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.qualifier-cols h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- final CTA ---------- */

.final-cta { text-align: center; }
.final-cta .btn-buy { margin-top: 18px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bark);
  color: #d8cbb4;
  padding: 34px 0;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.site-footer a { color: var(--gold); }
.footer-links { margin-bottom: 14px; }
.footer-links a { margin-right: 16px; }
.footer-disclaimer { max-width: 46rem; line-height: 1.6; }
.footer-copy { margin-top: 14px; color: #a4937a; }

/* ---------- email gate (email_first variant) ---------- */

dialog.email-gate {
  border: 0;
  border-radius: 10px;
  padding: 26px 24px;
  max-width: 420px;
  width: calc(100vw - 40px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

dialog.email-gate::backdrop { background: rgba(36, 26, 16, 0.6); }

.email-gate h3 { font-size: 1.15rem; margin-bottom: 8px; }
.email-gate p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }

.email-gate input[type="email"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px;
  border: 1px solid var(--ink-soft);
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--ink);
}

.email-gate .btn-buy { width: 100%; }

.email-gate .gate-close {
  margin-top: 10px;
  width: 100%;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
}

.email-gate .gate-privacy {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 10px;
  margin-bottom: 0;
}

/* ---------- legal pages ---------- */

.legal-main { padding: 40px 0 60px; }
.legal-main h1 { font-size: 1.6rem; }
.legal-main h2 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 8px; }
.legal-main p, .legal-main ul { color: var(--ink-soft); margin-bottom: 12px; max-width: 46rem; }
.legal-main ul { padding-left: 22px; }

.legal-callout {
  border: 1.5px solid var(--pine);
  background: #f3f7f4;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
  max-width: 46rem;
}

.legal-updated { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- desktop ---------- */

@media (min-width: 760px) {
  body { font-size: 18px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 64px 0 54px; }
  .hero .wrap { grid-template-columns: 1.35fr 1fr; }
  .hero-cover { max-width: 340px; }
  .proof-strip .wrap { grid-template-columns: repeat(3, 1fr); }
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
  .author .wrap { grid-template-columns: 300px 1fr; }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .qualifier-cols { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
}
