/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  padding-top: 76px; /* espaço pro header fixo */
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h1 { font-size: 2.45rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
p { margin-bottom: 1rem; }

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22));
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}
.nav a:hover { opacity: 1; }
.nav .nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  opacity: 1;
}
.nav .nav-cta:hover { background: #1d4ed8; }

/* NAV MOBILE */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 10px;
  background: #e5e7eb;
  border-radius: 2px;
}
.nav-mobile {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.nav-mobile a {
  display: block;
  padding: 10px 8px;
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.95;
}
.nav-mobile .nav-cta {
  margin-top: 6px;
  text-align: center;
  background: #2563eb;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
}
.nav-mobile.open { display: block; }

/* HERO */
.hero {
  background: radial-gradient(1200px 500px at 30% 0%, rgba(37,99,235,0.28), transparent 60%),
              linear-gradient(135deg, #0f172a, #020617);
  color: #ffffff;
  padding: 76px 0 70px;
}
.subtitle {
  font-size: 1.15rem;
  max-width: 760px;
  color: #e5e7eb;
}
.authority {
  font-size: 0.95rem;
  color: #c7d2fe;
  margin-top: 10px;
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.hero-note {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 18px;
}
.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.hero-card ul {
  list-style: disc inside;
  color: #e5e7eb;
}
.hero-card li { margin-bottom: 8px; }
.hero-card .mini {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
.btn-primary:hover { background-color: #1d4ed8; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #e5e7eb;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
}

/* SECTIONS */
.section { padding: 64px 0; }
.section.light { background-color: #f8fafc; }
.section.dark { background-color: #020617; color: #ffffff; }
.section-subtitle {
  max-width: 840px;
  margin-bottom: 1.6rem;
  color: #374151;
}
.section.dark .section-subtitle { color: #e5e7eb; }

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

/* LISTS */
ul { list-style: disc inside; }
ul li { margin-bottom: 0.6rem; }
ul.negative li { color: #991b1b; }

/* CARD */
.card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 16px 0;
}
.note { color: #374151; font-size: 0.98rem; }
.note.emphasis { font-weight: 800; color: #0f172a; }

/* TIMELINE */
.timeline { list-style: none; counter-reset: step; }
.timeline li {
  counter-increment: step;
  margin-bottom: 1rem;
  padding-left: 2px;
}
.timeline li::before {
  content: counter(step) ". ";
  font-weight: 900;
  color: #2563eb;
}

/* CTA */
.cta-box {
  margin-top: 1.4rem;
  text-align: center;
}
.cta-hint {
  margin-top: 0.9rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal */
.modal-lock { overflow: hidden; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal-title {
  margin: 8px 0 6px;
  font-size: 1.35rem;
  color: #0f172a;
}
.modal-subtitle {
  margin: 0 0 12px;
  color: #334155;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #0f172a;
}
.modal-close:hover { background: #f8fafc; }
.modal-iframe {
  width: 100%;
  height: min(78vh, 820px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.modal-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */
.footer {
  background-color: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { padding-top: 72px; }
  .header-inner { height: 72px; }
  .brand-logo { height: 32px; }
  h1 { font-size: 2.05rem; }
  .modal { padding: 14px; }
  .modal-iframe { height: 80vh; }
}
/* Floating triage */
.float-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.float-btn:hover{ background:#1d4ed8; }

.triage{
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 360px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.28);
  border: 1px solid rgba(15,23,42,0.10);
  overflow: hidden;
  display: none;
  z-index: 12000;
}
.triage.open{ display:block; }

.triage-header{
  background: #020617;
  color: #fff;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.triage-sub{ color:#cbd5e1; font-size: 0.85rem; margin-top:2px; }

.triage-close{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.2);
  background: transparent;
  color:#fff;
  font-size: 22px;
  cursor:pointer;
}
.triage-close:hover{ background: rgba(255,255,255,0.06); }

.triage-body{
  padding: 14px;
  min-height: 180px;
}
.triage-q{
  font-weight: 900;
  color:#0f172a;
  margin-bottom: 10px;
}
.triage-help{
  color:#334155;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.triage-options{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.triage-option{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #f8fafc;
  cursor: pointer;
  text-align:left;
  font-weight: 700;
  color:#0f172a;
}
.triage-option:hover{ background:#eef2ff; border-color:#c7d2fe; }

.triage-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  outline: none;
  font-size: 1rem;
}
.triage-input:focus{ border-color:#93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,0.35); }

.triage-footer{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(15,23,42,0.08);
  display:flex;
  gap: 10px;
}
.triage-primary, .triage-secondary{
  flex:1;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(15,23,42,0.10);
}
.triage-primary{
  background:#2563eb; color:#fff; border:0;
}
.triage-primary:hover{ background:#1d4ed8; }
.triage-secondary{
  background:#fff; color:#0f172a;
}
.triage-secondary:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 520px){
  .triage{ width: 100%; right: 0; left: 0; bottom: 0; border-radius: 16px 16px 0 0; }
  .float-btn{ right: 14px; bottom: 14px; }
}
