:root {
  --blue: #062966;
  --blue-deep: #06245b;
  --mint: #61e2b4;
  --white: #ffffff;
  --muted: #dbe7ff;
  font-family: "Inter", Arial, sans-serif;
}

html {
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--white);
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.app-shell {
  --card-ratio: 0.562;
  width: min(100vw, calc(100svh * 0.562), 515px);
  height: 100vh;
  height: 100svh;
  max-height: 917px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(2, 17, 49, 0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: size;
  animation: pageReveal 700ms ease-out both;
}

.hero {
  height: 39%;
  min-height: 0;
  flex: 0 0 39%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue);
}

.brand {
  --brand-y: -34px;
  --brand-scale: 1;
  width: min(68%, 340px);
  min-height: 0;
  display: grid;
  place-items: center;
  transform: translateY(var(--brand-y)) scale(var(--brand-scale));
  animation: logoFloat 5s ease-in-out infinite;
}

.brand-image {
  width: 100%;
  max-height: min(150px, 18cqh);
  object-fit: contain;
  display: block;
}

.contact-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  position: relative;
  background: var(--blue);
}

.wave {
  position: absolute;
  top: max(-96px, -10.5cqh);
  left: -15%;
  width: 130%;
  height: min(306px, 34cqh);
  display: block;
  pointer-events: none;
  overflow: visible;
}

.wave-mint {
  fill: var(--mint);
  animation: waveDriftMint 7s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}

.wave-blue {
  fill: var(--blue);
  animation: waveDriftBlue 8.5s ease-in-out infinite alternate;
  transform-origin: 50% 55%;
}

.panel-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(66px, 10.5cqh, 108px) clamp(12px, 3cqw, 15px) clamp(10px, 2cqh, 30px);
  display: flex;
  flex-direction: column;
  animation: contentRise 800ms ease-out 120ms both;
}

.intro {
  width: min(100%, 430px);
  margin: 0 auto clamp(16px, 3.5cqh, 36px);
  padding-left: 12px;
  border-left: 4px solid var(--mint);
  font-size: clamp(10px, 1.55cqh, 14px);
  line-height: 1.42;
  font-weight: 800;
  text-wrap: balance;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  row-gap: clamp(14px, 3.4cqh, 36px);
  margin: 0 auto;
  max-width: 398px;
  width: min(100%, 398px);
}

.contact-action {
  min-height: clamp(66px, 10.3cqh, 104px);
  padding: 0 12px;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 11px;
  text-align: center;
  transition: transform 160ms ease, color 160ms ease;
  animation: iconSettle 700ms ease-out backwards;
}

.contact-action:nth-child(1) {
  animation-delay: 180ms;
}

.contact-action:nth-child(2) {
  animation-delay: 260ms;
}

.contact-action:nth-child(3) {
  animation-delay: 340ms;
}

.contact-action:nth-child(4) {
  animation-delay: 420ms;
}

.contact-action:nth-child(5) {
  animation-delay: 500ms;
}

.contact-action:nth-child(1),
.contact-action:nth-child(2),
.contact-action:nth-child(3) {
  grid-column: span 2;
}

.contact-action:nth-child(4) {
  grid-column: 2 / span 2;
}

.contact-action:nth-child(5) {
  grid-column: 4 / span 2;
}

.contact-action:hover,
.contact-action:focus-visible {
  color: var(--mint);
  transform: translateY(-3px);
  outline: 0;
}

.contact-action > span:last-child {
  font-size: clamp(9.5px, 1.35cqh, 13px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

/* --- ALTERAÇÕES PARA PADRONIZAÇÃO DOS ÍCONES --- */

.icon-circle {
  width: clamp(42px, 6.4cqh, 62px);
  height: clamp(42px, 6.4cqh, 62px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  background: transparent;
}

.custom-icon {
  width: 52%;
  height: 52%;
  object-fit: contain;
  display: block;
  border: none !important;
  outline: none !important;
}

/* Garante que imagens quebradas não mostrem bordas feias do navegador */
.custom-icon:not([src]), 
.custom-icon[src=""], 
.custom-icon:invalid {
  display: none !important;
}

/* --- FIM DA PADRONIZAÇÃO --- */

.hint-button {
  width: min(70%, 262px);
  min-height: clamp(42px, 5.9cqh, 58px);
  margin: auto auto 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--blue);
  font-size: clamp(9.5px, 1.35cqh, 13px);
  font-weight: 600;
  letter-spacing: 0;
  cursor: default;
  user-select: none;
  animation: hintPulse 2.8s ease-in-out infinite;
}

.hint-button span {
  font-size: 25px;
}

.qr-dialog {
  width: min(92vw, 360px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.qr-dialog::backdrop {
  background: rgba(2, 12, 38, 0.68);
}

.qr-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  text-align: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #2ebf93;
  text-transform: uppercase;
}

.qr-card h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.qr-box {
  width: 252px;
  height: 252px;
  margin: 4px auto;
  padding: 10px;
  border: 2px solid #e7edf8;
  display: grid;
  place-items: center;
}

.qr-value {
  min-height: 38px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #395078;
  font-size: 12px;
  line-height: 1.35;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-link,
.secondary-button {
  min-height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.primary-link {
  background: var(--blue);
  color: var(--white);
}

.secondary-button {
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
}

@media (min-width: 768px) {
  body {
    padding: 0;
  }

  .app-shell {
    width: min(92vw, calc(100svh * 0.8), 760px);
    height: 100svh;
    max-height: none;
  }

  .brand {
    width: min(48%, 360px);
    --brand-y: -24px;
  }

  .wave {
    top: max(-92px, -10cqh);
  }

  .panel-content {
    padding-left: clamp(24px, 5cqw, 44px);
    padding-right: clamp(24px, 5cqw, 44px);
  }

  .intro {
    width: min(100%, 560px);
    font-size: clamp(12px, 1.55cqh, 15px);
  }

  .icon-grid {
    max-width: 560px;
  }

  .hint-button {
    width: min(52%, 330px);
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  body {
    display: block;
    background: var(--blue);
  }

  .app-shell {
    width: 100vw;
    height: 100svh;
    max-height: none;
    box-shadow: none;
  }

  .hero {
    flex-basis: 37%;
    height: 37%;
  }

  .brand {
    width: min(76%, 330px);
    --brand-y: -14px;
  }

  .contact-panel {
    min-height: 0;
  }

  .wave {
    top: -90px;
  }

  .panel-content {
    padding-top: clamp(66px, 10cqh, 100px);
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  body {
    display: grid;
    place-items: center;
    background: #eef2f7;
  }

  .app-shell {
    width: min(100vw, calc(100svh * 0.562));
    height: 100svh;
    max-height: none;
    box-shadow: none;
  }

  .hero {
    height: 36%;
    flex-basis: 36%;
  }

  .brand {
    width: 70%;
    --brand-y: -12px;
    --brand-scale: 0.86;
  }

  .wave {
    top: max(-70px, -9cqh);
  }

  .panel-content {
    padding-top: clamp(46px, 8.4cqh, 76px);
  }
}

@media (min-width: 768px) and (max-height: 760px) {
  .hero {
    height: 36%;
    flex-basis: 36%;
  }

  .brand {
    width: min(64%, 300px);
    --brand-y: -18px;
    --brand-scale: 0.92;
  }

  .wave {
    top: max(-72px, -9cqh);
  }

  .panel-content {
    padding-top: clamp(54px, 8.8cqh, 82px);
  }

  .intro {
    font-size: clamp(9.5px, 1.35cqh, 12px);
    margin-bottom: clamp(12px, 2.4cqh, 24px);
  }

  .icon-grid {
    row-gap: clamp(10px, 2.4cqh, 24px);
  }
}

@media (max-width: 360px) {
  .hero {
    height: 32%;
    flex-basis: 32%;
  }

  .brand {
    width: 82%;
    --brand-y: -26px;
    --brand-scale: 0.9;
  }

  .panel-content {
    padding-top: 92px;
  }

  .icon-grid {
    row-gap: 18px;
  }

  .contact-action {
    padding: 0 7px;
  }

  .contact-action > span:last-child {
    font-size: 11px;
  }
}

@keyframes waveDriftMint {
  0% {
    transform: translate3d(-24px, 0, 0) scaleX(1.02) skewX(-1deg);
  }

  50% {
    transform: translate3d(8px, -12px, 0) scaleX(1.05) skewX(1deg);
  }

  100% {
    transform: translate3d(24px, -4px, 0) scaleX(1.03) skewX(-0.5deg);
  }
}

@keyframes waveDriftBlue {
  0% {
    transform: translate3d(22px, 4px, 0) scaleX(1.02) skewX(1deg);
  }

  50% {
    transform: translate3d(-6px, 12px, 0) scaleX(1.05) skewX(-1deg);
  }

  100% {
    transform: translate3d(-24px, 6px, 0) scaleX(1.03) skewX(0.5deg);
  }
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(var(--brand-y)) scale(var(--brand-scale));
  }

  50% {
    transform: translateY(calc(var(--brand-y) - 8px)) scale(var(--brand-scale));
  }
}

@keyframes contentRise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconSettle {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hintPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell,
  .brand,
  .wave-mint,
  .wave-blue,
  .panel-content,
  .contact-action,
  .hint-button {
    animation: none;
  }
}