@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");

/* ──────────────────────────────────────────────────────────
   /solutions/competitive-intelligence — the COMPETITOR BRIEF.
   Buyer-facing twin of /workflows/competitor-intel. Distinct
   composition: live change-feed hero, pricing-page extraction,
   signals manifesto (click-expand), purple verticals band, closer.
   ────────────────────────────────────────────────────────── */

main { position: relative; z-index: 1; }

/* ═══ Act 1 — Hero ═══ */
.ci-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: clamp(120px, 16vh, 180px) var(--page-gutter, 7vw) clamp(64px, 9vh, 110px);
  max-width: 1480px;
  margin: 0 auto;
}
.ci-hero-text { max-width: 620px; }
.ci-hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-hero-xl);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}
.ci-hero-h1 em { font-style: normal; color: var(--text-primary); }
.ci-hero-sub { margin: clamp(20px, 2.4vw, 30px) 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-tertiary); max-width: 50ch; }
.ci-hero-cta { margin-top: clamp(28px, 3.4vw, 40px); }
.ci-hero-x { margin-top: 22px; }

/* live competitor feed — hairline frame, no fill */
.ci-feed { border: 1px solid var(--border-subtle); border-radius: var(--radius-display, 20px); padding: clamp(16px, 1.6vw, 22px); box-shadow: 0 30px 70px -28px rgba(0,0,0,0.6); width: 100%; max-width: 520px; }
.ci-feed-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-code); font-size: 11px; letter-spacing: 0.1em; color: var(--text-tertiary); }
.ci-feed-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ADAE6; box-shadow: 0 0 0 0 rgba(122,218,230,0.5); animation: ci-pulse 2.2s ease-out infinite; }
@keyframes ci-pulse { 0% { box-shadow: 0 0 0 0 rgba(122,218,230,0.5); } 70% { box-shadow: 0 0 0 9px rgba(122,218,230,0); } 100% { box-shadow: 0 0 0 0 rgba(122,218,230,0); } }
.ci-feed-watch { margin-left: auto; color: var(--text-quaternary); letter-spacing: 0.04em; }
.ci-feed-list { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; }
.ci-feed-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 13px 6px; border-top: 1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent); }
.ci-feed-item:first-child { border-top: 0; }
.ci-feed-item.is-new { animation: ci-enter 600ms cubic-bezier(0.22,1,0.36,1); }
@keyframes ci-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ci-feed-time { font-family: var(--font-code); font-size: 11px; color: var(--text-quaternary); }
.ci-feed-body { font-family: var(--font-base); font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.ci-feed-body b { color: var(--text-primary); font-weight: var(--font-weight-medium); }
.ci-feed-delta { font-family: var(--font-code); font-size: 12px; color: #7ADAE6; white-space: nowrap; }

/* ═══ Act 2 — From their page to a record ═══ */
.ci-extract { padding: clamp(110px, 16vh, 200px) var(--page-gutter, 7vw); max-width: 1280px; margin: 0 auto; }
.ci-extract-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.ci-extract-h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -0.028em; color: var(--text-primary); text-wrap: balance; }
.ci-extract-h2 em { font-style: normal; color: var(--text-primary); }
.ci-extract-sub { margin: 22px 0 0; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-tertiary); max-width: 58ch; }
.ci-extract-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }

.ci-page { border: 1px solid var(--border-subtle); border-radius: var(--radius-default, 12px); overflow: hidden; display: flex; flex-direction: column; }
.ci-page-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.ci-page-d { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.ci-page-url { margin-left: 10px; font-family: var(--font-code); font-size: 12px; color: var(--text-quaternary); }
.ci-page-body { padding: clamp(22px, 2.6vw, 36px); flex: 1; }
.ci-page-plans { display: flex; flex-direction: column; gap: 0; }
.ci-plan { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border-subtle); }
.ci-plan:first-child { border-top: 0; }
.ci-plan-name { font-family: var(--font-base); font-size: 15px; color: var(--text-secondary); }
.ci-plan-price { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--text-primary); }
.ci-plan-price s { font-family: var(--font-base); font-size: 13px; color: var(--text-quaternary); margin-left: 8px; }
.ci-plan--mark .ci-plan-name { color: var(--text-primary); font-weight: var(--font-weight-medium); }
.ci-page-claim { margin: 22px 0 0; font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-lead); line-height: 1.25; color: var(--text-primary); font-style: italic; }

.ci-extract-panel { display: flex; flex-direction: column; border: 1px solid var(--border-subtle); border-radius: var(--radius-default, 12px); overflow: hidden; }
.ci-extract-seg { padding: 6px 14px 0; border-bottom: 1px solid var(--border-subtle); }
.ci-extract-views { position: relative; display: grid; flex: 1; }
.ci-extract-view { grid-area: 1 / 1; margin: 0; padding: clamp(18px, 2vw, 28px); overflow-x: auto; font-family: var(--font-code); font-size: var(--mkt-body-xs); line-height: 1.7; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.ci-extract-view[data-active="true"] { opacity: 1; pointer-events: auto; }
.ci-extract-view code { white-space: pre; }
.x-p { color: var(--text-quaternary); }
.x-k { color: var(--text-secondary); }
.x-s { color: var(--text-tertiary); }
.x-n, .x-b { color: var(--text-primary); }
.x-hi { color: #7ADAE6; }
.x-c { color: var(--text-quaternary); }
.x-fn { color: var(--text-primary); font-weight: var(--font-weight-medium); }

/* ═══ Act 3 — signals manifesto (click-expand, pattern J) ═══ */
.ci-sigs { padding: clamp(110px, 16vh, 200px) var(--page-gutter, 7vw); max-width: 1080px; margin: 0 auto; }
.ci-sigs-h2 { margin: 0 0 clamp(36px, 5vh, 60px); font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -0.028em; color: var(--text-primary); text-wrap: balance; }
.ci-sigs-h2 em { font-style: normal; color: var(--text-primary); }
.ci-sigs-list { list-style: none; margin: 0; padding: 0; }
.ci-sig { border-top: 1px solid var(--border-subtle); }
.ci-sig:last-child { border-bottom: 1px solid var(--border-subtle); }
.ci-sig-row { width: 100%; appearance: none; background: transparent; border: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; align-items: center; gap: 18px; padding: clamp(20px, 2.4vw, 30px) 4px; cursor: pointer; text-align: left; }
.ci-sig-n { font-family: var(--font-code); font-size: 13px; color: var(--text-quaternary); }
.ci-sig-k { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h3); letter-spacing: -0.02em; color: var(--text-primary); transition: transform 240ms cubic-bezier(0.22,1,0.36,1); }
.ci-sig-row:hover .ci-sig-k { transform: translateX(6px); }
.ci-sig-plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.ci-sig-plus::before, .ci-sig-plus::after { content: ""; position: absolute; background: var(--text-tertiary); transition: transform 240ms ease, opacity 240ms ease; }
.ci-sig-plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.ci-sig-plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.ci-sig-row[aria-expanded="true"] .ci-sig-plus::after { transform: scaleY(0); opacity: 0; }
.ci-sig-row[aria-expanded="true"] .ci-sig-plus::before { background: #7C4FE8; }
.ci-sig-body { margin: 0; max-width: 64ch; padding: 0 4px 0 78px; font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-tertiary); display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 360ms cubic-bezier(0.22,1,0.36,1), opacity 360ms ease, padding-bottom 360ms ease; }
.ci-sig-body > * { overflow: hidden; min-height: 0; }
.ci-sig.is-open .ci-sig-body { grid-template-rows: 1fr; opacity: 1; padding-bottom: clamp(20px, 2.4vw, 30px); }

/* ═══ Act 4 — verticals band (SOLID purple, bloom reveal) ═══ */
.ci-verts { position: relative; isolation: isolate; padding: clamp(120px, 18vh, 220px) var(--page-gutter, 7vw); overflow: hidden; }
.ci-verts-fill { position: absolute; inset: 0; z-index: -1; background: #7C4FE8; clip-path: circle(0% at 18% 100%); transition: clip-path 900ms cubic-bezier(0.22,1,0.36,1); }
.ci-verts.is-in .ci-verts-fill { clip-path: circle(150% at 18% 100%); }
.ci-verts-inner { max-width: 1080px; margin: 0 auto; }
.ci-verts-h2 { margin: 0 0 clamp(40px, 6vh, 72px); font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5vw, 84px); line-height: 1.0; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.ci-verts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 44px); }
.ci-vert { display: flex; flex-direction: column; gap: 7px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.28); }
.ci-vert-k { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.01em; color: #fff; }
.ci-vert-v { font-family: var(--font-base); font-size: var(--mkt-body-sm); line-height: 1.5; color: rgba(255,255,255,0.82); max-width: 36ch; }

/* topbar inversion over the purple band */

/* ═══ Act 5 — Closer ═══ */
.ci-end { min-height: 86vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(110px, 16vh, 200px) var(--page-gutter, 7vw); }
.ci-end-frame { display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 3vh, 40px); }
.ci-end-h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6.5vw, 116px); line-height: 0.96; letter-spacing: -0.03em; color: var(--text-primary); text-wrap: balance; }
.ci-end-h2 em { font-style: normal; color: var(--text-primary); }
.ci-end-x { margin-top: 4px; }

/* ═══ Wide-desktop tiers ═══ */
@media (min-width: 1600px) { .ci-hero { max-width: 1640px; }  }
@media (min-width: 1920px) { .ci-hero { max-width: 1820px; } }

/* ═══ Breakpoints / mobile ═══ */
@media (max-width: 900px) {
  .ci-hero { grid-template-columns: 1fr; gap: clamp(40px, 7vh, 60px); min-height: 0; }
  .ci-feed { max-width: 100%; }
  .ci-extract-stage { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  
  .ci-verts-list { grid-template-columns: 1fr; }
  .ci-sig-row { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; }
  .ci-sig-body { padding-left: 52px; }
  .ci-hero-x, .ci-end-x {
    display: block; border-bottom: none; padding-bottom: 0;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--border);
  }
  .ci-end-x { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-feed-dot, .ci-feed-item.is-new { animation: none; }
  .ci-verts-fill { transition: none; }
}

/* ═══ Wide screens — let the acts breathe (≥1920 / ≥2560) ═══ */
@media (min-width: 1920px) {
  .ci-extract { max-width: 1480px; }
  .ci-sigs { max-width: 1380px; }
  .ci-verts-inner { max-width: 1380px; }
}
@media (min-width: 2560px) {
  .ci-extract { max-width: 1760px; }
  .ci-sigs { max-width: 1620px; }
  .ci-verts-inner { max-width: 1600px; }
}
