:root {
  --bg-soft: #eaf2fb;
  --bg-mid: #d3e2f4;
  --bg-deep: #1e3a8a;
  --surface: #ffffff;
  --surface-muted: #f3f7fc;
  --ink: #0b1f3a;
  --ink-muted: #3d5378;
  --line: #c7d8ec;
  --line-strong: #94b5e0;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-soft: #dbeafe;
  --brand-text: #1e3a8a;
  --focus: #2563eb;
  --shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #cfe0f6, transparent 35%),
    radial-gradient(circle at top right, #e3ecf9, transparent 40%),
    linear-gradient(180deg, #f3f7fc 0%, var(--bg-soft) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

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

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

.hero {
  padding: 32px;
  margin-bottom: 20px;
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 22ch;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.lede,
.notes,
.status,
label span,
p,
li {
  line-height: 1.6;
}

.lede {
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

label > span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.inline {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
}

.inline > span {
  font-weight: 500;
  color: var(--ink);
}

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

input[type="number"],
input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 120ms ease, transform 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--brand);
  color: #ffffff;
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  background: var(--bg-deep);
  color: #ffffff;
}

.secondary:hover {
  background: #172e6e;
}

.ghost {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.ghost:hover {
  background: #c7dbf7;
}

.disclaimer {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  margin: 18px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.disclaimer span {
  color: var(--ink);
}

.status {
  margin: 6px 0 0;
  color: var(--brand-dark);
  min-height: 24px;
}

.status.error {
  color: #9b1c1c;
}

.answer {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.hidden {
  display: none;
}

.pill {
  display: inline-block;
  margin: 0 0 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

a:hover {
  color: var(--brand);
}

.notes {
  padding-left: 20px;
  color: var(--ink-muted);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.steps li.is-current {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.steps li.is-done {
  background: var(--brand-soft);
  color: var(--brand-text);
  border-color: var(--line-strong);
}

.steps .step-num {
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.actions .secondary,
.actions .primary,
.actions .ghost {
  min-width: 140px;
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 960px);
    padding-top: 20px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .actions .secondary,
  .actions .primary,
  .actions .ghost {
    width: 100%;
  }
}
