/* ============================================================================
   KEYSTONE demo — light, professional, jade-accented.
   Canvas #FAF7F2 · ink #1c2430 · jade #2AA6A0 / deep #136e69 · legal red.
   Offline-safe: system font stacks only.
   ========================================================================== */

:root {
  --canvas: #FAF7F2;
  --paper: #ffffff;
  --paper-warm: #FDFCF9;
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --ink-faint: #8b93a1;
  --hairline: #e7e2d9;
  --hairline-2: #efeae1;
  --jade: #2AA6A0;
  --jade-deep: #136e69;
  --jade-tint: #e8f5f4;
  --jade-tint-2: #d2ecea;
  --red: #b3261e;
  --red-tint: #fbeae9;
  --amber: #9a6b15;
  --amber-tint: #faf1dd;
  --note: #5b6b8c;
  --note-tint: #eceff6;
  --shadow: 0 1px 2px rgba(28,36,48,.05), 0 8px 28px rgba(28,36,48,.08);
  --shadow-lg: 0 2px 6px rgba(28,36,48,.08), 0 20px 60px rgba(28,36,48,.16);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--sans); cursor: pointer; }
input { font-family: var(--sans); }

/* ------------------------------------------------------------- topbar --- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--jade-deep); }
.brand .wordmark {
  font-family: var(--serif); font-size: 19px; letter-spacing: .22em;
  font-weight: 600;
}
.brand .wordmark span { color: var(--jade-deep); }

.steps { display: flex; align-items: center; gap: 6px; }
.step {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-faint); letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; transition: all .25s;
}
.step .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline); border: 1.5px solid var(--ink-faint);
  transition: all .25s;
}
.step.done .dot { background: var(--jade); border-color: var(--jade); }
.step.done { color: var(--jade-deep); }
.step.current { background: var(--jade-tint); color: var(--jade-deep); font-weight: 600; }
.step.current .dot { background: var(--jade-deep); border-color: var(--jade-deep); }
.step-sep { width: 18px; height: 1px; background: var(--hairline); }

.btn-restart {
  font-size: 13px; color: var(--ink-soft);
  background: none; border: 1px solid var(--hairline);
  padding: 7px 14px; border-radius: 999px; transition: all .2s;
}
.btn-restart:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ------------------------------------------------------------ screens --- */
.screen { display: none; max-width: 1160px; margin: 0 auto; padding: 40px 28px 110px; }
.screen.active { display: block; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  border: none; border-radius: 12px; padding: 13px 26px; transition: all .2s;
}
.btn-jade { background: var(--jade-deep); color: #fff; box-shadow: 0 2px 10px rgba(19,110,105,.28); }
.btn-jade:hover { background: #0f5c58; transform: translateY(-1px); }
.btn-ghost { background: var(--paper); color: var(--jade-deep); border: 1.5px solid var(--jade); }
.btn-ghost:hover { background: var(--jade-tint); }
.btn-quiet { background: none; color: var(--ink-soft); border: 1px solid var(--hairline); font-weight: 500; }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-faint); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.pulse { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 2px 10px rgba(19,110,105,.28);} 50% { box-shadow: 0 2px 24px rgba(42,166,160,.55);} }

.continue-row { display: flex; justify-content: flex-end; margin-top: 34px; }

/* --------------------------------------------------------- 1 · intake --- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; margin: 26px 0 46px; }
.hero h1 {
  font-family: var(--serif); font-size: 44px; line-height: 1.14; font-weight: 600;
  letter-spacing: -.01em; margin: 18px 0 16px;
}
.hero h1 em { color: var(--jade-deep); font-style: normal; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); display: block;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jade-deep); font-weight: 700;
}
.hero-skip {
  background: none; border: none; font-size: 13px; color: var(--ink-faint);
  text-decoration: underline; margin-top: 14px; display: inline-block; padding: 0;
}
.hero-skip:hover { color: var(--ink-soft); }
.hero-kicker svg { width: 16px; height: 16px; }

.card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.intake-card { padding: 34px 38px; scroll-margin-top: 84px; }
.intake-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.intake-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.intake-head p { color: var(--ink-faint); font-size: 14px; }

.intake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 22px; }
.intake-col h3 {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jade-deep); margin-bottom: 14px; font-weight: 700;
  padding-bottom: 8px; border-bottom: 2px solid var(--jade-tint-2);
}
.irow {
  padding: 10px 12px; border: 1px solid var(--hairline-2); border-radius: 10px;
  margin-bottom: 9px; background: var(--paper-warm);
  opacity: .5; transition: all .35s;
}
.filled .irow { opacity: 1; }
.irow .k { font-size: 12px; color: var(--ink-faint); letter-spacing: .03em; }
.irow .v { font-size: 14.5px; font-weight: 600; min-height: 21px; }
.irow .d { font-size: 12.5px; color: var(--ink-soft); min-height: 18px; }
.irow .v:empty::before, .irow .d:empty::before { content: "—"; color: var(--hairline); font-weight: 400; }
.filled .irow .v:empty, .filled .irow .d:empty { display: none; }
.chip-minor {
  display: none; margin-top: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--jade-deep); background: var(--jade-tint);
  border-radius: 999px; padding: 2px 9px; letter-spacing: .04em;
}
.filled .chip-minor { display: inline-block; animation: rise .4s .5s ease both; }
.irow .val { float: right; font-size: 13px; color: var(--jade-deep); font-weight: 700; }

/* -------------------------------------------------------- 2 · drafting --- */
.draft-wrap { max-width: 760px; margin: 30px auto 0; text-align: center; }
.draft-wrap h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.draft-wrap .sub { color: var(--ink-soft); margin-bottom: 36px; }
.stages { text-align: left; max-width: 560px; margin: 0 auto; }
.stage {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 4px;
  border-bottom: 1px solid var(--hairline-2); opacity: .35; transition: opacity .3s;
}
.stage:last-child { border-bottom: none; }
.stage.on, .stage.done-s { opacity: 1; }
.stage .ind {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 2px solid var(--hairline); position: relative; margin-top: 2px;
  transition: all .3s;
}
.stage.on .ind { border-color: var(--jade); }
.stage.on .ind::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 2.5px solid var(--jade-tint-2); border-top-color: var(--jade);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage.done-s .ind { background: var(--jade); border-color: var(--jade); }
.stage.done-s .ind::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
  animation: none; inset: auto; border-radius: 0; border-top-color: #fff;
}
.stage .lbl { font-size: 16.5px; font-weight: 600; }
.stage .sub2 { font-size: 13.5px; color: var(--ink-faint); }

.package { display: none; margin-top: 38px; }
.package.reveal { display: block; animation: rise .5s ease both; }
.package-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--jade-tint); color: var(--jade-deep);
  font-weight: 700; font-size: 14.5px; border-radius: 999px; padding: 9px 20px;
  margin-bottom: 26px;
}
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.doc-card { padding: 22px 20px 18px; cursor: pointer; transition: all .2s; position: relative; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--jade); }
.doc-card .dc-ico {
  width: 38px; height: 46px; border: 1.5px solid var(--hairline); border-radius: 5px;
  background: var(--paper-warm); margin-bottom: 14px; position: relative;
}
.doc-card .dc-ico::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 2px;
  background: var(--jade-tint-2); box-shadow: 0 6px 0 var(--hairline-2), 0 12px 0 var(--hairline-2), 0 18px 0 var(--hairline-2), 0 24px 0 var(--hairline-2);
}
.doc-card h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; margin-bottom: 3px; }
.doc-card .dc-sub { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 12px; }
.doc-card .dc-open { font-size: 13px; color: var(--jade-deep); font-weight: 700; }
.draft-note { margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------------------------------------------------------- 3 · review --- */
.review-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; margin-bottom: 22px;
}
.review-title h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; }
.review-title .who { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.review-title .who strong { color: var(--ink); }
.review-chips { display: flex; gap: 8px; align-items: center; }
.rchip { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 13px; letter-spacing: .03em; }
.rchip.blocker { background: var(--red-tint); color: var(--red); }
.rchip.fix { background: var(--amber-tint); color: var(--amber); }
.rchip.note { background: var(--note-tint); color: var(--note); }
.rchip.unresolved { background: var(--ink); color: #fff; }
.rchip.unresolved.zero { background: var(--jade-deep); }

.review-banner {
  display: none; align-items: center; gap: 12px;
  background: var(--jade-tint); border: 1px solid var(--jade-tint-2);
  color: var(--jade-deep); font-weight: 700; font-size: 15.5px;
  border-radius: 12px; padding: 14px 20px; margin-bottom: 20px;
}
.review-banner.show { display: flex; animation: rise .4s ease both; }
.review-banner svg { width: 22px; height: 22px; flex: none; }

.review-grid { display: grid; grid-template-columns: 400px 1fr; gap: 22px; align-items: start; }

/* findings rail */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding {
  padding: 16px 18px 14px; cursor: pointer; transition: all .2s;
  border-left: 4px solid var(--hairline);
}
.finding:hover { box-shadow: var(--shadow-lg); }
.finding.sev-blocker { border-left-color: var(--red); }
.finding.sev-fix { border-left-color: var(--amber); }
.finding.sev-note { border-left-color: var(--note); }
.finding.sel { outline: 2px solid var(--jade); outline-offset: -1px; }
.finding.resolved { background: var(--paper-warm); }
.finding.resolved .f-title { color: var(--ink-soft); }
.f-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.sev { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; border-radius: 5px; padding: 2px 8px; text-transform: uppercase; }
.sev.blocker { background: var(--red-tint); color: var(--red); }
.sev.fix { background: var(--amber-tint); color: var(--amber); }
.sev.note { background: var(--note-tint); color: var(--note); }
.sev.required { background: var(--jade-tint); color: var(--jade-deep); }
.finding.iv { border-left-color: var(--jade); }
.catcher { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2.5px 10px; letter-spacing: .02em; margin-left: auto; }
.catcher.keystone { background: var(--jade-tint); color: var(--jade-deep); }
.catcher.attorney { background: var(--ink); color: #fff; }
.f-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.f-where { font-size: 12px; color: var(--ink-faint); margin: 3px 0 8px; }
.f-body { display: none; }
.finding.sel .f-body, .finding.resolved .f-body { display: block; }
.f-off { font-size: 13px; color: var(--ink-soft); padding: 9px 12px; background: var(--red-tint); border-radius: 8px; margin-bottom: 8px; }
.finding.sev-note .f-off { display: none; }
.f-fix { font-size: 13px; color: var(--ink); padding: 9px 12px; background: var(--jade-tint); border-radius: 8px; }
.f-fix strong { color: var(--jade-deep); }
.f-cite { font-size: 11.5px; color: var(--ink-faint); font-style: italic; margin-top: 7px; }
.f-act { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.btn-accept {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--jade-deep);
  border: none; border-radius: 8px; padding: 7px 15px; transition: all .2s;
}
.btn-accept:hover { background: #0f5c58; }
.finding.resolved .btn-accept { display: none; }
.resolved-tag { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--jade-deep); }
.finding.resolved .resolved-tag { display: inline-flex; }
.f-jump { font-size: 12.5px; color: var(--ink-faint); }
.accept-all-row { display: flex; justify-content: center; margin-top: 4px; }

/* document viewer */
.viewer { position: sticky; top: 78px; }
.viewer-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.vtab {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 8px 16px; transition: all .2s;
}
.vtab:hover { border-color: var(--ink-faint); }
.vtab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewer-paper {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r);
  box-shadow: var(--shadow); height: calc(100vh - 220px); min-height: 480px;
  overflow-y: auto; padding: 48px 54px;
}

/* --------------------------------------------------- legal document type -- */
.doc { font-family: var(--serif); color: var(--ink); font-size: 15px; line-height: 1.7; }
.doc h1 { font-size: 21px; text-align: center; letter-spacing: .06em; line-height: 1.5; margin-bottom: 22px; font-weight: 700; }
.doc h1 .h1sub { display: block; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); font-weight: 400; margin-top: 6px; font-family: var(--sans); }
.doc h2 { font-size: 14.5px; letter-spacing: .08em; margin: 26px 0 10px; font-weight: 700; border-bottom: 1px solid var(--hairline-2); padding-bottom: 5px; }
.doc p { margin-bottom: 12px; text-align: justify; }
.doc .preamble { margin-bottom: 18px; }
.doc .indent { margin-left: 26px; }
.doc .omit { font-family: var(--sans); font-size: 12px; color: var(--ink-faint); text-align: center; font-style: italic; margin: 14px 0; }
.doc .sigline { margin-top: 22px; text-align: left; }
.doc .sigcap { font-size: 12.5px; color: var(--ink-soft); font-family: var(--sans); }

/* redlines — classic legal red */
.doc del, .doc ins { text-decoration: none; }
/* plain mode (draft screen): the defective original, no corrections visible */
.doc--plain ins, .doc--plain .rl-block { display: none; }
/* review mode: corrections hidden until finding activated (.rl.act) */
.doc--review .rl ins { display: none; }
.doc--review .rl-block { display: none; }
.doc--review .rl.act { background: #fff7e6; box-shadow: 0 0 0 3px #fff7e6; border-radius: 2px; transition: background .3s; }
.doc--review .rl.act del { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.doc--review .rl.act ins { display: inline; color: var(--red); border-bottom: 1.5px solid var(--red); }
.doc--review .rl-block.act { display: block; border-left: 3px solid var(--red); padding-left: 16px; margin: 14px 0; background: #fffbf5; }
.doc--review .rl-block.act ins { display: block; color: var(--red); }
.doc--review .rl-block.act ins h2 { color: var(--red); border-bottom-color: var(--red-tint); }
/* accepted findings keep tracked-changes visible, tinted resolved */
.doc--review .rl.acc { background: var(--jade-tint); box-shadow: 0 0 0 3px var(--jade-tint); border-radius: 2px; }
.doc--review .rl.acc del { color: var(--ink-faint); text-decoration: line-through; }
.doc--review .rl.acc ins { display: inline; color: var(--jade-deep); border-bottom: 1.5px solid var(--jade); }
.doc--review .rl-block.acc { display: block; border-left: 3px solid var(--jade); padding-left: 16px; margin: 14px 0; background: var(--paper-warm); }
.doc--review .rl-block.acc ins { display: block; color: var(--jade-deep); }
/* final mode (deliver): corrections applied, clean */
.doc--final del { display: none; }
.doc--final ins { display: inline; color: inherit; }
.doc--final .rl-block { display: block; }
.doc--final .rl-block ins { display: block; color: inherit; }

/* intake record sheet (review viewer tab) */
.intake-sheet { font-family: var(--sans); font-size: 14px; }
.intake-sheet .is-head { border-bottom: 2px solid var(--jade-tint-2); padding-bottom: 14px; margin-bottom: 6px; }
.intake-sheet .is-title { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.intake-sheet .is-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.intake-sheet h3 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jade-deep); font-weight: 700; margin: 22px 0 8px;
}
.intake-sheet .is-row {
  display: grid; grid-template-columns: 170px 1fr; gap: 14px;
  padding: 9px 2px; border-bottom: 1px dotted var(--hairline);
}
.intake-sheet .is-k { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; padding-top: 1px; }
.intake-sheet .is-val { display: block; color: var(--jade-deep); font-weight: 700; font-size: 12px; margin-top: 2px; }
.intake-sheet .is-v { font-weight: 600; color: var(--ink); }
.intake-sheet .is-d { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.intake-sheet .is-d em { color: var(--jade-deep); font-style: normal; font-weight: 700; }
.intake-sheet .is-flag {
  display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700;
  color: var(--amber); background: var(--amber-tint); border: 1px solid #ecd9ae;
  border-radius: 999px; padding: 3px 11px; cursor: pointer; transition: all .2s;
}
.intake-sheet .is-flag:hover { border-color: var(--amber); }
.intake-sheet .is-foot { font-size: 12px; color: var(--ink-faint); font-style: italic; margin-top: 18px; }

/* --------------------------------------------------------- 4 · deliver --- */
.deliver-head { text-align: center; max-width: 720px; margin: 10px auto 36px; }
.deliver-head h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-bottom: 8px; }
.deliver-head .sub { color: var(--ink-soft); font-size: 16.5px; }
.deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.seal-card { padding: 30px 34px; text-align: center; grid-column: 1 / -1; position: relative; overflow: hidden; }
.seal-card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--jade-tint-2);
  border-radius: 10px; pointer-events: none;
}
.seal-ring {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px;
  border: 2.5px solid var(--jade-deep); display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--jade-deep); background: var(--jade-tint);
}
.seal-ring svg { width: 40px; height: 40px; }
.seal-card .approved { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--jade-deep); font-weight: 800; }
.seal-card .sig { font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive; font-size: 31px; color: var(--ink); margin: 10px 0 2px; }
.seal-card .firm { font-size: 14px; color: var(--ink-soft); }
.seal-card .sealdate { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.deliver-col h3 {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jade-deep); margin-bottom: 14px; font-weight: 700;
}
.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-item {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px; cursor: pointer; transition: all .2s;
}
.pkg-item:hover { border-color: var(--jade); box-shadow: var(--shadow-lg); }
.pkg-item .pk-check { width: 22px; height: 22px; border-radius: 50%; background: var(--jade); flex: none; position: relative; }
.pkg-item .pk-check::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pkg-item .pk-name { font-weight: 600; font-size: 14.5px; }
.pkg-item .pk-sub { font-size: 12px; color: var(--ink-faint); }
.pkg-item .pk-open { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--jade-deep); }
.action-card { padding: 18px 20px; }
.action-card ol { margin-left: 20px; }
.action-card li { font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); }
.summary-card { padding: 24px 28px; }
.summary-card ul { list-style: none; }
.summary-card li {
  font-size: 14.5px; padding: 10px 0 10px 30px; position: relative;
  border-bottom: 1px solid var(--hairline-2); color: var(--ink-soft);
}
.summary-card li:last-child { border-bottom: none; }
.summary-card li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 11px;
  border: solid var(--jade); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.summary-card li strong { color: var(--ink); }

/* ------------------------------------------------------------ 5 · firm --- */
.firm-wrap { max-width: 880px; margin: 30px auto 0; text-align: center; }
.firm-wrap .kicker { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--jade-deep); font-weight: 800; }
.firm-wrap h2 { font-family: var(--serif); font-size: 38px; font-weight: 600; margin: 12px 0 40px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.pillar { padding: 26px 26px 24px; }
.pillar .p-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--jade-tint);
  color: var(--jade-deep); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pillar .p-ico svg { width: 23px; height: 23px; }
.pillar h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--ink-soft); }
.firm-line { margin: 38px auto 8px; font-family: var(--serif); font-size: 21px; color: var(--ink); max-width: 34ch; }
.firm-sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 34px; }
.firm-cta { display: flex; gap: 14px; justify-content: center; }

/* ------------------------------------------------------------- wizard --- */
.wizard { position: fixed; inset: 0; z-index: 55; display: none; align-items: center; justify-content: center; }
.wizard.open { display: flex; }
.wiz-scrim { position: absolute; inset: 0; background: rgba(28,36,48,.5); backdrop-filter: blur(3px); }
.wiz-panel {
  position: relative;
  width: min(680px, 92vw); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: rise .3s ease both;
}
.wiz-body { min-height: 0; }
.wiz-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 26px 12px; }
.wiz-kicker { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--jade-deep); font-weight: 800; }
.wiz-count { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.wiz-bar { height: 4px; background: var(--hairline-2); margin: 0 26px; border-radius: 999px; overflow: hidden; }
.wiz-bar-fill { height: 100%; background: var(--jade); border-radius: 999px; width: 0; transition: width .35s ease; }
.wiz-body { padding: 22px 26px 8px; overflow-y: auto; overflow-x: hidden; }
.wiz-body h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 6px; }
.wiz-why { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.wiz-field {
  border: 1px solid var(--hairline); border-radius: 11px; background: var(--paper-warm);
  padding: 11px 14px; margin-bottom: 10px; animation: rise .3s ease both;
}
.wiz-field .k { font-size: 12px; color: var(--ink-faint); letter-spacing: .03em; margin-bottom: 2px; }
.wiz-field .v { font-size: 15px; font-weight: 600; }
.wiz-field .sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.wiz-field.gated { border: 1.5px dashed var(--amber); background: var(--amber-tint); }
.wiz-field.gated .v { color: var(--ink-faint); font-weight: 500; font-style: italic; }
.wiz-field.gated.filled { border: 1.5px solid var(--jade); background: var(--jade-tint); }
.wiz-field.gated.filled .v { color: var(--ink); font-weight: 600; font-style: normal; }
.wiz-gate-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink);
  background: var(--amber-tint); border: 1px solid #ecd9ae; border-radius: 10px;
  padding: 11px 14px; margin: 12px 0;
}
.wiz-gate-note .gn-ico { flex: none; font-weight: 800; color: var(--amber); }
.btn-gatefill {
  font-size: 13px; font-weight: 700; color: var(--jade-deep); background: var(--paper);
  border: 1.5px solid var(--jade); border-radius: 8px; padding: 7px 15px; margin-top: 4px; transition: all .2s;
}
.btn-gatefill:hover { background: var(--jade-tint); }
.wiz-smart {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--jade-deep);
  background: var(--jade-tint); border: 1px solid var(--jade-tint-2); border-radius: 10px;
  padding: 11px 14px; margin-top: 12px;
}
.wiz-smart .sm-ico { flex: none; font-weight: 800; }
.wiz-check { list-style: none; margin-top: 4px; }
.wiz-check li {
  font-size: 14px; color: var(--ink-soft); padding: 8px 0 8px 30px; position: relative;
  border-bottom: 1px solid var(--hairline-2);
}
.wiz-check li:last-child { border-bottom: none; }
.wiz-check li::before {
  content: ""; position: absolute; left: 5px; top: 13px; width: 6px; height: 11px;
  border: solid var(--jade); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
/* live-mode asset inventory */
.asset-row {
  border: 1px solid var(--hairline); border-radius: 11px; background: var(--paper-warm);
  padding: 10px 12px; margin-bottom: 10px;
}
.ar-line { display: flex; gap: 8px; }
.ar-line + .ar-line { margin-top: 8px; }
/* .asset-row prefix beats the later `.wiz-input { width:100% }` rule */
.asset-row .wiz-input { width: auto; min-width: 0; padding: 8px 10px; font-size: 13.5px; }
.asset-row .ar-type { flex: 0 0 168px; }
.asset-row .ar-desc { flex: 1 1 0; }
.asset-row .ar-val { flex: 0 0 138px; }
.asset-row .ar-titling, .asset-row .ar-benef { flex: 1 1 0; }
.ar-del {
  flex: none; width: 32px; background: none; border: 1px solid var(--hairline);
  border-radius: 8px; color: var(--ink-faint); font-size: 14px; transition: all .2s;
}
.ar-del:hover { border-color: var(--red); color: var(--red); }
#wiz-insights { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* live-mode inputs + reactions */
.wiz-inrow { margin-bottom: 12px; }
.wiz-inrow label { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; letter-spacing: .03em; margin-bottom: 5px; }
.wiz-inrow label em { color: var(--amber); font-style: normal; }
.wiz-input {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--hairline); border-radius: 10px;
  font-size: 15px; font-family: var(--sans); background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.wiz-input:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-tint); }
.wiz-inrow.narrow .wiz-input { width: 140px; }
.wiz-checkrow { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--ink-soft); margin: 2px 0 12px; cursor: pointer; }
.wiz-checkrow input { width: 16px; height: 16px; accent-color: var(--jade-deep); }
.wiz-react { display: flex; gap: 10px; font-size: 13px; border-radius: 10px; padding: 11px 14px; margin-top: 8px; animation: rise .25s ease both; }
.wiz-react[hidden] { display: none; }
.wiz-react.jade { background: var(--jade-tint); border: 1px solid var(--jade-tint-2); color: var(--jade-deep); }
.wiz-react.amber { background: var(--amber-tint); border: 1px solid #ecd9ae; color: var(--ink); }
.wiz-react.note { background: var(--note-tint); border: 1px solid #dfe4ef; color: var(--note); }

.wiz-foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 26px 20px;
  border-top: 1px solid var(--hairline-2); margin-top: 8px;
}
.wiz-skip { margin-left: auto; background: none; border: none; font-size: 12.5px; color: var(--ink-faint); text-decoration: underline; }
.wiz-skip:hover { color: var(--ink-soft); }

/* ------------------------------------------------------------- modal ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(28,36,48,.5); backdrop-filter: blur(3px); }
.modal-panel {
  position: absolute; inset: 5vh 12vw; background: var(--paper); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: rise .3s ease both;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-bottom: 1px solid var(--hairline);
}
.modal-head .m-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.modal-head .m-sub { font-size: 12.5px; color: var(--ink-faint); }
.modal-close {
  background: none; border: 1px solid var(--hairline); border-radius: 8px;
  width: 34px; height: 34px; font-size: 17px; color: var(--ink-soft);
}
.modal-close:hover { border-color: var(--ink-faint); color: var(--ink); }
.modal-body { overflow-y: auto; padding: 44px 60px; }

/* --------------------------------------------------------- disclaimer --- */
.disclaimer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  text-align: center; font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-faint); background: rgba(250,247,242,.94);
  border-top: 1px solid var(--hairline); padding: 7px 16px;
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .intake-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .viewer { position: static; }
  .viewer-paper { height: 60vh; }
  .deliver-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { display: none; }
  .modal-panel { inset: 3vh 4vw; }
  .modal-body { padding: 28px 22px; }
}
