/* Service pages (/services/<slug>/ and its languages), on top of legal.css: the same
   header, footer, page grid and cards as the company pages, plus what a sales page
   needs (eyebrow, price line, actions, steps, cases, questions, closing call).
   Every text colour clears 4.5:1 on the surface it sits on, every size is rem and
   steps at breakpoints, never with a viewport term (type-scale-standard). */

/* the side: who it is for, the title, the price line and the two actions */
.svc-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
  /* it sits on the dotted, tinted top of the page (#EAE5DC at worst), where the plain
     accent ink measured 4.21:1: mixed toward the ink it clears 6:1 */
  font-size: .9375rem; font-weight: 700; color: color-mix(in srgb, var(--accent-ink) 70%, var(--ink)); letter-spacing: .01em;
}
.svc-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.svc-price {
  margin-top: 1.25rem; max-width: 36rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-weight: 700; color: var(--ink); line-height: 1.5;
}
/* the one marked fragment of a paragraph reads in full ink, not in the paragraph's softer one */
.lead strong, .card strong { color: var(--ink); font-weight: 700; }
.svc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .svc-actions .btn { flex: 1 1 100%; } }
.svc-pay { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

/* how a project runs: numbered steps joined by a thread */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 1.0625rem; top: 1.25rem; bottom: 1.25rem; width: 2px;
  background: linear-gradient(var(--accent), var(--sun) 50%, var(--sky)); opacity: .45; border-radius: 2px;
}
.steps li { position: relative; display: grid; grid-template-columns: 2.125rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.step-n {
  display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent); color: var(--ink);
  font: 800 .9375rem/1 var(--display);
}
.steps h3 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; padding-top: .3rem; }
.steps p { margin-top: .25rem; color: var(--ink-soft); line-height: 1.55; }

/* apps we built: icon, name, what it is, what we built, a link */
.cases { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.case {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--canvas);
}
.case-icon { width: 3.5rem; height: 3.5rem; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(14, 26, 43, .5); }
.case h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.case-tag { margin-top: .15rem; color: var(--ink-soft); }
.case-label { margin-top: .75rem; font-size: .875rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .01em; }
.card .case-built { margin-top: .2rem; color: var(--ink); line-height: 1.55; }
.case-built a {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; text-decoration-color: var(--accent);
}
.case-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .35rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
}
.case-link svg { width: 1.05em; height: 1.05em; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .case-link:hover .ico-arrow { translate: 4px 0; }
  .case-built a:hover { text-decoration-color: var(--ink); }
}

/* questions: every answer visible, nothing to open */
.qa { margin: 0; display: grid; }
.qa-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.qa-item:first-child { border-top: 0; padding-top: 0; }
.qa dt { font: 800 1.0625rem/1.35 var(--display); color: var(--ink); }
.qa dd { margin: .35rem 0 0; color: var(--ink-soft); line-height: 1.6; }

/* the closing call, on night */
.svc-end { background: var(--night); border-color: var(--night); color: var(--on-night-quiet); position: relative; overflow: hidden; }
.svc-end h2 { color: var(--on-night); }
.card.svc-end p { color: var(--on-night-quiet); max-width: 34rem; }
.svc-end .btn { margin-top: 1.25rem; }
.svc-end::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 42px rgba(255, 255, 255, .03); pointer-events: none;
}
