/* Prebid Wrapper feature page — extends styles.css */

/* Active nav link */
.nav-links a.active { color: var(--text); }

/* ===== Hero — centered editorial variant ===== */
.pw-hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.pw-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pw-hero-inner h1 {
  margin-top: 28px;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 500;
  text-wrap: balance;
  max-width: 22ch;
}
.pw-hero-inner .lead {
  margin: 28px auto 0;
  text-align: center;
  font-size: clamp(16px, 1.1vw, 18px);
  max-width: 58ch;
}
.pw-hero-inner .hero-actions {
  justify-content: center;
}

/* Thin gradient spine under hero */
.pw-hero-spine {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 64px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 30%, transparent);
}
.pw-hero-spine span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ===== Pillar strip (4 numbered) ===== */
.pw-strip {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pw-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 56px;
}
@media (min-width: 700px)  { .pw-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pw-strip-grid { grid-template-columns: repeat(4, 1fr); gap: 0 48px; } }
.pw-strip-item {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.pw-strip-item .num {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-weight: 500;
}
.pw-strip-item h4 {
  margin-top: 14px;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.pw-strip-item p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
}

/* ===== Engineered for speed ===== */
.pw-speed-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 96px;
  align-items: end;
}
@media (min-width: 900px) {
  .pw-speed-head { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.pw-speed-head h2 { margin-top: 22px; max-width: 14ch; }
.pw-speed-head .lead { margin: 0; max-width: 50ch; }

/* Annotated visual — 3-col layout, callouts flank the image */
.pw-annotated {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 24px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
}
@media (min-width: 1024px) {
  .pw-annotated { grid-template-columns: 1fr 1.5fr 1fr; gap: 24px; }
}
.pw-annotated-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-annotated-visual img {
  width: 100%;
  max-width: 720px;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.65));
}
/* Subtle blue floor under the image */
.pw-annotated-visual::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -40px;
  transform: translateX(-50%);
  width: 70%; height: 80px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  filter: blur(40px);
  opacity: calc(0.85 * var(--glow-strength));
  z-index: -1;
  pointer-events: none;
}

.pw-callouts {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.pw-callouts-left  .pw-callout { text-align: left;  }
.pw-callouts-right .pw-callout { text-align: left;  }

.pw-callout {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.pw-callout-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}
.pw-callout-icon svg { width: 22px; height: 22px; }
.pw-callout h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pw-callout p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28ch;
}

/* ===== Testimonials ===== */
.pw-tests-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.pw-tests-head h2 { margin-top: 22px; }

.pw-tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px)  { .pw-tests-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pw-tests-grid { grid-template-columns: repeat(3, 1fr); } }
.pw-test {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
  position: relative;
}
.pw-test-wide {
  grid-column: 1 / -1;
}
@media (min-width: 1100px) {
  .pw-test-wide { grid-column: span 3; }
}
.pw-test-mark {
  width: 28px; height: 22px;
  color: var(--accent);
  opacity: 0.85;
}
.pw-test-q {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
  flex: 1;
  text-wrap: pretty;
}
.pw-test-wide .pw-test-q {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 76ch;
}
.pw-test-attr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pw-test-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  flex: 0 0 auto;
}
.pw-test-attr .name { font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; }
.pw-test-attr .role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== Trusted by ===== */
.pw-trust {
  padding-top: var(--gap);
  padding-bottom: var(--gap);
}
.pw-trust-head {
  text-align: center;
  margin-bottom: 64px;
}
.pw-trust-head h3 {
  margin-top: 22px;
  text-wrap: balance;
}
.pw-trust .partner-row {
  padding: 0;
}

/* ===== Slack mockup (Support & Yield Management) ===== */
.syd-stage {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  padding: 64px 32px 96px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, var(--accent) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}
.syd-stage::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.syd-slack {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 8, 24, 0.55), 0 8px 24px rgba(0, 8, 24, 0.25);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.syd-slack-sidebar {
  background: linear-gradient(180deg, #3F0E40 0%, #4A1148 100%);
  padding: 22px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.syd-slack-app {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 7px;
}
.syd-slack-app svg { width: 100%; height: 100%; }
.syd-slack-channel {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.syd-slack-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.syd-slack-bars span {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.syd-slack-bars span:nth-child(1) { width: 88%; }
.syd-slack-bars span:nth-child(2) { width: 70%; }
.syd-slack-bars span:nth-child(3) { width: 84%; }
.syd-slack-bars span:nth-child(4) { width: 60%; }
.syd-slack-bars span:nth-child(5) { width: 78%; }
.syd-slack-main {
  padding: 26px 28px 30px;
  color: #1D1C1D;
}
.syd-slack-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: #1D1C1D;
}
.syd-slack-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.syd-slack-msg:last-child { margin-bottom: 0; }
.syd-slack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
}
.syd-slack-avatar.bjorn {
  background: linear-gradient(135deg, #3A8CF5, #002D6B);
}
.syd-slack-avatar.samer {
  background: linear-gradient(135deg, #1E867A, #145C55);
}
.syd-slack-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.syd-slack-meta .name {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: #1D1C1D;
}
.syd-slack-meta .time {
  font-size: 12px;
  color: #616061;
}
.syd-slack-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: #1D1C1D;
}
.syd-slack-text .mention {
  background: #E8F1FB;
  color: #1264A3;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .pw-hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .pw-hero-inner h1 { font-size: clamp(32px, 9.5vw, 48px); }
  .pw-hero-inner .lead { font-size: 16px; }
  .pw-hero-inner .hero-actions { gap: 10px; width: 100%; }
  .pw-hero-inner .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .pw-strip { padding-top: 56px; padding-bottom: 56px; }
  .pw-strip-grid { gap: 32px; }
  .pw-strip-item { padding-left: 18px; }
  .pw-strip-item h4 { font-size: 22px; }

  .pw-speed-head { gap: 24px; margin-bottom: 48px; grid-template-columns: 1fr; }
  .pw-speed-head h2 { font-size: clamp(30px, 8vw, 44px); }

  .pw-annotated { gap: 40px; padding-top: 24px; padding-bottom: 24px; }
  .pw-callouts { gap: 32px; }
  .pw-callout p { font-size: 13.5px; }

  .pw-tests-head { margin-bottom: 40px; }
  .pw-tests-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .pw-test { padding: 26px 22px; min-height: auto; gap: 18px; }
  .pw-test-q { font-size: 15.5px; }
  .pw-test-wide .pw-test-q { font-size: 17px; }

  .pw-trust-head { margin-bottom: 40px; }
  .pw-trust-head h3 { font-size: 20px; }

  .syd-stage { padding: 36px 16px 48px; border-radius: 18px; }
  .syd-slack { grid-template-columns: 1fr; }
  .syd-slack-sidebar { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
  .syd-slack-app { width: 36px; height: 36px; padding: 5px; }
  .syd-slack-bars { display: none; }
  .syd-slack-main { padding: 20px; }
  .syd-slack-title { font-size: 16px; margin-bottom: 16px; }
  .syd-slack-text { font-size: 14px; }
}
