/* ====== Creative Scope — Paid Ads page ====== */
/* Reuses wd-* patterns (pillars, hero-metrics, hero-tags, faq) from web-design.css.
   Scoped styles below are for paid-ads-specific blocks. */

/* ========== Hero ========== */
.pa-hero {
  padding-top: clamp(24px, 3vw, 48px) !important;
  padding-bottom: clamp(32px, 4vw, 64px) !important;
}
.pa-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  flex-wrap: wrap;
  gap: 12px;
}
.pa-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.pa-hero-copy { position: relative; z-index: 2; }
.pa-hero-head {
  font-size: clamp(46px, 5vw, 84px);
  line-height: 1.02;
  margin-top: 16px;
  word-break: keep-all;
}
.pa-hero-head .line { display: block; }
.pa-hero-head .line > span { white-space: normal; }
.pa-hero-lede {
  margin: 24px 0 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 52ch;
}

/* ----- Hero ad-variant grid viz ----- */
.pa-hero-viz {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bg-2) 92%, transparent) 0%,
    var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  position: relative;
}
.pa-viz-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, var(--bg-2));
}
.pa-viz-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 11px;
  color: var(--fg-soft);
}
.pa-viz-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
  animation: paLivePulse 1.4s ease-in-out infinite;
}
@keyframes paLivePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
  50%     { box-shadow: 0 0 0 6px rgba(239,68,68,0.08); }
}
.pa-viz-meta {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pa-viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}
.pa-ad {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  overflow: hidden;
  animation: paAdFade 4s ease-in-out infinite;
}
.pa-ad-dark {
  background: #111214;
  color: #f5f5f7;
  border-color: #1d1f22;
}
.pa-ad-light {
  background: #f7f7f3;
  color: #111214;
  border-color: #e5e5e0;
}
.pa-ad-accent {
  background: var(--accent);
  color: #111214;
  border-color: color-mix(in oklab, var(--accent) 75%, #000);
}
.pa-ad-winner {
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0,0,0,0.3);
  animation: paWinnerPulse 2.4s ease-in-out infinite;
}
@keyframes paWinnerPulse {
  0%,100% { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0,0,0,0.3); }
  50%     { box-shadow: 0 0 0 3px var(--accent), 0 12px 32px rgba(0,0,0,0.4); }
}
@keyframes paAdFade {
  0%,100% { opacity: 1; }
  40%,60% { opacity: 0.72; }
}
.pa-ad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
.pa-ad-k { font-weight: 600; }
.pa-ad-tag { opacity: 0.75; }
.pa-ad-media {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: currentColor;
}
.pa-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.pa-ad-dark .pa-ad-media  { background: linear-gradient(135deg,#2a2d31,#0e0f11); }
.pa-ad-light .pa-ad-media { background: linear-gradient(135deg,#e7e6dc,#c9c7ba); }
.pa-ad-accent .pa-ad-media {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 70%, #000),
    color-mix(in oklab, var(--accent) 90%, #fff));
}
.pa-ad-media-inner {
  position: absolute;
  inset: 18% 12%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
    radial-gradient(60% 60% at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0));
  mix-blend-mode: overlay;
}
.pa-ad-head {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.pa-ad-sub {
  font-size: 10px;
  opacity: 0.7;
  margin-top: -2px;
}
.pa-ad-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid currentColor;
  border-color: color-mix(in oklab, currentColor 20%, transparent);
  margin-top: auto;
}
.pa-ad-cta { text-transform: uppercase; letter-spacing: 0.08em; }
.pa-ad-arrow { opacity: 0.7; }
.pa-ad-stats {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-top: 4px;
  border-top: 1px dashed color-mix(in oklab, currentColor 20%, transparent);
}
.pa-ad-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #111214;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.pa-viz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 65%, var(--bg-2));
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.pa-viz-foot-label { display: inline-flex; align-items: center; gap: 8px; }
.pa-viz-foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

/* ========== Pillars (tight overrides) ========== */
.pa-pillars { padding: 120px 0; }

/* ========== Channels ========== */
.pa-channels {
  padding: 120px 0 100px;
  border-top: 1px solid var(--border);
}
.pa-channels-head {
  max-width: 820px;
  margin: 0 auto 60px;
  text-align: center;
}
.pa-channels-head .eyebrow { margin-bottom: 0; }
.pa-channels-lede {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.pa-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pa-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.pa-channel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%,
    color-mix(in oklab, var(--accent) 10%, transparent),
    transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.pa-channel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
}
.pa-channel:hover::before { opacity: 1; }
.pa-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pa-channel-n {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}
.pa-channel-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.pa-channel-tiktok .pa-channel-brand { color: #fff; background: #111214; border-color: #1d1f22; }
.pa-channel-titles { display: flex; flex-direction: column; gap: 4px; }
.pa-channel-name {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.pa-channel-sub {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pa-channel-body {
  color: var(--fg-soft);
  line-height: 1.55;
  font-size: 15px;
}
.pa-channel-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.pa-channel-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-soft);
}
.pa-channel-bullets .tick {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pa-channel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.pa-channel-best {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.pa-channel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.pa-channel:hover .pa-channel-cta { color: var(--accent); }

/* ========== Creative ========== */
.pa-creative {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 75%, var(--bg-2));
}
.pa-creative-head {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}
.pa-creative-lede {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.pa-creative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.pa-slab {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pa-slab-eyebrow {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pa-slab-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}

/* Hook anatomy */
.pa-hook-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  position: relative;
}
.pa-hook-rail::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border);
}
.pa-hook-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.pa-hook-row:last-child { border-bottom: none; }
.pa-hook-marker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-hook-time {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}
.pa-hook-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
  position: relative;
  z-index: 1;
}
.pa-hook-row:not(:first-child) .pa-hook-dot {
  background: var(--bg);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.pa-hook-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pa-hook-k {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.pa-hook-note {
  font-size: 14px;
  color: var(--fg);
}
.pa-slab-note {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: var(--bg);
  line-height: 1.5;
}

/* Native builds */
.pa-native-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pa-native {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  border-left-width: 3px;
}
.pa-native-meta   { border-left-color: #1877F2; }
.pa-native-tiktok { border-left-color: #25F4EE; }
.pa-native-yt     { border-left-color: #FF0000; }
.pa-native-g      { border-left-color: #4285F4; }
.pa-native-plat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.pa-native-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pa-native-spec {
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pa-native-line {
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.5;
}

/* Test velocity */
.pa-test-velocity {
  margin-top: 20px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
}
.pa-test-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pa-test-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  max-width: 32ch;
}
.pa-test-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pa-test {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.pa-test:last-child { border-right: none; }
.pa-test-n {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(44px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pa-test-accent .pa-test-n  { color: var(--accent); }
.pa-test-warm .pa-test-n    { color: #F4A261; }
.pa-test-muted .pa-test-n   { color: var(--fg-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.pa-test-label {
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.04em;
}
.pa-test-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ========== Measurement ========== */
.pa-measure {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.pa-measure-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.pa-measure-note {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 52ch;
}
.pa-measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}
.pa-measure-item {
  padding: 32px 26px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-2);
}
.pa-measure-item:last-child { border-right: none; }
.pa-measure-n {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.pa-measure-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}
.pa-measure-body {
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0;
}
.pa-stack {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg) 85%, var(--bg-2));
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.pa-stack-lede {
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 36ch;
}
.pa-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.pa-stack-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.pa-stack-item:nth-child(2n) { border-left: 1px solid var(--border); }
.pa-stack-item:nth-child(-n+2) { border-top: none; }
.pa-stack-item:nth-child(2n+1):first-child { border-left: none; }
.pa-stack-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.pa-stack-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pa-stack-item:nth-child(2n) { border-right: none; }
.pa-stack-item:nth-last-child(-n+2) { border-bottom: none; }
.pa-stack-k {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pa-stack-s {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ========== FAQ — inherits wd-faq ========== */
.pa-faq { padding: 120px 0 100px; border-top: 1px solid var(--border); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .pa-hero-grid { grid-template-columns: 1fr; }
  .pa-hero-viz { max-width: 640px; }
  .pa-channels-grid { grid-template-columns: 1fr; }
  .pa-creative-grid { grid-template-columns: 1fr; }
  .pa-measure-head { grid-template-columns: 1fr; gap: 24px; }
  .pa-measure-grid { grid-template-columns: repeat(2, 1fr); }
  .pa-measure-item:nth-child(2) { border-right: none; }
  .pa-measure-item:nth-child(1), .pa-measure-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .pa-stack { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .pa-hero { padding: 96px 0 48px !important; }
  .pa-hero-head { font-size: clamp(44px, 10vw, 64px); }
  .pa-viz-grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .pa-viz-grid .pa-ad:nth-child(3) { grid-column: span 2; }
  .pa-pillars { padding: 80px 0; }
  .pa-channels { padding: 80px 0 60px; }
  .pa-channel { padding: 24px 22px; }
  .pa-channel-bullets { grid-template-columns: 1fr; }
  .pa-creative { padding: 80px 0; }
  .pa-slab { padding: 28px 24px; }
  .pa-test-velocity { padding: 28px 22px; }
  .pa-test-grid { grid-template-columns: repeat(2, 1fr); }
  .pa-test:nth-child(2) { border-right: none; }
  .pa-test:nth-child(1), .pa-test:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .pa-measure { padding: 80px 0; }
  .pa-measure-grid { grid-template-columns: 1fr; }
  .pa-measure-item { border-right: none; border-bottom: 1px solid var(--border); }
  .pa-measure-item:last-child { border-bottom: none; }
  .pa-stack { padding: 24px 22px; }
  .pa-stack-list { grid-template-columns: 1fr; }
  .pa-stack-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .pa-stack-item:last-child { border-bottom: none !important; }
  .pa-faq { padding: 80px 0 60px; }
}

/* ============= MOBILE FIXES (≤760px) ============= */
@media (max-width: 760px) {
  .pa-hero-grid,
  .pa-channel-bullets,
  .pa-creative-grid,
  .pa-measure-head { grid-template-columns: 1fr !important; gap: 24px; }
  .pa-viz-grid,
  .pa-channels-grid,
  .pa-test-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .pa-measure-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
  .pa-viz { display: none; }
  .pa-hero-head { font-size: clamp(38px, 10vw, 60px) !important; }
  .pa-hero-lede { font-size: 16px !important; }
  .pa-channel-cta { white-space: normal; }
}
