/* ============================================================
   BSE Automation Studio: service and case-study page components
   services.css v1 (14 Nov 2026)
   Loaded after main.css on:
     /lead-follow-up-automation, /enquiry-to-quote-automation,
     /zapier-consultant-australia, /case-studies/the-cart-co,
     /zapier-xero-integration (diagram only), / (scope graphic only).
   Diagrams are plain HTML lists so every label stays readable text.
   Status is shown with words and icons, never colour alone.
   ============================================================ */

/* ─── Hero ───────────────────────────────────────────────── */
.svc-hero {
    background: var(--warm-50);
    padding: var(--sp-12) 0 var(--sp-10);
    position: relative;
    overflow: hidden;
}
.svc-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(232,64,16,0.06) 0%, transparent 65%);
    pointer-events: none;
}
.svc-hero .container { position: relative; }
.svc-hero h1 { max-width: 20ch; font-size: clamp(2.125rem, 4.6vw, 3.25rem); }
.svc-hero .lead { max-width: 60ch; margin-top: var(--sp-3); }
.svc-hero p + p { margin-top: var(--sp-2); }
.svc-hero-body { max-width: 62ch; color: var(--text-700); }
.svc-cta-row {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--sp-5);
}
.svc-text-link {
    color: var(--text-900);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-underline-offset: 4px;
    padding: 12px 4px;
}
.svc-text-link:hover { color: var(--orange); }
.svc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px var(--sp-3);
    margin-top: var(--sp-4);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-400);
}
.svc-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.svc-meta a:hover { color: var(--text-900); }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.svc-crumbs { margin-bottom: var(--sp-3); }
.svc-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-400);
}
.svc-crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--text-200); }
.svc-crumbs a { color: var(--text-400); text-decoration: underline; text-underline-offset: 3px; }
.svc-crumbs a:hover { color: var(--text-900); }
.svc-crumbs [aria-current] { color: var(--text-700); font-weight: 500; }

/* ─── Sections and prose ─────────────────────────────────── */
.svc-section { padding: var(--sp-12) 0; }
.svc-section--tight { padding: var(--sp-8) 0; }
.svc-prose { max-width: 70ch; }
.svc-prose > h2 { margin-bottom: var(--sp-3); }
.svc-prose > h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-1); font-size: 1.25rem; }
.svc-prose > p { margin-bottom: var(--sp-2); }
.svc-prose > p:last-child { margin-bottom: 0; }
.svc-prose a:not(.btn) {
    color: var(--orange-h);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.svc-prose ul.svc-bullets,
.svc-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: var(--sp-2) 0 var(--sp-3);
}
.svc-bullets li {
    position: relative;
    padding-left: 26px;
    line-height: 1.6;
}
.svc-bullets li::before {
    content: '';
    position: absolute;
    left: 4px; top: 0.6em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
}
.svc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
}

/* ─── Symptom questions ─────────────────────────────────── */
.svc-questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}
.svc-questions li {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    font-weight: 600;
    color: var(--text-900);
    line-height: 1.45;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.svc-questions li span[aria-hidden] {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--orange-10);
    color: var(--orange-h);
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 800;
}

/* ─── Numbered stages ────────────────────────────────────── */
.svc-stages { display: flex; flex-direction: column; gap: var(--sp-3); counter-reset: stage; }
.svc-stage {
    counter-increment: stage;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4) var(--sp-4) var(--sp-4) 88px;
}
.svc-stage::before {
    content: counter(stage);
    position: absolute;
    left: var(--sp-4); top: var(--sp-4);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 6px rgba(232,64,16,0.1);
}
.svc-stage h3 { font-size: 1.125rem; margin-bottom: 8px; }
.svc-stage p { font-size: 0.9375rem; }
.svc-stage p + p { margin-top: 10px; }
.svc-stage a { color: var(--orange-h); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Tables ─────────────────────────────────────────────── */
.svc-table-wrap { overflow-x: auto; margin-top: var(--sp-4); border-radius: var(--r-lg); }
.svc-table-wrap:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.svc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.svc-table caption {
    caption-side: top;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-900);
    padding-bottom: var(--sp-2);
}
.svc-table th {
    background: var(--warm-100);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5F5F75;
    padding: 14px 18px;
    text-align: left;
}
.svc-table td {
    padding: 16px 18px;
    font-size: 0.9375rem;
    color: var(--text-700);
    border-top: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
}
.svc-table td:first-child { font-weight: 600; color: var(--text-900); }
.svc-note {
    font-size: 0.875rem;
    color: #5F5F75;
    margin-top: var(--sp-2);
    line-height: 1.6;
}

/* ─── Callouts ───────────────────────────────────────────── */
.svc-callout {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    margin-top: var(--sp-4);
}
.svc-callout h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.svc-callout p { font-size: 0.9375rem; }
.svc-callout p + p { margin-top: 10px; }
.svc-callout--muted { background: var(--warm-50); border-left-color: var(--text-200); }
.svc-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-10);
    border-radius: 100px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

/* ─── Cards (requirements, options) ─────────────────────── */
.svc-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
}
.svc-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
}
.svc-card h3 { font-size: 1.0625rem; margin-bottom: 8px; line-height: 1.35; }
.svc-card p { font-size: 0.9375rem; line-height: 1.6; }
.svc-card p + p { margin-top: 10px; }
.svc-card a { color: var(--orange-h); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Figures and diagrams ───────────────────────────────── */
.svc-figure {
    margin: var(--sp-5) 0 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.svc-figure--warm { background: var(--warm-50); }
.svc-figure figcaption {
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
    border-top: 1px dashed var(--border);
    font-size: 0.8125rem;
    color: #5F5F75;
    line-height: 1.55;
}
.svc-figure-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5F5F75;
    background: var(--warm-100);
    border-radius: 100px;
    padding: 4px 10px;
    margin-bottom: var(--sp-3);
}

/* Before / after result (case studies). Two columns with an arrow between,
   stacked with a down arrow on narrow screens. Labels use words, not colour alone. */
.ba {
    margin: var(--sp-5) 0 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.ba > h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.ba-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--sp-3);
}
.ba-col {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
}
.ba-col--before { background: var(--warm-50); }
.ba-col--after { background: var(--green-10); border-color: rgba(4,120,87,0.30); }
.ba-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 4px 10px;
    color: #5F5F75;
    background: var(--warm-200);
}
.ba-col--after .ba-tag { color: #04603F; background: rgba(4,120,87,0.16); }
.ba-time { margin: var(--sp-2) 0 var(--sp-3); font-size: 0.9375rem; color: var(--text-700); line-height: 1.45; }
.ba-time strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-900);
}
.ba-col--after .ba-time strong { color: #047857; }
.ba-steps { display: grid; gap: 10px; counter-reset: ba; }
.ba-steps li {
    counter-increment: ba;
    position: relative;
    padding-left: 34px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-700);
}
.ba-steps li::before {
    content: counter(ba);
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-700);
    background: var(--white);
    border: 1px solid var(--border);
}
.ba-col--after .ba-steps li::before { color: #047857; border-color: rgba(4,120,87,0.40); }
.ba-arrow { align-self: center; font-size: 1.5rem; font-weight: 700; color: var(--orange); }
.ba-foot {
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
    border-top: 1px dashed var(--border);
    font-size: 0.875rem;
    color: #5F5F75;
}
.ba-foot a { color: var(--orange-h); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Stat row (About: App Store track record). */
.svc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}
.svc-stats li {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-2);
}
.svc-stats strong {
    display: block;
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-900);
}
.svc-stats span { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: #5F5F75; }

/* Workflow (G1 follow-up, G6 exception): steps left to right,
   each step may carry two outcome branches. Stacks on mobile. */
.wf {
    display: grid;
    grid-template-columns: repeat(var(--wf-cols, 4), minmax(0, 1fr));
    gap: var(--sp-4);
    counter-reset: wf;
}
.wf-step {
    counter-increment: wf;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wf-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    right: calc(var(--sp-4) * -1 + 4px);
    width: calc(var(--sp-4) - 8px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 11px);
    opacity: 0.6;
}
.wf-node {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
}
.wf-node--check { border-color: rgba(37,99,235,0.45); background: #F7F9FF; }
.wf-kicker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-h);
    margin-bottom: 4px;
}
.wf-node--check .wf-kicker { color: var(--blue); }
.wf-kicker::before { content: counter(wf) ' · '; }
.wf-node strong { display: block; color: var(--text-900); font-size: 0.9375rem; line-height: 1.35; }
.wf-node p { font-size: 0.8125rem; color: var(--text-700); line-height: 1.5; margin-top: 4px; }
.wf-branch {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-700);
    border: 1px solid var(--border);
    background: var(--warm-50);
}
.wf-branch b { display: block; color: var(--text-900); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.wf-branch i {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 800;
    font-size: 0.75rem;
}
.wf-branch--go { border-color: rgba(5,150,105,0.35); background: #F3FBF8; }
.wf-branch--go i { background: var(--green-10); color: var(--green); }
.wf-branch--stop { border-color: rgba(232,64,16,0.45); background: #FFF6F2; border-width: 1.5px; }
.wf-branch--stop i { background: var(--orange-10); color: var(--orange-h); }
.wf-branch--stop b { color: var(--orange-h); }

/* Mapping (G2 enquiry to quote): inputs, rules, two outputs. */
.map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--sp-5);
    align-items: stretch;
}
.map-col { position: relative; display: flex; flex-direction: column; gap: 10px; }
.map-col:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: calc(var(--sp-5) * -0.5 - 8px);
    transform: translateY(-50%);
    color: var(--orange);
    font-weight: 800;
    font-size: 1.125rem;
}
.map-head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5F5F75;
}
.map-fields { display: flex; flex-direction: column; gap: 8px; }
.map-fields li {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-900);
}
.map-rules {
    flex: 1;
    background: #F7F9FF;
    border: 1.5px solid rgba(37,99,235,0.45);
    border-radius: var(--r-lg);
    padding: 14px 16px;
}
.map-rules strong { display: block; color: var(--text-900); margin-bottom: 8px; }
.map-rules ul { display: flex; flex-direction: column; gap: 6px; }
.map-rules li { font-size: 0.8125rem; color: var(--text-700); padding-left: 18px; position: relative; line-height: 1.45; }
.map-rules li::before { content: '?'; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--blue); }
.map-out { border-radius: var(--r-lg); padding: 14px 16px; border: 1.5px solid var(--border); }
.map-out strong { display: flex; gap: 8px; align-items: center; color: var(--text-900); margin-bottom: 4px; font-size: 0.9375rem; }
.map-out p { font-size: 0.8125rem; color: var(--text-700); line-height: 1.5; }
.map-out i {
    font-style: normal;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.map-out--go { background: #F3FBF8; border-color: rgba(5,150,105,0.35); }
.map-out--go i { background: var(--green-10); color: var(--green); }
.map-out--review { background: #FFF6F2; border-color: rgba(232,64,16,0.45); }
.map-out--review i { background: var(--orange-10); color: var(--orange-h); }

/* Scope map (G5 Cart Co): grouped stages, no automatic chain implied. */
.scope {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
}
.scope-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
}
.scope-when {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-h);
    margin-bottom: 4px;
}
.scope-group h3, .scope-group .scope-title { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: 10px; line-height: 1.3; }
.scope-items { display: flex; flex-wrap: wrap; gap: 8px; }
.scope-items li {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-900);
    background: var(--warm-100);
    border-radius: 100px;
    padding: 6px 12px;
}
.scope-support {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    border-radius: var(--r-lg);
    padding: 14px var(--sp-3);
    font-size: 0.875rem;
}
.scope-support strong { color: #fff; font-weight: 700; }
.scope-support li {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.scope-support ul { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Proof block (Cart Co excerpt on service pages) ────── */
.svc-proof {
    background: var(--ink);
    border-radius: var(--r-2xl);
    padding: var(--sp-6);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: center;
}
.svc-proof .eyebrow { color: #FF9A7A; }
.svc-proof .eyebrow-dot { background: #FF9A7A; }
.svc-proof h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--sp-2); }
.svc-proof p { color: rgba(255,255,255,0.75); }
.svc-proof ul { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-proof li {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.svc-proof .btn { margin-top: var(--sp-4); }

/* ─── Related links ──────────────────────────────────────── */
.svc-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.svc-related a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.svc-related a:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-related strong { color: var(--text-900); font-size: 0.9375rem; }
.svc-related span { font-size: 0.8125rem; color: var(--text-700); line-height: 1.5; }
.svc-related a::after { content: '→'; color: var(--orange); font-weight: 700; margin-top: 4px; }
.svc-related--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Four cards in a narrow column (service pages): two by two */
.svc-related--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ─── FAQ wrapper (accordion styles come from main.css) ─── */
.svc-faq { max-width: 760px; }
.svc-faq .faq-answer-inner a { color: var(--orange-h); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Final CTA ──────────────────────────────────────────── */
.svc-cta { background: var(--ink); text-align: center; padding: var(--sp-12) 0; }
.svc-cta h2 { color: #fff; margin-bottom: var(--sp-3); }
.svc-cta p { color: rgba(255,255,255,0.72); max-width: 54ch; margin: 0 auto var(--sp-5); font-size: 1.0625rem; }

/* ─── Focus visibility for in-content links ─────────────── */
.svc-section a:focus-visible,
.svc-hero a:focus-visible,
.svc-proof a:focus-visible,
.svc-cta a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.svc-proof a:focus-visible, .svc-cta a:focus-visible { outline-color: #fff; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .svc-related--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wf { --wf-cols: 2 !important; row-gap: var(--sp-5); }
    .wf-step:nth-child(2n)::after { display: none; }
}
@media (max-width: 900px) {
    .svc-split, .svc-proof { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
    .svc-cards, .svc-related { grid-template-columns: minmax(0, 1fr); }
    .map { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
    .map-col:not(:last-child)::after {
        content: '↓';
        top: auto; bottom: calc(var(--sp-4) * -0.5 - 12px);
        right: auto; left: 50%;
        transform: translateX(-50%);
    }
    .scope { grid-template-columns: minmax(0, 1fr); }
    .ba-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
    .ba-arrow { justify-self: center; transform: rotate(90deg); }
    .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .svc-hero { padding: var(--sp-8) 0 var(--sp-8); }
    .svc-section { padding: var(--sp-8) 0; }
    .svc-questions { grid-template-columns: minmax(0, 1fr); }
    .svc-cards--2 { grid-template-columns: minmax(0, 1fr); }
    .svc-proof { padding: var(--sp-4) var(--sp-3); }
    .svc-cta { padding: var(--sp-8) 0; }
}
@media (max-width: 640px) {
    .wf { --wf-cols: 1 !important; gap: var(--sp-4); }
    /* (0,3,1) beats the base connector and the 2-column hide rule. */
    .wf .wf-step:not(:last-child)::after {
        display: block;
        top: auto; bottom: calc(var(--sp-4) * -1 + 6px);
        left: 22px; right: auto;
        width: 2px; height: calc(var(--sp-4) - 12px);
        background: repeating-linear-gradient(180deg, var(--orange) 0 6px, transparent 6px 11px);
    }
    .svc-stage { padding: var(--sp-3) var(--sp-3) var(--sp-3) 72px; }
    .svc-stage::before { left: var(--sp-2); top: var(--sp-3); width: 36px; height: 36px; }
    .svc-figure, .ba { padding: var(--sp-3) var(--sp-2); }
    .svc-table th, .svc-table td { padding: 12px 14px; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
    .svc-related a { transition: none; }
    .svc-related a:hover { transform: none; }
}
@media print {
    .svc-cta, .floating-cta { display: none !important; }
}

/* ── Homepage workflow showcase (brief G1 excerpt, G8 motion) ──────
   Replaces the app-logo hub. Status uses words and icons, not colour alone. */
.fc-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-12) 0;
}
.fc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--sp-8);
    align-items: center;
}
.fc-copy h2 { margin: var(--sp-2) 0; }
.fc-lead { color: var(--text-700); font-size: 1.0625rem; line-height: 1.65; max-width: 46ch; }
.fc-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-4) 0 10px; }
.fc-tools li {
    font-size: 0.8125rem; font-weight: 600; color: var(--text-700);
    background: var(--warm-50); border: 1px solid var(--border);
    border-radius: 100px; padding: 6px 12px; line-height: 1.2;
}
.fc-more { font-size: 0.875rem; color: #5F5F75; }
.fc-link {
    display: inline-block; margin-top: var(--sp-3);
    font-weight: 600; color: var(--orange-h);
    text-decoration: underline; text-decoration-color: rgba(204,50,9,0.3); text-underline-offset: 4px;
    transition: text-decoration-color var(--dur-fast);
}
.fc-link:hover { text-decoration-color: currentColor; }

.fc-card {
    position: relative; overflow: hidden; margin: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
    padding: var(--sp-4);
}
.fc-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 140px; pointer-events: none;
    background: radial-gradient(420px 140px at 85% 0%, rgba(232,64,16,0.07), transparent 70%);
}
.fc-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: var(--sp-3); }
.fc-head .svc-figure-label { margin-bottom: 8px; }
.fc-title { font-size: 1.125rem; font-weight: 700; color: var(--text-900); letter-spacing: -0.01em; line-height: 1.2; }
.fc-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fc-day {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; color: var(--text-700);
    background: var(--warm-100); border-radius: 8px; padding: 6px 10px; min-width: 64px; text-align: center;
}
.fc-day b { font-weight: 700; color: var(--text-900); }
.fc-toggle {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--white);
    display: grid; place-items: center; cursor: pointer; color: var(--text-700);
    transition: border-color var(--dur-fast), color var(--dur-fast);
}
.fc-toggle:hover { border-color: var(--ink); color: var(--ink); }
.fc-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fc-toggle .fc-icon-play { display: none; }
.fc-toggle.is-paused .fc-icon-play { display: block; }
.fc-toggle.is-paused .fc-icon-pause { display: none; }

.fc-steps { position: relative; display: grid; gap: 10px; }
.fc-step {
    position: relative;
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white);
    opacity: 0.42;
    transition: opacity var(--dur-slow) var(--ease), border-color var(--dur-slow), background var(--dur-slow), box-shadow var(--dur-slow), transform var(--dur-slow) var(--ease);
}
.fc-step:not(:last-child)::after {
    content: ''; position: absolute; left: 27px; top: 100%; width: 2px; height: 10px; background: var(--border);
}
.fc-dot {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--white);
    display: grid; place-items: center; transition: border-color var(--dur-slow), background var(--dur-slow), box-shadow var(--dur-slow);
}
.fc-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background var(--dur-slow); }
.fc-body strong { display: block; font-size: 0.9375rem; color: var(--text-900); line-height: 1.3; }
.fc-body span { display: block; font-size: 0.8125rem; color: #5F5F75; line-height: 1.45; margin-top: 2px; }
.fc-status {
    visibility: hidden; white-space: nowrap;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    border-radius: 100px; padding: 4px 9px; background: var(--warm-100); color: #5F5F75;
}
.fc-status--done  { background: var(--green-10);  color: #047857; }
.fc-status--check { background: var(--blue-10);   color: #1D4ED8; }
.fc-status--stop  { background: var(--orange-10); color: var(--orange-h); }
.fc-status--hand  { background: rgba(10,22,40,0.08); color: var(--ink); }

/* Reached steps */
.fc-step.is-done, .fc-step.is-active { opacity: 1; }
.fc-step.is-done .fc-status, .fc-step.is-active .fc-status { visibility: visible; }
.fc-step.is-done .fc-dot { border-color: var(--green); background: var(--green-10); }
.fc-step.is-done .fc-dot::after { background: var(--green); }
.fc-step--check.is-done .fc-dot, .fc-step--check.is-active .fc-dot { border-color: var(--blue); background: var(--blue-10); }
.fc-step--check.is-done .fc-dot::after, .fc-step--check.is-active .fc-dot::after { background: var(--blue); }
.fc-step--stop.is-done, .fc-step--stop.is-active { border-color: rgba(232,64,16,0.5); background: #FFF6F2; }
.fc-step--stop.is-done .fc-dot, .fc-step--stop.is-active .fc-dot { border-color: var(--orange); background: var(--orange-10); }
.fc-step--stop.is-done .fc-dot::after, .fc-step--stop.is-active .fc-dot::after { background: var(--orange); border-radius: 2px; }
.fc-step--hand.is-done .fc-dot, .fc-step--hand.is-active .fc-dot { border-color: var(--ink); background: rgba(10,22,40,0.06); }
.fc-step--hand.is-done .fc-dot::after, .fc-step--hand.is-active .fc-dot::after { background: var(--ink); }
.fc-step.is-active { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--ink); }
.fc-step.is-active .fc-dot { box-shadow: 0 0 0 5px rgba(10,22,40,0.07); }
.fc-step--stop.is-active { border-color: var(--orange); }

.fc-card figcaption {
    margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px dashed var(--border);
    font-size: 0.8125rem; color: #5F5F75; line-height: 1.55;
}

@media (max-width: 900px) {
    .fc-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
    .fc-section { padding: var(--sp-8) 0; }
}
@media (max-width: 480px) {
    .fc-card { padding: var(--sp-3); }
    .fc-step { grid-template-columns: 24px minmax(0, 1fr); padding: 12px; }
    .fc-dot { width: 24px; height: 24px; }
    .fc-step:not(:last-child)::after { left: 23px; }
    .fc-status { grid-column: 2; justify-self: start; }
    .fc-step.is-active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-step, .fc-dot, .fc-dot::after { transition: none; }
    .fc-step.is-active { transform: none; }
}
