:root {
  --blue: #1649dc;
  --ink: #172a50;
  --muted: #65708a;
  --paper: #f5f7fb;
  --line: #dce3ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.8;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: var(--blue);
}
header {
  max-width: 1180px;
  margin: auto;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
}
.logo span {
  font-size: 11px;
  letter-spacing: 2px;
  display: block;
}
.tag {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 30px;
  background: white;
}
.demo {
  background: #fff4d8;
  text-align: center;
  font-size: 12px;
  padding: 8px 16px;
  color: #694e12;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 50px 30px 70px;
}
.eyebrow {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--blue);
}
h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.35;
  letter-spacing: -2px;
  margin: 20px 0;
}
h1 em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(transparent 77%, #dee8ff 0);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}
.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 18px 28px;
  font-weight: bold;
  box-shadow: 0 6px 0 #0d2d91;
  transition: transform 0.15s;
}
.primary:hover {
  transform: translateY(-2px);
}
.tiny {
  font-size: 12px;
  color: var(--muted);
}
.hero .primary {
  margin-top: 20px;
}
.art {
  position: relative;
  padding: 32px 15px;
  background: radial-gradient(#cdd9ef 1px, transparent 1px);
  background-size: 15px 15px;
}
.bubble {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 9px 25px #172a500a;
  margin-bottom: 17px;
}
.bubble:nth-child(2) {
  margin-left: 45px;
  transform: rotate(3deg);
}
.bubble:first-child {
  margin-right: 30px;
  transform: rotate(-3deg);
}
.bubble strong {
  display: block;
  font-size: 21px;
}
.bubble small {
  font-size: 11px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  background: #e9efff;
  color: var(--blue);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 11px;
  margin-bottom: 8px;
}
.mini-bars {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 55px;
  margin-top: 10px;
}
.mini-bars i {
  display: block;
  background: #b2c7ff;
  border-radius: 5px 5px 0 0;
  width: 22%;
}
.mini-bars i:nth-child(2) {
  background: var(--blue);
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 25px;
}
.strip b {
  display: block;
}
.strip p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0;
}
.num {
  color: var(--blue);
  font-family: monospace;
  margin-right: 10px;
}
.panel {
  max-width: 750px;
  margin: auto;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}
.track {
  height: 5px;
  background: #dfe5f0;
  border-radius: 8px;
}
.fill {
  height: 100%;
  background: var(--blue);
  border-radius: 8px;
  transition: width 0.3s;
}
.question {
  background: white;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 25px;
  box-shadow: 0 15px 45px #172a5007;
}
.question h2 {
  font-size: 29px;
  line-height: 1.6;
  margin: 10px 0;
}
.question p {
  color: var(--muted);
  font-size: 14px;
}
.options {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}
.option {
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.option:hover {
  border-color: var(--blue);
  background: #f6f8ff;
}
.option[aria-pressed='true'] {
  border: 2px solid var(--blue);
  padding: 15px 17px;
  background: #eef3ff;
}
.letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2f8;
  text-align: center;
  font: 12px/26px monospace;
  flex-shrink: 0;
}
.option[aria-pressed='true'] .letter {
  color: white;
  background: var(--blue);
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px;
}
.primary:disabled {
  background: #b1bdd4;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.results-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px;
}
.results-head h2 {
  font-size: 35px;
  line-height: 1.5;
}
.note {
  background: #fff4d8;
  color: #694e12;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.result-card {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 18px;
}
.result-card h3 {
  font-size: 19px;
  line-height: 1.6;
  margin: 10px 0 20px;
}
.bar-label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}
.bar-label.selected {
  color: var(--blue);
  font-weight: bold;
}
.bar {
  height: 9px;
  background: #edf1f7;
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
}
.bar div {
  height: 100%;
  background: #bac9e4;
  border-radius: 10px;
}
.bar.selected div {
  background: var(--blue);
}
.insight {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}
.finish {
  text-align: center;
  background: #e7eeff;
  padding: 30px;
  border-radius: 18px;
  margin-top: 25px;
}
.finish h3 {
  margin: 0 0 10px;
}
.finish p {
  font-size: 14px;
}
.finish .back {
  color: var(--blue);
}
footer {
  max-width: 1120px;
  margin: auto;
  padding: 25px 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
:focus-visible {
  outline: 3px solid #e49e17;
  outline-offset: 4px;
}
.options.multi .letter {
  border-radius: 6px;
}
.count-line {
  font-size: 14px;
  font-weight: bold;
  color: var(--blue);
  margin: -8px 0 8px;
}
