:root {
  --ink: #0f1115;
  --graphite: #161920;
  --paper: #f8f7f4;
  --gold: #c59b27;
  --gold-deep: #8a6a12;
  --text: #f3f4f6;
  --muted: #c6cad1;
  --quiet: #a8adb8;
  --ink-text: #111827;
  --body: #374151;
  --critical: #991b1b;
  --watch: #b45309;
  --safe: #166534;
  --line: rgba(243, 244, 246, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: #1a1406;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); }
.band { padding: 88px 0; }
.graphite { background: var(--graphite); }
.paper { background: var(--paper); color: var(--ink-text); }
.hero { padding-top: 72px; }
.tight { padding-top: 28px; border-top: 1px solid rgba(17, 24, 39, 0.08); }

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.paper .kicker, .sheet .kicker { color: var(--gold-deep); }
.fine {
  margin-top: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--quiet);
}
.paper .fine, .sheet .fine { color: #6b7280; }
.lede {
  max-width: 42rem;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  color: #c8cdd6;
}
.paper .lede { color: var(--body); }

h1 {
  max-width: 16em;
  margin: 10px 0 18px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  color: var(--ink-text);
  box-shadow: inset 0 -1px 0 rgba(184, 134, 11, 0.5);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.marca { height: 48px; width: auto; }
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-left: auto;
}
.masthead nav a:not(.btn) {
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
}
.masthead nav a:not(.btn):hover { color: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-gold:hover { background: #d4ae45; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(243, 244, 246, 0.35); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-line { background: transparent; color: var(--ink-text); border: 1px solid rgba(17, 24, 39, 0.28); }

.hero-grid, .section-head, .behavior-grid, .converse {
  display: grid;
  gap: 28px 48px;
  align-items: start;
}
.hero-grid, .converse { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); }
.section-head, .behavior-grid { grid-template-columns: 180px minmax(0, 1fr); }
.behavior-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.section-head { margin-bottom: 32px; }
.section-head > div p { margin-top: 10px; max-width: 42rem; color: var(--muted); line-height: 1.55; }
.paper .section-head > div p { color: var(--body); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.docket {
  border: 1px solid rgba(197, 155, 39, 0.45);
  background: var(--graphite);
  padding: 26px 26px 18px;
}
.docket h2 { margin: 8px 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.docket ul { list-style: none; }
.docket li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(243, 244, 246, 0.08);
}


.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
label { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
input, select {
  width: 100%;
  padding: 10px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.22);
  border-radius: 0;
}
.controls select { color: var(--text); border-bottom-color: rgba(243, 244, 246, 0.28); color-scheme: dark; }
.paper input, .paper select, .modal-panel input, .modal-panel select { color-scheme: light; }
.cf-turnstile { margin-top: 16px; }
.js-lead .btn { margin-top: 18px; }
.form-msg { min-height: 1.2em; margin-top: 12px; }
.js-lead.is-sent .fields { display: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.banner { margin-top: 16px; padding: 12px 14px; background: #e8f0e6; color: var(--safe); }
.banner.is-error { background: #f8e8e8; color: var(--critical); }
.modal-panel .form-grid { grid-template-columns: 1fr; }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, 0.72); }
.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  padding: 28px;
  background: var(--paper);
  color: var(--ink-text);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--gold-deep);
  background: transparent;
  border: 0;
  cursor: pointer;
}
body.modal-open { overflow: hidden; }

.colophon { padding: 28px 0 40px; border-top: 1px solid rgba(243, 244, 246, 0.08); }
.colophon-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.colophon p { color: var(--quiet); font-size: 13px; }

@media (max-width: 860px) {
  .band { padding: 56px 0; }
  .hero-grid, .section-head, .fracture-grid, .doc.is-on, .behavior-grid, .facts, .form-grid, .converse { grid-template-columns: 1fr; }
  .masthead nav { width: 100%; margin-left: 0; }
  .facts { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
