:root {
  --paper: #f4f6f3;
  --paper-2: #fffdf8;
  --paper-3: #e7ece5;
  --ink: #161712;
  --ink-soft: #4f564e;
  --muted: #7a8176;
  --line: #d3d9cf;
  --line-strong: #9ca79a;
  --verified: #1f7a4f;
  --verified-soft: #dceee4;
  --caution: #b66a1c;
  --caution-soft: #f5e5cf;
  --risk: #b4443d;
  --risk-soft: #f1d8d3;
  --signal: #00a7a5;
  --signal-soft: #d7f2ef;
  --radius: 8px;
  --radius-sm: 5px;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(22, 23, 18, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body {
  min-width: 0;
  margin: 0;
  font-family: Aptos, "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 167, 165, 0.13), transparent 24rem),
    linear-gradient(180deg, #f8faf6 0%, var(--paper) 42%, #eef2ea 100%);
}

a {
  color: inherit;
  text-decoration-color: rgba(0, 167, 165, 0.58);
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(211, 217, 207, 0.9);
  background: rgba(244, 246, 243, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--paper-2), var(--verified-soft));
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  font-size: 14px;
  line-height: 1.1;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 42px;
  align-items: center;
}

.page-hero {
  padding: 54px 0 28px;
  max-width: 820px;
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  line-height: 1;
  white-space: nowrap;
}

.eyebrow {
  gap: 8px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.78);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(0, 167, 165, 0.14);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 22px;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
}

h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 650;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.hero-copy,
.lede {
  margin-top: 20px;
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.lede {
  font-size: 17px;
}

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

.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 10px 24px rgba(22, 23, 18, 0.17);
}

.button.pending,
.button[aria-disabled="true"] {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--paper-3);
  cursor: not-allowed;
  box-shadow: none;
}

.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head p {
  max-width: 620px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.card,
.deal-card,
.desk-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.card,
.deal-card,
.form-panel {
  padding: 20px;
}

.desk-panel {
  overflow: hidden;
}

.panel-head {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  color: var(--muted);
  font-size: 11px;
}

.panel-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.tool-name {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.micro,
.field-label {
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.chip {
  min-height: 28px;
  gap: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

.chip.verified {
  color: var(--verified);
  background: var(--verified-soft);
}

.chip.watch {
  color: var(--caution);
  background: var(--caution-soft);
}

.chip.risk {
  color: var(--risk);
  background: var(--risk-soft);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric,
.field {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fbfcf8;
}

.metric span,
.field span {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  font-size: 11px;
}

.metric strong,
.field strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.28;
}

.source-ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fbfcf8;
}

.ledger-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.ledger-row:first-child {
  border-top: 0;
}

.ledger-row span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, monospace;
  font-size: 11px;
}

.ledger-row strong,
.ledger-row a {
  overflow-wrap: anywhere;
}

.risk-note {
  border: 1px solid var(--risk);
  border-radius: var(--radius);
  background: var(--risk-soft);
  padding: 16px;
}

.risk-note h3 {
  color: var(--risk);
  margin-bottom: 8px;
}

.risk-note p,
.card p,
.deal-card p,
.form-panel p,
.disclosure p,
li {
  color: var(--ink-soft);
  line-height: 1.55;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.deal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  box-shadow: none;
}

.deal-card h3 {
  margin-bottom: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 7px;
}

label {
  color: var(--ink-soft);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fbfcf8;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note,
.confirmation {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.confirmation {
  min-height: 20px;
  color: var(--verified);
  font-weight: 700;
}

.disclosure {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .shell,
  .nav {
    width: min(var(--max), calc(100% - 22px));
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy,
  .lede {
    font-size: 16px;
  }

  .metric-grid,
  .field-grid,
  .deal-card {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
