/* ============================================================
   Amazonia Bingo — super-ads.com landing
   Ferrari style (see .claude/skills/awesome-design-md/design-md/ferrari/DESIGN.md)
   ============================================================ */
:root {
  --canvas: #181818;
  --elevated: #303030;
  --canvas-light: #ffffff;
  --soft-light: #f7f7f7;
  --red: #da291c;
  --red-active: #b01e0a;
  --ink: #ffffff;
  --body-c: #969696;
  --on-light: #181818;
  --mute: #666666;
  --hairline: #303030;
  --hairline-light: #d2d2d2;
  --maxw: 1200px;
  --sans: "Inter", "FerrariSans", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--canvas);
  color: var(--body-c);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Announcement bar ---------- */
.notice-bar {
  background: var(--elevated);
  color: var(--ink);
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Sharp precision buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: var(--ink); color: var(--canvas); }

/* .btn-blue is the primary CTA slot in shared markup → Rosso Corsa */
.btn-blue { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-blue:hover { background: var(--ink); color: var(--canvas); }

.header-cta {
  font-size: 11.5px;
  padding: 12px 22px;
}

/* Language switcher */
.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: border-color 0.12s ease;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-btn .chev { width: 9px; height: 9px; }

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--elevated);
  border-radius: 0;
  padding: 4px;
  display: none;
  z-index: 60;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.lang.open .lang-list { display: block; }

.lang-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--body-c);
  text-align: left;
}
.lang-list button:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang-list button.active { color: var(--ink); box-shadow: inset 3px 0 0 var(--red); }
.lang-list button.active::after { content: "✓"; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 72px;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: 24px;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 6.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 950px;
  margin: 0 auto;
}

.hero h1 .accent { color: var(--red); }

.hero .tagline {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--body-c);
}

/* Trailer card (cinematic, local inline player) */
.trailer {
  position: relative;
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 44px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.trailer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.trailer-video[hidden] { display: none; }

.trailer-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.trailer-cover[hidden] { display: none; }

.trailer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.trailer-cover:hover img { transform: scale(1.03); }

.trailer .play-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.trailer-cover:hover .play-ring {
  transform: translate(-50%, -50%) scale(1.07);
  background: var(--red);
  border-color: var(--red);
}
.trailer .play-ring svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--ink); }

.trailer .trailer-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(24, 24, 24, 0.75);
  border-radius: 999px;
  padding: 7px 14px;
}

/* Stats chips — badge pills (the system's only pill geometry) */
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--elevated);
  border-radius: 999px;
  padding: 8px 16px;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.stat .heart { color: var(--red); }
.stat-18 { background: var(--red); }

.hero-cta { margin-top: 38px; }

.hero .fineprint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--mute);
}

/* Google Play badge — the Rosso Corsa primary CTA */
.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  border-radius: 0;
  padding: 13px 30px;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s ease;
}
.gp-badge:hover { background: var(--red-active); }
.gp-badge svg { width: 28px; height: 31px; flex-shrink: 0; }
.gp-badge .gp-text { line-height: 1.2; }
.gp-badge .gp-text small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.gp-badge .gp-text strong {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* ---------- Screenshots carousel (phone frame) ---------- */
.carousel {
  position: relative;
  padding: 72px 0 8px;
  overflow-x: clip;
}

.phone {
  position: relative;
  width: min(118vw, 640px);
  margin-left: calc((100% - min(118vw, 640px)) / 2);
  aspect-ratio: 1281 / 627;
}

.phone .frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* screen cutout measured from frame.png: 149,39 → 1117,480 of 1281×627 */
.phone .screen {
  position: absolute;
  left: 11.63%;
  top: 6.22%;
  width: 75.64%;
  height: 70.49%;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.screen-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.screen-track::-webkit-scrollbar { display: none; }

.screen-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
  -webkit-user-drag: none;
}

/* race-calendar style bar indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: var(--hairline);
  transition: background 0.2s ease;
}
.carousel-dots button.active { background: var(--red); }

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--elevated);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}
.car-btn:hover { background: var(--red); }
.car-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car-btn.prev { left: calc(50% - 410px); }
.car-btn.next { right: calc(50% - 410px); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-title {
  text-align: center;
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 15px;
  color: var(--body-c);
}

/* Features — elevated cards */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  background: var(--elevated);
  border-radius: 0;
  padding: 28px 24px;
}

.feature .emoji {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature p {
  font-size: 13.5px;
  color: var(--body-c);
}

/* ---------- Disclaimer (light editorial band) ---------- */
.disclaimer {
  background: var(--canvas-light);
  color: var(--on-light);
  border-radius: 0;
  padding: 40px 32px;
}

.disclaimer h2 {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--on-light);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.disclaimer ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.disclaimer li {
  font-size: 13.5px;
  line-height: 1.6;
  color: #444444;
  padding-left: 18px;
  position: relative;
}

.disclaimer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--red);
}

/* ---------- Final CTA (Rosso Corsa livery band) ---------- */
.final-cta {
  text-align: center;
  padding: 96px 0;
  margin-top: 24px;
  background: linear-gradient(180deg, #a00c01, var(--red) 64%);
  color: #ffffff;
}

.final-cta h2 {
  font-weight: 500;
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 14px;
}

.final-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

/* on the livery band the badge inverts to an outline CTA */
.final-cta .gp-badge {
  background: transparent;
  border: 1px solid #ffffff;
}
.final-cta .gp-badge:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--canvas);
  color: var(--body-c);
  padding: 64px 0 120px; /* room for sticky bar on mobile */
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  margin-bottom: 26px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--body-c);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.site-footer .legal {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mute);
}

.site-footer .copy {
  text-align: center;
  color: var(--mute);
  font-size: 12px;
}
.site-footer .copy a { color: var(--mute); }

/* ---------- Sticky mobile install bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.sticky-cta img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.sticky-cta .meta { flex: 1; min-width: 0; line-height: 1.3; }
.sticky-cta .meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.sticky-cta .meta span { font-size: 11px; color: var(--mute); }

.sticky-cta .install-btn {
  font-size: 11.5px;
  padding: 12px 20px;
  background: var(--red);
  color: #ffffff;
  border: none;
}
.sticky-cta .install-btn:hover { background: var(--red-active); color: #ffffff; }

/* ---------- Policy pages ---------- */
.policy {
  padding: 56px 20px 72px;
  max-width: 780px;
}

.policy h1 {
  font-weight: 500;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}

.policy h2 {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.policy p, .policy li {
  font-size: 14px;
  color: var(--body-c);
  margin-bottom: 12px;
}

.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 6px; }

.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.policy th, .policy td {
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  text-align: left;
  min-width: 110px;
}

.policy th {
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--elevated);
}

.policy-footer-pad { padding-bottom: 56px; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .hero { padding: 104px 0 88px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .phone { width: min(80vw, 700px); margin: 0 auto; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 64px; }
  .disclaimer { padding: 48px 44px; }
}

@media (min-width: 900px) {
  .car-btn { display: flex; }
}

@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile: Google-Play-style autoplaying trailer under the header ---------- */
@media (max-width: 767px) {
  .hero { padding-top: 0; }
  .hero .wrap { display: flex; flex-direction: column; }
  .trailer {
    order: -1; /* first thing under the header, like the Play Store */
    width: 100vw;
    max-width: none;
    margin: 0 0 30px calc(50% - 50vw);
  }
}

/* ---------- Narrow phones ---------- */
@media (max-width: 480px) {
  .brand { font-size: 11px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .header-cta { padding: 10px 14px; font-size: 10.5px; }
  .lang-btn { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
