/* Shared styles for Clickio ad-format demo pages
   (optimized_display, rewarded, splash_screen, web_interstitial).
   These are STANDALONE pages — they intentionally do NOT use the main
   site header/footer/partials or site.css / inner.css. */

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

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

img { border: 0; }

/* ---------- Top bar: back link + device tabs ---------- */
.devices-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.back-link {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 36px;
  line-height: 0.5;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
}
.back-link img { width: 36px; height: 36px; }

.devices-tabs__item {
  padding: 0;
  background: none;
  border: none;
  width: 60px;
  height: 60px;
  margin: 0 12px;
  position: relative;
}
.devices-tabs__item:not(.is-active) { cursor: pointer; }
.devices-tabs__item img { max-width: 100%; height: auto; display: block; }
.devices-tabs__item:not(.is-active) img:nth-child(1),
.devices-tabs__item.is-active img:nth-child(2) { display: none; }

/* ---------- Mockup bands (flattened device previews) ---------- */
.mockup-band { width: 100%; overflow: hidden; }
.mockup-band img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}
.mockup-band--desktop img { max-width: 1425px; }
.mockup-band--mobile  img { max-width: 390px; }

/* Mobile mockup is hidden on desktop; toggled by the tab switcher JS.
   At <=960px the desktop mockup is hidden and the mobile one is shown. */
.mockup-band--mobile { display: none; }

@media (max-width: 960px) {
  .devices-tabs__item:first-of-type { /* keep both tabs visible, matches live */ }
  .mockup-band--desktop { display: none; }
  .mockup-band--mobile  { display: block; }
}

/* ---------- Footer CTA ---------- */
.cta {
  background-image: linear-gradient(272.88deg, #cf3a41 3%, #341f71 86%, #300957 100%);
  min-height: 334px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  gap: 32px;
}
.cta__title {
  color: #fff;
  font-weight: 800;
  font-size: 45px;
  line-height: 1.1;
  margin: 0;
}
.cta__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 213px;
  height: 54px;
  padding: 0 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}
.cta__btn:hover { opacity: 0.9; }
.cta__btn--primary { background: #dd4242; color: #fff; border: 1px solid transparent; }
.cta__btn--outline { background: transparent; color: #fff; border: 1px solid #fff; }
.cta__or { color: #fff; font-size: 16px; font-weight: 500; }

@media (max-width: 600px) {
  .cta__title { font-size: 28px; }
  .cta__actions { flex-direction: column; }
  .cta__btn { width: 100%; max-width: 320px; }
}
