/* Case Study page: built only from Web3D tokens & component patterns */

/* ---------- Reveal (site's animation-element fadeUp) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--w3d-ease), transform 0.8s var(--w3d-ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  /* keep the fade so the page still feels alive, drop the travel */
  .js .reveal { transform: none; transition: opacity 0.4s ease-out; }
}

.cs-center { text-align: center; }

/* ================================================================
   HERO (project page pattern: grey band, red client line)
   ================================================================ */
.cs-hero {
  background: var(--w3d-gray);
  padding: 0 0 130px;
}
.cs-hero .breadcrumbs { padding: 14px 0 34px; }

.cs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  align-items: center;
}
.cs-client {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--w3d-ls-head);
  color: var(--w3d-red);
  margin-bottom: 14px;
}
.cs-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 55px;
  letter-spacing: -1px;
  color: var(--w3d-ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.cs-title span { color: var(--w3d-red); }
.cs-intro { font-size: 20px; line-height: 30px; max-width: 34em; }
.cs-intro strong { font-weight: 700; color: var(--w3d-ink); }

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.cs-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 14px;
  border: 1px solid var(--w3d-border);
  border-radius: var(--w3d-r-pill);
  background: #fff;
  font-size: 15px;
  line-height: 22px;
  color: var(--w3d-heading);
  white-space: nowrap;
}
.cs-tags .ph { color: var(--w3d-red); font-size: 18px; }

/* Hero device composition */
.cs-hero-visual {
  position: relative;
  padding: 0 0 40px 70px;
}
.cs-hero-visual .mk-browser { transform-origin: left center; }
.cs-hero-visual .mk-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 27%;
}

/* Meta strip (.m-statistic pattern) */
.cs-meta-wrap { position: relative; z-index: 2; margin-top: -72px; }
.cs-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px;
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  padding: 24px 36px;
}
.cs-meta > div + div { border-right: 1px solid var(--w3d-border); padding-right: 27px; }
.cs-meta dt { font-size: 15px; line-height: 22px; color: var(--w3d-muted); }
.cs-meta dd { margin: 2px 0 0; font-size: 18px; line-height: 27px; font-weight: 700; letter-spacing: -0.5px; color: var(--w3d-ink); }

/* ================================================================
   CHALLENGE (#m-history pattern: pink band + white wrapper)
   ================================================================ */
.cs-challenge {
  background: linear-gradient(#fff 0, #fff 120px, var(--w3d-pink) 120px);
  padding: 80px 0 var(--w3d-section);
}
.cs-panel {
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  padding: 56px 88px 56px 49px;
}
.cs-challenge-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}
.cs-rule {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--w3d-border);
  font-size: 19px;
  line-height: 28px;
}
.cs-rule p + p { margin-top: 16px; }
.cs-rule strong { color: var(--w3d-ink); }

.cs-before { margin: 0; }
.cs-before svg { width: 100%; height: auto; overflow: visible; }
.cs-before figcaption { text-align: center; font-size: 14px; line-height: 20px; color: var(--w3d-muted); margin-top: 10px; }
.cs-before .b-lines path { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .cs-before .b-lines path { animation: none; } }

.cs-pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
/* .process-item pattern */
.cs-pains li {
  border: 1px solid var(--w3d-border);
  border-radius: var(--w3d-r-process);
  padding: 22px 22px 24px;
}
.cs-pains .ph { font-size: 30px; color: var(--w3d-red); }
.cs-pains h3 { font-size: 19px; line-height: 24.7px; font-weight: 700; color: var(--w3d-heading); margin: 10px 0 7px; }
.cs-pains p { font-size: 15px; line-height: 22px; color: var(--w3d-muted); }

/* ================================================================
   APPROACH (#ai pattern: radial dark + framed wrapper)
   ================================================================ */
.cs-approach {
  background: var(--w3d-dark-radial);
  padding: var(--w3d-section) 0;
  color: #fff;
}
.cs-dark-wrap {
  border: 1px solid var(--w3d-dark-border);
  border-radius: var(--w3d-r-card);
  padding: 0 80px 88px;
}
.cs-dark-title {
  max-width: 760px;
  margin: 88px auto 56px;
  text-align: center;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}
.cs-dark-title span { color: var(--w3d-red); }

.cs-approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: start;
}
.cs-dark-lead { font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, 0.82); margin-bottom: 18px; }

.acc-item { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--w3d-red);
  font: 700 22px/1.3 var(--w3d-font);
  letter-spacing: -0.5px;
  text-align: right;
  cursor: pointer;
}
.acc-btn .ph { font-size: 26px; flex-shrink: 0; }
.acc-btn span { flex: 1; }
.acc-plus {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  transition: background-color 0.3s, transform 0.4s var(--w3d-ease);
}
.acc-plus::before,
.acc-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 2px; margin: -1px 0 0 -5px; background: #000;
}
.acc-plus::after { transform: rotate(90deg); transition: transform 0.4s var(--w3d-ease); }
.acc-item.is-open .acc-plus { background: var(--w3d-red); transform: rotate(180deg); }
.acc-item.is-open .acc-plus::before,
.acc-item.is-open .acc-plus::after { background: #fff; }
.acc-item.is-open .acc-plus::after { transform: rotate(0deg); }
.acc-btn:hover .acc-plus { background: #fff; }
.acc-panel p { padding: 0 40px 20px 0; font-size: 18px; line-height: 27px; color: rgba(255, 255, 255, 0.85); }

/* Journey map (black media frame, like the video block) */
.cs-journey {
  background: #000;
  border-radius: var(--w3d-r-card);
  padding: 30px 30px 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cs-journey-title { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.cs-journey ol { margin: 0; padding: 0; list-style: none; position: relative; }
.cs-journey ol::before {
  content: "";
  position: absolute;
  right: 21px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.cs-journey li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  opacity: 0.42;
  transition: opacity 0.45s var(--w3d-ease);
}
.cs-journey li b {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1c1c1c; border: 2px solid rgba(255, 255, 255, 0.22);
  font-size: 18px; color: #fff;
  transition: background-color 0.45s, border-color 0.45s, transform 0.45s var(--w3d-ease);
}
.cs-journey li strong { display: block; font-size: 19px; line-height: 24px; color: #fff; }
.cs-journey li span { display: block; font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, 0.65); }
.cs-journey li em {
  font-style: normal; font-size: 13px; line-height: 18px;
  padding: 4px 12px; border-radius: var(--w3d-r-pill);
  border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.cs-journey li.is-active { opacity: 1; }
.cs-journey li.is-active b { background: var(--w3d-red); border-color: var(--w3d-red); transform: scale(1.06); }
.cs-journey li.is-active em { border-color: var(--w3d-red); color: #fff; background: rgba(251, 85, 91, 0.18); }

.cs-dark-statement {
  max-width: 900px;
  margin: 80px auto 0;
  text-align: center;
  font-size: 36px;
  line-height: 46px;
  font-weight: 700;
  letter-spacing: -1px;
  text-wrap: balance;
}

/* ================================================================
   WHAT WE DID (.prod-item cards, ServiceBox hover)
   ================================================================ */
.cs-work { padding: var(--w3d-section) 0; }
.cs-work .w3d-h2 { margin-bottom: 56px; }
.cs-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.cs-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  padding: 30px 30px 28px;
  transition: background-color 0.4s, transform 0.4s var(--w3d-ease), box-shadow 0.4s, opacity 0.8s var(--w3d-ease);
}
.cs-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--w3d-red);
  margin-bottom: 18px;
  transition: color 0.4s;
}
.cs-steps h3 { font-size: 22px; line-height: 28.6px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 8px; transition: color 0.4s; }
.cs-steps p { font-size: 17px; line-height: 25.5px; color: var(--w3d-body); flex: 1; transition: color 0.4s; }
.cs-chip {
  align-self: flex-start;
  margin-top: 18px;
  font-size: 14px;
  line-height: 20px;
  padding: 4px 14px;
  border-radius: var(--w3d-r-pill);
  border: 1px solid var(--w3d-border);
  color: var(--w3d-muted);
  transition: color 0.4s, border-color 0.4s;
}
.js .cs-steps li.reveal {
  transition: opacity 0.8s var(--w3d-ease), transform 0.5s var(--w3d-ease), background-color 0.4s, box-shadow 0.4s;
  transition-delay: var(--d, 0s), 0s, 0s, 0s;
}
@media (hover: hover) {
  .js .cs-steps li.reveal.in-view:hover,
  .cs-steps li:hover {
    background: var(--w3d-red);
    transform: scale(1.03);
    box-shadow: 0 0 16px -3px rgba(0, 0, 0, 0.43);
  }
  .cs-steps li:hover .cs-num,
  .cs-steps li:hover h3,
  .cs-steps li:hover p,
  .cs-steps li:hover .cs-chip { color: #fff; }
  .cs-steps li:hover .cs-chip { border-color: rgba(255, 255, 255, 0.6); }
}

/* ================================================================
   SCREENS (bento of client screens)
   ================================================================ */
.cs-screens { background: var(--w3d-gray-2); padding: var(--w3d-section) 0; }
.cs-screens .w3d-h2 { margin-bottom: 56px; }
.cs-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px;
}
.screen-card {
  margin: 0;
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
}
.screen-card figcaption {
  padding: 16px 8px 18px;
  font-size: 16px;
  line-height: 23px;
  color: var(--w3d-heading);
}
.screen-frame {
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f4;
  flex: 1;
}
.s-site  { grid-column: 5 / span 8; grid-row: 1; }
.s-phone { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.s-crm   { grid-column: 5 / span 8; grid-row: 2; }
.s-dash  { grid-column: 1 / -1; grid-row: 3; }
.screen-frame--phone {
  display: grid;
  place-items: center;
  padding: 28px 12%;
  background: linear-gradient(160deg, #e9eef3, #dfe6ed);
}
.screen-frame--phone .mk-phone { width: 100%; max-width: 290px; }

/* ================================================================
   RESULTS (pink band + stat cards)
   ================================================================ */
.cs-results { background: var(--w3d-pink); padding: 70px 0 var(--w3d-section); }
.cs-results-sub { text-align: center; font-size: 18px; line-height: 27px; color: var(--w3d-muted); margin: 10px auto 48px; max-width: 640px; }
.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.cs-stats li {
  background: #fff;
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-card);
  padding: 34px 28px 30px;
}
.cs-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--w3d-red);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  direction: ltr;
  justify-content: flex-end;
}
.cs-stat--text .ph { font-size: 40px; }
.cs-stat--text { direction: rtl; justify-content: flex-start; }
.cs-stats h3 { font-size: 22px; line-height: 28.6px; font-weight: 700; color: var(--w3d-heading); margin-bottom: 6px; }
.cs-stats p { font-size: 16px; line-height: 23px; color: var(--w3d-muted); }

/* ================================================================
   OUTCOME + QUOTE (blog-text pink card pattern)
   ================================================================ */
.cs-outcome { padding: var(--w3d-section) 0; }
.cs-outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.cs-outcome-lead {
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--w3d-ink);
  margin: 22px 0 18px;
  text-wrap: balance;
}
.cs-outcome-text > p:last-child { font-size: 19px; line-height: 28.5px; }
.cs-outcome-text strong { color: var(--w3d-ink); }

.cs-quote {
  margin: 0;
  background: var(--w3d-pink);
  border-radius: var(--w3d-r-card);
  box-shadow: var(--w3d-shadow-pink);
  padding: 40px 40px 34px;
}
.cs-quote > .ph-fill { font-size: 44px; color: var(--w3d-red); transform: scaleX(-1); }
.cs-quote blockquote { margin: 12px 0 26px; }
.cs-quote blockquote p { font-size: 22px; line-height: 33px; font-weight: 600; color: var(--w3d-ink); letter-spacing: -0.5px; }
.cs-quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 22px; color: var(--w3d-muted); }
.cs-quote figcaption strong { display: block; font-size: 18px; color: var(--w3d-ink); }
.cs-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--w3d-red); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}

/* ================================================================
   CTA BAND (#main-cta)
   ================================================================ */
.cs-cta { background: var(--w3d-plum); padding: 56px 0; text-align: center; }
.cs-cta h2 { font-size: 35px; line-height: 45.5px; font-weight: 400; color: #fff; letter-spacing: -1px; text-wrap: balance; }
.cs-cta h2 strong { font-weight: 700; }
.cs-cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; }
.cs-cta-actions .btn { min-height: 53px; }
.cs-cta-link { color: #fff; font-size: 20px; }
.cs-cta-link:hover { color: var(--w3d-red-light); }

/* ================================================================
   CLIENT MOCKUPS (Velor brand, fluid via container query units)
   ================================================================ */
.mk-wrap { container-type: inline-size; width: 100%; }
.mk-site, .mk-app, .mk-board, .mk-dash {
  --v-navy: #0f2536;
  --v-navy-2: #183a52;
  --v-mint: #2fbf8f;
  --v-paper: #f4f6f8;
  --v-line: #e3e8ed;
  font-family: var(--w3d-font);
  line-height: 1.35;
  letter-spacing: 0;
  direction: rtl;
  text-align: right;
}
.mk-site span, .mk-site b, .mk-site small, .mk-site strong, .mk-site p { display: block; }

/* Browser frame */
.mk-browser {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 37, 54, 0.35), 0 4px 29px rgba(0, 0, 0, 0.1);
}
.mk-browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #f1f1f1; border-bottom: 1px solid #e4e4e4;
  direction: ltr;
}
.mk-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d4; }
.mk-browser-bar i:first-child { background: #ff6159; }
.mk-browser-bar i:nth-child(2) { background: #ffbd2e; }
.mk-browser-bar i:nth-child(3) { background: #28c941; }
.mk-browser-bar span {
  margin: 0 auto; font-size: 11px; line-height: 18px; color: #777;
  background: #fff; border-radius: 9px; padding: 0 40px;
}

/* Velor website */
.mk-site { font-size: 2.25cqi; background: var(--v-paper); color: var(--v-navy); }
.mk-site-nav {
  display: flex !important; align-items: center; gap: 2em;
  padding: 1.1em 2.2em; background: var(--v-navy); color: #fff;
}
.mk-velor { display: inline-flex !important; align-items: center; gap: 0.35em; font-weight: 800; letter-spacing: 0.18em; font-size: 1.05em; direction: ltr; }
.mk-velor svg { width: 1.2em; height: 1.2em; color: var(--v-mint); }
.mk-site-links { display: flex !important; gap: 1.6em; margin-left: auto; font-size: 0.78em; opacity: 0.8; }
.mk-site-links b { font-weight: 400; }
.mk-site-btn { font-size: 0.72em; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 2em; padding: 0.4em 1.1em; }

.mk-site-hero {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr;
  gap: 2em;
  padding: 2.6em 2.2em 2.8em;
  background: linear-gradient(180deg, var(--v-navy) 0, var(--v-navy-2) 100%);
  color: #fff;
  align-items: center;
}
.mk-site-copy small { font-size: 0.72em; color: var(--v-mint); font-weight: 700; margin-bottom: 0.6em; }
.mk-site-copy strong { font-size: 2.1em; line-height: 1.12; font-weight: 800; margin-bottom: 0.55em; }
.mk-site-copy p { font-size: 0.8em; line-height: 1.5; opacity: 0.78; margin-bottom: 1.3em; max-width: 22em; }
.mk-site-cta {
  display: inline-block !important; font-size: 0.8em; font-weight: 700;
  background: var(--v-mint); color: var(--v-navy);
  padding: 0.75em 1.5em; border-radius: 2em;
}
.mk-quiz {
  background: #fff; color: var(--v-navy);
  border-radius: 0.9em; padding: 1.2em 1.2em 1.1em;
  box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, 0.45);
}
.mk-quiz-head { display: flex !important; justify-content: space-between; align-items: center; font-size: 0.66em; color: #7a8a99; margin-bottom: 0.8em; }
.mk-dots { display: flex !important; gap: 0.35em; }
.mk-dots i { width: 1.6em; height: 0.35em; border-radius: 1em; background: var(--v-line); }
.mk-dots i.on { background: var(--v-mint); }
.mk-quiz strong { font-size: 0.95em; line-height: 1.3; margin-bottom: 0.8em; }
.mk-opt {
  font-size: 0.74em; padding: 0.75em 1em; border-radius: 0.6em;
  border: 1px solid var(--v-line); margin-top: 0.5em;
}
.mk-opt.is-on { border-color: var(--v-mint); background: rgba(47, 191, 143, 0.1); font-weight: 700; }

.mk-site--full { font-size: 1.9cqi; }
.mk-site-hero--wide { padding-bottom: 2.4em; }
.mk-chart-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9em; padding: 1.1em 1.2em 0.9em;
}
.mk-chart-card > span { font-size: 0.72em; opacity: 0.8; margin-bottom: 0.6em; }
.mk-chart-card svg { width: 100%; height: 7em; }
.mk-chart-card small { font-size: 0.56em; opacity: 0.55; margin-top: 0.5em; }
.mk-paths { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1em; padding: 1.6em 2.2em 2em; }
.mk-paths div { background: #fff; border-radius: 0.8em; padding: 1em 1.1em; border: 1px solid var(--v-line); }
.mk-paths b { font-size: 0.85em; font-weight: 700; }
.mk-paths span { font-size: 0.68em; color: #6b7c8c; margin-top: 0.25em; }

/* Phone */
.mk-phone {
  background: #0d0d0d;
  border-radius: 2.2rem;
  padding: 8px;
  box-shadow: 0 30px 50px -18px rgba(15, 37, 54, 0.5);
}
.mk-phone .mk-wrap { border-radius: calc(2.2rem - 8px); overflow: hidden; }
.mk-app { font-size: 6.2cqi; background: #fff; color: var(--v-navy); padding: 0.9em 1.1em 1.2em; display: flex; flex-direction: column; }
.mk-app-status { display: flex; justify-content: space-between; font-size: 0.6em; font-weight: 700; margin-bottom: 0.9em; direction: ltr; }
.mk-app-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6em; }
.mk-app-head span { font-weight: 800; font-size: 0.95em; }
.mk-app-head small { font-size: 0.6em; color: #7a8a99; }
.mk-progress { height: 0.32em; border-radius: 1em; background: var(--v-line); overflow: hidden; margin-bottom: 1em; }
.mk-progress i { display: block; height: 100%; background: var(--v-mint); border-radius: 1em; margin-right: 0; }
.mk-steps { margin-bottom: 0.9em; }
.mk-steps li { position: relative; font-size: 0.68em; padding: 0.42em 1.9em 0.42em 0; color: #8a98a6; }
.mk-steps li::before {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 1.2em; height: 1.2em; margin-top: -0.6em; border-radius: 50%;
  border: 1.5px solid var(--v-line); box-sizing: border-box;
}
.mk-steps li.done { color: var(--v-navy); }
.mk-steps li.done::before { background: var(--v-mint); border-color: var(--v-mint); }
.mk-steps li.done::after {
  content: ""; position: absolute; right: 0.4em; top: 50%; width: 0.38em; height: 0.62em; margin-top: -0.42em;
  border: solid #fff; border-width: 0 0.13em 0.13em 0; transform: rotate(45deg);
}
.mk-steps li.now { color: var(--v-navy); font-weight: 700; }
.mk-steps li.now::before { border-color: var(--v-navy); border-width: 0.32em; }
.mk-upload {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.62em; padding: 0.9em 1em; border-radius: 0.8em;
  border: 1.5px dashed #c7d0d8; margin-bottom: 0.6em;
}
.mk-upload b { font-weight: 700; color: var(--v-navy-2); }
.mk-upload.done { border-style: solid; border-color: rgba(47, 191, 143, 0.5); background: rgba(47, 191, 143, 0.07); }
.mk-upload.done b { color: #1f9a71; }
.mk-app-btn {
  display: block; text-align: center; margin-top: 0.7em;
  background: var(--v-navy); color: #fff; font-weight: 700; font-size: 0.72em;
  padding: 0.95em; border-radius: 2em;
}
.mk-app-link { display: block; text-align: center; font-size: 0.6em; color: #6b7c8c; margin-top: 0.7em; text-decoration: underline; }
.mk-q { font-size: 0.74em; font-weight: 700; margin: 0.6em 0 0.5em; }
.mk-radio {
  position: relative; display: block; font-size: 0.64em;
  padding: 0.85em 2.4em 0.85em 1em; border-radius: 0.7em;
  border: 1px solid var(--v-line); margin-bottom: 0.45em;
}
.mk-radio::before {
  content: ""; position: absolute; right: 0.9em; top: 50%; width: 1em; height: 1em; margin-top: -0.5em;
  border-radius: 50%; border: 1.5px solid #b6c2cd; box-sizing: border-box;
}
.mk-radio.is-on { border-color: var(--v-mint); background: rgba(47, 191, 143, 0.08); font-weight: 700; }
.mk-radio.is-on::before { border: 0.32em solid var(--v-mint); }
.mk-seg { display: flex; gap: 0.3em; background: var(--v-paper); padding: 0.25em; border-radius: 0.8em; margin-bottom: 0.4em; }
.mk-seg span { flex: 1; text-align: center; font-size: 0.6em; padding: 0.6em 0; border-radius: 0.6em; color: #6b7c8c; }
.mk-seg span.is-on { background: #fff; color: var(--v-navy); font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

/* monday-style board */
.mk-board { font-size: 1.85cqi; line-height: 1.3; background: #fff; padding: 1.4em 1.6em 1.6em; color: #323338; }
.mk-board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1em; gap: 1em; }
.mk-board-top strong { font-size: 1.25em; font-weight: 800; }
.mk-board-tabs { display: flex; gap: 0.4em; font-size: 0.78em; }
.mk-board-tabs b { font-weight: 400; padding: 0.35em 0.9em; border-radius: 0.4em; color: #676879; }
.mk-board-tabs b.is-on { background: #e6f0ff; color: #0073ea; font-weight: 700; }
.mk-group { margin-top: 0.8em; border-right: 0.3em solid var(--g); border-radius: 0.3em; }
.mk-group-title { color: var(--g); font-weight: 800; font-size: 0.95em; padding: 0 0.8em 0.4em; }
.mk-row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr 0.6fr 1.25fr;
  align-items: center;
  border-top: 1px solid #e6e9ef;
  font-size: 0.78em;
  min-height: 2.6em;
}
.mk-row > span { padding: 0 0.8em; display: flex; align-items: center; gap: 0.5em; white-space: nowrap; overflow: hidden; }
.mk-row > span + span { border-right: 1px solid #e6e9ef; height: 100%; }
.mk-head { color: #676879; font-size: 0.7em; min-height: 2.2em; }
.mk-row .st {
  justify-content: center; background: var(--c); color: #fff; font-weight: 700;
  border-right-color: #fff !important;
}
.mk-row .av {
  font-style: normal; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: #ffcbd0; color: #a51c2a; display: grid; place-items: center; font-size: 0.8em; font-weight: 700;
  line-height: 1; flex-shrink: 0;
}
.mk-row .score { display: inline-block; width: 2.6em; height: 0.4em; border-radius: 1em; background: linear-gradient(90deg, #00c875 var(--s), #e6e9ef var(--s)); direction: ltr; }
@container (max-width: 520px) {
  .mk-board { font-size: 3.7cqi; padding: 1.1em 1em 1.2em; }
  .mk-row { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .mk-row .hide-sm { display: none; }
  .mk-board-tabs { display: none; }
}

/* Dashboard */
.mk-dash { font-size: 1.15cqi; line-height: 1.3; background: var(--v-paper); padding: 1.8em; color: var(--v-navy); }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.mk-kpis div { background: #fff; border-radius: 0.9em; padding: 1.2em 1.4em; border: 1px solid var(--v-line); }
.mk-kpis span { display: block; font-size: 0.9em; color: #6b7c8c; }
.mk-kpis b { display: block; font-size: 2.2em; font-weight: 800; line-height: 1.2; margin-top: 0.15em; }
.mk-kpis em { font-style: normal; font-size: 0.85em; font-weight: 700; color: #1f9a71; }
.mk-dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2em; margin-top: 1.2em; }
.mk-dash-chart, .mk-dash-src { background: #fff; border-radius: 0.9em; padding: 1.3em 1.4em; border: 1px solid var(--v-line); }
.mk-dash-chart > span, .mk-dash-src > span { display: block; font-size: 0.95em; font-weight: 700; margin-bottom: 0.9em; }
.mk-dash-chart svg { width: 100%; height: 11em; }
.mk-dash-chart small { display: flex; gap: 0.5em; align-items: center; font-size: 0.8em; color: #6b7c8c; margin-top: 0.6em; }
.lg { display: inline-block; width: 1.4em; height: 0.25em; border-radius: 1em; }
.lg-a { background: var(--v-navy); }
.lg-b { background: #b8c2cc; margin-right: 0.8em; }
.bar { display: grid; grid-template-columns: 5.5em 1fr 3em; align-items: center; gap: 0.8em; margin-top: 1em; font-size: 0.9em; }
.bar em { font-style: normal; color: #4b5d6d; }
.bar i { display: block; height: 0.7em; width: var(--w); border-radius: 1em; background: var(--v-navy-2); }
.bar b { font-weight: 700; text-align: left; direction: ltr; }
@container (max-width: 900px) {
  .mk-dash { font-size: 1.9cqi; }
}
@container (max-width: 560px) {
  .mk-dash { font-size: 3.4cqi; padding: 1.2em; }
  .mk-kpis { grid-template-columns: repeat(2, 1fr); gap: 0.8em; }
  .mk-dash-row { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1199px) {
  .cs-title { font-size: 44px; line-height: 50px; }
  .cs-hero-grid { gap: 40px; }
  .cs-panel { padding: 48px 48px; }
  .cs-dark-wrap { padding: 0 48px 64px; }
  .cs-approach-grid { gap: 48px; }
  .cs-stat { font-size: 54px; }
}

@media (max-width: 991px) {
  .cs-hero { padding-bottom: 110px; }
  .cs-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-hero-visual { max-width: 680px; width: 100%; margin: 0 auto; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .cs-meta > div:nth-child(3) { border-right: 0; padding-right: 0; }
  .cs-challenge-top { grid-template-columns: 1fr; gap: 40px; }
  .cs-before { max-width: 560px; width: 100%; margin: 0 auto; }
  .cs-pains { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .cs-approach-grid { grid-template-columns: 1fr; }
  .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-bento { grid-template-columns: 1fr 1fr; }
  .s-site, .s-crm, .s-dash { grid-column: 1 / -1; grid-row: auto; }
  .s-phone { grid-column: 1 / -1; grid-row: auto; }
  .screen-frame--phone .mk-phone { max-width: 270px; }
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-outcome-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  .cs-hero { padding-bottom: 96px; }
  .cs-hero .breadcrumbs { padding: 12px 0 22px; font-size: 14px; }
  .cs-client { font-size: 18px; margin-bottom: 10px; }
  .cs-title { font-size: 33px; line-height: 40px; margin-bottom: 18px; }
  .cs-intro { font-size: 18px; line-height: 27px; }
  .cs-tags { gap: 8px; margin-top: 22px; }
  .cs-tags li { font-size: 14px; padding: 5px 12px 5px 11px; white-space: normal; }
  .cs-hero-visual { padding: 0 0 28px 44px; }
  .cs-hero-visual .mk-phone { width: 31%; border-radius: 1.4rem; padding: 5px; }
  .cs-hero-visual .mk-phone .mk-wrap { border-radius: calc(1.4rem - 5px); }
  .mk-browser-bar { height: 22px; }
  .mk-browser-bar span { font-size: 9px; padding: 0 18px; }
  .mk-site { font-size: 3cqi; }
  .cs-hero-visual .mk-site-btn { display: none !important; }
  .mk-site-links { display: none !important; }

  .cs-meta-wrap { margin-top: -60px; }
  .cs-meta { padding: 18px 20px; gap: 14px 16px; }
  .cs-meta > div + div { padding-right: 16px; }
  .cs-meta dd { font-size: 16px; line-height: 23px; }

  .cs-challenge { padding: 48px 0 var(--w3d-section); background: linear-gradient(#fff 0, #fff 80px, var(--w3d-pink) 80px); }
  .cs-challenge .container.wider { padding: 0 12px; }
  .cs-panel { padding: 30px 20px 24px; }
  .cs-rule { font-size: 17px; line-height: 25.5px; }
  .cs-challenge .w3d-h2 span { display: block; }

  .cs-approach .container.wider { padding: 0 12px; }
  .cs-dark-wrap { padding: 0 18px 30px; }
  .cs-dark-title { font-size: 28px; line-height: 35px; margin: 44px auto 32px; }
  .cs-dark-lead { font-size: 17px; line-height: 25.5px; }
  .acc-btn { font-size: 19px; padding: 16px 0; min-height: 56px; }
  .acc-panel p { padding-right: 0; font-size: 17px; line-height: 25.5px; }
  .cs-journey { padding: 22px 16px 14px; }
  .cs-journey li { grid-template-columns: 40px 1fr; gap: 12px; }
  .cs-journey li b { width: 40px; height: 40px; font-size: 16px; }
  .cs-journey ol::before { right: 19px; }
  .cs-journey li em { grid-column: 2; justify-self: start; margin-top: -2px; }
  .cs-journey li strong { font-size: 17px; }
  .cs-dark-statement { font-size: 24px; line-height: 32px; margin-top: 44px; }

  .cs-work .w3d-h2,
  .cs-screens .w3d-h2 { margin-bottom: 32px; }
  .cs-steps { grid-template-columns: 1fr; gap: 16px; }
  .cs-steps li { padding: 24px 22px 22px; }
  .cs-num { font-size: 36px; margin-bottom: 12px; }
  .cs-steps h3 { font-size: 20px; }

  .cs-bento { grid-template-columns: 1fr; gap: 18px; }
  .screen-card { padding: 10px 10px 0; }
  .screen-card figcaption { font-size: 15px; padding: 12px 6px 14px; }
  .screen-frame--phone { padding: 22px 16%; }
  .mk-site--full { font-size: 3.6cqi; }
  .mk-site--full .mk-site-btn { display: none !important; }
  .mk-paths { gap: 0.6em; padding: 1.2em 1.4em 1.4em; }
  .mk-paths { grid-template-columns: 1fr !important; }
  .mk-chart-card { display: none; }
  .mk-site-hero--wide { grid-template-columns: 1fr !important; }

  .cs-results { padding: 48px 0 var(--w3d-section); }
  .cs-results-sub { font-size: 16px; line-height: 24px; margin-bottom: 28px; }
  .cs-stats { gap: 12px; }
  .cs-stats li { padding: 22px 16px 20px; }
  .cs-stat { font-size: 40px; margin-bottom: 12px; letter-spacing: -1px; }
  .cs-stat--text .ph { font-size: 26px; }
  .cs-stats h3 { font-size: 17px; line-height: 22px; }
  .cs-stats p { font-size: 14px; line-height: 20px; }

  .cs-outcome-lead { font-size: 24px; line-height: 31px; }
  .cs-outcome-text > p:last-child { font-size: 17px; line-height: 25.5px; }
  .cs-quote { padding: 28px 22px 24px; box-shadow: 6px 6px 22px rgba(255, 171, 171, 0.5); }
  .cs-quote blockquote p { font-size: 19px; line-height: 28px; }

  .cs-cta { padding: 44px 0; }
  .cs-cta h2 { font-size: 26px; line-height: 34px; }
  .cs-cta-actions { flex-direction: column; }
  .cs-cta-actions .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 380px) {
  .cs-title { font-size: 30px; line-height: 37px; }
  .cs-stat { font-size: 34px; }
}
@media (max-width: 359px) {
  .cs-meta { grid-template-columns: 1fr; }
  .cs-meta > div + div { border-right: 0; padding-right: 0; border-top: 1px solid var(--w3d-border); padding-top: 12px; }
}
