:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #6a6a66;
  --line: #d8d6cf;
  --paper: #f6f5f1;
  --card: #ffffff;
  --soft: #eceae4;
  --accent: #a7854e;
  --danger: #8c2e2e;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(18, 18, 16, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 241, .94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  font-family: Georgia, serif;
  font-size: 12px;
}

.brand-mark span { transform: rotate(-45deg); }

.brand-copy strong,
.brand-copy small { display: block; }

.brand-copy strong { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.header-plan {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 88px) 0 130px;
}

.intro { margin-bottom: 34px; }

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

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.intro-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.privacy-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.progress-wrap {
  margin: 38px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.progress-track { height: 3px; background: #ddd9d0; overflow: hidden; }
.progress-bar { display: block; width: 0; height: 100%; background: var(--ink); transition: width .28s ease; }
.progress-label { color: var(--muted); font-size: .78rem; white-space: nowrap; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step {
  display: none;
  padding: clamp(25px, 6vw, 56px);
  animation: enter .3s ease both;
}

.step.active { display: block; }

@keyframes enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.step-number {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.step h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.step-intro {
  color: var(--muted);
  line-height: 1.65;
  margin: 15px 0 30px;
  max-width: 680px;
}

.fields { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

label, legend {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.35;
}

.required-mark { color: var(--accent); margin-left: 3px; }

.hint {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 450;
  line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbc8c0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

textarea { min-height: 116px; resize: vertical; line-height: 1.55; }

input:focus, textarea:focus, select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, .08);
}

input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); }

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }

.option {
  min-height: 48px;
  border: 1px solid #d3d0c8;
  border-radius: 10px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 550;
  cursor: pointer;
}

.option:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.options.invalid .option { border-color: var(--danger); }

.repeat-list { display: grid; gap: 16px; }

.repeat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf7;
}

.repeat-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.repeat-head h3 { margin: 0; font-family: inherit; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.repeat-fields { display: grid; gap: 16px; }

.text-button,
.remove-button {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 5px 0;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.remove-button { color: var(--danger); }

.add-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px dashed #aaa69b;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.button {
  min-height: 49px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.button.secondary { background: transparent; color: var(--ink); }
.button.ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 6px; }
.button:disabled { opacity: .45; cursor: not-allowed; }

.review-list { display: grid; gap: 18px; }
.review-section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-section:last-child { border-bottom: 0; }
.review-section h3 { margin: 0 0 12px; font-family: inherit; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.review-item { margin: 8px 0; line-height: 1.55; }
.review-item strong { display: block; font-size: .78rem; }
.review-item span { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-empty { color: var(--muted); font-style: italic; }

.final-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.final-actions .button:first-child { grid-column: 1 / -1; }

.submission-result {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #b8c5b4;
  border-radius: 11px;
  background: #f1f6ef;
  color: #243222;
  line-height: 1.55;
}

.submission-result strong,
.submission-result span { display: block; }
.submission-result span { margin-top: 4px; font-size: .88rem; }

.save-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

.chooser {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 40px 0;
}

.chooser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.choice-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.choice-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.choice-card small { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.choice-card h2 { margin: 16px 0 10px; font-size: 2rem; }
.choice-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: .84rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 50;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 650px) {
  .site-header { min-height: 66px; padding: 13px 16px; }
  .brand-copy small { display: none; }
  .header-plan { font-size: 9px; }
  .shell { width: min(100% - 24px, 860px); padding-top: 38px; }
  .intro { margin-bottom: 24px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .form-card { border-radius: 14px; }
  .step { padding: 25px 19px 22px; }
  .field-row, .options, .chooser-grid { grid-template-columns: 1fr; }
  .repeat-card { padding: 17px 14px; }
  .step-actions { position: sticky; bottom: 0; margin: 30px -19px -22px; padding: 13px 19px calc(13px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); z-index: 10; }
  .step-actions .button { flex: 1; padding-inline: 12px; }
  .step-actions .button.ghost { flex: 0; }
  .final-actions { grid-template-columns: 1fr; }
  .final-actions .button:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .progress-wrap, .step-actions, .final-actions, .save-status { display: none !important; }
  body { background: #fff; }
  .shell { width: 100%; padding: 0; }
  .form-card { border: 0; box-shadow: none; }
  .step { display: block !important; break-after: page; padding: 20px; }
}

/* Identidade Falcão Produtos Digitais — dark interface */
:root {
  color-scheme: dark;
  --ink: #e7e8e9;
  --muted: #95989c;
  --line: #2c2f32;
  --paper: #08090a;
  --card: #151719;
  --soft: #1c1e20;
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, .12);
  --danger: #ff736a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 106, 0, .07), transparent 24rem),
    radial-gradient(circle at 92% 38%, rgba(120, 125, 130, .08), transparent 28rem),
    var(--paper);
}

.site-header {
  min-height: 82px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(8, 9, 10, .88);
  box-shadow: 0 1px 0 rgba(255, 106, 0, .08);
}

.brand { min-width: 0; }
.brand-logo { display: block; width: clamp(190px, 25vw, 310px); height: 46px; object-fit: contain; object-position: left center; }
.header-plan { color: #b4b6b9; }
.eyebrow, .step-number, .choice-card small, .required-mark { color: var(--accent); }
h1, h2, h3 { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 { font-weight: 480; letter-spacing: -.055em; }

.privacy-note { border-color: var(--line); }
.progress-track { height: 4px; border-radius: 999px; background: #24272a; }
.progress-bar { border-radius: inherit; background: var(--accent); box-shadow: 0 0 18px rgba(255, 106, 0, .34); }

.form-card,
.choice-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(29, 31, 33, .98), rgba(17, 19, 21, .98));
  box-shadow: var(--shadow);
}

.form-card { position: relative; }
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .72;
}

.choice-card:hover { border-color: rgba(255, 106, 0, .7); box-shadow: 0 20px 55px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 106, 0, .12); }
.choice-card p, .intro-copy, .step-intro, .hint, .save-status, .review-item span, .review-empty { color: var(--muted); }

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  border-color: #3b3e41;
  background: #0f1112;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

input::placeholder, textarea::placeholder { color: #696d71; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .12), 0 0 24px rgba(255, 106, 0, .08);
}

.option { border-color: #383b3e; background: #111315; }
.option:hover { border-color: #55595d; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); }
.repeat-card { border-color: var(--line); background: #101214; }
.add-button { border-color: #4a4d50; color: var(--ink); }
.add-button:hover { border-color: var(--accent); color: var(--accent); }
.step-actions { border-color: var(--line); }

.button {
  border-color: var(--accent);
  background: var(--accent);
  color: #090a0b;
  box-shadow: 0 8px 28px rgba(255, 106, 0, .16);
}
.button:hover { background: #ff7a1f; border-color: #ff7a1f; }
.button.secondary { background: #181a1c; color: var(--ink); border-color: #42464a; box-shadow: none; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button.ghost { color: var(--muted); border-color: transparent; box-shadow: none; }

.review-section, .step-actions { border-color: var(--line); }
.submission-result { border-color: rgba(255, 106, 0, .45); background: var(--accent-soft); color: var(--ink); }
.toast { background: var(--accent); color: #090a0b; box-shadow: 0 12px 35px rgba(255, 106, 0, .28); }

@media (max-width: 650px) {
  .site-header { min-height: 72px; }
  .brand-logo { width: 178px; height: 40px; }
  .header-plan { max-width: 92px; text-align: right; line-height: 1.35; }
  .step-actions { background: rgba(15, 17, 18, .96); border-color: var(--line); }
}

@media print {
  :root { color-scheme: light; --ink: #111; --muted: #555; --paper: #fff; --card: #fff; --line: #ccc; }
  body { background: #fff; color: #111; }
}
