/**
 * Sales Page Stylesheet
 * Loaded only on pages using the page-sales.php template.
 *
 * Contains all styling for the one-page sales + checkout layout.
 * Scoped under body.sales-page to prevent leaking into other pages.
 */

body.sales-page {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --ink-dim: #555555;
  --border: #e0e0e0;
  --red: #c72d1e;
  --red-dark: #9e1e12;
  --red-deep: #7a1208;
  --yellow: #fff159;
  --yellow-dim: #f5d72a;
  --green: #1e8a3a;
  --green-box: #e8f5eb;
}

body.sales-page {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-alt);
  min-height: 100vh;
}

body.sales-page * { box-sizing: border-box; }

/* ============ TOP BAR ============ */
body.sales-page .topbar {
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
body.sales-page .topbar strong { color: var(--yellow); }

body.sales-page .page {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

body.sales-page .pre-head {
  text-align: center;
  padding: 2rem 1.5rem 0;
}
body.sales-page .attn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  margin-bottom: 1.5rem;
}

body.sales-page h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  max-width: 660px;
  margin: 3rem auto 1rem;
  padding: 0 1.5rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
body.sales-page h1 .hl {
  background: var(--yellow);
  padding: 0 0.15em;
  font-style: italic;
  display: inline-block;
  transform: rotate(-0.5deg);
}
body.sales-page h1 .red { color: var(--red); }

body.sales-page .sub {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink-dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
body.sales-page .sub strong { color: var(--red); font-weight: 600; font-style: normal; }

body.sales-page .hero-image {
  padding: 1rem 1.5rem 2rem;
  text-align: center;
}

body.sales-page .book-cover-wrap {
  display: inline-block;
  padding: 1rem 0;
}

body.sales-page .book-cover-image {
  width: 340px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 340 / 510;
  display: block;
  margin: 0 auto;
  border: 1px solid #e5e5e5;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    0 25px 50px rgba(0,0,0,0.15);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
body.sales-page .book-cover-image:hover { transform: rotate(0); }

body.sales-page .hero-caption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-dim);
  margin-top: 1rem;
}
body.sales-page .hero-caption strong {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}

body.sales-page .cta-wrap {
  text-align: center;
  padding: 1rem 1.5rem 2rem;
}

body.sales-page .btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #d8381f 0%, #b12516 100%);
  color: #fff;
  padding: 1.1rem 2.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--red-deep);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 0 var(--red-deep), 0 6px 15px rgba(0,0,0,0.2);
  transition: all 0.1s ease;
}
body.sales-page .btn-primary:hover {
  background: linear-gradient(180deg, #e8461e 0%, #c72d1e 100%);
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 0 var(--red-deep), 0 4px 10px rgba(0,0,0,0.2);
  color: #fff;
}
body.sales-page .btn-primary:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 var(--red-deep);
}

body.sales-page .btn-small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
  font-style: italic;
}

body.sales-page .section {
  padding: 2.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

body.sales-page .section h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
body.sales-page .section h2 .red { color: var(--red); }
body.sales-page .section h2 .hl { background: var(--yellow); padding: 0 0.15em; }
body.sales-page .section h2.centered { text-align: center; }

body.sales-page .section p {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}
body.sales-page .section p strong { color: var(--ink); font-weight: 700; }
body.sales-page .section p em { font-style: italic; color: var(--red); font-weight: 500; }

body.sales-page .section-divider {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.3em;
  margin: 1rem 0;
}

body.sales-page .callout {
  background: #fff9e6;
  border: 2px solid var(--yellow-dim);
  border-left: 6px solid var(--yellow-dim);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
}
body.sales-page .callout strong { color: var(--red); }

body.sales-page .bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
body.sales-page .bullets li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px dashed var(--border);
}
body.sales-page .bullets li:last-child { border-bottom: none; }

/* WordPress WYSIWYG fields wrap content in <p>. For inline use cases like
   bullet text + chapter reference span, we need the first <p> inline so
   the (CH. X) tag sits at the end of the bullet text instead of below it. */
body.sales-page .bullets li > p {
  display: inline;
  margin: 0;
}

body.sales-page .bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
body.sales-page .bullets li strong { color: var(--red); font-weight: 700; }
body.sales-page .bullets li em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
  background: var(--yellow);
  padding: 0 3px;
}

body.sales-page .page-ref {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-left: 0.25rem;
}

body.sales-page .who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

body.sales-page .who-col {
  padding: 1.5rem 1.25rem;
  border: 2px solid var(--border);
  background: #fff;
}
body.sales-page .who-col.is { border-color: var(--green); background: var(--green-box); }
body.sales-page .who-col.not { border-color: var(--red); background: #fff0ee; }

body.sales-page .who-col h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--ink);
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.5rem;
}
body.sales-page .who-col.is h3 { color: var(--green); }
body.sales-page .who-col.not h3 { color: var(--red); }

body.sales-page .who-col ul { list-style: none; padding: 0; }
body.sales-page .who-col li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
body.sales-page .who-col.is li::before {
  content: '✓';
  color: var(--green);
  position: absolute;
  left: 0.25rem;
  font-weight: 700;
  font-size: 1.1rem;
}
body.sales-page .who-col.not li::before {
  content: '✕';
  color: var(--red);
  position: absolute;
  left: 0.25rem;
  font-weight: 700;
  font-size: 1.1rem;
}

body.sales-page .author-block {
  background: var(--bg-alt);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body.sales-page .author-inner {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: start;
}

body.sales-page .author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  border: 4px solid var(--red);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

body.sales-page .author-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
body.sales-page .author-content .title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}
body.sales-page .author-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

body.sales-page .testimonials {
  padding: 2.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

body.sales-page .testimonial {
  background: #fff;
  border: 2px solid var(--border);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  border-left: 5px solid var(--yellow-dim);
}

body.sales-page .testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  left: 1rem;
  font-size: 2.5rem;
  color: var(--yellow-dim);
  font-family: Georgia, serif;
  line-height: 1;
}

body.sales-page .placeholder-note {
  background: repeating-linear-gradient(45deg, #fff4cc 0, #fff4cc 10px, #fff9e6 10px, #fff9e6 20px);
  padding: 0.5rem 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
  border: 1px dashed var(--red);
}

body.sales-page .testimonial-body {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

body.sales-page .testimonial-attr {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ BUY BOX ============ */
body.sales-page .buy-box-wrap {
  padding: 2rem 1.5rem 3rem;
}

body.sales-page .buy-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  padding: 2rem 2rem 2.5rem;
  text-align: center;
  position: relative;
}

body.sales-page .buy-box::before {
  content: 'Yes! I Want In';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--ink);
}
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid var(--ink);
}

body.sales-page .buy-box h2 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-weight: 700;
  margin-top: 0.75rem;
}
body.sales-page .buy-box h2 em { color: var(--red); font-style: italic; }

body.sales-page .buy-list {
  list-style: none;
  text-align: left;
  max-width: 440px;
  margin: 1.5rem auto;
  padding: 0;
}
body.sales-page .buy-list li {
  padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
body.sales-page .buy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
}

body.sales-page .price-display {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 1rem 1.5rem;
  margin: 1.25rem auto;
  display: inline-block;
}
body.sales-page .price-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.25rem;
}
body.sales-page .price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
body.sales-page .price-amount .dollar { font-size: 1.75rem; vertical-align: top; }
body.sales-page .price-amount .cents { font-size: 1.75rem; vertical-align: top; }

/* ============ CHECKOUT EMBED =========== */
/* ============ CHECKOUT EMBED ============ */
/* WooCommerce's native checkout form, rendered inline by our plugin.
   WC's default CSS expects a full-page layout with 2 columns (billing +
   additional info). We force a single-column clean layout that fits inside
   the buy-box and hide irrelevant sections for a digital download. */

body.sales-page .checkout-embed {
  background: transparent;
  padding: 0.5rem 0 0;
  margin: 1.5rem auto 0;
  max-width: 100%;
  text-align: left;
  color: var(--ink);
}

body.sales-page .checkout-embed,
body.sales-page .checkout-embed * {
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Hide "Have a coupon?" banner — friction in a sales funnel */
body.sales-page .checkout-embed .woocommerce-form-coupon-toggle,
body.sales-page .checkout-embed .woocommerce-form-coupon {
  display: none !important;
}

/* Hide "Returning customer? Click here to login" link if present */
body.sales-page .checkout-embed .woocommerce-form-login-toggle {
  display: none !important;
}

/* Force single column layout — WC default 2-column is cramped in narrow space */
body.sales-page .checkout-embed .col2-set {
  display: block;
  width: 100%;
}
body.sales-page .checkout-embed .col2-set .col-1,
body.sales-page .checkout-embed .col2-set .col-2 {
  width: 100%;
  max-width: 100%;
  float: none;
  padding: 0;
  margin: 0;
}

/* Hide "Additional information" / order notes column — irrelevant for ebook */
body.sales-page .checkout-embed .col2-set .col-2,
body.sales-page .checkout-embed #order_comments_field,
body.sales-page .checkout-embed .woocommerce-additional-fields {
  display: none !important;
}

/* Section headings (Billing details, Your order) */
body.sales-page .checkout-embed h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  letter-spacing: -0.01em;
}

/* Form rows - proper spacing */
body.sales-page .checkout-embed .form-row,
body.sales-page .checkout-embed p.form-row {
  margin: 0 0 1rem;
  padding: 0;
  display: block;
  clear: both;
}

/* Labels on their own line */
body.sales-page .checkout-embed label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  white-space: normal;
}

/* First name / Last name side by side.
   WooCommerce nests fields in different containers across versions
   (.woocommerce-billing-fields__field-wrapper, .woocommerce-billing-fields,
   or directly in a <fieldset>). Handle all of them. */

body.sales-page .checkout-embed .woocommerce-billing-fields,
body.sales-page .checkout-embed .woocommerce-billing-fields__field-wrapper,
body.sales-page .checkout-embed .woocommerce-billing-fields > .form-row-first + .form-row-last,
body.sales-page .checkout-embed fieldset {
  display: block;
}

/* Parent container of form rows — enforce grid with flex */
body.sales-page .checkout-embed .woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 3%;
  margin: 0;
  padding: 0;
}

/* Child fields */
body.sales-page .checkout-embed .form-row {
  margin: 0 0 1rem;
  padding: 0;
  float: none;
  clear: none;
}

body.sales-page .checkout-embed .form-row-first {
  flex: 0 0 48.5%;
  width: 48.5%;
  max-width: 48.5%;
  float: none !important;
  clear: none !important;
}

body.sales-page .checkout-embed .form-row-last {
  flex: 0 0 48.5%;
  width: 48.5%;
  max-width: 48.5%;
  float: none !important;
  clear: none !important;
}

body.sales-page .checkout-embed .form-row-wide,
body.sales-page .checkout-embed p.form-row-wide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  float: none !important;
  clear: both !important;
}

/* If WC renders form rows NOT inside __field-wrapper, still put them in a
   flex layout via the .col-1 container fallback */
body.sales-page .checkout-embed .col-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 3%;
}

body.sales-page .checkout-embed .col-1 > h3 {
  flex: 0 0 100%;
  width: 100%;
}

/* Mobile collapse */
@media (max-width: 520px) {
  body.sales-page .checkout-embed .form-row-first,
  body.sales-page .checkout-embed .form-row-last {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Inputs */
body.sales-page .checkout-embed input[type="text"],
body.sales-page .checkout-embed input[type="email"],
body.sales-page .checkout-embed input[type="tel"],
body.sales-page .checkout-embed input[type="number"],
body.sales-page .checkout-embed input[type="password"],
body.sales-page .checkout-embed select,
body.sales-page .checkout-embed textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bbb;
  border-radius: 2px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

body.sales-page .checkout-embed input:focus,
body.sales-page .checkout-embed select:focus,
body.sales-page .checkout-embed textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}

/* Required field indicator */
body.sales-page .checkout-embed .required {
  color: var(--red);
  text-decoration: none;
}
body.sales-page .checkout-embed .optional {
  color: var(--ink-dim);
  font-size: 0.85em;
  font-style: italic;
}

/* Order review table (product, subtotal, total) */
body.sales-page .checkout-embed #order_review {
  margin-top: 2rem;
  clear: both;
}

body.sales-page .checkout-embed table.shop_table {
  width: 100%;
  border: 1px solid var(--border);
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  background: #fafafa;
}
body.sales-page .checkout-embed table.shop_table th,
body.sales-page .checkout-embed table.shop_table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
body.sales-page .checkout-embed table.shop_table th {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
body.sales-page .checkout-embed table.shop_table tfoot th {
  background: #fafafa;
}
body.sales-page .checkout-embed table.shop_table td.product-total,
body.sales-page .checkout-embed table.shop_table .amount {
  color: var(--red);
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
}

/* Payment method section */
body.sales-page .checkout-embed #payment {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 2px;
}
body.sales-page .checkout-embed #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}
body.sales-page .checkout-embed #payment ul.payment_methods li {
  padding: 0.5rem 0;
  list-style: none;
}
body.sales-page .checkout-embed #payment ul.payment_methods li::before {
  display: none;
}
body.sales-page .checkout-embed #payment ul.payment_methods input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}
body.sales-page .checkout-embed #payment ul.payment_methods label {
  display: inline-block;
  font-weight: 500;
}
body.sales-page .checkout-embed #payment .payment_box {
  background: #fff;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Terms checkbox */
body.sales-page .checkout-embed .woocommerce-terms-and-conditions-wrapper {
  margin: 1rem 0;
  font-size: 0.9rem;
}
body.sales-page .checkout-embed input[type="checkbox"] {
  width: auto;
  margin-right: 0.35rem;
}

/* Place order button */
body.sales-page .checkout-embed .button,
body.sales-page .checkout-embed #place_order {
  background: linear-gradient(180deg, #d8381f 0%, #b12516 100%);
  color: #fff;
  padding: 1.15rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--red-deep);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 0 var(--red-deep);
  width: 100%;
  cursor: pointer;
  transition: all 0.1s ease;
  margin-top: 0.5rem;
}
body.sales-page .checkout-embed .button:hover,
body.sales-page .checkout-embed #place_order:hover {
  background: linear-gradient(180deg, #e8461e 0%, #c72d1e 100%);
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 0 var(--red-deep);
}
body.sales-page .checkout-embed .button:active,
body.sales-page .checkout-embed #place_order:active {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 0 var(--red-deep);
}

body.sales-page .buy-box-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 500;
}
body.sales-page .buy-box-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
body.sales-page .buy-box-meta span::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
}

/* ============ GUARANTEE ============ */
body.sales-page .guarantee {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

body.sales-page .guarantee-badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--ink);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  margin: 0 auto 1.5rem;
  text-align: center;
  position: relative;
  transform: rotate(-5deg);
}
body.sales-page .guarantee-badge::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
}
body.sales-page .guarantee-badge .top {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
body.sales-page .guarantee-badge .num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  color: var(--ink);
}
body.sales-page .guarantee-badge .day {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
body.sales-page .guarantee-badge .bottom {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-top: 0.25rem;
}

body.sales-page .guarantee h3 {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
body.sales-page .guarantee p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ============ FAQ ============ */
body.sales-page .faq-section {
  padding: 2.5rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

body.sales-page .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
body.sales-page .faq-item:first-child { border-top: 2px solid var(--ink); }

body.sales-page .faq-q {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
body.sales-page .faq-q::before {
  content: 'Q:';
  color: var(--red);
  margin-right: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

body.sales-page .faq-a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 1.75rem;
}
body.sales-page .faq-a::before {
  content: 'A:';
  color: var(--red);
  margin-right: 0.5rem;
  margin-left: -1.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

/* WYSIWYG wraps the answer in <p>. Make the first <p> inline so it sits
   next to the "A:" pseudo-label instead of dropping to a new line.
   Subsequent <p>s (multi-paragraph answers) stay block-level with margins. */
body.sales-page .faq-a > p:first-child {
  display: inline;
  margin: 0;
}
body.sales-page .faq-a > p + p {
  margin-top: 0.75rem;
}

body.sales-page .ps-section {
  padding: 2rem 1.5rem 3rem;
  max-width: 680px;
  margin: 0 auto;
  border-top: 2px dashed var(--border);
}

body.sales-page .ps-section p {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
body.sales-page .ps-section p strong {
  color: var(--red);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
}
body.sales-page .ps-section p em {
  background: var(--yellow);
  font-style: normal;
  padding: 0 3px;
}

body.sales-page .signature {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
body.sales-page .signature strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Disclaimer block shown below the sales page content, above the
   canonical site footer. Legal safety-harbor language for the book
   being general-purpose guidance not professional advice. */
body.sales-page .sales-page-disclaimer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}
body.sales-page .sales-page-disclaimer p {
  margin: 0;
}

@media (max-width: 700px) {
  body.sales-page .who-grid { grid-template-columns: 1fr; }
  body.sales-page .author-inner { grid-template-columns: 1fr; text-align: center; }
  body.sales-page .author-photo { margin: 0 auto; }
  body.sales-page .buy-box { padding: 1.5rem 1.25rem; }
  body.sales-page h1 { font-size: 2rem; }
  body.sales-page .sub { font-size: 1.1rem; }
  body.sales-page .price-amount { font-size: 2.75rem; }
  body.sales-page .section { padding: 2rem 1rem; }
  body.sales-page .bullets li { padding-left: 2.25rem; font-size: 1rem; }
}
