:root {
  --ink: #101213;
  --paper: #f2f0ea;
  --white: #fffefa;
  --accent: #ff5c35;
  --lime: #d8ff67;
  --line: #d0cec7;
  --muted: #666963;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.page-shell { min-height: calc(100vh - 58px); display: grid; grid-template-columns: .86fr 1.14fr; }
.intro { min-height: 760px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px max(40px, calc((100vw - 1260px) / 2)); padding-right: clamp(54px, 6vw, 112px); background: var(--ink); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 13px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--white); color: var(--ink); border-radius: 50%; font-size: 11px; letter-spacing: -.04em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #aeb1ad; font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--accent); }
.intro-copy { max-width: 620px; margin-block: 70px; }
.intro h1 { margin: 0; font-size: clamp(52px, 5.6vw, 84px); line-height: .95; letter-spacing: -.065em; }
.intro h1 em { color: var(--accent); font-style: normal; }
.intro-copy > p:last-child { max-width: 560px; margin: 30px 0 0; color: #b9bcb7; font-size: 17px; line-height: 1.6; }
.expectations { max-width: 620px; padding-top: 24px; border-top: 1px solid #353837; }
.expectations > p { margin: 0 0 15px; color: #8f938d; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.expectations ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; color: #d9dbd7; font-size: 12px; line-height: 1.4; }
.expectations li span { display: block; margin-bottom: 7px; color: var(--accent); font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.form-panel { align-self: center; width: min(680px, calc(100% - 64px)); margin: 44px auto; padding: 38px 44px 34px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 28px 90px rgba(16,18,19,.12); }
.form-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.form-head p { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.form-head h2, .success-state h2, .privacy-dialog h2 { margin: 0; font-size: 35px; letter-spacing: -.045em; }
.progress-copy { display: flex; align-items: baseline; color: var(--muted); font-size: 14px; }
.progress-copy strong { color: var(--ink); font-size: 27px; }
.progress-track { height: 4px; margin: 24px 0 30px; background: #e3e1da; border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 33.333%; height: 100%; background: var(--accent); transition: width .25s ease; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; background: #fff0eb; border-left: 3px solid var(--accent); color: #8d2d13; font-size: 12px; line-height: 1.45; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form-step { min-height: 394px; margin: 0; padding: 0; border: 0; }
.form-step legend { margin-bottom: 5px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.step-note { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field { display: block; margin-bottom: 19px; }
.field > span, .subquestion { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.field > span em { margin-left: 6px; color: var(--muted); font-style: normal; font-weight: 650; letter-spacing: 0; text-transform: none; }
.field input, .field textarea, .select-wrap select { width: 100%; border: 1px solid var(--line); background: #faf9f5; color: var(--ink); border-radius: 10px; }
.field input { min-height: 54px; padding: 0 15px; }
.field textarea { padding: 13px 15px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field small, .group-error { display: block; min-height: 16px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.field small.error, .group-error.error { color: #b93015; }
.option-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.option-list label, .timeline-options label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border .2s ease, background .2s ease; }
.option-list label:hover, .timeline-options label:hover { border-color: #858780; }
.option-list label:has(input:checked), .timeline-options label:has(input:checked) { border-color: var(--accent); background: #fff1ec; box-shadow: inset 0 0 0 1px var(--accent); }
.option-list input, .timeline-options input { appearance: none; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid #888b84; border-radius: 50%; }
.option-list input:checked, .timeline-options input:checked { border: 5px solid var(--accent); background: var(--white); }
.option-list strong, .option-list small { display: block; }
.option-list strong { margin-bottom: 2px; font-size: 11px; }
.option-list small { color: var(--muted); font-size: 9px; }
.subquestion { margin-top: 17px; }
.select-wrap { position: relative; }
.select-wrap select { min-height: 48px; padding: 0 42px 0 13px; appearance: none; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.timeline-options { display: grid; gap: 7px; }
.timeline-options label { min-height: 44px; font-size: 12px; font-weight: 700; }
.optional-field { margin-top: 18px; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 10px; line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; width: 17px; height: 17px; margin: 0; border: 1px solid #8d908a; border-radius: 4px; }
.consent input:checked { display: grid; place-items: center; background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { content: "✓"; color: var(--white); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; }
.primary-button, .back-button, .whatsapp-button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary-button { margin-left: auto; background: var(--ink); color: var(--white); }
.primary-button:hover, .whatsapp-button:hover { transform: translateY(-2px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.back-button { margin-right: auto; padding-inline: 4px 14px; background: transparent; color: var(--muted); }
.privacy-line { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 16px 0 0; color: #858881; font-size: 9px; }
.privacy-line svg { flex: 0 0 14px; }

.success-state { min-height: 522px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; background: var(--lime); border-radius: 50%; }
.success-icon svg { width: 28px; height: 28px; stroke-width: 2.5; }
.success-kicker { margin: 0 0 8px; color: #648000; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.success-state > p:not(.success-kicker) { margin: 18px 0 26px; color: var(--muted); line-height: 1.6; }
.whatsapp-button { width: 100%; background: var(--ink); color: var(--white); }
.new-response { align-self: center; margin-top: 18px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }

footer { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px max(24px, calc((100vw - 1260px) / 2)); background: var(--ink); border-top: 1px solid #303332; color: #9da09b; font-size: 10px; }
footer p { margin: 0; }
footer button { border: 0; background: transparent; color: #d6d8d4; font-size: 10px; text-decoration: underline; cursor: pointer; }
.privacy-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.privacy-dialog::backdrop { background: rgba(16,18,19,.75); backdrop-filter: blur(5px); }
.privacy-dialog form { position: relative; padding: 38px; }
.privacy-dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.65; }
.privacy-dialog .primary-button { margin-top: 12px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 50%; font-size: 22px; cursor: pointer; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro { min-height: auto; padding: 28px 32px 38px; }
  .intro-copy { margin-block: 64px; }
  .intro h1 { max-width: 720px; font-size: clamp(50px, 10vw, 76px); }
  .form-panel { margin-block: 38px; }
}

@media (max-width: 640px) {
  .intro { padding: 22px 18px 30px; }
  .brand-mark { width: 40px; height: 40px; }
  .intro-copy { margin-block: 54px; }
  .intro h1 { font-size: clamp(44px, 14vw, 62px); }
  .intro-copy > p:last-child { font-size: 15px; }
  .expectations ol { grid-template-columns: 1fr; gap: 11px; }
  .expectations li { display: grid; grid-template-columns: 32px 1fr; align-items: center; }
  .expectations li span { margin: 0; }
  .form-panel { width: calc(100% - 20px); margin: 10px auto 22px; padding: 27px 18px 24px; border-radius: 16px; }
  .form-head h2 { font-size: 29px; }
  .form-step { min-height: auto; }
  .option-list { grid-template-columns: 1fr; }
  .option-list label { min-height: 52px; }
  .form-actions { position: sticky; bottom: 0; padding-top: 12px; background: var(--white); }
  .primary-button { min-height: 52px; }
  footer { align-items: flex-start; flex-direction: column; }
  .privacy-dialog form { padding: 34px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
