:root {
  --bg: #0b0d14;
  --surface: #11141c;
  --surface-raised: #1a1e28;
  --text-primary: #eef0f5;
  --text-secondary: #9ba1b0;
  --text-muted: #646a7a;
  --border: rgba(238, 240, 245, 0.08);
  --border-strong: rgba(238, 240, 245, 0.14);
  --accent: #f59e0b;
  --accent-ink: #0b0d14;
  --positive: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
}
.num, table td:not(:first-child), table th:not(:first-child), .stat-value, .calc-output, code {
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms var(--ease), transform 160ms var(--ease);
}
a:hover {
  color: var(--accent);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.skip-link:focus {
  left: 16px;
  z-index: 100;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text-primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.btn-primary:hover {
  color: var(--accent-ink);
  opacity: 0.92;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 400;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-raised);
  color: var(--text-primary);
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--text-primary);
}
.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 58ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.meta-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.meta-item-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
/* Outer frame + inner panel nested border radius: outer 12px, padding 4px, inner 8px */
.workbench-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}
.workbench-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.payid-object {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.payid-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.payid-status {
  color: var(--positive);
}
.payid-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.payid-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.payid-amount {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calc-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}
.calc-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-group label {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}
.control-group input, .control-group select {
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.calc-cell-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.calc-cell-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.calc-cell-val.highlight {
  color: var(--accent);
}
.calc-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 32px;
  max-width: 68ch;
}
h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.24;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text-primary);
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  max-width: 68ch;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
}
.asymmetric-data {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.panel-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.clause-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.clause-item {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.clause-item:first-child {
  border-top: none;
  padding-top: 0;
}
.clause-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.clause-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.clause-limit {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.clause-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th:not(:first-child), td:not(:first-child) {
  text-align: right;
}
th {
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(26, 30, 40, 0.45);
  font-size: 13px;
}
td {
  color: var(--text-secondary);
}
td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}
tr:last-child td {
  border-bottom: none;
}
.two-col-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.callout-ledger {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.callout-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-box {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.conversion-strip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 24px;
  margin: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.conversion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer {
  padding: 48px 0;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 920px) {
  .hero-split, .asymmetric-data, .two-col-editorial, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
