/* Bet da Sorte — site stylesheet (loaded after main.css via site.json "css").
   Motif: night stadium navy, gold "lucky star" (same shape as the favicon), angled ticket edges. */
:root {
  --navy: #092B55;
  --navy-deep: #061C39;
  --navy-mid: #0E3A6E;
  --gold: #F4BE28;
  --gold-soft: #FFD34D;
  --cream: #FFF8E3;
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- Header: dark bar with gold active marker ---------- */
.site-header { background: var(--navy-deep); border-bottom: 3px solid var(--gold); backdrop-filter: none; }
.logo { color: #fff; }
.site-nav a { color: rgba(255, 255, 255, .82); position: relative; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav a[aria-current="page"] { background: transparent; color: var(--gold); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold); }
.nav-toggle span { background: #fff; }
.header-cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.header-cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.header-cta .btn { min-height: 40px; }
@media (min-width: 901px) and (max-width: 1080px) {
  .site-nav a { padding: 8px 8px; font-size: .9rem; }
}
@media (max-width: 900px) {
  .site-nav { background: var(--navy-deep); border-bottom: 3px solid var(--gold); }
  .site-nav a[aria-current="page"]::after { left: 12px; right: auto; width: 28px; bottom: 6px; }
  .header-cta .btn { min-height: 44px; }
}

/* ---------- Hero: angled "ticket" edge, lucky star, tilted screenshot ---------- */
.hero-dark .hero {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 24px),
    radial-gradient(700px 420px at 92% 18%, rgba(244, 190, 40, .2), transparent 65%),
    radial-gradient(900px 500px at 0% 100%, rgba(14, 58, 110, .9), transparent 70%),
    var(--navy-deep);
  padding: 88px 0 104px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);

}
.hero-dark .hero::before {
  width: 620px; height: 620px; right: -170px; top: -150px; border-radius: 0;
  clip-path: var(--star);
  background: linear-gradient(160deg, rgba(244, 190, 40, .22), rgba(244, 190, 40, 0) 70%);
}
.hero-dark .hero::after {
  width: auto; height: 56px; left: 0; right: 0; bottom: 0; top: auto; border-radius: 0;
  background: linear-gradient(to top right, transparent calc(50% - 3px), var(--gold) calc(50% - 3px), var(--gold) calc(50% + 2px), transparent calc(50% + 2px));
}
.hero-dark .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero-dark .hero h1::after {
  content: ""; display: block; width: 84px; height: 6px; margin-top: 18px;
  background: var(--gold); border-radius: 2px; transform: skewX(-24deg);
}
.hero-dark .hero__lead { font-size: 1.18rem; color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero-dark .badge { background: transparent; color: var(--gold-soft); border-color: rgba(244, 190, 40, .5); border-radius: 6px; }
.hero__actions .btn--lg { box-shadow: 0 4px 0 #b88a12, 0 12px 28px rgba(244, 190, 40, .25); }

/* Screenshot in hero: tilted card with a solid gold offset */
.hero__media { position: relative; }
.hero__media .shot {
  border: 3px solid rgba(255, 255, 255, .92); border-radius: 16px;
  transform: rotate(-2.5deg);
  box-shadow: 16px 16px 0 var(--gold), 0 30px 60px rgba(0, 0, 0, .45);
}
.hero__media::before {
  content: ""; position: absolute; width: 74px; height: 74px; left: -18px; top: -26px; z-index: 2;
  clip-path: var(--star); background: var(--gold);
}
/* Phone render already has its own frame */
.hero__media .shot[src$="mobile.png"] {
  border: 0; border-radius: 0; background: transparent; transform: rotate(4deg);
  box-shadow: none; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55));
}

/* Highlights: gold "bilhete" with notches and dashed tear lines */
.hero-dark .hero__panel {
  position: relative; padding: 8px 22px; gap: 0; background: var(--gold); border: 0; border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4); transform: rotate(1.5deg);
  -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.hero-dark .hero__panel .highlight { background: transparent; border: 0; border-radius: 0; padding: 18px 6px; }
.hero-dark .hero__panel .highlight + .highlight { border-top: 2px dashed rgba(9, 43, 85, .35); }
.hero-dark .highlight__icon { background: var(--navy); color: var(--gold); border-radius: 50%; }
.hero-dark .highlight__label { color: rgba(16, 36, 60, .75); }
.hero-dark .highlight__value { color: var(--navy-deep); font-size: 1.3rem; font-weight: 800; }

@media (max-width: 900px) {
  .hero-dark .hero { padding: 64px 0 84px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }
  .hero-dark .hero::after { height: 32px; }
  .hero-dark .hero::before { width: 360px; height: 360px; right: -140px; top: -90px; }
  .hero__media { max-width: 520px; margin: 0 auto; padding: 0 14px 14px 0; }
  .hero__media .shot { transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--gold), 0 18px 36px rgba(0, 0, 0, .4); }
  .hero__media::before { width: 52px; height: 52px; left: -8px; top: -18px; }
  .hero-dark .hero__panel { transform: none; }
}
@media (max-width: 700px) {
  .hero-dark .hero { padding: 52px 0 70px; }
  .hero-dark .hero h1::after { width: 64px; height: 5px; margin-top: 14px; }
  .hero-dark .hero__lead { font-size: 1.06rem; }
}

/* ---------- Section headings: short skewed gold bar ---------- */
.section > .container > h2::after,
.section .prose > h2::after,
.section .split__text > h2::after,
.section .panel > h2::after {
  content: ""; display: block; width: 44px; height: 4px; margin-top: 12px;
  background: var(--gold); border-radius: 2px; transform: skewX(-24deg);
}

/* ---------- Feature grids: complete rows ---------- */
.features:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features:has(> :nth-child(3):last-child),
.features:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .features:has(> :nth-child(4):last-child),
  .features:has(> :nth-child(6):last-child),
  .facts:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .features:has(> :nth-child(2):last-child),
  .features:has(> :nth-child(3):last-child),
  .features:has(> :nth-child(4):last-child),
  .features:has(> :nth-child(6):last-child) { grid-template-columns: 1fr; }
  .facts:has(> :nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
}

.feature__icon, .fact__icon { color: var(--navy); background: color-mix(in srgb, var(--gold) 22%, #fff); }

/* ---------- style "duo": two large product cards with their own composition ---------- */
.style-duo .features { gap: 20px; }
.style-duo .feature {
  position: relative; overflow: hidden; min-height: 250px; padding: 34px 34px 30px; border: 0; color: #fff;
  border-radius: 20px; box-shadow: 0 18px 40px rgba(6, 28, 57, .25);
}
.style-duo .feature > * { position: relative; z-index: 1; max-width: 78%; }
.style-duo .feature h3 { color: #fff; font-size: 1.65rem; margin-bottom: .45em; }
.style-duo .feature p { color: rgba(255, 255, 255, .84); font-size: 1rem; }
.style-duo .feature a { color: var(--gold-soft); font-weight: 700; }
.style-duo .feature__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--gold); color: var(--navy-deep); margin-bottom: 22px; }
.style-duo .feature__icon .icon { width: 30px; height: 30px; }
/* Sports: pitch lines */
.style-duo .feature:nth-child(1) {
  background:
    radial-gradient(circle at 100% 50%, transparent 86px, rgba(255, 255, 255, .13) 87px 89px, transparent 90px),
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(255, 255, 255, .13) calc(100% - 2px)),
    linear-gradient(160deg, #0d4a3a, var(--navy) 62%);
}
.style-duo .feature:nth-child(1)::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 120px; height: 180px; transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, .13); border-right: 0;
}
/* Casino: gold lattice + big star */
.style-duo .feature:nth-child(2) {
  background:
    repeating-linear-gradient(45deg, rgba(244, 190, 40, .08) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-45deg, rgba(244, 190, 40, .08) 0 2px, transparent 2px 28px),
    linear-gradient(200deg, #2a1a4d, var(--navy-deep) 65%);
}
.style-duo .feature:nth-child(2)::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 210px; height: 210px;
  clip-path: var(--star); background: linear-gradient(135deg, rgba(244, 190, 40, .55), rgba(244, 190, 40, .08));
}

/* ---------- style "tiles": dark game tiles, icon beside text ---------- */
.style-tiles .feature {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-content: start;
  background: linear-gradient(170deg, var(--navy-mid), var(--navy-deep)); border: 0; border-bottom: 4px solid var(--gold);
  border-radius: 14px; padding: 20px 18px;
}
.style-tiles .feature:hover { box-shadow: 0 14px 30px rgba(6, 28, 57, .3); }
.style-tiles .feature__icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: 50%; background: var(--gold); color: var(--navy-deep); }
.style-tiles .feature h3 { color: #fff; margin: 2px 0 .3em; }
.style-tiles .feature p { color: rgba(255, 255, 255, .78); font-size: .93rem; }

/* ---------- style "scoreboard": sports cards with a navy score strip ---------- */
.style-scoreboard .feature { position: relative; overflow: hidden; padding: 0 20px 20px; border-radius: 12px; border: 1px solid var(--line); }
.style-scoreboard .feature__icon {
  display: flex; width: auto; height: 54px; margin: 0 -20px 16px; border-radius: 0; justify-content: flex-start; padding-left: 20px;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-mid)); color: var(--gold);
  border-bottom: 3px solid var(--gold);
}

/* ---------- style "coupons": promo cards cut like vouchers ---------- */
.style-coupons .feature {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 30px; align-content: start;
  background:
    repeating-linear-gradient(to bottom, rgba(9, 43, 85, .32) 0 6px, transparent 6px 12px) 85px 0 / 2px 100% no-repeat,
    var(--cream);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, #fff); border-radius: 14px; padding: 22px 20px;
  -webkit-mask: radial-gradient(circle 10px at 86px 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at 86px 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 10px at 86px 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 10px at 86px 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.style-coupons .feature__icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; background: var(--navy); color: var(--gold); border-radius: 50%; }
.style-coupons .feature p { color: var(--text); }

/* ---------- style "ticket": one promo panel as a navy voucher ---------- */
.style-ticket .panel {
  position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border: 0; color: rgba(255, 255, 255, .86);
  border-left: 10px solid var(--gold); border-radius: 18px; padding: 36px 44px;
  -webkit-mask: radial-gradient(circle 14px at 100% 50%, #0000 97%, #000);
          mask: radial-gradient(circle 14px at 100% 50%, #0000 97%, #000);
}
.style-ticket .panel h2, .style-ticket .panel h3 { color: #fff; }
.style-ticket .panel h3 { color: var(--gold-soft); }
.style-ticket .panel strong { color: var(--gold-soft); }
.style-ticket .panel a { color: var(--gold-soft); }
.style-ticket .panel::before {
  content: ""; position: absolute; right: 34px; top: 30px; width: 90px; height: 90px; clip-path: var(--star);
  background: linear-gradient(135deg, var(--gold), rgba(244, 190, 40, .2));
}
@media (max-width: 700px) {
  .style-ticket .panel { padding: 26px 20px 26px 22px; border-left-width: 7px; }
  .style-ticket .panel::before { width: 54px; height: 54px; right: 16px; top: 18px; }
  .style-ticket .panel > h2 { padding-right: 60px; }
}

/* ---------- style "strip": facts as one navy bar ---------- */
.style-strip .facts { gap: 0; background: var(--navy-deep); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 34px rgba(6, 28, 57, .22); }
.style-strip .fact { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 22px 20px; }
.style-strip .fact + .fact { border-left: 1px solid rgba(255, 255, 255, .12); }
.style-strip .facts dt { color: var(--gold-soft); }
.style-strip .facts dd { color: #fff; }
.style-strip .fact__icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
@media (max-width: 1000px) {
  .style-strip .fact:nth-child(3) { border-left: 0; }
  .style-strip .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---------- style "track": horizontal process line ---------- */
@media (min-width: 901px) {
  .style-track .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .style-track .steps::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
  .style-track .step { grid-template-columns: 1fr; gap: 14px; }
  .style-track .step__card { height: 100%; flex-direction: column; }
}
.style-track .step__num { background: var(--gold); color: var(--navy-deep); box-shadow: 0 0 0 5px #fff; }

/* ---------- style "ledger": company card with navy side ---------- */
.style-ledger .summary__aside { background: var(--navy-deep); border-left: 0; }
.style-ledger .summary__hl-icon { background: var(--gold); color: var(--navy-deep); }
.style-ledger .summary__hl-label { color: var(--gold-soft); }
.style-ledger .summary__hl-value { color: #fff; }
.style-ledger .summary__aside .note { color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .style-ledger .summary__aside { border-top: 0; } }

/* ---------- FAQ ---------- */
.faq details { border-left: 4px solid var(--line); }
.faq details[open] { border-left-color: var(--gold); }
.faq summary::after { border-color: var(--navy); }

/* ---------- CTA banner: navy with gold star ---------- */
.cta {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 70%);
  border-top: 4px solid var(--gold);
}
.cta::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; clip-path: var(--star);
  background: linear-gradient(160deg, rgba(244, 190, 40, .35), rgba(244, 190, 40, 0) 75%); pointer-events: none;
}
.cta__text, .cta__actions { position: relative; z-index: 1; }

/* ---------- Footer: navy, gold rule, account buttons ---------- */
.site-footer { background: var(--navy-deep); border-top: 4px solid var(--gold); color: rgba(255, 255, 255, .7); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta .btn { min-height: 46px; }
.footer-cta__note { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-rg { border-color: rgba(255, 255, 255, .16); }
.footer-copy { color: rgba(255, 255, 255, .5); }
@media (max-width: 700px) {
  .footer-cta .btn { flex: 1 1 100%; }
}
