:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --panel: #0f1319;
  --panel-soft: #121720;
  --panel-strong: #171d28;
  --text: #f4f7fb;
  --muted: #9ba3af;
  --line: #232a35;
  --line-strong: #3b4658;
  --accent: #f7931a;
  --accent-soft: #ffb552;
  --max: 1160px;
  --measure: 72ch;
  --shadow: 0 0 0 1px rgba(255,255,255,0.03);
  --doc-paper: #0d1117;
  --doc-paper-soft: #111722;
  --doc-line: #2b3544;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
main { display: block; }
img, svg { display: block; max-width: 100%; }
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: #fff; }
}
::selection {
  background: var(--accent);
  color: #0a0c10;
}
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 10px;
  top: -120px;
  z-index: 1000;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  text-decoration: none;
}
.skip-link:focus-visible { top: 10px; }

.site-header,
.site-footer {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.header-inner,
.footer-inner,
.main,
.error-page,
.doc-page {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}
.header-inner { padding: 18px 0 16px; }
.footer-inner { padding: 18px 0; }
.brand-row {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
}
.brand {
  display: inline-block;
  text-decoration: none;
  min-height: 44px;
}
.brand-kicker,
.eyebrow,
.footer-title,
.compact-title,
.section-label,
.kicker,
.doc-kicker,
.card-kicker,
.contact-card-title {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-kicker,
.eyebrow { margin-bottom: 6px; }
.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-note {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.97rem;
}
.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  text-decoration: none;
}
.site-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover,
  .footer-links a:hover {
    border-color: var(--line-strong);
    background: rgba(255,255,255,0.05);
  }
}
.nav-external::after,
.footer-links a[target="_blank"]::after {
  content: " ↗";
  color: var(--muted);
  font-size: 0.82em;
}
.footer-grid {
  display: grid;
  gap: 16px;
}
.footer-copy p {
  margin: 0;
  max-width: 58ch;
}
.footer-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main,
.error-page,
.doc-page {
  padding-top: 0;
  padding-bottom: 44px;
}
.hero { padding: 38px 0 18px; }
.hero h1,
.page-title,
.error-page h1 {
  margin: 0 0 14px;
  font: 700 clamp(2.55rem, 11vw, 4.7rem)/0.96 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}
.hero .lede,
.page-intro,
.error-page p,
.contact-intro,
.hero-copy {
  max-width: 58ch;
  margin: 0;
  font-size: 1.08rem;
  color: #e3e8ef;
}
.actions,
.section-actions,
.cluster-links,
.doc-actions,
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.button.secondary { border-color: var(--line-strong); }
.button.text {
  min-height: auto;
  padding: 0;
  border: 0;
  justify-content: flex-start;
  font-weight: 600;
}
.button.text:hover,
.button.text:focus-visible {
  background: transparent;
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  button:hover {
    background: #ffffff;
    color: #0a0c10;
  }
}

.section,
.policy-block,
.contact-section {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.section h2,
.policy-block h2,
.contact-section h2,
.doc-sheet h2,
.error-page h1 {
  margin: 0 0 12px;
  font: 700 clamp(1.7rem, 7vw, 2.35rem)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}
.section h3,
.policy-block h3,
.contact-section h3,
.doc-sheet h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.35;
}
.section p,
.policy-block p,
.contact-section p,
.doc-sheet p,
.card p,
.section li,
.section td,
.section th,
.policy-block li,
.policy-block td,
.policy-block th,
.contact-section li,
.contact-section td,
.contact-section th {
  max-width: var(--measure);
}
.section p,
.policy-block p,
.contact-section p,
.doc-sheet p,
.card p { margin: 0 0 14px; }
.section p:last-child,
.policy-block p:last-child,
.contact-section p:last-child,
.doc-sheet p:last-child,
.card p:last-child { margin-bottom: 0; }
.section-intro,
.inline-note,
.definition-note,
.small,
.note,
.muted,
.meta,
.policy-meta,
.doc-muted,
.card-copy {
  color: var(--muted);
}
.tight { max-width: 48ch; }

.grid-2,
.columns-2,
.form-grid,
.grid,
.contact-grid,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card-grid { margin-top: 18px; }
.card {
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  box-shadow: var(--shadow);
}
.card > *:last-child { margin-bottom: 0; }
.card-kicker,
.contact-card-title { margin-bottom: 8px; }
.card-links { margin-top: 14px; }

.rule-list,
.plain-list,
.number-list,
.toc-list,
.key-list,
.commitments,
.deep-link-list,
.policy-contact,
.doc-list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rule-list li,
.plain-list li,
.key-list li,
.commitments li,
.deep-link-list li,
.policy-contact li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rule-list li:first-child,
.plain-list li:first-child,
.key-list li:first-child,
.commitments li:first-child,
.deep-link-list li:first-child,
.policy-contact li:first-child {
  border-top: 0;
  padding-top: 0;
}
.toc-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.toc-list li,
.glossary-list > div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.toc-list li:first-child,
.glossary-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.toc-list a {
  display: block;
  text-decoration: none;
}
.toc-list a:hover,
.toc-list a:focus-visible { text-decoration: underline; }
.toc-lead {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 700;
}
.toc-copy {
  color: var(--muted);
  display: block;
  max-width: 64ch;
}
.number-list { counter-reset: item; }
.number-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  counter-increment: item;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.number-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.number-list li::before {
  content: "0" counter(item);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kv,
.price-table,
.doc-sheet table {
  width: 100%;
  border-collapse: collapse;
}
.kv tr,
.price-table tr,
.doc-sheet table tr { border-top: 1px solid var(--line); }
.kv tr:first-child,
.price-table tr:first-child,
.doc-sheet table tr:first-child { border-top: 0; }
.kv th,
.kv td,
.price-table td,
.doc-sheet table th,
.doc-sheet table td {
  display: block;
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}
.kv th,
.doc-sheet table th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 2px;
}
.price-table td:last-child {
  padding-top: 0;
  color: #fff;
}

.band,
.sample-link,
.policy-callout,
.contact-callout,
.summary-band {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.summary-band h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
}
.summary-band p:last-child,
.band p:last-child,
.sample-link p:last-child,
.policy-callout p:last-child,
.contact-callout p:last-child { margin-bottom: 0; }
.summary-band p { max-width: 68ch; color: #e7ebf2; }

.faq-cluster + .faq-cluster { margin-top: 26px; }
.faq-cluster > p.small { margin-bottom: 14px; }
details.faq-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
details.faq-item:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  line-height: 1.35;
  padding-right: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
details[open] summary::before { content: "−"; }
details > div { padding: 10px 0 2px 1.75em; }
details > div > *:last-child { margin-bottom: 0; }

.def-term {
  position: relative;
  display: inline;
  white-space: normal;
}
.def-term > a,
.term-link {
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.def-card {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: min(34ch, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.52;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 5px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 40;
  box-shadow: var(--shadow);
  text-transform: none;
  letter-spacing: normal;
  pointer-events: none;
  text-align: left;
}
.def-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.def-term:hover .def-card,
.def-term:focus-within .def-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: none), (pointer: coarse) {
  .def-card { display: none !important; }
}

.subsection + .subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.coming { color: var(--muted); text-decoration: line-through; }
.policy-meta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.96rem;
}
.policy-meta strong { color: var(--text); }
.policy-grid { display: grid; gap: 20px; }
.policy-list,
.policy-summary,
.contact-list,
.doc-sheet ul,
.doc-sheet ol,
.doc-sheet .summary-list {
  margin: 0 0 14px;
  padding-left: 20px;
  max-width: var(--measure);
}
.policy-list li,
.policy-summary li,
.contact-list li,
.doc-sheet li,
.doc-sheet .summary-list li { margin: 0 0 8px; }
.policy-code,
code,
pre,
.doc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
code {
  font-size: 0.94em;
  word-break: break-all;
}
.contact-grid > * {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.contact-section .kv tr:first-child { border-top: 1px solid var(--line-strong); }
.contact-section .kv th { width: 160px; }

.doc-mode .site-header,
.doc-mode .site-footer { display: none; }
.doc-page {
  width: min(calc(100% - 24px), 1040px);
  padding-top: 28px;
  padding-bottom: 52px;
}
.doc-toolbar,
.breadcrumb,
.doc-path {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.doc-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--doc-line);
  margin-bottom: 2px;
}
.doc-head > *:last-child { margin-bottom: 0; }
.doc-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--doc-line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.doc-sheet h1 {
  margin: 0 0 14px;
  font: 700 clamp(2.1rem, 7vw, 3.5rem)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
}
.doc-sheet h2 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--doc-line);
}
.doc-sheet h3 { margin-top: 22px; }
.doc-sheet h4 {
  margin: 18px 0 10px;
  font-size: 0.98rem;
  line-height: 1.3;
}
.doc-sheet .lede {
  max-width: 56ch;
  font-size: 1.08rem;
  color: #eef2f8;
  margin: 0 0 18px;
}
.doc-sheet .meta,
.doc-sheet .box,
.doc-sheet .callout,
.doc-sheet .grid > div {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--doc-paper-soft);
  border: 1px solid var(--doc-line);
}
.doc-sheet .callout { border-left: 3px solid var(--accent); }
.doc-sheet .rule {
  padding-left: 14px;
  border-left: 2px solid var(--doc-line);
  margin: 0 0 14px;
}
.doc-sheet .section-label,
.doc-sheet .compact-title,
.doc-sheet .doc-kicker { margin-bottom: 8px; }
.doc-sheet .grid { margin: 16px 0; }
.doc-sheet .doc-head .doc-kicker { margin-bottom: 10px; }
.doc-sheet .doc-head p:not(.lede) { color: var(--muted); }
.doc-sheet .doc-section {
  padding: 18px 0 20px;
  border-top: 1px solid var(--doc-line);
}
.doc-sheet .doc-section:first-of-type { border-top: 0; }
.doc-sheet .doc-meta-section { padding-top: 20px; }
.doc-sheet .kv tr,
.doc-sheet table tr { border-top-color: var(--doc-line); }
.doc-sheet strong { color: #fff; }
.doc-sheet blockquote {
  margin: 16px 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: #edf2f7;
}
.doc-sheet hr {
  border: 0;
  border-top: 1px solid var(--doc-line);
  margin: 28px 0;
}

.error-page {
  min-height: 52vh;
  display: grid;
  align-content: center;
  padding-top: 40px;
}
form { max-width: 920px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.full { grid-column: 1 / -1; }
label { display: block; margin: 0 0 6px; font-weight: 600; }
input,
textarea,
select,
button { font: inherit; }
input,
textarea,
select {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  border-radius: 0;
}
input::placeholder,
textarea::placeholder { color: var(--muted); }
textarea {
  min-height: 132px;
  resize: vertical;
}
.submit-row { padding-top: 16px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.anti-bot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (min-width: 700px) {
  .header-inner,
  .footer-inner,
  .main,
  .error-page,
  .doc-page { width: min(calc(100% - 40px), var(--max)); }
  .doc-page { width: min(calc(100% - 40px), 1040px); }
  .grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 28px; align-items: start; }
  .columns-2,
  .contact-grid,
  .card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
  .grid.two,
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .number-list li { grid-template-columns: 54px 1fr; gap: 14px; }
  .number-list li::before { padding-top: 4px; }
  .kv th,
  .kv td,
  .price-table td,
  .doc-sheet table th,
  .doc-sheet table td {
    display: table-cell;
    padding: 11px 0;
  }
  .kv th,
  .doc-sheet table th {
    width: 220px;
    padding-bottom: 11px;
  }
  .price-table td:last-child {
    text-align: right;
    white-space: nowrap;
    padding-left: 18px;
    padding-top: 11px;
  }
  .footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .hero h1,
  .page-title,
  .error-page h1 { font-size: clamp(3rem, 7vw, 5.3rem); }
  .hero .lede,
  .page-intro,
  .error-page p,
  .contact-intro,
  .hero-copy { font-size: 1.14rem; }
}

@media (min-width: 980px) {
  .hero { padding-top: 56px; }
}

@media print {
  :root { color-scheme: light; }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .doc-toolbar,
  .breadcrumb,
  .doc-actions { display: none !important; }
  .main,
  .error-page,
  .doc-page {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .doc-page { max-width: none !important; }
  .doc-sheet {
    background: #fff !important;
    color: #111 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .doc-sheet * {
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .doc-sheet .meta,
  .doc-sheet .box,
  .doc-sheet .callout,
  .doc-sheet .grid > div {
    border: 1px solid #cfcfcf !important;
  }
}

.hero .hero-copy { margin-top: 14px; }
.kv td strong, .card p strong { color: #fff; }

/* === Refined visual system: quieter, sharper, less plastic === */
:root {
  --bg: #080a0d;
  --panel: #0b0f14;
  --panel-soft: #0f141b;
  --panel-strong: #121922;
  --text: #eef2f6;
  --muted: #9aa5b1;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(247,147,26,0.36);
  --accent: #f7931a;
  --accent-soft: #ffb85c;
  --max: 1240px;
  --measure: 68ch;
  --shadow: none;
  --doc-paper: #0c1015;
  --doc-paper-soft: #10161f;
  --doc-line: rgba(255,255,255,0.1);
}

html {
  background:
    radial-gradient(1100px 520px at 100% -10%, rgba(247,147,26,0.08), transparent 56%),
    radial-gradient(900px 440px at 0% 0%, rgba(255,255,255,0.035), transparent 50%),
    var(--bg);
}
body {
  background: transparent;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-inner,
.footer-inner,
.main,
.error-page,
.doc-page {
  width: min(calc(100% - 32px), var(--max));
}

.site-header,
.site-footer {
  background: rgba(8,10,13,0.88);
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
}
.header-inner {
  padding: 22px 0 14px;
}
.footer-inner {
  padding: 28px 0 30px;
}
.brand-row {
  gap: 14px;
  padding-bottom: 12px;
}
.brand {
  display: inline-grid;
  grid-template-columns: 34px auto;
  gap: 14px;
  align-items: center;
  min-height: 44px;
}
.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url('logo.png') center/contain no-repeat;
  opacity: 0.95;
}
.brand-kicker,
.eyebrow,
.footer-title,
.compact-title,
.section-label,
.kicker,
.doc-kicker,
.card-kicker,
.contact-card-title {
  font-size: 0.69rem;
  letter-spacing: 0.14em;
}
.brand-name {
  font-size: 1.08rem;
  letter-spacing: 0.015em;
}
.brand-note {
  max-width: 56ch;
  color: #d0d7e0;
  font-size: 0.98rem;
}

.site-nav,
.footer-links {
  gap: 10px 18px;
  padding-top: 12px;
}
.site-nav a,
.footer-links a {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #c7d0da;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 140ms ease, background-size 140ms ease;
}
.site-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: #fff;
  background: none;
  border: 0;
  background-size: 100% 1px;
  background-image: linear-gradient(var(--accent), var(--accent));
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover,
  .footer-links a:hover {
    color: #fff;
    border: 0;
    background: none;
    background-size: 100% 1px;
  }
}
.footer-grid {
  gap: 22px;
}
.footer-copy p {
  max-width: 54ch;
}
.footer-meta {
  margin-top: 18px;
  padding-top: 16px;
}

.main,
.error-page,
.doc-page {
  padding-bottom: 56px;
}
.hero {
  padding: 62px 0 26px;
}
.hero h1,
.page-title,
.error-page h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}
.hero .lede,
.page-intro,
.error-page p,
.contact-intro,
.hero-copy {
  font-size: 1.12rem;
  color: #e8edf4;
}
.hero .lede {
  max-width: 54ch;
}
.hero .hero-copy {
  max-width: 64ch;
}
.hero-note {
  color: var(--muted);
}

.actions,
.section-actions,
.cluster-links,
.doc-actions,
.card-links {
  gap: 12px;
  margin-top: 24px;
}
.button,
button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(247,147,26,0.4);
  background: #11161d;
  color: #fff;
  font-weight: 620;
}
.button.secondary {
  border-color: var(--line);
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  button:hover {
    background: var(--accent);
    color: #140c02;
    border-color: var(--accent);
  }
  .button.secondary:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border-color: var(--line-strong);
  }
}

.section,
.policy-block,
.contact-section {
  padding: 34px 0 40px;
}
.section h2,
.policy-block h2,
.contact-section h2,
.doc-sheet h2,
.error-page h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.section h3,
.policy-block h3,
.contact-section h3,
.doc-sheet h3,
.card h3 {
  font-size: 1.03rem;
  margin: 0 0 10px;
}

.card,
.contact-grid > * {
  padding: 24px 24px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.card-grid {
  margin-top: 20px;
}
.card-kicker,
.contact-card-title {
  margin-bottom: 10px;
}

.band,
.sample-link,
.policy-callout,
.contact-callout,
.summary-band {
  background: linear-gradient(180deg, rgba(247,147,26,0.04), rgba(247,147,26,0));
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.summary-band h2 {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}
.summary-band p {
  color: #e8edf4;
}

.faq-cluster + .faq-cluster {
  margin-top: 34px;
}
details.faq-item {
  padding: 16px 0;
}
summary {
  font-size: 1.02rem;
  font-weight: 620;
}
summary::before {
  width: 1.15em;
  margin-right: 8px;
  color: var(--accent);
}
details > div {
  padding: 14px 0 4px 1.85em;
}
.home-panel,
.about-panel {
  padding: 8px 0;
}
.home-panel summary,
.about-panel summary {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.home-panel summary .eyebrow,
.about-panel summary .eyebrow {
  margin-bottom: 10px;
}
.home-panel > div,
.about-panel > div {
  padding-top: 16px;
}

.def-card {
  background: #10161f;
  border: 1px solid rgba(255,255,255,0.12);
  width: min(36ch, calc(100vw - 32px));
}

.doc-page {
  width: min(calc(100% - 32px), 1080px);
  padding-top: 32px;
  padding-bottom: 64px;
}
.doc-sheet {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(24px, 4vw, 46px);
}
.doc-sheet h1 {
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  line-height: 0.98;
}
.doc-head {
  padding-bottom: 18px;
}
.doc-sheet .meta,
.doc-sheet .box,
.doc-sheet .callout,
.doc-sheet .grid > div {
  background: #10161f;
  border: 1px solid rgba(255,255,255,0.08);
}
.doc-sheet .rule {
  border-left-color: rgba(247,147,26,0.45);
}

.error-page {
  min-height: 60vh;
}

@media (min-width: 760px) {
  .header-inner,
  .footer-inner,
  .main,
  .error-page,
  .doc-page {
    width: min(calc(100% - 48px), var(--max));
  }
  .doc-page {
    width: min(calc(100% - 48px), 1080px);
  }
  .brand-row {
    grid-template-columns: minmax(280px, auto) minmax(0, 1fr);
    column-gap: 42px;
    align-items: end;
  }
  .brand-note {
    justify-self: end;
    text-align: right;
  }
  .site-nav,
  .footer-links {
    gap: 10px 22px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: start;
    column-gap: 40px;
  }
  .footer-links {
    border-top: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
    align-content: start;
    gap: 8px 24px;
  }
  .hero {
    padding-top: 74px;
  }
  .hero .lede,
  .page-intro,
  .error-page p,
  .contact-intro,
  .hero-copy {
    font-size: 1.16rem;
  }
  .card-grid-two {
    gap: 22px 28px;
  }
}

@media (min-width: 980px) {
  .hero h1,
  .page-title,
  .error-page h1 {
    max-width: 10.5ch;
  }
  .section,
  .policy-block,
  .contact-section {
    padding: 38px 0 44px;
  }
}


/* === Veteran reset: fix broken mark/wordmark and kill plastic UI === */
:root {
  --bg: #07090c;
  --panel: #080b0f;
  --panel-soft: #0c1117;
  --panel-strong: #111820;
  --text: #f2f5f8;
  --muted: #a3adb8;
  --dim: #6f7a86;
  --line: rgba(242,245,248,0.105);
  --line-strong: rgba(247,147,26,0.48);
  --accent: #f7931a;
  --accent-soft: #ffbf6a;
  --max: 1180px;
  --measure: 66ch;
  --shadow: none;
  --doc-paper: #0b0f14;
  --doc-paper-soft: #10161d;
  --doc-line: rgba(242,245,248,0.11);
}

html {
  background:
    radial-gradient(1000px 420px at 84% -12%, rgba(247,147,26,0.065), transparent 62%),
    linear-gradient(180deg, #07090c 0%, #090c10 100%);
}

body {
  background: transparent;
  color: var(--text);
  font: 16px/1.66 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-inner,
.footer-inner,
.main,
.error-page,
.doc-page {
  width: min(calc(100% - 32px), var(--max));
}

.site-header {
  background: rgba(7,9,12,0.96) !important;
  border-bottom: 1px solid var(--line) !important;
}

.header-inner {
  padding: 22px 0 12px !important;
}

.brand-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 32px !important;
  padding-bottom: 16px !important;
}

.brand {
  display: grid !important;
  grid-template-columns: 38px minmax(0, max-content) !important;
  grid-template-rows: auto auto !important;
  column-gap: 14px !important;
  row-gap: 0 !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 44px !important;
  text-decoration: none !important;
}

.brand::before {
  content: "" !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 38px !important;
  height: 38px !important;
  background: url('logo.png') center/contain no-repeat !important;
  opacity: 1 !important;
}

.brand-kicker {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  margin: 0 0 2px !important;
  color: var(--muted) !important;
  font-size: 0.66rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.brand-name {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: block !important;
  color: #fff !important;
  font-size: 1.17rem !important;
  font-weight: 720 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.015em !important;
  white-space: nowrap !important;
}

.brand-note {
  justify-self: end !important;
  max-width: 54ch !important;
  margin: 0 !important;
  color: #d7dde5 !important;
  font-size: 0.98rem !important;
  line-height: 1.48 !important;
  text-align: right !important;
}

.site-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 22px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--line) !important;
}

.site-nav a,
.site-nav a:visited,
.footer-links a,
.footer-links a:visited {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c8d0da !important;
  font-size: 0.94rem !important;
  font-weight: 520 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: inset 0 -1px 0 transparent !important;
}

.site-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: inset 0 -1px 0 var(--accent) !important;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.75) !important;
}

.nav-external::after,
.footer-links a[target="_blank"]::after {
  content: "↗" !important;
  margin-left: 3px !important;
  color: var(--dim) !important;
  font-size: 0.72em !important;
  transform: translateY(-0.12em) !important;
}

.main,
.error-page,
.doc-page {
  padding-bottom: 64px !important;
}

.hero {
  padding: clamp(56px, 9vw, 96px) 0 34px !important;
}

.hero h1,
.page-title,
.error-page h1 {
  max-width: 11ch !important;
  margin: 0 0 22px !important;
  color: #fff !important;
  font: 760 clamp(3.25rem, 8.5vw, 7.2rem)/0.88 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.058em !important;
}

.hero .lede,
.page-intro,
.error-page p,
.contact-intro,
.hero-copy {
  max-width: 62ch !important;
  color: #e7ecf2 !important;
  font-size: clamp(1.08rem, 1.4vw, 1.22rem) !important;
  line-height: 1.62 !important;
}

.hero .hero-copy {
  margin-top: 18px !important;
  color: #cfd7df !important;
}

.hero-note,
.small,
.note,
.muted,
.meta,
.policy-meta,
.doc-muted,
.card-copy,
.section-intro,
.inline-note,
.definition-note {
  color: var(--muted) !important;
}

.brand-kicker,
.eyebrow,
.footer-title,
.compact-title,
.section-label,
.kicker,
.doc-kicker,
.card-kicker,
.contact-card-title {
  color: var(--dim) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

.actions,
.section-actions,
.cluster-links,
.doc-actions,
.card-links {
  gap: 10px !important;
  margin-top: 28px !important;
}

.button,
button {
  min-height: 46px !important;
  padding: 11px 16px !important;
  border: 1px solid rgba(247,147,26,0.52) !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.button.secondary {
  border-color: var(--line) !important;
  color: #d5dde6 !important;
  background: transparent !important;
}

.button.text {
  border: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  color: #fff !important;
}

.button:hover,
button:hover,
.button:focus-visible,
button:focus-visible {
  border-color: var(--accent) !important;
  background: rgba(247,147,26,0.08) !important;
  color: #fff !important;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255,255,255,0.28) !important;
  background: rgba(255,255,255,0.035) !important;
}

.section,
.policy-block,
.contact-section {
  padding: clamp(34px, 5vw, 54px) 0 !important;
  border-top: 1px solid var(--line) !important;
}

.section h2,
.policy-block h2,
.contact-section h2,
.doc-sheet h2,
.error-page h1 {
  margin: 0 0 16px !important;
  color: #fff !important;
  font: 740 clamp(1.9rem, 4vw, 3rem)/0.98 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.038em !important;
}

.section h3,
.policy-block h3,
.contact-section h3,
.doc-sheet h3,
.card h3 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 1.02rem !important;
  line-height: 1.35 !important;
}

.card-grid {
  margin-top: 22px !important;
}

.card,
.contact-grid > * {
  padding: 24px !important;
  border: 1px solid var(--line) !important;
  border-top-color: rgba(247,147,26,0.34) !important;
  background: rgba(255,255,255,0.018) !important;
  box-shadow: none !important;
}

.card p,
.section p,
.policy-block p,
.contact-section p,
.doc-sheet p {
  line-height: 1.68 !important;
}

details.faq-item {
  padding: 17px 0 !important;
  border-top: 1px solid var(--line) !important;
}

details.faq-item:last-child {
  border-bottom: 1px solid var(--line) !important;
}

summary {
  cursor: pointer !important;
  color: #eef2f6 !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

summary::before {
  content: "+" !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  margin-right: 9px !important;
}

details[open] summary::before {
  content: "−" !important;
}

details > div {
  padding: 14px 0 3px 1.8em !important;
}

.home-panel summary,
.about-panel summary {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif !important;
  font-size: clamp(1.15rem, 2.2vw, 1.48rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.018em !important;
}

.home-panel summary .home-summary-title,
.about-panel summary .about-summary-title {
  color: #fff !important;
}

.band,
.sample-link,
.policy-callout,
.contact-callout,
.summary-band {
  padding: 20px 0 !important;
  border-top: 1px solid var(--accent) !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.summary-band h2 {
  margin-bottom: 8px !important;
  font-family: inherit !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.15em !important;
  color: var(--dim) !important;
}

.site-footer {
  background: #07090c !important;
  border-top: 1px solid var(--line) !important;
}

.footer-inner {
  padding: 34px 0 32px !important;
}

.footer-grid {
  display: grid !important;
  gap: 24px !important;
}

.footer-copy p {
  max-width: 58ch !important;
  color: #cbd3dc !important;
}

.footer-links {
  border-top: 1px solid var(--line) !important;
  padding-top: 16px !important;
  gap: 8px 20px !important;
}

.footer-meta {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--line) !important;
  color: var(--dim) !important;
}

.doc-page {
  width: min(calc(100% - 32px), 1060px) !important;
  padding-top: 36px !important;
}

.doc-sheet {
  padding: clamp(26px, 4.5vw, 52px) !important;
  border: 1px solid var(--doc-line) !important;
  background: rgba(255,255,255,0.016) !important;
  box-shadow: none !important;
}

.doc-sheet h1 {
  color: #fff !important;
  font: 760 clamp(2.45rem, 6vw, 4.7rem)/0.96 Georgia, "Times New Roman", serif !important;
  letter-spacing: -0.052em !important;
}

.doc-head {
  padding-bottom: 20px !important;
  border-bottom: 1px solid var(--doc-line) !important;
}

.doc-sheet .meta,
.doc-sheet .box,
.doc-sheet .callout,
.doc-sheet .grid > div {
  background: rgba(255,255,255,0.02) !important;
  border: 1px solid var(--doc-line) !important;
}

.doc-sheet .callout {
  border-left: 2px solid var(--accent) !important;
}

.kv tr,
.price-table tr,
.doc-sheet table tr,
.rule-list li,
.plain-list li,
.key-list li,
.commitments li,
.deep-link-list li,
.policy-contact li,
.toc-list li,
.glossary-list > div {
  border-top-color: var(--line) !important;
}

.kv th,
.doc-sheet table th {
  color: var(--dim) !important;
}

@media (max-width: 759px) {
  .header-inner,
  .footer-inner,
  .main,
  .error-page,
  .doc-page {
    width: min(calc(100% - 28px), var(--max)) !important;
  }

  .brand-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .brand {
    width: auto !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  .brand::before {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-kicker,
  .brand-name {
    white-space: normal !important;
  }

  .brand-note {
    justify-self: start !important;
    text-align: left !important;
    max-width: 62ch !important;
  }

  .site-nav {
    gap: 10px 18px !important;
  }

  .site-nav a,
  .footer-links a {
    font-size: 0.93rem !important;
  }

  .hero {
    padding-top: 48px !important;
  }

  .hero h1,
  .page-title,
  .error-page h1 {
    max-width: 9.5ch !important;
    font-size: clamp(2.8rem, 16vw, 4.4rem) !important;
  }
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr) !important;
    align-items: start !important;
    column-gap: 48px !important;
  }

  .footer-links {
    border-top: 0 !important;
    padding-top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content)) !important;
    justify-content: start !important;
    align-content: start !important;
  }
}

@media (min-width: 980px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr) !important;
    gap: 44px !important;
  }

  .columns-2,
  .contact-grid,
  .card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 30px !important;
  }

  .card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 30px !important;
  }
}
