*, *::before, *::after { box-sizing: border-box; }

:root {
  --error: #9b2c1f;           /* not a brand token: 6.9:1 on --page */
  --line: rgba(40, 54, 24, .25);
  --tint: rgba(96, 108, 56, .08);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--accent-deep);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--header); color: var(--page); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--page); text-decoration: none; display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-sub { font-size: .85rem; opacity: .85; }
nav { display: flex; gap: 18px; }
nav a { color: var(--page); text-decoration: none; font-size: .95rem; padding-bottom: 2px; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--page); }

.demo-banner { background: var(--accent-deep); color: var(--page); font-size: .88rem; padding: 8px 0; }

/* Main */
main { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 1.8rem; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 0 0 16px; }
.lede { margin: 0 0 24px; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; counter-reset: s; font-size: .9rem; }
.steps li { flex: 1; padding: 8px 10px; border-top: 3px solid var(--line); }
.steps li.active { border-top-color: var(--accent); font-weight: 600; }
.steps li.done { border-top-color: var(--accent-deep); }

.card { border: 1px solid var(--line); border-radius: var(--Soft); padding: 22px; box-shadow: var(--Depth); margin-bottom: 28px; }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--accent-deep);
  background: var(--page); border: 1px solid var(--accent-deep); border-radius: var(--Soft);
}
input:focus, select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .85rem; margin: 6px 0 0; }
.tag { font-weight: 400; font-size: .78rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--Soft); padding: 1px 6px; margin-left: 6px; }
.error { color: var(--error); font-weight: 600; margin: 0 0 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  background: var(--accent); color: var(--page); border: 0; border-radius: var(--Soft);
  padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover, .btn:active { background: var(--accent-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--tint); color: var(--accent-deep); }
.actions { display: flex; gap: 12px; justify-content: flex-end; }

.bill { margin: 0 0 22px; background: var(--tint); border-radius: var(--Soft); padding: 4px 16px; }
.bill div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bill div:last-child { border-bottom: 0; }
.bill dt { font-weight: 600; }
.bill dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.bill .total dd { font-size: 1.2rem; font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

.help ul { padding-left: 18px; margin: 0; }
.help li { margin-bottom: 6px; }

.site-footer { background: var(--header); color: var(--page); font-size: .85rem; padding: 18px 0; }
