:root {
  --bg: #f5f2eb;
  --card: #ffffff;
  --ink: #202020;
  --muted: #777777;
  --line: #1f1f1f;
  --blue: #43a6cf;
  --blue-light: #a9d8e8;
  --yellow: #e9c92f;
  --red: #f04444;
  --orange: #d8863d;
  --green: #18b998;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 30px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.brand-mark,
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--blue-light);
  font-weight: 900;
  flex: 0 0 auto;
}

.topnav {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.topnav a {
  border-bottom: 2px solid transparent;
}

.topnav a:hover { border-color: var(--line); }

h1, h2 {
  font-family: Georgia, serif;
  line-height: 1.03;
  margin: 10px 0 12px;
}

h1 { font-size: clamp(42px, 13vw, 72px); }
h2 { font-size: clamp(30px, 8vw, 46px); }
h3 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0; }

p { margin: 0 0 14px; }

.lede {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.outlined {
  background: var(--card);
  border: 4px solid var(--line);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--line);
}

.hero-card,
.setup,
.flow,
.assessment,
.results {
  padding: 24px;
  margin-bottom: 26px;
}

.hero-icon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.icon-circle.blue { background: var(--blue-light); }
.icon-circle.yellow { background: var(--yellow); }
.icon-circle.green { background: var(--green); }
.icon-circle.orange { background: var(--orange); }
.icon-circle.red { background: var(--red); color: #fff; }

.button-stack,
.flow-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.btn,
.choice,
.text-button {
  min-height: 52px;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--card);
  color: var(--ink);
  font: 800 16px/1 Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
}

.btn.primary { background: var(--blue); color: #06141a; }
.btn.secondary { background: var(--blue-light); }
.btn.ghost { background: #fff; }
.btn:hover, .choice:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--line); }

.section-heading .eyebrow {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.form-grid,
.agreement form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.35 Arial, Helvetica, sans-serif;
}

textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; font-weight: 700; }

.feature-list,
.summary-grid {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 18px;
  border-radius: 24px;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.progress-track {
  height: 15px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  transition: width .2s ease;
}

.flow-step,
.assessment-screen {
  display: none;
}

.flow-step.active,
.assessment-screen.active {
  display: block;
}

.completion { text-align: center; }

.choice-grid,
.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.choice-grid.single { grid-template-columns: 1fr; }
.choice.wide { grid-column: 1 / -1; }
.choice.selected { background: var(--yellow); }

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

.check-row input { width: 22px; height: 22px; }

.assessment-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.text-button {
  min-height: 42px;
  padding: 9px 13px;
  box-shadow: none;
}

.load-definitions {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.load-definitions article,
.item-card,
.result-section {
  border: 3px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
}

.item-category {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-card ul,
.conversation-list {
  padding-left: 20px;
}

.item-card li,
.conversation-list li {
  margin-bottom: 8px;
}

.hidden { display: none !important; }

.slider-block {
  border: 3px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 15px;
  margin-bottom: 14px;
}

.slider-block label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--yellow);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-grid article {
  border: 3px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
}

.summary-grid strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.summary-grid span {
  color: var(--muted);
  font-weight: 800;
}

.result-section { margin-top: 18px; }

.category-card {
  border-top: 3px solid var(--line);
  padding: 13px 0;
}

.category-card:first-child { border-top: 0; }

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 46px;
  gap: 8px;
  align-items: center;
  margin-bottom: 13px;
  font-size: 14px;
  font-weight: 900;
}

.bar-row div {
  height: 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.bar-row span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--blue);
}

.footer {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 680px) {
  .app-shell { padding-top: 30px; }
  .hero-card, .setup, .flow, .assessment, .results { padding: 34px; }
  .feature-list, .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-grid { grid-template-columns: repeat(5, 1fr); }
  .flow-actions { grid-template-columns: 1fr 1fr; }
}

@media print {
  .topbar, .footer, .btn { display: none; }
  body { background: #fff; }
  .outlined, .result-section, .summary-grid article { box-shadow: none; }
}
