/* Verdict — global stylesheet
   Brand: legal paper + seal red + ledger green + brass.
*/

@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #f8f6f1;
  --paper-2: #ecebe5;
  --paper-3: #e1dfd6;
  --ink: #1a1816;
  --ink-2: #46443e;
  --ink-3: #76746c;
  --seal: #9a2a2a;
  --seal-deep: #6b1818;
  --seal-soft: #b85454;
  --seal-tint: #f5e8e8;
  --ledger: #2c5f3e;
  --ledger-soft: #4a8862;
  --ledger-tint: #e6efe9;
  --amber: #c98a0e;
  --amber-tint: #faf1de;
  --brass: #9c7a3f;
  --brass-soft: #b89859;
  --line: rgba(26, 24, 22, 0.10);
  --line-strong: rgba(26, 24, 22, 0.18);
  --shadow-1: 0 1px 2px rgba(26, 24, 22, 0.04), 0 2px 8px rgba(26, 24, 22, 0.04);
  --shadow-2: 0 2px 4px rgba(26, 24, 22, 0.05), 0 8px 24px rgba(26, 24, 22, 0.07);
  --shadow-3: 0 6px 14px rgba(26, 24, 22, 0.08), 0 24px 48px rgba(26, 24, 22, 0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --serif: "Cardo", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --max: 1180px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* subtle paper grain via gradient */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(156, 122, 63, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(154, 42, 42, 0.03) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* TYPE */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.012em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }
p { margin: 0; }
a { color: var(--seal); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--seal-deep); }
small { font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.serif { font-family: var(--serif); }
em.serif-em { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

::selection { background: var(--seal-tint); color: var(--seal-deep); }

/* LAYOUT */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark:hover { color: var(--ink); }
.brand-mark svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 140ms ease;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--seal);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 2px 6px rgba(154,42,42,0.20);
}
.btn-primary:hover { background: var(--seal-deep); color: var(--paper); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px rgba(107,24,24,0.30); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-lg { padding: 18px 32px; font-size: 17px; min-height: 56px; }
.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }

/* CHIPS / TAGS */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.chip-paper { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip-seal { background: var(--seal-tint); color: var(--seal-deep); }
.chip-ledger { background: var(--ledger-tint); color: var(--ledger); }
.chip-amber { background: var(--amber-tint); color: #8a5e00; }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* HERO */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(156, 122, 63, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero-sub {
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-3);
  align-items: center;
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }

/* DROPZONE */
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 56px 32px;
  text-align: center;
  transition: all 180ms ease;
  cursor: pointer;
  position: relative;
  display: block;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--seal);
  background: var(--seal-tint);
  transform: translateY(-1px);
}
.dropzone.dragover { box-shadow: 0 0 0 4px rgba(154,42,42,0.10); }
.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border-radius: 50%;
  color: var(--seal);
}
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone-title { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.dropzone-sub { color: var(--ink-2); font-size: 15px; }
.dropzone-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.dropzone input[type="file"] { display: none; }

/* CARDS */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: all 180ms ease;
}
.card-elev:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* HOW IT WORKS */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--seal);
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--ink-2); }

/* FEATURE CARDS */
.feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--seal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seal);
  margin-bottom: 18px;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 15px; }

/* PRICING */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--seal);
  box-shadow: 0 0 0 4px rgba(154,42,42,0.08);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--seal);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-tier {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}
.price-amount small { font-size: 16px; color: var(--ink-3); font-weight: 400; font-family: var(--sans); }
.price-tag { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-list li { padding: 8px 0 8px 24px; position: relative; font-size: 15px; color: var(--ink-2); }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ledger);
  border-bottom: 2px solid var(--ledger);
  transform: rotate(-45deg);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 28px;
  color: var(--seal);
  font-weight: 400;
  transition: transform 180ms;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-2); padding-top: 12px; line-height: 1.6; }

/* FOOTER */
footer.foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.foot a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

/* REPORT VIEW (the signature interaction) */
.report-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.report-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248,246,241,0.92);
}
.report-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.report-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-title-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  font-family: var(--mono);
}
.report-actions { display: flex; gap: 8px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: calc(100vh - 80px);
}
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .pane-source { border-right: none !important; border-bottom: 1px solid var(--line); }
  .split-tabs { display: flex !important; }
}
.pane {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
@media (max-width: 980px) {
  .pane { max-height: none; }
  .pane.hidden-mobile { display: none; }
}
.pane-source {
  background: var(--paper);
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.pane-findings {
  background: var(--paper-2);
}

.split-tabs {
  display: none;
  position: sticky;
  top: 80px;
  z-index: 5;
  background: rgba(248,246,241,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  gap: 6px;
}
.split-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 44px;
}
.split-tab.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.contract-clause {
  display: block;
  padding: 6px 8px;
  margin: 2px -8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms ease;
}
.contract-clause:hover { background: var(--paper-2); }
.contract-clause.flagged-red { background: rgba(154,42,42,0.06); border-left: 3px solid var(--seal); padding-left: 10px; margin-left: -11px; }
.contract-clause.flagged-amber { background: rgba(201,138,14,0.06); border-left: 3px solid var(--amber); padding-left: 10px; margin-left: -11px; }
.contract-clause.flagged-green { background: rgba(44,95,62,0.05); border-left: 3px solid var(--ledger); padding-left: 10px; margin-left: -11px; }
.contract-clause.active {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
  background: var(--seal-tint);
}
.contract-clause-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-right: 8px;
  font-weight: 500;
}

.contract-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  margin: 22px 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.contract-h:first-child { margin-top: 0; }

/* FINDINGS */
.summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}
.summary-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.summary-card p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.section-h {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 28px 0 12px;
}
.section-h:first-child { margin-top: 0; }

.flag {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 140ms ease;
  border-left: 4px solid var(--ink-3);
}
.flag:hover { box-shadow: var(--shadow-1); transform: translateX(2px); }
.flag.flag-red { border-left-color: var(--seal); }
.flag.flag-amber { border-left-color: var(--amber); }
.flag.flag-green { border-left-color: var(--ledger); }
.flag.active { box-shadow: 0 0 0 2px var(--seal); transform: translateX(2px); }
.flag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.flag-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); flex: 1; }
.flag-sev {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.flag-sev.sev-red { background: var(--seal-tint); color: var(--seal-deep); }
.flag-sev.sev-amber { background: var(--amber-tint); color: #8a5e00; }
.flag-sev.sev-green { background: var(--ledger-tint); color: var(--ledger); }
.flag-clause { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.flag-body { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.redline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.redline-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.redline-clause {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.redline-rationale { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
.redline-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) { .redline-pair { grid-template-columns: 1fr; } }
.redline-block {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 14px;
  position: relative;
}
.redline-block.before {
  background: rgba(154,42,42,0.06);
  border-left: 3px solid var(--seal);
}
.redline-block.after {
  background: rgba(44,95,62,0.06);
  border-left: 3px solid var(--ledger);
}
.redline-block-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.redline-block.before .redline-block-label { color: var(--seal-deep); }
.redline-block.after .redline-block-label { color: var(--ledger); }
.redline-block-text {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 120ms;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.copied { background: var(--ledger); color: white; border-color: var(--ledger); }

.tip {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.tip:last-child { border-bottom: none; }
.tip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
}
.tip-body { color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.tip-body strong { color: var(--ink); }

.cost-box {
  margin-top: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cost-box-label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}
.cost-box-value {
  font-family: var(--serif);
  font-weight: 700;
}
.cost-box-value.crossed { color: var(--ink-3); text-decoration: line-through; font-size: 18px; }
.cost-box-value.live { color: var(--ledger); font-size: 22px; }

.disclaimer {
  margin-top: 32px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.disclaimer strong { color: var(--ink-2); }

/* DEMO INDEX */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.demo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 180ms ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--line-strong);
  color: inherit;
}
.demo-card-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.demo-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.demo-card p { color: var(--ink-2); font-size: 14px; flex: 1; line-height: 1.55; }
.demo-card-flags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.demo-card-stamp {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  opacity: 0.10;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.demo-card:hover .demo-card-stamp { opacity: 0.18; }

/* LIBRARY */
.lib-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 140ms;
}
.lib-row:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
  color: inherit;
  box-shadow: var(--shadow-1);
}
.lib-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.lib-row-title { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); }

/* FORM (review.html) */
.form-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 44px;
}
.tab-btn.active { color: var(--seal); border-bottom-color: var(--seal); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  min-height: 240px;
}
textarea:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px rgba(154,42,42,0.10); }
input[type="text"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
input[type="text"]:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px rgba(154,42,42,0.10); }
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* LOADING */
.thinking {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  gap: 18px;
  text-align: center;
}
.thinking-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--paper-2);
  border-top-color: var(--seal);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.thinking-status {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.thinking-step {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 220ms ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--shadow-3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MISC */
.divider-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  gap: 14px;
  color: var(--ink-3);
}
.divider-orn::before, .divider-orn::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
  max-width: 120px;
}
.divider-orn-mark {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brass);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 16px;
  display: inline-block;
}

.center { text-align: center; }
.muted { color: var(--ink-3); }

/* hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
}

/* mobile spacing tweaks */
@media (max-width: 720px) {
  .hero { padding: 80px 0 48px; }
  .step { gap: 16px; padding: 18px 0; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }
  .form-block { padding: 22px 18px; }
  .pane { padding: 22px 18px; }
  .summary-card { padding: 18px 20px; }
  .summary-card p { font-size: 16px; }
  .flag { padding: 14px 16px; }
  .redline { padding: 14px 16px; }
}
