/* /systems/ page only. Owned by the Systems workspace (~/Systems); loaded after site.css. */
/* page tokens: the two dark bands (quality, closing) lift off the dark page instead of sinking into it */
:root { --band-a: #1B2C66; --band-b: #0F1522; --band-glow: rgba(124,155,255,0.28); --band-ring: transparent; --band-shadow: 0 30px 60px -36px rgba(15,21,34,0.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band-a: #2A4296; --band-b: #172242; --band-glow: rgba(140,170,255,0.34); --band-ring: rgba(124,155,255,0.32); --band-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); } }
:root[data-theme="dark"] { --band-a: #2A4296; --band-b: #172242; --band-glow: rgba(140,170,255,0.34); --band-ring: rgba(124,155,255,0.32); --band-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); }

/* phone illustration (hero) and its caption */
.ks-syscap { font-size: 12.5px; color: var(--slate); letter-spacing: 0.02em; }
.ks-phone { position: absolute; width: 262px; padding: 9px; border-radius: 46px; background: #0B0F17; box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 50px 90px -30px rgba(0,0,0,0.7), inset 0 0 0 2px #2A3142; }
.ks-phone-screen { border-radius: 38px; background: var(--paper); padding: 12px 14px 20px; min-height: 500px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.ks-phone-status { display: flex; justify-content: space-between; align-items: center; font: 650 12px/1 var(--font-text); padding: 4px 10px 8px; }
.ks-phone-status i { width: 74px; height: 22px; border-radius: 12px; background: #0B0F17; margin: -2px auto 0 22px; }
.ks-phone-app { font-size: 11px; font-weight: 600; color: var(--app-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.ks-phone-hi { font: 700 22px/1.05 var(--display); font-stretch: 86%; letter-spacing: -0.015em; margin-bottom: 2px !important; }
.ks-phone-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.ks-phone-k { font-size: 10.5px; font-weight: 650; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px !important; }
.ks-phone-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ks-phone-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12px; white-space: nowrap; }
.ks-phone-card li + li { border-top: 1px solid var(--line); }
.ks-phone-card li b { font-weight: 600; }
.ks-phone-card li span { font-size: 11px; color: var(--slate); white-space: nowrap; }
.ks-phone-card li span.is-amber { color: #855700; font-weight: 650; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ks-phone-card li span.is-amber { color: #F2C766; } }
:root[data-theme="dark"] .ks-phone-card li span.is-amber { color: #F2C766; }
.ks-phone-card.is-cta { background: color-mix(in srgb, var(--app) 12%, var(--surface)); border-color: color-mix(in srgb, var(--app) 30%, var(--line)); }
.ks-phone-card.is-cta li span { color: var(--app-ink); font-weight: 650; }

.ks-cases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ks-case-top { display: flex; align-items: center; gap: 12px; }
.ks-case-top .ks-pglyph { grid-row: auto; flex: none; }
.ks-case-kind { font: 650 12.5px/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-ink); }
.ks-case h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.12; text-wrap: balance; }
.ks-case-idea { font-style: italic; color: var(--ink); }
.ks-case-link a { font-weight: 600; color: var(--app-ink); }
.ks-pagehead .ks-actions { margin-top: 4px; }
.ks-case-win strong { color: var(--app-ink); font-weight: 650; }
.ks-syshero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); overflow: hidden; background: radial-gradient(70% 90% at 85% 40%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%); }
.ks-syshero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ks-syshero-copy { display: grid; gap: 20px; }
.ks-sysphone-wrap { position: relative; display: grid; justify-items: center; gap: 14px; margin: 0; }
.ks-sysphone { position: relative; transform: rotate(3deg); font: 13px/1.4 var(--font-text); }
.ks-sysphone .ks-phone-screen { min-height: 470px; }
.ks-qa { border-top: 0 !important; padding-top: 0; }
.ks-qa-band .ks-h2 { color: #fff; }
.ks-qa-band .ks-lede { color: rgba(255,255,255,0.8); }
.ks-qa-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.ks-qa-list li { display: grid; gap: 8px; align-content: start; }
.ks-qa-list .ks-pglyph { grid-row: auto; color: #B9C8FF; background: rgba(124,155,255,0.16); margin-bottom: 4px; }
.ks-qa-list h3 { font: 650 1.08rem/1.3 var(--font-text); color: #fff; text-wrap: balance; }
.ks-qa-list p { color: rgba(255,255,255,0.74); font-size: 15.5px; }
@media (max-width: 900px) { .ks-qa-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ks-qa-list { grid-template-columns: 1fr; } }

/* five case cards: subgrid rows so title, quote, list and proof line align across each row */
.ks-case { grid-column: span 2; grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 12px; align-content: start; padding: clamp(22px, 2.8vw, 30px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(165deg, color-mix(in srgb, var(--app) 10%, var(--surface)), var(--surface) 55%); }
.ks-case:nth-child(-n+2) { grid-column: span 3; }
.ks-case-win { display: grid; gap: 10px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--slate); }
@media (max-width: 960px) { .ks-cases { grid-template-columns: 1fr 1fr; } .ks-case, .ks-case:nth-child(-n+2) { grid-column: auto; } .ks-case:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ks-cases { grid-template-columns: 1fr; } .ks-case { display: flex; flex-direction: column; grid-row: auto; } .ks-case:last-child { grid-column: auto; } }

/* hero on narrow screens: smaller phone, less scroll before the cards */
@media (max-width: 860px) { .ks-syshero-in { grid-template-columns: 1fr; } .ks-sysphone { transform: rotate(2deg); zoom: 0.84; } }
@media (max-width: 480px) { .ks-sysphone { zoom: 0.76; } .ks-sysphone-wrap { gap: 8px; } }

/* shared dark band */
.ks-band { position: relative; padding: clamp(28px, 4.5vw, 56px); border-radius: 30px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, var(--band-glow), transparent 70%), linear-gradient(150deg, var(--band-a), var(--band-b) 72%); box-shadow: 0 0 0 1px var(--band-ring), var(--band-shadow); }
.ks-band .ks-h2 { color: #fff; }
.ks-band .ks-lede { color: rgba(255,255,255,0.8); }
.ks-band a:not(.ks-button) { color: #C9D6FF; }

/* what could yours do: full-bleed tint, each idea ends in a sample notification */
.ks-sysideas { background: color-mix(in srgb, var(--signal) 5%, var(--paper)); }

/* questions */

/* closing band: how we'd build it, then the ask */
.ks-sysclose { border-top: 0 !important; padding-top: 0; }
.ks-path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.ks-path::before { content: ""; position: absolute; left: 22px; right: calc((100% - 84px) / 4 - 22px); top: 22px; height: 1px; background: linear-gradient(90deg, rgba(185,200,255,0.5), rgba(185,200,255,0.12)); }
.ks-path li { position: relative; display: grid; gap: 8px; align-content: start; }
.ks-path-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 8px; font: 700 1.1rem/1 var(--display); color: #fff; background: var(--band-a); box-shadow: inset 0 0 0 1px rgba(185,200,255,0.45), 0 0 0 6px color-mix(in srgb, var(--band-a) 60%, transparent); }
.ks-path h3 { font: 650 1.08rem/1.3 var(--font-text); color: #fff; text-wrap: balance; }
.ks-path p { color: rgba(255,255,255,0.74); font-size: 15.5px; }
.ks-close-in { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 3.5vw, 40px); border-radius: 22px; background: rgba(170,190,255,0.08); box-shadow: inset 0 0 0 1px rgba(185,200,255,0.16); }
.ks-close-cta { display: grid; gap: 14px; align-content: start; }
.ks-close-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; color: #fff; text-wrap: balance; }
.ks-close-cta p { color: rgba(255,255,255,0.8); max-width: 34em; }
.ks-close-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ks-close-act .ks-button { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #14204A; }
.ks-close-act .ks-button svg { width: 19px; height: 19px; }
.ks-close-act span { font-size: 15px; color: rgba(255,255,255,0.72); user-select: all; overflow-wrap: anywhere; }
.ks-close-me { display: grid; gap: 10px; align-content: start; padding-left: clamp(0px, 4vw, 48px); border-left: 1px solid rgba(255,255,255,0.14); }
.ks-close-me h3 { font: 650 13px/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.ks-close-me p { color: rgba(255,255,255,0.8); font-size: 15.5px; }
.ks-close-me a { font-weight: 600; }
@media (max-width: 900px) {
  .ks-path { grid-template-columns: 1fr 1fr; }
  .ks-path::before { display: none; }
  .ks-close-in { grid-template-columns: 1fr; }
  .ks-close-me { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 560px) {
  .ks-path { grid-template-columns: 1fr; gap: 0; }
  .ks-path li { grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; padding-bottom: 26px; }
  .ks-path li > :not(.ks-path-n) { grid-column: 2; }
  .ks-path-n { grid-row: span 2; margin: 0; }
  .ks-path li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 1px; background: rgba(185,200,255,0.3); }
  .ks-path h3 { padding-top: 10px; }
  .ks-band { padding: 28px 22px; border-radius: 26px; }
  .ks-close-in { padding: 26px 0 0; margin-top: 8px; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid rgba(255,255,255,0.14); }
}

/* hero label */
.ks-eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 650 13px/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
.ks-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 18%, transparent); }

/* why build a system: four benefits, each with a proof line from a running system */
.ks-syswhy { background: var(--surface); }
.ks-section.ks-syswhy + .ks-section { border-top: 0; }
.ks-why { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 72px); }
.ks-why li { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 12px; align-content: start; }
.ks-why .ks-pglyph { grid-row: auto; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 4px; }
.ks-why .ks-pglyph svg { width: 24px; height: 24px; }
.ks-why h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.1; text-wrap: balance; }
.ks-why li > p:not(.ks-why-proof) { color: var(--slate); max-width: 32em; }
.ks-why-proof { align-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 550; color: var(--ink); background: color-mix(in srgb, var(--app) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--app) 22%, var(--line)); }
.ks-why-proof span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-ink); }
@media (max-width: 760px) { .ks-why { grid-template-columns: 1fr; } .ks-why li { display: grid; grid-row: auto; grid-template-rows: none; } }

/* why one built for you: fair side-by-side, the custom column carries the colour */
.ks-custom { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ks-custom .ks-section-head { margin-bottom: 0; }
.ks-vs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; table-layout: fixed; }
.ks-vs th, .ks-vs td { padding: 16px 20px; text-align: left; vertical-align: top; }
.ks-vs th { font: 650 12.5px/1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding-top: 20px; padding-bottom: 12px; }
.ks-vs td { border-top: 1px solid var(--line); color: var(--slate); }
.ks-vs th:last-child, .ks-vs td:last-child { background: color-mix(in srgb, var(--signal) 7%, var(--surface)); border-left: 1px solid color-mix(in srgb, var(--signal) 22%, var(--line)); border-right: 1px solid color-mix(in srgb, var(--signal) 22%, var(--line)); }
.ks-vs th:last-child { color: var(--signal); border-top: 1px solid color-mix(in srgb, var(--signal) 22%, var(--line)); border-radius: 18px 18px 0 0; }
.ks-vs tr:last-child td:last-child { border-bottom: 1px solid color-mix(in srgb, var(--signal) 22%, var(--line)); border-radius: 0 0 18px 18px; }
.ks-vs td:last-child { color: var(--ink); font-weight: 550; padding-left: 48px; position: relative; border-top-color: color-mix(in srgb, var(--signal) 14%, var(--line)); }
.ks-vs td:last-child svg { position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; color: var(--signal); }
@media (max-width: 900px) { .ks-custom { grid-template-columns: 1fr; } }
.ks-vs-them { width: 44%; }
@media (max-width: 560px) { .ks-vs-them { width: 40%; } }
@media (max-width: 560px) { .ks-vs { font-size: 15px; } .ks-vs th, .ks-vs td { padding: 14px 12px; } .ks-vs td:last-child { padding-left: 38px; } .ks-vs td:last-child svg { left: 12px; top: 15px; width: 18px; height: 18px; } }

/* it connects the dots: one real question, the answer, and the trail that got there */
.ks-section.ks-syswhy + .ks-sysstory { border-top: 0; padding-top: 0; }
.ks-sysstory { background: var(--surface); }
.ks-section.ks-sysstory + .ks-section { border-top: 0; }
.ks-story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 32px); padding: clamp(18px, 2.5vw, 28px); border-radius: 28px; border: 1px solid var(--line); background: var(--paper); }
.ks-story-chat { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.ks-bubble { max-width: 92%; padding: 14px 18px; border-radius: 20px; font-size: 16.5px; line-height: 1.45; }
.ks-bubble.is-me { justify-self: end; background: var(--signal); color: var(--signal-ink); border-bottom-right-radius: 6px; font-weight: 550; }
.ks-bubble.is-it { justify-self: start; display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.ks-story-src { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ks-story-src li { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; color: var(--signal); background: color-mix(in srgb, var(--signal) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 20%, var(--line)); }
.ks-story-how { display: grid; gap: 16px; align-content: start; padding: clamp(8px, 1.5vw, 16px) clamp(4px, 1vw, 12px); }
.ks-story-how h3 { font: 650 13px/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.ks-story-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ks-story-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 12px 18px 0; }
.ks-story-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.ks-story-steps .ks-pglyph { grid-row: auto; width: 40px; height: 40px; border-radius: 12px; }
.ks-story-steps .ks-pglyph svg { width: 20px; height: 20px; }
.ks-story-steps strong { display: block; font: 650 1rem/1.3 var(--font-text); padding-top: 2px; }
.ks-story-steps p { color: var(--slate); font-size: 15.5px; }
.ks-story-steps li:last-child { padding: 12px 14px; margin-left: -14px; border-radius: 16px; background: color-mix(in srgb, var(--signal) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 24%, var(--line)); }
.ks-story-steps li:last-child p { color: var(--ink); }
.ks-story-kicker { font: 700 clamp(1.2rem, 2vw, 1.45rem)/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; margin-top: 4px !important; }
@media (max-width: 900px) { .ks-story { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ks-story { padding: 12px; border-radius: 22px; } .ks-story-chat { padding: 16px; } .ks-bubble { max-width: 100%; font-size: 15.5px; } .ks-story-steps li:last-child { margin-left: 0; } }

/* what we can build: the building blocks, beyond what our own systems use */
.ks-blocks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ks-blocks li { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ks-blocks .ks-pglyph { grid-row: auto; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.ks-blocks .ks-pglyph svg { width: 20px; height: 20px; }
.ks-blocks h3 { font: 650 1.05rem/1.3 var(--font-text); }
.ks-blocks p { color: var(--slate); font-size: 15px; }
.ks-blocks-tools { margin-top: 22px !important; color: var(--slate); max-width: 46em; }
@media (max-width: 1000px) { .ks-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ks-blocks { grid-template-columns: 1fr; gap: 0; } .ks-blocks li { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; } .ks-blocks .ks-pglyph { grid-row: span 2; margin: 0; } }

/* featured example: the AI receptionist, with an illustrated call */
.ks-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); margin-bottom: 18px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.ks-feature-copy { display: grid; gap: 14px; align-content: start; }
.ks-feature-kind { font: 650 12.5px/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.ks-feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; text-wrap: balance; }
.ks-feature-copy > p { color: var(--slate); }
.ks-call { margin: 0; display: grid; gap: 12px; padding: clamp(18px, 2.5vw, 26px); border-radius: 24px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, var(--band-glow), transparent 70%), linear-gradient(150deg, var(--band-a), var(--band-b) 72%); box-shadow: 0 0 0 1px var(--band-ring), var(--band-shadow); }
.ks-call-head { display: flex; align-items: center; gap: 10px; font: 650 12px/1.2 var(--font-text); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.ks-call-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }
.ks-call-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ks-call-lines li { display: grid; gap: 3px; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.ks-call-lines li span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.ks-call-lines li.is-caller { justify-self: start; background: rgba(255,255,255,0.1); border-bottom-left-radius: 5px; }
.ks-call-lines li.is-ai { justify-self: end; background: rgba(160,185,255,0.24); border-bottom-right-radius: 5px; }
.ks-call-text { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #14204A; font-size: 14.5px; font-weight: 600; }
.ks-call-text span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #2B54E0; }
.ks-call .ks-syscap { color: rgba(255,255,255,0.6); justify-self: end; }
@media (max-width: 900px) { .ks-feature { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ks-feature { padding: 20px; border-radius: 22px; } .ks-call-lines li { max-width: 94%; } }

/* mid-page ask */
.ks-midcta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--signal) 24%, var(--line)); }
.ks-midcta p { color: var(--slate); }
.ks-midcta strong { color: var(--ink); }

.ks-story-head { color: var(--slate); margin-bottom: 6px; }

.ks-hero-note { font-size: 14.5px; color: var(--slate); margin-top: -6px !important; }
.ks-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px/1.4 var(--font-text); letter-spacing: 0.05em; text-transform: uppercase; color: #8A5A00; background: #FFF1D6; border: 1px solid #F3D9A4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ks-tag { color: #F2C766; background: rgba(242,199,102,0.12); border-color: rgba(242,199,102,0.3); } }
:root[data-theme="dark"] .ks-tag { color: #F2C766; background: rgba(242,199,102,0.12); border-color: rgba(242,199,102,0.3); }
.ks-case-sum { color: var(--slate); font-size: 15.5px; }

/* examples: seven stories, one panel; without script they simply stack */
.ks-stories { display: grid; gap: 18px; }
.ks-tabs { display: none; }
.ks-stories.is-tabbed .ks-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ks-tabs::-webkit-scrollbar { display: none; }
.ks-tabs button { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 600 15px/1 var(--font-text); color: var(--ink); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.ks-tabs button svg { width: 18px; height: 18px; color: var(--signal); }
.ks-tabs button:hover { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); }
.ks-tabs button[aria-selected="true"] { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.ks-tabs button[aria-selected="true"] svg { color: currentColor; }
.ks-tabs button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.ks-stories .ks-feature { margin: 0; align-items: start; }
.ks-feature-moment { font-size: 1.08rem; color: var(--ink) !important; }
.ks-feature-result { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--signal) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 20%, var(--line)); color: var(--ink) !important; }
.ks-feature-result strong { color: var(--signal); }
.ks-trail { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ks-trail li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 8px 10px 10px; border-radius: 14px; }
.ks-trail li:not(:last-child)::after { content: ""; position: absolute; left: 26.5px; top: 44px; bottom: -6px; width: 1px; background: rgba(185,200,255,0.28); }
.ks-trail-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(160,185,255,0.18); color: #C9D6FF; }
.ks-trail-ic svg { width: 18px; height: 18px; }
.ks-trail strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 650 14.5px/1.3 var(--font-text); color: #fff; padding-top: 1px; }
.ks-trail strong em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #F2C766; color: #3A2A00; }
.ks-trail p { font-size: 14.5px; color: rgba(255,255,255,0.78); }
.ks-trail li.is-catch { background: rgba(242,199,102,0.12); box-shadow: inset 0 0 0 1px rgba(242,199,102,0.35); }
.ks-trail li.is-catch p { color: #fff; }

/* questions: one line each, open what you need */
.ks-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.ks-faq details { border-top: 1px solid var(--line); }
.ks-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 1.12rem/1.3 var(--display); letter-spacing: -0.01em; }
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::after { content: ""; position: static; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.ks-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.ks-faq details p { color: var(--slate); padding: 0 28px 20px 0; max-width: 36em; }
.ks-faq summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
@media (max-width: 760px) { .ks-faq { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ks-faq summary::after { transition: none; } }
@media (min-width: 900px) { .ks-stories.is-tabbed .ks-tabs { flex-wrap: wrap; overflow: visible; } .ks-stories .ks-feature { align-items: center; } }
.ks-midcta p { flex: 1 1 26rem; }
