:root {
  --primary: #57453f;
  --primary-dark: #3e302b;
  --accent: #d5beac;
  --accent-light: #f0e8e1;
  --text: #121315;
  --text-muted: #6c6e76;
  --bg: #f7f4f2;
  --bg-white: #ffffff;
  --border: #e0d4cc;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(87, 69, 63, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--primary);
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer {
  background: var(--primary);
  padding: 16px 0;
  margin-top: 48px;
}

.site-footer .footer-inner {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .8rem;
}

.footer-simple {
  min-height: 24px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.intro-logo-image {
  width: 220px;
  height: auto;
  display: block;
}

.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.3);
}

.header-subtitle {
  margin: 0;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.site-footer a { text-decoration: none; font-size: .85rem; }
.site-footer a { color: var(--accent); }

.main {
  padding: 24px 0 40px;
}

.hero-section { padding: 20px 0 8px; }
.hero-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  min-height: 58vh;
  padding: 38px 16px 24px;
}

.hero-kicker,
.question-index {
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 700;
}

.hero-card h1,
.question-screen h2,
.success-box h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.hero-copy,
.question-subline {
  width: min(640px, 100%);
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.start-button,
.ghost-link,
.nav-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ghost-link,
.nav-button.ghost {
  background: var(--bg-white);
  color: var(--primary);
  border-color: var(--border);
}

.start-button:hover,
.nav-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.ghost-link:hover,
.nav-button.ghost:hover {
  background: var(--accent-light);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 22px;
}

.trust-row article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.trust-row strong { display: block; margin-bottom: 6px; }
.trust-row span { color: var(--text-muted); line-height: 1.55; }

.planner-shell {
  display: grid;
  gap: 14px;
  padding: 10px 0 18px;
}

.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 18px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stepper li {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 700;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.step-item.active .step-circle {
  background: var(--primary);
  color: #fff;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  max-width: 60px;
  margin-bottom: 22px;
}

.planner-stage {
  width: min(760px, 100%);
  margin: 0 auto;
}

#plannerForm,
.success-box {
  padding: 34px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.question-screen {
  display: none;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.question-screen.is-visible { display: grid; }
.question-screen h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.question-screen h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  color: var(--primary);
}

.answer-list {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.answer-card {
  width: 100%;
  min-height: 44px;
  padding: 0 8px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.answer-card:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122, 71, 40, 0.14);
}

.answer-card span { font-weight: 600; }
.answer-card i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-muted);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
}

.answer-card.is-selected {
  border-color: var(--primary);
  background: var(--accent-light);
}

.support-fields {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.support-fields.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-fields.single-field {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.question-screen[data-step="7"] {
  align-content: start;
}

.question-screen[data-step="7"] .support-fields {
  margin-top: 10px;
}

.conditional-field.is-hidden {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  text-align: left;
  font-size: .92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  font-size: 16px !important;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

input::placeholder,
textarea::placeholder {
  font-size: 16px;
  line-height: 1.35;
}

input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122, 71, 40, 0.14);
}

.range-value {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 700;
}

.request-box {
  width: min(560px, 100%);
  margin: 14px auto 18px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.request-box dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.request-box div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.request-box dt { color: var(--text-muted); font-weight: 700; }
.request-box dd { margin: 0; font-weight: 700; text-align: left; }

.consent {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px 12px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.55;
}

.consent input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 3px;
}

.progress-wrap {
  margin-top: 12px;
  padding-top: 12px;
}

.progress-meta {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: .74rem;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--accent-light);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--primary);
  transition: width .2s ease;
}

.action-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.success-box {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.success-copy {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

#resultPayload {
  margin-top: 14px;
  background: transparent;
}
.is-hidden { display: none; }

.error-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e4a7a7;
  border-radius: var(--radius);
  background: #fff3f3;
  color: #a33a3a;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.content-section {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.content-intro,
.content-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.content-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  color: var(--primary);
}

.section-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.content-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--primary);
}

.content-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-card {
  position: relative;
  padding-top: 54px;
}

.feature-number {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: .38;
}

@media (max-width: 720px) {
  .main { padding: 16px 0 22px; }
  .site-header {
    height: auto;
    padding: 10px 0;
  }
  .header-inner,
  .footer-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .trust-row { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .steps-bar { padding: 14px 8px; }
  .step-connector { min-width: 10px; }
  #plannerForm, .success-box { padding: 24px 14px 16px; }
  .support-fields.two-col { grid-template-columns: 1fr; }
  .progress-meta { flex-direction: column; }
  .action-row { flex-direction: column-reverse; }
  .nav-button, .start-button, .ghost-link { width: 100%; }
}
