/* ============================================================
   SOL.CSS — Solutions page components.
   Loaded after site.css, by solutions.html only.

   All four pattern sections run the same five beats:
     1. .stmt      the problem, stated full width
     2. .ask       the diagnostic — one question they can't answer
     3. .solve     the solve, as prose at one measure
     4. .caps      capabilities — numbered rows, parts as pills
     5. .appl      use cases, as a table, then
        .story     the proof point, gradient card
        (.story--note is the no-metric variant, currently unused)

   Gradient language is borrowed from se.css (.se-dark, .se-layer,
   .se-spot) so this page reads as part of the same site.
============================================================ */

/* ------------------------------------------------------------
   PAGE HEAD — same treatment as Sovereign Enterprise / Foundry.
------------------------------------------------------------ */
.page-head--sol {
  position: relative;
  overflow: hidden;
  padding: 176px 0 104px;
  background:
    radial-gradient(820px 460px at 74% 12%, rgba(94,94,255,.11), transparent 68%),
    linear-gradient(180deg, rgba(94,94,255,.05) 0%, rgba(94,94,255,0) 62%);
}
.page-head--sol .page-head__h1 {
  font-size: 66px;
  letter-spacing: -2.8px;
  line-height: 1.03;
  max-width: 15ch;
}
.page-head--sol .page-head__lede {
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.62;
  max-width: 64ch;
}
.page-head--sol .page-head__mark--tunnel {
  width: 620px;
  height: 620px;
  right: calc(var(--gutter) - 150px);
  transform: translateY(-46%);
  color: #3b3bb8;
  opacity: .30;
}
:root[data-theme="dark"] .page-head--sol .page-head__mark--tunnel {
  color: #a8a8ff;
  opacity: .30;
}
@media (max-width: 1024px) {
  .page-head--sol .page-head__mark--tunnel {
    width: 440px; height: 440px;
    right: calc(var(--gutter) - 120px);
    opacity: .22;
  }
}
@media (max-width: 980px) {
  .page-head--sol { padding: 140px 0 76px; }
  .page-head--sol .page-head__h1 { font-size: 44px; letter-spacing: -1.6px; }
}
@media (max-width: 760px) {
  .page-head--sol .page-head__mark--tunnel { display: none; }
}
@media (max-width: 560px) {
  .page-head--sol .page-head__h1 { font-size: 34px; letter-spacing: -1.1px; }
  .page-head--sol .page-head__lede { font-size: 16px; }
}

/* ------------------------------------------------------------
   SUB-NAV — centered, numbered, sticky under the 82px header.
------------------------------------------------------------ */
.sol-subnav {
  position: sticky;
  top: 82px;
  z-index: 400;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}
.sol-subnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sol-subnav__inner::-webkit-scrollbar { display: none; }
.sol-subnav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: color .2s ease, border-color .2s ease;
}
.sol-subnav a i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--border);
}
.sol-subnav a:hover { color: var(--text); }
.sol-subnav a.active { color: var(--text); border-bottom-color: var(--accent); }
.sol-subnav a.active i { color: var(--accent-text); }
@media (max-width: 1000px) { .sol-subnav__inner { justify-content: flex-start; gap: 22px; } }

.section[id] { scroll-margin-top: 148px; }

/* ------------------------------------------------------------
   BEAT 1 (v4) — THE PROBLEM, stated full width. Statement in
   large type, supporting paragraph beneath. No vertical split.
------------------------------------------------------------ */
.stmt { margin-top: 44px; }
.stmt__k {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.stmt__q {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -1.1px;
  color: var(--text);
  /* 28ch keeps both statements to two lines; 26ch orphans the last word
     of the longer one. */
  max-width: 28ch;
}
.stmt__b {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 82ch;
}
.stmt__b strong { color: var(--text); font-weight: 500; }
@media (max-width: 700px) {
  .stmt__q { font-size: 24px; letter-spacing: -.7px; max-width: none; }
  .stmt__b { font-size: 15px; }
}

/* ------------------------------------------------------------
   BEAT 1b — THE SOLVE. Prose, one measure, no device. The
   explanation the capabilities list then makes concrete.
------------------------------------------------------------ */
.solve { margin-top: 52px; }
.solve__p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 84ch;
}
.solve__p + .solve__p { margin-top: 18px; }
.solve__p strong { color: var(--text); font-weight: 500; }
@media (max-width: 700px) { .solve__p { font-size: 15px; } }

/* ------------------------------------------------------------
   BEAT 2a — CAPABILITIES (Digital Brain). Capability-led, not
   an architecture diagram: a numbered list, each row carrying
   its constituent parts as quiet pills. Light gradient only —
   it should sit under the prose, not overpower it.
------------------------------------------------------------ */
.caps {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: linear-gradient(160deg, rgba(94,94,255,.055) 0%, rgba(94,94,255,.015) 55%, rgba(94,94,255,0) 100%);
  overflow: hidden;
}
.caps__row {
  display: grid;
  grid-template-columns: 54px 300px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 24px 30px;
}
.caps__row + .caps__row { border-top: 1px solid var(--border); }
.caps__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent-text);
}
.caps__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.4px;
  line-height: 1.25;
  color: var(--text);
}
.caps__body {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.caps__parts { display: flex; flex-wrap: wrap; gap: 7px; }
.caps__part {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 13px;
  white-space: nowrap;
  background: var(--page-bg);
}
.caps__part--key {
  color: var(--accent-text);
  font-weight: 500;
  border-color: rgba(94,94,255,.42);
  background: rgba(94,94,255,.07);
}
@media (max-width: 1000px) {
  .caps__row { grid-template-columns: 40px 1fr; gap: 6px 18px; padding: 22px 24px; }
  .caps__parts { grid-column: 2; margin-top: 14px; }
}
@media (max-width: 560px) {
  .caps__row { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .caps__n { margin-bottom: 8px; }
  .caps__parts { grid-column: 1; }
}

/* ------------------------------------------------------------
   BEAT 3 — APPLIED SOLUTIONS, as a table. Same component in
   every pattern section, so the page has a spine.
------------------------------------------------------------ */
.appl-wrap { margin-top: 26px; overflow-x: auto; }
.appl {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.appl th {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px 12px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.appl td {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.appl tr:last-child td { border-bottom: none; }
.appl__name {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -.35px;
  line-height: 1.3;
  color: var(--text);
  width: 27%;
  min-width: 190px;
}
.appl__from {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--accent-text);
}
.appl__what {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
/* Industries ride under the explanation as quiet pills rather than
   claiming their own column. */
.appl__tags {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.appl__tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px;
  white-space: nowrap;
}
.appl__where {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  width: 20%;
  min-width: 150px;
  padding-right: 0 !important;
}
@media (max-width: 820px) {
  .appl, .appl tbody, .appl tr, .appl td { display: block; width: 100%; }
  .appl thead { display: none; }
  .appl tr { padding: 18px 0; border-bottom: 1px solid var(--border); }
  .appl tr:last-child { border-bottom: none; }
  .appl td { border: none; padding: 0 0 8px; min-width: 0; width: auto; }
  .appl__where { padding-bottom: 0 !important; }
}

/* ------------------------------------------------------------
   BEAT 4 — THE PROOF POINT. Gradient card; stats sit in a
   right-hand rail on desktop, stacked on mobile.
------------------------------------------------------------ */
.story {
  margin-top: 56px;
  border: 1px solid rgba(94,94,255,.30);
  border-radius: 5px;
  background: linear-gradient(142deg, rgba(94,94,255,.11) 0%, rgba(94,94,255,.035) 58%, rgba(94,94,255,.015) 100%);
  padding: 32px 34px;
}
.story__k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.story__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 44px;
  align-items: start;
}
.story__ind {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.story__t {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.8px;
  line-height: 1.15;
  color: var(--text);
}
.story__b {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
}
.story__b strong { color: var(--text); font-weight: 500; }
.story__stats { display: flex; flex-direction: column; gap: 20px; }
.story__stat { display: flex; flex-direction: column; gap: 3px; }
.story__val {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1.6px;
  line-height: 1;
  color: var(--accent-text);
}
.story__lbl { font-size: 13px; line-height: 1.45; color: var(--muted); }
.story__quote {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(94,94,255,.22);
}
.story__q {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -.35px;
  color: var(--text);
  max-width: 76ch;
}
.story__attr {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 26px; }
  .story__stats { flex-direction: row; flex-wrap: wrap; gap: 26px 40px; }
}
@media (max-width: 560px) {
  .story { padding: 24px 22px; }
  .story__t { font-size: 21px; letter-spacing: -.5px; }
  .story__val { font-size: 30px; }
  .story__q { font-size: 16px; }
}

/* A beat-5 card with no client metric — same shell, single column, so the
   section without a story reads as deliberate variation, not a hole. */
.story--note .story__grid { grid-template-columns: 1fr; }
.story--note .story__b { max-width: 84ch; }
