:root {
  --bg:         #0f1012;
  --surface:    #1a1c1f;
  --surface-2:  #222428;
  --text:       #f0ede8;
  --muted:      rgba(240, 237, 232, .45);
  --line:       rgba(240, 237, 232, .10);
  --line-mid:   rgba(240, 237, 232, .18);
  --accent:     #c88e58;
  --accent-dim: rgba(200, 142, 88, .14);
  --serif:      "Source Serif 4", Georgia, serif;
  --sans:       "DM Sans", Arial, sans-serif;
  --display:    "Sora", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

/* ── Shell ── */
.application-shell {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0;
}

/* ── Panel ── */
.application-panel {
  width: min(100%, 700px);
  height: 100%;
  margin-left: 0;
  padding: clamp(28px, 4vh, 56px) clamp(24px, 3vw, 48px) clamp(20px, 3vh, 40px);
  display: flex;
  flex-direction: column;
}

/* ── Logo ── */
.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: clamp(12px, 2.5vh, 32px);
}

.brand img {
  display: block;
  width: clamp(130px, 14vw, 190px);
  height: auto;
}

/* ── Intro (só no step 0) ── */
.intro {
  display: none;
  flex-shrink: 0;
  margin-bottom: clamp(16px, 2.5vh, 32px);
}

.intro.is-visible { display: block; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--display);
}

h1 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hello, .short-line { display: none; }

.intro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
}

/* ── Form ── */
form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

form.has-intro {
  justify-content: flex-start;
  padding-top: clamp(8px, 1.5vh, 16px);
}

/* ── Progress ── */
.progress {
  flex-shrink: 0;
  margin-bottom: clamp(20px, 3vh, 36px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--display);
}

.progress-track {
  height: 1px;
  margin-top: 7px;
  background: var(--line);
}

.progress-track span {
  display: block;
  height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}

/* ── Steps ── */
.step {
  display: none;
  flex-direction: column;
  animation: reveal .22s ease both;
}

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

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

/* ── Labels ── */
label,
legend {
  display: block;
  flex-shrink: 0;
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

label span,
legend span { color: var(--accent); }

/* ── Inputs ── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: min(100%, 640px);
  border: 0;
  border-bottom: 1.5px solid rgba(200, 142, 88, .3);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.35;
  padding: 4px 0 14px;
  caret-color: var(--accent);
  transition: border-color .2s ease;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:focus,
textarea:focus { border-color: var(--accent); }

textarea {
  min-height: 70px;
  max-height: clamp(100px, 22vh, 160px);
  resize: none;
}

/* ── Fieldset / Choices ── */
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(100%, 640px);
  max-height: clamp(260px, 46vh, 420px);
  overflow-y: auto;
  scrollbar-width: none;
}

.choice-list::-webkit-scrollbar { display: none; }

.choice-list label {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.choice-list label:hover {
  background: var(--surface-2);
  border-color: rgba(200, 142, 88, .3);
}

.choice-list label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.choice-list input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* ── Error ── */
.error-message {
  flex-shrink: 0;
  min-height: 18px;
  margin: 8px 0 0;
  color: #e07050;
  font-size: 13px;
  font-weight: 600;
}

/* ── Actions ── */
.actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: clamp(14px, 2.2vh, 24px);
  padding-bottom: clamp(4px, 1vh, 12px);
}

.btn {
  height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(200, 142, 88, .35);
  border-radius: 6px;
  background: var(--accent);
  color: #17130f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--display);
  transition: opacity .2s ease, transform .15s ease;
}

.btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.btn-secondary {
  display: none;
  background: transparent;
  color: var(--muted);
  border-color: var(--line-mid);
  padding: 0 18px;
}

.btn-secondary.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Success ── */
h2 {
  margin: 6px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.success .eyebrow { display: block; }

.success p:not(.eyebrow) {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 580px;
  margin-top: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}

.summary::-webkit-scrollbar { display: none; }

.summary div {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.summary strong {
  min-width: 150px;
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Enter hint ── */
.enter-hint {
  position: fixed;
  bottom: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--display);
  pointer-events: none;
}

.enter-hint kbd {
  background: var(--surface-2);
  border: 1px solid var(--line-mid);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text);
  font-family: var(--display);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .summary div { flex-direction: column; gap: 3px; }
  .summary strong { min-width: auto; }
}

@media (max-width: 560px) {
  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
