/* ============================================================
   SalesLetters.com Intelligence Engine
   sales-letter-intelligence.css
   v20260528
   CHANGES:
   1. Body copy Georgia 14pt (unchanged -- was already set)
   2. Reduced top spacing on yellow subhead sections
   3. Removed paragraph-level color highlight blocks (callout.yellow, callout.blue)
   4. Removed pull-quote callout boxes
   5. Green circle checkmark bullets
   ============================================================ */

:root {
  --red:       #b7060b;
  --yellow:    #f9e218;
  --blue:      #6bc3e8;
  --blue-dark: #004aad;
  --black:     #000000;
  --white:     #ffffff;
  --gray-light:#f4f4f4;
  --gray-mid:  #dddddd;
  --gray-text: #444444;
  --max-w:     780px;
  --radius:    6px;
  --font-head: 'Barlow', 'Barlow Semi Condensed', Arial Black, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

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

html { font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  font-family: var(--font-body);
  font-size: 14pt;
  color: var(--black);
  line-height: 1.6;
}

/* ── MASTHEAD ── */
.masthead {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 40px 24px 32px;
}
.masthead .eyebrow {
  font-family: var(--font-head);
  font-size: 11pt;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.masthead h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--yellow);
  margin: 0 0 12px;
  line-height: 1.15;
}
.masthead .tagline {
  font-size: 13pt;
  color: #cccccc;
  font-style: italic;
}

/* ── LAYOUT ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── VIEWS ── */
.view { display: block; }
.view-hidden { display: none; }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ── SECTION LABELS ── */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 10pt;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 14px;
}
.instruction {
  font-size: 11pt;
  color: var(--gray-text);
  margin-bottom: 22px;
}
.block-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--red);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
  margin: 32px 0 14px;
}

/* ── SAVED WORK BOX ── */
.saved-work-box {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 11pt;
}
.saved-work-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.saved-work-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 11pt;
}
#setup-restore-msg {
  font-size: 10pt;
  color: #777;
  margin-top: 8px;
}

/* ── FIELDS ── */
.field { margin-bottom: 22px; }
.field-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 11pt;
  margin-bottom: 4px;
  color: var(--black);
}
.field-hint {
  font-size: 10pt;
  color: #666;
  margin-bottom: 4px;
  font-style: italic;
}
.required { color: var(--red); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 11pt;
  color: var(--black);
  background: var(--white);
  transition: border-color .2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 2px rgba(0,74,173,.15);
}
textarea {
  min-height: 90px;
  resize: vertical;
}

/* ── QUIZ BLOCKS ── */
.q-block { margin-bottom: 22px; }
.q-text {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 11pt;
}
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 11pt;
  padding: 8px 12px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  transition: background .15s, border-color .15s;
}
.q-options label:hover { background: #f9f9f9; border-color: #aaa; }
.q-options input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.q-options label.selected {
  background: #fff8e1;
  border-color: var(--yellow);
}

/* ── BUTTONS ── */
.cta-primary {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14pt;
  font-weight: 900;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .1s;
  line-height: 1.2;
}
.cta-primary:hover { background: #8f0408; transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 11pt;
  font-weight: 900;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.cta-secondary:hover { background: var(--gray-light); }

button.cta-secondary { font-family: var(--font-head); }

/* ── OPT-IN ── */
.optin-card {
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.optin-card h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  margin: 0 0 10px;
}
.optin-sub { font-size: 11pt; color: var(--gray-text); margin-bottom: 24px; }
.optin-form-row { text-align: left; margin-bottom: 14px; }
.optin-trust { font-size: 10pt; color: #888; margin-top: 12px; }

.optin-inside-box {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  text-align: left;
}
.optin-inside-box h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 12px;
}
.optin-inside-box ul { margin: 0; padding-left: 20px; }
.optin-inside-box li { font-size: 11pt; margin-bottom: 6px; }
.optin-inside-box .upgrade-tease { color: var(--red); font-weight: bold; }

/* ── REPORT OUTPUT BLOCKS ── */
.output-item {
  background: var(--gray-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 11pt;
  position: relative;
}
.output-item .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9pt;
  padding: 4px 10px;
}

.headline-item {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-left: 4px solid var(--blue-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 12pt;
  font-weight: bold;
  position: relative;
}
.headline-item .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9pt;
  padding: 4px 10px;
}

/* ── DIAGNOSIS GRID ── */
.diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.diag-cell {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.diag-cell .diag-label {
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
  margin-bottom: 4px;
}
.diag-cell .diag-value {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--yellow);
}
.diag-cell .diag-desc { font-size: 10pt; color: #ccc; margin-top: 4px; }

/* ── CALLOUT -- STRIPPED DOWN ──
   Yellow/blue paragraph-level highlights are REMOVED per design spec.
   .callout.yellow and .callout.blue now render as plain unstyled text.
   Only left-border accent is kept so existing JS-generated HTML doesn't break.
   ── */
.callout {
  /* No background, no colored block -- just flow naturally with body copy */
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  font-size: 14pt;
  font-family: var(--font-body);
  color: var(--black);
}
.callout.blue  { background: transparent; border: none; }
.callout.yellow { background: transparent; border: none; }

/* ── PULL QUOTE -- REMOVED ──
   Any .pull-quote or .quote-callout elements are hidden entirely.
   ── */
.pull-quote,
.quote-callout,
.callout-quote,
.letter-quote {
  display: none !important;
}

/* ── LETTER BODY -- BREAD AND BUTTER TEMPLATE ──
   .letter-body wraps the generated letter output on /my-letter/.
   Body copy: Georgia 14pt, pure black.
   Subheads: Barlow Black, red #b7060b.
   ── */
.letter-body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14pt;
  color: #000000;
  line-height: 1.7;
}

.letter-body p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14pt;
  color: #000000;
  margin: 0 0 18px;
}

/* Subheads inside the letter */
.letter-body h2,
.letter-body h3,
.letter-body h4 {
  font-family: 'Barlow', 'Barlow Semi Condensed', Arial Black, sans-serif;
  font-weight: 900;
  color: #b7060b;
  margin-top: 28px;   /* was likely larger -- reduced top gap */
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Yellow-highlighted subhead variant (the band behind the subhead text only) */
.letter-subhead,
.subhead-yellow {
  font-family: 'Barlow', 'Barlow Semi Condensed', Arial Black, sans-serif;
  font-weight: 900;
  color: #000000;
  background: #f9e218;
  display: inline;           /* highlight only the text, not the whole row */
  padding: 2px 6px;
  margin-top: 24px;          /* reduced from whatever it was */
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Wrapper that was adding extra space above yellow subheads */
.subhead-wrap,
.subhead-section {
  margin-top: 20px;          /* tighter than default block spacing */
  margin-bottom: 6px;
}

/* ── GREEN CHECKMARK BULLETS ──
   Replaces default bullets everywhere in the letter body.
   Uses a pure-CSS SVG circle-checkmark -- no images, no icon fonts needed.
   ── */
.letter-body ul,
ul.check-list,
.check-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
}

.letter-body ul li,
ul.check-list li,
.check-bullets li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14pt;
  color: #000000;
  padding-left: 38px;
  margin-bottom: 12px;
  position: relative;
  line-height: 1.6;
}

/* Green circle with white checkmark via ::before pseudo-element */
.letter-body ul li::before,
ul.check-list li::before,
.check-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  background-color: #22a833;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1,5 4.5,8.5 11,1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* Ordered lists inside letter body -- leave numbered, just style them */
.letter-body ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.letter-body ol li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14pt;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ── UPGRADE BOXES ── */
.upgrade-box-top {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 32px;
  text-align: center;
}
.upgrade-box-top h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--yellow);
  margin: 0 0 12px;
}
.upgrade-box-top p { font-size: 11pt; color: #ddd; margin-bottom: 14px; }
.price-stack { font-size: 11pt; color: #aaa; }
.strike { text-decoration: line-through; }
.upgrade-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13pt;
  font-weight: 900;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.upgrade-btn:hover { background: #8f0408; }
.guarantee-line { font-size: 10pt; color: #888; margin-top: 10px; }

.upgrade-mid {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  text-align: center;
}
.upgrade-mid h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 8px;
}
.upgrade-mid p { font-size: 11pt; color: var(--black); margin-bottom: 14px; }

/* ── MEGA PROMPT ── */
.mega-prompt {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius);
  padding: 20px;
  font-size: 10pt;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 12px;
  overflow-x: auto;
}

/* ── OUTLINE ── */
.outline {
  padding-left: 24px;
  font-size: 11pt;
}
.outline li { margin-bottom: 10px; }
.outline li strong { color: var(--red); }

/* ── VSL SECTION ── */
.upgrade-vsl {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-top: 36px;
}
.vsl-eyebrow {
  font-family: var(--font-head);
  font-size: 10pt;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}
.upgrade-vsl h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 0 24px;
  line-height: 1.2;
}
.video-wrap {
  background: #222;
  border: 2px dashed #555;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: #888;
  margin-bottom: 28px;
  font-size: 12pt;
}
.video-wrap iframe {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border: none;
  display: block;
  margin: 0 auto;
}
.vsl-pitch p { font-size: 11pt; color: #ccc; margin-bottom: 14px; }
.vsl-pitch strong { color: var(--white); }
.vsl-bullets { color: #ccc; font-size: 11pt; padding-left: 20px; }
.vsl-bullets li { margin-bottom: 8px; }
.vsl-bullets strong { color: var(--white); }

.vsl-cta { text-align: center; margin-top: 28px; }
.vsl-cta-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 15pt;
  font-weight: 900;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.vsl-cta-btn:hover { background: #8f0408; }
.vsl-small-print { font-size: 10pt; color: #888; margin-top: 10px; }

/* ── FOOTER ── */
.sig {
  background: var(--black);
  color: #888;
  text-align: center;
  padding: 24px 16px;
  font-size: 10pt;
  margin-top: 40px;
}
.sig .brand { color: var(--white); font-weight: bold; margin-bottom: 4px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--black);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 11pt;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── COPY BUTTON ── */
.copy-btn {
  font-size: 9pt;
  padding: 5px 12px;
  cursor: pointer;
}

/* ── PRINT ── */
@media print {
  .no-print { display: none !important; }
  body { background: white; font-size: 11pt; }
  .masthead { background: white; color: black; border-bottom: 2px solid black; }
  .masthead h1 { color: black; }
  .masthead .eyebrow { color: black; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .masthead h1 { font-size: 1.6rem; }
  .diagnosis-grid { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .upgrade-vsl { padding: 24px 16px; }
}
