/* BC Digital Hotsite — Styles */
:root {
  --bg: #001c81; /* azul institucional escuro */
  --bg-2: #001f9d;
  --text: #0b1726;
  --muted: #3a4a5e;
  --white: #ffffff;
  --accent: #12a4ff;
  --accent-2: #0fc2c0;
  --container: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 33, 64, 0.25);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;
  background-color: #001c81;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6eef6;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-group .divider {
  width: 1px;
  height: 28px;
  background: #d6e3f2;
}
.header-nav {
  display: flex;
  gap: 14px;
}
.header-nav .nav-link {
  color: #28435f;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.header-nav .nav-link:hover {
  background: #f1f6fb;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--white);
  padding: 56px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-image: url("assets/img/bcfundo.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-text .app-logo {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.08));
  margin-bottom: 12px;
  margin-top: -100px;
  margin-left: -100px;
}
.hero-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  margin: 6px 0 10px;
}
.headline-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.headline-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-title .headline-fixed {
  white-space: nowrap;
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.headline-rotate {
  display: inline-block;
  position: relative;
  min-width: 10ch;
}
.headline-rotate .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
  font-family: "Sour Gummy", "Rubik", cursive;
  font-weight: 600;
}
.headline-underline {
  width: 176px;
  height: 24px;
  transform-origin: left center;
  margin-top: -9px;
  margin-left: 100px;
}
.headline-underline path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: underline-draw 6s ease-in-out infinite;
}

@keyframes underline-draw {
  0% {
    stroke-dashoffset: 220;
  }
  20% {
    stroke-dashoffset: 0;
  }
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 220;
  }
}
.headline-rotate .word.is-out {
  opacity: 0;
  transform: translateY(-0.4em);
  position: absolute;
  left: 0;
}
.headline-rotate .word.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .headline-rotate .word {
    transition: none;
  }
}
.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.125rem);
  color: #d6e7fb;
  margin: 0 0 22px;
}

.cta-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 10px 50px;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a2f56;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.2s ease;
}
.store-button:hover {
  transform: translateY(-1px);
  background: #0c3663;
}
.store-button:active {
  transform: translateY(0);
}
.store-button .store-icon {
  display: grid;
  place-items: center;
  background: #0c3f72;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.store-button .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.store-button .store-small {
  font-size: 0.75rem;
  color: #cfe6ff;
}
.store-button .store-big {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.google-play {
  transform: translateX(-5px);
}
.app-store {
  background: #0a2e51;
}
.app-store .store-icon {
  background: #0a3a6b;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.mockups {
  display: flex;
  gap: 16px;
  margin: 0;
}
.phone {
  width: min(42vw, 320px);
  height: auto;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}
.phone-ios {
  transform: rotate(-4deg);
}
.phone-android {
  transform: rotate(3deg);
}

/* Entrance animation for mockups */
.mockups.animate-in .phone {
  opacity: 0;
  transform-origin: center;
}
.mockups.animate-in .phone-ios {
  animation: phoneInLeft 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}
.mockups.animate-in .phone-android {
  animation: phoneInRight 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}

@keyframes phoneInLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px) rotate(-8deg) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateX(2px) rotate(-3deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-4deg);
  }
}
@keyframes phoneInRight {
  0% {
    opacity: 0;
    transform: translateX(24px) rotate(8deg) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateX(-2px) rotate(4deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mockups.animate-in .phone,
  .mockups.animate-in .phone-ios,
  .mockups.animate-in .phone-android {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  background-image: url("../assets/img/faixa.png");
  background-repeat: repeat-x;
  background-size: auto 50px;
  background-position: center;
  height: 50px;
  display: block;
}

/* Layout responsive */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  .brand-group img {
    max-width: 80px;
    height: auto;
  }
  .header-nav {
    width: 100%;
    justify-content: center;
  }
  .hero-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .headline-rotate {
    min-width: 8ch;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text .app-logo {
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 12px;
    max-width: 80vw;
  }
  .headline-wrap {
    align-items: center;
  }
  .headline-line {
    justify-content: center;
  }
  .headline-underline {
    margin-left: 0;
  }
  .cta-title {
    margin-left: 0;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .store-buttons {
    flex-direction: column;
    width: 100%;
  }
  .store-button {
    width: 100%;
    justify-content: center;
  }
  .google-play {
    transform: translateX(0);
  }
  .phone {
    width: min(45vw, 280px);
  }
}

@media (min-width: 601px) and (max-width: 899px) {
  .header-inner {
    padding: 14px 0;
  }
  .brand-group img {
    max-width: 90px;
    height: auto;
  }
  .hero {
    padding: 64px 0;
  }
  .store-buttons {
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 84px 0;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .hero-text {
    padding-right: 24px;
  }
  .hero-visual {
    justify-content: flex-end;
  }
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
