/* ============================================================
   11% — guided business-launch walkthrough
   Design system + responsive layout
   Aesthetic: ink-black odometer brand, paper receipt, success-green money.
   ============================================================ */

:root {
  /* Ink + surface */
  --ink:      #14161a;
  --ink-2:    #3a3f47;
  --muted:    #6b7280;
  --faint:    #9aa1ab;
  --line:     #e6e8ec;
  --line-2:   #d7dbe0;
  --bg:       #f5f6f8;
  --panel:    #ffffff;
  --panel-2:  #fafbfc;

  /* Brand + status */
  --accent:   #14161a;          /* primary action = ink (matches odometer) */
  --good:     #15935a;          /* money / committed / success */
  --good-bg:  #e8f5ee;
  --amber:    #c77a0a;
  --amber-bg: #fdf3e3;
  --danger:   #d3473b;
  --danger-bg:#fbeae8;
  --info:     #2f6df0;
  --info-bg:  #e9f0fe;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Geometry */
  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 1px 3px rgba(20,22,26,.05);
  --shadow-md: 0 4px 16px rgba(20,22,26,.08), 0 2px 6px rgba(20,22,26,.05);
  --shadow-lg: 0 18px 48px rgba(20,22,26,.16);

  --receipt-w: 360px;
  --topbar-h:  104px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; }
.brand-logo--mark { display: none; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-note {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line-2);
  padding: 3px 9px; border-radius: 999px;
}

/* thin overall progress line */
.progress-line { height: 3px; background: var(--line); position: relative; }
.progress-line > span {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--ink), #4b525c);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

/* ---------- Stepper ---------- */
.stepper {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 4px; overflow-x: auto;
  padding: 9px 18px 11px; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.step-pill {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; font-size: 12.5px; color: var(--faint);
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent;
  background: none; cursor: default; transition: all .18s;
}
.step-pill .dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--line); color: var(--muted); flex: none;
}
.step-pill.is-done { color: var(--ink-2); cursor: pointer; }
.step-pill.is-done:hover { background: var(--panel-2); border-color: var(--line); }
.step-pill.is-done .dot { background: var(--good); color: #fff; }
.step-pill.is-current { color: var(--ink); font-weight: 600; }
.step-pill.is-current .dot { background: var(--ink); color: #fff; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr var(--receipt-w);
  gap: 26px; padding: 28px 22px 96px; align-items: start;
}
.stage { min-width: 0; }
.step-root { animation: rise .4s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Generic step card ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 30px 32px;
}
.card + .card { margin-top: 18px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--good); margin: 0 0 10px;
}
.eyebrow.alt { color: var(--info); }
h1.step-title { font-size: 27px; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 10px; }
h2.step-title { font-size: 21px; letter-spacing: -.01em; margin: 0 0 8px; }
.lede { font-size: 15.5px; color: var(--ink-2); margin: 0 0 22px; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s, box-shadow .18s, background .18s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #25282e; box-shadow: var(--shadow-md); }
.btn--primary:disabled { background: var(--line-2); color: #fff; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--muted); }
.btn--good { background: var(--good); color: #fff; }
.btn--good:hover { background: #0f7e4c; }
.btn--sm { padding: 9px 14px; font-size: 13.5px; border-radius: 9px; }
.btn--link { background: none; border: none; color: var(--info); padding: 0; font-weight: 600; cursor: pointer; }
.btn--link:hover { text-decoration: underline; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.btn-row .spacer { flex: 1; }

/* ---------- Quiz / choice options ---------- */
.q-block + .q-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.q-label { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.q-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--panel); cursor: pointer; font-size: 15px; color: var(--ink);
  transition: all .14s; width: 100%;
}
.opt:hover { border-color: var(--muted); background: var(--panel-2); }
.opt.is-sel { border-color: var(--ink); background: #14161a06; box-shadow: inset 0 0 0 1px var(--ink); }
.opt .opt-check {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2);
  flex: none; display: grid; place-items: center; transition: all .14s;
}
.opt.is-sel .opt-check { border-color: var(--ink); background: var(--ink); }
.opt.is-sel .opt-check::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.opt .opt-main { flex: 1; }
.opt .opt-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .sub { font-weight: 400; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--panel); transition: border-color .14s, box-shadow .14s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,26,.08);
}
.input.is-err { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.45; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix .input { padding-left: 30px; }
.err-msg { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.warn-msg { color: var(--amber); font-size: 12.5px; margin-top: 5px; }

/* ---------- Intake chat ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: rise .3s ease; }
.bubble--ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.chat-progress { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Plan draft ---------- */
.plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-head { background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 14px 20px; display:flex; align-items:center; justify-content: space-between; }
.plan-badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--amber); padding: 3px 9px; border-radius: 6px; }
.plan-body { padding: 8px 22px 18px; }
.plan-section { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.plan-section:last-child { border-bottom: none; }
.plan-section h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plan-section p { margin: 0; font-size: 15px; color: var(--ink-2); }
.plan-section.assembling { opacity: .35; }
.plan-section.assembling p::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.price-lines { list-style: none; margin: 0; padding: 0; }
.price-lines li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.price-lines li.total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 17px; }
.price-lines .amt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fakepay { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fakepay .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-note { font-size: 12px; color: var(--faint); margin-top: 12px; display:flex; gap:6px; align-items:center; }

/* ---------- Document determination ---------- */
.doc-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 12px; background: var(--panel); }
.doc-card h4 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.doc-card .doc-why { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; padding: 9px 12px; background: var(--good-bg); border-radius: 8px; }
.doc-card .doc-purpose { font-size: 14px; color: var(--muted); margin: 0; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag--always { background: var(--ink); color: #fff; }
.tag--cond { background: var(--info-bg); color: var(--info); }

/* ---------- Mad-libs accordion ---------- */
.ml-doc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--panel); }
.ml-doc-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; background: var(--panel); }
.ml-doc-head .ml-num { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.ml-doc.is-open .ml-doc-head { border-bottom: 1px solid var(--line); }
.ml-doc.is-done .ml-num { background: var(--good); color: #fff; }
.ml-doc-head .ml-title { flex: 1; font-weight: 600; font-size: 16px; }
.ml-doc-head .ml-state { font-size: 12.5px; color: var(--muted); }
.ml-body { padding: 6px 20px 20px; }
.ml-derived { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0 18px; }
.ml-derived .ml-derived-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.chip b { font-weight: 600; }
.chip .chip-edit { font-size: 12px; color: var(--info); cursor: pointer; }
.ml-group { margin-top: 16px; }
.ml-group h5 { margin: 0 0 10px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ml-grid .full { grid-column: 1 / -1; }
/* "AI read of your idea" on the plan step */
.ai-read { margin-top: 18px; padding: 18px 20px; border: 1px solid #d4c8f0; border-radius: var(--radius); background: linear-gradient(180deg, #f6f2fe, #fbfaff); }
.ai-read-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: #6d3fc4; margin-bottom: 10px; }
.ai-read-head svg { color: #6d3fc4; }
.ai-read-refined { margin: 0 0 12px; font-size: 15px; font-style: italic; color: var(--ink); line-height: 1.5; }
.ai-read-signals { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sig-chip { font-size: 12px; font-weight: 600; color: #6d3fc4; background: #efe8fc; border: 1px solid #ddd0f5; border-radius: 999px; padding: 4px 11px; }
.ai-read-recs-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ai-read-recs ul { margin: 0; padding-left: 18px; }
.ai-read-recs li { font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; line-height: 1.5; }
.ai-read-recs li.ai-warn { list-style: none; margin-left: -18px; display: flex; align-items: flex-start; gap: 7px; color: var(--amber); }
.ai-read-recs li.ai-warn svg { flex: none; margin-top: 2px; }

/* AI polish on free-text fields */
.polish-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.polish-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--info); background: var(--info-bg); border: 1px solid #d4e3fb; border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: all .14s; }
.polish-btn:hover { background: #dde9fd; }
.polish-btn svg { width: 13px; height: 13px; }
.polish-hint { font-size: 11.5px; color: var(--muted); }
.polish-out { margin-top: 8px; }
.polish-sugg { border: 1px solid #d4e3fb; background: var(--info-bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.polish-sugg.empty, .polish-sugg.clean { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.polish-sugg.clean { background: var(--good-bg); border-color: #cfe9da; color: var(--good); }
.polish-sugg-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--info); margin-bottom: 7px; }
.polish-text { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.polish-acts { display: flex; align-items: center; gap: 14px; }

/* "fill in later" (counterparty) section */
.ml-later { margin-top: 18px; padding: 16px 18px; border: 1px dashed var(--info); background: var(--info-bg); border-radius: var(--radius-sm); }
.ml-later-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--info); margin-bottom: 6px; }
.ml-later-head svg { width: 16px; height: 16px; }
.ml-later-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.ml-later-toggle { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ml-later-toggle input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.ml-later-fields { margin-top: 14px; }
.ml-later-val { color: var(--info); font-style: italic; }
.doc-reuse { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; padding: 9px 12px; background: var(--info-bg); border: 1px solid #d4e3fb; border-radius: 8px; display: flex; align-items: flex-start; gap: 7px; }
.doc-reuse svg { color: var(--info); flex: none; margin-top: 1px; width: 15px; height: 15px; }

.ml-preview { background: var(--good-bg); border: 1px solid #cfe9da; border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 16px; }
.ml-preview h5 { margin: 0 0 10px; font-size: 13px; }
.ml-preview dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 13px; }
.ml-preview dt { color: var(--muted); }
.ml-preview dd { margin: 0; font-weight: 500; }

/* ---------- Risk acceptance gate ---------- */
.risk-doc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.risk-doc-head { padding: 16px 20px; display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.risk-doc-head .risk-title { flex: 1; font-weight: 600; }
.risk-doc-head .stakes { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); }
.risk-doc-body { padding: 18px 20px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.path-btn { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; background: var(--panel); text-align: left; transition: all .14s; }
.path-btn:hover { border-color: var(--muted); }
.path-btn.is-sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.path-btn b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.path-btn span { font-size: 12.5px; color: var(--muted); }
.terms-box {
  height: 168px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 14px 16px; background: var(--panel-2); font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.terms-box h6 { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.terms-box p { margin: 0 0 9px; }
.terms-ver { font-size: 11px; color: var(--faint); margin: 8px 0 12px; font-family: var(--mono); }
.assent { display: flex; gap: 11px; align-items: flex-start; margin: 14px 0; font-size: 13.5px; }
.assent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.assent.is-locked { opacity: .5; }
.attorney-list { display: grid; gap: 8px; margin: 6px 0 14px; }
.attorney { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.risk-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 10px; }
.risk-status.decided { background: var(--good-bg); color: var(--good); }
.gate-summary { margin-top: 8px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--muted); }

/* ---------- Affiliate activation ---------- */
.aff-seq { display: grid; gap: 12px; }
.aff-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--panel); transition: opacity .2s; }
.aff-card.is-locked { opacity: .45; pointer-events: none; }
.aff-card.is-done { background: var(--panel-2); }
.aff-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.aff-head .aff-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.aff-head .aff-name { font-weight: 600; font-size: 16px; flex: 1; }
.aff-head .aff-step-n { font-size: 12px; color: var(--faint); }
.aff-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; padding-left: 46px; }
.aff-tiers { display: grid; gap: 8px; padding-left: 46px; }
.aff-tier { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: all .14s; }
.aff-tier:hover { border-color: var(--muted); }
.aff-tier.is-sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.aff-tier .aff-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.aff-tier.is-sel .aff-radio { border-color: var(--ink); background: radial-gradient(circle, #fff 30%, var(--ink) 32%); }
.aff-tier .aff-tier-label { flex: 1; font-size: 14px; }
.aff-tier .aff-tier-sub { font-size: 12px; color: var(--muted); }
.aff-tier .aff-amt { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.aff-disclose { font-size: 11.5px; color: var(--faint); margin: 12px 0 0; padding-left: 46px; display: flex; gap: 6px; align-items: flex-start; }
.aff-actions { padding-left: 46px; margin-top: 14px; }

/* ---------- Confirmation ---------- */
.confirm-hero { text-align: center; padding: 14px 0 6px; }
.confirm-check { width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 8px 24px rgba(21,147,90,.3); }
.vault { display: grid; gap: 10px; margin: 8px 0; }
.vault-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.vault-item .v-ic { color: var(--good); flex: none; }
.vault-item .v-name { flex: 1; font-size: 14.5px; font-weight: 500; }
.vault-item .v-dl { font-size: 13px; color: var(--info); cursor: pointer; font-weight: 600; }
.maintain-promo { margin-top: 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.maintain-promo h3 { margin: 0 0 6px; font-size: 18px; }
.maintain-promo .price { font-family: var(--mono); font-weight: 700; }

/* ---------- Terminate screen ---------- */
.terminate { text-align: center; padding: 18px 0; }
.terminate .term-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--amber-bg); color: var(--amber); display: grid; place-items: center; margin: 0 auto 16px; }

/* ============================================================
   RUNNING RECEIPT
   ============================================================ */
.receipt {
  position: sticky; top: calc(var(--topbar-h) + 18px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  max-height: calc(100vh - var(--topbar-h) - 40px); display: flex; flex-direction: column;
}
.receipt.is-empty { display: none; }
.receipt-handle { display: none; }
.receipt-inner { overflow-y: auto; }

.rc-head { padding: 18px 20px 14px; border-bottom: 1px dashed var(--line); }
.rc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.rc-title .rc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.rc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.rc-toggle { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin: 14px 0 0; }
.rc-toggle button { flex: 1; border: none; background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 7px; border-radius: 6px; cursor: pointer; transition: all .15s; }
.rc-toggle button.is-on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }

.rc-budget { padding: 14px 20px; border-bottom: 1px dashed var(--line); }
.rc-budget-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.rc-budget-row b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rc-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rc-bar > span { display: block; height: 100%; width: 0%; background: var(--good); border-radius: 999px; transition: width .4s, background .3s; }
.rc-bar.amber > span { background: var(--amber); }
.rc-bar.over  > span { background: var(--danger); }
.rc-budget-note { font-size: 11.5px; margin-top: 7px; }
.rc-budget-note.amber { color: var(--amber); }
.rc-budget-note.over { color: var(--danger); }
.rc-set-budget { font-size: 12px; color: var(--info); cursor: pointer; }

.rc-lines { padding: 8px 20px; }
.rc-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 14px 0 6px; }
.rc-line { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.rc-line:last-child { border-bottom: none; }
.rc-line.is-stub { opacity: .55; }
.rc-line-main { flex: 1; min-width: 0; }
.rc-line-label { font-size: 13px; line-height: 1.35; }
.rc-line-sel { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rc-line-sel select { font-family: inherit; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; background: var(--panel); max-width: 100%; }
.rc-line-amt { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-line-amt.stub { color: var(--faint); font-style: italic; font-size: 11.5px; }
.rc-line-amt.committed { color: var(--good); font-weight: 600; }
.rc-line-x { border: none; background: none; color: var(--faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 4px; }
.rc-line-x:hover { color: var(--danger); }
.rc-recur { font-size: 10px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; margin-left: 6px; }

.rc-foot { padding: 14px 20px 18px; border-top: 2px solid var(--ink); background: var(--panel-2); position: sticky; bottom: 0; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; }
.rc-total .rc-total-label { font-size: 13px; font-weight: 600; }
.rc-total .rc-total-amt { font-family: var(--mono); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-total-sub { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: right; }
.rc-save { width: 100%; margin-top: 14px; }
.rc-saved { font-size: 12px; color: var(--good); text-align: center; margin-top: 8px; display: none; }
.rc-saved.show { display: block; }

/* ---------- Mobile receipt FAB / sheet ---------- */
.receipt-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none;
  align-items: center; gap: 8px; background: var(--ink); color: #fff;
  border: none; border-radius: 999px; padding: 13px 18px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.receipt-fab .fab-amt { font-family: var(--mono); }
.icon svg { width: 20px; height: 20px; }
.receipt-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,22,26,.45); z-index: 45; }
.receipt-backdrop.show { display: block; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: none; }
.pill-note { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 22px 16px 110px; }
  .receipt {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 46;
    border-radius: 18px 18px 0 0; max-height: 80vh; transform: translateY(102%);
    transition: transform .32s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-lg);
    display: flex;
  }
  .receipt.is-empty { display: flex; transform: translateY(102%); }
  .receipt.open { transform: translateY(0); }
  .receipt-handle { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); border: none; margin: 10px auto 4px; cursor: pointer; }
  .receipt-fab { display: inline-flex; }
  .receipt.is-empty ~ .receipt-fab,  .receipt.is-empty + * .receipt-fab { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .ml-grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .options.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  h1.step-title { font-size: 23px; }
  .brand-logo--full { display: none; }
  .brand-logo--mark { display: block; height: 30px; }
  .topbar-inner { padding: 12px 16px 10px; }
}

/* fix accidental token */
.btn--good:hover { background: #0f7e4c; }

/* ============================================================
   MAINTAIN / GROW DASHBOARD
   ============================================================ */
body.dash-mode .stage { min-width: 0; }
.dash { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-h { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.dash-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dash-tabs { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.dash-tab { display: inline-flex; align-items: center; gap: 7px; border: none; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 18px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.dash-tab svg { width: 16px; height: 16px; }
.dash-tab.on { background: var(--ink); color: #fff; }

.sub-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid #cfe1fb; background: var(--info-bg); border-radius: var(--radius); margin-bottom: 18px; font-size: 13.5px; }
.sub-banner.on { background: var(--good-bg); border-color: #cfe9da; }
.sub-banner.on b, .sub-banner.on svg { color: var(--good); }
.sub-banner svg { vertical-align: -2px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.panel.span2 { grid-column: 1 / -1; }
.panel-h { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.panel-h svg { color: var(--ink); flex: none; }
.panel-h h2 { font-size: 16px; margin: 0; flex: 1; }
.pill-ok { font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-bg); border-radius: 999px; padding: 3px 10px; }
.pill-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-radius: 999px; padding: 3px 10px; }
.pill-lock svg { width: 12px; height: 12px; }

/* calendar */
.cal-list { display: grid; gap: 10px; }
.cal-card { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); }
.cal-card.red { border-left-color: var(--danger); }
.cal-card.amber { border-left-color: var(--amber); }
.cal-card.green { border-left-color: var(--good); }
.cal-card.info { border-left-color: var(--line-2); }
.cal-card.done { opacity: .6; }
.cal-dot { display: none; }
.cal-main { flex: 1; min-width: 0; }
.cal-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; flex-wrap: wrap; }
.cal-desc { font-size: 12.5px; color: var(--muted); margin: 2px 0 7px; }
.cal-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.cal-due { font-weight: 600; }
.cal-card.red .cal-due { color: var(--danger); }
.cal-card.amber .cal-due { color: var(--amber); }
.cal-amt { font-family: var(--mono); }
.cal-help { color: var(--info); text-decoration: none; }
.cal-check { color: var(--good); flex: none; }

/* vault */
.vault-list { display: grid; gap: 8px; }
.vault-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.vault-name { flex: 1; font-weight: 500; }
.vault-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 5px; }
.vault-status.draft { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.vault-status.executed { background: var(--good-bg); color: var(--good); }
.lock-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.lock-row svg { color: var(--amber); }

/* checklist */
.chk-list { display: grid; gap: 4px; }
.chk-row { display: flex; align-items: flex-start; gap: 11px; padding: 9px 6px; border-radius: 8px; cursor: pointer; }
.chk-row:hover { background: var(--panel-2); }
.chk-row input { position: absolute; opacity: 0; pointer-events: none; }
.chk-box { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 6px; flex: none; display: grid; place-items: center; color: #fff; margin-top: 1px; transition: all .14s; }
.chk-row.done .chk-box { background: var(--good); border-color: var(--good); }
.chk-main { flex: 1; }
.chk-label { font-size: 14px; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; }
.chk-row.done .chk-label { color: var(--muted); text-decoration: line-through; }
.chk-why { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* budget */
.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bstat { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.bstat-n { display: block; font-family: var(--mono); font-size: 20px; font-weight: 700; }
.bstat-l { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* marketing + ad tips */
.ad-lock { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--amber-bg); border: 1px solid #f0dcae; border-radius: var(--radius-sm); margin: 8px 0 14px; }
.ad-lock > svg { color: var(--amber); flex: none; margin-top: 2px; }
.adtips { margin: 10px 0 14px; }
.adtip-refined { padding: 11px 14px; background: #f6f2fe; border: 1px solid #ddd0f5; border-radius: var(--radius-sm); margin-bottom: 14px; }
.adtip-refined-l { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6d3fc4; margin-bottom: 4px; }
.adtip-refined-l svg { color: #6d3fc4; }
.adtip-refined p { margin: 0; font-size: 13.5px; font-style: italic; color: var(--ink); }
.adtip-block { margin-bottom: 16px; }
.adtip-block h4 { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.adtip-ch { display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 7px; }
.adtip-ch b { font-size: 13.5px; }
.adtip-ch span { font-size: 12.5px; color: var(--muted); }
.adtip-ad { border: 1px solid var(--line); border-left: 3px solid var(--info); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; background: var(--panel-2); }
.adtip-hl { font-weight: 700; font-size: 14px; color: #1a3d8f; }
.adtip-bd { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.aff-mini { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aff-mini-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }

/* milestones */
.ms-line { position: relative; padding-left: 6px; }
.ms-item { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.ms-item::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.ms-item:last-child::before { display: none; }
.ms-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); flex: none; margin-top: 3px; z-index: 1; }
.ms-dot.seed { background: var(--good); box-shadow: 0 0 0 1px var(--good); }
.ms-card { flex: 1; }
.ms-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ms-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ms-next { font-size: 12.5px; color: var(--ink-2); margin: 5px 0 0; padding: 8px 11px; background: var(--good-bg); border-radius: 7px; }
.ms-add { display: flex; gap: 8px; margin-top: 10px; }
.ms-add .select { flex: 1; }

/* grow cards */
.grow-list { display: grid; gap: 8px; }
.grow-card { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.grow-card.open { border-color: var(--line-2); }
.grow-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; background: none; border: none; cursor: pointer; font: inherit; text-align: left; }
.grow-ic { color: var(--ink); flex: none; }
.grow-tt { flex: 1; }
.grow-tt b { display: block; font-size: 14px; }
.grow-tt span { font-size: 12.5px; color: var(--muted); }
.grow-caret { font-size: 18px; color: var(--muted); }
.grow-body { padding: 0 14px 14px 39px; }
.grow-steps { margin: 0 0 12px; padding-left: 18px; }
.grow-steps li { font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.grow-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.soon-tag { font-size: 12px; color: var(--muted); font-style: italic; }

/* add-a-document modal */
.dash-add-overlay { position: fixed; inset: 0; z-index: 88; background: rgba(20,22,26,.5); display: none; align-items: flex-start; justify-content: center; padding: 8vh 18px; overflow-y: auto; backdrop-filter: blur(2px); }
.dash-add-overlay.show { display: flex; }
.dash-add { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; padding: 24px 26px; animation: rise .24s cubic-bezier(.2,.7,.2,1); }
.da-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.da-head h2 { margin: 0; font-size: 19px; }
.da-intro { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 18px; line-height: 1.55; }
.da-fields-note { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FOUNDER EDUCATION — "What's this?" links + Learn modal
   ============================================================ */
.learn-link {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline;
  background: none; border: none; padding: 0; margin-left: 6px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--info);
  line-height: 1;
}
.learn-link:hover { text-decoration: underline; }
.learn-link .li-ic {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor;
  display: inline-grid; place-items: center; font-size: 9px; font-style: normal; font-weight: 700; flex: none;
}
.learn-link.sm { font-size: 11.5px; }

/* topbar Learn button */
.topbar-learn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink); font-family: inherit;
  transition: all .14s;
}
.topbar-learn:hover { background: var(--panel-2); border-color: var(--muted); }

/* modal */
.learn-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,22,26,.5);
  display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 18px; overflow-y: auto; backdrop-filter: blur(2px);
}
.learn-overlay.show { display: flex; }
.learn-modal {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; animation: rise .26s cubic-bezier(.2,.7,.2,1);
  overflow: hidden; margin-bottom: 6vh;
}
.learn-modal-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--line); position: relative;
}
.learn-modal-head .lm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--info); margin: 0 0 5px; }
.learn-modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.learn-modal-head .lm-short { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.learn-cost { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--good); background: var(--good-bg); border-radius: 8px; padding: 5px 11px; flex: none; }
.learn-x { position: absolute; top: 16px; right: 18px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--faint); cursor: pointer; }
.learn-x:hover { color: var(--ink); }
.learn-body { padding: 20px 26px 26px; max-height: 60vh; overflow-y: auto; }
.learn-body h4 {
  margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.learn-body h4::before { content: ""; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.learn-body .learn-section + .learn-section { margin-top: 22px; }
.learn-body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.learn-body p:last-child { margin-bottom: 0; }
/* ============================================================
   DOCUMENT VIEWER (professional paper)
   ============================================================ */
.doc-overlay {
  position: fixed; inset: 0; z-index: 85; background: rgba(20,22,26,.55);
  display: none; flex-direction: column; padding: 4vh 16px 0; backdrop-filter: blur(2px);
}
.doc-overlay.show { display: flex; }
.doc-modal {
  width: 100%; max-width: 860px; margin: 0 auto; flex: 1; min-height: 0;
  background: var(--bg); border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: rise .26s cubic-bezier(.2,.7,.2,1);
}
.doc-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.doc-toolbar-title { font-weight: 600; font-size: 14px; }
.doc-toolbar-spacer { flex: 1; }
.doc-scroll { overflow-y: auto; padding: 26px 16px 40px; background: #eceef1; flex: 1; }
.doc-paper {
  max-width: 720px; margin: 0 auto; background: #fff; padding: 56px 60px;
  box-shadow: 0 2px 16px rgba(20,22,26,.16);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  color: #1a1a1a; line-height: 1.62; font-size: 15px;
}
.doc-paper .doc-head { text-align: center; border-bottom: 2px solid #1a1a1a; padding-bottom: 14px; margin-bottom: 24px; }
.doc-paper .doc-head h1 { font-size: 20px; letter-spacing: .06em; margin: 0 0 4px; }
.doc-paper .doc-head .sub { font-size: 16px; font-style: italic; margin: 0; }
.doc-paper .doc-head .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #666; margin: 8px 0 0; }
.doc-paper .doc-recital { margin: 0 0 18px; text-align: justify; }
.doc-paper .doc-article { margin: 0 0 16px; }
.doc-paper .doc-art-h { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; display: flex; gap: 10px; }
.doc-paper .doc-art-h span { font-weight: 700; }
.doc-paper .doc-art-body { text-align: justify; }
.doc-paper .doc-art-body p { margin: 0 0 9px; }
.doc-paper .dv { font-weight: 600; background: #fff7e6; padding: 0 2px; border-radius: 2px; }
.doc-paper .dv.blank { display: inline-block; min-width: 130px; border-bottom: 1px solid #777; background: none; font-weight: 400; }
.doc-paper .doc-sign { margin-top: 30px; }
.doc-paper .doc-sign-intro { font-size: 13px; margin: 0 0 22px; }
.doc-paper .doc-sign-grid { display: flex; gap: 40px; flex-wrap: wrap; }
.doc-paper .doc-sign-col { flex: 1; min-width: 220px; }
.doc-paper .doc-sign-line { border-bottom: 1px solid #1a1a1a; height: 34px; margin-bottom: 6px; }
.doc-paper .doc-sign-meta { font-size: 13px; }
.doc-paper .doc-sign-role { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.doc-paper .doc-sign-date { font-size: 12px; color: #444; margin-top: 8px; }
@media (max-width: 600px) { .doc-paper { padding: 32px 22px; } }

/* triage-aware nudge on the plan step */
.nudge { margin-top: 16px; padding: 16px 18px; border: 1px solid #cfe1fb; background: var(--info-bg); border-radius: var(--radius-sm); }
.nudge-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--info); margin-bottom: 5px; }
.nudge-head svg { color: var(--info); }
.nudge-body { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.nudge-links { display: flex; flex-wrap: wrap; gap: 12px; }

.learn-mistake { margin-top: 22px; padding: 14px 16px; background: var(--amber-bg); border: 1px solid #f0dcae; border-left: 3px solid var(--amber); border-radius: 8px; }
.learn-mistake .lm-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.learn-mistake p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.learn-foot { padding: 14px 26px 22px; }
.learn-foot .hint { margin: 0; }
.learn-related { padding: 0 26px 22px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Learn library index */
.learn-index-head { padding: 24px 26px 8px; }
.learn-index-head h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.02em; }
.learn-index-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.learn-index { padding: 12px 26px 26px; }
.learn-index .lx-group { margin-top: 18px; }
.learn-index .lx-group > h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lx-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); cursor: pointer; margin-bottom: 8px; transition: all .14s; font-family: inherit;
}
.lx-card:hover { border-color: var(--muted); background: var(--panel-2); }
.lx-card .lx-term { font-weight: 600; font-size: 15px; color: var(--ink); }
.lx-card .lx-short { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lx-card .lx-arrow { margin-left: auto; color: var(--faint); flex: none; align-self: center; }
