:root {
  font-family: system-ui, sans-serif;
  color: #193b50;
  background: #f5f5ef;
  --navy: #1f4e78;
  --teal: #236c71;
  --muted: #4f6869;
  --line: #d8e1d8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 3px solid #aa7600; outline-offset: 4px; }
.top, main, footer { max-width: 1040px; margin: auto; padding-inline: 28px; }
.top, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top { min-height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); letter-spacing: .08em; }
.brand small { display: block; margin-top: 5px; font-size: .65rem; letter-spacing: .17em; }
.mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: white; font-weight: 800; transform: rotate(-5deg); }
.mark span { position: absolute; right: -6px; top: -12px; color: #a26d00; font-size: 1.4rem; }
.badge, .eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.badge { color: var(--teal); border: 1px solid #b9cfbd; border-radius: 999px; padding: 8px 11px; text-align: center; }
main { min-height: 68vh; padding-block: 50px; }
h1, h2, p { margin: 0; }
h1 { color: var(--navy); letter-spacing: -.055em; line-height: 1.04; font-size: clamp(2.4rem, 6.5vw, 5.3rem); margin-block: 12px 18px; }
h2 { letter-spacing: -.035em; font-size: clamp(1.45rem, 4vw, 2rem); }
p { line-height: 1.55; }
.eyebrow { display: block; color: var(--teal); }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(26px, 6vw, 78px); align-items: center; padding-block: 18px 30px; }
.hero p, .muted { color: var(--muted); }
.hero p { max-width: 46ch; font-size: 1.13rem; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.primary, .secondary { border-radius: 9px; font-weight: 700; padding: 12px 17px; border: 1px solid var(--navy); }
.primary { background: var(--navy); color: white; }
.primary:not(:disabled):hover { background: #173e60; }
.secondary { background: white; color: var(--navy); }
.demo-card, .panel { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 32px); }
.demo-card { border-top: 6px solid var(--teal); box-shadow: 10px 13px 0 #e0ebe1; }
.demo-card h2 { margin: 10px 0 15px; }
.categories { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.categories li { display: flex; align-items: center; gap: 12px; }
.categories span { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--color); }
.quest-head h1, .finish h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 10px; }
.progress { width: 100%; height: 8px; accent-color: var(--teal); margin-block: 13px 24px; display: block; }
.panel h2 { margin: 6px 0 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 19px; }
.choice { text-align: left; padding: 16px; border: 2px solid var(--line); background: #fafbf8; border-radius: 12px; color: inherit; }
.choice strong, .choice span { display: block; }
.choice span { font-size: .91rem; line-height: 1.45; margin-top: 6px; }
.choice:not(:disabled):hover, .choice[aria-pressed="true"] { border-color: var(--teal); }
.choice[aria-pressed="true"] { background: #e6f3ed; }
.reveal { background: #edf5ee; border-left: 4px solid var(--teal); padding: 15px 18px; margin-top: 18px; }
.finish .panel { margin-top: 22px; max-width: 700px; }
fieldset { border: 0; padding: 0; margin: 16px 0; }
legend, label[for] { font-weight: 650; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; }
.radio-row label { display: flex; gap: 5px; align-items: center; }
textarea { display: block; width: 100%; min-height: 70px; padding: 9px; border: 1px solid #aebdb2; border-radius: 7px; margin: 5px 0 14px; }
.form-status { margin-top: 10px; }
footer { min-height: 75px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 620px) {
  .top, main, footer { padding-inline: 18px; }
  .top { min-height: 76px; }
  .brand { font-size: .76rem; }
  .brand small, .badge { font-size: .58rem; }
  .mark { width: 36px; height: 36px; }
  main { padding-block: 30px; }
  .hero { grid-template-columns: 1fr; padding-top: 0; }
  .choices { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 18px; }
}
