:root {
  --navy: #0b2545;
  --navy-soft: #13315c;
  --teal: #0f8b8d;
  --teal-dark: #0b6e70;
  --sand: #f6f1e9;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #dfe3ea;
  --good: #1f7a4d;
  --warn: #9a5b00;
  --bad: #b3261e;
  --radius: 12px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fbfaf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.5;
}

a {
  color: var(--teal-dark);
}

.demo-banner {
  background: var(--navy);
  color: #dfe9f5;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  text-align: center;
}

.demo-banner a {
  color: #fff;
}

.top {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.9rem 2rem;
}

.brand {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 1.2rem;
  font-weight: 700;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 8px;
  color: #fff;
  display: inline-grid;
  font-size: 1rem;
  height: 32px;
  place-items: center;
  width: 32px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.1rem;
}

.nav a {
  color: var(--navy-soft);
  font-weight: 500;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem;
}

.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 55%, var(--teal) 130%);
  border-radius: var(--radius);
  color: #fff;
  padding: 3rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.hero p {
  color: #d9e6f2;
  font-size: 1.1rem;
  max-width: 55ch;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

.card.narrow {
  margin: 0 auto;
  max-width: 460px;
}

.card h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.made-card {
  border-top: 4px solid var(--teal);
}

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

.small {
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}

button,
.button {
  background: #fff;
  border: 1px solid var(--navy-soft);
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
}

button.primary,
.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

button.primary:hover,
.button.primary:hover {
  background: var(--teal-dark);
}

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

.hero .button {
  border-color: #fff;
}

.hero .button:not(.primary) {
  background: transparent;
  color: #fff;
}

.form {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form label {
  color: var(--muted);
  display: grid;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.25rem;
}

.form .full {
  grid-column: 1 / -1;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

input:focus {
  border-color: var(--teal);
  outline: 2px solid rgb(15 139 141 / 20%);
}

.field-error {
  color: var(--bad);
  font-size: 0.8rem;
  font-weight: 500;
}

.status {
  border-radius: 8px;
  margin: 0.75rem 0 0;
  min-height: 1.5rem;
}

.status:not(:empty) {
  background: var(--sand);
  padding: 0.6rem 0.8rem;
}

.status.error:not(:empty) {
  background: #fdecea;
  color: var(--bad);
}

.facts {
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.facts dd {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
}

.pill.good {
  background: #e3f4ea;
  color: var(--good);
}

.pill.warn {
  background: #fdf1dc;
  color: var(--warn);
}

.pill.neutral {
  background: #eef1f5;
  color: var(--navy-soft);
}

.hidden {
  display: none !important;
}

table {
  border-collapse: collapse;
  font-size: 0.92rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.events {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding-left: 1.2rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps > li {
  border-left: 3px solid var(--teal);
  counter-increment: step;
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
}

.steps > li h3::before {
  color: var(--teal);
  content: counter(step) ". ";
}

pre {
  background: #0f1b2d;
  border-radius: 8px;
  color: #e5edf7;
  font-size: 0.82rem;
  overflow-x: auto;
  padding: 0.9rem 1rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

p code,
li code,
td code {
  background: #eef1f5;
  border-radius: 4px;
  font-size: 0.85em;
  padding: 0.05rem 0.3rem;
}

footer {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem;
  text-align: center;
}
