/* Service layouts. Legacy refinements remain for pages not yet migrated to Design B. */
.service-refined .svc-hero { padding-top: clamp(2rem, 4vw, 3.5rem); }
.service-refined .svc-breadcrumb { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.service-refined .svc-hero-grid { gap: 3rem; align-items: start; }
.service-refined .svc-hero h1 { text-wrap: initial; }
.service-refined .svc-hero h1 em { display: block; margin-top: 0.15em; }
.service-refined .svc-intro { line-height: 1.8; }
.service-refined .svc-brief { border: 0; border-radius: var(--radius-none); padding: 2rem 0 0; background: transparent; border-top: var(--border-width) solid var(--border-strong); }
.service-refined .svc-brief h2 { text-wrap: initial; }
.service-refined .svc-brief p { margin-top: 1.5rem; color: var(--text-muted); font-size: var(--type-body); line-height: 1.8; }
.service-refined .svc-platform-list { margin-top: 3rem; padding-block: 1.5rem; gap: 1rem 2rem; }
.service-refined .v2-section { padding-block: var(--section-space-service); }
.service-refined .v2-section-heading { display: block; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.service-refined .v2-section-heading h2 { max-width: 52rem; }
.service-refined main h2 em { color: var(--link); }
.service-refined .v2-section-heading h2 em { color: var(--link); }
.service-refined .v2-editorial-list { counter-reset: service-item; }
.service-refined .v2-editorial-list article { position: relative; counter-increment: service-item; padding: 2rem 0 2rem 2.75rem; border-top: var(--border-width) solid var(--border-soft); }
.service-refined .v2-editorial-list article::before { content: "0" counter(service-item); position: absolute; left: 0; top: 2.15rem; font-family: var(--font-mono); font-size: var(--type-eyebrow); color: var(--link); }
.service-refined .v2-editorial-list p { max-width: 43rem; line-height: 1.8; }
.service-refined :is(#technical-development, #who-it-is-for) ul { list-style: none; padding: 0; margin: 0; }
.service-refined :is(#technical-development, #who-it-is-for) li { border-top: var(--border-width) solid var(--border-soft); padding: 1.5rem 0; color: var(--text-muted); }
.service-refined :is(#technical-development, #who-it-is-for) strong { display: block; color: var(--text); margin-bottom: 0.5rem; font-weight: var(--weight-heading); font-size: 1.15rem; }
.service-refined main :is(#agency-support, #live-store, #separate-work, #hosting, #brief, #commercial-arrangements, #confidentiality) > .container > p { max-width: var(--content-max); color: var(--text-muted); line-height: 1.85; }
.service-refined main :is(#technical-development, #platforms, #hosting, #brief) { background: var(--surface); border-block: var(--border-width) solid var(--border-soft); }
.service-refined .v2-dark { border-block: var(--border-width) solid var(--border-soft); }
.service-refined .v2-process { gap: 2.5rem; }
.service-refined .v2-process li { padding-top: 1.25rem; }
.service-refined .v2-process .v2-number { margin-bottom: 2.5rem; font-family: var(--font-mono); }
.service-refined .v2-process p { line-height: 1.8; }
.service-refined #related-services { padding-top: 0; }
.service-refined .svc-related-grid { gap: 1.5rem 3rem; }
.service-refined .svc-related-grid article { border-top: var(--border-width) solid var(--border-soft); padding-top: 1.5rem; }
.service-refined .svc-related-grid h3 { margin-bottom: 0.75rem; }
.service-refined .svc-related-grid h3 a { font-size: inherit; }
.service-refined :is(#next-step, #hosting-enquiry) { background: var(--accent-wash); border-block: var(--border-width) solid var(--border-soft); }
.service-refined #next-step h2 { max-width: 50rem; }
.service-refined .svc-next-step p { margin-top: 0; color: var(--text-muted); line-height: 1.8; }
.service-refined .svc-next-actions { gap: 1.5rem; }
.service-refined main a:not(.v2-button):hover { color: var(--link); }
.service-refined .v2-faq summary { padding-block: 1.5rem; }
.service-refined .v2-faq summary::after { top: 1.3rem; color: var(--link); }
.service-refined .v2-faq details p { line-height: 1.8; }

/* Referral artwork inherits the editorial palette in both appearances. */
.service-editorial.service-partners .partners-illustration { padding: 0; max-width: 38rem; }
.service-partners .partners-illustration svg { display: block; width: 100%; height: auto; }

/* Editorial services retain their local type scale. */
.service-editorial { background: var(--brand-bg); }
.service-editorial :is(main, .website-review-dialog) {
     --type-h1: clamp(2.45rem, 4.4vw, 4rem);
     --type-h2: clamp(1.85rem, 3vw, 2.6rem);
     --type-h3: clamp(1.15rem, 1.7vw, 1.35rem);
     --section-space: clamp(4.5rem, 7vw, 7.5rem);
     font-family: var(--font-sans);
     color: var(--text);
}
.service-editorial main { overflow: visible; overflow-wrap: anywhere; }
.service-editorial main section[id] { scroll-margin-top: 7rem; }
.service-editorial main :is(h1, h2) em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--link); }
.service-editorial main .v2-eyebrow { margin-bottom: 1.1rem; color: var(--link); font-weight: 700; letter-spacing: 0.14em; }
.service-editorial main :is(p, dd, li) { line-height: 1.75; }
.service-editorial .v2-button { min-height: 52px; border-color: var(--button-bg); border-radius: 10px; }
.service-editorial .v2-button:hover { background: var(--button-hover); }
.service-editorial .v2-text-link { display: inline-block; padding-block: 0.5rem; line-height: 1.5; text-decoration-thickness: 1px; }
.service-editorial main a:not(.v2-button):hover { color: var(--brand-link); }
.service-editorial main :is(a, summary):focus-visible { outline-color: var(--focus); }

/* A split hero, seamless original artwork and a concise brief below. */
.service-editorial .se-hero {
     position: relative;
     overflow: hidden;
     padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 5vw, 4.5rem);
     background: radial-gradient(ellipse at 85% 25%, rgb(59 130 246 / 13%), transparent 50%), linear-gradient(115deg, var(--page-bg), var(--surface-alt));
     border-bottom: 1px solid var(--border-soft);
}
.service-editorial .se-hero::before { content: ''; position: absolute; width: 40rem; height: 40rem; top: -22rem; right: -10rem; border: 1px solid var(--accent); border-radius: 50%; opacity: 0.15; pointer-events: none; }
.service-editorial .se-hero > .container { position: relative; }
.service-editorial .se-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); color: var(--text-muted); font-size: 0.9rem; }
.service-editorial .se-breadcrumb a { padding-block: 0.4rem; color: inherit; text-underline-offset: 0.3em; }
.service-editorial .se-breadcrumb > span[aria-hidden] { color: var(--link); }
.service-editorial .se-hero-grid { display: grid; align-items: center; gap: 2.5rem; }
.service-editorial .se-hero-copy { min-width: 0; }
.service-editorial .se-hero h1 { max-width: 50rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.04em; text-wrap: initial; }
.service-editorial .se-hero h1 > br { display: none; }
.service-editorial .se-hero h1 em { display: block; margin-top: 0.15em; }
.service-editorial .se-hero-detail { min-width: 0; margin-top: 1.75rem; }
.service-editorial .se-intro { max-width: 60ch; color: var(--text-muted); font-size: 1.08rem; }
.service-editorial .se-intro + .se-intro { margin-top: 1rem; }
.service-editorial .se-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.service-editorial .se-actions a { max-width: 100%; }
.service-editorial .se-actions .v2-button { box-shadow: 0 8px 24px rgb(37 99 235 / 16%); }
.service-editorial .se-hero-note { max-width: 48ch; margin-top: 1.25rem; color: var(--text-subtle); font-size: 0.95rem; }
.service-editorial .se-hero-media { width: 100%; max-width: 42rem; justify-self: center; min-width: 0; margin: 0; padding: clamp(1rem, 2.5vw, 2rem); border: 0; border-radius: 24px; background: transparent; box-shadow: none; }
.service-editorial .se-hero-media img { display: block; width: 100%; height: auto; max-height: 29rem; object-fit: contain; }
.service-editorial .se-workflow-media { margin: 2rem 0 0; padding: 1rem; border: 0; border-radius: 16px; background: transparent; }
.service-editorial .se-workflow-media img { display: block; width: 100%; height: auto; }
.service-editorial .se-brief { display: grid; align-items: start; gap: 1.5rem; margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--border-soft); border-top: 3px solid var(--gold); border-radius: 20px; background: var(--surface); }
.service-editorial .se-brief h2 { max-width: 34rem; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.service-editorial .se-brief > p { max-width: 65ch; color: var(--text-muted); }
.service-editorial .se-brief-copy { grid-column: 1 / -1; min-width: 0; }
.service-editorial .se-brief dl { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; }
.service-editorial .se-brief dl > div { min-width: 0; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.service-editorial .se-brief dt { color: var(--brand-link); font-weight: 700; }
.service-editorial .se-brief dd { margin: 0.5rem 0 0; color: var(--text-muted); }
.service-editorial .se-platform-list { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.service-editorial .se-platform-list li { padding: 0.5rem 1rem; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); color: var(--text-muted); font-size: 0.9rem; }

/* Content alternates open editorial sections with quiet surface bands. */
.service-editorial .se-section { padding-block: var(--section-space); }
.service-editorial .se-surface { border-block: 1px solid var(--border-soft); background: var(--surface-alt); }
.service-editorial .se-surface--tint { background: var(--accent-wash); }
.service-editorial .se-heading { display: grid; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.service-editorial .se-heading h2 { max-width: 42rem; }
.service-editorial .se-heading > p { max-width: 65ch; color: var(--text-muted); }
.service-editorial .se-split { display: grid; align-items: start; gap: 2.5rem; }
.service-editorial .se-split > * { min-width: 0; }
.service-editorial .se-split > .se-heading { margin: 0; }
.service-editorial .se-split > p, .service-editorial .se-side-note { max-width: 65ch; color: var(--text-muted); }
.service-editorial .se-side-note { margin-top: 1.5rem; }
.service-editorial .se-copy { min-width: 0; color: var(--text-muted); }
.service-editorial .se-copy > p { max-width: 65ch; }
.service-editorial .se-copy > p + p { margin-top: 1.5rem; }
.service-editorial .se-ruled { padding-top: 0; }
.service-editorial .se-ruled > .container { padding-top: var(--section-space); border-top: 1px solid var(--border-soft); }
.service-editorial .se-editorial-list { display: grid; gap: 1rem; }
.service-editorial .se-editorial-list article { min-width: 0; padding: 1.5rem; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); }
.service-editorial .se-editorial-list p { max-width: 65ch; color: var(--text-muted); }
.service-editorial #technical-development ul { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.service-editorial #technical-development li { padding: 1.75rem; border: 1px solid var(--border-soft); border-radius: var(--radius-surface); background: var(--service-surface); color: var(--text-muted); }
.service-editorial #technical-development strong { display: block; margin-bottom: 0.75rem; color: var(--text); font-weight: 650; font-size: var(--type-h3); line-height: 1.3; }

/* Capability cards and numbered ledgers retain their existing reading order. */
.service-editorial .se-audience { display: grid; gap: 1.5rem; }
.service-editorial .se-audience-item { min-width: 0; padding: 1.75rem; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 28px rgb(2 6 23 / 4%); }
.service-editorial .se-audience p { color: var(--text-muted); }
.service-editorial .se-number { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 1.25rem; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--accent-wash); color: var(--brand-link); font-size: 0.8rem; font-weight: 700; }
.service-editorial .se-numbered { counter-reset: service-item; }
.service-editorial .se-numbered article { position: relative; counter-increment: service-item; padding-top: 5rem; }
.service-editorial .se-numbered article::before { content: "0" counter(service-item); position: absolute; top: 1.5rem; left: 1.75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--accent-wash); color: var(--brand-link); font-size: 0.8rem; font-weight: 700; }
.service-editorial .se-audience--ledger { grid-template-columns: minmax(0, 1fr); }
.service-editorial .se-audience--ledger .se-audience-item { display: grid; grid-template-columns: minmax(2.25rem, max-content) minmax(0, 1fr); gap: 0 1.25rem; }
.service-editorial .se-audience--ledger .se-number { grid-column: 1; grid-row: 1 / 3; margin: 0; }
.service-editorial .se-audience--ledger :is(h3, p) { grid-column: 2; }

/* Process cards support both a four-step row and the agency's vertical sequence. */
.service-editorial .se-process { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.service-editorial .se-process li { min-width: 0; padding: 1.5rem; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); }
.service-editorial .se-process p { color: var(--text-muted); }
.service-editorial .se-process--vertical { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.service-editorial .se-process--vertical li { display: grid; grid-template-columns: minmax(2.25rem, max-content) minmax(0, 1fr); gap: 0 1.25rem; }
.service-editorial .se-process--vertical .se-number { grid-row: 1 / 3; margin: 0; }
.service-editorial .se-process--vertical p { grid-column: 2; }

/* Native disclosures, related services and the next conversation. */
.service-editorial .se-faq { display: grid; gap: 0.75rem; }
.service-editorial .se-faq details { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.service-editorial .se-faq summary { position: relative; padding: 1.25rem 3rem 1.25rem 1.25rem; border-radius: 12px; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.service-editorial .se-faq summary::-webkit-details-marker { display: none; }
.service-editorial .se-faq summary::after { position: absolute; top: 1.25rem; right: 1.25rem; content: '+'; color: var(--link); }
.service-editorial .se-faq details[open] summary { color: var(--brand-link); }
.service-editorial .se-faq details[open] summary::after { content: '−'; }
.service-editorial .se-faq p { max-width: 65ch; padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
.service-editorial #related-services { padding-top: 0; }
.service-editorial .se-related-grid { display: grid; gap: 1.5rem; }
.service-editorial .se-related-grid article { min-width: 0; padding: 1.75rem; border: 1px solid var(--border-soft); border-radius: var(--radius-surface); background: var(--service-surface); }
.service-editorial .se-related-grid h3 a { padding: 0; color: var(--text); font-size: inherit; }
.service-editorial .se-related-grid p { color: var(--text-muted); }
.service-editorial .se-cta { border-top: 1px solid var(--border-soft); background: radial-gradient(ellipse at 80% 20%, rgb(59 130 246 / 12%), transparent 65%), var(--surface-alt); }
.service-editorial .se-next-step { display: grid; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--border-soft); border-radius: 24px; background: var(--surface); }
.service-editorial .se-next-step .se-heading { margin-bottom: 1.25rem; }
.service-editorial .se-next-step p:not(.v2-eyebrow) { max-width: 60ch; margin-top: 1.25rem; color: var(--text-muted); }
.service-editorial .se-next-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-width: 0; }
.service-editorial .se-next-actions a { max-width: 100%; }

/* Agencies keeps the shared invitation, native modal and original form hooks. */
.service-editorial .website-review-cta { padding-block: 4rem; border-block: 1px solid var(--border-soft); background: var(--accent-wash); }
.service-agencies .website-review-cta { padding-block: var(--section-space); background: var(--surface); }
.service-editorial .website-review-cta-inner { gap: 2rem; }
.service-editorial .website-review-cta p { color: var(--text-muted); }
.service-editorial .website-review-small-print { margin-top: 1rem; }
.service-editorial .website-review-permission { margin-inline: auto; padding-block: 1.25rem; color: var(--text-muted); }
.service-editorial .website-review-dialog { border-radius: 20px; }
.service-editorial .website-review-dialog h2 { font-weight: 700; }
.service-editorial .website-review-dialog a { color: var(--brand-link); }
.service-editorial .website-review-dialog :is(input, textarea) { border-radius: 10px; }
.service-editorial .website-review-dialog .form-submit { border-radius: 10px; }

@media (min-width: 768px) {
     .service-editorial .se-brief, .service-editorial .se-split, .service-editorial .se-heading:has(> p) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 3rem; }
     .service-editorial .se-brief dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
     .service-editorial .se-editorial-list--wide article { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; padding: 2rem; }
     .service-editorial .se-editorial-list--wide h3 { margin: 0; }
     .service-editorial .se-editorial-list--wide.se-numbered article { padding-left: 5.5rem; }
     .service-editorial .se-editorial-list--wide.se-numbered article::before { top: 2rem; left: 1.5rem; }
     .service-editorial .se-audience, .service-editorial .se-process, .service-editorial .se-related-grid, .service-editorial #technical-development ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
     .service-editorial .se-audience--ledger, .service-editorial .se-process--vertical { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) {
     .service-editorial .se-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem 4rem; }
     .service-editorial .se-hero-media { max-width: none; }
     .service-editorial .se-brief, .service-editorial .se-split, .service-editorial .se-heading:has(> p) { column-gap: 4rem; }
     .service-editorial .se-brief-copy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 3rem; }
     .service-editorial .se-brief-copy > :is(h2, .v2-eyebrow) { grid-column: 1; }
     .service-editorial .se-brief-copy dl { grid-column: 2; grid-row: 1 / 3; margin: 0; }
     .service-editorial .se-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
     .service-editorial .se-audience--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
     .service-editorial .se-audience--ledger { grid-template-columns: minmax(0, 1fr); }
     .service-editorial .se-audience--ledger .se-audience-item { grid-template-columns: minmax(2.25rem, max-content) minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 1.75rem; }
     .service-editorial .se-audience--ledger .se-number { grid-row: 1; }
     .service-editorial .se-audience--ledger h3 { margin: 0; }
     .service-editorial .se-audience--ledger p { grid-column: 3; }
     .service-editorial .se-process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
     .service-editorial .se-process--vertical { grid-template-columns: minmax(0, 1fr); }
     .service-editorial .se-next-step { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; }
     .service-editorial.service-ai-development-support .se-hero-grid { row-gap: 1.5rem; }
     .service-editorial.service-ai-development-support .se-hero-copy { display: contents; }
     .service-editorial.service-ai-development-support .se-hero-copy > :is(h1, .v2-eyebrow) { grid-column: 1 / -1; }
     .service-editorial.service-ai-development-support .se-hero-copy > .v2-eyebrow { margin-bottom: 0; }
     .service-editorial.service-ai-development-support .se-hero h1 { max-width: 60rem; }
     .service-editorial.service-ai-development-support .se-hero-detail { margin: 0; }
}
@media (max-width: 767px) {
     .service-editorial .se-actions { flex-direction: column; align-items: stretch; }
     .service-editorial .se-actions > .v2-button { justify-content: space-between; }
     .service-editorial .se-next-actions { align-items: stretch; }
     .service-editorial .se-hero-media { border-radius: 16px; }
     .service-editorial .se-audience-item, .service-editorial .se-process li, .service-editorial #technical-development li { padding: 1.5rem; }
     .service-editorial .se-numbered article { padding-top: 5rem; }
     .service-editorial .se-numbered article::before { left: 1.5rem; }
}



@media (min-width: 768px) {
     .service-refined .svc-hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr); gap: 3rem; }
     .service-refined .svc-brief { align-self: end; }
     .service-refined .v2-editorial-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; padding-block: 2rem; }
     .service-refined .v2-editorial-list h3 { max-width: 24rem; margin: 0; }
     .service-refined :is(#technical-development, #who-it-is-for) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
}
@media (min-width: 1024px) {
     .service-refined .svc-hero-grid { gap: 5rem; }
     .service-refined #faq .v2-split { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
     .service-refined main :is(#agency-support, #live-store, #hosting, #brief, #commercial-arrangements) > .container { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 5rem; }
     .service-refined main :is(#agency-support, #live-store, #hosting, #brief, #commercial-arrangements) .v2-section-heading { margin: 0; }
     .service-refined main :is(#agency-support, #live-store, #hosting, #brief, #commercial-arrangements) > .container > p { padding-top: 2.7rem; }
     .service-refined .svc-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
     .service-refined .svc-hero .v2-actions { align-items: stretch; flex-direction: column; }
     .service-refined .v2-text-link { line-height: var(--leading-body); }
     .service-refined .svc-next-actions { align-items: stretch; }
     .service-refined .v2-button { gap: 1rem; }
     .service-refined #next-step .v2-section-heading { margin-bottom: 1.5rem; }
     .service-refined .v2-process .v2-number { margin-bottom: 1.25rem; }
     .service-refined .v2-process { gap: 2rem; }
}



@media (prefers-reduced-motion: reduce) {
     html:has(.service-specialist, .service-ai-development-support, .service-mobile-app-development, .service-custom-software-development, .service-ai-for-business) { scroll-behavior: auto; }
     :is(.service-specialist, .service-ai-development-support, .service-mobile-app-development, .service-custom-software-development, .service-ai-for-business) main *, :is(.service-specialist, .service-ai-development-support, .service-mobile-app-development, .service-custom-software-development, .service-ai-for-business) main *::before, :is(.service-specialist, .service-ai-development-support, .service-mobile-app-development, .service-custom-software-development, .service-ai-for-business) main *::after { animation: none; transition: none; transition-duration: 0s !important; }
}





/* Care Plans retains a separate type scale and layout. */
.service-care-plans { background: var(--brand-bg); }
.service-care-plans :is(main, .website-review-dialog) {
     --type-h1: clamp(2.15rem, 3.9vw, 3.6rem); --type-h2: clamp(1.85rem, 3vw, 2.7rem); --type-h3: clamp(1.25rem, 1.8vw, 1.65rem);
     --section-space: clamp(3.25rem, 6vw, 6.5rem); --section-space-service: var(--section-space);
     font-family: var(--font-sans); color: var(--text);
}
.service-care-plans main { overflow: visible; overflow-wrap: anywhere; }
.service-care-plans main section[id] { scroll-margin-top: 7rem; }
.service-care-plans main :is(h1, h2) { font-weight: var(--weight-regular); }
.service-care-plans main :is(h1, h2) em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.service-care-plans main .v2-eyebrow { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); color: var(--number-accent); }
.service-care-plans main .v2-eyebrow::before { content: ''; flex: 0 0 1.75rem; border-top: 2px solid var(--gold); }
.service-care-plans main p { line-height: 1.75; }
.service-care-plans .v2-button { border-color: var(--button-bg); border-radius: 10px; min-height: 52px; }
.service-care-plans .v2-button:hover { background: var(--button-hover); }
.service-care-plans .v2-text-link { line-height: 1.5; text-decoration-thickness: 1px; }
.service-care-plans.service-refined .svc-hero { padding-block: var(--space-5) clamp(2.5rem, 5vw, 4.5rem); background: var(--page-bg); border-bottom: var(--border-width) solid var(--border-soft); }
.service-care-plans.service-refined .svc-breadcrumb { margin-bottom: 3rem; font-size: .9rem; }
.service-care-plans.service-refined .svc-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 2.5rem; }
.service-care-plans .svc-hero h1 { line-height: 1.1; letter-spacing: -.035em; }
.service-care-plans .svc-intro { font-size: 1.08rem; max-width: 60ch; }
.service-care-plans .care-system { width: 100%; max-width: 40rem; justify-self: center; }
.service-care-plans .svc-platform-list { margin-top: 1.5rem; padding: 0; border: 0; gap: .75rem; }
.service-care-plans .svc-platform-list li { padding: .5rem 1rem; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.service-care-plans .v2-section-heading h2 { max-width: 48rem; }
.service-care-plans :is(#plans, #service-comparison, #separate-work) .v2-section-heading { margin-bottom: var(--space-4); }
.service-care-plans :is(#plans, #service-comparison, #separate-work) > .container > p { max-width: 68ch; color: var(--text-muted); }
.service-care-plans.service-refined .care-plan-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.service-care-plans .care-plan-grid .svc-card {
     display: flex;
     flex-direction: column;
     min-width: 0;
     padding: 0;
     border-top: var(--border-width-strong) solid var(--gold);
}
.service-care-plans .care-plan-visual {
     position: relative;
     display: grid;
     align-items: center;
     justify-items: center;
     min-width: 0;
     padding: var(--space-4) var(--space-3) var(--space-2);
     background: var(--surface-alt);
     border-radius: var(--radius-surface) var(--radius-surface) 0 0;
     border-bottom: var(--border-width) solid var(--border-soft);
}
.service-care-plans .care-plan-number {
     position: absolute;
     inset: var(--space-3) auto auto var(--space-4);
     color: var(--number-accent);
     font: var(--weight-semibold) var(--type-eyebrow)/1 var(--font-mono);
}
.service-care-plans .care-plan-art { max-width: 31rem; }
.service-care-plans .care-plan-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); }
.service-care-plans .care-plan-copy h3 { margin-bottom: var(--space-3); }
.service-care-plans :is(.care-plan-copy ul, .care-terms) { padding-inline-start: 1.25rem; color: var(--text-muted); }
.service-care-plans .care-plan-copy ul { margin: var(--space-4) 0 var(--space-5); }
.service-care-plans :is(.care-plan-copy li, .care-terms li) { padding-inline-start: var(--space-1); line-height: 1.6; }
.service-care-plans .care-plan-copy li + li { margin-top: var(--space-2); }
.service-care-plans :is(.care-plan-copy li, .care-terms li)::marker { color: var(--link); }
.service-care-plans .care-plan-copy > a { margin-top: auto; padding-top: var(--space-4); border-top: var(--border-width) solid var(--border-soft); }

.service-care-plans :is(#service-comparison, #separate-work, #hosting, #onboarding) { background: var(--surface-alt); border-block: var(--border-width) solid var(--border-soft); }
.service-care-plans .care-comparison-hint { margin-top: var(--space-3); font-size: .9rem; }
.service-care-plans .care-comparison-scroll {
     max-width: 100%;
     margin-top: var(--space-5);
     overflow-x: auto;
     border: var(--border-width) solid var(--border-soft);
     border-radius: var(--radius-control);
     background: var(--surface);
}
.service-care-plans .care-comparison-scroll:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: var(--focus-offset); }
.service-care-plans .care-comparison-table { width: 100%; min-width: 54rem; border-spacing: 0; table-layout: fixed; font-size: .9rem; }
.service-care-plans .care-comparison-table :is(th, td) { padding: var(--space-3); border-bottom: var(--border-width) solid var(--border-soft); }
.service-care-plans .care-comparison-table thead th { background: var(--accent-wash); vertical-align: bottom; }
.service-care-plans .care-comparison-table tbody td { color: var(--text-muted); text-align: center; }
.service-care-plans .care-comparison-table tr > :first-child {
     position: sticky;
     inset-inline-start: 0;
     width: 8.5rem;
     background: var(--surface);
     border-inline-end: var(--border-width) solid var(--border-soft);
     text-align: start;
     overflow-wrap: break-word;
}
.service-care-plans .care-comparison-table thead th:first-child { background: var(--accent-wash); }
.service-care-plans .care-comparison-table tbody tr:last-child > * { border-bottom: 0; }
.service-care-plans #dedicated-developers p:not(.v2-eyebrow) { max-width: 60ch; margin-block: var(--space-4); color: var(--text-muted); }
.service-care-plans .care-dedicated-details { margin: 0; }
.service-care-plans .care-dedicated-details > div { padding-block: var(--space-4); border-top: var(--border-width) solid var(--border-soft); }
.service-care-plans .care-dedicated-details dt { color: var(--text); font-weight: var(--weight-semibold); }
.service-care-plans .care-dedicated-details dd { margin: var(--space-1) 0 0; color: var(--text-muted); }
.service-care-plans .care-terms { display: grid; gap: var(--space-3) var(--space-6); margin: var(--space-5) 0 0; }
.service-care-plans .care-hosting-art { width: 100%; max-width: 36rem; margin: 2rem 0 0; }
.service-care-plans.service-refined #who-it-is-for ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.service-care-plans.service-refined #who-it-is-for li { padding: 1.75rem; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--surface); }
.service-care-plans.service-refined #who-it-is-for strong { font-size: var(--type-h3); font-weight: 650; }
.service-care-plans .v2-process li { padding-top: var(--space-4); border: 0; border-top: var(--border-width) solid var(--border-soft); }
.service-care-plans.service-refined .v2-process .v2-number { display: block; margin-bottom: var(--space-4); color: var(--number-accent); font: clamp(1.5rem, 2.6vw, 2rem)/1 var(--font-serif); }
.service-care-plans .v2-faq { display: grid; }
.service-care-plans .v2-faq details, .service-care-plans .v2-faq details:first-child { border: 0; border-top: var(--border-width) solid var(--border-soft); }
.service-care-plans .v2-faq details:last-child { border-bottom: var(--border-width) solid var(--border-soft); }
.service-care-plans.service-refined .v2-faq summary { padding: 1.25rem 3rem 1.25rem 0; }
.service-care-plans.service-refined .v2-faq summary::after { right: 1.25rem; top: 1.25rem; }
.service-care-plans .v2-faq details p { padding: 0 1.25rem 1.25rem 0; }
.service-care-plans #hosting-enquiry { background: var(--page-bg); border-top: var(--border-width) solid var(--border-soft); }
.service-care-plans #hosting-enquiry .v2-contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: clamp(1.25rem, 3.5vw, 3rem); border: var(--border-width) solid var(--border-soft); border-radius: var(--radius-surface); background: var(--surface); }
.service-care-plans #hosting-enquiry :is(.v2-contact-copy, .v2-form-panel) { min-width: 0; }
.service-care-plans #hosting-enquiry .v2-contact-copy > p { margin: 0; color: var(--text-muted); }
.service-care-plans #hosting-enquiry .v2-email { overflow-wrap: anywhere; }
.service-care-plans #hosting-enquiry .v2-form-panel { padding: 0; }
.service-care-plans #hosting-enquiry .v2-form-panel > p { font: var(--weight-heading) var(--type-h3)/1.3 var(--font-serif); margin-bottom: var(--space-5); }
.service-care-plans #hosting-enquiry .contact-form { display: grid; gap: 1.25rem; margin: 0; }
.service-care-plans #hosting-enquiry .form-field { min-width: 0; margin: 0; }
.service-care-plans #hosting-enquiry label { font-size: 1rem; margin-bottom: .5rem; }
.service-care-plans #hosting-enquiry :is(input, select, textarea), .service-care-plans .website-review-dialog :is(input, textarea) { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--field-bg); color: var(--text); font: inherit; }
.service-care-plans #hosting-enquiry :is(input, select, textarea) { background: var(--page-bg); }
.service-care-plans #hosting-enquiry select { appearance: auto; background-image: none; padding-right: 1rem; }
.service-care-plans #hosting-enquiry textarea { min-height: 10rem; }
.service-care-plans #hosting-enquiry :is(.form-field > p, #hosting-message-help, #hosting-privacy) { font-size: .9rem; line-height: 1.75; color: var(--text-muted); }
.service-care-plans #hosting-enquiry .form-field > p { margin-top: .5rem; }
.service-care-plans #hosting-enquiry .form-feedback.is-error { color: var(--error-text); }
.service-care-plans #hosting-enquiry .form-submit { width: auto; justify-self: start; padding: var(--space-3) var(--space-5); border: var(--border-width) solid var(--button-bg); border-radius: var(--radius-control); background: var(--button-bg); color: var(--button-text); font: inherit; font-weight: var(--weight-semibold); }
.service-care-plans #hosting-enquiry .form-submit:enabled:not(.is-loading):hover { background: var(--button-hover); }
.service-care-plans .website-review-cta { padding-block: var(--section-space); border-block: var(--border-width) solid var(--border-soft); background: var(--surface); }
.service-care-plans .website-review-small-print { margin-top: 1rem; color: var(--text-muted); }
.service-care-plans .website-review-dialog { border-radius: 20px; }
.service-care-plans .website-review-dialog a { color: var(--brand-link); }
.service-care-plans .care-art { margin: 0; min-width: 0; color: var(--text); }
.service-care-plans .care-art svg, .service-care-plans svg.care-art { display: block; width: 100%; height: auto; }
.service-care-plans .care-art-paper { fill: var(--surface); }
.service-care-plans .care-art-tint { fill: var(--accent-wash); }
.service-care-plans .care-art-outline, .service-care-plans .care-art-line { stroke: var(--border-strong); stroke-width: 1; }
.service-care-plans .care-art-line { fill: none; }
.service-care-plans .care-art-grid { stroke: var(--border-soft); }
.service-care-plans .care-art-wire, .service-care-plans .care-art-stroke { stroke: var(--accent); }
.service-care-plans .care-art-stroke { stroke-width: 1.5; }
.service-care-plans .care-art-gold { fill: none; stroke: var(--number-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-care-plans .care-art-accent { color: var(--link); fill: var(--accent); }
.service-care-plans g.care-art-accent[fill="none"] { fill: none; stroke: var(--accent); }
.service-care-plans .care-art-label { fill: var(--text); font-family: var(--font-sans); font-size: 21px; font-weight: 500; letter-spacing: -0.5px; }
.service-care-plans .care-art-index { fill: var(--text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; }
.service-care-plans .care-art-note { fill: var(--text-muted); font-family: var(--font-sans); font-size: 17px; }

@media (min-width: 768px) {
 .service-care-plans.service-refined .care-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .service-care-plans .care-plan-grid .care-plan-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; }
 .service-care-plans .care-plan-featured .care-plan-visual { border-radius: var(--radius-surface) 0 0 var(--radius-surface); border-bottom: 0; border-inline-end: var(--border-width) solid var(--border-soft); }
 .service-care-plans .care-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
 .service-care-plans.service-refined .svc-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem 4rem; }
 .service-care-plans .care-system { grid-column: 2; grid-row: 1; }
 .service-care-plans .care-comparison-hint { display: none; }
 .service-care-plans .care-comparison-table tr > :first-child { width: 20%; }
 .service-care-plans #hosting-enquiry .v2-contact-grid { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); }
 .service-care-plans #hosting-enquiry .v2-form-panel { padding-inline-start: var(--space-6); border-inline-start: var(--border-width) solid var(--border-soft); }
 .service-care-plans #hosting-enquiry .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .service-care-plans #hosting-enquiry .contact-form > * { grid-column: 1 / -1; }
 .service-care-plans #hosting-enquiry .form-field:has(> :is(#hosting-name, #hosting-email)) { grid-column: auto; }
 .service-care-plans.service-refined #who-it-is-for ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .service-care-plans.service-refined #hosting > .container { gap: 2rem 4rem; }
 .service-care-plans #hosting > .container > p { grid-column: 2; grid-row: 1 / 3; padding-top: 0; }
 .service-care-plans .care-hosting-art { grid-column: 1; grid-row: 2; margin: 0; }
}

/* V4 presentation for pages using the editorial service components. */
:is(.service-development, .service-agencies, .service-partners) main {
     --type-h1: clamp(2.15rem, 3.9vw, 3.6rem);
     --type-h2: clamp(1.85rem, 3vw, 2.7rem);
     --type-h3: clamp(1.25rem, 1.8vw, 1.65rem);
     --section-space: clamp(3.25rem, 6vw, 6.5rem);
}
:is(.service-development, .service-agencies, .service-partners) main :is(h1, h2) { font-weight: var(--weight-regular); }
:is(.service-development, .service-agencies, .service-partners) main :is(h1, h2) em { color: inherit; }
:is(.service-development, .service-agencies, .service-partners) main :is(p, dd) a { color: var(--link); }
:is(.service-development, .service-agencies, .service-partners) main .v2-eyebrow {
     display: flex;
     align-items: center;
     gap: var(--space-3);
     margin-bottom: var(--space-3);
     color: var(--number-accent);
}
:is(.service-development, .service-agencies, .service-partners) main .v2-eyebrow::before {
     content: '';
     flex: 0 0 1.75rem;
     border-top: 2px solid var(--gold);
}
:is(.service-development, .service-agencies, .service-partners) .se-hero {
     padding-block: var(--space-5) clamp(2.5rem, 5vw, 4.5rem);
     background: var(--page-bg);
}
:is(.service-development, .service-agencies, .service-partners) .se-hero::before { content: none; }
:is(.service-development, .service-agencies, .service-partners) .se-breadcrumb { margin-bottom: clamp(1.5rem, 3.5vw, 3rem); }
:is(.service-development, .service-agencies, .service-partners) .se-hero h1 {
     font-weight: var(--weight-regular);
     letter-spacing: -0.035em;
     text-wrap: balance;
}
:is(.service-development, .service-agencies, .service-partners) .se-hero h1 > br { display: revert; }
:is(.service-development, .service-agencies, .service-partners) .se-hero h1 em { display: inline; margin: 0; }
:is(.service-development, .service-agencies, .service-partners) .se-intro { max-width: 56ch; line-height: 1.6; }
:is(.service-development, .service-agencies, .service-partners) .se-hero-media { padding: 0; }
:is(.service-development, .service-agencies, .service-partners) .se-hero-media img { max-height: none; }
.service-development.service-custom-software-development .se-hero-media { max-width: 29rem; }
:is(.service-development, .service-agencies, .service-partners) .se-actions .v2-button { box-shadow: none; }

:is(.service-development, .service-agencies, .service-partners) .se-brief { border-radius: var(--radius-surface); }
:is(.service-development, .service-agencies, .service-partners) .se-brief dt { color: var(--text); }
:is(.service-development, .service-agencies, .service-partners) .se-surface--tint { background: var(--surface-alt); }

/* Capability, audience and related cards share the current theme's surface. */
:is(.service-development, .service-agencies, .service-partners) :is(.se-audience-item, .se-editorial-list article, .se-related-grid article),
:is(.service-development, .service-agencies, .service-partners) #technical-development li {
     padding-inline: clamp(1.25rem, 2.3vw, 2rem);
     border-radius: var(--radius-control);
     background: var(--service-surface);
     box-shadow: none;
}
:is(.service-development, .service-agencies, .service-partners) :is(.se-audience-item, .se-editorial-list article) { color: var(--text); }
:is(.service-development, .service-agencies, .service-partners) #technical-development strong {
     font-family: var(--font-serif);
}
:is(.service-development, .service-agencies, .service-partners) .se-related-grid h3 a {
     color: var(--link);
     text-decoration-thickness: 1px;
     text-underline-offset: 0.2em;
}

:is(.service-development, .service-agencies, .service-partners) .se-process li {
     padding-inline: 0;
     border: 0;
     border-top: var(--border-width) solid var(--border-soft);
     border-radius: 0;
     background: transparent;
}
:is(.service-development, .service-agencies, .service-partners) .se-number,
:is(.service-development, .service-agencies, .service-partners) .se-numbered article::before {
     inline-size: max-content;
     min-inline-size: 2.25rem;
     white-space: nowrap;
     overflow-wrap: normal;
     border: 0;
     border-radius: 0;
     background: transparent;
     color: var(--number-accent);
     font: clamp(1.5rem, 2.6vw, 2rem)/1 var(--font-serif);
}
:is(.service-development, .service-agencies, .service-partners) .se-process .se-number { place-items: center start; }
:is(.service-development, .service-agencies, .service-partners) .se-faq { gap: 0; }
:is(.service-development, .service-agencies, .service-partners) .se-faq details {
     border: 0;
     border-top: var(--border-width) solid var(--border-soft);
     border-radius: 0;
     background: transparent;
}
:is(.service-development, .service-agencies, .service-partners) .se-faq details:last-child { border-bottom: var(--border-width) solid var(--border-soft); }
:is(.service-development, .service-agencies, .service-partners) .se-faq summary { padding-inline-start: 0; }
:is(.service-development, .service-agencies, .service-partners) .se-faq p { padding-inline-start: 0; }
:is(.service-development, .service-agencies, .service-partners) .se-cta { background: var(--page-bg); }
:is(.service-development, .service-agencies, .service-partners) .se-next-step { border-radius: var(--radius-surface); }

@media (min-width: 768px) {
     :is(.service-development, .service-agencies, .service-partners) .se-editorial-list--wide.se-numbered article { padding-inline-start: 5.5rem; }
}
