/* Client case study pages (Sub Delivery). Premium long-form layout on top of the market design tokens. */
.cs { --cs-night: #0b0b10; --cs-night-2: #12121a; --cs-line: rgba(0, 0, 0, .08); --cs-w: 1180px; color: var(--ink); overflow-x: clip; }
.cs-wrap { max-width: var(--cs-w); margin: 0 auto; padding: 0 var(--gutter, 28px); position: relative; z-index: 1; }
.cs h1, .cs h2, .cs h3 { letter-spacing: -.03em; margin: 0; }
.cs h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; }
.cs p { line-height: 1.7; color: var(--ink-2); margin: 0; }
.cs-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.cs-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 78% 0%, rgba(85, 70, 255, .55), transparent 70%), radial-gradient(45% 40% at 8% 30%, rgba(232, 144, 44, .22), transparent 70%); }
.cs-glow.soft { background: radial-gradient(50% 45% at 50% 0%, rgba(85, 70, 255, .38), transparent 70%); }

/* hero */
.cs-hero { background: var(--cs-night); color: #fff; position: relative; padding: 28px 0 0; overflow: hidden; }
.cs-crumb { display: flex; gap: 10px; font-size: 13px; color: #9a9aa8; margin-bottom: 54px; flex-wrap: wrap; }
.cs-crumb a:hover { color: #fff; } .cs-crumb b { color: #fff; font-weight: 500; }
.cs-hero-copy { max-width: 820px; }
.cs-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #e6e6ee; }
.cs-pill i { width: 7px; height: 7px; border-radius: 50%; background: #e8902c; box-shadow: 0 0 0 4px rgba(232, 144, 44, .22); }
.cs-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: 1.02; font-weight: 750; margin: 22px 0 22px; color: #fff; }
.cs-hero h1 em { font-style: normal; background: linear-gradient(95deg, #a8a2ff, #f0a24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-hero p { color: #b9b9c6; font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 680px; }
.cs-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cs-actions.center { justify-content: center; }
.cs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .15s, background .15s, box-shadow .15s; }
.cs-btn.primary { background: #fff; color: var(--cs-night); }
.cs-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(168, 162, 255, .35); }
.cs-btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.cs-btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.cs-stage { margin-top: 64px; padding-bottom: 0; transform: perspective(1800px) rotateX(5deg); transform-origin: 50% 100%; margin-bottom: -2px; }
.cs-stage .cs-browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -10px 80px rgba(85, 70, 255, .45), 0 40px 90px rgba(0, 0, 0, .5); max-height: 520px; overflow: hidden; }

/* browser + phone frames */
.cs-browser { background: #fff; border: 1px solid var(--cs-line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(25, 20, 70, .16); }
.cs-browser.dark { background: #0d0d12; border-color: rgba(255, 255, 255, .1); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.cs-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1f1f5; border-bottom: 1px solid var(--cs-line); }
.cs-browser.dark .cs-bar, .cs-hero .cs-bar { background: #1a1a22; border-color: rgba(255, 255, 255, .08); }
.cs-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6d6dd; }
.cs-bar i:nth-child(1) { background: #ff5f57; } .cs-bar i:nth-child(2) { background: #febc2e; } .cs-bar i:nth-child(3) { background: #28c840; }
.cs-bar span { margin-left: 14px; font-size: 12px; color: #8b8b98; background: rgba(0, 0, 0, .05); padding: 3px 14px; border-radius: 999px; min-width: 180px; }
.cs-browser.dark .cs-bar span, .cs-hero .cs-bar span { background: rgba(255, 255, 255, .06); color: #8d8d9c; }
.cs-browser img { width: 100%; height: auto; display: block; }
.cs-phone { width: min(260px, 100%); border-radius: 38px; padding: 10px; background: #111118; box-shadow: 0 30px 80px rgba(25, 20, 70, .35), inset 0 0 0 2px #2a2a35; position: relative; }
.cs-phone img { width: 100%; height: auto; display: block; border-radius: 28px; }
.cs-notch { position: absolute; top: 14px; left: 50%; width: 80px; height: 20px; transform: translateX(-50%); background: #111118; border-radius: 0 0 14px 14px; z-index: 2; }

/* glance + jump */
.cs-glance { background: var(--cs-night-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 2; }
.cs-glance-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.cs-glance-grid > div { padding: 22px 20px; border-left: 1px solid rgba(255, 255, 255, .09); }
.cs-glance-grid > div:first-child { border-left: 0; padding-left: 0; }
.cs-glance small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #85859a; margin-bottom: 5px; font-weight: 600; }
.cs-glance b { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; }
.cs-jump { position: sticky; top: 0; z-index: 30; background: rgba(251, 251, 253, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--cs-line); }
.cs-jump nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cs-jump a { white-space: nowrap; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.cs-jump a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* sections */
.cs-sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.cs-tint { background: var(--panel); }
.cs-dark { background: var(--cs-night); color: #fff; overflow: hidden; }
.cs-dark h2 { color: #fff; } .cs-dark p { color: #b9b9c6; } .cs-dark .cs-eyebrow { color: #a8a2ff; }
.cs-head { max-width: 720px; margin-bottom: 44px; }
.cs-head p { margin-top: 16px; font-size: 1.08rem; }
.cs-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cs-split.top { align-items: start; }
.cs-split h2 { margin-bottom: 18px; } .cs-split p + p { margin-top: 14px; }
.cs-card-soft { background: #fff; border: 1px solid var(--cs-line); border-radius: 26px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 20px 60px rgba(25, 20, 70, .08); }
.cs-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.cs-checks li { display: flex; gap: 12px; line-height: 1.55; color: var(--ink-2); }
.cs-checks li svg { flex: none; margin-top: 3px; color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.cs-checks b { color: var(--ink); }
.cs-checks.sm { gap: 10px; font-size: .96rem; }
.cs-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(44px, 6vw, 80px); }
.cs-num { padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--cs-line); }
.cs-num b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; background: linear-gradient(120deg, var(--accent), #e8902c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-num span { display: block; margin-top: 10px; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* routes */
.cs-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cs-route { background: #fff; border: 1px solid var(--cs-line); border-radius: 28px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(25, 20, 70, .07); }
.cs-route.dark { background: linear-gradient(160deg, #15151f, #0b0b10); border-color: transparent; color: #e6e6ee; box-shadow: 0 30px 80px rgba(25, 20, 70, .3); }
.cs-route.dark h3, .cs-route.dark .cs-checks b { color: #fff; } .cs-route.dark p, .cs-route.dark .cs-checks li { color: #b9b9c6; }
.cs-route.dark .cs-checks li svg { background: #e8902c; }
.cs-route-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.cs-route.dark .cs-route-tag { background: rgba(232, 144, 44, .16); color: #f0a24a; }
.cs-route h3 { font-size: 1.7rem; margin: 16px 0 8px; }
.cs-route-lead { margin-bottom: 20px; }
.cs-route-foot { margin-top: auto; padding-top: 22px; font-size: .95rem; line-height: 1.55; border-top: 1px solid var(--cs-line); color: var(--ink-2); }
.cs-route.dark .cs-route-foot { border-color: rgba(255, 255, 255, .12); color: #c9c9d6; }
.cs-route-foot b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cs-route.dark .cs-route-foot b { color: #f0a24a; }
.cs-route .cs-checks { margin-bottom: 26px; }

/* figures */
.cs figure { margin: 0; }
.cs figcaption { margin-top: 14px; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.cs figcaption b { color: var(--ink); } .cs-dark figcaption { color: #9a9aa8; } .cs-dark figcaption b { color: #fff; }
.cs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.cs-hero-shot { margin-bottom: 4px; }

/* dashboards chips */
.cs-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cs-chips > div { padding: 22px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.cs-chips b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.cs-chips span { color: #a9a9b8; font-size: .93rem; line-height: 1.55; }

/* portals */
.cs-devices { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: end; padding: clamp(20px, 4vw, 48px); border-radius: 32px; background: linear-gradient(160deg, #eceafe, #f8f4ec); }
.cs-note { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 14px; }
.cs-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.cs-mini { padding: 24px; border-radius: 20px; border: 1px solid var(--cs-line); background: #fff; }
.cs-mini b { font-size: 1.1rem; display: block; margin-bottom: 6px; }

/* install */
.cs-steps { counter-reset: s; list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 0; position: relative; }
.cs-steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--accent), rgba(85, 70, 255, .1)); }
.cs-steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; line-height: 1.6; color: var(--ink-2); }
.cs-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 6px var(--panel); }
.cs-steps b { color: var(--ink); margin-right: 6px; }
.cs-install { position: sticky; top: 90px; }

/* capabilities */
.cs-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cs-cap { padding: 28px; border-radius: 24px; border: 1px solid var(--cs-line); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cs-cap:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(25, 20, 70, .12); border-color: rgba(85, 70, 255, .3); }
.cs-cap-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), #fdf1e2); color: var(--accent-ink); margin-bottom: 18px; }
.cs-cap h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cs-cap p { font-size: .95rem; line-height: 1.6; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.cs-tags span { padding: 7px 15px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .85rem; }
.cs-own { margin-top: 18px; max-width: 720px; }

/* cta */
.cs-cta { background: var(--cs-night); color: #fff; position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) 0; text-align: center; }
.cs-cta .cs-eyebrow { color: #a8a2ff; } .cs-cta h2 { color: #fff; max-width: 760px; margin: 0 auto 18px; }
.cs-cta p { color: #b9b9c6; max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* reveal (only when JS is present) */
.cs-js .cs-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.cs-js .cs-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cs-js .cs-reveal { opacity: 1; transform: none; transition: none; } .cs-stage { transform: none; } }

@media (max-width: 1000px) {
  .cs-glance-grid { grid-template-columns: 1fr 1fr; } .cs-glance-grid > div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .cs-glance-grid > div:nth-child(-n+2) { border-top: 0; }
  .cs-split, .cs-routes, .cs-duo { grid-template-columns: 1fr; }
  .cs-numbers { grid-template-columns: 1fr 1fr; } .cs-caps { grid-template-columns: 1fr 1fr; } .cs-chips, .cs-three { grid-template-columns: 1fr; }
  .cs-install { position: static; }
}
@media (max-width: 640px) {
  .cs-crumb { margin-bottom: 34px; } .cs-stage { margin-top: 40px; transform: none; } .cs-stage .cs-browser { max-height: 300px; }
  .cs-caps, .cs-numbers { grid-template-columns: 1fr; }
  .cs-devices { grid-template-columns: 1fr; justify-items: center; }
  .cs-bar span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cs-btn { width: 100%; justify-content: center; }
}
