/* ─── Support Triage Landing Page ─────────────────────────────────────────── */

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.st-hero {
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}
.st-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.st-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.st-hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1.2rem 0 2rem;
}
.st-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.st-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
}
.st-stat {
  padding: 1.5rem 2.5rem;
  text-align: center;
  flex: 1;
  min-width: 160px;
}
.st-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  font-family: var(--mono);
  margin-bottom: 0.2rem;
}
.st-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.st-stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Problem section ────────────────────────────────────────────────────────── */
.st-problem-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.st-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.st-problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.st-problem-card.danger {
  border-left: 3px solid var(--danger);
}
.st-problem-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,68,68,0.1);
  border-radius: var(--radius);
  color: var(--danger);
  flex-shrink: 0;
}
.st-problem-card h3 {
  font-size: 1rem;
  margin: 0;
}
.st-problem-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ─── Flow (how it works) ────────────────────────────────────────────────────── */
.st-flow {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 680px;
  margin: 2.5rem auto 0;
}
.st-flow-step {
  display: flex;
  gap: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.st-flow-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-2);
  font-family: var(--mono);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}
.st-flow-content {
  flex: 1;
  min-width: 0;
}
.st-flow-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.st-flow-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.st-flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.st-flow-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}
.st-flow-arrow {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--border-2);
}

/* ─── Code split ─────────────────────────────────────────────────────────────── */
.st-code-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.st-code-panel {
  min-width: 0;
}
.st-code-panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.st-schema-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.st-schema-note svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Schema examples ────────────────────────────────────────────────────────── */
.st-schema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.st-schema-example-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

/* ─── Benefits ───────────────────────────────────────────────────────────────── */
.st-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.st-benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.st-benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.st-benefit-icon.accent {
  background: rgba(99,102,241,0.12);
  color: var(--accent);
}
.st-benefit-icon.success {
  background: rgba(16,185,129,0.12);
  color: var(--success);
}
.st-benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.st-benefit-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.st-benefit-metric {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: auto;
}

/* ─── Integrations ───────────────────────────────────────────────────────────── */
.st-integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.st-integration-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
}
.st-integration-card:hover {
  border-color: var(--accent);
}
.st-integration-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.st-integration-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.st-integration-logo.zendesk    { background: #03363d; }
.st-integration-logo.jira       { background: #0052cc; }
.st-integration-logo.freshdesk  { background: #25c16f; }
.st-integration-logo.intercom   { background: #1f8feb; }
.st-integration-logo.servicenow { background: #81b5a1; }
.st-integration-logo.n8n        { background: #ea4b71; font-size: 0.75rem; }
.st-integration-header h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
}
.st-integration-sub {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.3;
}
.st-integration-card > p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}
.st-integration-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.st-integration-step {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.st-integration-step > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── Architecture diagram ───────────────────────────────────────────────────── */
.st-arch-diagram {
  margin-top: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.st-arch-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 700px;
}
/* Columns */
.st-arch-col {
  display: flex;
  flex-direction: column;
}
.st-arch-col-wide   { flex: 1; }
.st-arch-col-narrow { flex-shrink: 0; }
/* Label row inside each column — same height across all columns */
.st-arch-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: center;
  padding-bottom: 0.5rem;
  height: 1.6rem;            /* fixed height so all labels row-align */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* Node area — fills remaining column height */
.st-arch-col-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
/* Center single nodes vertically against multi-node columns */
.st-arch-col-nodes-centered {
  justify-content: center;
}
/* Arrows — stretch to full column height, SVG centered inside */
.st-arch-arrow-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.6rem;       /* offset past the label row */
  color: var(--border-2);
  flex-shrink: 0;
}
/* Nodes */
.st-arch-node {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}
.st-arch-node span:not(.brand-ai) {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 0.1rem;
}
.st-arch-node.source {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.st-arch-node.automation {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 0.75rem 1rem;
  min-width: 120px;
}
.st-arch-node.classifier {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.35);
  color: var(--text);
  padding: 0.75rem 1rem;
  min-width: 130px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.st-arch-node.classifier .brand-ai { color: var(--accent); }
.st-arch-node.dest {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.st-arch-node.dest.urgent {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: var(--danger);
}

/* ─── Blog callout ───────────────────────────────────────────────────────────── */
.st-blog-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}
.st-blog-callout-text { flex: 1; min-width: 0; }
.st-blog-callout-text h3 { font-size: 1.1rem; margin: 0.35rem 0 0.5rem; }
.st-blog-callout-text p  { font-size: 0.9rem; margin: 0; max-width: 560px; }

/* ─── CTA buttons ────────────────────────────────────────────────────────────── */
.st-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .st-integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .st-benefits-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .st-hero { padding: 3.5rem 0 2.5rem; }
  .st-problem-grid  { grid-template-columns: 1fr; }
  .st-code-split    { grid-template-columns: 1fr; }
  .st-schema-grid   { grid-template-columns: 1fr; }
  .st-benefits-grid { grid-template-columns: 1fr; }
  .st-integrations-grid { grid-template-columns: 1fr; }
  .st-stat-divider  { width: 100%; height: 1px; }
  .st-hero-stats    { flex-direction: column; }
  .st-arch-row      { gap: 0.5rem; }
}
