/* QuorumSlate — Executive Review Board · warm paper boardroom aesthetic */

:root {
  --bg: #FAF7F2;
  --ink: #26211D;
  --primary: #8B5E34;
  --accent: #C7A17A;
  --pass: #2E7D32;
  --pending: #B08900;
  --reject: #B42318;
  --line: #DDD3C5;
  --muted: #6B5E54;
  --bg-soft: #F3EDE4;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --container: min(var(--max), calc(100% - 2 * var(--gutter)));
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(38, 33, 29, 0.06), 0 12px 32px rgba(38, 33, 29, 0.05);
  --shadow-lg: 0 8px 28px rgba(38, 33, 29, 0.1), 0 24px 48px rgba(38, 33, 29, 0.06);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pass-soft: rgba(46, 125, 50, 0.1);
  --pending-soft: rgba(176, 137, 0, 0.12);
  --reject-soft: rgba(180, 35, 24, 0.1);
  --accent-soft: rgba(199, 161, 122, 0.22);
  --primary-soft: rgba(139, 94, 52, 0.1);
  --header-h: 68px;
  --announce-h: 40px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --card-gap: 20px;
  --card-pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(139, 94, 52, 0.025) 0, rgba(139, 94, 52, 0.025) 1px, transparent 1px),
    linear-gradient(transparent 31px, rgba(221, 211, 197, 0.35) 31px, rgba(221, 211, 197, 0.35) 32px, transparent 32px);
  background-size: 48px 100%, 100% 32px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.auth-page {
  background: var(--bg-soft);
  background-image: none;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }

[hidden] { display: none !important; }

h1, h2, h3, h4, .hero-title, .page-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell main { flex: 1; }

/* ── Announcement bar ── */
.announce-bar {
  position: relative;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  min-height: var(--announce-h);
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--ink) 0%, #3D342C 55%, var(--primary) 100%);
  color: rgba(250, 247, 242, 0.92);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid rgba(199, 161, 122, 0.25);
}

.announce-bar span { font-weight: 500; }

.announce-bar a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announce-bar a:hover { color: #E8D4BC; }

/* ── Single header pattern (announce + site-header) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 1px 0 rgba(139, 94, 52, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: var(--ink); opacity: 0.9; text-decoration: none; }

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary) 0%, #6B4524 100%);
  border: 1px solid rgba(199, 161, 122, 0.35);
  box-shadow: 0 2px 6px rgba(38, 33, 29, 0.12);
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text span {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--line);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FAF7F2;
  border-color: #6B4524;
  box-shadow: 0 2px 10px rgba(139, 94, 52, 0.22);
}

.btn-primary:hover {
  background: #6B4524;
  color: #FAF7F2;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: rgba(139, 94, 52, 0.15);
}

.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.text-link:hover { color: var(--ink); }

.text-accent { color: var(--primary); }

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(199, 161, 122, 0.35);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

/* ── Home hero ── */
.home-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, var(--accent-soft), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.home-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-intro {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .hero-title { white-space: nowrap; }
}

.hero-subtitle {
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}

.hero-intro .btn-row {
  justify-content: center;
}

.hero-sheet {
  width: 100%;
  max-width: var(--max);
}

.hero-sheet .review-sheet-hero .sheet-header {
  padding: 26px 32px;
}

.hero-sheet .review-sheet-hero .sheet-meta-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 24px;
}

.hero-sheet .review-sheet-hero .sheet-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-sheet .review-sheet-hero .sheet-col {
  padding: 26px 28px;
}

.hero-sheet .review-sheet-hero .sheet-field + .sheet-field {
  margin-top: 18px;
}

.hero-sheet .review-sheet-hero .sheet-field p,
.hero-sheet .review-sheet-hero .ui-list {
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ── Review sheet (board packet) ── */
.review-sheet {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sheet-header {
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--line);
}

.sheet-title-block h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.sheet-id {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.sheet-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sheet-meta-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-meta-grid > div > span:first-child {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-meta-grid strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.sheet-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sheet-col {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.sheet-col:last-child { border-right: 0; }

.sheet-col h3 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.sheet-col-ai {
  background: linear-gradient(180deg, rgba(199, 161, 122, 0.06) 0%, var(--bg) 100%);
}

.sheet-col-committee {
  background: var(--bg-soft);
}

.sheet-field + .sheet-field { margin-top: 14px; }

.sheet-field p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pass, .status-badge.status-pass {
  background: var(--pass-soft);
  color: var(--pass);
  border-color: rgba(46, 125, 50, 0.25);
}

.status-pending, .status-badge.status-pending {
  background: var(--pending-soft);
  color: var(--pending);
  border-color: rgba(176, 137, 0, 0.28);
}

.status-reject, .status-badge.status-reject {
  background: var(--reject-soft);
  color: var(--reject);
  border-color: rgba(180, 35, 24, 0.25);
}

.vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
}

.vote-yes { color: var(--pass); border-color: rgba(46, 125, 50, 0.25); background: var(--pass-soft); }
.vote-cond { color: var(--pending); border-color: rgba(176, 137, 0, 0.28); background: var(--pending-soft); }
.vote-pending { color: var(--muted); }

/* ── Progress track ── */
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── UI panel library ── */
.ui-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ui-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.ui-panel-body { padding: 18px 20px; }

.ui-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid rgba(199, 161, 122, 0.35);
  white-space: nowrap;
}

.ui-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-list, .ui-steps, .brief-bullets, .brief-findings {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.ui-list li, .ui-steps li, .brief-bullets li, .brief-findings li { margin-bottom: 5px; }

.ui-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.88rem;
  margin-top: 16px;
}

.ui-alert strong { color: var(--ink); }

.ui-alert-ok {
  border-color: rgba(46, 125, 50, 0.28);
  background: var(--pass-soft);
  color: var(--pass);
}

.ui-alert-warn {
  border-color: rgba(176, 137, 0, 0.28);
  background: var(--pending-soft);
  color: var(--pending);
}

.ui-alert-info {
  border-color: rgba(139, 94, 52, 0.22);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ── Triptych mock ── */
.triptych-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.mini-proposal-list { display: grid; gap: 10px; }

.proposal-row {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-type {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.proposal-row strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.proposal-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.intel-layer { display: grid; gap: 0; }

.intel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.intel-row:last-child { border-bottom: 0; }
.intel-row span { color: var(--muted); }
.intel-row strong { color: var(--ink); text-align: right; font-size: 0.82rem; }

.brief-preview, .brief-doc { display: grid; gap: 14px; }

.brief-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
}

.brief-bullets { margin-top: 0; }
.brief-footer { margin: 0; }

.brief-field + .brief-field {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.board-doc {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Approval flow ── */
.approval-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-step > div { min-width: 0; }

.flow-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #FAF7F2;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.flow-step strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.flow-step p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.flow-arrow { display: none; }

/* ── Review workspace ── */
.review-workspace {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workspace-col { min-width: 0; }

.proposal-detail, .ai-insights, .review-status { display: grid; gap: 0; }

.comment-row {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.comment-row strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.comment-row p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Risk matrix & items ── */
.risk-layout {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 20px;
  align-items: start;
}

.risk-sources, .risk-levels { display: grid; gap: 8px; }

.risk-source-list, .risk-level-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.risk-source-list li, .risk-level-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.risk-source-list li:last-child, .risk-level-list li:last-child { border-bottom: 0; }

.risk-level-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-matrix-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.risk-matrix-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.risk-dot.risk-high { background: var(--reject); }
.risk-dot.risk-med { background: var(--pending); }
.risk-dot.risk-low { background: var(--pass); }

.risk-item-list { display: grid; gap: 12px; }

.risk-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.risk-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: var(--bg-soft);
  cursor: pointer;
  text-align: left;
}

.risk-item-toggle strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.risk-item-level {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--pending-soft);
  color: var(--pending);
}

.risk-item-medium .risk-item-level {
  background: var(--pending-soft);
  color: var(--pending);
}

.risk-item-high .risk-item-level {
  background: var(--reject-soft);
  color: var(--reject);
}

.risk-item-low .risk-item-level {
  background: var(--pass-soft);
  color: var(--pass);
}

.risk-item-desc {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.risk-item-evidence {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.84rem;
}

.risk-item-evidence p { margin: 6px 0 0; color: var(--muted); }

/* ── Compare table ── */
.compare-table { font-size: 0.86rem; }

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.ui-table th,
.ui-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.ui-table th {
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-table tr:last-child td { border-bottom: 0; }

.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.pricing-compare-table { margin-top: 8px; }

/* ── Recommendation doc ── */
.recommendation-doc { display: grid; gap: 0; }

.rec-verdict {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

/* ── Discussion timeline ── */
.discussion-timeline {
  display: grid;
  gap: 12px;
}

.discussion-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  border-left-width: 4px;
}

.discussion-source {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.discussion-kind {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.discussion-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
}

.discussion-supporting {
  border-left-color: var(--pass);
  background: linear-gradient(90deg, var(--pass-soft), var(--bg) 40%);
}

.discussion-supporting .discussion-kind {
  background: var(--pass-soft);
  color: var(--pass);
}

.discussion-opposing {
  border-left-color: var(--reject);
  background: linear-gradient(90deg, var(--reject-soft), var(--bg) 40%);
}

.discussion-opposing .discussion-kind {
  background: var(--reject-soft);
  color: var(--reject);
}

.discussion-key-issue {
  border-left-color: var(--pending);
  background: linear-gradient(90deg, var(--pending-soft), var(--bg) 40%);
}

.discussion-key-issue .discussion-kind {
  background: var(--pending-soft);
  color: var(--pending);
}

.discussion-conclusion {
  border-left-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-soft), var(--bg) 40%);
}

.discussion-conclusion .discussion-kind {
  background: var(--accent-soft);
  color: var(--primary);
}

/* ── Team scenario grid ── */
.team-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--card-gap);
}

.team-scenario {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-scenario:hover {
  border-color: rgba(139, 94, 52, 0.3);
  box-shadow: var(--shadow);
}

.team-scenario h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.team-scenario p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.scenario-signal {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid rgba(199, 161, 122, 0.3);
}

/* ── Integration & control grids ── */
.int-grid, .control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.int-card, .control-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.int-card h4, .control-card h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.int-read, .int-write {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.int-read span, .int-write span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-right: 6px;
}

.int-card .btn { margin-top: 12px; }

.control-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Page hero & showcase ── */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 45% at 20% 0%, var(--accent-soft), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-compact { padding: 44px 0 36px; }

.page-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span:last-child { color: var(--ink); }

.page-showcase {
  padding: 48px 0;
  background: var(--bg);
}

.page-showcase .container {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.feature-frame {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-showcase .container > .feature-frame,
.page-showcase .container > [data-proposal-demo] > .feature-frame,
.page-showcase .container > [data-risk-demo] > .feature-frame,
.page-showcase .container > [data-brief-demo] > .feature-frame,
.page-showcase .container > [data-compare-demo] > .feature-frame,
.page-showcase .container > [data-recommendation-demo] > .feature-frame,
.page-showcase .container > [data-discussion-demo] > .feature-frame,
.page-showcase .container > [data-archive-demo] > .feature-frame {
  margin-top: 0;
}

.section, .page-body, .is-alt { padding: 56px 0; }
.section.alt, .is-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.page-showcase + .is-alt { border-top: 0; }

.is-alt .section-inline-title { margin-bottom: 28px; }

.is-alt + .section.alt.tight { padding-top: 48px; }

.section.tight, .section.alt.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-inline-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.section-sub {
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-cta-link {
  text-align: center;
  margin: 20px 0 0;
}

/* ── Pain list ── */
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.pain-item {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.pain-item:nth-child(2n) { border-right: 0; }
.pain-item:nth-last-child(-n+2) { border-bottom: 0; }

.pain-item h3 {
  margin: 6px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.pain-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bento:hover {
  border-color: rgba(139, 94, 52, 0.3);
  box-shadow: var(--shadow);
}

.bento.large { grid-column: span 3; }
.bento.small { grid-column: span 2; }

.bento h3 {
  margin: 8px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.bento p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Dept grid ── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.dept-card {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.dept-card:hover {
  border-color: rgba(139, 94, 52, 0.3);
  transform: translateY(-2px);
}

.dept-card h3 {
  margin: 8px 0 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.dept-card p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan-card.is-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.plan-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(199, 161, 122, 0.35);
}

.plan-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-card > p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.plan-price {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1;
}

.plan-price span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-features li {
  padding-left: 18px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pass);
  font-weight: 700;
  font-size: 0.78rem;
}

.plan-card .btn { margin-top: auto; }

/* ── Sub CTA ── */
.sub-cta, .home-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding: 36px 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sub-cta h3, .home-cta h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
}

.sub-cta p, .home-cta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 60%);
  border-color: rgba(139, 94, 52, 0.2);
}

.home-cta .btn-row {
  margin-top: 0;
  justify-content: center;
}

/* ── Use rows, gov grid, integrations ── */
.use-rows { display: grid; gap: 10px; }

.use-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.use-row:hover { border-color: rgba(139, 94, 52, 0.28); }

.use-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.use-row h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.use-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gov-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.gov-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.gov-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.integration-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 20px 0 32px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.integration-strip span {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.integration-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.int-chip {
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

/* ── Review timeline ── */
.review-timeline {
  display: grid;
  gap: 0;
  max-width: 680px;
  position: relative;
}

.review-timeline::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--line));
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.tl-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  padding-top: 2px;
}

.timeline-item strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Search & archive ── */
.search-form { display: grid; gap: 16px; }

.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.search-results { display: grid; gap: 10px; margin-top: 20px; }

.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-result-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.search-result-row p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-outcome {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--pending-soft);
  color: var(--pending);
  white-space: nowrap;
}

.search-outcome.outcome-pass {
  background: var(--pass-soft);
  color: var(--pass);
}

.search-outcome.outcome-reject {
  background: var(--reject-soft);
  color: var(--reject);
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.archive-tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.archive-tab:hover { border-color: var(--primary); color: var(--primary); }

.archive-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FAF7F2;
}

.archive-list { display: grid; gap: 10px; }

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.archive-row p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.spec-callout {
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.spec-callout strong { color: var(--primary); }

/* ── Auth shell (split layout) ── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  padding: 48px;
  background: linear-gradient(155deg, var(--ink) 0%, #3D342C 45%, var(--primary) 100%);
  color: #FAF7F2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(199, 161, 122, 0.2), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(139, 94, 52, 0.15), transparent 40%);
  pointer-events: none;
}

.auth-visual > * { position: relative; z-index: 1; }

.auth-visual h1 {
  margin: 32px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #FAF7F2;
}

.auth-visual p {
  margin: 0;
  color: rgba(250, 247, 242, 0.75);
  max-width: 380px;
  line-height: 1.65;
}

.auth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.auth-stat {
  padding: 18px;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(199, 161, 122, 0.2);
  border-radius: var(--radius-lg);
}

.auth-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
}

.auth-stat span {
  display: block;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.6);
  margin-top: 4px;
}

.auth-visual-foot {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.45);
}

.auth-top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 247, 242, 0.9);
  text-decoration: none;
}

.auth-top-link .brand-text strong { color: #FAF7F2; }
.auth-top-link:hover { color: #FAF7F2; }

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}

.auth-form-wrap {
  width: min(100%, 400px);
}

.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  color: var(--ink);
}

.auth-form-wrap .lead { margin-bottom: 28px; font-size: 0.92rem; }

.auth-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── Forms ── */
.form, .site-modal-form { display: grid; gap: 16px; }

.form-group, .form-field {
  display: grid;
  gap: 6px;
}

.form-group label, .form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--line);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--pass-soft);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: var(--pass);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ── Modals ── */
body.modal-open { overflow: hidden; }

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-modal:not([hidden]) { display: flex; }

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 33, 29, 0.55);
  backdrop-filter: blur(4px);
}

.site-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.site-modal-wide { width: min(720px, 100%); }

.site-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.site-modal h2 {
  margin: 0 32px 8px 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.site-modal-lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.demo-flow {
  display: grid;
  gap: 10px;
}

.demo-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.demo-step.is-active {
  opacity: 1;
  border-color: rgba(139, 94, 52, 0.35);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.demo-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FAF7F2;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.demo-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Footer (multi-column) ── */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.72);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-wrap { display: flex; flex-direction: column; }

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  margin-bottom: 40px;
}

.footer-top .brand-text strong { color: #FAF7F2; }
.footer-top .brand-text span { color: rgba(250, 247, 242, 0.5); }

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.62);
  max-width: 520px;
}

.footer-cta { flex-shrink: 0; white-space: nowrap; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
  margin-bottom: 40px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.55);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
}

.footer-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(250, 247, 242, 0.45);
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.5);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: 960px ── */
@media (max-width: 960px) {
  .announce-bar { font-size: 0.8rem; padding: 10px 14px; }

  .header-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    min-height: auto;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .home-hero .container { gap: 36px; }

  .hero-sheet .review-sheet-hero .sheet-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title { white-space: normal; }

  .sheet-columns { grid-template-columns: 1fr; }
  .sheet-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-col:last-child { border-bottom: 0; }

  .review-workspace { grid-template-columns: 1fr; }
  .triptych-mock { grid-template-columns: 1fr; }

  .risk-layout { grid-template-columns: 1fr; }
  .risk-matrix-wrap { order: -1; }

  .approval-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pain-list { grid-template-columns: 1fr; }
  .pain-item { border-right: 0 !important; }
  .pain-item:last-child { border-bottom: 0; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento.large, .bento.small { grid-column: span 1; }

  .pricing-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }

  .approval-flow { grid-template-columns: 1fr; }

  .sub-cta, .home-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sub-cta .btn-row, .home-cta .btn-row { justify-content: center; }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { padding: 32px; min-height: auto; }
  .auth-stats { grid-template-columns: 1fr 1fr; }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline { max-width: none; }
  .footer-cta { justify-self: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .search-filters { grid-template-columns: 1fr 1fr; }
  .archive-row { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive: 900px ── */
@media (max-width: 900px) {
  .header-actions .nav-link { display: none; }

  .nav-main {
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-main::-webkit-scrollbar { display: none; }

  .page-hero { padding: 40px 0 32px; }
  .section, .page-body, .page-showcase, .is-alt { padding: 40px 0; }

  .sheet-meta-grid { grid-template-columns: 1fr 1fr; }
  .team-scenario-grid { grid-template-columns: 1fr; }
  .int-grid, .control-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }

  .use-row { grid-template-columns: 44px 1fr; padding: 16px 18px; }

  .compare-table { display: block; overflow-x: auto; }
  .ui-table { min-width: 520px; }

  .search-filters { grid-template-columns: 1fr; }
  .search-result-row { flex-direction: column; align-items: flex-start; }

  .timeline-item { grid-template-columns: 80px 1fr; }
  .review-timeline::before { left: 40px; }

  .feature-frame { padding: 16px; }
  .site-modal-panel { padding: 24px 20px; }
  .about-charter { grid-template-columns: 1fr; }
  .review-flowchart { grid-template-columns: 1fr; }
  .flowchart-connector { width: 2px; height: 24px; margin: 0 auto; }
}

/* ── Page extensions (audit pass) ── */
.use-case-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.use-case-list li {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
}
.use-case-list strong { color: var(--ink); }

.rec-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rec-type-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.rec-type-card p { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.review-flowchart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: stretch;
}
.flowchart-node {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.flowchart-node span {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.flowchart-node p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.flowchart-node.flow-core {
  background: linear-gradient(180deg, rgba(139, 94, 52, 0.08), var(--bg));
  border-color: rgba(139, 94, 52, 0.35);
}
.flowchart-connector {
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--accent), var(--line));
}

.budget-workflow, .sync-explainer { display: grid; gap: 12px; }
.budget-step, .sync-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.budget-step span, .sync-step span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}
.budget-step strong, .sync-step strong { display: block; color: var(--ink); margin-bottom: 4px; }
.budget-step p, .sync-step p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.fin-risk-grid, .case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.case-lead { margin: 0 0 16px; font-size: 0.92rem; line-height: 1.6; }
.roi-analysis { display: grid; gap: 10px; }
.roi-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.roi-row span { color: var(--muted); }
.roi-row strong { color: var(--ink); text-align: right; }

.transparency-panel {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.transparency-panel h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.35rem;
}
.transparency-panel p { color: var(--muted); line-height: 1.65; }
.transparency-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.search-wide { grid-column: 1 / -1; }
.result-summary { font-size: 0.86rem; color: var(--ink); margin: 4px 0; }
.result-meta { font-size: 0.78rem; color: var(--muted); margin: 0; }
.archive-record-note { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.archive-detail { margin-top: 16px; }

.about-charter {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}
.charter-article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.charter-article:last-child { border-bottom: 0; }
.charter-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.charter-article h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
}
.charter-article p, .charter-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}
.charter-list { padding-left: 18px; }
.charter-aside { display: grid; gap: 14px; position: sticky; top: 88px; }
.charter-panel {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.charter-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(139, 94, 52, 0.06), var(--bg));
  border: 1px solid rgba(139, 94, 52, 0.2);
  border-radius: var(--radius);
}
.charter-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--primary);
}
.charter-stats span { font-size: 0.72rem; color: var(--muted); }
.about-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-cta-band h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}
.about-cta-band p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .rec-type-grid, .fin-risk-grid, .case-grid, .charter-stats { grid-template-columns: 1fr; }
  .review-flowchart { grid-template-columns: 1fr; }
  .flowchart-connector { width: 2px; height: 24px; margin: 0 auto; }
  .about-charter { grid-template-columns: 1fr; }
}
