/* Page-specific styles: APIs, Compliance, Pricing */

/* ---------- Page hero (smaller than homepage) ---------- */
.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 20px; display: inline-block; }
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 900px;
  text-wrap: balance;
}
.page-hero .lead { font-size: 20px; max-width: 680px; }
.page-hero .hero-cta { margin-top: 36px; }

/* ---------- APIs page ---------- */
.api-block {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px;
  align-items: start;
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.api-block:first-of-type { border-top: none; }
.api-block .api-meta .eyebrow { margin-bottom: 18px; display: inline-block; }
.api-block h3 {
  font-size: 30px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 600; margin: 0 0 18px;
  text-wrap: balance;
}
.api-block p { color: var(--text-2); font-size: 16.5px; line-height: 1.6; margin: 0 0 24px; max-width: 440px; }
.api-block .who {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-2);
}
.api-block .who b { color: var(--text); font-weight: 600; display: block; margin-bottom: 6px; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }

.api-stack { display: flex; flex-direction: column; gap: 18px; }

/* Endpoint chip */
.endpoint {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
}
.endpoint .verb {
  background: var(--bg-well);
  color: var(--accent-ink);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.endpoint .path { color: var(--text); overflow-x: auto; white-space: nowrap; }

/* Benefit grid */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 48px;
}
.benefit {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.benefit h4 { font-size: 16px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.benefit p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }
.benefit .num { font-family: var(--ff-mono); font-size: 11px; color: var(--accent-ink); letter-spacing: 0.06em; margin-bottom: 14px; }

/* ---------- Compliance page ---------- */
.comp-who {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  padding: 88px 0;
}
.comp-who h2 { margin-bottom: 16px; }
.comp-who .lead { max-width: 520px; }
.comp-who-list { display: flex; flex-direction: column; gap: 14px; }
.comp-who-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  font-size: 14.5px;
  color: var(--text);
}
.comp-who-item .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-well);
  color: var(--teal);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Capability cards */
.comp-cap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 48px;
}
.comp-cap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.comp-cap .label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.comp-cap h3 { font-size: 22px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.015em; }
.comp-cap p { font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* Dashboard mock */
.dashboard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 60px -44px rgba(20, 20, 18, 0.16);
}
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2);
}
.dash-top .path { font-family: var(--ff-mono); color: var(--text); font-size: 12.5px; }
.dash-top .status { display: inline-flex; gap: 8px; align-items: center; font-family: var(--ff-mono); font-size: 11.5px; color: var(--teal); }
.dash-top .status .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.dash-body { padding: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.dash-kpi { padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.dash-kpi .k { font-size: 11px; color: var(--text-3); font-family: var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-kpi .v { font-family: var(--ff-mono); font-size: 24px; font-weight: 500; margin-top: 6px; letter-spacing: -0.02em; }
.dash-kpi .delta { font-size: 11.5px; color: var(--teal); margin-top: 4px; font-family: var(--ff-mono); }
.dash-kpi .delta.warn { color: var(--accent-ink); }

.dash-chart {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; height: 100%;
  min-height: 220px;
}
.dash-chart .head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.dash-chart .head b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.dash-chart svg { display: block; width: 100%; height: 160px; }

.dash-table { padding: 20px; border-top: 1px solid var(--border); }
.dash-table h5 { font-family: var(--ff-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; font-weight: 500; }
.dash-row {
  display: grid; grid-template-columns: 110px 1fr 90px 90px 24px;
  gap: 16px; align-items: center;
  font-size: 12.5px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
}
.dash-row:first-of-type { border-top: none; }
.dash-row .time { color: var(--text-3); }
.dash-row .desc { color: var(--text); font-family: var(--ff-sans); font-size: 13.5px; }
.dash-row .amt { color: var(--text); text-align: right; }
.dash-row .flag.sanc { color: var(--accent-ink); font-weight: 600; font-size: 10.5px; letter-spacing: 0.06em; }
.dash-row .flag.ok { color: var(--teal); font-size: 10.5px; letter-spacing: 0.06em; }

/* How it works — 3 steps */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.step {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step .n { font-family: var(--ff-mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.08em; }
.step h4 { font-size: 20px; margin: 14px 0 12px; font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Differentiators */
.differs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.differ .eyebrow { margin-bottom: 14px; display: inline-block; }
.differ h4 { font-size: 18px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.differ p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-intro { text-align: center; max-width: 720px; margin: 0 auto; }
.pricing-intro h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.04; margin: 0 0 20px; }
.pricing-intro .lead { margin: 0 auto; }

.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  margin-top: 72px;
}
.tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { border-color: var(--accent); }
.tier .flag {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.tier h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.tier .sub { font-size: 13.5px; color: var(--text-2); min-height: 40px; margin-bottom: 20px; line-height: 1.45; }
.tier .price {
  font-family: var(--ff-mono);
  font-size: 32px; letter-spacing: -0.02em; font-weight: 500;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tier .price .per { font-size: 12.5px; color: var(--text-3); display: block; margin-top: 4px; font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.tier li { font-size: 14px; color: var(--text-2); line-height: 1.5; position: relative; padding-left: 20px; }
.tier li::before { content: "•"; position: absolute; left: 4px; color: var(--text-3); }
.tier li b { color: var(--text); font-weight: 600; }
.tier .btn { margin-top: auto; justify-content: center; width: 100%; }

/* Compare table */
.compare {
  margin-top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.compare th {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--bg);
}
.compare th.tier-col { color: var(--text); font-size: 13px; letter-spacing: -0.005em; text-transform: none; font-family: var(--ff-sans); font-weight: 600; }
.compare th.tier-col.featured { color: var(--accent-ink); }
.compare td { color: var(--text-2); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare td.featured { background: rgba(255, 127, 80, 0.04); color: var(--text); }
.compare tr:last-child td { border-bottom: none; }

.nodes-section { margin-top: 96px; }
.nodes-table {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 32px;
}
.nodes-table table { width: 100%; border-collapse: collapse; }
.nodes-table th, .nodes-table td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14.5px;
}
.nodes-table th:last-child, .nodes-table td:last-child { text-align: right; }
.nodes-table th {
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  background: var(--bg);
}
.nodes-table td { color: var(--text); }
.nodes-table td .note { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.nodes-table .price-cell { font-family: var(--ff-mono); font-weight: 500; }
.nodes-table tr:last-child td { border-bottom: none; }

.pricing-faq { padding: 88px 0; border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-top: 48px; }
.faq-item { border-top: 1px solid var(--border); padding: 24px 0; }
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.faq-item p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0; max-width: 580px; }

@media (max-width: 960px) {
  .api-block, .comp-who, .faq-grid, .dash-body { grid-template-columns: 1fr; gap: 40px; }
  .benefits, .comp-cap-grid, .steps, .differs, .tier-grid { grid-template-columns: 1fr; }
  .compare table { font-size: 12px; }
  .compare th, .compare td { padding: 12px; }
}

/* ---------- Contact ---------- */
.contact-hero {
  padding: 92px 0 112px;
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 72px;
  align-items: start;
}
.contact-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: 18px 0 24px;
  max-width: 820px;
  text-wrap: balance;
}
.contact-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.contact-routes div {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
}
.contact-routes span {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.contact-routes b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.contact-routes p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -52px rgba(20, 20, 18, 0.25);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form label span {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.45;
  padding: 12px 13px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.contact-form textarea { resize: vertical; min-height: 156px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.16);
}
.contact-form .btn {
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}
.contact-form .btn:disabled {
  opacity: 0.68;
  cursor: wait;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.contact-alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.contact-alert.error {
  background: rgba(224, 94, 43, 0.1);
  border: 1px solid rgba(224, 94, 43, 0.24);
  color: var(--accent-ink);
}
.contact-alert.success {
  background: rgba(31, 78, 95, 0.08);
  border: 1px solid rgba(31, 78, 95, 0.18);
  color: var(--teal);
}

@media (max-width: 960px) {
  .contact-grid,
  .contact-routes { grid-template-columns: 1fr; }
  .contact-grid { gap: 44px; }
}

/* ---------- Validators ---------- */
.validators-hero {
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--border);
}
.validators-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.85fr);
  gap: 64px;
  align-items: center;
}
.validators-hero h1 {
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 18px 0 22px;
  max-width: 760px;
  text-wrap: balance;
}
.validators-hero .lead { max-width: 520px; }
.validator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  max-width: 560px;
}
.validator-tags span {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
}
.validator-terminal {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px -50px rgba(17, 17, 16, 0.55);
}
.validator-terminal-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #202023;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.validator-terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5f5f62;
}
.validator-terminal-bar i:first-child { background: var(--accent); }
.validator-terminal-bar span {
  margin-left: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--code-muted);
}
.validator-terminal pre {
  margin: 0;
  padding: 22px;
  min-height: 460px;
  overflow: auto;
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.validator-terminal .t-dim { color: var(--code-muted); }
.validator-terminal .t-white { color: var(--code-fg); }
.validator-terminal .t-teal { color: #80cbc4; }
.validator-terminal .t-green { color: #98c379; }
.validator-terminal .t-yellow { color: var(--code-string); }
.validators-services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%); }
.validator-service-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 22px;
  margin-top: 52px;
  align-items: stretch;
}
.validator-service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.validator-service-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.validator-service h3 {
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.validator-service p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.56;
  margin: 0 0 24px;
}
.validator-price {
  font-family: var(--ff-mono);
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.validator-price span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0;
}
.validator-deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.validator-deliverables b {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.validator-deliverables ul,
.validator-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.validator-deliverables li,
.validator-items li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.48;
}
.validator-deliverables li::before,
.validator-items li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent-ink);
}
.validator-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.validator-nodes-section { background: var(--bg); }
.validator-nodes-table th:nth-child(2),
.validator-nodes-table td:nth-child(2) { width: 150px; }
.validator-reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.validator-reason {
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
}
.validator-reason div {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.validator-reason h3 {
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.validator-reason p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.58;
  margin: 0;
}
.validator-cta {
  background: var(--ink-dark);
  color: var(--bg);
  text-align: center;
  padding: 96px 0;
}
.validator-cta h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px auto 18px;
  max-width: 720px;
}
.validator-cta p {
  color: #b9b7ad;
  font-size: 17px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 32px;
}
.validator-cta .hero-cta { justify-content: center; }
.validator-cta .btn-secondary {
  border-color: #55534e;
  color: var(--bg);
}
.validator-cta .btn-secondary:hover {
  background: var(--bg);
  color: var(--ink-dark);
}

@media (max-width: 1080px) {
  .validators-hero-grid,
  .validator-service-grid,
  .validator-deliverables,
  .validator-reasons { grid-template-columns: 1fr; }
  .validator-terminal pre { min-height: 0; }
}
