/* ============================================================
   Lollipop — print-ready document system
   Letter pages (816×1056 @96dpi) · Poppins · DS tokens.
   Screen: paper sheets on a warm grey desk. Print: one sheet
   per physical page.
   ============================================================ */

@page { size: Letter; margin: 0; }

html { background: #e7e4de; }
body { background: #e7e4de; margin: 0; font-family: var(--font-body); color: var(--ink-700); }

.doc { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 44px 16px 80px; counter-reset: pg; }
.page { counter-increment: pg; }
.pfoot > span:last-child { font-size: 0; }
.pfoot > span:last-child::after { content: counter(pg); font-size: 13px; font-weight: 500; }

.page {
  width: 816px; min-height: 1056px; background: var(--paper); position: relative;
  box-shadow: 0 8px 32px rgba(28,29,31,0.13); border-radius: 2px;
  padding: 92px 84px 96px; display: flex; flex-direction: column;
}

/* running header / footer */
.phead, .pfoot { position: absolute; left: 84px; right: 84px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-400); font-size: 13px; font-weight: 500; }
.phead { top: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--line-200); }
.pfoot { bottom: 44px; padding-top: 14px; border-top: 1px solid var(--line-200); }
.phead .l { display: flex; align-items: center; gap: 11px; }
.phead img { height: 22px; }
.phead .doctitle { font-weight: 600; color: var(--ink-500); }
.pfoot .ccw { font-weight: 600; }

/* ---- Section headings & text ---- */
.sec { display: flex; align-items: flex-start; gap: 14px; margin: 26px 0 13px; }
.sec:first-child, .page > .sec:first-of-type { margin-top: 0; }
.sec-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.sec h2 { font-size: 26px; font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink-900); margin: 3px 0 0; }
h3.sub { font-size: 19px; font-weight: 700; color: var(--ink-900); margin: 22px 0 8px; }
h4.subb { font-size: 16px; font-weight: 700; color: var(--coral-600); margin: 16px 0 6px; letter-spacing: 0.01em; }
.eyebrow-c { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-500); margin: 0 0 8px; }

.doc-body p { font-size: 16px; line-height: 1.62; color: var(--ink-700); margin: 0 0 13px; }
.doc-body p.lead { font-size: 18px; color: var(--ink-500); line-height: 1.55; margin-bottom: 16px; }
.doc-body strong, .doc-body b { font-weight: 700; color: var(--ink-900); }
.doc-body a { color: var(--blue-600); font-weight: 600; }

/* ---- Lists ---- */
.doc-body ul { list-style: none; padding: 0; margin: 0 0 13px; }
.doc-body ul > li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 16px; line-height: 1.55; color: var(--ink-700); }
.doc-body ul > li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-300); }
.doc-body ol { counter-reset: li; list-style: none; padding: 0; margin: 0 0 15px; }
.doc-body ol > li { position: relative; counter-increment: li; padding-left: 38px; margin-bottom: 11px; font-size: 16px; line-height: 1.55; color: var(--ink-700); }
.doc-body ol > li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-500); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- Tables ---- */
.btable { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 20px; border: 1px solid var(--line-300); border-radius: 12px; overflow: hidden; }
.btable th { background: var(--ink-900); color: #fff; text-align: left; font-weight: 700; padding: 12px 18px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.btable td { padding: 13px 18px; border-top: 1px solid var(--line-200); color: var(--ink-700); vertical-align: top; font-size: 15px; line-height: 1.5; }
.btable tbody tr:nth-child(even) td { background: var(--fill-100); }
.btable td:first-child { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.btable td.wrap:first-child, .btable.free td:first-child { white-space: normal; }

/* ---- Callouts ---- */
.cal { border-radius: 12px; padding: 16px 20px 16px 22px; margin: 16px 0; border-left: 5px solid; }
.cal p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-700); }
.cal h4 { font-size: 16px; font-weight: 700; margin: 0 0 5px; color: var(--ink-900); display: flex; align-items: center; gap: 9px; }
.cal h4 .ic-svg { width: 19px; height: 19px; }
.cal.info { background: var(--info-soft); border-color: var(--info); }
.cal.warn { background: var(--warning-soft); border-color: var(--warning); }
.cal.crit { background: var(--critical-soft); border-color: var(--critical); }
.cal.crit h4 { color: var(--coral-600); }
.cal.ok { background: var(--positive-soft); border-color: var(--positive); }

/* key-value meta strip */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 22px; font-size: 15px; }
.kv dt { color: var(--ink-400); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink-800, var(--ink-900)); font-weight: 500; }

/* ============================================================
   COVER PAGE
   ============================================================ */
.cover-page { padding: 0; }
.cover-rule { height: 16px; background: linear-gradient(90deg, var(--mood-terrible) 0 20%, var(--mood-bad) 20% 40%, var(--mood-okay) 40% 60%, var(--mood-good) 60% 80%, var(--mood-great) 80% 100%); }
.cover-in { flex: 1; padding: 92px 84px 80px; display: flex; flex-direction: column; }
.cover-in .logo { height: 58px; width: auto; align-self: flex-start; }
.cover-eyebrow { margin-top: 64px; font-size: 15px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-500); }
.cover-page h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; color: var(--ink-900); margin: 18px 0 0; }
.cover-page .tagline { font-size: 21px; color: var(--blue-600); font-weight: 600; margin: 22px 0 0; }
.cover-page .blurb { font-size: 18px; color: var(--ink-500); line-height: 1.55; margin: 22px 0 0; max-width: 560px; }
.cover-meta { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--line-200); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cover-foot { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-400); }
.cover-foot img { height: 30px; }
.cover-faces { display: flex; gap: 10px; }
.cover-faces img { width: 52px; height: 52px; }

/* utility */
.mt0 { margin-top: 0; }
.tight { margin-bottom: 6px; }
.note { font-size: 14px; color: var(--ink-400); font-style: italic; }

/* ---- Checklist form (Pre-Launch Checklist) ---- */
.form-masthead { display: flex; align-items: center; justify-content: space-between; }
.form-masthead .ttl { display: flex; align-items: center; gap: 16px; }
.form-masthead img { height: 48px; }
.form-masthead h1 { font-size: 34px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.02em; }
.form-masthead .meta { text-align: right; font-size: 13px; font-weight: 600; color: var(--ink-400); line-height: 1.5; }
.form-fill { display: flex; gap: 44px; margin: 22px 0 4px; }
.form-fill .ff { flex: 1; }
.form-fill label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); display: block; margin-bottom: 9px; }
.form-fill .line { border-bottom: 2px solid var(--line-300); height: 28px; }
.form-intro { font-size: 15px; color: var(--ink-500); margin: 14px 0 0; }
.phase-band { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 8px; padding: 11px 18px; background: var(--fill-100); border-left: 5px solid var(--coral-500); border-radius: 9px; }
.phase-band h3 { font-size: 14px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-900); white-space: nowrap; }
.phase-band .rng { font-size: 13px; font-weight: 600; color: var(--ink-400); margin-left: auto; white-space: nowrap; }
.check-row { display: grid; grid-template-columns: 28px 46px 1fr; align-items: start; gap: 15px; padding: 8px 8px; border-bottom: 1px solid var(--line-200); }
.check-row .box { width: 24px; height: 24px; border: 2px solid #c4c9cf; border-radius: 6px; margin-top: 0; }
.check-row .stp { font-size: 13px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); border-radius: 6px; text-align: center; padding: 4px 0; }
.check-row .stp.dash { color: var(--ink-400); background: var(--fill-100); }
.check-row .itm { font-size: 15.5px; line-height: 1.4; color: var(--ink-700); padding-top: 2px; }
.signoff { display: flex; gap: 44px; margin-top: 30px; }
.signoff .ff { flex: 1; }
.signoff label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); display: block; margin-bottom: 9px; }
.signoff .line { border-bottom: 2px solid var(--line-300); height: 28px; }

/* ---- Numbered step list (process docs) ---- */
.phase-sub { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-500); margin: 20px 0 4px; }
.steps-list { margin: 4px 0 8px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-200); }
.steps-list .step:first-child { border-top: none; }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-500); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.step .b p { font-size: 15.5px; line-height: 1.5; color: var(--ink-700); margin: 0; }
.step .b p strong { color: var(--ink-900); }
.step .b .owner { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }

/* ---- Table of contents ---- */
.toc { margin-top: 10px; }
.toc-row { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-200); }
.toc-row .n { width: 30px; font-weight: 800; color: var(--coral-500); font-size: 16px; flex: none; }
.toc-row .t { font-weight: 600; color: var(--ink-900); font-size: 16.5px; }
.toc-row .pg { margin-left: auto; color: var(--ink-400); font-weight: 600; font-size: 14px; }

/* ---- Simple checkbox list (completion checklist in flow) ---- */
.cbx { list-style: none; padding: 0; margin: 6px 0 0; }
.cbx li { position: relative; padding-left: 38px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.45; color: var(--ink-700); }
.cbx li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 2px solid #c4c9cf; border-radius: 6px; }

/* ---- "To confirm" draft callout (Onboarding Document) ---- */
.confirm { background: var(--warning-soft); border: 1px solid #f1d18f; border-left: 5px solid var(--warning); border-radius: 12px; padding: 14px 20px; margin: 14px 0; }
.confirm .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b06f06; display: flex; align-items: center; gap: 7px; }
.confirm .tag .ic-svg { width: 15px; height: 15px; }
.confirm .q { font-size: 15.5px; font-weight: 700; color: var(--ink-900); margin: 7px 0 4px; }
.confirm .s { font-size: 15px; color: var(--ink-700); font-style: italic; line-height: 1.5; margin: 0; }

/* ---- Email template card ---- */
.email { border: 1px solid var(--line-300); border-radius: 12px; overflow: hidden; margin: 13px 0; box-shadow: var(--shadow-xs); }
.email .eh { background: var(--fill-100); padding: 11px 18px; border-bottom: 1px solid var(--line-200); }
.email .eh .subj { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.email .eh .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.email .eb { padding: 14px 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-700); }
.email .eb .fld { color: var(--blue-600); font-weight: 600; }

/* ---- Meeting scripts: openers, timed segments, "Say" cues ---- */
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.meta-chips .mc { font-size: 13.5px; background: var(--fill-100); border: 1px solid var(--line-200); border-radius: 999px; padding: 7px 15px; color: var(--ink-700); display: flex; align-items: center; gap: 8px; }
.meta-chips .mc .ic-svg { width: 15px; height: 15px; color: var(--ink-400); }
.meta-chips .mc b { color: var(--ink-900); font-weight: 700; }
.seg { margin-top: 15px; }
.seg-h { display: flex; align-items: center; gap: 13px; }
.seg-h .n { width: 34px; height: 34px; border-radius: 50%; background: var(--coral-500); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.seg-h h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); }
.seg-h .time { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 5px 13px; border-radius: 999px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg-h .time .ic-svg { width: 14px; height: 14px; }
.seg-body { margin-top: 7px; margin-left: 47px; }
.seg-body ul { margin: 8px 0 0; }
.seg-body p { font-size: 15.5px; }
.say { background: var(--info-soft); border-left: 5px solid var(--blue-500); border-radius: 12px; padding: 13px 18px; margin: 4px 0 10px; }
.say .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-700); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.say .tag .ic-svg { width: 15px; height: 15px; }
.say p { margin: 0; font-style: italic; font-size: 15.5px; line-height: 1.55; color: var(--ink-700); }

@media print {
  html, body { background: #fff; }
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .doc { padding: 0; gap: 0; }
  .page { box-shadow: none; border-radius: 0; margin: 0; width: auto; min-height: 100vh; break-after: page; page-break-after: always; }
  .page:last-child { break-after: auto; page-break-after: auto; }
  .btable, .cal, .sec, figure { break-inside: avoid; page-break-inside: avoid; }
}
