/* ==========================================================================
   /demo_native/ — Native / "Recommended by" ad-format demo
   STANDALONE page: no shared site header/footer/nav, no site.css/inner.css.
   Faithful clean rebuild of the Tilda demo (originally 4 t396 zero-blocks:
   header toggle + laptop mockup + phone mockup + CTA). A greyed article
   wireframe followed by a static native-recommendation widget (AD badge +
   thumbnail + "Advertising link" caption + "Recommended by" attribution).
   NOTE: the live page loaded highlight.min.js/css but no code block uses it,
   so it is intentionally omitted here. No ad-serving code runs.
   Like the live page the mockup is desktop-only and collapses below 960px.
   ========================================================================== */

*, *::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: #fff;
  color: #202020;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root {
  --wf: #d4d8dd;
  --wf-dark: #989898;
  --content: 926px;
}

/* ===================================================== HEADER: device tabs = */
.demo-head {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%;
}
.demo-back { position: absolute; left: 36px; top: 0; bottom: 0; margin: auto; height: 36px; line-height: 0; z-index: 20; }
.demo-back img { width: 36px; height: 36px; display: block; }
.demo-tab { padding: 0; margin: 0 12px; width: 60px; height: 60px; background: none; border: none; }
.demo-tab:not(.is-active) { cursor: pointer; }
.demo-tab img { max-width: 100%; height: auto; display: block; }
.demo-tab:not(.is-active) img:nth-child(1),
.demo-tab.is-active img:nth-child(2) { display: none; }
/* Both toggle icons stay visible on mobile (matches live). */

/* ===================================================== MOCKUP STAGE ========= */
.mockup { background: #fff; }
.mockup--phone { display: none; }
.mock-wrap { max-width: var(--content); margin: 0 auto; padding: 30px 20px 90px; }

.wf { background: var(--wf); }
.wf-box { background: var(--wf); }
.wf-line { background: var(--wf); border-radius: 8px; height: 14px; margin: 0 0 17px; }

/* article hero + title */
.art-hero { height: 361px; margin-bottom: 30px; }
.art-title .wf-line { height: 13px; }
.art-title .wf-line:nth-child(1) { width: 100%; }
.art-title .wf-line:nth-child(2) { width: 99%; }
.art-title .wf-line:nth-child(3) { width: 57%; }
.art-title .wf-line:nth-child(4) { width: 21%; }

/* meta / section divider (darker pills) */
.art-divider {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; margin: 40px 0 34px;
}
.art-divider .bar { background: var(--wf-dark); border-radius: 90px; height: 13px; }
.art-divider .bar-long  { width: 62%; }
.art-divider .bar-short { width: 19%; }

/* 2-column media rows */
.art-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px;
  margin-bottom: 44px;
}
.art-media .m-img { height: 337px; margin-bottom: 30px; }
.art-media .wf-line:nth-child(2) { width: 68%; }
.art-media .wf-line:nth-child(3) { width: 66%; }
.art-media .wf-line:nth-child(4) { width: 44%; margin-bottom: 0; }

/* ===================================================== NATIVE WIDGET ======= */
.native {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px 42px;
  margin-top: 8px;
}
.native-card { position: relative; }
.native-thumb {
  position: relative;
  width: 100%; height: 300px;
  background: #fff;
  margin-bottom: 20px;
}
.native-thumb img:not(.native-badge) { display: block; width: 100%; height: 100%; object-fit: cover; }
.native-badge {
  position: absolute; top: 0; left: 0;
  width: 55px; height: auto; display: block;
}
.native-card .wf-line { height: 14px; }
.native-card .wf-line.l1 { width: 68%; }
.native-card .wf-line.l2 { width: 67%; margin-bottom: 22px; }
.native-link {
  color: var(--wf-dark);
  font-size: 20px; line-height: 1.2;
}

/* attribution row */
.native-attr {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-top: 4px;
  color: var(--wf-dark); font-size: 20px;
}
.native-attr .recby-logo { height: 18px; width: auto; display: block; }
.native-attr .recby-icon { height: 16px; width: auto; display: block; }

/* phone mockup (narrow) */
.phone-frame { max-width: 420px; margin: 0 auto; }
.phone-frame .art-hero { height: 200px; }
.phone-frame .native { grid-template-columns: 1fr; gap: 28px; }

@media (max-width: 960px) { .mockup { display: none !important; } }

/* ===================================================== CTA FOOTER =========== */
.cta {
  background-image: linear-gradient(0.758turn,
    rgba(207,58,65,1) 3%, rgba(52,31,113,1) 86%, rgba(48,9,87,1) 100%);
  padding: 88px 20px 92px; text-align: center; color: #fff;
}
.cta-title { font-size: 42px; font-weight: 700; line-height: 1.15; margin: 0 0 34px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-or { font-size: 18px; opacity: .95; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 213px; height: 55px; padding: 0 28px; border-radius: 30px;
  font-size: 16px; font-weight: 600; text-decoration: none; letter-spacing: .2px;
  transition: opacity .15s ease, background .15s ease;
}
.cta-btn--primary { background: #dd4242; color: #fff; }
.cta-btn--primary:hover { background: #c93636; }
.cta-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.85); }
.cta-btn--ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 600px) {
  .cta-title { font-size: 30px; }
  .cta { padding: 56px 18px 60px; }
}
