/* ============================================================
   ParenthLabs — Services Page
   ============================================================ */

/* ── Service blocks (alternating layout) ────────────────────── */
.svc-blocks { padding: var(--sec-py) 0; }

.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.svc-block:last-child { border-bottom: none; }
.svc-block.flip .svc-block-visual { order: -1; }

.svc-block-content .eyebrow { margin-bottom: 12px; }
.svc-block-content h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-bottom: 14px;
}
.svc-block-content > p {
  font-size: .9875rem;
  line-height: 1.82;
  margin-bottom: 26px;
}

.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.feat-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-lite);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat-check::after { content: '✓'; }
.feature-item span { line-height: 1.55; }

/* ── Service visual cards ────────────────────────────────────── */
.svc-block-visual { position: relative; }

.svc-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-md);
}

/* Mac-style chrome header */
.svc-vis-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.chrome-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.chrome-dot.red    { background: #FF5F57; }
.chrome-dot.yellow { background: #FEBC2E; }
.chrome-dot.green  { background: #28C840; }
.chrome-title {
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: auto;
  font-weight: 500;
}

/* Chat UI */
.chat-ui { display: flex; flex-direction: column; gap: 8px; }

.chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: 14px;
}
.chat-msg.bot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-h);
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--accent);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}
.chat-meta {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.chat-meta.user-meta { text-align: right; }

.typing-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 13px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}
.typing-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typBounce 1.3s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: .2s; }
.typing-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes typBounce {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* Automation flow */
.flow-ui { display: flex; flex-direction: column; gap: 0; }

.flow-node {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.flow-conn {
  width: 2px; height: 12px;
  background: var(--border);
  margin-left: 24px;
}
.node-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--accent-lite);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}
.node-info { flex: 1; }
.node-name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-h);
  display: block;
}
.node-desc { font-size: .72rem; color: var(--text-muted); }
.node-status {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.node-status.done    { background: #DCFCE7; color: #166534; }
.node-status.running { background: #FEF3C7; color: #92400E; }
.node-status.pending { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* Code preview */
.code-ui {
  background: #0F172A;
  border-radius: var(--r-md);
  padding: 20px;
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: .78rem;
  line-height: 1.85;
  color: #94A3B8;
  overflow-x: auto;
}
.ck  { color: #7C3AED; }   /* keyword */
.cf  { color: #38BDF8; }   /* function */
.cs  { color: #4ADE80; }   /* string */
.cv  { color: #FB923C; }   /* variable */
.cc  { color: #475569; font-style: italic; }   /* comment */

/* ── Tech Stack ─────────────────────────────────────────────── */
.tech-sec {
  background: var(--bg-alt);
  padding: var(--sec-py) 0;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 44px;
}
.tech-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.tech-card:hover {
  box-shadow: var(--sh-sm);
  border-color: rgba(15,23,175,.18);
}
.tech-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.tech-name {
  font-family: var(--font-d);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-h);
  display: block;
}
.tech-cat { font-size: .72rem; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .svc-block {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }
  .svc-block.flip .svc-block-visual { order: 0; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
}
