@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 1 — Hero visual: parity (both scrape the web) ═══
   Two mirrored request panels running the same job, both 200 · rendered ·
   bypassed. Parity is the point. Border-before-fill; teal = success.     */
.sf-hero-vis { gap: 0; }
.sf-req { padding: 18px 20px; width: 100%; }
.sf-req-url {
  margin: 11px 0 0; font-family: var(--font-code);
  font-size: var(--mkt-body-xs); color: var(--text-secondary);
  word-break: break-all;
}
/* Live request: a progress bar fills as the call runs, in sync on both. */
.sf-req-bar {
  display: block; margin: 13px 0 0; height: 2px; border-radius: 2px;
  background: var(--border-subtle); overflow: hidden;
}
.sf-req-bar-fill {
  display: block; height: 100%; width: 0; background: var(--text-secondary);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sf-req-status {
  margin: 12px 0 0; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-code); font-size: 12px; color: var(--text-primary);
}
.sf-req-state { transition: color 0.25s ease; }
.sf-req-state.is-working { color: var(--text-tertiary); }
.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;
}
.sf-eq {
  align-self: center; padding: 12px 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-h4); color: var(--text-tertiary); line-height: 1;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sf-hero-vis.is-done .sf-eq { color: #7ADAE6; transform: scale(1.18); }
/* Mount entrance — panels rise, the equals settles between them. */
.js .sf-req { opacity: 0; animation: tv-rise 0.55s ease-out forwards; }
.js .sf-req--zr { animation-delay: 0.18s; }
.js .sf-eq { opacity: 0; animation: tv-fade 0.5s ease-out 0.36s forwards; }
@media (prefers-reduced-motion: reduce) {
  .js .sf-req, .js .sf-eq { opacity: 1; animation: none; }
  .sf-dot { animation: none; }
}

/* ═══ Act 2 — The shared core (radial hub, scroll-driven) ═══
   The scrape sits at the centre, shared by both tools. The Zenrows toolkit
   primitives expand outward from behind the core as --p advances with scroll;
   the connectors fade in. Hub-and-spokes topology, unique to this page.    */
.sf-scope-scroll { position: relative; min-height: 240vh; }
.sf-scope-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;
}
.sf-scope .sf-scope-h2 { font-size: var(--mkt-h2); }
.sf-scope .sf-scope-lead { margin: 18px auto 0; max-width: 52ch; }

.sf-hub {
  position: relative; width: min(600px, 100%); height: 440px;
  margin: clamp(32px, 5vh, 60px) auto 0;
}
.sf-hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sf-wire {
  stroke: color-mix(in srgb, #7ADAE6 42%, transparent); stroke-width: 1;
  stroke-dasharray: 3 5; opacity: calc(var(--p, 0) * 0.9);
}
.sf-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(190px, 42%, 224px); padding: 24px 18px; z-index: 2;
  border: 1px solid var(--border-subtle); border-radius: 16px;
  background: var(--background);
}
.sf-core .sf-dot { display: inline-block; margin: 0 0 10px; }
.sf-core-tag {
  margin: 0; font-family: var(--font-code); font-size: 11.5px;
  letter-spacing: 0.04em; color: #7ADAE6;
}
.sf-core-prims {
  margin: 9px 0 0; font-family: var(--font-base); font-weight: 600;
  font-size: var(--mkt-body-sm); line-height: 1.5; color: var(--text-primary);
}
.sf-spoke {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  padding: 9px 16px; border: 1px solid color-mix(in srgb, #7ADAE6 30%, transparent);
  border-radius: 999px; font-family: var(--font-code);
  font-size: var(--mkt-body-xs); color: #7ADAE6; white-space: nowrap;
  transform: translate(-50%, -50%)
    translate(calc(var(--tx, 0px) * var(--p, 0)), calc(var(--ty, 0px) * var(--p, 0)));
  opacity: clamp(0, var(--p, 0) * 1.5, 1);
}
.sf-spoke--t { --tx: 0px;    --ty: -164px; }
.sf-spoke--r { --tx: 240px;  --ty: 0px; }
.sf-spoke--b { --tx: 0px;    --ty: 164px; }
.sf-spoke--l { --tx: -240px; --ty: 0px; }
.sf-hub-label {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  font-family: var(--font-code); font-size: 11px; letter-spacing: 0.05em;
  color: var(--text-tertiary); opacity: calc(var(--p, 0));
}

@media (max-width: 720px) {
  .sf-scope-scroll { min-height: 0; }
  .sf-scope-inner { position: static; min-height: 0;
    padding: clamp(80px, 12vh, 120px) var(--page-gutter, 7vw); }
  .sf-hub { height: auto; width: 100%; max-width: 320px;
    display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .sf-hub-wires { display: none; }
  .sf-core { position: static; transform: none; order: -1; width: 100%; max-width: 280px; }
  .sf-spoke { position: static; transform: none; opacity: 1; }
  .sf-hub-label { position: static; transform: none; margin-top: 6px; opacity: 1; }
}
@media (min-width: 1600px) { .sf-scope-inner { max-width: 1000px; } }
@media (prefers-reduced-motion: reduce) {
  .sf-spoke { transition: none; }
}

/* ═══ 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; }
}

/* ═══ Saturated purple band (pick act) — blooms in on entry ═══
   SOLID #7C4FE8, clip-path bloom. White type on the band; the Zenrows column
   reads brightest. Rhythm + BG break on an otherwise warm-dark page.       */
.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.is-in .cx-band-bloom { clip-path: circle(150% at 50% 105%); }
.cx-band .sf-pick-inner { position: relative; z-index: 1; }
.cx-band--purple .sf-pick-h2 { color: #fff; font-size: clamp(34px, 4.8vw, 68px); }
.cx-band--purple .sf-pick-col { border-top-color: rgba(255, 255, 255, 0.3); }
.cx-band--purple .sf-pick-name { color: rgba(255, 255, 255, 0.72); }
.cx-band--purple .sf-pick-col--zr .sf-pick-name { color: #fff; }
.cx-band--purple .sf-pick-list li { color: rgba(255, 255, 255, 0.9); }
.cx-band--purple .sf-pick-list li::before { background: rgba(255, 255, 255, 0.5); }
.cx-band--purple .sf-pick-col--zr .sf-pick-list li::before { background: #fff; }
.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; }
}

/* Topbar adapts while the purple band covers the topbar slot.
   Canonical body.is-on-purple inversion (theme-invariant): chrome → white,
   logo inverted to white, CTA stays the teal pill. Essential in BU/light. */

/* Hero visual — dominant: two big request panels with the equals between. */
.sf-hero-vis { gap: clamp(12px, 1.2vw, 22px); align-items: stretch; }
.sf-req { flex: 1; min-width: 0; padding: clamp(22px, 2.4vw, 36px); border-radius: 18px;
  display: flex; flex-direction: column; justify-content: center; min-height: clamp(190px, 27vh, 300px); }
.sf-req .cx-card-tag { font-size: 12.5px; }
.sf-req-url { font-size: clamp(12.5px, 1.05vw, 15px); margin-top: 16px; }
.sf-req-status { font-size: 13px; margin-top: 16px; }
.sf-eq { align-self: center; padding: 0 clamp(2px, 0.8vw, 14px); font-size: var(--mkt-h3); }
@media (max-width: 760px) {
  .sf-hero-vis { flex-direction: column; }
  .sf-req { min-height: 0; }
  .sf-eq { padding: 6px 0; }
}
