:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #5d6964;
  --line: #d9dfdc;
  --line-strong: #bfc9c4;
  --green: #0f6b4b;
  --green-soft: #e7f3ed;
  --blue: #225f9c;
  --blue-soft: #eaf1f8;
  --amber: #8a5e10;
  --amber-soft: #fbf0d6;
  --danger: #a33d32;
  --danger-soft: #f8e9e6;
  --shadow: 0 14px 36px rgba(23, 32, 29, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.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;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
}

.brand-domain {
  color: var(--muted);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(34, 95, 156, 0.12);
}

.service-state[data-state="info"] .dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(34, 95, 156, 0.12);
}

.service-state[data-state="ok"] .dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15, 107, 75, 0.12);
}

.service-state[data-state="warn"] .dot {
  background: var(--amber);
}

.service-state[data-state="error"] .dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(163, 61, 50, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 32px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-panel,
.endpoint,
.detail,
.health-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-panel {
  box-shadow: var(--shadow);
}

.trust-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.trust-panel h2,
.section-heading h2,
.endpoint h2,
.detail h3,
.health-panel h2,
.warning h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill[data-tone="warn"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill[data-tone="info"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill[data-tone="danger"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.trust-list {
  display: grid;
  gap: 0;
  padding: 2px 18px 16px;
}

.trust-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.trust-row:last-child {
  border-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.value,
code,
.mono {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.value {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

main {
  padding: 26px 0 54px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.health-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.health-panel[data-state="ok"] {
  border-color: #abd4c1;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
}

.health-panel[data-state="info"] {
  border-color: #b7cce1;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.health-panel[data-state="warn"] {
  border-color: #ead09a;
  background: linear-gradient(180deg, #ffffff 0%, #fff9eb 100%);
}

.health-panel[data-state="error"] {
  border-color: #e4b0aa;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f3 100%);
}

.health-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.health-copy {
  min-width: 0;
}

.health-copy p:last-child {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.health-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.health-checks li {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.check-token {
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
}

.check-token[data-state="warn"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-token[data-state="info"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.check-token[data-state="error"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.check-title {
  font-size: 0.86rem;
  font-weight: 800;
}

.check-detail {
  color: var(--muted);
  font-size: 0.78rem;
}

.warning {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid #ead09a;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #533908;
  font-size: 0.93rem;
}

.warning[hidden] {
  display: none;
}

.warning-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}

.section-heading p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.endpoint {
  min-width: 0;
}

.endpoint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.endpoint-body {
  display: grid;
  gap: 14px;
  padding: 14px 18px 18px;
}

.endpoint p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.url-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
}

.url {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-button {
  min-height: 32px;
  color: #ecf4ef;
  border-color: rgba(236, 244, 239, 0.28);
  background: rgba(236, 244, 239, 0.08);
  font-size: 0.78rem;
}

.action-button:hover,
.action-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(34, 95, 156, 0.16);
  outline-offset: 1px;
}

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

.meta {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
}

.meta b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.meta span {
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.command-shell,
.snippet {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101816;
  color: #ecf4ef;
  overflow: hidden;
}

.command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(236, 244, 239, 0.14);
  color: #bdd0c5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command,
.snippet code {
  min-width: 0;
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #ecf4ef;
  font-size: 0.8rem;
}

.command code,
.snippet code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.detail-grid.compact {
  margin-top: 0;
}

.detail {
  min-width: 0;
  padding: 18px;
}

.detail p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.detail-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 0.91rem;
}

.detail-list b {
  color: var(--ink);
  font-size: 0.82rem;
}

.detail-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  color: var(--muted);
  font-size: 0.91rem;
}

.checkmark {
  display: grid;
  min-width: 34px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
}

.onboarding {
  margin-top: 28px;
}

.policy-grid {
  margin-top: 2px;
}

.foot {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot .shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1040px) {
  .health-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  h1 {
    font-size: 3.5rem;
  }

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

  .hero-grid {
    align-items: start;
  }

  .trust-panel {
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.55rem;
  }

  .topbar,
  .section-heading,
  .foot .shell,
  .health-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .masthead {
    padding-top: 22px;
  }

  .trust-row,
  .meta-grid,
  .url-line,
  .health-checks {
    grid-template-columns: 1fr;
  }

  .url-line {
    align-items: stretch;
  }

  .action-button {
    width: 100%;
  }

  .command,
  .snippet code {
    font-size: 0.72rem;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .trust-row {
    gap: 4px;
  }
}
