/* Bradesco Seguros wrapper — mobile-first (access is ~100% via the SMS link on
   a phone). The iframe fills the viewport; a brand-color splash covers load. */

:root {
  --bradesco-red: #CC092F;
}

* { box-sizing: border-box; }

html, body, #app-root {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  background: var(--bradesco-red);
  overflow: hidden; /* no horizontal scroll on mobile */
  -webkit-text-size-adjust: 100%;
}

iframe.app-frame {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* dynamic viewport — accounts for mobile browser chrome */
  border: none;
}

/* Loading splash (hidden once the iframe fires `load`). */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bradesco-red);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  z-index: 1;
}

.splash-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.splash-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 20rem;
}
