/* ============================================================
   Service-page layout (the "Agent Improvement Sprint" template, Sept 2026)
   Shared by every /services/<build> page. Everything is prefixed .svc- and
   uses the tokens from styles.css, so branding stays in one place.
   ============================================================ */
.svc-hero { text-align: center; padding-bottom: 3rem; }
.svc-hero h1 { max-width: none; margin: 1.5rem auto 1.5rem; font-weight: 700; }
/* Every service H1 carries one <br> so it sits on exactly two lines from
   tablet up; on a phone the break is dropped and the heading wraps naturally. */
@media (max-width: 639px) { .svc-hero h1 br { display: none; } }
.svc-hero .lead { color: var(--text-secondary); max-width: 60ch; margin: 0 auto 2.25rem; }
.svc-hero .hero-ctas { justify-content: center; }
.svc-accent { color: var(--orange); }
.svc-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem; border: 1px solid rgba(255,91,26,0.55); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}
.svc-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange-glow); }
.svc-strap { margin-top: 1.75rem; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--text-faint); }

.svc-mono { font-family: var(--font-mono); }
.svc-panel {
  background: var(--bg-element); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: left;
}
.svc-panel--hot { border-color: rgba(255,91,26,0.6); box-shadow: 0 0 40px var(--orange-glow-soft); }

/* Hero: baseline → improved → production */
.svc-stages { display: grid; gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 900px) { .svc-stages { grid-template-columns: repeat(3, 1fr); } }
.svc-stage-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); }
.svc-panel--hot .svc-stage-head span:first-child { color: var(--orange); }
.svc-bar-row { margin-bottom: 0.9rem; }
.svc-bar-row:last-child { margin-bottom: 0; }
.svc-bar-label { display: flex; justify-content: space-between; font-size: 0.9375rem; margin-bottom: 0.4rem; }
.svc-bar-label .svc-mono { font-size: 0.8125rem; color: var(--text-muted); }
.svc-up { color: #34D399 !important; }
.svc-bar { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.svc-bar i { display: block; height: 100%; background: var(--text-faint); border-radius: 2px; }
.svc-panel--hot .svc-bar i { background: var(--orange); }
.svc-kv { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.875rem; padding: 0.35rem 0; }
.svc-kv span:last-child { color: var(--text-muted); }
.svc-ok { color: #34D399 !important; }
.svc-warn { color: var(--orange-bright) !important; }
.svc-alert {
  margin-top: 0.9rem; padding: 0.6rem 0.8rem; border-radius: var(--radius);
  background: rgba(255,91,26,0.1); border: 1px solid rgba(255,91,26,0.25);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--orange-bright);
}
.svc-illustrative { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); text-align: center; }

/* Everything you need — list + detail */
.svc-split { display: grid; gap: 2.5rem; align-items: start; }
/* The pre-formatted code sample would otherwise set the track's min width. */
.svc-split > * { min-width: 0; }
@media (min-width: 960px) { .svc-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.svc-split h2 { margin-bottom: 2rem; }
.svc-list { border-top: 1px solid var(--border); }
.svc-list button {
  width: 100%; display: flex; align-items: center; gap: 1.25rem; text-align: left;
  padding: 1.15rem 0.9rem; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 1.0625rem; transition: color var(--transition), background var(--transition);
}
.svc-list button .svc-mono { font-size: 0.75rem; color: var(--text-faint); }
.svc-list button::after { content: '→'; margin-left: auto; color: var(--orange); opacity: 0; transition: opacity var(--transition); }
.svc-list button:hover { color: var(--text-primary); }
.svc-list button[aria-selected="true"] { color: var(--text-primary); font-weight: 600; background: rgba(255,255,255,0.02); }
.svc-list button[aria-selected="true"]::after { opacity: 1; }
.svc-detail { padding: 2rem; }
.svc-detail + .svc-detail { margin-top: 1rem; }
.svc-detail .svc-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--orange); }
.svc-detail h3 { margin: 0.9rem 0 1rem; }
.svc-detail p { color: var(--text-secondary); }
.svc-code {
  margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--radius);
  background: var(--bg-deep); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.85; color: var(--text-secondary);
  white-space: pre; overflow-x: auto;
}
.svc-code .svc-file { display: block; color: var(--text-faint); font-size: 0.75rem; margin-bottom: 0.4rem; }

/* Today / after four weeks */
.svc-centre { text-align: center; max-width: 60rem; margin-inline: auto; }
.svc-centre p { color: var(--text-secondary); font-size: 1.0625rem; margin-top: 1.25rem; }
.svc-compare { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 900px) { .svc-compare { grid-template-columns: 1fr 1fr; } }
.svc-compare .svc-panel { padding: 2rem; }
.svc-compare ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.svc-compare li { display: flex; gap: 0.75rem; color: var(--text-secondary); }
.svc-compare li::before { content: '—'; color: var(--text-faint); flex: none; }
.svc-compare .svc-panel--hot li { color: var(--text-primary); }
.svc-compare .svc-panel--hot li::before { content: '✓'; color: #34D399; }
.svc-kicker { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.svc-panel--hot .svc-kicker { color: var(--orange); }

/* Method cards */
.svc-method { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 900px) { .svc-method { grid-template-columns: 1fr 1fr; } }
.svc-mcard {
  display: flex; flex-direction: column;
  border: 1px solid rgba(124,92,255,0.3); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(37,64,232,0.08), rgba(124,92,255,0.06)), var(--bg-raised);
  box-shadow: 0 20px 60px rgba(37,64,232,0.08);
}
.svc-mvis {
  flex: 0 0 240px; box-sizing: border-box; padding: 1.75rem; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(124,92,255,0.2); font-family: var(--font-mono); font-size: 0.8125rem;
}
.svc-mbody { flex: 1 1 auto; padding: 2rem; }
.svc-mbody .svc-step { display: flex; align-items: baseline; gap: 0.9rem; }
.svc-mbody .svc-step b { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--orange); letter-spacing: -0.03em; }
.svc-mbody .svc-step img { width: 44px; height: auto; align-self: center; }
.svc-mbody .svc-step span { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); }
.svc-mbody h3 { margin: 1rem 0 0.9rem; font-weight: 700; }
.svc-mbody p { color: var(--text-secondary); font-size: 0.9375rem; }
.svc-chip { padding: 0.35rem 0.75rem; border-radius: var(--radius); background: rgba(255,91,26,0.1); color: var(--orange-bright); }
.svc-chips { display: flex; flex-direction: column; gap: 0.5rem; }
.svc-decomp { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.svc-box { padding: 0.6rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font-display); }
.svc-arrow { color: var(--orange); }
.svc-rows { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.svc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.9rem; border-radius: var(--radius); background: rgba(124,92,255,0.1); }
.svc-rows span:last-child { color: var(--text-muted); }
.svc-rows .svc-judge { color: var(--orange-bright) !important; }
.svc-table { width: 100%; border-collapse: collapse; }
.svc-table th { text-align: left; font-weight: 400; color: var(--text-faint); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border); }
.svc-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border-faint); }
.svc-x { color: var(--orange-bright); }
.svc-gate { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.svc-gate .svc-box { font-family: var(--font-mono); font-size: 0.8125rem; }
.svc-gate .svc-box--hot { border-color: var(--orange); color: var(--orange-bright); }
.svc-outcomes { display: flex; flex-direction: column; gap: 0.5rem; }
.svc-ship { padding: 0.35rem 0.8rem; border-radius: var(--radius); background: rgba(52,211,153,0.12); color: #34D399; }
.svc-block { padding: 0.35rem 0.8rem; border-radius: var(--radius); background: rgba(255,91,26,0.12); color: var(--orange-bright); }

/* How the sprint runs */
.svc-runs { background: linear-gradient(180deg, rgba(255,91,26,0.05), rgba(255,91,26,0.02)), var(--bg-raised); border-block: 1px solid var(--border); }
.svc-runs .svc-strapline { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-secondary); }
.svc-timeline { display: grid; gap: 1rem; margin-top: 3rem; align-items: stretch; }
@media (min-width: 960px) { .svc-timeline { grid-template-columns: 1fr auto 1.8fr auto 1fr; } }
.svc-timeline .svc-panel { padding: 1.75rem; }
.svc-timeline h3 { margin: 0.6rem 0 0.6rem; font-weight: 700; }
.svc-timeline p { color: var(--text-secondary); font-size: 0.9375rem; }
.svc-tarrow { display: none; align-self: center; color: var(--orange); font-size: 1.25rem; }
@media (min-width: 960px) { .svc-tarrow { display: block; } }

/* What you walk away with */
.svc-walk { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .svc-walk { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }
.svc-walk > div:first-child p { color: var(--text-secondary); margin-top: 1.25rem; }
.svc-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (min-width: 768px) { .svc-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-cells div { padding: 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* minmax(0,…) + hyphens: a long single word ("Observability") must wrap inside
   its cell on a phone rather than widen the grid past the viewport. */
.svc-cells b { display: block; hyphens: auto; overflow-wrap: anywhere; font-size: clamp(1.25rem, 2.6vw, 2.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.svc-cells div:first-child b { color: var(--orange); }
.svc-cells span { font-size: 0.875rem; color: var(--text-muted); }

/* Client story */
.svc-story { display: grid; gap: 2rem; align-items: center; padding: 2.5rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
@media (min-width: 960px) { .svc-story { grid-template-columns: 1.3fr 1fr; } }
.svc-story h3 { margin-top: 0.9rem; font-weight: 700; }
.svc-story p { color: var(--text-secondary); margin-top: 1rem; }
.svc-story .card-link { margin-top: 1.25rem; }
.svc-metric { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.8; }
.svc-metric .svc-file { display: block; color: var(--text-faint); font-size: 0.75rem; margin-bottom: 0.6rem; }
.svc-metric .svc-eq { color: var(--text-primary); }
.svc-metric .svc-eq b { color: var(--orange); font-weight: 500; }
.svc-metric dl { margin-top: 0.9rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; color: var(--text-muted); }
.svc-metric dt { color: var(--text-faint); }
.svc-draft { display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 0.625rem; color: var(--text-faint); }

.svc-final h2 { max-width: 22ch; margin-inline: auto; }
.svc-final .cta-buttons { justify-content: center; }

/* Stage deliverable line on method cards (e.g. strategy's "Output: …") */
.svc-output { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--orange-bright); }

/* ── Service-specific visuals (method cards + tab samples) ─────────────
   Each build page illustrates its own mechanics rather than the
   reliability page's metrics, so the vocabulary is wider here. All of it
   has to fit the 240px .svc-mvis band. */
.svc-vwrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.svc-vcap { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--text-faint); text-align: center; }
.svc-mvis .svc-bar i { background: var(--orange); }
.svc-vbars { width: 100%; }
.svc-vbars .svc-bar-row { margin-bottom: 0.7rem; }
.svc-vbars .svc-bar-label { font-size: 0.875rem; }
.svc-map { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.svc-map div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-primary); min-width: 0; }
.svc-map div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-map b { color: var(--orange); font-weight: 500; }
.svc-hyp { width: 100%; padding: 1rem 1.2rem; border: 1px solid rgba(255,91,26,0.45); border-radius: var(--radius); background: rgba(255,91,26,0.05); }
.svc-hyp p { font-family: var(--font-display); font-size: 0.9375rem; color: var(--text-primary); }
.svc-hyp-rows { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.svc-hyp em { font-style: normal; color: var(--orange-bright); }
.svc-phases { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.svc-phases div { display: grid; grid-template-columns: 8rem 1fr auto; gap: 0.75rem; align-items: center; }
.svc-phases i { display: block; height: 8px; border-radius: 2px; background: var(--violet); }
.svc-phases i.hot { background: var(--orange); }
.svc-phases span:last-child { color: var(--text-faint); }
.svc-decisions { width: 100%; display: flex; flex-direction: column; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.8rem; }
.svc-decisions div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.9rem; border-radius: var(--radius); background: rgba(124,92,255,0.1); }
.svc-chain { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.svc-chain .svc-box { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.45rem 0.8rem; }
.svc-chain .svc-box--hot { border-color: var(--orange); color: var(--orange-bright); }
.svc-window { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; font-size: 0.8125rem; background: var(--bg-deep); }
.svc-window header { padding: 0.4rem 0.8rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-faint); }
.svc-window .q, .svc-window .a { font-family: var(--font-display); padding: 0.6rem 0.8rem; }
.svc-window .q { color: var(--text-muted); border-bottom: 1px solid var(--border-faint); }
.svc-window .a { color: var(--text-primary); }
.svc-window .src { display: block; margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.6875rem; color: #34D399; }
.svc-wire { width: 100%; display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem; }
.svc-wire > div { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.svc-wire .lbl { grid-column: 1 / -1; border: none; padding: 0; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-faint); }
.svc-wire span { display: block; height: 8px; border-radius: 2px; background: var(--border-strong); }
.svc-wire span.w { width: 60%; }
.svc-vsheet { width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-deep); }
.svc-vsheet .svc-file { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.svc-vsheet dl, .svc-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.1rem; font-size: 0.8125rem; }
.svc-vsheet dt, .svc-sheet dt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); padding-top: 0.15rem; }
.svc-vsheet dd, .svc-sheet dd { color: var(--text-secondary); }
.svc-sheet { margin-top: 2rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--bg-deep); border: 1px solid var(--border); }
.svc-sheet .svc-file { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); margin-bottom: 0.6rem; }
.svc-sheet dd { font-size: 0.9375rem; }

/* ── Offer card (strategy only): the fixed fee and the credit, in the hero ── */
.svc-offer { max-width: 760px; margin: 1.5rem auto 0; padding: 1.5rem 1.75rem; text-align: center;
  border: 1px solid rgba(255,91,26,0.55); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,91,26,0.12), rgba(124,92,255,0.08)), var(--bg-element);
  box-shadow: 0 0 40px var(--orange-glow-soft); }
.svc-offer-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (min-width: 640px) { .svc-offer-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc-offer-facts b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.svc-offer-facts div:first-child b { color: var(--orange); }
.svc-offer-facts span { display: block; margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.svc-offer p { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255,91,26,0.25); font-size: 1rem; color: var(--text-secondary); }
.svc-offer p strong { color: var(--orange-bright); }

/* ── Journey cards (the build pages' hero): You bring → We build → You get ──
   Plain English in the display font, not a fake dashboard. */
.svc-jcard { background: var(--bg-element); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; text-align: left; display: flex; flex-direction: column; }
.svc-jcard--hot { border-color: rgba(255,91,26,0.6); box-shadow: 0 0 40px var(--orange-glow-soft); }
.svc-jhead { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.svc-jhead span:first-child { color: var(--text-secondary); }
.svc-jcard--hot .svc-jhead span:first-child { color: var(--orange); }
.svc-jcard h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; font-weight: 700; margin-bottom: 0.9rem; }
.svc-jcard ul { display: flex; flex-direction: column; gap: 0.55rem; }
.svc-jcard li { display: flex; gap: 0.65rem; font-size: 0.9375rem; line-height: 1.45; color: var(--text-secondary); }
.svc-jcard li::before { flex: none; font-family: var(--font-mono); color: var(--text-faint); }
.svc-jcard li.svc-j-dash::before { content: '—'; }
.svc-jcard li.svc-j-ok::before { content: '✓'; color: #34D399; }
.svc-jcard li.svc-j-arrow::before { content: '→'; color: var(--orange); }
.svc-jcard--hot li { color: var(--text-primary); }
