/* ── landing-components.css ─────────────────────────────────
   Shared component styles used by partials (cross-sell, steps,
   trust bar, CTA button, etc.). Loaded once from layout.ejs.
   ──────────────────────────────────────────────────────────── */

/* ── Cross-sell cards ──────────────────────────────────────── */
.crosssell-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crosssell-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.crosssell-card {
  padding: 26px; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block; text-decoration: none; color: inherit;
}
.crosssell-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-2px); }
.crosssell-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #6050DC; margin-bottom: 8px; }
.crosssell-card h3 { font-size: 16px; font-weight: 700; color: #0c0821; margin-bottom: 8px; }
.crosssell-card p { font-size: 14px; color: rgba(0,0,0,0.55); line-height: 1.6; margin-bottom: 14px; }
.crosssell-link { font-size: 13px; font-weight: 600; color: #6050DC; display: inline-flex; align-items: center; gap: 4px; }
.crosssell-link:hover { text-decoration: underline; }

/* ── Steps grid ────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 44px; left: calc(12.5% + 44px); right: calc(12.5% + 44px);
  height: 1px;
  background: linear-gradient(90deg, rgba(96,80,220,0.5), rgba(75,174,232,0.5));
}
.step-card { text-align: center; padding: 8px; }
.step-number {
  width: 88px; height: 88px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(96,80,220,0.15), rgba(75,174,232,0.08));
  border: 1px solid rgba(96,80,220,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 30px; position: relative;
}
.step-num-label {
  position: absolute; top: -10px; right: -10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #6050DC; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Geist Sans', sans-serif;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: #0c0821; margin-bottom: 10px; }
.step-card p { color: rgba(0,0,0,0.55); font-size: 14px; line-height: 1.65; }

/* ── CTA secondary button ──────────────────────────────────── */
.btn-cta-secondary { background: transparent; color: #6050DC; border: 1px solid rgba(96,80,220,0.3); }
.btn-cta-secondary:hover { background: rgba(96,80,220,0.06); }

/* ── Trust bar ─────────────────────────────────────────────── */
.trust-bar { text-align: center; }
.trust-bar-label { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: rgba(0,0,0,0.55); margin-bottom: 24px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-logo { height: 30px; opacity: 0.35; filter: grayscale(100%); object-fit: contain; }

/* ── Companies bar (variant) ───────────────────────────────── */
.companies-bar { text-align: center; }
.companies-label { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; color: rgba(0,0,0,0.55); margin-bottom: 24px; }
.companies-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.company-logo { height: 30px; opacity: 0.35; filter: grayscale(100%); object-fit: contain; }

/* ── ML pattern cards ──────────────────────────────────────── */
.ml-section-intro { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.ml-section-intro h2 {
  font-family: 'Geist Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  letter-spacing: -0.02em; color: #0c0821; margin-bottom: 14px; line-height: 1.2;
}
.ml-section-intro p { font-size: 16px; color: rgba(0,0,0,0.6); line-height: 1.75; }
.ml-patterns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pattern-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; }
.pattern-chart { background: linear-gradient(180deg, #fafafc 0%, #f5f4f9 100%); padding: 28px 24px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.pattern-chart svg { width: 100%; height: auto; display: block; }
.pattern-body { padding: 22px 24px 26px; }
.pattern-title { font-size: 16px; font-weight: 700; color: #0c0821; margin-bottom: 8px; }
.pattern-desc { font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.65; }
.pattern-example { font-size: 13px; color: rgba(0,0,0,0.4); margin-top: 10px; font-style: italic; }

/* ── Prose (long-form text) ────────────────────────────────── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 {
  font-family: 'Geist Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 34px); font-weight: 700;
  letter-spacing: -0.02em; color: #0c0821; margin-bottom: 28px;
}
.prose p { font-size: 16px; color: rgba(0,0,0,0.65); line-height: 1.8; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .crosssell-grid   { grid-template-columns: 1fr; }
  .crosssell-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .ml-patterns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .crosssell-grid-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Data source cards ─────────────────────────────────────── */
.ds-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.7);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.ds-card:hover {
  border-color: rgba(96,80,220,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(96,80,220,0.12);
}
.ds-card img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ── Coming soon / greyscale state ─────────────────────── */
.source-card--soon,
.ds-card--soon {
  position: relative;
  cursor: default;
}
.source-card--soon img,
.ds-card--soon img {
  opacity: 0.35;
  filter: grayscale(100%);
}
.source-card--soon:hover,
.ds-card--soon:hover {
  border-color: rgba(0,0,0,0.08);
  transform: none;
  box-shadow: none;
}

/* ── CSS Tooltip (matches app Radix tooltip style) ─────── */
[data-tooltip] {
  position: relative;
  cursor: default;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  white-space: nowrap;
  font-size: 11px !important;
  line-height: 1.4;
  font-weight: 600;
  color: #0c0821;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
