/* ==========================================================================
   demo-common.css — shared styling for the standalone live-ad demo pages
   (/floater/ and /demo_page_video/). Clean rebuild of the Tilda demo chrome:
   device-tabs bar, grey "mock article" wireframe, and the gradient CTA footer.
   The ad-tag blocks themselves live inline in each page and are NOT styled here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #283975;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -------------------------------------------------- device-tabs bar (top) -- */
.demo-topbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}
.back-link {
  position: absolute;
  left: 36px;
  top: 0; bottom: 0;
  margin: auto;
  height: 36px;
  display: flex;
  align-items: center;
  color: #111;
  z-index: 2000;
}
.back-link svg { width: 22px; height: 22px; display: block; }

.devices-tabs { display: flex; align-items: center; gap: 24px; }
.devices-tabs__item {
  padding: 0; margin: 0;
  background: none;
  border: 2px solid #d4d8dd;
  border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  color: #283975;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.devices-tabs__item.is-active { border-color: #ee3d3d; color: #ee3d3d; cursor: default; }
.devices-tabs__item svg { width: 30px; height: 30px; display: block; }

/* --------------------------------------------------------- wireframe mock -- */
main { display: block; }
.wrap { max-width: 810px; margin: 0 auto; padding: 0 20px; }

.wire { padding: 8px 0 96px; }
.wire[hidden] { display: none; }

/* grey placeholder primitives */
.ph { background: #d4d8dd; border-radius: 8px; }
.ph--line { height: 12px; border-radius: 30px; margin: 8px 0; background: #dfe3e8; }
.ph--line.sh { width: 55%; }
.ph--line.md { width: 78%; }
.ph--hero { width: 100%; height: 210px; }
.ph--sq   { width: 100%; aspect-ratio: 1 / 1; }
.ph--rect { width: 100%; height: 130px; }
.ph--tall { width: 100%; height: 245px; }

.blk { margin-bottom: 40px; }
.row { display: grid; gap: 24px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
.row--4 { grid-template-columns: repeat(4, 1fr); }
.lines { margin-top: 14px; }
.split { display: grid; grid-template-columns: 42% 1fr; gap: 40px; align-items: start; }
.text-center-lines { text-align: center; }
.text-center-lines .ph--line { margin-left: auto; margin-right: auto; }

/* mobile wireframe uses single column */
.wire--mobile .row--2 { grid-template-columns: 1fr 1fr; }
.wire--mobile .blk { margin-bottom: 32px; }

/* ------------------------------------------------------------ CTA footer -- */
.cta {
  padding: 72px 20px 80px;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(0.758turn,
      rgba(207,58,65,1) 3%, rgba(52,31,113,1) 86%, rgba(48,9,87,1) 100%);
}
.cta h2 {
  margin: 0 0 34px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}
.cta__btns { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cta__or { font-size: 16px; opacity: .95; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  border-radius: 40px;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: #ee3d3d; color: #fff; }
.btn--red:hover { background: #e02a2a; }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.85); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------- responsive - */
@media (max-width: 960px) {
  .demo-topbar { padding: 18px; }
  .back-link { left: 18px; }
  .cta h2 { font-size: 30px; }
  .cta__btns { flex-direction: column; gap: 14px; }
  .btn { width: 100%; max-width: 340px; }
}
@media (max-width: 640px) {
  .row--3, .row--4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .ph--hero { height: 150px; }
  .ph--tall { height: 190px; }
}
