/* Software services: scoped extension of the Flow service page and buyer-guide families.
   Used by /custom-software-development (body.ss-hub, after tmn-home.css and tmn-industry.css).
   Every selector is scoped to 1 of the 2 body classes. No global rules, no new tokens, no motion.
   Prefix is ss- because tmn-industry.css already owns sw- for the work band. */

/* ===== Browser surfaces on the hub (the guide inherits buyer-guides.css) ===== */
.ss-hub ::selection { background: var(--gold-2); color: var(--ink); }
.ss-hub :focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 4px; }
.ss-hub main a:not(.button) { text-underline-offset: 0.2em; }

/* ===== Hub hero: T0, settled from first paint. The inherited entrance transforms are off on this page only ===== */
@media (prefers-reduced-motion: no-preference) {
  .ss-hub .hero .display,
  .ss-hub .hero-deck,
  .ss-hub .hero-ctas,
  .ss-hub .hero-light { animation: none; }
}
.ss-hub .ss-hero { border-bottom: 1px solid var(--line); }
.ss-hub .ss-hero .display { max-width: 12.5em; }
.ss-hub .ss-hero .hero-deck { max-width: 34em; }
.ss-hero-note { margin-top: 1.25rem; max-width: 38em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }

/* The hero's second column: a typographic index of what the studio builds, not a product picture */
.ss-index { position: relative; z-index: 2; }
.ss-index-title { padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ss-index dl { margin: 0; }
.ss-index dl > div { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.ss-index dt { font-size: 1.125rem; font-weight: 580; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink); }
.ss-index dd { margin: 0.3rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 900px) {
  .ss-index { padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
}

/* ===== Hub ledger: a term beside its explanation, hairlines only ===== */
.ss-ledger { margin: clamp(2rem, 3.5vw, 2.75rem) 0 0; border-top: 1px solid var(--line); }
.ss-ledger > div { display: grid; gap: 0.35rem; padding: 1.2rem 0 1.35rem; border-bottom: 1px solid var(--line); }
.ss-ledger dt { font-size: 1.1875rem; font-weight: 580; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); }
.ss-ledger dd { margin: 0; max-width: 60ch; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
@media (min-width: 800px) {
  .ss-ledger > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
}
.ss-hub .ss-note { margin-top: 1.5rem; max-width: 62ch; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }

/* ===== Hub split: argument on the left, the working list on the right ===== */
.ss-split { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.ss-split-lead h2 { max-width: 16ch; font-size: clamp(2rem, 3.1vw, 2.85rem); }
.ss-split-lead p { max-width: 36em; margin-top: 1.1rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.ss-split-lead a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(15 27 47 / 0.35); }
.ss-split-lead a:hover { text-decoration-color: var(--ink); }
@media (min-width: 1000px) {
  .ss-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
  .ss-split-lead { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* An ordered check where the order carries meaning, so the numerals stay */
.ss-sequence { margin: 0; padding: 0; list-style: none; counter-reset: ss-step; border-top: 1px solid var(--line); }
.ss-sequence li { counter-increment: ss-step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 1rem; padding: 1.3rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.ss-sequence li::before { content: counter(ss-step); grid-row: 1 / span 2; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.ss-sequence h3 { font-size: 1.1875rem; line-height: 1.35; }
.ss-sequence p { margin-top: 0.4rem; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* Support terms beside their lead */
.ss-terms { margin: 0; border-top: 1px solid var(--line); }
.ss-terms > div { padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--line); }
.ss-terms dt { font-size: 1.125rem; font-weight: 580; line-height: 1.35; color: var(--ink); }
.ss-terms dd { margin: 0.4rem 0 0; max-width: 58ch; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* ===== Hub first-release scope: what ships first beside what waits ===== */
.ss-scope { display: grid; gap: 2.25rem; margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.ss-scope h3 { padding-bottom: 0.85rem; border-bottom: 1px solid var(--ink); font-size: 1.1875rem; }
.ss-scope ul { margin: 0; padding: 0; list-style: none; }
.ss-scope li { padding: 0.9rem 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.ss-scope-later h3 { border-bottom-color: var(--line); color: var(--ink-2); }
.ss-scope-later li { color: var(--ink-2); }
@media (min-width: 800px) {
  .ss-scope { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4.5rem); }
}

/* ===== Hub responsibilities: a native table on a white surface, stacked rows on phones ===== */
.ss-table-wrap { margin-top: clamp(2rem, 3.5vw, 2.75rem); overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.ss-table { width: 100%; border-collapse: collapse; font-size: 0.9875rem; line-height: 1.6; }
.ss-table caption { caption-side: top; padding: 1.1rem 1.5rem 0.5rem; text-align: left; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
.ss-table th,
.ss-table td { padding: 1.05rem 1.5rem; text-align: left; vertical-align: top; }
.ss-table thead th { border-bottom: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.ss-table tbody tr + tr > * { border-top: 1px solid var(--line-2); }
.ss-table tbody th { width: 24%; font-weight: 580; color: var(--ink); }
.ss-table td { width: 38%; color: var(--ink-2); }
@media (max-width: 760px) {
  .ss-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ss-table,
  .ss-table caption,
  .ss-table tbody,
  .ss-table tr,
  .ss-table th,
  .ss-table td { display: block; width: auto; }
  .ss-table caption { padding: 1rem 1.15rem 0.85rem; border-bottom: 1px solid var(--line-2); }
  .ss-table tbody tr { padding: 1.1rem 1.15rem 1.2rem; }
  .ss-table tbody tr + tr { border-top: 1px solid var(--line-2); }
  .ss-table tbody tr + tr > * { border-top: 0; }
  .ss-table tbody th,
  .ss-table td { padding: 0; }
  .ss-table tbody th { margin-bottom: 0.5rem; font-size: 1.0625rem; }
  .ss-table td + td { margin-top: 0.7rem; }
  .ss-table td::before { content: attr(data-label); display: block; margin-bottom: 0.15rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
}

/* ===== Hub published starting scopes: 2 rows on 1 surface, prices set in tabular figures ===== */
.ss-packages { margin-top: clamp(2rem, 3.5vw, 2.75rem); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.ss-package { display: grid; gap: 0.75rem; padding: clamp(1.4rem, 2.6vw, 2rem); }
.ss-package + .ss-package { border-top: 1px solid var(--line-2); }
.ss-package h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); font-weight: 560; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.2; }
.ss-package p { max-width: 46ch; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.ss-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ss-hub .ss-price { max-width: none; color: var(--ink); }
.ss-from { font-size: 0.875rem; color: var(--ink-3); }
.ss-num { font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 440; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.ss-unit { font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 900px) {
  .ss-package { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(11rem, auto); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: baseline; }
  .ss-hub .ss-price { justify-content: flex-end; }
}

/* A public integration example, set apart by a hairline rather than a box */
.ss-example { display: grid; gap: 1.25rem 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line); }
.ss-example h3 { font-size: 1.25rem; }
.ss-example p { max-width: 60ch; margin-top: 0.5rem; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 900px) {
  .ss-example { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (max-width: 430px) {
  .ss-example .button { width: 100%; }
}

.ss-hub .ss-response { margin-top: 1.25rem; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }
.ss-hub .ss-response a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgb(15 27 47 / 0.35); }

/* ===== Guide: the 3-way decision table reads as stacked choices on phones ===== */
.ss-guide .ss-choices thead th:first-child { width: 24%; }
.ss-guide .ss-choices tbody th { width: auto; }
@media (max-width: 760px) {
  .ss-guide .ss-choices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ss-guide .ss-choices table,
  .ss-guide .ss-choices tbody,
  .ss-guide .ss-choices tr,
  .ss-guide .ss-choices tbody th,
  .ss-guide .ss-choices td { display: block; width: auto; }
  .ss-guide .ss-choices caption { display: block; }
  .ss-guide .ss-choices tr { padding: 1.15rem 0 1.3rem; border-bottom: 1px solid var(--line); }
  .ss-guide .ss-choices tbody th,
  .ss-guide .ss-choices td { padding: 0; border-bottom: 0; }
  .ss-guide .ss-choices tbody th { margin-bottom: 0.6rem; font-size: 18px; line-height: 1.4; }
  .ss-guide .ss-choices td + td { margin-top: 0.8rem; }
  .ss-guide .ss-choices td::before { content: attr(data-label); display: block; margin-bottom: 0.2rem; font-size: 14px; font-weight: 650; color: #45536b; }
}

/* Guide lists and the privacy request */
.ss-guide .ss-list { max-width: 73ch; margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ss-guide .ss-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ss-guide .ss-privacy { max-width: 73ch; margin: 28px 0 0; padding: 22px 24px; border-radius: 14px; background: var(--paper-2); }
.ss-guide .bg-article .ss-privacy p { margin: 0; color: var(--ink); }
.ss-guide .ss-privacy strong { font-weight: 650; }
.ss-guide .ss-decision { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 440px) {
  .ss-guide .ss-privacy { padding: 18px; }
}
