/* Medorynth AI case study — built on the Medhantara design tokens. */
:root {
  --cs-navy: #071844;
  --cs-midnight: #04112c;
  --cs-ink: #0a1c4c;
  --cs-body: #42537c;
  --cs-blue: #0965ff;
  --cs-violet: #8e16f4;
  --cs-line: #dfe8f8;
  --cs-soft: #f3f7ff;
  --cs-grad: linear-gradient(100deg, #0965ff 0%, #5d36f2 55%, #a21af0 100%);
  --cs-grad-light: linear-gradient(100deg, #7fb1ff 0%, #c49bff 52%, #f3b7ff 100%);
  --cs-shadow: 0 24px 70px rgba(7, 24, 68, .1);
  --cs-radius: 22px;
}

html { scroll-behavior: smooth; }
body[data-page="case-study"] {
  overflow-x: hidden;
  background: #fff;
}
main p { color: var(--cs-body); }
body[data-page="case-study"] ::selection { background: #cfe0ff; color: #071844; }
body[data-page="case-study"] .icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cs-section[id] { scroll-margin-top: 88px; }

.cs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cs-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}
.cs-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #0965ff, #6d2df0 60%, #d13cff);
  box-shadow: 0 0 14px rgba(94, 74, 255, .7);
}

/* Header addition */
.nav-ai { gap: 6px; }
.nav-ai .nav-ai-short { display: none; }
.nav-ai::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0965ff, #a21af0);
  box-shadow: 0 0 0 3px rgba(9, 101, 255, .12);
}
@media (min-width: 900px) and (max-width: 1179px) {
  .nav-ai .nav-ai-full { display: none; }
  .nav-ai .nav-ai-short { display: inline; }
}

/* Shared */
.cs-main { display: block; }
.cs-section {
  position: relative;
  padding-block: clamp(66px, 8.5vw, 116px);
}
.cs-section-head {
  max-width: 850px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}
.cs-section-head h2 {
  margin: 0 0 18px;
  color: var(--cs-navy);
  font-size: clamp(2.1rem, 4.6vw, 3.65rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.052em;
}
.cs-section-head h2 em {
  background: var(--cs-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #1655e9;
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .21em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cs-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.cs-lede {
  max-width: 710px;
  margin: 0;
  color: var(--cs-body);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}
.cs-card-kicker {
  display: block;
  margin-bottom: 8px;
  color: #64748f;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cs-btn { min-height: 50px; padding: 13px 20px; border-radius: 10px; font-size: .92rem; }
.cs-btn-ghost {
  border-color: rgba(159, 190, 255, .38);
  background: rgba(255, 255, 255, .07);
  color: #eaf1ff;
  backdrop-filter: blur(12px);
}
.cs-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.cs-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: #095eff;
  font-size: .84rem;
  font-weight: 750;
}
.cs-inline-link .icon { width: 15px; height: 15px; }
.cs-inline-link:hover { text-decoration: underline; }
.cs-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #e2eafa;
  border-radius: 7px;
  background: #f4f8ff;
  color: #365180;
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Reveal motion */
html.js .cs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .72s ease var(--reveal-delay, 0ms),
    transform .72s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
}
html.js .cs-reveal.is-in { opacity: 1; transform: none; }

/* Hero */
.cs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(54px, 6.5vw, 84px);
  color: #fff;
  background:
    radial-gradient(ellipse at 74% 18%, rgba(75, 79, 220, .32), transparent 46%),
    radial-gradient(ellipse at 18% 82%, rgba(9, 101, 255, .2), transparent 48%),
    linear-gradient(135deg, #04112c 0%, #061a3e 48%, #071844 100%);
}
.cs-hero-grid-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 177, 255, .062) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 177, 255, .062) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 55% 32%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 32%, #000 0%, transparent 78%);
}
.cs-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  animation: cs-float 13s ease-in-out infinite;
}
.cs-orb-a {
  top: -180px;
  right: -100px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(104, 70, 255, .4), transparent 66%);
}
.cs-orb-b {
  bottom: -280px;
  left: -150px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(9, 101, 255, .22), transparent 66%);
  animation-delay: -5s;
}
.cs-hero-orbit {
  position: absolute;
  z-index: -1;
  top: 60px;
  right: -180px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(145, 178, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(145, 178, 255, .025), 0 0 0 160px rgba(145, 178, 255, .018);
  animation: cs-spin 60s linear infinite;
}
.cs-hero-grid {
  display: grid;
  gap: 46px;
  align-items: center;
  padding-bottom: 62px;
}
.cs-hero-copy { position: relative; z-index: 3; min-width: 0; }
.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(159, 190, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: #c0d4f7;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  transition: background .2s, border-color .2s;
}
.cs-kicker:hover { background: rgba(255, 255, 255, .1); border-color: rgba(159, 190, 255, .42); }
.cs-kicker > span { opacity: .45; }
.cs-kicker .icon { width: 13px; height: 13px; opacity: .7; }
.cs-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #5cc8ff;
  box-shadow: 0 0 0 0 rgba(92, 200, 255, .5);
  animation: cs-pulse 2.4s ease-out infinite;
}
.cs-hero h1 {
  max-width: 12ch;
  margin: 25px 0 25px;
  color: #fff;
  font-size: clamp(2.9rem, 6.4vw, 5.25rem);
  font-weight: 860;
  line-height: .94;
  letter-spacing: -.062em;
}
.cs-hero h1 em {
  background: var(--cs-grad-light);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: cs-shimmer 8s ease-in-out infinite alternate;
}
.cs-hero-copy > p {
  max-width: 610px;
  margin-bottom: 28px;
  color: #b8c9e6;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.68;
}
.cs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 26px;
  color: #8fa5ca;
  font-size: .72rem;
  font-weight: 650;
}
.cs-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cs-hero-meta .icon { width: 15px; height: 15px; color: #7ea7ef; }

.cs-hero-visual {
  position: relative;
  min-width: 0;
  perspective: 1400px;
}
.cs-stack {
  position: relative;
  z-index: 3;
  transform: rotate(-1.4deg);
  transform-style: preserve-3d;
  transition: transform .35s ease;
  will-change: transform;
}
.cs-stack-back {
  position: absolute;
  z-index: 1;
  right: 11%;
  bottom: -8%;
  width: 54%;
  overflow: hidden;
  border: 1px solid rgba(180, 206, 255, .18);
  border-radius: 12px;
  background: #0a1a38;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
  opacity: .55;
  transform: rotate(4.5deg);
  filter: saturate(.75) brightness(.7);
}
.cs-browser {
  overflow: hidden;
  border: 1px solid rgba(170, 200, 255, .2);
  border-radius: 15px;
  background: #0a1a38;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.cs-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: linear-gradient(#0c2047, #091a39);
  color: #7e94bd;
  font-size: .59rem;
  font-weight: 650;
}
.cs-browser-bar > i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #37517f;
}
.cs-browser-bar > i:nth-child(1) { background: #4b5f86; }
.cs-browser-bar > i:nth-child(2) { background: #3c537d; }
.cs-browser-bar > i:nth-child(3) { background: #30486f; }
.cs-browser-url {
  min-width: 0;
  margin-left: 8px;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  color: #8199c4;
  font-size: .57rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-browser-live,
.cs-browser-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(92, 200, 255, .12);
  color: #9fe0ff;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-browser-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: cs-blink 2s infinite;
}
.cs-browser:not(.light):not(.cs-browser-dark) > img { width: 100%; height: auto; object-fit: cover; }
.cs-browser > img { width: 100%; height: auto; }
.cs-stack > .cs-browser > img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.cs-stack-back img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }

.cs-float {
  position: absolute;
  z-index: 5;
  padding: 12px 14px;
  border: 1px solid rgba(168, 199, 255, .24);
  border-radius: 13px;
  background: rgba(8, 24, 56, .82);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .34);
  color: #fff;
  backdrop-filter: blur(18px);
  animation: cs-float 7s ease-in-out infinite;
}
.cs-float-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8fa8d3;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cs-float strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}
.cs-float strong span { color: #9ab6e4; font-size: .8rem; font-weight: 650; letter-spacing: 0; }
.cs-float small { display: block; margin-top: 4px; color: #8fa8d3; font-size: .56rem; }
.cs-float-a { top: -30px; left: -26px; animation-delay: -1s; }
.cs-float-b { right: -22px; bottom: -30px; animation-delay: -3s; }
.cs-spark-bars { display: flex; align-items: end; gap: 3px; height: 22px; margin-top: 8px; }
.cs-spark-bars i {
  width: 4px;
  height: calc(var(--h) * .22);
  max-height: 22px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(#7fb1ff, #6d2df0);
  opacity: .8;
}
.cs-float-c {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  left: -34px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(92, 200, 255, .28);
  border-radius: 11px;
  background: rgba(4, 31, 35, .82);
  color: #d9f2ff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  backdrop-filter: blur(16px);
  animation: cs-float 8s 1.5s ease-in-out infinite;
}
.cs-float-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(92, 200, 255, .16);
  color: #9fe0ff;
}
.cs-float-check .icon { width: 15px; height: 15px; }
.cs-float-c strong { display: block; font-size: .62rem; line-height: 1.3; }
.cs-float-c small { display: block; color: #9fc8f0; font-size: .52rem; line-height: 1.35; }

.cs-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(157, 190, 255, .16);
}
.cs-hero-stat {
  padding: 22px 8px 24px;
  border-right: 1px solid rgba(157, 190, 255, .11);
}
.cs-hero-stat:nth-child(2n) { border-right: 0; }
.cs-hero-stat strong {
  display: block;
  color: #fff;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
}
.cs-hero-stat span {
  display: block;
  margin-top: 6px;
  color: #8fa5ca;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .03em;
}
.cs-hero-caption {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px 22px;
  color: #728ab3 !important;
  font-size: .62rem;
  line-height: 1.5;
}
.cs-hero-anim { animation: cs-rise .85s var(--d, 0s) both cubic-bezier(.2, .8, .2, 1); }

/* Proof bar */
.cs-proof { border-bottom: 1px solid var(--cs-line); background: #fff; }
.cs-proof-grid { display: grid; }
.cs-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 21px 0;
  border-bottom: 1px solid #edf2fb;
}
.cs-proof-item:last-child { border-bottom: 0; }
.cs-proof-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: #edf4ff;
  color: #0a63f7;
}
.cs-proof-icon .icon { width: 18px; height: 18px; }
.cs-proof-item strong { display: block; color: var(--cs-navy); font-size: .76rem; line-height: 1.3; }
.cs-proof-item span:not(.cs-proof-icon) { display: block; margin-top: 3px; color: #64748f; font-size: .67rem; line-height: 1.4; }

/* Impact */
.cs-impact {
  background:
    radial-gradient(circle at 88% 8%, rgba(142, 22, 244, .055), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-bottom: 1px solid #eef3fc;
}
.cs-compare {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid #dce7f8;
  border-radius: var(--cs-radius);
  background: #fff;
  box-shadow: 0 26px 65px rgba(16, 46, 110, .08);
}
.cs-compare::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--cs-grad);
}
.cs-compare-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.cs-compare-top h3 {
  max-width: 520px;
  margin: 0;
  color: var(--cs-navy);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -.035em;
}
.cs-big-stat { text-align: left; }
.cs-big-stat strong {
  display: block;
  color: #095eff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.065em;
  background: var(--cs-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-big-stat span { display: block; margin-top: 4px; color: #64748f; font-size: .66rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.cs-compare-rows { display: grid; gap: 20px; }
.cs-compare-row { display: grid; gap: 10px; }
.cs-compare-meta { display: flex; align-items: center; gap: 10px; }
.cs-compare-meta strong { display: block; color: var(--cs-navy); font-size: .8rem; line-height: 1.3; }
.cs-compare-meta small { display: block; color: #64748f; font-size: .67rem; line-height: 1.35; }
.cs-compare-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
}
.cs-compare-dot .icon { width: 16px; height: 16px; }
.cs-dot-muted { background: #edf1f8; color: #7183a7; }
.cs-dot-ai { background: linear-gradient(135deg, #e8f0ff, #f1e6ff); color: #6a2df0; }
.cs-bar-wrap { display: flex; align-items: center; gap: 12px; }
.cs-bar {
  height: 36px;
  flex: 1;
  overflow: hidden;
  border-radius: 9px;
  background: #eef3fb;
}
.cs-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 1.35s cubic-bezier(.2, .8, .2, 1) .15s;
}
.cs-bar-traditional span {
  width: 100%;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, #b7c6df, #93a7c8);
}
.cs-bar-ai span {
  width: 12.5%;
  min-width: 44px;
  background: var(--cs-grad);
  box-shadow: 0 0 22px rgba(89, 58, 244, .35);
}
html.js .cs-compare:not(.is-in) .cs-bar span { width: 0; }
.cs-bar-value { flex: none; color: #41567f; font-size: .69rem; font-weight: 750; white-space: nowrap; }
.cs-compare-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #e2eaf8;
}
.cs-compare-foot p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 680px;
  margin: 0;
  color: #62718f;
  font-size: .66rem;
  line-height: 1.5;
}
.cs-compare-foot .icon { width: 14px; height: 14px; flex: none; color: #9a6cf0; margin-top: 1px; }
.cs-ratio {
  padding: 5px 9px;
  border: 1px solid #dce7fb;
  border-radius: 999px;
  background: #f5f9ff;
  color: #1f56c9;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #dce7f8;
  border-radius: 16px;
  background: #e4ecfa;
}
.cs-metric { padding: 20px 16px; background: #fff; }
.cs-metric strong {
  display: block;
  color: var(--cs-navy);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
}
.cs-metric span { display: block; margin-top: 5px; color: #64748f; font-size: .65rem; line-height: 1.35; }
.cs-snapshot { margin: 13px 0 0; color: #667694 !important; font-size: .64rem; text-align: center; }

/* Roles tabs */
.cs-roles {
  background:
    radial-gradient(circle at 5% 10%, rgba(9, 101, 255, .06), transparent 28%),
    radial-gradient(circle at 95% 92%, rgba(142, 22, 244, .055), transparent 30%),
    #f6f9ff;
  border-block: 1px solid #e8effa;
}
.cs-roles-card {
  overflow: hidden;
  border: 1px solid #dbe6f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 44, 106, .09);
}
.cs-tab-list {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 9px;
  border-bottom: 1px solid #e5edfa;
  background: linear-gradient(180deg, #f7faff, #f2f7ff);
  scrollbar-width: none;
}
.cs-tab-list::-webkit-scrollbar { display: none; }
.cs-tab-label-short { display: none; }
.cs-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4d6086;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.cs-tab .icon { width: 16px; height: 16px; opacity: .8; }
.cs-tab:hover { background: #eaf2ff; color: #0c4edb; }
.cs-tab[aria-selected="true"] {
  background: linear-gradient(120deg, #071844, #122f70);
  color: #fff;
  box-shadow: 0 7px 18px rgba(7, 24, 68, .2);
}
.cs-tab[aria-selected="true"] .icon { opacity: 1; color: #a8c8ff; }
.cs-panel {
  display: grid;
  gap: 26px;
  padding: clamp(20px, 3.2vw, 40px);
  animation: cs-panel-in .45s ease both;
}
.cs-panel[hidden] { display: none; }
.cs-panel-copy { min-width: 0; align-self: center; }
.cs-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.cs-role-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cs-tag-patient { background: #e3f9ff; color: #0a7fa8; }
.cs-tag-doctor { background: #e8f1ff; color: #0b57df; }
.cs-tag-clinic { background: #f0e9ff; color: #6d2df0; }
.cs-tag-rx { background: #fff4df; color: #a97400; }
.cs-tag-platform { background: #e9edff; color: #3c46d8; }
.cs-panel-copy h3 {
  max-width: 560px;
  margin: 0 0 14px;
  color: var(--cs-navy);
  font-size: clamp(1.55rem, 2.9vw, 2.2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.cs-panel-copy > p { max-width: 570px; margin-bottom: 19px; font-size: .88rem; line-height: 1.68; }
.cs-feature-list { display: grid; gap: 9px; margin: 0 0 19px; padding: 0; list-style: none; }
.cs-feature-list li { display: flex; align-items: flex-start; gap: 8px; color: #40557f; font-size: .78rem; line-height: 1.5; }
.cs-feature-list .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  padding: 2px;
  border-radius: 50%;
  background: #e9f3ff;
  color: #0965ff;
}
.cs-shot { min-width: 0; margin: 0; align-self: center; }
.cs-browser.light {
  border-color: #dce7f8;
  background: #fff;
  box-shadow: 0 22px 55px rgba(18, 47, 106, .13);
}
.cs-browser.light .cs-browser-bar {
  border-bottom-color: #e3ebf8;
  background: linear-gradient(#f7faff, #eef4fd);
  color: #7587ab;
}
.cs-browser.light .cs-browser-bar > i { background: #c3d1e9; }
.cs-browser.light .cs-browser-url { border-color: #e5ecf8; background: #fff; color: #7b8bab; }
.cs-browser.light .cs-browser-tag { background: #e9f3ff; color: #165acb; }
.cs-browser.light > img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.cs-shot figcaption { margin-top: 10px; color: #667694; font-size: .62rem; line-height: 1.5; }
.cs-shot figcaption::before { content: "●"; margin-right: 5px; color: #5cc8ff; font-size: .5rem; }

/* Bento */
.cs-features { background: #fff; }
.cs-bento { display: grid; gap: 13px; }
.cs-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e9f8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 45, 105, .045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cs-bento-card:hover { transform: translateY(-4px); border-color: #cbdcf6; box-shadow: 0 20px 46px rgba(16, 45, 105, .1); }
.cs-bento-visual {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 20px;
  border-bottom: 1px solid #e8effa;
  background:
    linear-gradient(rgba(9, 101, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 101, 255, .035) 1px, transparent 1px),
    linear-gradient(135deg, #f2f7ff, #fbfdff);
  background-size: 28px 28px, 28px 28px, auto;
}
.cs-bento-card:nth-child(2) .cs-bento-visual { background: linear-gradient(135deg, #f5f1ff, #fbf9ff); }
.cs-bento-card:nth-child(3) .cs-bento-visual { background: linear-gradient(135deg, #ecfbf6, #f7fffc); }
.cs-bento-card:nth-child(4) .cs-bento-visual { background: linear-gradient(135deg, #eef2ff, #f8f9ff); }
.cs-bento-card:nth-child(5) .cs-bento-visual { background: linear-gradient(135deg, #f2f6ff, #f7faff); }
.cs-bento-body { padding: 20px; }
.cs-bento-body h3 {
  margin: 0 0 7px;
  color: var(--cs-navy);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  letter-spacing: -.032em;
}
.cs-bento-body p { margin: 0 0 14px; font-size: .78rem; line-height: 1.6; }

.cs-queue-mock {
  position: relative;
  padding: 13px;
  border: 1px solid #dce8fa;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 30px rgba(22, 52, 110, .08);
}
.cs-queue-head { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #edf2fa; }
.cs-queue-head > span:first-child { margin-right: auto; color: #233b6b; font-size: .7rem; font-weight: 800; }
.cs-queue-pill { padding: 3px 6px; border-radius: 999px; background: #f0f5fd; color: #6a7d9f; font-size: .5rem; font-weight: 700; }
.cs-queue-pill-live { display: inline-flex; align-items: center; gap: 4px; background: #e3f9ff; color: #0a7fa8; }
.cs-queue-pill-live i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: cs-blink 2s infinite; }
.cs-queue-row { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid #f1f5fb; }
.cs-queue-row:last-child { border-bottom: 0; }
.cs-q-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 7px; }
.cs-q-icon .icon { width: 14px; height: 14px; }
.cs-q-blue { background: #e8f1ff; color: #135fdd; }
.cs-q-violet { background: #f1e9ff; color: #6d2df0; }
.cs-q-teal { background: #e3f9ff; color: #0a7fa8; }
.cs-queue-row > span:nth-child(2) { min-width: 0; }
.cs-queue-row strong { display: block; color: #243a66; font-size: .65rem; line-height: 1.3; }
.cs-queue-row small { display: block; overflow: hidden; color: #8494b2; font-size: .53rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cs-queue-row em { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: #fff4df; color: #a97400; font-size: .47rem; font-style: normal; font-weight: 800; white-space: nowrap; -webkit-text-fill-color: currentColor; background-clip: border-box; }
.cs-em-violet { background: #f3e9ff !important; color: #6d2df0 !important; }
.cs-em-teal { background: #e3f9ff !important; color: #0a7fa8 !important; }

.cs-booking-mock { padding: 14px; border: 1px solid #e4dcfa; border-radius: 12px; background: rgba(255, 255, 255, .93); box-shadow: 0 14px 30px rgba(50, 35, 110, .08); }
.cs-booking-head, .cs-money-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: #30456f; font-size: .66rem; font-weight: 800; }
.cs-mini-status { display: inline-flex; align-items: center; gap: 4px; color: #0a7fa8; font-size: .5rem; font-weight: 750; }
.cs-mini-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cs-mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cs-mini-cal > span {
  display: grid;
  place-items: center;
  min-height: 22px;
  border-radius: 5px;
  background: rgba(247, 250, 255, .8);
  color: #7487aa;
  font-size: .52rem;
  font-weight: 650;
}
.cs-mini-cal .cs-cal-label { background: transparent; color: #9aa8c2; font-size: .46rem; font-weight: 800; }
.cs-mini-cal .cs-cal-on { background: linear-gradient(135deg, #7c3aed, #a21af0); color: #fff; box-shadow: 0 3px 8px rgba(124, 58, 237, .22); }
.cs-slot-row { display: flex; gap: 5px; margin-top: 11px; }
.cs-slot { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 1px solid #e3eaf8; border-radius: 6px; background: #fff; color: #506487; font-size: .49rem; font-weight: 700; }
.cs-slot .icon { width: 10px; height: 10px; }
.cs-slot-active { margin-left: auto; border-color: transparent; background: #0965ff; color: #fff; }

.cs-ocr-mock { padding: 13px; border: 1px solid #cfe4fb; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 30px rgba(9, 34, 90, .07); }
.cs-lang-row { display: flex; align-items: center; gap: 4px; margin-bottom: 9px; }
.cs-lang-row > span { display: grid; place-items: center; width: 25px; height: 24px; border: 1px solid #dbe6f8; border-radius: 5px; background: #f5f9ff; color: #4d5f82; font-size: .5rem; font-weight: 800; }
.cs-lang-row .cs-lang-on { border-color: #0965ff; background: #0965ff; color: #fff; }
.cs-lang-note { width: auto !important; border: 0 !important; background: transparent !important; color: #87a09a !important; font-weight: 650 !important; }
.cs-engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cs-engine-grid span { padding: 6px; border: 1px solid #dfe7f6; border-radius: 5px; color: #5c6d90; font-size: .49rem; font-weight: 750; line-height: 1.2; }
.cs-engine-grid small { display: block; margin-top: 2px; color: #96aaa5; font-size: .42rem; font-weight: 600; }
.cs-engine-grid .cs-engine-on { border-color: #9fc8f0; background: #e8f2ff; color: #0a7fa8; }
.cs-confidence { margin-top: 10px; }
.cs-confidence > span { color: #6d827c; font-size: .47rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cs-confidence strong { float: right; color: #0a7fa8; font-size: .56rem; }
.cs-confidence-bar { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #e4eefc; }
.cs-confidence-bar i { display: block; width: 96%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5cc8ff, #0965ff); }

.cs-isolation-mock { position: relative; display: grid; place-items: center; height: 148px; }
.cs-ring { position: absolute; border: 1px solid #c8d6fb; border-radius: 50%; }
.cs-ring-1 { width: 146px; height: 146px; opacity: .45; }
.cs-ring-2 { width: 104px; height: 104px; opacity: .7; }
.cs-ring-3 { width: 68px; height: 68px; border-color: #b4c8fa; background: rgba(255, 255, 255, .35); }
.cs-isolation-core { position: relative; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, #3347d8, #6d2df0); color: #fff; box-shadow: 0 12px 26px rgba(63, 57, 214, .28); }
.cs-isolation-core .icon { width: 21px; height: 21px; }
.cs-isolation-core span { margin-top: 1px; font-size: .43rem; font-weight: 850; letter-spacing: .12em; }
.cs-iso-tag { position: absolute; padding: 3px 6px; border: 1px solid #dbe4fb; border-radius: 5px; background: rgba(255, 255, 255, .9); color: #6073a0; font-size: .45rem; font-weight: 750; }
.cs-iso-a { top: 24px; left: 12px; }
.cs-iso-b { top: 26px; right: 12px; }
.cs-iso-c { bottom: 17px; right: 30px; }

.cs-money-mock { padding: 13px; border: 1px solid #f4e5d4; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 30px rgba(112, 69, 18, .06); }
.cs-money-bars { display: flex; align-items: flex-end; gap: 6px; height: 78px; padding: 0 4px; border-bottom: 1px solid #f2e8dc; }
.cs-money-bars i { flex: 1; height: calc(var(--h) * .78); border-radius: 3px 3px 0 0; background: linear-gradient(#0965ff, #8e16f4); opacity: .65; }
.cs-money-bars i:nth-child(4), .cs-money-bars i:nth-child(7) { opacity: 1; }
.cs-money-foot { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; color: #8e765c; font-size: .45rem; font-weight: 700; }
.cs-money-foot strong { color: #a97400; font-size: .65rem; }
.cs-money-foot span:last-child { margin-left: auto; }

.cs-also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed #d8e4f6;
  border-radius: 12px;
  background: #fbfdff;
}
.cs-also > span { color: #6d7fa2; font-size: .61rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }

/* Dark delivery loop */
.cs-dark {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 10% 5%, rgba(9, 101, 255, .2), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(142, 22, 244, .2), transparent 32%),
    linear-gradient(135deg, #04112c, #061a3e 52%, #071844);
}
.cs-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 177, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 177, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 76%);
}
.cs-dark > .shell { position: relative; z-index: 1; }
.cs-dark .cs-eyebrow { color: #82b0ff; }
.cs-dark .cs-section-head h2 { color: #fff; }
.cs-dark .cs-section-head h2 em {
  background: var(--cs-grad-light);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-dark .cs-lede { color: #a6bbdd; }

.cs-loop-grid { display: grid; gap: 34px; }
.cs-loop-steps { display: grid; align-content: start; gap: 0; }
.cs-loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding-bottom: 24px;
}
.cs-loop-step:last-child { padding-bottom: 0; }
.cs-loop-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 2px;
  left: 21px;
  width: 1px;
  background: linear-gradient(rgba(126, 167, 245, .5), rgba(126, 167, 245, .02));
}
.cs-loop-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(150, 187, 255, .3);
  border-radius: 50%;
  background: rgba(9, 26, 60, .84);
  color: #93b9ff;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  box-shadow: 0 0 0 6px rgba(7, 25, 60, .55);
}
.cs-loop-step h3 { margin: 10px 0 5px; color: #fff; font-size: .98rem; letter-spacing: -.02em; }
.cs-loop-step p { margin: 0; color: #98afd2; font-size: .78rem; line-height: 1.62; }

.cs-terminal {
  overflow: hidden;
  border: 1px solid rgba(147, 183, 255, .23);
  border-radius: 15px;
  background: #020b1f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .48), 0 0 50px rgba(53, 91, 255, .08);
}
.cs-terminal-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(147, 183, 255, .13);
  background: linear-gradient(#081a3a, #06142f);
}
.cs-term-dots { display: flex; gap: 4px; }
.cs-term-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3b5079; }
.cs-term-dots i:nth-child(1) { background: #0965ff; }
.cs-term-dots i:nth-child(2) { background: #f3b34d; }
.cs-term-dots i:nth-child(3) { background: #5cc8ff; }
.cs-term-title { color: #7f9ac5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; }
.cs-term-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 7px; border-radius: 999px; background: rgba(92, 200, 255, .1); color: #9fe0ff; font-size: .5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cs-term-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: cs-blink 1.6s infinite; }
.cs-terminal pre {
  margin: 0;
  padding: 18px 18px 20px;
  overflow-x: auto;
  color: #a9bde0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(.62rem, 1.1vw, .73rem);
  line-height: 1.95;
  white-space: pre-wrap;
}
.cs-term-line { display: block; }
.cs-term-line b { font-weight: 700; }
.cs-terminal .t-key { color: #74a2ff; }
.cs-terminal .t-ok { color: #5cc8ff; }
.cs-terminal .t-warn { color: #f3b34d; }
.cs-terminal .t-human { color: #e0a4ff; }
.cs-cursor { display: inline-block; width: 6px; height: 12px; margin-left: 4px; vertical-align: -1px; background: #a9bde0; animation: cs-blink 1.1s steps(2) infinite; }
html.js .cs-terminal:not(.is-in) .cs-term-line { opacity: 0; }
html.js .cs-terminal.is-in .cs-term-line { animation: cs-line-in .45s calc(.15s + var(--i) * .11s) both; }
.cs-term-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 20px;
  color: #7087ad !important;
  font-size: .6rem;
  line-height: 1.5;
}
.cs-term-note .icon { width: 13px; height: 13px; flex: none; margin-top: 1px; color: #9a6cf0; }
.cs-ai-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-ai-tool {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(147, 183, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}
.cs-ai-tool > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(112, 151, 255, .13); color: #8cb5ff; }
.cs-ai-tool > span .icon { width: 15px; height: 15px; }
.cs-ai-tool strong { display: block; color: #dce8ff; font-size: .64rem; line-height: 1.3; }
.cs-ai-tool p { margin: 2px 0 0; color: #8399bd; font-size: .56rem; line-height: 1.45; }

/* Stack */
.cs-stack-section { background: linear-gradient(180deg, #fff, #f8fbff); }
.cs-arch {
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #dce7f8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 46, 110, .065);
}
.cs-arch-row { display: grid; gap: 8px; }
.cs-arch-row-secondary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #dbe6f7;
}
.cs-arch-node {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce7f8;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fbff, #fff);
}
.cs-arch-db { border-color: #c9d9f5; background: linear-gradient(145deg, #eef5ff, #fbfdff); }
.cs-arch-node-muted { background: #fbfcff; }
.cs-arch-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 9px; border-radius: 8px; background: #eaf2ff; color: #0a63f7; }
.cs-arch-icon .icon { width: 16px; height: 16px; }
.cs-arch-node strong { display: block; color: #18305f; font-size: .72rem; line-height: 1.3; }
.cs-arch-node small { display: block; margin-top: 3px; color: #64748f; font-size: .58rem; line-height: 1.4; }
.cs-arch-arrow { display: grid; place-items: center; color: #a7bce0; transform: rotate(90deg); }
.cs-arch-arrow .icon { width: 16px; height: 16px; }
.cs-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.cs-stack-card {
  padding: 17px;
  border: 1px solid #e0e9f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(16, 46, 110, .035);
}
.cs-stack-card h3 { margin: 0 0 11px; color: var(--cs-navy); font-size: .9rem; letter-spacing: -.02em; }
.cs-stack-list { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-stack-list span { padding: 3px 6px; border: 1px solid #e6eefb; border-radius: 5px; background: #f6f9ff; color: #46608d; font-size: .57rem; font-weight: 650; line-height: 1.3; }

/* Trust */
.cs-trust {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(9, 101, 255, .22), transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(142, 22, 244, .18), transparent 34%),
    linear-gradient(135deg, #061331, #071844 60%, #04112c);
}
.cs-trust-grid { display: grid; gap: 38px; align-items: center; }
.cs-trust .cs-eyebrow { color: #82b0ff; }
.cs-trust .cs-section-head { margin-bottom: 28px; }
.cs-trust .cs-section-head h2 { color: #fff; }
.cs-trust .cs-section-head h2 em {
  background: var(--cs-grad-light);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-trust .cs-lede { color: #a6bbdd; }
.cs-trust-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-trust-card {
  padding: 16px;
  border: 1px solid rgba(151, 187, 255, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  transition: background .2s, border-color .2s;
}
.cs-trust-card:hover { background: rgba(255, 255, 255, .075); border-color: rgba(151, 187, 255, .3); }
.cs-trust-card > span { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 9px; border-radius: 8px; background: rgba(91, 139, 255, .14); color: #8cb5ff; }
.cs-trust-card > span .icon { width: 15px; height: 15px; }
.cs-trust-card h3 { margin: 0 0 4px; color: #eaf2ff; font-size: .8rem; letter-spacing: -.01em; }
.cs-trust-card p { margin: 0; color: #a6bada; font-size: .68rem; line-height: 1.55; }
.cs-trust-visual { min-width: 0; margin: 0; }
.cs-browser-dark { border-color: rgba(160, 194, 255, .2); background: #071a3b; }
.cs-browser-dark .cs-browser-bar { background: linear-gradient(#0a1c3d, #081732); }
.cs-browser-dark > img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.cs-trust-visual figcaption { margin-top: 9px; color: #8098bf; font-size: .6rem; text-align: center; }
.cs-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(151, 187, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: #94aacd;
  font-size: .56rem;
  font-weight: 650;
}
.cs-trust-badge .icon { width: 13px; height: 13px; color: #9fe0ff; }
.cs-pull {
  position: relative;
  margin: 40px 0 0;
  padding: 32px 0;
  border-block: 1px solid rgba(151, 187, 255, .15);
}
.cs-pull p {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.cs-pull footer { margin-top: 10px; color: #839bc1; font-size: .67rem; }
.cs-quote-mark {
  position: absolute;
  top: 5px;
  left: -3px;
  color: rgba(126, 167, 255, .18);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  pointer-events: none;
}
.cs-caveat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 196, 107, .2);
  border-radius: 9px;
  background: rgba(255, 196, 107, .055);
}
.cs-caveat .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #f3b34d; }
.cs-caveat p { margin: 0; color: #c7b18c; font-size: .65rem; line-height: 1.55; }
.cs-caveat strong { color: #f4d6a4; }

/* Timeline */
.cs-roadmap { background: #fff; }
.cs-timeline { position: relative; display: grid; gap: 11px; }
.cs-week {
  position: relative;
  padding: 20px;
  border: 1px solid #e1eaf8;
  border-top: 3px solid var(--week, #0965ff);
  border-radius: 13px;
  background: linear-gradient(160deg, #fff, #fbfdff);
  box-shadow: 0 8px 24px rgba(16, 46, 110, .04);
  transition: transform .25s, box-shadow .25s;
}
.cs-week:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16, 46, 110, .085); }
.cs-week-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.cs-week-top > span { color: var(--week, #0965ff); font-size: .58rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.cs-week-top .icon { width: 19px; height: 19px; color: var(--week, #0965ff); opacity: .65; }
.cs-week h3 { margin: 0 0 8px; color: var(--cs-navy); font-size: 1.07rem; letter-spacing: -.03em; }
.cs-week p { margin: 0 0 13px; font-size: .72rem; line-height: 1.58; }
.cs-week-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-week-tags span { padding: 2px 6px; border-radius: 4px; background: #f1f6ff; color: #526b96; font-size: .53rem; font-weight: 700; }

/* Lessons */
.cs-lessons { background: linear-gradient(180deg, #f8fbff, #fff); border-top: 1px solid #eef3fc; }
.cs-lessons-grid { display: grid; gap: 12px; }
.cs-lesson-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfe8f8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 46, 110, .045);
}
.cs-lesson-up { background: linear-gradient(145deg, #f1f7ff, #fbfdff); }
.cs-lesson-human { background: linear-gradient(145deg, #f6f1ff, #fdfbff); }
.cs-lesson-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: #e7f1ff; color: #0965ff; }
.cs-lesson-human .cs-lesson-icon { background: #f0e6ff; color: #6d2df0; }
.cs-lesson-icon .icon { width: 21px; height: 21px; }
.cs-lesson-card h3 { margin: 0 0 17px; color: var(--cs-navy); font-size: 1.16rem; letter-spacing: -.03em; }
.cs-lesson-card .cs-feature-list { margin: 0; }
.cs-lesson-card .cs-feature-list li { font-size: .8rem; }
.cs-quote-card {
  position: relative;
  margin-top: 14px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(142, 22, 244, .1), transparent 30%),
    linear-gradient(120deg, #eef5ff, #f8f4ff);
}
.cs-quote-card blockquote {
  max-width: 900px;
  margin: 0;
  color: var(--cs-navy);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.cs-quote-card cite { display: block; margin-top: 11px; color: #5f74a0; font-size: .67rem; font-style: normal; font-weight: 650; }
.cs-quote-card .cs-quote-mark { top: 10px; left: 16px; color: rgba(68, 97, 218, .11); font-size: 5.3rem; }
.cs-quote-card > *:not(.cs-quote-mark) { position: relative; z-index: 1; }
.cs-fineprint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 960px;
  margin: 18px 0 0;
  color: #667694 !important;
  font-size: .66rem;
  line-height: 1.55;
}
.cs-fineprint .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; color: #8e16f4; }

/* Final CTA */
.cs-final-wrap { padding: 0 0 clamp(42px, 6vw, 76px); background: #fff; }
.cs-final {
  position: relative;
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 24px;
  color: #fff;
  background-image:
    linear-gradient(95deg, rgba(3, 17, 50, .96) 0%, rgba(3, 17, 50, .84) 52%, rgba(3, 17, 50, .33) 100%),
    url('/assets/cta-mountains.webp');
  background-position: center, center;
  background-size: cover, cover;
  box-shadow: 0 30px 70px rgba(7, 24, 68, .22);
}
.cs-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 18%, rgba(121, 86, 255, .3), transparent 34%);
  pointer-events: none;
}
.cs-final > * { position: relative; z-index: 1; }
.cs-final .cs-eyebrow { color: #9cc3ff; }
.cs-final h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.9rem, 4.1vw, 3.25rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.cs-final h2 em {
  background: linear-gradient(100deg, #5cc8ff, #a78bfa 60%, #8e16f4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-final p { max-width: 640px; margin-bottom: 24px; color: #b9c9e5; font-size: .94rem; line-height: 1.65; }
.cs-final .cs-btn-ghost { border-color: rgba(190, 211, 255, .38); }
.cs-final-copy { max-width: 730px; }
.cs-final-art { position: relative; min-height: 190px; }
.cs-final-ring { position: absolute; border: 1px solid rgba(166, 198, 255, .18); border-radius: 50%; }
.cs-final-ring-a { top: 2px; right: 24px; width: 190px; height: 190px; }
.cs-final-ring-b { top: 42px; right: 64px; width: 110px; height: 110px; border-color: rgba(166, 198, 255, .28); }
.cs-final-stat {
  position: absolute;
  top: 58px;
  right: 92px;
  text-align: center;
}
.cs-final-stat strong { display: block; color: #fff; font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.cs-final-stat span { display: block; margin-top: 4px; color: #9db4d9; font-size: .54rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.cs-final-stat-2 { top: 128px; right: 18px; }
.cs-final-stat-2 strong { font-size: 1.2rem; color: #a9c9ff; }
.cs-final-note { margin: 13px 0 0; color: #62718f; font-size: .65rem; text-align: center; }
.cs-final + .cs-final-note { position: relative; }

/* Footer */
body[data-page="case-study"] .site-header { background: #fff; }
body[data-page="case-study"] .footer { border-top: 1px solid #e8eef9; margin-top: 0; }

/* Responsive */
@media (min-width: 560px) {
  .cs-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-proof-item { padding: 21px 18px; border-bottom: 0; }
  .cs-proof-item:nth-child(odd) { border-right: 1px solid #edf2fb; padding-left: 0; }
  .cs-proof-item:nth-child(even) { padding-right: 0; }
  .cs-proof-item:nth-child(-n+2) { border-bottom: 1px solid #edf2fb; }
  .cs-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-span-7, .cs-span-5 { grid-column: span 2; }
  .cs-span-4 { grid-column: span 1; }
  .cs-final { grid-template-columns: minmax(0, 1fr) 240px; align-items: center; }
  .cs-final-art { display: block; min-height: 230px; }
}

@media (min-width: 760px) {
  .cs-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-hero-stat { border-right: 1px solid rgba(157, 190, 255, .11); }
  .cs-hero-stat:nth-child(2n) { border-right: 1px solid rgba(157, 190, 255, .11); }
  .cs-hero-stat:last-child { border-right: 0; }
  .cs-hero-caption { padding-inline: 24px; }
  .cs-bento { gap: 14px; }
  .cs-tab { padding-inline: 16px; }
  .cs-panel { padding: 30px; }
  .cs-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-lessons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-final { padding-inline: 42px; }
}

@media (min-width: 900px) {
  .cs-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 34px; padding-bottom: 52px; }
  .cs-hero-copy { padding-block: 16px; }
  .cs-hero { padding-top: 60px; }
  .cs-proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-proof-item { padding: 22px 18px; }
  .cs-proof-item:nth-child(2) { border-right: 1px solid #edf2fb; }
  .cs-proof-item:nth-child(3) { border-right: 1px solid #edf2fb; }
  .cs-proof-item:nth-child(-n+2) { border-bottom: 0; }
  .cs-proof-item:last-child { padding-right: 0; }
  .cs-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .cs-week::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -13px;
    color: #b9cbea;
    font-size: .9rem;
    transform: translateY(-50%);
  }
  .cs-week:last-child::after { display: none; }
}

@media (min-width: 1000px) {
  .cs-compare-row { grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr); align-items: center; gap: 22px; }
  .cs-panel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 52px); padding: clamp(26px, 3.6vw, 46px); }
  .cs-loop-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); }
  .cs-arch-row { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; }
  .cs-arch-row-secondary { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); }
  .cs-arch-arrow { transform: none; }
  .cs-trust-grid { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(36px, 5vw, 66px); }
}

@media (min-width: 1100px) {
  .cs-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cs-span-7 { grid-column: span 7; }
  .cs-span-5 { grid-column: span 5; }
  .cs-span-4 { grid-column: span 4; }
  .cs-bento-visual { min-height: 208px; }
  .cs-bento-body { padding: 22px; }
  .cs-hero h1 { font-size: clamp(3.4rem, 5.2vw, 5.1rem); }
}

@media (max-width: 999px) {
  .cs-arch-row,
  .cs-arch-row-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cs-arch-arrow { display: none; }
  .cs-arch-row-secondary .cs-arch-node:last-child { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .cs-stack-back { display: none; }
  .cs-float-a { top: -22px; right: 8px; left: auto; }
  .cs-float-b { right: 8px; bottom: -22px; }
  .cs-float-c { display: none; }
  .cs-hero-visual { margin-inline: 6px; }
  .cs-hero-orbit { opacity: .5; }
}

@media (max-width: 599px) {
  .cs-hero { padding-top: 42px; }
  .cs-hero h1 { font-size: clamp(2.6rem, 12.7vw, 3.5rem); }
  .cs-hero-copy > p { font-size: .95rem; }
  .cs-hero-actions { display: grid; grid-template-columns: 1fr; }
  .cs-hero-actions .cs-btn { width: 100%; }
  .cs-hero-meta { gap: 7px 12px; font-size: .64rem; }
  .cs-hero-meta span:last-child { display: none; }
  .cs-float-a { display: none; }
  .cs-float-b { right: 4px; bottom: -18px; padding: 10px 11px; }
  .cs-float-b strong { font-size: 1.2rem; }
  .cs-hero-stats { margin-top: 6px; }
  .cs-hero-stat { padding: 17px 8px 19px; }
  .cs-hero-stat strong { font-size: 1.45rem; }
  .cs-hero-stat span { font-size: .58rem; }
  .cs-hero-caption { padding-inline: 14px; font-size: .57rem; }
  .cs-proof-item { padding-block: 16px; }
  .cs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-metric { padding: 16px 12px; }
  .cs-trust-cards { grid-template-columns: 1fr; }
  .cs-ai-tools { grid-template-columns: 1fr; }
  .cs-compare-top { display: block; }
  .cs-big-stat { margin-top: 16px; }
  .cs-bar { height: 30px; }
  .cs-bar-value { font-size: .61rem; }
  .cs-compare-row { gap: 8px; }
  .cs-tab-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 7px;
  }
  .cs-tab {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    padding: 7px 3px;
    font-size: .6rem;
    letter-spacing: -.01em;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .cs-tab-label-full { display: none; }
  .cs-tab-label-short { display: inline; }
  .cs-tab .icon { width: 17px; height: 17px; }
  .cs-panel { padding: 17px; gap: 20px; }
  .cs-panel-copy h3 { font-size: 1.5rem; }
  .cs-panel-copy > p { font-size: .82rem; }
  .cs-bento-visual { min-height: 176px; padding: 15px; }
  .cs-bento-body { padding: 17px; }
  .cs-queue-row em { display: none; }
  .cs-queue-row small { max-width: 170px; }
  .cs-terminal pre { font-size: .55rem; line-height: 1.9; }
  .cs-term-title { display: none; }
  .cs-arch { padding: 14px; }
  .cs-arch-row,
  .cs-arch-row-secondary { gap: 7px; }
  .cs-arch-node { padding: 11px; }
  .cs-arch-node strong { font-size: .68rem; }
  .cs-arch-node small { font-size: .55rem; }
  .cs-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cs-stack-card { padding: 13px; }
  .cs-stack-card h3 { font-size: .8rem; }
  .cs-stack-grid > .cs-stack-card:last-child { grid-column: 1 / -1; }
  .cs-pull { margin-top: 28px; padding-block: 25px; }
  .cs-quote-mark { font-size: 3.4rem; }
  .cs-final { background-image: linear-gradient(95deg, rgba(3, 17, 50, .94), rgba(3, 17, 50, .78)), url('/assets/cta-mountains.webp'); background-position: center, 82% center; }
  .cs-final-art { display: none; }
  .cs-final-note { padding-inline: 14px; }
  .cs-also { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 399px) {
  .cs-kicker { font-size: .56rem; letter-spacing: .12em; }
  .cs-hero h1 { font-size: 2.4rem; }
  .cs-hero-stat strong { font-size: 1.3rem; }
  .cs-metrics { grid-template-columns: 1fr 1fr; }
  .cs-trust-cards { grid-template-columns: 1fr; }
  .cs-week { padding: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cs-hero-anim, .cs-orb, .cs-hero-orbit, .cs-float, .cs-pulse, .cs-hero h1 em, .cs-hero-stat strong {
    animation: none !important;
  }
  html.js .cs-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .cs-terminal:not(.is-in) .cs-term-line { opacity: 1; }
  html.js .cs-terminal.is-in .cs-term-line { animation: none; }
  .cs-bar span { transition: none !important; }
  html.js .cs-compare:not(.is-in) .cs-bar span { width: 100%; }
  html.js .cs-compare:not(.is-in) .cs-bar-ai span { width: 12.5%; }
  .cs-bento-card, .cs-week { transition: none; }
}

/* Keyframes */
@keyframes cs-rise {
  from { opacity: .45; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes cs-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes cs-spin {
  to { transform: rotate(360deg); }
}
@keyframes cs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 200, 255, .5); }
  70% { box-shadow: 0 0 0 8px rgba(92, 200, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 200, 255, 0); }
}
@keyframes cs-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: .2; }
}
@keyframes cs-shimmer {
  from { background-position: 0 50%; }
  to { background-position: 100% 50%; }
}
@keyframes cs-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes cs-line-in {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: none; }
}

/* Minimal editorial theme aligned with the main site. */
:root{
  --cs-navy:#071844;
  --cs-midnight:#071844;
  --cs-ink:#0a1a4a;
  --cs-body:#46537a;
  --cs-blue:#0965ff;
  --cs-violet:#8e16f4;
  --cs-line:#dbe3f5;
  --cs-soft:#f2f6ff;
  --cs-grad:linear-gradient(100deg,#0965ff,#8e16f4);
  --cs-grad-light:linear-gradient(100deg,#bcd3ff,#dcc8ff);
  --cs-shadow:none;
  --cs-radius:6px;
  --cs-cyan:#5cc8ff;
}
.cs-progress span{background:var(--cs-cyan)}
.cs-hero{background:radial-gradient(circle at 86% 8%,rgba(142,22,244,.32),transparent 44%),linear-gradient(118deg,#04112f 0%,#071844 58%,#0b1f4d 100%)}
.cs-hero-grid-bg{opacity:.14}
.cs-orb,.cs-hero-orbit{display:none}
.cs-hero h1 em{background:none;color:var(--cs-cyan);-webkit-text-fill-color:var(--cs-cyan)}
.cs-hero-copy>p{color:#b7c4e0}
.cs-hero-meta .icon{color:var(--cs-cyan)}
.cs-kicker{border-color:#2f3f74;background:rgba(255,255,255,.06);color:var(--cs-cyan)}
.cs-kicker:hover{background:rgba(255,255,255,.1);border-color:#4a5f9e}
.cs-btn{border-radius:3px}
.cs-btn-ghost{border-color:#2f3f74}
.cs-section-head h2 em{background:linear-gradient(transparent 72%,#bcd3ff 72%);-webkit-text-fill-color:currentColor;color:var(--cs-ink)}
.cs-dark,.cs-trust{background:var(--cs-navy)}
.cs-dark .cs-section-head h2 em,.cs-trust .cs-section-head h2 em{background:none;color:var(--cs-cyan);-webkit-text-fill-color:var(--cs-cyan)}
.cs-dark .cs-eyebrow{color:var(--cs-cyan)}
.cs-bento-card,.cs-quote-card,.cs-stack-card,.cs-lesson-card,.cs-proof-item,.cs-roles-card,.cs-loop-step,.cs-arch-node,.cs-panel{border-radius:6px}
.cs-hero-stat,.cs-metric{border-radius:6px}
.cs-hero-anim{animation:none!important;opacity:1!important;transform:none!important}
body[data-page="case-study"] .footer{border-top-color:#22336b}
