/* ==========================================================================
   A299 — Mobile-first shell + fixed header (BR betting landing)
   ========================================================================== */

:root {
  /* Brand / header ??dir 11 : H306+H129 high contrast */
  --green: #d813c4;
  --green-dark: #940586;
  --green-deep: #230b20;
  --mint-nav: #f7f3f7;
  --teal: #0cc027;
  --accent: #fc4e03;
  --ink: #000000;
  --line-gray: #404040;
  --line-green: rgba(216, 19, 196, 0.38);

  --nav-pad-x: 10px;
  --layout-max: 100%;
  --column-max: 30.375rem;
  --canvas: #f0eaf0;
  --surface-top: #f8f6f8;
  --canvas-desktop: #351331;
  --column-ring: rgba(216, 19, 196, 0.3);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --text-body: #000000;
  --text-muted: #1a1a1a;
  --heading: #20091d;
  --link: #88077b;

  --header-z: 9999;
  --ease: 0.18s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
}

@supports (background: color-mix(in srgb, #d813c4 14%, white)) {
  :root {
    --mint-nav: color-mix(in srgb, #d813c4 10%, #ffffff);
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ---------- Centered phone column (shell + header) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--header-z);
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font);
  overflow: visible;
}

.site-header__column,
.shell {
  width: 100%;
  max-width: min(100%, var(--column-max));
  margin-inline: auto;
}

.site-header__column {
  pointer-events: auto;
  overflow: visible;
}

.site-header-spacer {
  display: block;
  width: 100%;
}

.shell {
  overflow-x: hidden;
  background: var(--surface-top);
  padding-bottom: 0;
  margin-bottom: 0;
}

.landing__container {
  width: 100%;
  max-width: var(--layout-max);
  padding-inline: var(--nav-pad-x);
  padding-bottom: 0;
}

.prose {
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
}

.prose > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 768px) {
  html,
  body {
    background: var(--canvas-desktop);
  }

  .site-header__column,
  .shell {
    width: min(100%, var(--column-max));
    box-shadow: 0 0 0 1px var(--column-ring);
    margin-bottom: 0;
  }
}

/* ---------- Typography (prose) ---------- */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.prose h1 {
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
}

.prose h2 {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
}

.prose h3 {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.prose h4 {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
}

.prose p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-body);
}

.prose li {
  color: var(--text-body);
}

.prose a:not(.btn):not(.nav-btn):not(.app-banner__install) {
  color: var(--link);
  font-weight: 600;
}

.prose a:not(.btn):not(.nav-btn):not(.app-banner__install):hover {
  color: var(--heading);
}

/* ---------- Inner grid (.container inside shell) ---------- */
.shell .container {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--nav-pad-x) * -0.5);
}

.row > * {
  padding-inline: calc(var(--nav-pad-x) * 0.5);
  width: 100%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-decoration-none { text-decoration: none !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-3 { margin-left: 1rem !important; }
.my-2 { margin-block: 0.5rem !important; }
.py-2 { padding-block: 0.75rem !important; }
.py-5 { padding-block: clamp(1.25rem, 4vw, 2rem) !important; }
.w-100 { width: 100% !important; }
.rounded-2 { border-radius: 2px !important; }
.rounded-5 { border-radius: var(--radius-lg) !important; }
.img-fluid { max-width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
  transition: filter var(--ease), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: #166534; }

.btn-success { background: #166534; }

.btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius-pill);
}

/* ---------- Page blocks inside shell ---------- */
.prose > section:first-of-type {
  padding-block: 1rem 1.25rem;
}

.prose > section:first-of-type .col-12 + .col-12 {
  margin-top: 1rem;
}

.prose > section:first-of-type a:has(.img-fluid) {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bg-primary {
  margin-inline: calc(var(--nav-pad-x) * -1);
  padding-inline: var(--nav-pad-x);
  background: var(--green) !important;
  border-block: 1px solid var(--line-green);
}

.bg-primary h2,
.bg-primary .text-white {
  margin-bottom: 0;
  color: #fff !important;
}

section.bg-primary.text-center {
  padding-block: 1rem !important;
}

.prose footer.container {
  padding-block: 1rem 0;
  border-top: 1px solid var(--line-green);
}

.prose section.container:has(.d-flex) {
  padding-block: 1.25rem;
}

.prose section.container .d-flex {
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--line-green);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(71, 85, 105, 0.12);
}

.prose footer.container a {
  color: #1e293b;
  font-size: 0.875rem;
  font-weight: 700;
}

.prose footer.container a:hover {
  color: var(--link);
}

.prose .section-legal {
  padding-top: clamp(1.25rem, 4vw, 1.75rem);
  padding-bottom: 0 !important;
  margin-bottom: 0;
  border-top: 1px solid var(--line-green);
}

.prose .section-legal--last p:last-child {
  margin-bottom: 0;
}

.prose .section-legal p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
}

.prose .section-legal h2 {
  color: var(--heading);
}

/* ==========================================================================
   Fixed header — APP bar + main nav + dropdown
   ========================================================================== */

/* APP download strip */
.app-banner {
  position: relative;
  display: block;
  flex-shrink: 0;
  background: #1e293b;
  border-bottom: 1px solid var(--line-gray);
  padding: max(env(safe-area-inset-top, 0px), 6px) 10px 8px 42px;
}

.app-banner.is-hidden {
  display: none !important;
}

.app-banner__close {
  position: absolute;
  top: max(calc(env(safe-area-inset-top, 0px) + 4px), 8px);
  left: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-banner__close:hover,
.app-banner__close:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  outline: none;
}

.app-banner__body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.app-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.app-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.2;
}

.app-banner__text strong,
.app-banner__text span {
  font-weight: 700;
  color: #fff;
}

.app-banner__install {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  background: #166534;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  touch-action: manipulation;
  transition: filter var(--ease), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-banner__install:hover {
  filter: brightness(1.08);
}

.app-banner__install:active {
  transform: scale(0.97);
}

/* Main nav row */
.nav-shell {
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 4px;
  background: var(--mint-nav);
  border-bottom: 1px solid var(--line-green);
}

.main-nav__hamburger {
  flex-shrink: 0;
  width: clamp(44px, 12vw, 54px);
  height: clamp(44px, 12vw, 54px);
  padding: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: background var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.main-nav__hamburger:hover,
.main-nav__hamburger:focus-visible {
  background: rgba(71, 85, 105, 0.12);
  outline: none;
}

.main-nav__logo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.main-nav__logo img {
  display: block;
  width: 100%;
  max-width: clamp(72px, min(52vw, calc(100vw - 14rem)), 220px);
  height: clamp(26px, 7vw, 40px);
  object-fit: contain;
  object-position: left center;
}

.main-nav__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(40px, 10vw, 50px);
  padding: 0 clamp(8px, 2.5vw, 14px);
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  border-radius: clamp(11px, 2.5vw, 16px);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  touch-action: manipulation;
  transition: filter var(--ease), transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn--entrar { background: #166534; }

.nav-btn--registro { background: #14532d; }

.nav-btn:hover {
  filter: brightness(1.06);
}

.nav-btn:active {
  transform: scale(0.97);
}

/* Full-width dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 2;
  background: var(--mint-nav);
  border-bottom: 1px solid var(--line-green);
  box-shadow: 0 10px 24px rgba(51, 65, 85, 0.14), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px 10px 10px;
}

.nav-dropdown__link {
  display: block;
  padding: 12px 14px;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), font-weight var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.nav-dropdown__link:hover {
  background: rgba(71, 85, 105, 0.14);
}

.nav-dropdown__link.is-active {
  background: rgba(71, 85, 105, 0.22);
  font-weight: 700;
}

@media (min-width: 768px) {
  .main-nav {
    padding: 8px 12px 8px 6px;
    gap: 8px;
  }

  .main-nav__cta {
    gap: 6px;
  }

  .nav-btn {
    font-size: 12px;
  }

  .app-banner {
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
