/* ==========================================================================
   service.css — ADDITIONS for service landing pages
   Loads AFTER /styles/style.css. Uses only homepage tokens (:root in
   style.css): Sora / Source Sans 3 / Source Serif 4, Ember, Violet, Stone.
   Every class is prefixed .svc- so nothing on the homepage changes.
   ========================================================================== */

:root {
    --svc-measure: 40rem;              /* ~68ch body line length */
    --svc-ink-soft: #5c5a57;           /* already used by .profile-moniker */
    --svc-section-y: clamp(3.5rem, 7vw, 6rem);
    --svc-gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* ---------- Type scale fix (PR had h2 2.5rem > h1 2rem) ---------- */
.svc h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; text-wrap: balance; }
.svc h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 1.25rem; text-wrap: balance; }
.svc h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 0.5rem; }
.svc p  { max-width: var(--svc-measure); }
.svc .section-title { padding-bottom: 0.9rem; }

/* ---------- Top bar ---------- */
.svc-topbar { padding-top: 1.5rem; }
.svc-back { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 500; color: var(--neutral-700); }
.svc-back:hover { color: var(--primary); }
.svc-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.svc-hero { background: linear-gradient(160deg, #ffffff 0%, var(--neutral-50) 100%); border-bottom: 1px solid var(--neutral-100); }
.svc-hero-grid { display: grid; gap: 2.5rem; padding-block: 2.5rem 3.5rem; align-items: center; }
.svc-hero h1 .svc-accent { color: var(--primary); }
.svc-lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 500; line-height: 1.5; color: var(--neutral-900); max-width: 34rem; margin-bottom: 2rem; }
.svc-hero .submit-button svg { width: 20px; height: 20px; }

/* hero visual: a quiet diagram card */
.svc-figure { margin: 0; background: #fff; border: 1px solid var(--neutral-100); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative; }
.svc-figure::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--primary), var(--violet)); }
.svc-flow { list-style: none; display: grid; gap: .75rem; }
.svc-node { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--neutral-100); border-radius: var(--radius); background: var(--neutral-50); font-family: var(--font-heading); font-size: .9375rem; font-weight: 500; color: var(--neutral-900); }
.svc-node .svc-ico { flex: none; }
.svc-node.is-ai { background: var(--violet); color: #fff; border-color: var(--violet); }
.svc-node.is-ai .svc-ico { background: rgba(255,255,255,.14); color: #fff; }
.svc-node.is-human { border-style: dashed; border-color: var(--primary-light); background: #fff; }
.svc-arrow { display: flex; justify-content: center; color: var(--neutral-200); height: 18px; }
.svc-arrow svg { width: 18px; height: 18px; }
.svc-branch { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.svc-branch .svc-node { flex-direction: column; text-align: center; gap: .5rem; padding: .85rem .5rem; font-size: .8125rem; line-height: 1.25; }

/* chat mock */
.svc-chat { display: grid; gap: .75rem; }
.svc-bubble { border-radius: 14px; padding: .9rem 1rem; display: grid; gap: .45rem; max-width: 85%; }
.svc-bubble i { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .22; }
.svc-bubble.cust { background: var(--neutral-50); border: 1px solid var(--neutral-100); color: var(--neutral-900); justify-self: end; width: 62%; border-bottom-right-radius: 4px; }
.svc-bubble.bot { background: #fff; border: 1px solid var(--neutral-100); color: var(--neutral-900); width: 80%; border-bottom-left-radius: 4px; }
.svc-cite { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; font-size: .8125rem; font-family: var(--font-heading); font-weight: 500; color: var(--violet); background: rgba(114,50,164,.08); border-radius: 50px; padding: .3rem .7rem; margin-top: .25rem; }
.svc-cite svg { width: 14px; height: 14px; }
.svc-handoff { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px dashed var(--primary-light); border-radius: var(--radius); font-family: var(--font-heading); font-size: .875rem; font-weight: 500; color: var(--neutral-900); }

/* bar chart */
.svc-chart { display: grid; gap: 1.25rem; }
.svc-bar-label { font-family: var(--font-heading); font-size: .875rem; font-weight: 500; color: var(--neutral-900); margin-bottom: .45rem; }
.svc-bar { height: 44px; border-radius: 6px; }
.svc-bar.asked { width: 38%; background: var(--violet); }
.svc-bar.waste { width: 92%; background: repeating-linear-gradient(135deg, var(--primary) 0 10px, var(--primary-light) 10px 20px); }

/* ---------- Icon tile ---------- */
.svc-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(228,39,40,.08); color: var(--primary); }
.svc-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections & rhythm ---------- */
.svc-section { padding: var(--svc-section-y) 0; border-bottom: 1px solid var(--neutral-100); }
.svc-section.is-white { background: #fff; }
.svc-section > .container > :last-child { margin-bottom: 0; }
.svc-body p { font-size: 1.125rem; line-height: 1.7; }
.svc-body p:last-child { margin-bottom: 0; }
.svc-split { display: grid; gap: 2rem; }
.svc-kicker { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); font-weight: 500; line-height: 1.45; color: var(--neutral-900); }

/* Statement band = homepage claim strip, enlarged for the "problem" block */
.svc-band { background: var(--violet); color: #f5f4f2; border-bottom: 3px solid var(--primary); padding: var(--svc-section-y) 0; }
.svc-band h2 { color: #fff; }
.svc-band .section-title::after { background: var(--primary-light); }
.svc-band p { font-family: var(--font-quote); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.5; max-width: 46rem; margin-bottom: 0; }
.svc-band q, .svc-band strong { color: #fff; font-weight: 600; }
.svc-band q { quotes: '“' '”'; font-size: 1.15em; }

/* Cards */
.svc-cards { display: grid; gap: var(--svc-gap); list-style: none; margin-top: 2rem; }
.svc-card { background: #fff; border: 1px solid var(--neutral-100); border-radius: 12px; padding: 1.75rem; transition: var(--transition); }
.svc-section.is-white .svc-card { background: var(--neutral-50); }
.svc-card:hover { border-color: var(--neutral-200); box-shadow: var(--shadow); }
.svc-card .svc-ico { margin-bottom: 1.1rem; }
.svc-card p { font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.svc-card p strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--neutral-900); margin-bottom: .4rem; }

/* Comparison (A vs B) */
.svc-compare { display: grid; gap: var(--svc-gap); margin: 2rem 0; }
.svc-compare > div { border-radius: 12px; padding: 1.75rem; }
.svc-compare .is-before { background: var(--neutral-50); border: 1px solid var(--neutral-100); color: var(--svc-ink-soft); }
.svc-compare .is-after { background: #fff; border: 2px solid var(--neutral-900); box-shadow: 6px 6px 0 var(--primary); }
.svc-compare p { font-size: 1.1875rem; line-height: 1.6; margin: 0; }
.svc-compare .is-after p { color: var(--neutral-900); font-weight: 500; }
.svc-compare .svc-ico { margin-bottom: 1rem; }
.svc-compare .is-before .svc-ico { background: var(--neutral-100); color: var(--svc-ink-soft); }

/* Callout (quieter guardrail note) */
.svc-callout { border-left: 3px solid var(--primary); padding: .25rem 0 .25rem 1.5rem; }
.svc-callout p { font-size: 1.125rem; line-height: 1.7; }

/* Numbered steps */
.svc-steps { list-style: none; counter-reset: step; display: grid; gap: var(--svc-gap); margin-top: 2rem; }
.svc-steps li { counter-increment: step; position: relative; padding: 1.75rem; background: #fff; border-radius: 12px; border: 1px solid var(--neutral-100); }
.svc-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-heading); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--primary); margin-bottom: 1rem; letter-spacing: -0.03em; }
.svc-steps p { margin: 0; font-size: 1.0625rem; }
.svc-steps p strong { display: block; font-family: var(--font-heading); font-size: 1.1875rem; color: var(--neutral-900); margin-bottom: .35rem; }

/* Proof / credentials */
.svc-proof { display: grid; gap: 2rem; align-items: start; }
.svc-proof-photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.svc-aside { background: #fff; border: 1px solid var(--neutral-100); border-radius: 12px; padding: 1.75rem; }
.svc-section.is-white .svc-aside { background: var(--neutral-50); }
.svc-aside h2 { font-size: 1.375rem; }
.svc-aside p { font-size: 1.0625rem; margin-bottom: 0; }

/* Before / after (turnaround) */
.svc-turn { display: grid; gap: 0; margin: 2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--neutral-100); }
.svc-turn > div { padding: 1.75rem; }
.svc-turn .is-before { background: var(--neutral-50); }
.svc-turn .is-after { background: var(--neutral-900); color: #f5f4f2; }
.svc-turn .is-after p { color: #fff; }
.svc-turn p { font-size: 1.1875rem; line-height: 1.6; margin: 0; }
.svc-turn .svc-ico { margin-bottom: 1rem; }
.svc-turn .is-after .svc-ico { background: rgba(255,255,255,.1); color: #fff; }

/* Inline product mention (Defusor) */
.svc-tool { display: grid; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid var(--neutral-100); border-radius: 12px; padding: 1.75rem; }
.svc-tool p { margin: 0; font-size: 1.0625rem; }
.svc-tool a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ — reuses homepage .faq-item / .faq-question / .faq-answer */
.svc-faq { display: grid; gap: 2rem; }
.svc .faq-list { max-width: none; }
.svc .faq-item { background: #fff; margin-bottom: .75rem; }
.svc .faq-question { background: #fff; padding: 1.25rem 3.5rem 1.25rem 1.5rem; font-size: 1.0625rem; }
.svc .faq-question:hover { color: var(--primary); }
.svc .faq-question:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.svc .faq-answer { padding: 0 1.5rem 1.5rem; }
.svc .faq-answer p { margin: 0; font-size: 1.0625rem; }

/* Final CTA */
.svc-cta { background: var(--neutral-900); color: #e9e7e3; padding: var(--svc-section-y) 0; position: relative; overflow: hidden; }
.svc-cta::after { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(228,39,40,.18); }
.svc-cta h2 { color: #fff; max-width: 22ch; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.svc-cta p { font-size: 1.1875rem; line-height: 1.6; color: #d9d6d1; max-width: 36rem; margin-bottom: 2rem; }
.svc-cta .container { position: relative; z-index: 1; }

/* Focus — visible everywhere */
.svc a:focus-visible, .svc .submit-button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: var(--radius); }
.svc-cta .submit-button:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .svc *, .svc *::before, .svc *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
    .svc-cards.cols-2, .svc-compare, .svc-turn { grid-template-columns: 1fr 1fr; }
    .svc-steps { grid-template-columns: repeat(3, 1fr); }
    .svc-tool { grid-template-columns: auto 1fr; }
    .svc-proof { grid-template-columns: auto 1fr; gap: 2.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
    .svc-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4.5rem; padding-block: 4rem 5rem; min-height: 560px; }
    .svc-split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
    .svc-split.is-reverse { grid-template-columns: 7fr 5fr; }
    .svc-faq { grid-template-columns: 4fr 8fr; gap: 4rem; }
    .svc-faq > header { position: sticky; top: 2rem; align-self: start; }
    .svc-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .svc-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .svc-cards.cols-3, .svc-cards.cols-4 { grid-template-columns: 1fr 1fr; }
}

/* Mobile: full-width primary button for a bigger tap target */
@media (max-width: 767px) {
    .svc .submit-button { width: 100%; }
    .svc-cta::after { width: 220px; height: 220px; border-width: 32px; right: -90px; top: -90px; }
}

/* Kept site chrome: page type rules must not restyle the banner or footer. */
.svc #analytics-consent-banner h2 {
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    text-wrap: wrap;
}
.svc #analytics-consent-banner p,
.svc .footer p {
    max-width: none;
}
@media (max-width: 767px) {
    .svc #analytics-consent-banner .submit-button {
        width: auto;
    }
}

/* Featured card: spans two rows in a 3-col grid so 5 items read as 1 + 2x2 */
@media (min-width: 1024px) {
    .svc-card.is-feature { grid-row: span 2; display: flex; flex-direction: column; background: var(--neutral-900); border-color: var(--neutral-900); }
    .svc-section.is-white .svc-card.is-feature { background: var(--neutral-900); }
    .svc-card.is-feature p, .svc-card.is-feature p strong { color: #fff; }
    .svc-card.is-feature p { font-size: 1.125rem; color: #d9d6d1; }
    .svc-card.is-feature .svc-ico { background: rgba(255,255,255,.1); color: #fff; }
}
