:root {
  --paper: #FBF9EF;
  --ink: #171717;
  --muted: #6B665C;
  --line: #E8E1D1;
  --white: #FFFFFF;
  --black: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

.field,
.hero-input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field {
  border-radius: 8px;
  padding: 13px 14px;
}

.hero-input {
  border-radius: 8px;
  padding: 20px 22px;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}

.field:focus,
.hero-input:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.btn-primary,
.btn-secondary,
.choice,
.toggle {
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  line-height: 1.1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn-primary {
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.btn-secondary,
.choice,
.toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.btn-primary:hover,
.btn-secondary:hover,
.choice:hover,
.toggle:hover {
  transform: translateY(-1px);
}

.choice.is-selected,
.toggle.is-selected {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.soft-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 14px;
}

.quote-step {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 84px;
}

.quote-step.is-active {
  display: flex;
}

.step-inner {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.eyebrow,
.meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

.step-title {
  margin-top: 10px;
  font-size: clamp(2.35rem, 6.2vw, 5.25rem);
  line-height: .95;
}

.step-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 34px auto 0;
  max-width: 860px;
}

.back-link {
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .answer-row,
  .btn-primary,
  .btn-secondary,
  .choice {
    width: 100%;
  }

  .step-title {
    font-size: clamp(2.1rem, 14vw, 4rem);
  }
}
