/*
 * Gerenciamento de Risco — página pública.
 *
 * Mobile-first, usando os mesmos tokens do restante do site público. A página
 * converge para dois cartões de cadastro; tudo antes deles é contexto, e por
 * isso o peso visual cresce até chegar lá.
 */

.pt-risk-page {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* ---- Topo ---------------------------------------------------------------- */

.pt-risk-hero {
  padding: 1.5rem 0 2rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--pt-primary) 8%, var(--pt-bg)) 0%,
    var(--pt-bg) 100%
  );
}

.pt-risk-breadcrumb {
  display: flex;
  margin-bottom: 1.25rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--pt-text-muted);
  font-size: 0.82rem;
}

.pt-risk-breadcrumb a {
  color: var(--pt-text-muted);
}

.pt-risk-breadcrumb a:hover,
.pt-risk-breadcrumb a:focus-visible {
  color: var(--pt-primary);
}

.pt-risk-breadcrumb i {
  font-size: 0.62rem;
}

.pt-risk-hero__grid {
  display: grid;
  gap: 1.75rem;
}

.pt-risk-hero__copy h1 {
  margin: 0.6rem 0 0.75rem;
  color: var(--pt-heading);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pt-risk-hero__copy > p {
  margin: 0;
  max-width: 56ch;
  color: var(--pt-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.pt-risk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 0.7rem;
}

.pt-risk-hero__actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.5rem;
}

.pt-risk-hero__secondary {
  color: var(--pt-text);
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
}

.pt-risk-hero__secondary:hover,
.pt-risk-hero__secondary:focus-visible {
  border-color: var(--pt-primary);
  color: var(--pt-primary);
}

/* A regra do checklist: é o que separa a liberação de um carimbo. */
.pt-risk-hero__rule {
  display: flex;
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.9rem;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--pt-text);
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.pt-risk-hero__rule i {
  margin-top: 0.15rem;
  color: var(--pt-primary);
}

/* ---- Etapas -------------------------------------------------------------- */

.pt-risk-hero__panel {
  padding: 1.25rem;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 18px;
}

.pt-risk-hero__panel-title {
  display: block;
  margin-bottom: 1rem;
  color: var(--pt-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pt-risk-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.pt-risk-steps li {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  grid-template-columns: 40px minmax(0, 1fr);
}

.pt-risk-steps__marker {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--pt-primary);
  background: color-mix(in srgb, var(--pt-primary) 12%, transparent);
  border-radius: 12px;
  place-items: center;
}

.pt-risk-steps__copy strong {
  display: block;
  color: var(--pt-heading);
  font-size: 0.94rem;
}

.pt-risk-steps__copy small {
  display: block;
  margin-top: 0.15rem;
  color: var(--pt-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ---- Cabeçalho de seção -------------------------------------------------- */

.pt-risk-section-heading {
  margin-bottom: 1.5rem;
  max-width: 62ch;
}

.pt-risk-section-heading h2 {
  margin: 0.5rem 0 0.6rem;
  color: var(--pt-heading);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pt-risk-section-heading p {
  margin: 0;
  color: var(--pt-text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---- O que é analisado --------------------------------------------------- */

.pt-risk-subject-grid,
.pt-risk-entry-grid {
  display: grid;
  gap: 1rem;
}

.pt-risk-subject-card {
  padding: 1.35rem;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 18px;
}

.pt-risk-subject-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  color: var(--pt-primary);
  background: color-mix(in srgb, var(--pt-primary) 12%, transparent);
  border-radius: 14px;
  font-size: 1.1rem;
  place-items: center;
}

.pt-risk-subject-card h3 {
  margin: 0 0 0.35rem;
  color: var(--pt-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.pt-risk-subject-card > p {
  margin: 0 0 1rem;
  color: var(--pt-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pt-risk-subject-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.55rem;
  list-style: none;
}

.pt-risk-subject-card li {
  display: grid;
  gap: 0.55rem;
  align-items: start;
  color: var(--pt-text);
  font-size: 0.88rem;
  grid-template-columns: 16px minmax(0, 1fr);
  line-height: 1.45;
}

.pt-risk-subject-card li i {
  margin-top: 0.25rem;
  color: var(--pt-success);
  font-size: 0.78rem;
}

/* ---- Os dois cadastros --------------------------------------------------- */

.pt-risk-entry {
  padding: 2rem 0;
  background: var(--pt-surface-secondary);
}

.pt-risk-entry-card {
  display: grid;
  padding: 1.6rem;
  gap: 0.15rem;
  align-content: start;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 20px;
}

.pt-risk-entry-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  color: #fff;
  background: var(--pt-primary);
  border-radius: 16px;
  font-size: 1.25rem;
  place-items: center;
}

.pt-risk-entry-card.is-transportadora .pt-risk-entry-card__icon {
  background: var(--pt-heading);
}

.pt-risk-entry-card h3 {
  margin: 0.3rem 0 0.5rem;
  color: var(--pt-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pt-risk-entry-card > p {
  margin: 0 0 1.1rem;
  color: var(--pt-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pt-risk-entry-card__highlights {
  display: grid;
  margin: 0 0 1.4rem;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.pt-risk-entry-card__highlights li {
  display: grid;
  gap: 0.55rem;
  align-items: start;
  color: var(--pt-text);
  font-size: 0.88rem;
  grid-template-columns: 16px minmax(0, 1fr);
}

.pt-risk-entry-card__highlights i {
  margin-top: 0.2rem;
  color: var(--pt-success);
  font-size: 0.8rem;
}

.pt-risk-entry-card .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pt-risk-entry__login {
  margin: 1.5rem 0 0;
  color: var(--pt-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---- Telas maiores ------------------------------------------------------- */

@media (min-width: 768px) {
  .pt-risk-subject-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .pt-risk-entry-grid {
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .pt-risk-hero {
    padding: 2.5rem 0 3rem;
  }

  .pt-risk-hero__grid {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .pt-risk-entry {
    padding: 3rem 0;
  }
}
