/* method.css — the AI-Powered Win-Rate white paper page.
   Loaded only by /method. Complements brand-tokens.css + styles.css. */

/* ---- Reading layout ---- */
article p { font-size: 18px; line-height: 1.72; color: #21313F; margin: 0 0 18px; max-width: var(--max-line); }
article h2 { margin: 0 0 22px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
article .section { padding: 72px 0; }
article em { font-style: italic; }

.paper-hero { padding: 76px 0 44px; }
.paper-hero h1 { max-width: 20ch; }
.paper-byline { font-family: var(--mono); font-size: 13px; color: var(--steel); margin-top: 24px; letter-spacing: .01em; }

/* ---- Executive summary ---- */
.exec-summary { border: 1px solid var(--paper-edge); border-left: 3px solid var(--signal); border-radius: var(--radius); padding: 26px 30px; background: #fff; }
.exec-summary .eyebrow { color: var(--signal-dim); margin-bottom: 14px; }
.exec-summary p { font-size: 17px; line-height: 1.62; margin: 0 0 14px; max-width: 100%; color: #21313F; }
.exec-summary p:last-child { margin-bottom: 0; }

/* ---- The core rule (§2 callout) ---- */
blockquote.rule { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--signal); }
blockquote.rule p { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--ink); max-width: 44ch; margin: 0; }

/* ---- The loop (§4 numbered steps) ---- */
ol.loop { list-style: none; margin: 28px 0; padding: 0; counter-reset: loop; }
ol.loop li { position: relative; padding-left: 52px; margin-bottom: 20px; font-size: 17px; line-height: 1.66; color: #21313F; max-width: var(--max-line); }
ol.loop li::before {
  counter-increment: loop; content: counter(loop);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
ol.loop li strong { color: var(--ink); }

/* ---- Positioning table (§4 output) ---- */
.example-lead { margin-top: 28px; }
.table-scroll { overflow-x: auto; margin: 22px 0 26px; -webkit-overflow-scrolling: touch; }
table.positioning { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
table.positioning caption.mono-cap { caption-side: top; text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding-bottom: 12px; }
table.positioning th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 12px 15px; font-weight: 500; }
table.positioning td { padding: 13px 15px; border-bottom: 1px solid var(--paper-edge); vertical-align: top; color: #21313F; }
table.positioning tbody tr:last-child td { border-bottom: none; }
table.positioning td:first-child { color: var(--ink); font-weight: 500; }
table.positioning td:last-child { color: var(--signal-dim); }

/* ---- System diagram (§5) ---- */
figure.diagram { margin: 36px 0; border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 28px 22px; background: #fff; }
figure.diagram svg.flow { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; }
figure.diagram figcaption { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #4C5C6E; margin-top: 20px; max-width: 64ch; }

/* ---- Maturity model (§8) ---- */
.maturity { margin: 30px 0; display: grid; gap: 14px; }
.maturity .stage { border: 1px solid var(--paper-edge); border-left: 3px solid var(--steel); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.maturity .stage:last-child { border-left-color: var(--signal); }
.maturity .stage-n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-dim); }
.maturity .stage h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 6px 0 10px; }
.maturity .stage p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.maturity .stage .next { font-size: 14.5px; color: #4C5C6E; margin-bottom: 0; }
.maturity .stage .next .mono { font-family: var(--mono); color: var(--signal-dim); }

/* ---- Soft, ungated email note (§9) ---- */
.lead-note { margin: 28px 0 12px; border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 22px; background: #fff; max-width: var(--max-line); }
.lead-note .lead-copy { font-size: 14px; color: #4C5C6E; margin: 0 0 14px; }
.lead-note .lead-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-note input { font-family: var(--sans); font-size: 15px; padding: 11px 13px; border: 1px solid var(--paper-edge); border-radius: 3px; background: var(--paper); color: var(--ink); }
.lead-note input[name="email"] { flex: 1 1 240px; }
.lead-note input[name="role"] { flex: 1 1 170px; }
.lead-note .lead-status { font-family: var(--mono); font-size: 13px; color: var(--signal-dim); margin: 12px 0 0; min-height: 1.1em; }

.back-links { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Print / PDF ---- */
@media print {
  @page { size: Letter; margin: 20mm 26mm; }
  .nav, .nav-toggle, .skip-nav, .paper-hero .cta-row, .lead-note, .back-links, footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }

  /* One uniform content column — every block shares the same left and right edge */
  .wrap, .wrap-narrow { max-width: 100%; margin: 0; padding: 0; }
  article p, article .lead, .example-lead, ol.loop li, blockquote.rule p,
  .paper-item p, figure.diagram figcaption, .maturity .stage p { max-width: 100%; }
  article p, ol.loop li { color: #000; margin: 0 0 3mm; }
  article .lead { font-size: 12pt; margin-bottom: 4mm; }

  /* Title block — compact, flows into the content (no empty title page) */
  .paper-hero { padding: 0 0 8mm; }
  .paper-hero h1 { font-size: 30pt; max-width: 100%; }
  .paper-byline { margin-top: 5mm; color: #333; }

  /* Section rhythm — let sections and text flow; keep headings with their body */
  article .section { padding: 7mm 0 0; border-top: none; }
  article h2 { font-size: 15pt; margin: 0 0 4mm; }
  .eyebrow { color: #555; }
  h1, h2, h3 { break-after: avoid; }
  figure.diagram, .tele, .maturity .stage, blockquote.rule, table.positioning, ol.loop li { break-inside: avoid; }

  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; word-break: break-all; }

  /* Diagram */
  figure.diagram { border: 1px solid #ccc; padding: 6mm; margin: 6mm 0; }
  figure.diagram svg.flow { max-width: 148mm; }
  figure.diagram figcaption { color: #444; margin-top: 4mm; }

  /* Executive summary */
  .exec-summary { break-inside: avoid; padding: 5mm 6mm; border-color: #ccc; border-left-color: #444; }
  .exec-summary p { font-size: 10.5pt; }

  /* Rule callout */
  blockquote.rule { margin: 5mm 0; }
  blockquote.rule p { font-size: 15pt; }

  /* Telemetry — light in print, wraps rather than overflows */
  .tele { background: #fff; color: #000; border: 1px solid #999; padding: 4mm 5mm; margin: 5mm 0; font-size: 9pt; line-height: 1.8; }
  .tele .trow { white-space: normal; }
  .tele .co { color: #000; min-width: 22mm; } .tele .m { color: #333; min-width: 0; } .tele .st { color: #000; font-weight: 600; }

  /* Positioning table fits the column, no scroll */
  .table-scroll { overflow: visible; margin: 5mm 0; }
  table.positioning { min-width: 0; width: 100%; font-size: 9.5pt; }
  table.positioning th { background: #111 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.positioning td, table.positioning th { padding: 8px 10px; }

  /* Maturity */
  .maturity { gap: 4mm; margin: 5mm 0; }
  .maturity .stage { padding: 4mm 5mm; }
  .maturity .stage h3 { font-size: 13pt; margin: 3px 0 5px; }
  .maturity .stage p { margin-bottom: 4px; }
}
