/* Taskr Automations — Services page */

/* Jump nav under hero */
.svc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.svc-jump a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.svc-jump a:hover { color: var(--text); border-color: rgba(124, 92, 255, 0.6); background: var(--accent-soft); }

/* Service blocks */
.svc-list { display: grid; gap: 28px; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  padding: 44px; border-radius: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 20, 31, 0.55) 100%);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  scroll-margin-top: 96px;
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 44px; right: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.7), rgba(34, 211, 238, 0.5), transparent);
}
.svc > * { min-width: 0; }
.svc--flip .svc-main { order: 2; }
.svc--flip .svc-side { order: 1; }

.svc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-top .icon { margin-bottom: 0; }
.svc-num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--dim); }
.svc h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-bottom: 14px; }
.svc-main > p { font-size: 1.05rem; max-width: 520px; }

.svc-label {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 14px;
}
.svc-main .svc-label { margin-top: 26px; }

.svc-side { display: grid; gap: 18px; align-content: start; }
.svc-panel {
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.svc-panel .check-list li { font-size: 0.97rem; margin-bottom: 10px; }
.svc-panel .check-list li:last-child, .example-list li:last-child { margin-bottom: 0; }
.example-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: 0.97rem;
}
.example-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

/* Visual: mini pipeline */
.viz { margin-top: 30px; }
.pipeline { display: flex; align-items: stretch; gap: 0; }
.pipe-node {
  flex: 1 1 0; min-width: 0; position: relative;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.pipe-node + .pipe-node { margin-left: 22px; }
.pipe-node + .pipe-node::before {
  content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pipe-node + .pipe-node::after {
  content: ""; position: absolute; left: -9px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-top: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); transform: rotate(45deg);
}
.pipe-kind { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.pipe-name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.pipe-node--ai { border-color: rgba(124, 92, 255, 0.55); background: var(--accent-soft); }
.pipe-node--ai .pipe-kind { color: #b8a6ff; }
.pipe-status {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
}
.pipe-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px var(--ok); animation: svc-pulse 2.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes svc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Visual: mock chat window */
.chat {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  max-width: 440px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chat-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
}
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.chat-title { font-size: 0.86rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.chat-sub { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--dim); }
.chat-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bubble {
  max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.45;
  overflow-wrap: anywhere;
}
.bubble--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble--bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-event {
  align-self: center; text-align: center; font-family: var(--mono); font-size: 0.68rem; color: var(--accent-2);
  padding: 5px 12px; border-radius: 999px; border: 1px dashed rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.06);
}

/* Visual: document extraction */
.extract { display: grid; grid-template-columns: minmax(0, 0.8fr) 28px minmax(0, 1.2fr); align-items: center; gap: 12px; }
.doc {
  background: #f3f5fa; border-radius: 8px; padding: 16px 14px; aspect-ratio: 3 / 3.7;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}
.doc span { display: block; height: 6px; border-radius: 3px; background: #c9cfdd; }
.doc span:nth-child(1) { width: 46%; height: 10px; background: #7c5cff; margin-bottom: 6px; }
.doc span:nth-child(2) { width: 82%; }
.doc span:nth-child(3) { width: 64%; }
.doc span:nth-child(4) { width: 90%; margin-top: 8px; }
.doc span:nth-child(5) { width: 90%; }
.doc span:nth-child(6) { width: 90%; }
.doc span:nth-child(7) { width: 38%; margin-top: auto; margin-left: auto; height: 9px; background: #6b7388; }
.extract-arrow { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); position: relative; }
.extract-arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -4.5px;
  border-top: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); transform: rotate(45deg);
}
.fields {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px;
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.5;
}
.fields div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.fields div:last-child { border-bottom: 0; }
.fields .k { color: var(--dim); flex-shrink: 0; }
.fields .v { color: var(--text); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.fields .v--ok { color: var(--ok); }

/* Engagement models */
.engage-grid { align-items: stretch; }
.engage { display: flex; flex-direction: column; }
.engage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.engage-head .icon { margin-bottom: 0; }
.engage .tag { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.06); }
.engage p { font-size: 0.98rem; }
.engage .check-list { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.engage .check-list li { font-size: 0.95rem; margin-bottom: 10px; }
.engage .check-list li:last-child { margin-bottom: 0; }
.engage--featured { border-color: rgba(124, 92, 255, 0.45); }
.pricing-note {
  margin: 34px auto 0; max-width: 760px; text-align: center;
  padding: 20px 26px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: rgba(255, 255, 255, 0.02);
}
.pricing-note p { margin: 0; font-size: 1rem; }
.pricing-note strong { color: var(--text); font-weight: 600; }
.pricing-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.faq a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 980px) {
  .svc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 34px; }
  .svc::before { left: 34px; right: 34px; }
  .svc--flip .svc-main, .svc--flip .svc-side { order: 0; }
  .svc-main > p { max-width: none; }
  .engage-grid.grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .svc { padding: 26px 20px; border-radius: 20px; }
  .svc::before { left: 20px; right: 20px; }
  .svc-panel { padding: 22px 18px; }
  .svc-jump { margin-top: 34px; gap: 8px; }
  .svc-jump a { font-size: 0.74rem; padding: 8px 12px; }
}
@media (max-width: 560px) {
  .pipeline { flex-direction: column; }
  .pipe-node { padding: 10px 12px; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .pipe-kind { margin-bottom: 0; flex: 0 0 62px; }
  .pipe-node + .pipe-node { margin-left: 0; margin-top: 20px; }
  .pipe-node + .pipe-node::before { left: 28px; top: -21px; width: 2px; height: 20px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .pipe-node + .pipe-node::after { left: 25px; top: -9px; margin-top: 0; transform: rotate(135deg); }
  .extract { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; }
  .doc { width: 130px; }
  .extract-arrow { width: 2px; height: 26px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .extract-arrow::after { right: auto; left: 50%; top: auto; bottom: 0; margin: 0 0 0 -4.5px; transform: rotate(135deg); }
  .fields { width: 100%; }
  .pricing-note { padding: 18px; }
}
