:root {
  color-scheme: light;
  --brand: #006b55;
  --brand-strong: #004c3e;
  --brand-deep: #003d33;
  --brand-dark: #002e27;
  --gold: #f4c95d;
  --gold-soft: #ffedbd;
  --ink: #15201d;
  --muted: #5f6b67;
  --surface: #fffdf8;
  --surface-warm: #f8f4eb;
  --line: #ded8ca;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 51, 42, 0.14);
  --radius: 8px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--brand-dark);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 61, 51, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  overflow: hidden;
  background: var(--brand-deep);
  color: var(--white);
}

.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 78px;
  padding-block: 74px 0;
}

.hero-copy {
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow,
.support-hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 880;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--brand-dark);
}

.button-primary:hover {
  background: #ffd771;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-gold {
  background: var(--gold);
  color: var(--brand-dark);
}

.hero-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(370px, 78vw);
  aspect-ratio: 9 / 19.6;
  overflow: hidden;
  border: 9px solid #162824;
  border-bottom: 0;
  border-radius: 38px 38px 0 0;
  background: #101b18;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.lottery-rail {
  position: absolute;
  right: -44px;
  top: 15%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lottery-rail span {
  min-width: 78px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 46, 39, 0.9);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.lottery-rail .mega { border-color: #40d59f; }
.lottery-rail .lotof { border-color: #e94a9a; }
.lottery-rail .quin { border-color: #8c72ff; }
.lottery-rail .lotom { border-color: #ff8651; }
.lottery-rail .dias { border-color: #f4c95d; }
.lottery-rail .mili { border-color: #6d9bea; }
.lottery-rail .duplas { border-color: #b16ce2; }
.lottery-rail .timem { border-color: #30c7bb; }
.lottery-rail .super7 { border-color: #e6613d; }
.lottery-rail .lotfed { border-color: #62a7da; }
.lottery-rail .lotca { border-color: #a1c35a; }

.feature-band,
.faq-band {
  padding-block: 112px;
  background: var(--surface-warm);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-card:nth-child(2) { border-top: 4px solid #c02a78; }
.feature-card:nth-child(3) { border-top: 4px solid #563bb7; }
.feature-card:nth-child(4) { border-top: 4px solid #d65518; }
.feature-card:first-child { border-top: 4px solid var(--brand); }

.feature-number {
  display: block;
  margin-bottom: 42px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-story {
  padding-block: 120px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 100px;
}

.story-screens {
  min-height: 670px;
  position: relative;
}

.story-screens .phone-frame {
  position: absolute;
  width: 330px;
  max-height: 680px;
  border-bottom: 9px solid #162824;
  border-radius: 34px;
}

.phone-secondary {
  left: 0;
  top: 0;
  transform: rotate(-3deg);
}

.phone-tertiary {
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
}

.story-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.trust-band {
  padding-block: 76px;
  background: #e8f3ef;
  border-block: 1px solid #c9e0d8;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 56px;
}

.trust-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.trust-grid > p {
  color: var(--muted);
}

.text-link {
  color: var(--brand-strong);
  font-weight: 850;
  white-space: nowrap;
}

.final-cta {
  padding-block: 78px;
  background: var(--brand-deep);
  color: var(--white);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.final-cta-inner img {
  border-radius: 20px;
}

.final-cta h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.site-footer {
  padding-block: 48px;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr auto;
  align-items: start;
  gap: 52px;
}

.brand-footer {
  color: var(--white);
}

.footer-grid > div > p {
  max-width: 440px;
  margin-bottom: 0;
}

.footer-grid nav {
  display: grid;
  gap: 8px;
}

.footer-grid nav a {
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--gold);
}

.copyright {
  margin: 0;
  white-space: nowrap;
}

.legal-main,
.support-main {
  background: var(--surface-warm);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 90px;
  padding-block: 88px 110px;
}

.legal-heading {
  position: sticky;
  top: 116px;
  align-self: start;
}

.legal-heading h1,
.support-hero h1,
.not-found-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.legal-heading code {
  font-size: 0.88em;
}

.legal-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content {
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.legal-content section + section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: #45514d;
}

.legal-content a {
  color: var(--brand);
  font-weight: 750;
}

.support-hero {
  padding-block: 90px;
  background: var(--brand-deep);
  color: var(--white);
}

.support-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}

.support-hero-grid > div {
  max-width: 760px;
}

.support-hero-grid > div > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.support-hero-grid > img {
  border-radius: 44px;
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-list summary {
  padding: 22px 24px;
  font-weight: 850;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 24px 24px;
  margin: 0;
  color: var(--muted);
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--brand-deep);
  color: var(--white);
  text-align: center;
}

.not-found-page main {
  max-width: 620px;
}

.not-found-page img {
  margin: 0 auto 28px;
  border-radius: 24px;
}

.not-found-page p:not(.eyebrow) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 360px;
    gap: 34px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .story-screens {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid .text-link {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .legal-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .menu-button {
    display: block;
  }

  .main-nav:not(.legal-nav) {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    padding: 20px;
    background: var(--brand-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.is-open {
    display: grid;
  }

  .legal-nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.7rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    padding-inline: 24px;
  }

  .lottery-rail {
    right: 0;
  }

  .feature-band,
  .faq-band,
  .product-story {
    padding-block: 78px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 24px;
  }

  .story-screens {
    min-height: 530px;
  }

  .story-screens .phone-frame {
    width: 255px;
  }

  .trust-grid,
  .final-cta-inner,
  .footer-grid,
  .support-hero-grid {
    grid-template-columns: 1fr;
  }

  .support-hero-grid > img {
    width: 150px;
    order: -1;
  }

  .final-cta-inner .button {
    justify-self: start;
  }

  .footer-compact nav {
    grid-auto-flow: column;
    justify-content: start;
  }

  .legal-layout {
    padding-block: 60px 78px;
  }

  .legal-content {
    padding: 26px 22px;
  }
}

@media (max-width: 430px) {
  .brand span {
    max-width: 170px;
    line-height: 1.15;
  }

  .legal-nav a:first-child {
    display: none;
  }

  .lottery-rail {
    display: none;
  }

  .story-screens {
    min-height: 450px;
  }

  .story-screens .phone-frame {
    width: 215px;
  }

  .copyright {
    white-space: normal;
  }
}

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

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