/* Services page — aligned with how-it-works / pipeline chrome (no emoji icons) */

body {
  padding-top: 70px;
  background: #f8fafc;
}

.services-container {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem 2rem;
  box-sizing: border-box;
}

.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-header h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.services-header p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.55;
}

/* Primary three service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

a.service-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card-link:hover,
a.service-card-link:focus-visible {
  border-color: #0891b2;
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.14);
  transform: translateY(-2px);
  outline: none;
}

a.service-card-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.35);
}

/* Minimal stroke icons (inline SVG) */
.ui-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 1rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  color: #0e7490;
  line-height: 1;
}

.service-icon .ui-icon {
  width: 1.4rem;
  height: 1.4rem;
}

a.service-card-link:hover .service-icon {
  background: linear-gradient(145deg, #cffafe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
  color: #0f766e;
}

.service-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.55rem;
  letter-spacing: -0.015em;
}

.service-card > p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

.service-features {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.4;
}

.service-features li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #0891b2;
  flex-shrink: 0;
}

.service-card .card-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0891b2;
  margin-top: auto;
}

a.service-card-link:hover .card-cta {
  color: #0e7490;
}

/* Function jump grid */
.function-section {
  margin: 0 0 2.75rem;
  padding: 1.5rem 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.function-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .function-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .function-grid { grid-template-columns: repeat(2, 1fr); }
  .function-section { padding: 1.15rem 1rem; }
}

@media (max-width: 420px) {
  .function-grid { grid-template-columns: 1fr; }
}

a.function-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-height: 72px;
  padding: 0.75rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
  box-sizing: border-box;
  min-width: 0;
}

a.function-card:hover,
a.function-card:focus-visible {
  border-color: #0891b2;
  background: #f0f9ff;
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.function-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.function-icon .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
}

a.function-card:hover .function-icon {
  background: #cffafe;
  border-color: #67e8f9;
  color: #0f766e;
}

.function-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

a.function-card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

a.function-card .function-desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.function-arrow {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.15s, transform 0.15s;
}

a.function-card:hover .function-arrow {
  color: #0891b2;
  transform: translateX(2px);
}

/* Detail sections */
.service-details {
  display: block;
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.service-details-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.service-details-content > p {
  margin: 0 0 1.15rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 40rem;
}

.service-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

a.service-details-item,
.service-details-item-static {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

a.service-details-item:hover,
a.service-details-item:focus-visible {
  border-color: #0891b2;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.08);
  outline: none;
}

.service-details-item-static {
  align-items: flex-start;
}

.service-step-num {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  min-width: 1.75rem;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.15rem;
}

a.service-details-item .service-step-num {
  margin-top: 0;
}

.service-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.service-sublinks a {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0e7490;
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #a5f3fc;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.service-sublinks a:hover,
.service-sublinks a:focus-visible {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #155e75;
  outline: none;
}

a.item-arrow-link {
  flex-shrink: 0;
  color: #94a3b8;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  margin-top: 0.15rem;
}

a.item-arrow-link:hover,
a.item-arrow-link:focus-visible {
  color: #0891b2;
  outline: none;
}

.service-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.service-details-item-icon {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.service-details-item-icon .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

a.service-details-item:hover .service-details-item-icon {
  background: #cffafe;
  border-color: #67e8f9;
  color: #0f766e;
}

.service-details-item-content {
  flex: 1;
  min-width: 0;
}

.service-details-item-content h4 {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.service-details-item-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.item-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  font-weight: 700;
}

a.service-details-item:hover .item-arrow {
  color: #0891b2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn-primary {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}

.btn-primary:hover {
  background: #0e7490;
  border-color: #0e7490;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  border-color: #0891b2;
  color: #0891b2;
}

.services-cta-band {
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0e7490 100%);
  border-radius: 14px;
  color: #fff;
}

.services-cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.services-cta-band p {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.15rem;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.services-cta-band .btn-primary {
  background: #fff;
  color: #0e7490;
  border-color: #fff;
}

.services-cta-band .btn-primary:hover {
  background: #ecfeff;
  box-shadow: none;
}

.services-cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.services-cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .services-container {
    margin-top: 1.25rem;
    padding: 0 1rem 1.5rem;
  }

  .service-card {
    padding: 1.25rem 1.1rem 1.1rem;
  }
}
