/* XS Capacity: component additions from the owner review of 30 Oct 2026. Tokens only (tokens.css custom properties).
   Served as a separate file, linked from Layout on every page (EN since r4, ES since r5-es: the ES twins use the same components). */
/* ---------- owner review 30 Oct 2026 (EN) ---------- */
/* home "what": one item per service, stacked (never side by side as equals) */
.svc-split { display: grid; margin-top: var(--s-6); border-top: 1px solid var(--line); max-width: var(--measure-prose); }
.svc-split li { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); color: var(--fg); }
.svc-split .mark { margin-top: .3rem; color: var(--accent-text); }
/* home "start": intro, then one paragraph per service */
.answer-stack { display: grid; gap: var(--s-4); }
.faq-a p + p { margin-top: var(--s-3); }
/* contact: required marks */
.form .lbl { display: inline; }
.form .req { color: var(--accent-text); font-weight: var(--wght-strong); }
.form .req-note { font-size: var(--text-small); color: var(--fg-3); margin-top: calc(-1 * var(--s-4)); }

/* home "What you get in a pilot": two ledgers split by a hairline, deliverable row tinted like the CRM flag in the mocks */
.pilot-cols { position: relative; z-index: 1; display: grid; gap: var(--s-12); }
@media (width >= 64rem) { .pilot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; } .pilot-col + .pilot-col { border-left: 1px solid var(--line); padding-left: var(--s-12); } .pilot-col:first-child { padding-right: var(--s-12); } }
.pilot-col { display: grid; align-content: start; gap: var(--s-6); min-width: 0; }
.pilot-head { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 2px solid var(--fg); }
.pilot-n { font-size: var(--text-small); font-variant-numeric: tabular-nums; color: var(--accent-text); font-weight: var(--wght-ui); }
.pilot-name { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.032em; font-stretch: var(--wdth-head); }
.pilot-ledger { margin: 0; display: grid; }
.pilot-row { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.pilot-row dt { display: inline-flex; align-items: center; gap: .6rem; font-weight: var(--wght-ui); color: var(--fg); font-size: var(--text-body-s); }
.pilot-row dd { margin: 0; display: grid; gap: var(--s-2); color: var(--fg-2); }
.pilot-row--out { border-bottom: 0; margin-top: var(--s-3); padding: var(--s-5); border-radius: var(--radius-md); background: var(--color-blue-tint); --fg: var(--color-ink); --fg-2: var(--color-ink-2); }
.pilot-row--out dt .mark { color: var(--color-blue); }
@media (width >= 48rem) { .pilot-row--out { margin-inline: calc(-1 * var(--s-5)); } .pilot-row { grid-template-columns: 10rem minmax(0, 1fr); column-gap: var(--s-6); } .pilot-row dt { align-self: start; padding-top: .15rem; } }
.pilot-col .more { margin-top: var(--s-2); }
.pilot-ledger--doc { border-top: 1px solid var(--line); }

/* ---------- owner review r2 (30 Oct 2026, EN) ---------- */
/* home "Where do you need more sales capacity?": one full-width block per service (SvcStack.astro), not a card row.
   1.0 reactivation on a paper panel; 2.0 closing on night; 2.1 higher education on the next night step, joined under
   closing with a branch line, so it reads as closing for admissions and never next to reactivation. */
.svc-stack { position: relative; z-index: 1; display: grid; gap: var(--s-6); margin-top: var(--head-gap); }
.svc-blk { border-radius: var(--radius-md); }
.svc-blk--join { margin-top: calc(-1 * var(--s-6)); border-radius: 0 0 var(--radius-md) var(--radius-md); --bg: var(--color-night-2); }
.svc-blk--closing { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.svc-row { display: grid; gap: var(--s-4); padding: var(--s-8) var(--s-6); }
.svc-row-n { font-size: var(--text-small); font-variant-numeric: tabular-nums; font-weight: var(--wght-ui); color: var(--accent-text); }
.svc-row-head { display: grid; gap: var(--s-2); min-width: 0; }
.svc-row-k { font-size: var(--text-body-s); font-weight: var(--wght-ui); color: var(--accent-text); }
.svc-row-t { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); line-height: 1.04; letter-spacing: -0.036em; font-weight: var(--wght-head); font-stretch: var(--wdth-head); color: var(--fg); text-wrap: balance; }
.svc-row-t a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); text-underline-offset: .2em; transition: text-decoration-color var(--dur-2); }
.svc-row-t a:hover { text-decoration-color: var(--accent-text); }
.svc-row-t a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-xs); }
.svc-row-t .arw { color: var(--accent-text); margin-left: .35em; vertical-align: -.08em; }
.svc-row-d { color: var(--fg-2); font-size: var(--text-lead); line-height: 1.5; max-width: 34rem; overflow-wrap: break-word; }
.svc-blk--dr { border: 1px solid var(--line); }
.svc-blk--join .svc-row { border-top: 1px solid var(--line); position: relative; }
.svc-blk--join .svc-row-n { position: relative; padding-left: var(--s-6); }
.svc-blk--join .svc-row-n::before { content: ""; position: absolute; left: .35rem; bottom: .55em; width: calc(var(--s-6) - .75rem); height: calc(var(--s-8) + 1.1em); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: var(--radius-xs); }
@media (width >= 64rem) {
  .svc-row { grid-template-columns: 7rem minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-10); align-items: start; padding: var(--s-12) var(--s-10); }
  .svc-row-n { font-size: var(--text-h4); padding-top: .55rem; }
  .svc-row-d { padding-top: .35rem; }
  .svc-blk--join .svc-row { padding-block: var(--s-10); }
  .svc-blk--join .svc-row-n { padding-left: var(--s-8); }
  .svc-blk--join .svc-row-n::before { left: .5rem; width: calc(var(--s-8) - .9rem); height: calc(var(--s-10) + 1.2em); }
}
/* home "How XS Capacity works": a line that applies to High-Ticket Closing only, under its service name */
.answer-scoped { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.answer-scope { display: block; margin-bottom: var(--s-1); font-size: var(--text-body-s); font-weight: var(--wght-ui); color: var(--accent-text); }
/* contact: one block per service, each linking to the form on its service page */
.contact-route-go { align-self: center; }
@media (width >= 64rem) { .contact-route-go { justify-self: start; } }
/* service-page forms: rule between the white answers band and a white form band */
[data-tone="white"] + .form-band[data-tone="white"] { border-top: 1px solid var(--color-line-1); }
.contact-route { padding-block: var(--s-16); }
@media (width >= 64rem) { .contact-route { padding-block: var(--s-20); } }

/* ---------- r4 (30 Oct 2026, owner): founder trust box on /about/ ----------
   Sits in the answer band's grid: card in the body column, aligned with the answers above it.
   One elevation method (tinted surface, no border, no shadow); radius-md like the pilot deliverable row. */
.founder-note { display: grid; padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
@media (width >= 64rem) { .founder-note { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-16); } .fn-card { grid-column: 2; } }
.fn-card { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: var(--s-5); row-gap: var(--s-4); align-items: center; padding: var(--s-5); border-radius: var(--radius-md); background: var(--surface); max-width: var(--measure-prose); }
.fn-photo { display: block; inline-size: 6rem; block-size: 6rem; }
.fn-photo img { display: block; inline-size: 6rem; block-size: 6rem; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-paper-2); }
.fn-id { display: grid; gap: var(--s-1); min-width: 0; }
.fn-name { color: var(--fg); font-size: var(--text-h4); line-height: var(--text-h4--line-height); letter-spacing: var(--text-h4--letter-spacing); font-weight: var(--wght-head); font-stretch: var(--wdth-head); }
.fn-role { color: var(--fg-3); font-size: var(--text-small); line-height: var(--text-small--line-height); font-weight: var(--wght-ui); }
.fn-bio { grid-column: 1 / -1; color: var(--fg-2); font-size: var(--text-body-s); line-height: var(--text-body-s--line-height); text-wrap: pretty; }
.fn-links { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0 0 0 calc(-1 * var(--s-2)); padding: 0; }
.fn-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-block-size: 2.75rem; padding-inline: var(--s-2); color: var(--fg); font-size: var(--text-ui); font-weight: var(--wght-ui); text-decoration: none; border-radius: var(--radius-xs); transition: color var(--dur-2); }
.fn-links a span { border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color var(--dur-2); }
.fn-links svg { inline-size: 1.125rem; block-size: 1.125rem; fill: currentColor; flex: none; }
@media (hover: hover) { .fn-links a:hover { color: var(--accent-text); } .fn-links a:hover span { border-color: currentColor; } }
@media (width >= 48rem) {
  .fn-card { grid-template-columns: 6rem minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: start; column-gap: var(--s-6); padding: var(--s-6); }
  .fn-photo { grid-row: 1 / span 3; }
  .fn-bio, .fn-links { grid-column: 2; }
  .fn-id { padding-top: var(--s-1); }
}

/* r4: step path on home tabs. Grid items stretch to the tallest step, which spread the
   short steps' rows and pushed numbers/titles off the shared baseline. Pin rows to the top. */
@media (width >= 64rem) {
  .path-step { align-content: start; }
}

/* ---------- r5-es (30 Oct 2026): header language switcher (desktop, next to the CTA; the mobile menu and footer carry their own link) ---------- */
.lang-switch { display: none; }
@media (width >= 64rem) {
  .lang-switch { display: inline-flex; align-items: center; height: 2.5rem; padding-inline: .5rem; margin-right: calc(-1 * var(--s-3)); color: var(--color-night-fg-2); font-size: var(--text-ui); font-weight: var(--wght-ui); text-decoration: none; border-radius: var(--radius-pill); transition: color var(--dur-2); }
  .lang-switch:hover { color: var(--color-night-fg); text-decoration: underline; text-underline-offset: .25em; }
}
