/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 64px 0; }
.section-light { background: #ffffff; }
.section-muted { background: #eef3fb; }

.section-head { margin-bottom: 28px; }
.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #0f2f73;
  line-height: 1.15;
}
.section-subtitle {
  margin: 0 auto;
  max-width: 780px;
  color: #516072;
  font-size: 1.04rem;
}
.text-center { text-align: center; }
.text-muted { color: #64748b; }

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

.card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 47, 115, 0.08);
  border: 1px solid #e8eef8;
}

.alerta {
  padding: 15px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 0.98rem;
}
.alerta-sucesso {
  background: #ebfbf1;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alerta-erro {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}
.badge-amarelo { background: #fff4bf; color: #7a5a00; }
.badge-success { background: #e8fff1; color: #166534; }
.badge-warning { background: #fff7e6; color: #92400e; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #0f3d9a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 61, 154, 0.22);
}
.btn-secondary {
  background: #f8d90f;
  color: #1c1c1c;
  box-shadow: 0 10px 24px rgba(248, 217, 15, 0.22);
}
.btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.btn-danger { background: #b91c1c; color: #fff; }
.btn-success { background: #15803d; color: #fff; }
.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.btn-lg {
  min-height: 54px;
  width: 100%;
  font-size: 1rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 47, 115, 0.97);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand-link {
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-link span { color: #f8d90f; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: #fff;
  opacity: .94;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: #f8d90f;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
}

/* Hero */
.hero {
  padding: 82px 0 68px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(248, 217, 15, 0.20), transparent 30%),
    linear-gradient(135deg, #123a90 0%, #0a2358 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.06;
}
.hero-lead,
.hero p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.92);
  max-width: 710px;
  font-size: 1.08rem;
}
.hero-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}
.hero-list span {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}
.hero-panel,
.public-banner-box,
.checkout-side-note {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { margin: 0 0 18px; font-size: 1.35rem; }
.hero-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-bottom: 0; }
.hero-stat span { color: rgba(255,255,255,.88); }
.hero-stat strong { color: #f8d90f; }

.feature-card h3,
.price-card h3,
.legal-card h3,
.contact-card h3 {
  margin-top: 0;
  color: #0f2f73;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.destaque {
  border: 2px solid #f8d90f;
  transform: translateY(-4px);
}
.tag-topo {
  position: absolute;
  right: 20px;
  top: -12px;
  background: #f8d90f;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-compare {
  margin: 0;
  font-weight: 700;
  color: #64748b;
  text-decoration: line-through;
}
.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  color: #0f3d9a;
  line-height: 1.1;
}
.price-note {
  margin: 0;
  color: #475569;
  font-weight: 700;
}
.feature-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}
.feature-list li + li { margin-top: 6px; }
.price-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.price-footer small { color: #64748b; }

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

/* Forms */
.form-page {
  min-height: calc(100vh - 164px);
  display: grid;
  place-items: center;
  padding: 42px 0;
}
.form-card {
  width: min(820px, 100%);
}
.large-form-card { width: min(980px, 100%); }
.slim-form-card { width: min(500px, 100%); }

.form-card-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-bottom: 24px;
}
.checkout-side-note {
  color: #fff;
  background: linear-gradient(135deg, #0f3d9a, #0a2358);
  display: grid;
  gap: 10px;
}
.checkout-side-note span {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: #0f172a;
}
.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 0;
  border-color: #0f3d9a;
  box-shadow: 0 0 0 4px rgba(15, 61, 154, 0.10);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-textarea-large { min-height: 420px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: #334155;
}
.check-row input {
  margin-top: 4px;
  transform: scale(1.15);
}
.check-row a {
  color: #0f3d9a;
  font-weight: 700;
}
.input-prefix {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}
.input-prefix span {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: #eff6ff;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  color: #1e3a8a;
  font-weight: 700;
}
.input-prefix .form-control {
  border-radius: 0 14px 14px 0;
}
.checkout-summary-box,
.support-box,
.billing-history-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dbe7fb;
  border-radius: 16px;
  margin-top: 18px;
}
.support-box { margin-top: 24px; }
.support-box .btn { width: 100%; }

.plan-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.plan-choice {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #d9e5f9;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plan-choice:hover { transform: translateY(-1px); }
.plan-choice input { display: none; }
.plan-choice.selected,
.plan-choice.is-active {
  border: 2px solid #0f3d9a;
  box-shadow: 0 12px 26px rgba(15, 61, 154, 0.12);
}
.plan-choice-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  background: #fff4bf;
  color: #7a5a00;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.plan-choice-compare { color: #64748b; text-decoration: line-through; }
.plan-choice-price {
  color: #0f3d9a;
  font-size: 1.15rem;
  font-weight: 900;
}

/* Public page */
.public-banner {
  padding: 54px 0;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(248, 217, 15, 0.18), transparent 26%),
    linear-gradient(135deg, #0f3d9a 0%, #0a2358 100%);
}
.public-banner-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
}
.public-banner-info { display: grid; gap: 16px; }
.back-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: .95;
}
.public-avatar,
.public-list-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
  border: 4px solid rgba(255,255,255,0.16);
}
.public-avatar img,
.public-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.public-banner h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.public-banner p { margin: 0; color: rgba(255,255,255,.92); }
.public-banner-box {
  display: grid;
  gap: 10px;
  color: #fff;
}
.public-banner-box span {
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.public-page-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: start;
}
.public-side-column {
  display: grid;
  gap: 24px;
}
.public-list-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.public-list-card h3 { margin: 0 0 6px; color: #0f2f73; }
.public-list-card p,
.public-list-card small { color: #64748b; }

.timeline {
  display: grid;
  gap: 12px;
}
.timeline-month {
  margin: 4px 0 0;
  color: #0f2f73;
}
.timeline-item {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
}
.timeline-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mini-steps {
  display: grid;
  gap: 10px;
}
.mini-steps span {
  background: #f8fbff;
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

/* Billing */
.billing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.billing-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.info-pill {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dbe7fb;
  border-radius: 16px;
}
.info-pill span { color: #64748b; font-size: .92rem; }
.info-pill strong {
  color: #0f2f73;
  font-size: 1.05rem;
  word-break: break-word;
}

/* Status */
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
}
.status-recebido,
.status-pendente {
  background: #fff7ed;
  color: #9a3412;
}
.status-encaminhado {
  background: #eff6ff;
  color: #1d4ed8;
}
.status-resolvido,
.status-pago {
  background: #ecfdf5;
  color: #047857;
}
.status-cancelado {
  background: #fff1f2;
  color: #be123c;
}

/* Tables and lists */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5edf7;
  text-align: left;
  vertical-align: top;
}
.table th {
  color: #0f2f73;
  font-size: .92rem;
}
.list-cards {
  display: grid;
  gap: 12px;
}
.list-card-link { text-decoration: none; }
.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5edf7;
  background: #fff;
}
.list-card.is-selected {
  border-color: #0f3d9a;
  box-shadow: 0 10px 22px rgba(15, 61, 154, 0.08);
}
.list-card strong {
  display: block;
  color: #0f2f73;
  margin-bottom: 4px;
}
.list-card span,
.list-card small {
  display: block;
  color: #64748b;
}

/* Legal */
.legal-card,
.contact-card {
  max-width: 900px;
  margin: 0 auto;
}
.footer-copy {
  margin: 12px 0 0;
  max-width: 520px;
  color: #d6e2ff;
}
.site-footer {
  background: #0a2358;
  color: #fff;
  padding: 28px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  text-decoration: none;
  color: #fff;
  opacity: .9;
}
.footer-links a:hover { opacity: 1; color: #f8d90f; }

/* Utilities */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar-placeholder {
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 2.4rem;
  font-weight: 900;
}
.profile-summary-box {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 18px;
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-link-card {
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid #dbe7fb;
  background: #f8fbff;
}
.quick-link-card strong {
  display: block;
  color: #0f2f73;
  margin-bottom: 6px;
}
.quick-link-card span { color: #64748b; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid,
  .public-banner-grid,
  .public-page-grid,
  .billing-layout,
  .showcase-grid,
  .form-card-head {
    grid-template-columns: 1fr;
  }

  .price-grid,
  .plan-selector-grid,
  .billing-status-grid,
  .quick-links-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .price-card.destaque { transform: none; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 74px;
    width: min(320px, calc(100% - 32px));
    background: #0a2358;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .main-nav.active { display: flex; }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255,255,255,0.10);
  }
  .menu-toggle { display: inline-flex; }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .hero { padding: 58px 0 46px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-item-head,
  .list-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .container { width: min(100%, calc(100% - 22px)); }
  .card { padding: 20px; border-radius: 18px; }
}
