* {
  box-sizing: border-box;
}

:root {
  --navy: #050b21;
  --navy-2: #08142f;
  --cyan: #19d8d1;
  --blue: #3487f5;
  --violet: #9a55f5;
  --text: #18263a;
  --muted: #64758a;
  --muted-light: #8795a7;
  --border: #dce5ef;
  --border-strong: #c9d5e3;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --success: #17785d;
  --success-soft: #edf9f5;
  --danger: #b4233f;
  --danger-soft: #fff3f5;
  --gradient:
    linear-gradient(
      105deg,
      #19d8d1 0%,
      #3487f5 52%,
      #9a55f5 100%
    );
  --button-gradient:
    linear-gradient(
      110deg,
      #278bdc 0%,
      #3c7ff0 52%,
      #8357df 100%
    );
  --shadow:
    0 22px 60px
    rgba(5, 11, 33, .08);
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(25,216,209,.04),
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 0%,
      rgba(154,85,245,.05),
      transparent 30%
    ),
    var(--background);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background:
    linear-gradient(
      100deg,
      var(--navy) 0%,
      #07142d 100%
    );
  border-bottom:
    1px solid
    rgba(255,255,255,.08);
}

.header-inner {
  width: 100%;
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.text-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.text-brand strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.text-brand strong::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  margin-top: 3px;
  background: var(--gradient);
  border-radius: 999px;
}

.text-brand span {
  margin-top: 3px;
  color: #b9c6d8;
  font-size: 10px;
  font-weight: 600;
}

.main-shell {
  width: 100%;
  max-width: 920px;
  flex: 1;
  margin: 0 auto;
  padding: 36px 18px 58px;
}

.onboarding-card {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card-accent {
  height: 5px;
  background: var(--gradient);
}

.card-content {
  padding: 38px 42px 40px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--navy-2);
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

h2 {
  margin: 32px 0 7px;
  font-size: 18px;
  letter-spacing: -.01em;
}

.description,
.section-copy {
  color: var(--muted);
}

.description {
  margin: 12px 0 0;
  font-size: 14px;
}

.section-copy {
  margin: 0 0 15px;
  font-size: 12px;
}

.info {
  margin-top: 22px;
  padding: 14px 15px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.info strong {
  color: var(--navy-2);
}

.info p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

label {
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow:
    0 0 0 3px
    rgba(52,135,245,.10);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.divider {
  height: 1px;
  margin: 32px 0 0;
  background: var(--border);
}

.acceptance {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.acceptance input {
  width: auto;
  margin-top: 3px;
}

.acceptance label {
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

.version {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 10px;
}

.btn {
  width: 100%;
  min-height: 49px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--button-gradient);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    0 8px 18px
    rgba(52,135,245,.17);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  opacity: .58;
}

.feedback {
  margin-top: 18px;
  padding: 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #fecdd3;
  border-radius: 9px;
  font-size: 12px;
}

.state-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 27px;
  font-weight: 900;
}

.state-icon.neutral {
  color: var(--blue);
  background: #edf5ff;
}

.security-note {
  margin: 24px 0 0;
  color: var(--muted-light);
  font-size: 11px;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 3px solid #dde6f0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.loading-copy {
  color: var(--muted);
  text-align: center;
}

.loading-copy strong {
  display: block;
  color: var(--navy-2);
}

.loading-copy span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .main-shell {
    padding: 20px 12px 38px;
  }

  .card-content {
    padding: 28px 22px 30px;
  }

  h1 {
    font-size: 26px;
  }

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

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

/* ========================================================================== */
/* V23 | ATIVAÇÃO                                                             */
/* ========================================================================== */

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

.approved-item,
.availability-summary {
  padding: 14px 15px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.approved-item span,
.approved-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.approved-item strong {
  color: var(--navy-2);
  font-size: 13px;
  word-break: break-word;
}

.availability-summary {
  margin-top: 12px;
}

.approved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.approved-row:first-of-type {
  border-top: 0;
}

.approved-row span {
  color: var(--muted);
}

.approved-row strong {
  color: var(--navy-2);
  text-align: right;
}

.muted-inline {
  color: var(--muted);
  font-size: 12px;
}

.pending-panel {
  margin-top: 14px;
  padding: 16px;
  background: #fff8eb;
  border: 1px solid #f1d49c;
  border-radius: 10px;
}

.pending-panel strong {
  display: block;
  color: #725018;
  font-size: 13px;
}

.pending-panel p {
  margin: 6px 0 0;
  color: #826632;
  font-size: 12px;
}

.legal-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.legal-artifact {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.legal-artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.legal-artifact-header strong {
  color: var(--navy-2);
  font-size: 13px;
}

.legal-artifact-header span {
  color: var(--muted-light);
  font-size: 10px;
  white-space: nowrap;
}

.legal-content {
  max-height: 330px;
  overflow: auto;
  padding: 15px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.legal-artifact .acceptance {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.secondary-btn {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
  box-shadow: none;
}

.secondary-btn:hover:not(:disabled) {
  background: #f5f9ff;
}

.saved-feedback {
  margin-top: 16px;
  padding: 11px 12px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #bce3d6;
  border-radius: 9px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .approved-grid {
    grid-template-columns: 1fr;
  }

  .legal-artifact-header,
  .approved-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .approved-row strong {
    text-align: left;
  }
}

