/* House Ads — BetterBooker campaign */

/* ============================================
   Container & layout
   ============================================ */
.house-ad-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background-color: var(--bg);
}

.house-ad-container[data-house-ad="top"] {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.house-ad-container[data-house-ad="bottom"] {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 16px;
  gap: 8px;
}

.house-ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.house-ad-desktop {
  display: flex;
  justify-content: center;
}

.house-ad-mobile {
  display: none;
  justify-content: center;
}

.house-ad-content {
  display: flex;
  justify-content: center;
}

.house-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.house-ad-link:hover {
  text-decoration: none;
}

.house-ad-link:hover .cta-btn {
  filter: brightness(1.15);
}

@media (max-width: 768px) {
  .house-ad-desktop { display: none; }
  .house-ad-mobile { display: flex; }
  .house-ad-container[data-house-ad="bottom"] { margin-top: 32px; }
  .house-ad-container { padding: 16px 12px; }
}

@media (max-width: 480px) {
  .house-ad-container { padding: 12px 8px; }
  .house-ad-container[data-house-ad="bottom"] { margin-top: 24px; }
}

/* ============================================
   Shared: CTA button (span, not button)
   ============================================ */
.cta-btn {
  display: inline-block;
}

/* ============================================
   LEADERBOARD 728x90 — Variation A: Route focus
   ============================================ */
.leaderboard-a {
  width: 728px;
  max-width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.leaderboard-a::before {
  content: '';
  position: absolute;
  top: -30px;
  right: 80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
}

.leaderboard-a .route-dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 20px;
  position: relative;
}

.leaderboard-a .route-dots::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 2px;
  height: calc(100% - 12px);
  background: rgba(59,130,246,0.3);
}

.leaderboard-a .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  position: relative;
  z-index: 1;
}

.leaderboard-a .dot:nth-child(2) { background: #60a5fa; }
.leaderboard-a .dot:nth-child(3) { background: #93bbfd; }

.leaderboard-a .text-block {
  flex: 1;
}

.leaderboard-a .headline {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.leaderboard-a .subline {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
}

.leaderboard-a .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.leaderboard-a .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* ============================================
   LEADERBOARD 728x90 — Variation B: Pain point
   ============================================ */
.leaderboard-b {
  width: 728px;
  max-width: 100%;
  height: 90px;
  background: #0f172a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.leaderboard-b::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}

.leaderboard-b .icon-phone {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239,68,68,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.leaderboard-b .icon-phone svg {
  width: 18px;
  height: 18px;
  stroke: #ef4444;
  fill: none;
  stroke-width: 2;
}

.leaderboard-b .text-block { flex: 1; }

.leaderboard-b .headline {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
}

.leaderboard-b .headline em {
  font-style: normal;
  color: #60a5fa;
}

.leaderboard-b .subline {
  color: #94a3b8;
  font-size: 12px;
}

.leaderboard-b .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.leaderboard-b .free-tag {
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  margin-left: 16px;
  white-space: nowrap;
}

/* ============================================
   LEADERBOARD 728x90 — Variation C: Simple/bold
   ============================================ */
.leaderboard-c {
  width: 728px;
  max-width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 28px;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.leaderboard-c .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-c .brand-icon {
  width: 28px;
  height: 28px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-c .brand-icon svg {
  width: 14px;
  height: 14px;
  stroke: #3b82f6;
  fill: none;
  stroke-width: 2;
}

.leaderboard-c .brand-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.leaderboard-c .divider {
  width: 1px;
  height: 40px;
  background: rgba(148,163,184,0.2);
}

.leaderboard-c .headline {
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 500;
}

.leaderboard-c .headline strong {
  color: #ffffff;
  font-weight: 700;
}

.leaderboard-c .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================
   MOBILE TOP — Variation A: Brand + message
   ============================================ */
.mobile-top-a {
  width: 100%;
  height: 50px;
  background: #0f172a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
  cursor: pointer;
}

.mobile-top-a .text-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-top-a .brand-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.mobile-top-a .sep {
  color: #334155;
  font-size: 12px;
}

.mobile-top-a .headline {
  color: #94a3b8;
  font-size: 11px;
}

.mobile-top-a .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================
   MOBILE TOP — Variation B: Pain point
   ============================================ */
.mobile-top-b {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  box-sizing: border-box;
  cursor: pointer;
}

.mobile-top-b .headline {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.mobile-top-b .headline em {
  font-style: normal;
  color: #60a5fa;
}

.mobile-top-b .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================
   RECTANGLE 336x280 — Variation A: Clean & direct
   ============================================ */
.rect-a {
  width: 336px;
  max-width: 100%;
  height: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.rect-a::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
}

.rect-a .badge {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.rect-a .headline {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.rect-a .subline {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.rect-a .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.rect-a .brand-footer {
  position: absolute;
  bottom: 12px;
  color: #475569;
  font-size: 10px;
}

/* ============================================
   RECTANGLE 336x280 — Variation B: Route visual
   ============================================ */
.rect-b {
  width: 336px;
  max-width: 100%;
  height: 280px;
  background: #0f172a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.rect-b .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rect-b .brand-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.rect-b .free-tag {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

.rect-b .route-visual {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex: 1;
}

.rect-b .route-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

.rect-b .route-line .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rect-b .route-line .line {
  width: 2px;
  height: 12px;
  background: rgba(59,130,246,0.3);
}

.rect-b .route-line .num:nth-child(3) { background: #60a5fa; }
.rect-b .route-line .num:nth-child(5) { background: #93bbfd; }

.rect-b .route-jobs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rect-b .job {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.3;
}

.rect-b .job span {
  color: #64748b;
  font-size: 11px;
}

.rect-b .headline {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.rect-b .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  align-self: flex-start;
}

/* ============================================
   RECTANGLE 336x280 — Variation C: Testimonial
   ============================================ */
.rect-c {
  width: 336px;
  max-width: 100%;
  height: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #162032 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.rect-c .quote-mark {
  color: #1e3a5f;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: -4px;
}

.rect-c .quote {
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  font-style: italic;
}

.rect-c .pain {
  color: #ef4444;
  font-size: 12px;
  margin-bottom: 16px;
  text-decoration: line-through;
  opacity: 0.6;
}

.rect-c .solution {
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.rect-c .cta-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.rect-c .brand-footer {
  position: absolute;
  bottom: 12px;
  color: #475569;
  font-size: 10px;
}
