/* =====================================================================
   SOLUTIONS v2: styles for solutions/index-v2.html, loaded after solutions.css.
   Prefix s2- for the new storyline sections; sitc-flow for the six-step journey.
   Uses the shared p4-split, sol-head, o4-bundle and btn classes from components.css and base.css.
   ===================================================================== */

/* ---------- shared bits ---------- */
.s2-handoff { margin: clamp(32px, 4vw, 52px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink); }
.s2-handoff--dark { color: #fff; border-top-color: var(--navy-line); }
.s2-kicker-sm { margin: 28px 0 0; font-family: var(--o4-hud); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.s2-proof { margin: 22px 0 0; color: var(--muted); }
.s2-proof b { color: var(--ink); }
.s2-cta { margin-top: 26px; }
.s2-ic { width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1 · the problem: editorial list, no boxes ---------- */
.s2-problem__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.s2-problem__head { position: sticky; top: 120px; }
.s2-gaps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.s2-gap { display: grid; grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 28px); padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.s2-gap__n { font-family: var(--display); font-weight: 200; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: .9; letter-spacing: -.04em; color: var(--o4-red); }
.s2-gap > div { display: grid; gap: 8px; }
#main .s2-gap h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); line-height: 1.15; color: var(--ink); }
.s2-gap p { margin: 0; max-width: 46ch; color: var(--muted); line-height: 1.6; }
.s2-fix { justify-self: start; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.s2-fix b { color: var(--blue); font-weight: 600; }
.s2-problem__handoff { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- 2 · approach: one connected track, no boxes ---------- */
.s2-track { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.s2-life { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.s2-life::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--o4-red) 55%, #1FA57A); }
.s2-stage { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 44px; }
.s2-stage__dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--mist); border: 3px solid var(--blue); }
.s2-stage--watch .s2-stage__dot { border-color: var(--o4-red); }
.s2-stage--maintain .s2-stage__dot { border-color: #1FA57A; }
.s2-stage__n { font-family: var(--o4-hud); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#main .s2-stage h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.s2-stage__full { margin: -4px 0 0 !important; font-weight: 600; color: var(--ink) !important; font-size: .95rem !important; }
.s2-stage > p:not(.s2-stage__full) { margin: 4px 0 0; max-width: 34ch; color: var(--muted); line-height: 1.6; }
.s2-stage a { justify-self: start; margin-top: 10px; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.s2-stage a:hover { color: var(--o4-red); }
.s2-loop { margin: clamp(32px, 4vw, 48px) 0 0; font-size: .95rem; color: var(--muted); }
.s2-loop span { color: var(--o4-red); font-size: 1.2rem; }

/* ---------- 4, 6, 7, 8 · split detail sections ---------- */
.s2-split .p4-split__media { aspect-ratio: 5 / 4; }
.s2-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.s2-feats li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.s2-feats b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.s2-feats span { color: var(--muted); line-height: 1.55; }
.s2-split--dark .s2-feats li { border-bottom-color: var(--navy-line); }
.s2-split--dark .s2-feats b { color: #fff; }
.s2-split--dark .s2-feats span, .s2-split--dark .p4-prose p, .s2-split--dark .s2-proof, .s2-split--dark .s2-kicker-sm { color: var(--on-navy-2); }
.s2-split--dark .s2-proof b { color: #fff; }
.s2-split--dark .s2-kicker-sm { color: var(--on-navy-2); }
.s2-flow-strip { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s2-flow-strip li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .05); color: #fff; font-size: .9rem; font-weight: 600; }
.s2-flow-strip li + li::before { content: "\2192"; margin-right: 8px; color: var(--o4-red); }

/* status panel (health monitoring) */
.s2-status { margin: 0; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: #0A1838; color: var(--on-navy); box-shadow: 0 40px 80px -40px rgba(12, 27, 58, .6); display: grid; gap: 14px; }
.s2-status header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--navy-line); }
.s2-status header b { color: #fff; font-weight: 600; }
.s2-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--o4-hud); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2); }
.s2-live i { width: 8px; height: 8px; border-radius: 50%; background: #1FD67F; box-shadow: 0 0 0 4px rgba(31, 214, 127, .18); }
.s2-status__row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: .95rem; }
.s2-status__row > span:first-child { color: var(--on-navy-2); }
.s2-status__row b { text-align: right; color: #fff; }
.s2-meter { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.s2-meter i { display: block; height: 100%; width: var(--w, 50%); border-radius: 8px; background: linear-gradient(90deg, var(--blue-soft), var(--blue)); }
.s2-ok { color: #1FD67F; font-weight: 600; }
.s2-status__alert { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: rgba(255, 31, 90, .12); border: 1px solid rgba(255, 31, 90, .4); color: #fff; font-weight: 600; }
.s2-status__alert em { font-style: normal; color: #FFB3C6; }
.s2-status > p { margin: 0; font-size: .8rem; color: var(--on-navy-2); }

/* ---------- 9 · six-step SITC flow ---------- */
.sitc-flow { position: relative; isolation: isolate; overflow: hidden; background: var(--navy);
  background-image: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(46, 94, 180, .35), transparent 70%); color: var(--on-navy); }
.sitc-flow__head { max-width: 920px; margin-bottom: clamp(44px, 6vw, 84px); }
.sitc-flow__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--o4-hud); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.sitc-flow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--o4-red); box-shadow: 0 0 0 4px rgba(255, 31, 90, .2); }
#main .sitc-flow .o4-h2 { color: #fff; }
.sitc-flow__sub { margin: 16px 0 0; max-width: 60ch; font-size: clamp(1rem, .96rem + .3vw, 1.2rem); line-height: 1.6; color: var(--on-navy-2); }
.sitc-flow__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(10px, 1.2vw, 18px); }
.sitc-flow__steps::before { content: ""; position: absolute; top: 28px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: var(--o4-red); box-shadow: 0 0 14px rgba(255, 31, 90, .6); }
.sitc-flow__step { display: flex; flex-direction: column; }
.sitc-flow__node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--navy); border: 1.5px solid rgba(233, 239, 250, .7); color: #fff; }
.sitc-flow__node svg { width: 24px; height: 24px; }
.sitc-flow__step--build .sitc-flow__node { border-color: var(--blue-soft); color: var(--blue-soft); }
.sitc-flow__step--watch .sitc-flow__node { border-color: var(--o4-red); color: var(--o4-red); box-shadow: 0 0 22px rgba(255, 31, 90, .35); }
.sitc-flow__step--maintain .sitc-flow__node { border-color: #5CD6B0; color: #5CD6B0; }
.sitc-flow__card { flex: 1; margin-top: 36px; padding: clamp(18px, 1.6vw, 24px); border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); }
.sitc-flow__n { display: block; margin-bottom: 14px; font-family: var(--o4-hud); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2); }
.sitc-flow__n b { font-weight: 400; color: #fff; }
#main .sitc-flow__card h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.2; color: #fff; }
.sitc-flow__card > p { margin: 0 0 14px; font-size: .95rem; line-height: 1.55; color: var(--on-navy-2); }
.sitc-flow__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sitc-flow__card li { position: relative; padding-left: 16px; font-size: .9rem; color: var(--on-navy); }
.sitc-flow__card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-soft); }

/* ---------- 10 · sectors: sticky heading and a ruled index ---------- */
.s2-sectors__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.s2-sectors__head { position: sticky; top: 120px; }
.s2-sectors__head .s2-handoff { margin-top: 28px; }
.s2-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.s2-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.s2-row:hover { padding-left: 10px; }
.s2-row__n { font-family: var(--o4-hud); font-size: .74rem; letter-spacing: .12em; color: var(--o4-red); padding-top: 8px; }
.s2-row__main { display: grid; gap: 6px; min-width: 0; }
#main .s2-row h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; color: var(--ink); }
.s2-row__ic { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s2-row__ctx { margin: 0; color: var(--ink); font-size: .98rem; }
.s2-row__focus { margin: 2px 0 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.s2-row__go { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.s2-row__go .s2-ic { width: 16px; height: 16px; margin: 0; transition: transform .3s var(--ease); }
.s2-row__go:hover { color: var(--o4-red); }
.s2-row__go:hover .s2-ic { transform: translateX(4px); }

/* ---------- 11 · why MIPL: one ruled band ---------- */
.s2-why__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.s2-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); }
.s2-why { display: grid; align-content: start; gap: 12px; padding: 28px clamp(16px, 1.8vw, 26px) 8px; border-left: 1px solid var(--navy-line); }
.s2-why:first-child { border-left: 0; padding-left: 0; }
.s2-why__n { font-family: var(--display); font-weight: 200; font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); line-height: 1; color: var(--o4-red); }
#main .s2-why h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.25; color: #fff; }
.s2-why p { margin: 0; color: var(--on-navy-2); line-height: 1.6; font-size: .95rem; }

/* ---------- 12 · FAQ ---------- */
.s2-faq-wrap { max-width: 980px; }
.s2-faq-list { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.s2-faq { border-bottom: 1px solid var(--line); }
.s2-faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.35; color: var(--ink); }
.s2-faq summary::-webkit-details-marker { display: none; }
.s2-faq summary span { position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-right: 2px solid var(--o4-red); border-bottom: 2px solid var(--o4-red); transform: rotate(45deg); transition: transform .3s var(--ease); }
.s2-faq[open] summary span { transform: rotate(-135deg); margin-top: -2px; }
.s2-faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.s2-faq p { margin: 0 0 24px; max-width: 70ch; color: var(--muted); line-height: 1.65; }

/* ---------- 13 · final call to action ---------- */
.s2-bundle__sub { margin: 0; max-width: 56ch; color: var(--on-navy-2); line-height: 1.6; font-size: 1rem; }
.s2-bundle__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .s2-why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s2-why:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .s2-why:nth-child(n+4) { border-top: 1px solid var(--navy-line); }
}
@media (max-width: 999px) {
  .s2-problem__grid, .s2-sectors__grid { grid-template-columns: 1fr; }
  .s2-problem__head, .s2-sectors__head { position: static; }
  .s2-life { grid-template-columns: 1fr; gap: 36px; }
  .s2-life::before { top: 9px; bottom: 9px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--o4-red) 55%, #1FA57A); }
  .s2-stage { padding: 0 0 0 40px; }
  .s2-stage__dot { left: 0; }
  .s2-stage > p:not(.s2-stage__full) { max-width: none; }
  .s2-why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2-why:nth-child(3n+1) { border-left: 1px solid var(--navy-line); padding-left: clamp(16px, 1.8vw, 26px); }
  .s2-why:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .s2-why:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
  .sitc-flow__steps { grid-template-columns: 1fr; gap: 0; }
  .sitc-flow__steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .sitc-flow__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding-bottom: 22px; }
  .sitc-flow__step:last-child { padding-bottom: 0; }
  .sitc-flow__node { margin: 0; }
  .sitc-flow__card { margin-top: 0; }
}
@media (max-width: 599px) {
  .s2-why-list { grid-template-columns: 1fr; }
  .s2-why, .s2-why:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--navy-line); }
  .s2-why:first-child { border-top: 0; }
  .s2-row { grid-template-columns: 36px minmax(0, 1fr); }
  .s2-row__go { grid-column: 2; justify-self: start; margin-top: 10px; }
  .s2-gap { grid-template-columns: 48px minmax(0, 1fr); }
  .s2-status__row { grid-template-columns: 80px minmax(0, 1fr) 44px; }
}
