:root {
  --navy: #1F2A44;
  --terracotta: #A87260;
  --beige: #F1EAE2;
  --white: #FAFAF8;
  --text-dark: #374457;
  --shadow: 0 16px 40px rgba(31, 42, 68, 0.08);
}

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

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background-color: var(--beige);
}

button, a {
  font: inherit;
  cursor: pointer;
}

/* Background fixo de duas cores */
.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  background-color: var(--beige);
}

.bg-top {
  height: 38%;
  min-height: 250px;
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
  /* Arredondamento da parte inferior do fundo azul escuro */
  border-bottom-left-radius: 50% 50px;
  border-bottom-right-radius: 50% 50px;
}

.bg-bottom {
  flex: 1;
}

.watermark {
  position: absolute;
  top: -15%;
  left: -10%;
  width: auto;
  height: 140%;
  opacity: 0.12;
  object-fit: cover;
  pointer-events: none;
}

/* Layout Principal */
.page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Espaço generoso no topo e no final para a rolagem funcionar e o avatar não colar na tela */
  padding: 110px 20px 40px; 
}

/* Cartão Central */
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 32px;
  padding: 85px 24px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  /* Garante o centro da tela sem cortar conteúdos quando rolar */
  margin: auto 0;
}

/* Avatar circular do topo */
.avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.avatar__ring {
  width: 155px;
  height: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 8px solid var(--beige);
  padding: 16px;
}

.avatar__ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Textos da marca */
.brand__title {
  color: var(--navy);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.brand__divider .line {
  width: 24px;
  height: 2px;
  background: var(--terracotta);
}

.brand__divider .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.brand__subtitle {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 28px;
}

/* Botões de Link */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 24px;
  text-decoration: none;
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-navy {
  background-color: var(--navy);
}

.btn-terracotta {
  background-color: var(--terracotta);
}

/* Ícones dos Botões */
.link-button__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-right: 16px;
}

.link-button__icon svg {
  width: 32px;
  height: 32px;
}

/* Textos dos Botões */
.link-button__text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-button__text small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 2px;
}

.link-button__text strong {
  font-size: 20px;
  font-weight: 700;
}

.link-button__arrow {
  font-size: 20px;
  font-weight: 600;
  margin-left: 12px;
}

/* Rodapé externo (Escudo e Texto) */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--navy);
  text-align: left;
}

.footer__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__icon svg {
  width: 100%;
  height: 100%;
}

.footer__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Link discreto para o site da RBCIP */
.site-link {
  margin-top: 20px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.site-link a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--terracotta);
}

/* Notificação Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 99;
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: all .3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}