:root {
  color-scheme: light;
  --ink: #17213b;
  --muted: #5c6275;
  --cream: #fff8e9;
  --white: #fff;
  --yellow: #ffd629;
  --blue: #1458ff;
  --blue-dark: #0a38ad;
  --blue-pale: #eaf0ff;
  --coral: #ff6158;
  --coral-dark: #d9373f;
  --line: rgba(23, 33, 59, .14);
  --shadow: 0 1.5rem 4rem rgba(38, 52, 96, .16);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); line-height: 1.5; }
body, button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; border-radius: .5rem; color: var(--white); background: var(--blue-dark); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 5.4rem; padding: .85rem clamp(1rem, 4vw, 4.5rem); background: var(--yellow); }
.brand { display: inline-grid; text-decoration: none; line-height: 1; }
.brand-kicker { margin-bottom: .28rem; color: var(--blue-dark); font-size: .58rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.brand-name { font-size: clamp(1.05rem, 4vw, 1.45rem); font-weight: 950; letter-spacing: -.055em; }
.brand-name strong { color: var(--blue); }
.site-header nav { display: none; align-items: center; gap: 1.8rem; }
.site-header nav a { font-size: .83rem; font-weight: 780; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

.button { display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.25rem; border: 0; border-radius: .8rem; font-size: .9rem; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 .8rem 1.8rem rgba(19, 46, 126, .22); }
.button:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-small { min-height: 2.75rem; padding: .6rem .8rem; color: var(--white); background: var(--coral); font-size: .75rem; }
.button-small > span { font-size: .55rem; }

.hero { position: relative; display: grid; background: linear-gradient(180deg, var(--yellow) 0 38%, var(--cream) 38%); }
.hero-copy { position: relative; z-index: 2; padding: 3rem 1.25rem 1.8rem; }
.campaign-tag, .section-kicker { margin: 0 0 .8rem; color: var(--blue-dark); font-size: .7rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.campaign-tag span { margin-right: .35rem; color: var(--coral); }
.hero h1 { max-width: 11ch; margin: 0; font-size: clamp(3.05rem, 15vw, 7rem); font-weight: 950; letter-spacing: -.075em; line-height: .88; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 36rem; margin: 1.4rem 0 0; color: #3d4253; font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 560; }
.hero-highlights { display: grid; grid-template-columns: 1fr 1fr; max-width: 32rem; gap: .65rem; margin-top: 1.6rem; }
.hero-highlights p { margin: 0; padding: .95rem 0; border-top: 2px solid var(--ink); }
.hero-highlights span, .hero-highlights strong { display: block; }
.hero-highlights span { margin-bottom: .2rem; color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.hero-highlights strong { font-size: clamp(1.2rem, 4.6vw, 1.65rem); letter-spacing: -.04em; }
.hero-highlights small { color: var(--coral-dark); font-size: .6em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: 1.35rem; }
.text-action { color: var(--blue-dark); font-size: .87rem; font-weight: 850; text-underline-offset: .3rem; }
.manual-note { max-width: 35rem; margin: 1rem 0 0; color: var(--muted); font-size: .74rem; }

.hero-prizes { position: relative; min-height: 39rem; padding: 2rem 1rem 3rem; }
.sun-shape { position: absolute; top: 8%; left: 20%; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); opacity: .12; }
.prize { position: absolute; margin: 0; }
.photo-frame { overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.prize figcaption { position: absolute; z-index: 2; display: grid; padding: .7rem .85rem; border: 2px solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: .35rem .35rem 0 var(--ink); transform: rotate(-2deg); }
.prize figcaption span { font-size: .57rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.prize figcaption strong { font-size: 1.15rem; font-weight: 950; letter-spacing: -.04em; }
.prize figcaption small { font-size: .68rem; font-weight: 720; }
.prize-mazda { top: 1.5rem; left: 1rem; width: calc(100% - 2rem); }
.prize-mazda .photo-frame { aspect-ratio: 4 / 3; border-radius: 1.4rem; transform: rotate(-1deg); }
.prize-mazda figcaption { bottom: -1rem; left: .8rem; }
.prize-yamaha { z-index: 3; right: .5rem; bottom: 2.9rem; width: 48%; max-width: 15rem; }
.prize-yamaha .photo-frame { aspect-ratio: 1; border: .45rem solid var(--white); border-radius: 50%; }
.prize-yamaha figcaption { right: .5rem; bottom: -.8rem; color: var(--white); background: var(--blue); transform: rotate(2deg); }
.photo-disclaimer { position: absolute; right: 1rem; bottom: .2rem; left: 1rem; margin: 0; color: var(--muted); font-size: .66rem; text-align: center; }

.event-strip { display: grid; background: var(--blue); }
.event-strip p { display: grid; grid-template-columns: 2.3rem 1fr; margin: 0; padding: 1.2rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .22); color: var(--white); }
.event-strip p > span { grid-row: 1 / 3; align-self: center; color: var(--yellow); font-size: .7rem; font-weight: 950; }
.event-strip small { color: rgba(255, 255, 255, .68); font-size: .61rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.event-strip strong { font-size: .93rem; }

.section { padding: 5rem 1.25rem; }
.section-heading { max-width: 49rem; }
.section-heading h2, .availability-heading h2, .official-heading h2 { margin: 0; font-size: clamp(2.55rem, 10vw, 5.3rem); font-weight: 950; letter-spacing: -.065em; line-height: .94; }
.section-heading h2 span { color: var(--coral); }
.section-heading > p:last-child { max-width: 42rem; color: var(--muted); }
.dynamics { background: var(--white); }
.number-game { display: grid; gap: .75rem; margin-top: 2.5rem; }
.number-source, .winner { padding: 1.35rem; border-radius: 1.2rem; }
.number-source { color: var(--ink); background: var(--yellow); }
.number-source > span, .winner > span { display: block; font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.number-source strong { display: flex; gap: .25rem; margin: .5rem 0 .2rem; font-size: clamp(3.8rem, 19vw, 7rem); line-height: .9; letter-spacing: -.08em; }
.number-source strong b:last-child { color: var(--blue); }
.number-source small { font-weight: 850; }
.number-arrow { color: var(--coral); font-size: 2rem; font-weight: 900; text-align: center; transform: rotate(90deg); }
.winner { color: var(--white); }
.winner strong { display: block; margin-top: .3rem; font-size: clamp(3.2rem, 15vw, 6rem); letter-spacing: -.07em; line-height: 1; }
.winner p { margin: .4rem 0 0; font-weight: 850; }
.winner-blue { background: var(--blue); }
.winner-coral { background: var(--coral); }
.rule-note { max-width: 57rem; margin: 1.4rem 0 0; padding: 1rem 1.1rem; border-left: .35rem solid var(--yellow); color: var(--muted); background: var(--cream); font-size: .8rem; }

.availability-section { display: grid; gap: 2rem; padding: 5rem 1.25rem; color: var(--white); background: var(--blue); }
.availability-section .section-kicker { color: var(--yellow); }
.availability-heading h2 { max-width: 9ch; }
.availability-heading > p:last-child { max-width: 34rem; color: rgba(255, 255, 255, .82); }
.availability-panel { align-self: center; padding: 1.2rem; border-radius: 1.4rem; color: var(--ink); background: var(--white); box-shadow: .65rem .65rem 0 var(--yellow); }
.availability-panel label { display: block; margin-bottom: .55rem; color: var(--blue-dark); font-size: .68rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.number-input-row { display: grid; gap: .7rem; }
.number-input-row input { min-width: 0; height: 5.5rem; padding: .25rem 1rem; border: 3px solid var(--ink); border-radius: .85rem; color: var(--ink); background: var(--cream); font-size: 2.8rem; font-weight: 950; letter-spacing: .18em; text-align: center; }
.number-input-row input::placeholder { color: #b9b6ad; }
.number-input-row button { min-height: 3.4rem; border: 0; border-radius: .8rem; color: var(--white); background: var(--coral); font-weight: 950; cursor: pointer; }
.number-input-row button:hover { background: var(--coral-dark); }
.number-input-row button:disabled { opacity: .65; cursor: wait; }
.availability-panel form > p { margin: .6rem 0 0; color: var(--muted); font-size: .72rem; }
.availability-result { margin-top: 1rem; padding: 1rem; border-radius: .8rem; font-weight: 780; }
.availability-result[data-state="loading"] { color: var(--blue-dark); background: var(--blue-pale); }
.availability-result[data-state="available"] { color: #115b47; background: #dff9ee; border: 1px solid #7edbbc; }
.availability-result[data-state="unavailable"], .availability-result[data-state="error"] { color: #8e2430; background: #fff0ee; border: 1px solid #ffada7; }
.button-whatsapp { width: 100%; margin-top: .8rem; color: var(--white); background: var(--blue); }

.participation { background: var(--cream); }
.section-heading.compact { max-width: 39rem; }
.steps { display: grid; gap: 1rem; padding: 0; margin: 2.3rem 0 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .8rem; align-items: start; padding: 1.15rem 0; border-top: 2px solid var(--ink); }
.steps > li > span { display: grid; width: 2.6rem; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--white); background: var(--coral); font-weight: 950; }
.steps h3 { margin: 0; font-size: 1.5rem; font-weight: 950; letter-spacing: -.04em; }
.steps p { margin: .2rem 0 0; color: var(--muted); }
.contact-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.4rem; border-radius: 1.2rem; background: var(--yellow); }
.contact-banner div { display: grid; }
.contact-banner span { color: var(--blue-dark); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.contact-banner strong { font-size: clamp(1.3rem, 6vw, 2rem); letter-spacing: -.04em; }

.official-details { display: grid; gap: 2.5rem; padding: 5rem 1.25rem; color: var(--white); background: var(--ink); }
.official-details .section-kicker { color: var(--yellow); }
.official-heading h2 { max-width: 11ch; }
.official-details dl { margin: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.official-details dl div { display: grid; gap: .25rem; padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.official-details dt { color: var(--yellow); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.official-details dd { margin: 0; color: rgba(255, 255, 255, .82); }
.legal-note { grid-column: 1 / -1; max-width: 65rem; margin: 0; color: rgba(255, 255, 255, .55); font-size: .73rem; }
footer { display: grid; gap: 1rem; padding: 2rem 1.25rem; color: var(--ink); background: var(--yellow); font-size: .75rem; }
.brand-footer { justify-self: start; }
footer p { margin: 0; }
footer > a:last-child { font-weight: 800; text-underline-offset: .25rem; }
.noscript { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; left: 1rem; margin: 0; padding: 1rem; border-radius: .7rem; color: var(--white); background: #962d35; }
[hidden] { display: none !important; }

@media (min-width: 40rem) {
  .site-header { padding-inline: clamp(2rem, 5vw, 4.5rem); }
  .hero-copy { padding: 4rem clamp(2rem, 6vw, 5rem) 2rem; }
  .hero-prizes { min-height: 49rem; padding-inline: clamp(2rem, 6vw, 5rem); }
  .prize-mazda { left: 8%; width: 76%; }
  .prize-yamaha { right: 8%; bottom: 4rem; width: 36%; max-width: 19rem; }
  .photo-disclaimer { bottom: .75rem; }
  .event-strip { grid-template-columns: repeat(3, 1fr); }
  .event-strip p { border-right: 1px solid rgba(255, 255, 255, .22); border-bottom: 0; }
  .section, .availability-section, .official-details { padding: 7rem clamp(2rem, 6vw, 6rem); }
  .number-game { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .number-source { grid-column: 1 / -1; }
  .number-arrow { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: block; padding-right: 1.5rem; }
  .steps h3 { margin-top: .9rem; }
  footer { grid-template-columns: 1fr auto auto; align-items: center; padding-inline: clamp(2rem, 6vw, 6rem); }
}

@media (min-width: 64rem) {
  .site-header nav { display: flex; }
  .hero { grid-template-columns: minmax(30rem, .9fr) minmax(38rem, 1.1fr); min-height: 46rem; background: linear-gradient(105deg, var(--yellow) 0 45%, var(--cream) 45%); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; padding-right: 2rem; }
  .hero h1 { font-size: clamp(4.7rem, 7.2vw, 7.2rem); }
  .hero-prizes { min-height: 46rem; padding: 3rem 2rem 3rem 0; }
  .sun-shape { top: 12%; left: 12%; width: 72%; }
  .prize-mazda { top: 4.5rem; left: 0; width: 88%; }
  .prize-mazda .photo-frame { border-radius: 1.8rem; }
  .prize-yamaha { right: 1.5rem; bottom: 4.8rem; width: 39%; max-width: 19rem; }
  .number-game { grid-template-columns: 1.1fr auto 1fr 1fr; }
  .number-source { grid-column: auto; }
  .number-arrow { display: block; align-self: center; transform: none; }
  .availability-section { grid-template-columns: 1fr minmax(29rem, .84fr); align-items: center; }
  .availability-panel { padding: 2rem; }
  .number-input-row { grid-template-columns: 1fr auto; }
  .number-input-row button { min-width: 9rem; }
  .official-details { grid-template-columns: .8fr 1.2fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in .55s both; }
  .hero-copy > :nth-child(2) { animation-delay: .05s; }
  .hero-copy > :nth-child(3) { animation-delay: .1s; }
  .hero-copy > :nth-child(4) { animation-delay: .15s; }
  .hero-copy > :nth-child(5) { animation-delay: .2s; }
  .prize-mazda { animation: prize-in .7s .08s both; }
  .prize-yamaha { animation: prize-in .7s .18s both; }
  @keyframes rise-in { from { transform: translateY(12px); } }
  @keyframes prize-in { from { transform: translateY(15px) scale(.98); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
