/* ==========================================================================
   /clickio_bidder/ — page-specific layout
   Links after site.css (tokens/buttons) + inner.css (shared inner-page bits).
   Only per-section arrangement, image sizing, the FAQ accordion styling and
   the two hero/CTA button variants live here.
   ========================================================================== */

/* Body offset: fixed 82px header + fixed 50px 2nd-level strip (>=1200px).
   Below 1200px the strip is hidden and the header collapses to 60px. Same as
   /monetization/. */
body { padding-top: 132px; }
@media screen and (max-width: 1199px) { body { padding-top: 60px; } }

/* Active submenu item: the partial's inline script bolds the anchor matching
   the pathname (/clickio_bidder). Page-scoped belt-and-suspenders so the strip
   marks "Clickio Bidder" active even if that script is blocked. */
#menu-2nd #to-clickio-bidder a { font-weight: 900; }

/* ============================================================= 01 HERO ===== */
/* Reuse the dark-art .ihero shell (bg + veil) but swap the art and lay the
   hero out as copy-left / dashboard-right instead of the centered template. */
.bhero {
  /* background art inherited from .ihero (shared canonical /img/hero-bg.png) */
  padding: 64px 0 84px;
}
.bhero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 460px;
}
.bhero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.bhero-title span { color: rgba(255,255,255,.85); }
.bhero-title em { font-style: normal; color: var(--coral); }
.bhero-sub {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.9);
  margin: 0 0 20px; max-width: 520px;
}
.bhero-cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.bhero-cta .pill-btn { border-radius: 40px; height: 55px; padding: 0 40px; font-size: 14px; }
.bhero-visual { line-height: 0; }
.bhero-visual img,
.bhero-visual .bhero-dash {
  display: block;
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 70px rgba(6,8,30,.35);
}

/* ======================================= 02 More demand, less disruption ==== */
.mdd-body { align-items: center; gap: 48px; margin-top: 8px; }
.mdd-dash { display: block; width: 100%; height: auto; max-width: 660px; }
/* faint rounded panel behind the copy, matching live */
.mdd-copy { background: rgba(255,255,255,.6); }

/* ============================================= 03 Not just another bidder ==== */
.njab-body { align-items: center; gap: 48px; margin-top: 8px; }
.njab-diagram { width: 100%; max-width: 720px; margin-left: auto; }

/* ========================================================= 04 Key advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 8px;
}
.adv-card { padding: 30px 32px 34px; }
/* The three illustrations have different aspect ratios (88/124/102px tall at
   156px wide), which pushed the card headings to different heights. A uniform
   box, bottom-aligned, puts all three headings on the same line. */
.adv-icon { width: 156px; height: 124px; object-fit: contain; object-position: left bottom; margin: 0 0 22px; }
.adv-card h3 { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 14px; }
.adv-card p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }

/* ============================================================== 05 Best fit == */
.bestfit-panel { padding: 40px 48px; }
.bestfit-body { align-items: center; gap: 48px; }
.bestfit-lead { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0 0 18px; }
.bestfit-list { margin: 0 0 22px; }
.bestfit-list li { color: var(--body); }
.bestfit-note { margin: 0; }
.bestfit-illus { width: 100%; max-width: 560px; margin-left: auto; }

/* ========================================================== 06 How it works == */
.how-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
}
.how-card { flex: 1 1 0; padding: 26px 28px 32px; }
.how-icon { height: 96px; width: auto; margin: 0 0 20px; display: block; }
.how-card h3 { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.22; margin: 0 0 14px; }
.how-card p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }
.how-arrow { flex: 0 0 auto; align-self: center; width: 46px; height: 46px; margin: 0 6px; }

/* ================================ 07 Full Clickio Monetization or Bidder? === */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 8px;
}
.opt-card { display: flex; align-items: center; gap: 26px; padding: 32px 36px; }
.opt-icon { flex: 0 0 auto; width: 150px; height: auto; }
.opt-text h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.opt-text p { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0; }
.opt-note { margin-top: 26px; padding: 30px 40px; }

/* =============================================================== FAQ =========== */
.faq-intro { padding: 40px 0 8px; }
.faq-section { padding: 8px 0 90px; }
.faq { list-style: none; margin: 0; padding: 0; }
.faq-item { border-top: 2px solid #dcdfe6; }
.faq-item:last-child { border-bottom: 2px solid #dcdfe6; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: none; border: 0; cursor: pointer;
  padding: 26px 4px; margin: 0;
  text-align: left; font-family: inherit;
}
.faq-q-text { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.faq-icon {
  position: relative; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: #eceef3; transition: background .15s ease;
}
.faq-q:hover .faq-icon { background: #e0e3ea; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 2px; background: var(--navy);
  transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
/* answer: collapsed by default, animated open via max-height */
.faq-a { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 4px 26px; }
.faq-a p { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0; max-width: 900px; }

/* =================================================================== 10 CTA == */
/* Tinted rounded card (.ipanel) on a white section, matching live: rocket,
   heading, intro copy, then the two pill buttons. */
.bcta { text-align: center; padding: 48px 28px 56px; }
.bcta-illus { width: 230px; height: auto; margin: 0 auto 26px; }
.bcta-head {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08; font-weight: 800; color: var(--navy);
  letter-spacing: -0.01em; margin: 0 auto 24px; max-width: 900px;
}
/* Intro copy (live desktop is 20px). The leaked Tilda editorial note
   ("Sign up should lead to…") stays excluded from the markup. */
.bcta-copy {
  font-size: 20px; line-height: 1.5; color: var(--body);
  margin: 0 auto 32px; max-width: 820px;
}
.bcta-cta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.bcta-cta .pill-btn { border-radius: 40px; height: 55px; padding: 0 44px; font-size: 14px; }
/* Live "Talk to us" pill is white with a thin red outline. */
.bcta-cta .pill-btn--white { border-color: var(--red); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .bhero-inner { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .adv-grid { grid-template-columns: 1fr; gap: 22px; }
  /* single column: cross-card alignment is moot, drop the reserved icon space */
  .adv-icon { height: auto; }
  .opt-grid { grid-template-columns: 1fr; gap: 22px; }
  .njab-diagram, .bestfit-illus, .mdd-dash { margin: 0 auto; }

  /* How it works: stack vertically, arrows point down between cards */
  .how-grid { flex-direction: column; }
  .how-arrow { transform: rotate(90deg); margin: 12px auto; }
}

@media screen and (max-width: 860px) {
  .bhero { padding: 30px 0 44px; }
  .bhero-title { font-size: clamp(32px, 9vw, 46px); margin: 4px 0 22px; }
  .bhero-sub { font-size: 16px; max-width: none; }
  /* long ES labels ("Habla con nosotros"): the global nowrap made the shrunk
     flex button spill outside the viewport, clipping the text — let the label
     wrap to a second line inside the pill instead */
  .bhero-cta .pill-btn, .bcta-cta .pill-btn { flex: 1; min-width: 150px; white-space: normal; height: auto; min-height: 55px; padding: 8px 18px; text-align: center; }

  .ipanel { padding: 30px 24px; border-radius: 28px; }
  .bestfit-panel { padding: 30px 22px; }
  .bcta { padding: 34px 20px 40px; }
  .bcta-copy { font-size: 16px; }
  .opt-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 24px; }
  .opt-icon { width: 150px; }
  .adv-icon { width: 150px; }

  .faq-q-text { font-size: 17px; }
  .faq-q { padding: 20px 2px; }
  .faq-icon { width: 34px; height: 34px; }
}
