/* Creato — Solutions audience pages (creators, agencies, brands)
   Complements media-kit.css for step visuals & interactive demos */

.sol-page {
  --sol-primary: #9333ea;
  --sol-radius: 20px;
  background: #fff;
}

.sol-page .legal-main {
  padding-top: 88px;
}

/* Fixed nav (64px) — keep hero copy & glow fully visible */
.sol-page .sol-hero {
  scroll-margin-top: 72px;
}

/* ── Rich hero (media-kit aligned) ── */
.sol-hero {
  position: relative;
  padding: calc(64px + env(safe-area-inset-top, 0px) + 32px) 24px 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 55%);
}
.sol-hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147,51,234,0.12) 0%, transparent 70%);
  top: -200px;
  right: -120px;
  pointer-events: none;
}
.sol-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.sol-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sol-primary);
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.15);
  margin-bottom: 20px;
}
.sol-hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.12;
  margin-bottom: 16px;
}
.sol-hero-lead {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.65;
  max-width: 640px;
}

/* ── Steps (same overall width as before; text column narrower, visual column wider) ── */
.sol-steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.sol-step {
  display: grid;
  /* Text 30% · visual 70% (odd steps: text | visual) */
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 52px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid #f3f4f6;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-step:first-of-type { border-top: none; }
.sol-step.sol-inview {
  opacity: 1;
  transform: none;
}
/* Same layout every step: copy left, visual right (no alternating — avoids step 2 looking different) */

.sol-step-text {
  min-width: 0;
}

.sol-step-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9333ea;
  margin-bottom: 10px;
}
.sol-step h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.2;
}
.sol-step-body {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 14px;
}
.sol-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sol-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.5;
}
.sol-step-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Demo frame (glass) ── */
.sol-demo {
  border-radius: var(--sol-radius);
  background: linear-gradient(145deg, #fff 0%, #fafafa 100%);
  border: 1px solid rgba(147, 51, 234, 0.12);
  box-shadow:
    0 4px 32px rgba(147, 51, 234, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 280px;
  position: relative;
}
.sol-demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
}
.sol-demo-chrome-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.sol-demo-chrome-dots .r { background: #ff5f57; }
.sol-demo-chrome-dots .y { background: #febc2e; }
.sol-demo-chrome-dots .g { background: #28c840; }
.sol-demo-body {
  padding: 20px;
}

/* Creators — connect hub */
.sol-hub-demo {
  position: relative;
  height: 260px;
}
.sol-hub-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sol-hub-lines path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.35;
}
.sol-plat-node {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  opacity: 0.35;
  transform: scale(0.85);
}
.sol-plat-node.sol-node-on {
  opacity: 1;
  transform: scale(1);
}
.sol-plat-ig { background: linear-gradient(135deg, #f472b6, #d946ef); top: 12px; left: 8%; }
.sol-plat-tt { background: #0f172a; top: 12px; left: 50%; margin-left: -28px; }
.sol-plat-yt { background: #ef4444; top: 12px; right: 8%; }
.sol-hub-center {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(147,51,234,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(147,51,234,0.2);
}
.sol-hub-center.sol-pulse {
  animation: solHubPulse 2.2s ease-in-out infinite;
}
@keyframes solHubPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(147,51,234,0.2); }
  50% { box-shadow: 0 8px 40px rgba(147,51,234,0.45); }
}

/* Creators — media kit mini */
.sol-mk-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}
.sol-mk-photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e9d5ff, #c4b5fd);
}
.sol-mk-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.sol-mk-stat {
  background: #f9fafb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
}
.sol-mk-stat strong { display: block; font-size: 1rem; color: #111827; }
.sol-link-pill {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f5f3ff;
  border-radius: 10px;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: #5b21b6;
}
.sol-link-pill.sol-copied {
  animation: solFlash 0.6s ease;
}
@keyframes solFlash {
  0% { background: #ddd6fe; }
  100% { background: #f5f3ff; }
}

/* Agencies — roster */
.sol-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sol-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  transition: border-color 0.3s, background 0.3s;
}
.sol-roster-row.sol-row-live {
  border-color: rgba(147,51,234,0.35);
  background: #faf5ff;
}
.sol-av {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
}
.sol-av.a1 { background: linear-gradient(135deg, #c084fc, #9333ea); }
.sol-av.a2 { background: linear-gradient(135deg, #67e8f9, #2563eb); }
.sol-av.a3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.sol-av.a4 { background: linear-gradient(135deg, #86efac, #16a34a); }

/* Agencies — ping chaos vs clean */
.sol-chaos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
  color: #6b7280;
}
.sol-msg {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  max-width: 92%;
  animation: solMsgIn 0.5s ease backwards;
}
.sol-msg:nth-child(2) { animation-delay: 0.15s; background: #fce7f3; border-color: #f9a8d4; align-self: flex-end; }
.sol-msg:nth-child(3) { animation-delay: 0.3s; }
@keyframes solMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.sol-clean-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9333ea, #c084fc);
  margin-top: 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-step.sol-inview .sol-clean-bar.sol-animate-bar {
  transform: scaleX(1);
}

/* Agencies — campaign timeline */
.sol-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.sol-cal-day {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #9ca3af;
  padding: 4px 0;
}
.sol-cal-cell {
  min-height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px dashed #e5e7eb;
  position: relative;
  overflow: hidden;
}
.sol-cal-cell.has-drop {
  background: #ede9fe;
  border-style: solid;
  border-color: #c4b5fd;
}
.sol-cal-dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9333ea;
  animation: solDot 1.4s ease-in-out infinite;
}
@keyframes solDot {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* Brands — roster analytics */
.sol-brand-dash {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sol-kpi {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #faf5ff, #fff);
  border: 1px solid #f3e8ff;
}
.sol-kpi .v {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.sol-kpi .l { font-size: 0.65rem; color: #6b7280; margin-top: 4px; }
.sol-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  animation: solPulse 1.2s ease-in-out infinite;
}
@keyframes solPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Brands — campaign content grid */
.sol-camp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sol-camp-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
  position: relative;
  overflow: hidden;
  opacity: 0.35;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.sol-camp-tile.sol-tile-on {
  opacity: 1;
  transform: scale(1);
}
.sol-camp-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45));
}
.sol-camp-meta {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

/* Home “How it works” + “Campaigns” visuals (injected from partials/home-visual-embeds.html) */
.sol-home-visual {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
/* Connect embed: connector lines can extend slightly past the card */
.sol-home-visual[data-sol-embed="hiw-connect"] .hiw-stage.sol-hiw-stage-single {
  height: 520px;
  overflow: visible;
}
/* Media kit: clip to column (no overlap on text); scene stays one row — scaled widths, not wrap */
.sol-home-visual[data-sol-embed="hiw-mk"] .hiw-stage.sol-hiw-stage-single {
  height: 520px;
  overflow: hidden;
}
.sol-home-visual .hiw-mk-scene {
  flex-wrap: nowrap;
  gap: 10px;
  padding: 18px 10px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Slightly smaller than home so agency + arrow + preview fit side-by-side in the visual column */
.sol-home-visual .hiw-mk-agency,
.sol-home-visual .hiw-mk-preview {
  flex-shrink: 0;
  box-sizing: border-box;
}
.sol-home-visual .hiw-mk-agency {
  width: 178px;
}
.sol-home-visual .hiw-mk-preview {
  width: 252px;
  max-height: 420px;
}
.sol-home-visual .hiw-mk-arrow {
  flex-shrink: 0;
}
.sol-home-visual .hiw-mk-arrow svg {
  width: 32px;
  height: 20px;
}
/* Clip the slide-in detail panel (translateX) so it doesn’t sit beside the dashboard */
.sol-home-visual .sol-hiw-stage-outer--browser .hiw-stage.sol-hiw-stage-single--browser {
  height: 560px;
  overflow: hidden;
}
.sol-home-visual .camp-stage-wrap {
  margin: 0;
}
.sol-home-visual #sol-camp-stage {
  min-height: 380px;
}

.sol-cta {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border-top: 1px solid rgba(147, 51, 234, 0.12);
  padding: 56px 24px 72px;
  margin-top: 8px;
}
.sol-cta-inner {
  text-align: center;
}

@media (max-width: 900px) {
  .sol-step {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
}
