:root {
  /* Brand-tuned palette — earthy hardwoods + sage + cream */
  --ink: #1b1c1c;
  --ink-soft: #2f2f2e;
  --muted: #5b5550;
  --subtle: #8a8278;
  --bg: #f3ede2;
  --bg-warm: #ebe1cf;
  --surface: #fbf7ee;
  --surface-2: #f6efe0;
  --line: rgba(27, 28, 28, 0.10);
  --line-strong: rgba(27, 28, 28, 0.18);
  --walnut: #3d2f1d;
  --walnut-warm: #5a4327;
  --sage: #525c2d;
  --sage-2: #899273;
  --gold: #c9a23f;
  --gold-soft: #efbc0c;
  --primary: #1b1c1c;
  --primary-hover: #2f2f2e;
  --primary-fg: #fbf7ee;
  --accent: #525c2d;
  --danger: #b3433a;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27,28,28,0.05);
  --shadow: 0 1px 2px rgba(27,28,28,0.04), 0 8px 28px rgba(27,28,28,0.08);
  --shadow-lg: 0 1px 3px rgba(27,28,28,0.05), 0 24px 60px rgba(61,47,29,0.18);
  --ring: 0 0 0 4px color-mix(in srgb, var(--sage) 28%, transparent);
  --ease: cubic-bezier(.32,.72,0,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.6 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(231, 224, 212, 0.6), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(137, 146, 115, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(90, 67, 39, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.28  0 0 0 0 0.16  0 0 0 0.035 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

::selection { background: color-mix(in srgb, var(--sage) 35%, transparent); color: var(--ink); }

/* HEADER */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 54px; width: auto; }
.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-item svg { color: var(--sage); }
.trust-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
@media (max-width: 760px) {
  .site-header { padding: 18px 20px; flex-direction: column; gap: 14px; }
  .trust-row { gap: 10px; font-size: 10px; }
  .trust-divider { width: 3px; height: 3px; }
}
@media (max-width: 460px) {
  .trust-row .trust-item:nth-child(5) { display: none; }
  .trust-row .trust-divider:nth-child(4) { display: none; }
}

/* SHELL */
.shell {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* INTRO */
.intro {
  text-align: center;
  padding: 40px 8px 56px;
  animation: fadeUp 600ms var(--ease-soft) both;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 18px;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--walnut);
}
.display em {
  font-style: italic;
  color: var(--sage);
  font-weight: 500;
}
.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.lede em { color: var(--ink); font-style: normal; font-weight: 600; }
.intro-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--subtle);
  letter-spacing: 0.04em;
}

/* CARD */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: cardIn 500ms var(--ease-soft) both;
}
.quiz { padding: 0; }

.progress {
  height: 4px;
  background: var(--bg-warm);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 14.2857%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-2) 100%);
  transition: width 480ms cubic-bezier(.22,1,.36,1);
  border-radius: 0 4px 4px 0;
}

.quiz__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 8px;
}
.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 10px 8px 8px;
  margin-left: -10px;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 160ms var(--ease);
  font-weight: 500;
}
.quiz__back:hover { color: var(--ink); background: var(--surface-2); }
.quiz__back:focus-visible { outline: none; box-shadow: var(--ring); }
.quiz__back[hidden] { visibility: hidden; }
.quiz__step {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--subtle);
}
.quiz__step span { color: var(--ink); }

.quiz__viewport {
  padding: 12px 36px 36px;
  min-height: 460px;
}
@media (max-width: 560px) {
  .quiz__header { padding: 16px 20px 6px; }
  .quiz__viewport { padding: 8px 20px 24px; min-height: 480px; }
}

/* STEPS */
.step {
  animation: stepIn 360ms var(--ease-soft) both;
}
.step__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 10px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin: 0 0 8px;
}
.step__sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* OPTION CARDS */
.options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.options--2col { grid-template-columns: 1fr 1fr; }
.options--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) {
  .options--2col { grid-template-columns: 1fr; }
  .options--3col { grid-template-columns: 1fr 1fr; }
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
  min-height: 72px;
  width: 100%;
}
.option:hover {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 5%, var(--surface));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.option:active { transform: translateY(0); }
.option:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--sage); }
.option[aria-pressed="true"], .option.is-selected {
  border-color: var(--sage);
  background: color-mix(in srgb, var(--sage) 8%, var(--surface));
  box-shadow: 0 0 0 1px var(--sage), var(--shadow-sm);
}
.option[aria-pressed="true"] .option__check, .option.is-selected .option__check { opacity: 1; transform: scale(1); }

.option__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
  border-radius: 10px;
  color: var(--walnut);
}
.option[aria-pressed="true"] .option__icon, .option.is-selected .option__icon {
  background: color-mix(in srgb, var(--sage) 18%, transparent);
  color: var(--sage);
}
.option__body { flex: 1; min-width: 0; }
.option__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.option__helper {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.option__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.option__badge {
  position: absolute;
  top: -8px;
  right: 14px;
  background: var(--gold);
  color: var(--walnut);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(201, 162, 63, 0.35);
}

/* COMPACT pills (yes/no, etc) */
.options--pills {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.options--pills .option {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  padding: 22px 18px;
}
.options--pills .option__icon { width: 44px; height: 44px; }
.options--pills .option__label { font-size: 16px; }
.options--pills .option__check { top: 10px; right: 10px; width: 18px; height: 18px; }
.options--pills .option__check svg { width: 11px; height: 11px; }

/* INPUTS */
.field { margin: 0 0 18px; }
.field__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: all 160ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--subtle); }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus { outline: none; border-color: var(--sage); box-shadow: var(--ring); background: var(--surface); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field__row { grid-template-columns: 1fr; } }
.field__help { margin: 6px 2px 0; font-size: 12px; color: var(--subtle); }
.field__error { margin: 6px 2px 0; font-size: 13px; color: var(--danger); display: none; font-weight: 500; }
.field.has-error .field__input { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--primary);
  color: var(--primary-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); color: var(--ink); }
.btn--primary { background: var(--walnut); color: var(--surface); border-color: var(--walnut); }
.btn--primary:hover { background: var(--walnut-warm); border-color: var(--walnut-warm); }
.btn--lg { height: 60px; padding: 0 36px; font-size: 16px; border-radius: var(--radius); }
.btn--block { width: 100%; }

.step__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.step__actions .btn--block { width: 100%; }

/* TEXTAREA */
.field__textarea {
  width: 100%;
  min-height: 110px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  line-height: 1.55;
  transition: all 160ms var(--ease);
}
.field__textarea:focus { outline: none; border-color: var(--sage); box-shadow: var(--ring); }

/* SUCCESS */
.success { text-align: center; padding: 32px 0 12px; animation: stepIn 480ms var(--ease-soft) both; }
.success__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 15%, transparent);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  animation: pop 600ms var(--ease-soft) both;
}
.success__icon svg { width: 44px; height: 44px; }
.success__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin: 0 0 12px;
}
.success__sub {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.6;
}

/* RECOMMENDATION */
.recommend {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 8px auto 24px;
  max-width: 480px;
  text-align: left;
}
.recommend__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 12%, transparent);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.recommend__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--walnut);
}
.recommend__why { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.recommend__features { list-style: none; margin: 0; padding: 0; }
.recommend__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}
.recommend__features svg { color: var(--sage); flex-shrink: 0; margin-top: 3px; }

.success__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.success__note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.02em;
}

/* TRUST BAND */
.trust-band {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-band__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-band__item svg { color: var(--sage); flex-shrink: 0; }
.trust-band__item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; letter-spacing: -0.005em; }
.trust-band__item span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 720px) {
  .trust-band { grid-template-columns: 1fr; }
}

/* PRIVACY LINE */
.privacy {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--subtle);
  text-align: center;
  line-height: 1.5;
}
.privacy a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); }
.privacy a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* FOOTER */
.footer {
  position: relative;
  z-index: 5;
  margin-top: 40px;
  background: var(--walnut);
  color: #d6cdbd;
  padding: 56px 24px 32px;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 205, 189, 0.25), transparent);
}
.footer__wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(214, 205, 189, 0.15);
}
.footer__brand img { display: block; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(0.92); }
.footer__brand p { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.6; color: rgba(214, 205, 189, 0.85); }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer__links a {
  color: rgba(214, 205, 189, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 160ms var(--ease);
}
.footer__links a:hover { color: white; }
.footer__legal {
  max-width: 1080px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(214, 205, 189, 0.65);
}
.footer__legal p { margin: 0; }
.footer__small { font-style: italic; font-family: var(--font-display); }
@media (max-width: 640px) {
  .footer__wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer__links { align-items: flex-start; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(.5); }
  60% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
