/* ============================================================================
 * BOTS & PEOPLE — COURSE FINDER · STYLES
 * Official B&P brand tokens. Do not introduce off-brand values.
 * ========================================================================== */

:root {
  /* Primary brand */
  --bp-violet:   #6C3EF8;
  --bp-blue:     #251363;
  --bp-green:    #ACEEA6;
  /* Secondary brand */
  --bp-indigo:   #9172FA;
  --bp-lavender: #E4DCFE;
  --bp-lilac:    #BAA7FC;
  --bp-yellow:   #FDEE91;
  --bp-sorbet:   #F7FFBD;
  --bp-bg-gray:  #F9F9F9;
  --bp-bg-pink:  #FAF8FF;
  --bp-white:    #FFFFFF;
  /* Semantic */
  --background:  var(--bp-bg-gray);
  --foreground:  var(--bp-blue);
  --muted:       rgba(37, 19, 99, 0.62);
  --surface:     var(--bp-white);
  --border:      rgba(108, 62, 248, 0.16);
  --shadow:      0 4px 20px rgba(108, 62, 248, 0.12);
  --shadow-soft: 0 2px 10px rgba(108, 62, 248, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100%;
}

.container { margin: 0 auto; width: 100%; max-width: 44rem; padding: 0 1.5rem; }

.site-header {
  padding: 1.5rem 0 0.5rem;
}
.site-logo { display: block; height: 1.75rem; width: auto; }

.page { position: relative; margin: 0 auto; width: 100%; max-width: 44rem; padding: 1.5rem 1.5rem 4rem; }

/* ---------- shared components ---------- */

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; background: var(--bp-lavender);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 600;
  color: var(--bp-violet); margin-bottom: .75rem;
}

.btn-primary {
  display: inline-flex; height: 3rem; align-items: center; justify-content: center;
  border: none; border-radius: 999px; background: var(--bp-violet);
  padding: 0 1.75rem; font-family: inherit; font-size: 1rem; font-weight: 600;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 20px rgba(108, 62, 248, 0.25);
  transition: opacity .15s, box-shadow .15s;
}
.btn-primary:hover { opacity: .95; box-shadow: 0 6px 24px rgba(108, 62, 248, 0.32); }

.btn-light {
  display: inline-flex; height: 2.5rem; align-items: center; justify-content: center;
  border: none; border-radius: 999px; background: #fff; padding: 0 1.25rem;
  font-family: inherit; font-size: .875rem; font-weight: 600;
  color: var(--bp-violet); cursor: pointer; transition: opacity .15s;
}
.btn-light:hover { opacity: .9; }

.btn-white {
  display: inline-flex; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: 999px; background: #fff; padding: 0 1.5rem;
  font-size: .875rem; font-weight: 600; color: var(--bp-violet);
  text-decoration: none; transition: opacity .15s; margin-top: 1.25rem;
}
.btn-white:hover { opacity: .9; }

.btn-ghost {
  display: inline-flex; height: 3rem; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  padding: 0 1.5rem; font-family: inherit; font-size: .9rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--bp-violet); color: var(--bp-violet); }

.card {
  border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-soft);
}
.card-kicker { font-size: .75rem; font-weight: 600; color: var(--bp-violet); }

/* ---------- start page ---------- */

.start-page { display: flex; min-height: calc(100vh - 6rem); align-items: center; overflow: hidden; }
.start-inner { position: relative; width: 100%; max-width: 38rem; }

.blob {
  position: absolute; border-radius: 999px; filter: blur(64px);
  pointer-events: none;
}
.blob-1 {
  top: -8rem; left: -10rem; height: 24rem; width: 24rem; opacity: .5;
  background: linear-gradient(135deg, var(--bp-lilac), var(--bp-bg-pink));
}
.blob-2 {
  top: 16rem; right: -12rem; height: 28rem; width: 28rem; opacity: .4;
  background: linear-gradient(135deg, var(--bp-lavender), var(--bp-sorbet));
}

.headline {
  font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--bp-blue);
}
.intro { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); }

.bullets {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr;
  gap: .5rem .75rem; list-style: none; font-size: .875rem;
}
@media (min-width: 560px) { .bullets { grid-template-columns: 1fr 1fr; } }
.bullets li { display: flex; align-items: flex-start; gap: .5rem; color: rgba(37,19,99,.85); }
.bullets .arrow { color: var(--bp-violet); margin-top: .1rem; }

.start-page .btn-primary { margin-top: 2.5rem; }

/* ---------- question stepper ---------- */

.question-page { display: flex; flex-direction: column; gap: 1.6rem; }

.pills { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.pill {
  height: .5rem; width: 1.4rem; border: none; border-radius: 999px;
  background: rgba(108, 62, 248, 0.15); cursor: default; padding: 0;
  transition: background .2s;
}
.pill-done { background: var(--bp-violet); cursor: pointer; }
.pill-current { background: var(--bp-lilac); }

.counter { font-size: .875rem; font-weight: 500; color: var(--muted); }

.q-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; color: var(--bp-blue); }
.q-oneliner { margin-top: .5rem; color: var(--muted); }

.anchors { display: grid; gap: .625rem; }
.anchor {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 1rem 1.15rem; font-family: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.anchor:hover { border-color: rgba(108, 62, 248, 0.45); box-shadow: var(--shadow-soft); }
.anchor-selected {
  border-color: var(--bp-violet); background: var(--bp-bg-pink);
  box-shadow: 0 2px 10px rgba(108, 62, 248, 0.12);
}
.anchor { display: flex; align-items: flex-start; gap: 1rem; }
.anchor-num {
  display: inline-flex; height: 1.9rem; width: 1.9rem; flex: none;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--bp-lavender); font-size: .8rem; font-weight: 700;
  color: var(--bp-violet); margin-top: .1rem;
}
.anchor-num-selected { background: var(--bp-violet); color: #fff; }
.anchor-label { display: block; font-size: .72rem; font-weight: 600; color: var(--bp-violet); }
.anchor-desc { display: block; margin-top: .2rem; color: var(--foreground); }

.q-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.kbd-hint { font-size: .78rem; color: var(--muted); }

/* ---------- results ---------- */



.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.level-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .5rem 1.4rem; font-size: 1.35rem; font-weight: 700;
}
.confetti { height: 3rem; width: 3rem; }
.result-blurb { margin-top: 1rem; max-width: 40rem; font-size: 1.1rem; color: rgba(37,19,99,.85); }

.course-card {
  margin-top: 2.25rem; border-radius: 24px; padding: 1.75rem; color: #fff;
  background: linear-gradient(135deg, var(--bp-violet), var(--bp-blue));
  box-shadow: 0 8px 32px rgba(37, 19, 99, 0.18);
}
.course-card-top { display: flex; align-items: center; justify-content: space-between; }
.course-kicker { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.gradcap { height: 3rem; width: 3rem; }
.course-name { margin-top: .5rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.course-intro { margin-top: .9rem; font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.92); }
.course-hint { margin-top: .75rem; font-size: .82rem; color: rgba(255,255,255,.75); }

.section-title { margin-top: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--bp-blue); }
.section-hint { margin-top: .25rem; font-size: .85rem; color: var(--muted); }

.chart-section { margin-top: 3rem; }
.chart-card { margin-top: 1rem; padding: 1.75rem; }

.two-col { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .two-col { grid-template-columns: 1fr 1fr; } }

.score-list { margin-top: .75rem; list-style: none; display: grid; gap: .7rem; }
.score-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; font-weight: 500; }
.score-chip {
  display: inline-flex; height: 1.75rem; width: 1.75rem; flex: none;
  align-items: center; justify-content: center; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.chip-green { background: rgba(172, 238, 166, 0.4); color: var(--bp-blue); }
.chip-lavender { background: var(--bp-lavender); color: var(--bp-violet); }

.explore-section { margin-top: 2.75rem; }
.explore-list { margin-top: 1rem; display: grid; gap: .55rem; }
.explore-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: .85rem 1.15rem; box-shadow: var(--shadow-soft);
}
.explore-title { font-size: .92rem; font-weight: 600; color: var(--bp-blue); }
.explore-who { margin-top: .1rem; font-size: .8rem; color: var(--muted); }
.explore-link {
  flex: none; font-size: .85rem; font-weight: 600; color: var(--bp-violet);
  text-decoration: none; white-space: nowrap;
}
.explore-link:hover { text-decoration: underline; }

.result-actions { margin-top: 3rem; display: flex; gap: .875rem; flex-wrap: wrap; }

/* ---------- print (Download as PDF) ---------- */

@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff; }
  .no-print { display: none !important; }
  .page, .container { max-width: 100%; padding: 0; }
  .site-header { padding: 0 0 1rem; }
  .blob { display: none; }
  .course-card {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .level-badge, .score-chip, .anchor-num, .badge {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .card, .course-card { box-shadow: none; }
  .chart-section, .two-col, .explore-section { break-inside: avoid; }
}
