:root {
  color-scheme: light;
  --page: #f4f6f2;
  --surface: #ffffff;
  --surface-soft: #eef2ee;
  --surface-strong: #dde6e0;
  --text: #1f2522;
  --muted: #657069;
  --line: #d4ddd6;
  --accent: #0c6845;
  --accent-strong: #074b34;
  --accent-soft: #d9eee5;
  --warn: #8a4b00;
  --danger: #a22227;
  --shadow: 0 18px 42px rgba(31, 37, 34, 0.11);
  --mono:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(12, 104, 69, 0.08), rgba(12, 104, 69, 0) 360px),
    var(--page);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

button:hover:not(:disabled) {
  border-color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 max(22px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(212, 221, 214, 0.86);
  background: rgba(244, 246, 242, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #0b5c40;
  background:
    repeating-linear-gradient(
      90deg,
      #0b5c40 0 3px,
      transparent 3px 5px,
      #0b5c40 5px 7px,
      transparent 7px 11px
    ),
    #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

main {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.tool-section {
  min-height: calc(100vh - 90px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-copy-block {
  display: grid;
  gap: 0;
  max-width: 860px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-pills span {
  min-height: 34px;
  display: inline-grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(430px, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.panel,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.controls {
  display: grid;
  gap: 16px;
  padding: 18px;
}

/* Scan & Diagnose Styles */
.studio-left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.studio-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  min-height: unset;
  transition: all 0.15s ease;
}

.studio-tab:hover {
  color: var(--text);
  border-bottom-color: var(--surface-strong);
}

.studio-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel-subtitle-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 36px 18px;
  text-align: center;
  background: var(--surface-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.drop-zone-prompt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.drop-zone-prompt .file-button {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

.result-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge.success {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge.failure {
  background: rgba(162, 34, 39, 0.12);
  color: var(--danger);
}

.format-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.diagnostic-field {
  display: grid;
  gap: 4px;
}

.diagnostic-field label {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
}

.diagnostic-field textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  font-family: var(--mono);
  font-size: 13px;
  resize: vertical;
  background: var(--surface);
}

.alert-box {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.alert-box--info {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--accent-strong);
}

.alert-box strong {
  display: block;
  font-weight: 750;
  margin-bottom: 2px;
}

.alert-box p {
  margin: 0;
}

.metrics-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.metrics-grid-compact--four {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  background: var(--surface);
}

.metric-card .metric-title {
  display: block;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.metric-card strong {
  font-size: 14px;
  color: var(--text);
}

.recommendations-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  background: var(--surface);
}

.recommendations-box h3 {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.recommendations-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.recommendations-box li {
  margin-bottom: 4px;
}

.recommendations-box li:last-child {
  margin-bottom: 0;
}

.diagnostic-actions {
  margin-top: 16px;
  display: grid;
}

.diagnostic-actions button {
  width: 100%;
}

.diagnostic-actions--split {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.diagnostic-actions--split .status {
  margin: 0;
}

.aamva-toolbox {
  margin-top: 16px;
}

.aamva-results {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.aamva-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aamva-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-field--compact {
  min-height: auto;
  padding: 8px 10px;
  align-content: center;
}

.check-field--compact span {
  white-space: nowrap;
}


.preset-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.preset-select {
  min-width: 0;
}

.preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-actions button {
  min-width: 110px;
  padding: 0 12px;
}

.panel-title,
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.file-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.file-button:hover {
  border-color: var(--accent);
}

textarea,
input[type="number"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--text);
}

textarea {
  min-height: 270px;
  padding: 12px;
  resize: vertical;
  line-height: 1.38;
  font-family: var(--mono);
  font-size: 13px;
}

input[type="number"],
select {
  min-height: 38px;
  padding: 7px 10px;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
.file-button:focus-visible {
  outline: 3px solid rgba(12, 104, 69, 0.2);
  outline-offset: 1px;
  border-color: var(--accent);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field,
.color-field,
.check-field {
  display: grid;
  gap: 7px;
}

.field span,
.color-field span,
.check-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.appearance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.color-field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  padding: 4px;
}

.check-field {
  min-height: 63px;
  grid-template-columns: auto 1fr;
  align-content: end;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: #fbfcfb;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.primary-action {
  min-height: 44px;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.primary-action:hover:not(:disabled) {
  background: var(--accent-strong);
}

.preview-panel {
  display: grid;
  grid-template-rows: auto minmax(430px, 1fr) auto;
  gap: 16px;
  padding: 18px;
}

.status {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status.error {
  color: var(--danger);
}

.status.warn {
  color: var(--warn);
}

.result-actions {
  display: flex;
  gap: 9px;
}

.result-actions button {
  min-width: 104px;
  padding: 0 12px;
}

.preview-frame {
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: auto;
  border: 1px dashed #b7c2ba;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #e9ede9 25%, transparent 25%),
    linear-gradient(-45deg, #e9ede9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9ede9 75%),
    linear-gradient(-45deg, transparent 75%, #e9ede9 75%);
  background-color: #ffffff;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.preview-frame span {
  color: var(--muted);
  font-weight: 750;
}

.preview-frame img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.document-preview {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.document-preview strong {
  font-size: 18px;
  line-height: 1.2;
}

.document-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--surface-soft);
}

.metrics dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
}

.plans-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-strip-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.plan-strip-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f4 100%);
}

.plan-strip-tier {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-strip-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.plan-strip-card p:not(.plan-strip-tier) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-strip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.batch-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.batch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.batch-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.batch-panel--notes {
  align-content: start;
}

.batch-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 12px;
  align-items: start;
}

.batch-meta {
  margin: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-actions button {
  min-width: 140px;
  padding: 0 14px;
}

.batch-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.trust-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.trust-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.trust-card--alert {
  border-color: rgba(138, 75, 0, 0.24);
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ec 100%);
}

.policy-layout {
  display: grid;
  gap: 16px;
}

.policy-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.policy-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.policy-block {
  display: grid;
  gap: 8px;
}

.policy-block h2 {
  font-size: 20px;
}

.policy-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.policy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.info-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.info-copy h2 {
  font-size: 22px;
}

pre {
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #16221c;
  color: #e9f5ef;
}

code {
  display: block;
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}

.deploy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deploy-list span {
  min-height: 42px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.inline-action {
  width: fit-content;
}

.content-shell {
  display: grid;
  gap: 22px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
  align-items: end;
  padding: 8px 0 4px;
}

.page-hero h1 {
  max-width: 900px;
}

.hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.launch-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.launch-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
}

.launch-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.launch-note code {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.docs-panel p code,
.schema-grid code,
.deploy-list code {
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.featured-plan {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f4 100%);
}

.plan-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1;
}

.plan-card h2 span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.plan-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.comparison-section {
  display: grid;
  gap: 12px;
}

.pricing-focus-section {
  display: grid;
  gap: 16px;
}

.pricing-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.focus-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.focus-card--enterprise {
  background: #fbfcfb;
}

.focus-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.focus-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.focus-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.focus-list li + li {
  margin-top: 6px;
}

.self-hosted-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.self-hosted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 1fr));
  min-width: 760px;
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  padding: 12px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.35;
}

.comparison-row span:first-child {
  border-left: 0;
  font-weight: 800;
}

.header-row {
  background: var(--surface-soft);
}

.header-row span {
  color: var(--accent-strong);
  font-weight: 850;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px;
}

.docs-sidebar a {
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.docs-sidebar a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.docs-stack {
  display: grid;
  gap: 16px;
}

.docs-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.docs-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.docs-panel h2 + pre,
.docs-panel pre + h2 {
  margin-top: 2px;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.schema-grid div {
  min-height: 78px;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 11px;
}

.schema-grid strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.schema-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.pricing-cards-section {
  display: grid;
  gap: 16px;
}

.pricing-grid-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.plan-card-head {
  display: grid;
  gap: 6px;
}

.plan-card--featured {
  position: relative;
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f0f8f4 100%);
}

.plan-card--enterprise {
  background: #fbfcfb;
}

.plan-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-price-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
}

.plan-price-num {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.plan-price-period,
.plan-price-alt,
.plan-tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-price-alt,
.plan-tagline {
  margin: 0;
}

.plan-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.feat::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "+";
  font-weight: 850;
}

.feat--no {
  color: var(--muted);
}

.feat--no::before {
  color: var(--muted);
  content: "-";
}

.plan-action {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--accent-strong);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.plan-action:hover {
  border-color: var(--accent);
}

.plan-action--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.plan-action--outline {
  background: var(--surface);
}

.launch-note--warn {
  border-left-color: var(--warn);
}

.launch-note--warn strong {
  color: var(--warn);
}

.comparison-table-wrap {
  overflow: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  overflow: hidden;
}

table.comparison-table th,
table.comparison-table td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

table.comparison-table thead th {
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

table.comparison-table tbody th {
  width: 220px;
  font-weight: 820;
}

.cell-yes {
  color: var(--accent-strong);
  font-weight: 850;
}

.cell-no {
  color: var(--muted);
}

.faq-section,
.notify-section {
  display: grid;
  gap: 14px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.notify-inner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.notify-inner h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.notify-inner p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.notify-form {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 14px;
}

.notify-form select,
.notify-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--text);
  padding: 8px 12px;
}

.notify-note {
  margin: 10px 0 0;
  font-size: 13px;
}

.site-footer {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .studio-layout,
  .detail-grid,
  .plan-strip,
  .batch-layout,
  .trust-grid,
  .page-hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid-cards,
  .pricing-focus-grid,
  .self-hosted-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-panel {
    grid-template-rows: auto minmax(320px, auto) auto;
  }

  .preview-frame {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px max(14px, calc((100vw - 1240px) / 2));
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100vw - 20px, 1240px);
    padding-top: 18px;
  }

  .section-heading,
  .panel-title,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-grid,
  .appearance-row,
  .preset-bar,
  .batch-summary,
  .metrics,
  .deploy-list,
  .pricing-grid,
  .pricing-grid-cards,
  .pricing-focus-grid,
  .self-hosted-grid,
  .faq-grid,
  .trust-grid,
  .schema-grid,
  .compact-schema,
  .docs-sidebar,
  .notify-form {
    grid-template-columns: 1fr;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .preset-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .aamva-cta-row {
    display: grid;
  }

  .self-hosted-hero-actions {
    display: grid;
  }

  textarea {
    min-height: 230px;
  }
}

@media (max-width: 430px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
}

.coord-shell {
  display: grid;
  gap: 18px;
}

.coord-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.text-action {
  min-height: 38px;
  display: inline-grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.text-action:hover {
  border-color: var(--accent);
}

.now-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(160px, 0.45fr) minmax(360px, 1.1fr);
  gap: 12px;
}

.coord-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.95fr) minmax(420px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.coord-stack {
  display: grid;
  gap: 18px;
}

.coord-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.now-panel {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.now-panel strong {
  font-size: 26px;
  line-height: 1;
}

.focus-panel {
  min-height: 106px;
}

.focus-panel p:last-child {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.panel-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.coord-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.coord-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coord-panel-head span {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.text-action--small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.coord-list {
  display: grid;
  gap: 10px;
}

.coord-list.compact {
  gap: 8px;
}

.coord-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.coord-item.urgent {
  border-color: #d2a148;
  background: #fff8eb;
}

.coord-item strong {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.coord-item h3 {
  margin: 3px 0 4px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.coord-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.coord-item a,
.thread-card a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.coord-item a:hover,
.thread-card a:hover {
  text-decoration: underline;
}

.coord-item .badge {
  justify-self: end;
  align-self: start;
}

.coord-item-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.coord-item-actions form {
  margin: 0;
}

.button-link {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.button-link:hover {
  text-decoration: underline;
}

.thread-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thread-card {
  display: grid;
  gap: 7px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.thread-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.thread-card p,
.empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.packet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.packet-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.packet-card strong {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
}

.packet-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.import-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.import-list {
  margin-top: 14px;
}

.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.waitlist-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.waitlist-card--wide {
  grid-column: 1 / -1;
}

.waitlist-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.waitlist-list,
.waitlist-recent {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.waitlist-list li,
.waitlist-recent li {
  display: grid;
  gap: 4px;
}

.waitlist-list li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.waitlist-list span,
.waitlist-recent span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.waitlist-list strong,
.waitlist-recent strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.waitlist-recent code {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.prompt-list {
  display: grid;
  gap: 8px;
}

.prompt-list code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbf9;
  color: var(--text);
  white-space: normal;
}

@media (max-width: 980px) {
  .now-grid,
  .coord-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .coord-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-grid {
    grid-template-columns: 1fr;
  }

  .packet-grid,
  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .import-grid {
    grid-template-columns: 1fr;
  }

  .coord-item {
    grid-template-columns: 1fr;
  }
}

/* Coordination Chat Styles */
.chat-container {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.chat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.chat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  min-height: unset;
  transition: all 0.15s ease;
}

.chat-tab-btn:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.chat-tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.chat-tab-btn .badge {
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 850;
}

.chat-tab-btn.active .badge {
  background: var(--accent-strong);
  color: var(--surface);
  border-color: var(--accent-strong);
}

.chat-pane {
  display: none;
}

.chat-pane.active {
  display: block;
}

.chat-messages-scroll {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg-bubble {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.chat-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-msg-author {
  font-weight: 850;
  font-size: 12px;
  color: var(--accent-strong);
}

.chat-msg-meta {
  font-size: 11px;
  color: var(--muted);
}

.chat-msg-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.chat-msg-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.chat-composer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.composer-fields {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: start;
}

.composer-author-select select {
  min-height: 38px;
  font-size: 13px;
  font-weight: 700;
}

.composer-input-area textarea {
  min-height: 38px;
  height: 38px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13.5px;
  resize: none;
}

.composer-send-btn {
  min-height: 38px;
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
  font-weight: 800;
  padding: 0 16px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.composer-send-btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

@media (max-width: 600px) {
  .composer-fields {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   API docs shell — sidebar + main layout
   ============================================================ */

.docs-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.docs-toc {
  position: sticky;
  top: 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.toc-heading {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.docs-toc ul ul {
  padding-left: 12px;
  margin-top: 2px;
}

.docs-toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.docs-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.docs-main {
  display: grid;
  gap: 32px;
}

.docs-main .page-hero {
  display: block;
  padding: 0;
}

.docs-section {
  display: grid;
  gap: 14px;
}

.docs-section h2 {
  font-size: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.docs-section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 820;
}

.docs-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.docs-section pre {
  margin: 0;
}

.docs-cta-section {
  padding: 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.docs-cta-section h2 {
  border-bottom-color: rgba(12, 104, 69, 0.2);
}

/* Endpoint display */
.endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-family: var(--mono);
}

.http-method {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.endpoint-path {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

/* Inline code */
.inline-code {
  display: inline;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

/* Parameter tables */
.param-table-wrap {
  overflow: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.param-table {
  width: 100%;
  border-collapse: collapse;
}

.param-table th,
.param-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--surface);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.param-table thead th {
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 850;
  white-space: nowrap;
}

.param-table .param-required {
  display: inline-block;
  margin-left: 4px;
  border-radius: 4px;
  padding: 1px 5px;
  background: #fef3cd;
  border: 1px solid #e8c840;
  color: #7a5e00;
  font-size: 11px;
  font-weight: 850;
  vertical-align: middle;
}

/* API status bar */
.api-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--ok {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 104, 69, 0.18);
}

/* Pricing hero variant (full-width, no sidebar) */
.pricing-hero {
  display: block;
}

.pricing-hero .hero-copy {
  margin-top: 12px;
}

.pricing-hero .launch-note--warn {
  margin-top: 16px;
  max-width: 640px;
}

/* Content shell main layout */
.content-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
  display: grid;
  gap: 32px;
}

/* Responsive: docs shell collapses to single column */
@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .docs-toc {
    position: static;
  }

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

  .docs-toc ul ul {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
  }

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

@media (max-width: 720px) {
  .docs-toc ul,
  .docs-toc ul ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 500px) {
  .docs-toc ul,
  .docs-toc ul ul,
  .pricing-grid-cards {
    grid-template-columns: 1fr;
  }

  .notify-form {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------------------------
 * API key reveal block (checkout success page)
 * --------------------------------------------------------------------------- */

.api-key-reveal {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem auto;
  max-width: 640px;
  text-align: left;
}

.api-key-reveal--missing {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.4);
}

.api-key-reveal__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #a1a1aa);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.api-key-reveal__key {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius, 8px);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}

.api-key-reveal__key code {
  font-family: var(--font-mono, "JetBrains Mono", "Fira Code", monospace);
  font-size: 0.85rem;
  color: #c4b5fd;
  word-break: break-all;
  flex: 1;
}

.api-key-reveal__warn {
  font-size: 0.8rem;
  color: var(--text-secondary, #a1a1aa);
  margin: 0;
  line-height: 1.6;
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 6px;
  color: #c4b5fd;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(99, 102, 241, 0.45);
  color: #fff;
}
