:root {
  --ink: #1F2E2B;
  --canvas: #F6F3EC;
  --sage: #7C9885;
  --sage-light: #E4EAE1;
  --clay: #BF6A45;
  --clay-dark: #A5552F;
  --line: #D8D2C4;
  --white: #FFFFFF;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
  position: relative;
}

/* ---- Spine progress rail ---- */
.spine-rail {
  position: fixed;
  left: 32px;
  top: 0;
  height: 100vh;
  width: 30px;
  display: none;
}

#spine-svg {
  width: 100%;
  height: 100%;
}

#spine-curve {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.vertebra {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.vertebra.done {
  background: var(--sage);
  border-color: var(--sage);
}

.vertebra.current {
  border-color: var(--clay);
  transform: translate(-50%, -50%) scale(1.25);
}

@media (min-width: 900px) {
  .spine-rail { display: block; }
  .wrap { padding-left: 100px; }
}

/* ---- Card ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(31, 46, 43, 0.04);
}

.screen { display: none; }
.screen.active { display: block; animation: fadein 0.35s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin: 0 0 12px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin: 0 0 12px;
}

.lede, .q-hint {
  font-size: 16px;
  color: #4A5650;
  margin: 0 0 32px;
}

.q-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 10px;
}

#q-title { margin-bottom: 8px; }
#q-hint { margin-bottom: 24px; }

/* ---- Options ---- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 15px;
}

.option:hover { border-color: var(--sage); }

.option.selected {
  border-color: var(--clay);
  background: #FBF3EE;
}

.option .marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  position: relative;
}

.option.multi .marker { border-radius: 5px; }

.option.selected .marker { border-color: var(--clay); background: var(--clay); }

.option.selected .marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--white);
  border-radius: 50%;
}

.option.multi.selected .marker::after { border-radius: 2px; }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled) { background: var(--clay-dark); }

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--sage); }

.btn-text {
  background: none;
  border: none;
  color: var(--sage);
  text-decoration: underline;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  padding: 0;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-row .btn-primary { margin-left: auto; }

/* ---- Contact form ---- */
#contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}

#contact-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--canvas);
}

#contact-form input:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

#contact-form .nav-row { margin-top: 28px; }

/* ---- Result ---- */
#screen-result .eyebrow { text-align: center; }
#screen-result h2 { text-align: center; margin-top: 8px; }
#screen-result > p#result-body { text-align: center; color: #4A5650; }

.result-actions {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

.send-status {
  text-align: center;
  font-size: 13px;
  color: #94A69C;
  min-height: 18px;
}

#restart-btn { display: block; margin-left: auto; margin-right: auto; }

.site-footer {
  margin-top: 32px;
  font-size: 12px;
  color: #94A69C;
  text-align: center;
  max-width: 560px;
}

@media (max-width: 560px) {
  .card { padding: 32px 24px; }
}
