@import url("../../_ds/fonts.css");
@import url("../../_ds/theme.css");
@import url("../../_shared/chrome.css");
@import url("../../_shared/components.css");
@import url("../../_shared/audience-switcher.css");

/* ──────────────────────────────────────────────────────────
   /compare/exa — ZenRows vs Exa.  Indexed search vs the live web.
   Balanced framing; warm-dark, border-before-fill, type-led.
─────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.back-to-top, .back-to-top * { cursor: none; }

/* ═══ Act 1 — Hero (answer vs data) ═══ */
.cx-hero-section {
  min-height: 100vh; display: flex; align-items: stretch;
  padding: clamp(104px, 14vh, 152px) var(--page-gutter, 7vw) clamp(56px, 8vh, 100px);
}
.cx-hero {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(40px, 7vh, 96px);
}
.cx-hero-main { max-width: 980px; }
.cx-hero-h1 {
  margin: clamp(16px, 2.2vh, 28px) 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-hero-xl);
  line-height: 1.0;
  letter-spacing: var(--tracking-denser, -0.03em);
  color: var(--text-primary);
}
.cx-hero-sub {
  margin: 22px 0 0;
  font-family: var(--font-base);
  font-size: var(--mkt-body);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 42ch;
}
.cx-hero-cta { margin-top: 30px; }
.cx-hero-cta .link-cta { align-self: center; }

/* The two states — indexed (dimmed, stale) vs live (bright, now). */
.cx-hero-vis {
  display: flex; flex-direction: row; gap: clamp(16px, 1.6vw, 26px);
  width: 100%; align-items: stretch;
}
.cx-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.cx-card-tag {
  margin: 0;
  font-family: var(--font-code);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}
.cx-live-dot {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ADAE6;
  box-shadow: 0 0 0 0 rgba(122, 218, 230, 0.55);
  animation: cx-pulse 2.2s ease-out infinite;
}
@keyframes cx-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(122, 218, 230, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(122, 218, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 218, 230, 0); }
}

@media (max-width: 760px) {
  .cx-hero-section { min-height: 0; }
  .cx-hero-vis { flex-direction: column; }
}
@media (min-width: 1600px) { .cx-hero { max-width: 1400px; }  }
@media (min-width: 1920px) { .cx-hero { max-width: 1560px; }  }
@media (min-width: 2400px) { .cx-hero { max-width: 1760px; } }
@media (prefers-reduced-motion: reduce) { .cx-live-dot { animation: none; } }

/* Inline pill button — shared by the depth stepper control. */
.cx-evt {
  font-family: var(--font-code); font-size: 12.5px;
  color: var(--text-secondary); background: transparent;
  padding: 8px 15px; border: 1px solid var(--border-subtle); border-radius: 999px;
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.cx-evt:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.cx-evt:active { transform: translateY(1px); }
.cx-evt:focus-visible { outline: 2px solid var(--text-tertiary); outline-offset: 2px; }


/* ═══ Act 2 — Breadth (search is one of seven) ═══ */
.cx-h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-h2); line-height: 1.02;
  letter-spacing: var(--tracking-dense, -0.024em); color: var(--text-primary);
}
.cx-h2--center { text-align: center; }
.cx-lead {
  margin: 18px 0 0; max-width: 50ch;
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.55; color: var(--text-secondary);
}

/* ═══ Act 3 — Comparison table ═══ */
.cx-act3 { padding: clamp(80px, 11vh, 150px) var(--page-gutter, 7vw); }
.cx-act3-inner { max-width: 980px; margin: 0 auto; }
.cx-table { margin-top: clamp(32px, 5vh, 56px); }
.cx-trow {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) 1fr 1.1fr;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-base);
  font-size: var(--mkt-body-sm);
  line-height: 1.45;
  color: var(--text-secondary);
  align-items: baseline;
}
.cx-trow:last-child { border-bottom: 1px solid var(--border-subtle); }
.cx-trow--head { border-top: none; color: var(--text-tertiary); font-family: var(--font-code); font-size: 12px; letter-spacing: 0.04em; }
.cx-th-zr, .cx-tz { color: var(--text-primary); }
.cx-tk { font-family: var(--font-code); font-size: 12.5px; letter-spacing: 0.03em; color: var(--text-tertiary); }

/* ═══ Act 4 — Closer ═══ */
.cx-end {
  padding: clamp(120px, 18vh, 210px) var(--page-gutter, 7vw);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.cx-end-h2 {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero); line-height: 0.99;
  letter-spacing: var(--tracking-denser, -0.03em); color: var(--text-primary);
}
.cx-end-cta { margin-top: clamp(30px, 4.5vh, 52px); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 560ms cubic-bezier(0.22,1,0.36,1), transform 560ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .cx-trow { grid-template-columns: 1fr; gap: 4px 0; }
  .cx-trow--head { display: none; }
  .cx-tk { color: var(--text-primary); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
}

@keyframes tv-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tv-fade { from { opacity: 0; } to { opacity: 1; } }


/* ═══ Act 3 — When to pick each (balanced guide) ═══ */
.sf-pick { padding: clamp(92px, 13vh, 168px) var(--page-gutter, 7vw); }
.sf-pick-inner { max-width: 1000px; margin: 0 auto; }
.sf-pick .sf-pick-h2 { font-size: var(--mkt-h2); text-align: center; }
.sf-pick-grid {
  margin-top: clamp(40px, 6vh, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px);
}
.sf-pick-col { padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.sf-pick-col--zr { border-top-color: color-mix(in srgb, #7ADAE6 42%, transparent); }
.sf-pick-name {
  margin: 0; font-family: var(--font-code); font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-tertiary);
}
.sf-pick-col--zr .sf-pick-name { color: #7ADAE6; }
.sf-pick-list {
  margin: 20px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 15px;
}
.sf-pick-list li {
  position: relative; padding-left: 18px;
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary);
}
.sf-pick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-quaternary);
}
.sf-pick-col--zr .sf-pick-list li::before { background: #7ADAE6; }
@media (max-width: 680px) {
  .sf-pick-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══ Act 1 — Hero visual: one call (single request, data streams back) ═══
   One card, not twin panels. The call runs and structured data arrives; a
   footnote names what you never wire. Border-before-fill.                 */
.ox-hero-vis { gap: 0; }
/* Freshness dot — shared by the hero tag and the collapsed one-call chip. */
.sf-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: #7ADAE6;
  box-shadow: 0 0 0 0 rgba(122, 218, 230, 0.5); animation: cx-pulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .sf-dot { animation: none; } }
.ox-call { padding: 20px 22px; width: 100%; }
.ox-call .cx-card-tag { display: flex; align-items: center; gap: 9px; }
.ox-call-url {
  margin: 13px 0 0; font-family: var(--font-code);
  font-size: var(--mkt-body-xs); color: var(--text-secondary);
  word-break: break-all;
}
.ox-call-out {
  margin: 15px 0 0; padding-left: 13px; display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid color-mix(in srgb, #7ADAE6 32%, transparent);
}
.ox-out {
  font-family: var(--font-code); font-size: var(--mkt-body-xs);
  color: var(--text-primary);
}
.ox-call-foot {
  margin: 16px 0 0; font-family: var(--font-code); font-size: 11px;
  letter-spacing: 0.03em; color: var(--text-quaternary);
}
.js .ox-out { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .ox-out.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .ox-out { opacity: 1; transform: none; transition: none; }
}

/* ═══ Act 2 — The collapse (sticky scroll, many → one) ═══
   Six Oxylabs components stacked; scroll converges them to the centre and
   fuses them into a single Zenrows call. Single centred axis; own topology. */
.ox-collapse-scroll { position: relative; min-height: 240vh; }
.ox-collapse-inner {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 900px; margin: 0 auto;
  padding: clamp(64px, 9vh, 110px) var(--page-gutter, 7vw); text-align: center;
}
.ox-collapse .ox-collapse-h2 { font-size: var(--mkt-h2); }
.ox-collapse .ox-collapse-lead { margin: 18px auto 0; max-width: 52ch; }

.ox-stack { position: relative; height: 360px; max-width: 360px; margin: clamp(32px, 5vh, 56px) auto 0; }
.ox-part {
  position: absolute; top: 50%; left: 50%;
  padding: 10px 18px; border: 1px solid var(--border-subtle); border-radius: 999px;
  font-family: var(--font-code); font-size: var(--mkt-body-xs);
  color: var(--text-secondary); white-space: nowrap;
  transform: translate(-50%, -50%) translateY(calc((var(--i) - 2.5) * 52px * (1 - var(--p, 0))));
  opacity: clamp(0, (1 - var(--p, 0)) * 1.7, 1);
}
.ox-one {
  position: absolute; top: 50%; left: 50%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border: 1px solid color-mix(in srgb, #7ADAE6 42%, transparent);
  border-radius: 999px; font-family: var(--font-code);
  font-size: var(--mkt-body-sm); color: var(--text-primary); white-space: nowrap;
  transform: translate(-50%, -50%) scale(calc(0.86 + var(--p, 0) * 0.14));
  opacity: clamp(0, (var(--p, 0) - 0.5) * 2.4, 1);
}
.ox-collapse-foot { margin-top: clamp(20px, 3vh, 34px); display: flex; justify-content: center; }
.ox-collapse-read {
  font-family: var(--font-code); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--text-tertiary);
}

@media (max-width: 720px) {
  .ox-collapse-scroll { min-height: 0; }
  .ox-collapse-inner { position: static; min-height: 0;
    padding: clamp(80px, 12vh, 120px) var(--page-gutter, 7vw); }
  .ox-stack { position: static; height: auto; max-width: 320px;
    display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .ox-part { position: static; transform: none; opacity: 1; }
  .ox-one { position: static; transform: none; opacity: 1; margin-top: 8px; }
}
@media (min-width: 1600px) { .ox-collapse-inner { max-width: 1000px; } }

/* ═══ Saturated TEAL band (pick act) — blooms in on entry ═══
   SOLID #7ADAE6, clip-path bloom. Dark type on the bright band; the Zenrows
   column is marked in purple. body.is-on-teal inverts the topbar over it.   */
.cx-band { position: relative; overflow: hidden; }
.cx-band-bloom {
  position: absolute; inset: 0; z-index: 0; background: #7C4FE8;
  clip-path: circle(0% at 50% 105%);
  transition: clip-path 1150ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-band--teal .cx-band-bloom { background: #7ADAE6; }
.cx-band.is-in .cx-band-bloom { clip-path: circle(150% at 50% 105%); }
.cx-band .sf-pick-inner { position: relative; z-index: 1; }
.cx-band--teal .sf-pick-h2 { color: #1D1612; font-size: clamp(34px, 4.8vw, 68px); }
.cx-band--teal .sf-pick-col { border-top-color: rgba(29, 22, 18, 0.28); }
.cx-band--teal .sf-pick-name { color: rgba(29, 22, 18, 0.62); }
.cx-band--teal .sf-pick-col--zr .sf-pick-name { color: #7C4FE8; }
.cx-band--teal .sf-pick-list li { color: rgba(29, 22, 18, 0.9); }
.cx-band--teal .sf-pick-list li::before { background: rgba(29, 22, 18, 0.45); }
.cx-band--teal .sf-pick-col--zr .sf-pick-list li::before { background: #7C4FE8; }

/* Topbar inversion while the teal band sits under it (legible chrome). */
.cx-band .sf-pick-h2, .cx-band .sf-pick-col {
  opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.cx-band.is-in .sf-pick-h2 { opacity: 1; transform: none; transition-delay: 0.25s; }
.cx-band.is-in .sf-pick-col { opacity: 1; transform: none; }
.cx-band.is-in .sf-pick-col:nth-of-type(1) { transition-delay: 0.4s; }
.cx-band.is-in .sf-pick-col:nth-of-type(2) { transition-delay: 0.52s; }
@media (min-width: 1600px) { .cx-band .sf-pick-inner { max-width: 1180px; } }
@media (prefers-reduced-motion: reduce) {
  .cx-band-bloom { clip-path: circle(150% at 50% 105%); transition: none; }
  .cx-band .sf-pick-h2, .cx-band .sf-pick-col { opacity: 1; transform: none; transition: none; }
}

/* Hero visual — dominant: one big call card, centred. */
.ox-hero-vis { justify-content: center; }
.ox-call { flex: 0 1 900px; max-width: 900px; padding: clamp(26px, 2.8vw, 44px); border-radius: 18px; }
.ox-call .cx-card-tag { font-size: 12.5px; }
.ox-call-url { font-size: clamp(12.5px, 1.05vw, 15px); margin-top: 16px; }
.ox-call-out { gap: 11px; margin-top: 18px; }
.ox-out { font-size: var(--mkt-body-sm); }
.ox-call-foot { font-size: 12px; margin-top: 20px; }

/* Mobile: .ox-call above uses flex: 0 1 900px (a WIDTH basis for the row
   hero-vis). Stacked in the column hero-vis that basis became a 900px
   HEIGHT, leaving a huge empty card. Reset it to size by its content.
   Placed last so it wins over the base rule by source order. */
@media (max-width: 760px) {
  .ox-call { flex: 0 0 auto; max-width: 100%; }
}
