:root {
  --navy: #26215C;
  --purple: #534AB7;
  --purple-dark: #3C3489;
  --teal: #0F6E56;
  --teal-light: #1D9E75;
  --amber: #854F0B;
  --amber-light: #BA7517;
  --pink: #993556;
  --pink-light: #D4537E;
  --ink: #1A1A1A;
  --ink-secondary: #5F5E5A;
  --ink-tertiary: #8A8980;
  --border: #E2E0D8;
  --border-strong: #C9C7BC;
  --surface: #FFFFFF;
  --surface-muted: #F7F6F2;
  --danger: #993C1D;
  --success: #0F6E56;
  --radius-md: 8px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}

.page-wrap { min-height: 100vh; }

.view { width: 100%; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 20px 80px;
}

/* ===== Intro ===== */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 12px;
}

h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 16px;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 28px;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.intro-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: var(--ink-secondary);
}

.intro-card p:last-child { margin-bottom: 0; }

.intro-emphasis {
  color: var(--navy) !important;
  font-weight: 500;
}

.privacy-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.privacy-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 10px;
}

.privacy-card p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: var(--ink-secondary);
}

.privacy-card p:last-child { margin-bottom: 0; }

.scale-key-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}

.scale-key {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 32px;
}

.scale-key-item {
  max-width: 48%;
}

.scale-key-item-right {
  text-align: right;
}

.scale-key-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.scale-key-sub {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.field-row {
  margin-bottom: 18px;
}

.field-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-row input[type="text"],
.field-row input[type="email"],
.field-row select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.field-row input[type="text"]:focus,
.field-row input[type="email"]:focus,
.field-row select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.12);
}

.field-note {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  margin: 6px 0 0;
  line-height: 1.5;
}

.intro-error {
  font-size: 13px;
  color: var(--danger);
  margin: -6px 0 14px;
}

.time-note {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-top: 12px;
  text-align: center;
}

/* ===== Strengths picker (second question) ===== */

.traits-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trait-chip {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}

.trait-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.trait-chip.selected {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.trait-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trait-chip.disabled:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.traits-counter {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin: 0 0 20px;
}

@media (max-width: 520px) {
  .traits-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Buttons ===== */

.btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 22px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover { background: var(--surface-muted); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.btn-primary:hover { background: var(--purple-dark); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-lg {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Progress ===== */

.progress-shell {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  z-index: 10;
}

.survey-instruction {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 10px;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
}

/* ===== Question (one statement per screen) ===== */

#sections-container {
  padding-top: 48px;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin-bottom: 10px;
  animation: q-fade-in 0.2s ease;
}

.q-card-single .q-text {
  font-size: 18px;
}

.q-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 20px;
}

@keyframes q-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-nav {
  display: flex;
  justify-content: center;
  padding: 8px 0 40px;
}

.q-back-btn {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}

.q-back-btn:hover {
  color: var(--ink-secondary);
  text-decoration: underline;
}

.scale-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 2px;
}

/* Each point pairs a button with its own caption directly beneath it, so all seven
   points can carry a label without the captions drifting out of alignment with
   their button as text wraps to a second line. */
.scale-point {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.scale-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-muted);
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
}

.scale-btn:hover {
  border-color: var(--c-section, var(--purple));
}

.scale-btn.selected {
  background: var(--c-section, var(--purple));
  border-color: var(--c-section, var(--purple));
}

.scale-caption {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-secondary);
  padding: 0 2px;
  overflow-wrap: break-word;
}

/* v18: all seven labels share the same colour; the two endpoints stay bold so they
   still read as the defining ends of the scale. */
.scale-caption-strong {
  font-weight: 600;
}

/* ===== Submit row ===== */

.submit-row {
  padding: 8px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ===== Results: petal chart (sub-pillar level, relative to own average) ===== */

.petal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 12px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#petal-svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.petal-label { font-size: 15px; }
.petal-c-label { font-size: 12px; }

@media (max-width: 520px) {
  .petal-card { padding: 4px 4px 16px; }
  .petal-label { font-size: 21px; }
  .petal-c-label { font-size: 15px; }
}

.petal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink);
}

.petal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.petal-legend-key { font-size: 12px; color: var(--ink-secondary); }

.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-avg { width: 18px; border-top: 2px dotted var(--navy); }
.legend-band { width: 22px; height: 12px; background: #F1EFE9; border: 1px solid var(--border-strong); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 14px;
}

.summary-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.summary-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

.summary-body strong { font-weight: 600; }

/* ===== Words chosen, signature strengths, growth opportunities ===== */

.hl-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin: 0 0 2px;
}

.hl-sub {
  font-size: 12px;
  color: #6B6A63;
  margin: 0 0 12px;
}

.word-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.word-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}

.word-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.hl-item { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }

.hl-dot {
  flex-shrink: 0;
  margin-top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-sizing: border-box;
}

.hl-dot-hollow { border: 2px solid; background: transparent; }

.hl-text { display: flex; flex-direction: column; gap: 2px; }
.hl-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.hl-c { font-size: 12px; font-weight: 400; }
.hl-desc { font-size: 13px; line-height: 1.45; color: var(--ink-secondary); }

.hl-empty {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
}

p.summary-card.hl-empty { margin-bottom: 14px; }

.summary-card[hidden] { display: none; }

/* v18: intro sentence under each highlights heading, and the rank tag beside each name. */
.hl-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 6px 0 10px;
}
.hl-intro strong { font-weight: 600; }
.hl-rank {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8A8980;
  margin-left: 6px;
  white-space: nowrap;
}

/* v18: email prompt */
.email-card {
  background: #F4F3FB;
  border: 1px solid #D6D3EE;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.email-heading { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.email-text { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0; }
.email-row[hidden] { display: none; }
.email-row input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid #D6D3EE;
  border-radius: 8px;
  background: #FFFFFF;
}
.email-row input:focus { outline: none; border-color: var(--purple); }
.email-fine { margin: 0; }

/* v18: call to action */
.cta-card {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.cta-heading { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.cta-body { font-size: 14px; line-height: 1.55; color: #E9E7F6; margin: 0; }
.cta-body a { color: #FFFFFF; font-weight: 600; }
.cta-sign { font-size: 14px; font-style: italic; color: #E9E7F6; margin: 10px 0 0; }

.download-row {
  margin: 20px 0;
}

.results-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}

.results-actions[hidden] { display: none; }

.submit-status {
  font-size: 13px;
  margin-top: 12px;
  color: var(--success);
}

.submit-status.error { color: var(--danger); }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .scale-row { gap: 3px; }
  .scale-btn { width: 28px; height: 28px; }
  .scale-point { gap: 5px; }
  .scale-caption { font-size: 9.5px; line-height: 1.25; padding: 0 1px; }
  .q-card { padding: 22px 12px; }
  .results-actions { flex-direction: column; }
  .results-actions .btn { width: 100%; }
  .team-choice-row { flex-direction: column; }
}

/* ===== Team filter question (closing question) ===== */

.team-choice-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.team-choice-btn {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 15px;
}

.team-choice-btn.selected {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* ===== v18.1: landing page opening section (Bloom artwork) + two columns ===== */
#intro-view .hero { position: relative; background: #050608; color: #FFFFFF; overflow: hidden; }
#intro-view .hero-img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background: url(bloom.jpg) 55% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
#intro-view .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, #050608 100%); }
#intro-view .hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 110px 32px 120px; min-height: 620px; display: flex; align-items: center; }
#intro-view .hero-copy { max-width: 500px; }
#intro-view .hero .eyebrow { color: #E9A15A; letter-spacing: 0.14em; }
#intro-view .hero h1 { color: #FFFFFF; font-size: 46px; line-height: 1.1; font-weight: 650; margin: 0 0 20px; letter-spacing: -0.01em; }
#intro-view .hero .lede { color: #C9C7C0; font-size: 17px; margin: 0 0 30px; }
#intro-view .c-dots { display: flex; gap: 16px; margin: 0 0 26px; flex-wrap: wrap; }
#intro-view .c-dots span { font-size: 13px; color: #E8E6E0; display: inline-flex; align-items: center; gap: 7px; }
#intro-view .c-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
#intro-view .hero-cta {
  display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 12px 22px;
}
#intro-view .hero-cta:hover, #intro-view .hero-cta:focus-visible { border-color: #E9A15A; color: #E9A15A; }

#intro-view .intro-cols {
  max-width: 1120px; margin: 0 auto; padding: 56px 32px 88px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start;
}
#intro-view .intro-col-side .privacy-card { margin: 0; background: var(--surface); }
#intro-view .intro-time-note { text-align: left; }
html { scroll-behavior: smooth; }

@media (max-width: 860px) {
  #intro-view .intro-cols { grid-template-columns: 1fr; padding: 40px 20px 72px; gap: 0; }
  #intro-view .intro-col-side .privacy-card { margin-bottom: 24px; }
}
@media (max-width: 760px) {
  #intro-view .hero-img { position: relative; width: 100%; height: 320px; background-position: 50% 45%; -webkit-mask-image: none; mask-image: none; }
  #intro-view .hero-inner { padding: 0 20px 48px; min-height: 0; display: block; margin-top: -40px; }
  #intro-view .hero h1 { font-size: 32px; }
}
