/* Taskr Automations — Solutions page */

/* ---------- Hero ---------- */
.sol-hero .lead { margin-bottom: 30px; }
.sol-hero h1 { max-width: 880px; }

.hero-flow {
  margin-top: 56px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 20, 31, 0.9) 0%, rgba(17, 20, 31, 0.55) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hero-flow-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--dim);
}
.hero-flow-head strong { color: var(--text); font-weight: 500; letter-spacing: 0; font-size: 0.86rem; }
.hero-flow-status { display: inline-flex; align-items: center; gap: 8px; }
.hero-flow-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

/* ---------- Pipeline rows ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.flow-step {
  position: relative; min-width: 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025);
  color: var(--text); font-size: 0.92rem; line-height: 1.5;
}
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  width: 16px; text-align: center; color: var(--dim); font-size: 1rem; line-height: 1;
}
.flow-label {
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.flow-label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.flow-step--trigger { border-color: rgba(124, 92, 255, 0.3); background: rgba(124, 92, 255, 0.07); }
.flow-step--trigger .flow-label { color: #b8a6ff; }
.flow-step--ai { border-color: rgba(79, 140, 255, 0.3); background: rgba(79, 140, 255, 0.07); }
.flow-step--ai .flow-label { color: #8db4ff; }
.flow-step--result { border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.06); }
.flow-step--result .flow-label { color: var(--ok); }

/* ---------- Teams intro + legend ---------- */
.teams-intro { padding-bottom: 40px; }
.teams-intro .section-head { margin-bottom: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.92rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-dot--trigger { background: #7c5cff; }
.legend-dot--ai { background: #4f8cff; }
.legend-dot--result { background: var(--ok); }

/* ---------- Sticky team sub-nav ---------- */
.team-nav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(7, 8, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--border);
}
.team-nav ul {
  display: flex; gap: 8px; padding: 12px 0; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.team-nav ul::-webkit-scrollbar { display: none; }
.team-nav li { flex-shrink: 0; }
.team-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.team-nav a:hover, .team-nav a:focus-visible {
  color: var(--text); border-color: rgba(124, 92, 255, 0.6); background: var(--accent-soft);
}
.team-nav svg {
  width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Team sections ---------- */
.team { padding: 88px 0; scroll-margin-top: 128px; border-bottom: 1px solid var(--border); }
.team:nth-of-type(even) { background: var(--bg-2); }
.team-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
.team-copy { position: sticky; top: 160px; }
.team-copy h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.team-copy > p { margin-bottom: 26px; }
.team-kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 14px;
}
.pain-list li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--muted); font-size: 0.98rem; }
.pain-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em; width: 14px; height: 2px; border-radius: 2px;
  background: #f87171; opacity: 0.85;
}
.flow-stack { display: grid; gap: 16px; }
.flow-card {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 20, 31, 0.6) 100%);
  transition: border-color .25s ease;
}
.flow-card:hover { border-color: rgba(124, 92, 255, 0.4); }
.flow-card h4 { font-size: 1.05rem; margin-bottom: 14px; letter-spacing: -0.01em; }

/* ---------- Industries ---------- */
.industry-grid .card { padding: 26px; }
.industry-grid .card h3 { font-size: 1.12rem; }
.industry-grid .card p { font-size: 0.95rem; }
.industry-note { margin: 34px 0 0; font-size: 0.95rem; color: var(--dim); max-width: 720px; }
.industry-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Before / After ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.compare-col { border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); position: relative; }
.compare-col--before { background: rgba(255, 255, 255, 0.015); border-style: dashed; border-color: var(--border-strong); }
.compare-col--after {
  background: radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(124, 92, 255, 0.16), transparent 55%), var(--surface);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.compare-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.compare-col--before .compare-badge { color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.compare-col--after .compare-badge { color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.compare-col h3 { font-size: 1.4rem; margin-bottom: 24px; }
.day li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.day li:last-child { padding-bottom: 0; }
.day-when { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.day p { margin: 0; font-size: 0.97rem; }
.compare-col--before .day p { color: var(--dim); }
.compare-col--after .day p { color: #c9d0e0; }

/* ---------- CTA ---------- */
.cta-band .btn-row { justify-content: center; }
.cta-mail { margin: 22px auto 0 !important; font-size: 0.95rem !important; color: var(--dim); }
.cta-mail a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-copy { position: static; }
  .industry-grid.grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .team { padding: 60px 0; scroll-margin-top: 124px; }
  .teams-intro { padding-bottom: 32px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col { padding: 24px 20px; }
  .hero-flow { margin-top: 40px; padding: 18px; }
  .industry-grid.grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-step:not(:last-child)::after {
    content: "↓"; right: auto; left: 20px; top: auto; bottom: -22px; transform: none;
  }
  .flow-card { padding: 18px; }
  .day li { grid-template-columns: 1fr; gap: 4px; }
  .cta-band .btn { white-space: normal; text-align: center; }
}
