:root {
  --ink: #172033;
  --muted: #637083;
  --line: #d9e2e8;
  --paper: #ffffff;
  --soft: #f2f6f7;
  --teal: #14746f;
  --teal-dark: #0f5f5b;
  --amber: #d8902f;
  --red: #c45149;
  --green: #227a57;
  --shadow: 0 18px 44px rgba(23, 32, 51, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef3f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.56;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 116, 111, .28);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(217, 226, 232, .86);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #111827;
  background: var(--amber);
  font-weight: 900;
}

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

.brand strong {
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.top-nav a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 38px;
  align-items: center;
  margin: 22px 0 34px;
  padding: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: #101826;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-lead,
.section-head p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.hero .hero-lead {
  color: rgba(255, 255, 255, .78);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 880;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 28px rgba(20, 116, 111, .24);
}

.button.primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: #b9c9d4;
  transform: translateY(-1px);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.whatsapp {
  color: #fff;
  background: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel,
.section,
.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.panel-head strong {
  color: var(--teal);
}

.request-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafb;
}

.request-card.urgent {
  border-left: 5px solid var(--red);
}

.request-card h2 {
  margin: 10px 0 4px;
  font-size: 30px;
}

.request-card p {
  margin: 0;
  color: var(--muted);
}

.status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius);
  color: #8f2520;
  background: #fde8e6;
  font-size: 12px;
  font-weight: 900;
}

.mini-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafb;
  font-weight: 800;
}

.mini-flow li > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.mini-flow li > span:last-child {
  min-width: 0;
}

.section {
  margin: 26px 0;
  padding: 28px;
}

.section.compact {
  box-shadow: none;
}

.section-head {
  margin-bottom: 22px;
}

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

.steps article {
  min-height: 174px;
  padding: 18px;
  box-shadow: none;
}

.steps span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.steps p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

fieldset,
.field,
.consent {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafb;
}

legend,
.field,
.consent {
  font-weight: 820;
}

fieldset label,
.consent {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.span-full {
  grid-column: 1 / -1;
}

.result-section[hidden] {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

pre {
  min-height: 180px;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #172033;
  background: #f8fafb;
  white-space: pre-wrap;
  word-break: break-word;
}

.schema-section {
  box-shadow: none;
}

details summary {
  cursor: pointer;
  font-weight: 900;
}

.schema-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.schema-row {
  display: grid;
  grid-template-columns: minmax(160px, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafb;
}

.schema-row code {
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100% - 36px));
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(23, 32, 51, .18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .steps,
  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 20px;
  }

  .hero-panel {
    order: -1;
  }

  .span-full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .site-header .button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead,
  .section-head p {
    font-size: 16px;
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .section {
    margin: 18px 0;
    padding: 18px;
  }

  .panel-head,
  .site-footer {
    display: grid;
  }

  .schema-row {
    grid-template-columns: 1fr;
  }
}
