:root {
  --green: #2c5530;
  --green-soft: #4a7c59;
  --paper: #f7f5ef;
  --ink: #1f2933;
  --beige: #d9c7a3;
  --gold: #c9973a;
  --card: #fffdf8;
  --line: #e4dccb;
  --focus: #c9973a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: var(--green); }

a:hover { color: var(--green-soft); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 2;
}

.skip:focus { top: 12px; }

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

.brand {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 8px 0 0;
  max-width: 38rem;
}

h1, h2, h3 { line-height: 1.25; }

h1 { font-size: 1.8rem; margin: 8px 0 0; }

h2 { font-size: 1.25rem; margin: 0 0 8px; }

.card, .risk-card, .action-card, .missing-card, .score-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.button, button, .text-link {
  font: inherit;
}

.button, button {
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: white;
  padding: 10px 18px;
  cursor: pointer;
}

.button.secondary, button.secondary {
  background: transparent;
  color: var(--green);
}

button:disabled { opacity: 0.6; cursor: wait; }

.nav-row, .wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

label, .field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.hint, .severity, .meta {
  color: #3d4a43;
  margin: 0 0 12px;
}

.field { margin-top: 22px; }

input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid #c9bfae;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: white;
  color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.choices { display: grid; gap: 8px; }

.choice {
  position: relative;
  display: block;
  margin: 0;
  font-weight: 500;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 2px solid #c9bfae;
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}

.choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice input:checked + span {
  border-color: var(--green);
  background: #e7f0e8;
  font-weight: 700;
}

fieldset {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
}

legend.field-label { padding: 0; }

.choice.emphasis input:checked + span {
  border-color: var(--gold);
  background: #f8f1df;
}

.error {
  background: #fff4e8;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
}

.progress-label { font-weight: 700; margin-bottom: 0; }

.score-card { border-top: 8px solid var(--green); }

.score-number {
  font-size: 3rem;
  font-weight: 750;
  margin: 0;
  color: var(--green);
}

.score-label { font-size: 1.15rem; font-weight: 700; margin: 4px 0; }

.action-card, .risk-card { display: grid; gap: 4px; }

.risk-card { border-left: 8px solid var(--gold); }

.missing-card { border-left: 8px solid var(--green-soft); }

.action-list, .missing-list { list-style: none; padding: 0; margin: 0; }

.action-list li, .missing-list li { margin-top: 12px; }

.delta {
  background: #f3ecdc;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}

.chat-card { margin-top: 28px; }

.price {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 2rem;
  font-weight: 700;
}

.plan-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.plan-card ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.plan-card .price { font-size: 1.7rem; }

.plan-card button { width: 100%; }

@media (min-width: 720px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
}

.billing-notice {
  background: #f3ecdc;
  border-radius: 12px;
  padding: 12px 14px;
}

.starters, .chat-log { display: grid; gap: 8px; }

.starters { margin: 12px 0; }

.starters button, .chat-card .secondary {
  background: transparent;
  color: var(--green);
}

.chat-bubble {
  border-radius: 12px;
  padding: 12px 14px;
  background: #f3ecdc;
}

.chat-bubble.assistant { background: #e7f0e8; }

.chat-bubble p { margin: 4px 0 0; white-space: pre-wrap; }

.quiet { color: #3d4a43; }

@media (min-width: 720px) {
  h1 { font-size: 2.1rem; }
  .choices.compact { grid-template-columns: 1fr 1fr; }
  .choice.emphasis { grid-column: 1 / -1; }
}
