:root {
  --bg: #f2f1ed;
  --surface: #ebeae5;
  --surface-strong: #e1e0db;
  --text: #26251e;
  --muted: rgba(38, 37, 30, 0.65);
  --accent: #f54e00;
  --hover: #cf2d56;
  --ok: #1f8a65;
  --line: rgba(38, 37, 30, 0.12);
  --radius: 10px;
  --shadow: rgba(0, 0, 0, 0.14) 0 28px 70px, rgba(0, 0, 0, 0.1) 0 14px 32px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Instrument Sans", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(245, 78, 0, 0.09), transparent),
    radial-gradient(900px 400px at 90% 10%, rgba(192, 168, 221, 0.2), transparent),
    var(--bg);
  line-height: 1.55;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 241, 237, 0.9);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand strong {
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.btn {
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: color 150ms ease;
}

.btn:hover {
  color: var(--hover);
}

.hero {
  padding: 86px 0 56px;
}

.eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Sans", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.25rem, 6vw, 4.3rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.lead {
  margin-top: 20px;
  max-width: 65ch;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.trust-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
  align-items: start;
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-solid:hover {
  color: #fff;
  border-color: #000;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.section {
  padding: 34px 0 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  font-size: 1.34rem;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.card p {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.feature {
  box-shadow: var(--shadow);
}

.kicker {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mono {
  font-family: "IBM Plex Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}

.price {
  font-size: 2rem;
  color: var(--text);
  margin: 0.2rem 0 1rem;
}

.hero-panel,
.pricing-preview .card,
.listing-preview .card {
  min-height: 100%;
}

.split-benefits,
.listing-preview,
.pricing-preview {
  margin-top: 20px;
}

.trust-note {
  margin-top: 18px;
  color: var(--accent);
}

.trust-aside h2 {
  font-size: 1.8rem;
}

.trust-pillars,
.audience-grid {
  margin-top: 20px;
}

.scorecard-card {
  max-width: 820px;
}

.scorecard-card form {
  margin-top: 18px;
}

.featured {
  outline: 2px solid var(--text);
}

.status {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: var(--ok);
  background: #e7f2ee;
}

.page-title {
  padding: 58px 0 24px;
}

.page-title h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 20ch;
}

.dashboard {
  display: none;
}

.dashboard.show {
  display: block;
}

.dashboard[hidden] {
  display: none;
}

.protocol-demo {
  padding-top: 0;
}

.protocol-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.status-neutral {
  color: var(--text);
  background: var(--surface-strong);
}

.status-warn {
  color: #7a3410;
  background: #fff1e8;
}

.protocol-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.protocol-stepper {
  display: grid;
  gap: 10px;
  align-content: start;
}

.protocol-step {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.protocol-step.is-active,
.protocol-scenarios .btn.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.protocol-code {
  min-height: 220px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171712;
  color: #f7f6f2;
  overflow: auto;
  white-space: pre-wrap;
}

.protocol-state-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}

.protocol-state-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bg);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.45);
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(560px, 96vw);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.filter-bar {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  align-items: start;
}

.detail-meta {
  display: grid;
  gap: 12px;
}

label {
  display: block;
  margin: 8px 0 6px;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f6f2;
  font: inherit;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 26px 0 38px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th,
td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}

.article-shell {
  padding: 78px 0 56px;
}

.article-header {
  max-width: 900px;
}

.article-header h1 {
  max-width: 15ch;
}

.article-attribution {
  margin-top: 14px;
  color: var(--muted);
}

.article-attribution br {
  display: block;
  margin-top: 4px;
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin: 34px 0 12px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.article-table {
  margin: 20px 0 24px;
  overflow-x: auto;
}

.article-table table {
  margin-top: 0;
  background: var(--surface);
}

.article-cta {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

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

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

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

  .protocol-layout {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 50px;
  }

  .article-shell {
    padding-top: 50px;
  }
}
