:root {
  --navy: #223659;
  --navy-dark: #1a2944;
  --orange: #fe4318;
  --orange-light: #fdd8ca;
  --yellow: #f4c430;
  --red: #d93025;
  --blue: #1a56d6;
  --green: #1e8e3e;
  --grey: #666666;
  --cream: #fdf7ea;
  --white: #ffffff;
  --border: #d9dee8;
  --ink: #223659;
  --font-display: "Raleway", "Segoe UI", sans-serif;
  --font-number: "Roboto Condensed", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cream);
}

body {
  font-family: "Raleway", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy-dark);
  padding: 14px;
}

.sheet {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 6px 6px 0 rgba(31, 56, 100, 0.08);
}

.doodle {
  position: absolute;
  color: var(--navy);
  opacity: 0.9;
  pointer-events: none;
}

.header {
  background: var(--white);
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
  border-bottom: 2.5px dashed var(--border);
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo-mark {
  height: 46px;
  flex-shrink: 0;
}

.logo-mark img {
  height: 100%;
  width: auto;
  display: block;
}

.header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 6.5vw, 34px);
  color: var(--navy);
  margin: 10px 0 12px;
  position: relative;
  display: inline-block;
}

.pill-banner {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: 99px;
  border: 2px solid var(--navy);
}

.wrap {
  padding: 22px 22px 30px;
  position: relative;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 4px 2px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.progress-track {
  flex: 1;
  height: 10px;
  background: var(--cream);
  border: 1.5px solid var(--navy);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.progress-label {
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  min-width: 54px;
  text-align: right;
}

.pillar-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-badge {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.pillar-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--navy);
  margin: 0 0 22px;
  line-height: 1.35;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 18px;
  border: 2px solid var(--navy);
  background: var(--white);
  border-radius: 12px;
  font-size: 15px;
  color: var(--navy-dark);
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}

.option-icon {
  width: 23px;
  height: 18px;
  flex-shrink: 0;
}

.option-text { flex: 1; }

.option-btn:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.intro { text-align: center; padding: 8px 4px; }

.intro h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 10px;
}

.intro p {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 15px 18px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.btn-primary:hover { filter: brightness(1.05); }

.field {
  margin-bottom: 14px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: var(--orange);
}

.sticky-note {
  background: #fff4c2;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--navy-dark);
  margin: 0 0 16px;
  transform: rotate(-1deg);
  position: relative;
}

.sticky-note b { color: var(--orange); }

.teaser-score {
  text-align: center;
  padding: 6px 0 18px;
}

.grade-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: var(--white);
}

.grade-circle.grade-red { border-color: var(--red); }
.grade-circle.grade-blue { border-color: var(--blue); }
.grade-circle.grade-green { border-color: var(--green); }

.grade-circle span {
  font-family: var(--font-number);
  font-size: 40px;
  font-weight: 700;
}

.grade-circle.grade-red span { color: var(--red); }
.grade-circle.grade-blue span { color: var(--blue); }
.grade-circle.grade-green span { color: var(--green); }

.parabens {
  font-family: var(--font-display);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 14px;
}

.diagnosis-text {
  color: var(--grey);
  font-size: 15px;
  margin: 0 0 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
}

.section-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.breakdown-section { margin: 4px 0 20px; }

.next-quiz-section {
  margin: 20px 0 4px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border);
}

.next-quiz-intro {
  text-align: center;
  font-size: 12.5px;
  color: var(--grey);
  margin: 0 0 12px;
}

.next-quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.next-quiz-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s, transform 0.1s;
}

.next-quiz-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.next-quiz-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
}

.next-quiz-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}

.next-quiz-text b {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--navy);
}

.next-quiz-text small {
  font-size: 9.5px;
  color: var(--grey);
}

.ladder-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin: 4px 0 18px;
  text-align: center;
}

.ladder-bar {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.ladder-seg {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: var(--border);
}

.ladder-seg.filled { background: var(--orange-light); }
.ladder-seg.current { background: var(--orange); box-shadow: 0 0 0 2px var(--navy) inset; }

.ladder-numbers {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 4px;
  font-family: var(--font-number);
  font-size: 11px;
  color: var(--grey);
}

.ladder-numbers .active { color: var(--navy); font-weight: 700; }

.ladder-current {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 15px;
  margin: 10px 0 0;
}

.ladder-next {
  text-align: left;
  margin-top: 12px;
  margin-bottom: 0;
}

.insights-section { margin: 4px 0 18px; }

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.insight-item.tier-red { border-left: 4px solid var(--red); }
.insight-item.tier-blue { border-left: 4px solid var(--blue); }
.insight-item.tier-green { border-left: 4px solid var(--green); }

.insight-dot {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-weight: 700;
  font-size: 13px;
}

.insight-item.tier-red .insight-dot { background: #fde3e0; color: var(--red); }
.insight-item.tier-blue .insight-dot { background: #e3ebfb; color: var(--blue); }
.insight-item.tier-green .insight-dot { background: #e1f3e5; color: var(--green); }

.insight-body b {
  display: block;
  font-size: 11.5px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.insight-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--navy-dark);
  line-height: 1.42;
}

.pillar-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}

.pillar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}

.pillar-row .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.pillar-row .badge {
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  border: 2px solid;
}

.badge.grade-red { color: var(--red); border-color: var(--red); }
.badge.grade-blue { color: var(--blue); border-color: var(--blue); }
.badge.grade-green { color: var(--green); border-color: var(--green); }

.mini-note {
  background: #fff7ef;
  border: 1.5px dashed var(--orange);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #7a4c1e;
  margin-top: 16px;
}

.footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--grey);
  padding: 14px 0 4px;
}
