/* ============================================================
   CUSTOM SOFTWARE v2 — selectors prefixed cs2-
   Photo-led layout on top of the shared shell, buttons, crumbs,
   compare table, logos, FAQ, contact and reviews in css/styles.css.
   Photos: Unsplash, credited in img/stock/cs/README.md.
   ============================================================ */

.cs2-page {
  --ink: var(--deep);
  --ink-line: var(--deep-line);
  --ink-muted: var(--deep-muted);
  --cs2-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.45);
  --cs2-card-shadow: 0 22px 48px -22px rgba(0, 0, 0, 0.42);
  --cs2-green: #1f9d55;
}

.cs2-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.cs2-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- Shared bits ---- */
.cs2-sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); background: var(--bg); }
.cs2-sec.svc-alt { background: var(--bg-alt); }

.cs2-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.cs2-head .section-label,
.cs2-ai-copy .section-label { margin-bottom: 18px; }
.cs2-head h2,
.cs2-ai-copy h2 {
  max-width: 20ch;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.cs2-head-aside { justify-self: end; max-width: 40ch; }
.cs2-head-aside p { font-size: var(--fz-16); line-height: 1.55; color: var(--muted); }
.cs2-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.cs2-head-aside.cs2-cta { margin-top: 0; max-width: none; gap: 12px; }
.cs2-note { margin-top: 18px; font-size: var(--fz-13-5); color: var(--muted); }

.cs2-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--cs2-card-shadow);
}
.cs2-card-k { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cs2-card-k em { font-style: normal; letter-spacing: 0.02em; color: var(--text); }

.cs2-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1px solid var(--line); color: var(--text); }
.cs2-ico svg { display: block; width: 34px; height: 34px; fill: currentColor; }
.cs2-ico.is-sm { width: 40px; height: 40px; }
.cs2-ico.is-sm svg { width: 26px; height: 26px; }

.cs2-chip { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 9px; background: var(--surface); color: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }

.cs2-marquee { display: flex; overflow: hidden; }
.cs2-marquee-track { display: flex; align-items: center; flex-shrink: 0; margin: 0; padding: 0; list-style: none; animation: cs2-marq var(--dur, 60s) linear infinite; }
.cs2-marquee:hover .cs2-marquee-track { animation-play-state: paused; }
@keyframes cs2-marq { to { transform: translateX(-100%); } }
@keyframes cs2-zoom { from { transform: scale(1.08); } }
@keyframes cs2-spin { to { rotate: 360deg; } }
@keyframes cs2-ping { from { opacity: 1; transform: scale(0.7); } to { opacity: 0; transform: scale(1.7); } }

/* ============================================================
   HERO
   ============================================================ */
.cs2-hero { padding: clamp(20px, 3vw, 36px) 0 0; background: var(--bg); overflow: hidden; }
.cs2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}
.cs2-hero-copy .section-label { margin: clamp(28px, 5vw, 64px) 0 22px; }
.cs2-h1 { font-size: clamp(46px, 5.8vw, 88px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.97; }
.cs2-mark { background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 0.3em no-repeat; }
.cs2-js .cs2-mark { animation: cs2-mark 0.9s var(--ease) 0.9s both; }
@keyframes cs2-mark { from { background-size: 0 0.3em; } }
.cs2-lede { max-width: 42ch; margin-top: 26px; font-size: var(--fz-18); line-height: 1.5; color: var(--muted); }

.cs2-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  list-style: none;
}
.cs2-facts li { display: grid; gap: 6px; padding: 20px 28px 0; border-left: 1px solid var(--line); }
.cs2-facts li:first-child { padding-left: 0; border-left: 0; }
.cs2-facts b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cs2-facts li > span { font-size: var(--fz-13-5); color: var(--muted); }

.cs2-stage { position: relative; height: clamp(520px, calc(100vh - var(--header-h) - 150px), 690px); margin-top: clamp(16px, 3vw, 40px); }
.cs2-hero-photo { position: absolute; top: 0; right: 0; width: 82%; height: 88%; margin: 0; overflow: hidden; background: var(--bg-alt); box-shadow: var(--cs2-shadow); }
.cs2-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cs2-js .cs2-hero-photo.is-in img { animation: cs2-zoom 2.4s var(--ease) both; }

/* App-window hero, rendered from tools/screens-cp (img/screens/cs/hero-app*.webp) */
.cs2-stage:has(.cs2-app) { height: auto; }
.cs2-app { margin: 0; display: grid; gap: 12px; min-width: 0; }
.cs2-app-shot { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--bg-alt); }
.cs2-app figcaption { font-size: var(--fz-13); line-height: 1.45; color: var(--muted); }
.cs2-app figcaption span { margin-right: 6px; font-size: 10px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 640px) { .cs2-app-shot { border-radius: 14px; } }

.cs2-order,
.cs2-toast,
.cs2-aicard { position: absolute; z-index: 3; }
.cs2-order { top: 7%; left: 0; display: grid; gap: 4px; width: clamp(230px, 40%, 280px); }
.cs2-order > b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.cs2-pipe { position: relative; display: grid; gap: 10px; margin: 12px 0 2px; list-style: none; }
.cs2-pipe::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.cs2-pipe li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.cs2-pipe li i { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.cs2-pipe li.is-done { color: var(--text); }
.cs2-pipe li.is-done i { border-color: var(--text); background: var(--text); }
.cs2-pipe li.is-now { color: var(--text); font-weight: 600; }
.cs2-pipe li.is-now i { border-color: var(--text); background: var(--accent); }
.cs2-pipe li.is-now i::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 50%; animation: cs2-ping 1.8s ease-out infinite; }
.cs2-pipe li.is-now span::after { content: "Now"; margin-left: 8px; padding: 1px 6px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.cs2-toast,
.cs2-aicard { display: flex; align-items: center; gap: 12px; }
.cs2-toast { top: 50%; right: -2%; width: clamp(230px, 40%, 280px); }
.cs2-aicard { right: 5%; bottom: 0; width: clamp(250px, 46%, 320px); }
.cs2-toast-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; background: var(--accent); color: var(--accent-ink); }
.cs2-toast-ico svg { width: 26px; height: 26px; fill: currentColor; }
.cs2-toast .cs2-toast-ico { background: var(--text); color: var(--bg); }
.cs2-js .cs2-toast.is-in .cs2-toast-ico svg { animation: cs2-spin 1.4s var(--ease) 1.2s 2; }
.cs2-toast p,
.cs2-aicard p { display: grid; gap: 2px; min-width: 0; }
.cs2-toast b,
.cs2-aicard b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.cs2-toast small,
.cs2-aicard small { font-size: 12px; color: var(--muted); }
.cs2-btn-mini { margin-left: auto; padding: 6px 10px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cs2-js .cs2-card.is-in { animation: cs2-float 7s ease-in-out infinite; animation-delay: calc(var(--d, 0s) + 1s); }
@keyframes cs2-float { 50% { translate: 0 -8px; } }

.cs2-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.cs2-hero-foot p { font-size: var(--fz-13-5); color: var(--muted); }
.cs2-badges { display: flex; align-items: center; gap: 26px; list-style: none; }
.cs2-badges img { height: 34px; width: auto; }

/* ============================================================
   WHO THIS IS FOR — three photo cards
   ============================================================ */
.cs2-fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.cs2-fitcard { display: flex; flex-direction: column; }
.cs2-fitcard figure { position: relative; margin: 0 0 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.cs2-fitcard figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cs2-fitcard:hover figure img { transform: scale(1.05); }
.cs2-fitcard h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; }
.cs2-fitcard > ul { display: grid; gap: 8px; margin: 16px 0 20px; list-style: none; }
.cs2-fitcard > ul li { display: flex; gap: 10px; font-size: var(--fz-15); line-height: 1.4; color: var(--muted); }
.cs2-fitcard > ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; background: var(--text); }
.cs2-fit-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fz-15); font-weight: 600; }

/* ============================================================
   WHAT WE BUILD — tabbed showcase of demo screens
   ============================================================ */
.cs2-show { display: grid; grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.cs2-show-tabs { position: relative; display: grid; gap: 2px; }
.cs2-show-tab {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.cs2-show-tab:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.cs2-show-tab.is-on { border-color: var(--line); background: var(--surface); }
.cs2-show-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cs2-show-ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--muted); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.cs2-show-ico svg { display: block; width: 26px; height: 26px; fill: currentColor; }
.cs2-show-tab:hover .cs2-show-ico { color: var(--text); }
.cs2-show-tab.is-on .cs2-show-ico { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.cs2-show-txt { display: grid; min-width: 0; }
.cs2-show-txt b { font-size: var(--fz-16); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--muted); transition: color 0.3s; }
.cs2-show-tab:hover b,
.cs2-show-tab.is-on b { color: var(--text); }
.cs2-show-txt small { max-height: 0; overflow: hidden; opacity: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: max-height 0.45s var(--ease), opacity 0.3s, margin 0.45s var(--ease); }
.cs2-show-tab.is-on small { max-height: 3em; margin-top: 3px; opacity: 1; }
.cs2-show-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; }
.cs2-show:not(.is-auto) .cs2-show-tab.is-on .cs2-show-bar { transform: scaleX(1); }
.cs2-show.is-auto .cs2-show-tab.is-on .cs2-show-bar { animation: cs2-bar var(--show-dur, 7s) linear forwards; }
.cs2-show.is-auto.is-paused .cs2-show-tab.is-on .cs2-show-bar { animation-play-state: paused; }
@keyframes cs2-bar { to { transform: scaleX(1); } }
.cs2-show-stage { min-width: 0; }
.cs2-show-note { margin-top: 14px; font-size: var(--fz-13-5); color: var(--muted); }

.cs2-win { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--cs2-shadow); overflow: hidden; }
.cs2-win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.cs2-win-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 16%, transparent); }
.cs2-win-bar span { min-width: 0; margin: 0 auto; padding: 3px 18px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs2-win-body { position: relative; }
.cs2-win-body img { display: block; width: 100%; height: auto; }
.cs2-win.is-dark { border-color: #2a2a27; background: #0e0e0d; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.cs2-win.is-dark .cs2-win-bar { border-bottom-color: #2a2a27; background: #151514; }
.cs2-win.is-dark .cs2-win-bar i { background: #3a3a37; }
.cs2-win.is-dark .cs2-win-bar span { border-color: #2a2a27; background: #0e0e0d; color: #8f8f88; }

.cs2-shot { margin: 0; }
.cs2-shot + .cs2-shot { border-top: 1px solid var(--line); }
.cs2-js .cs2-win.is-show .cs2-win-body { aspect-ratio: 1600 / 1046; overflow: hidden; background: #eceff3; }
.cs2-js .cs2-shot { position: absolute; inset: 0; border-top: 0; opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), visibility 0s 0.5s; }
.cs2-js .cs2-shot.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }

.cs2-os {
  display: flex;
  align-items: center;
  gap: 18px 22px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.3s;
}
.cs2-os:hover { border-color: var(--text); }
.cs2-os > span:not(.cs2-ico) { flex: 1; font-size: var(--fz-16); line-height: 1.45; color: var(--muted); }
.cs2-os > span b { color: var(--text); font-weight: 600; }
.cs2-os em { flex: none; padding: 9px 14px; background: var(--accent); color: var(--accent-ink); font-size: var(--fz-14); font-style: normal; font-weight: 600; }

/* ============================================================
   INDUSTRIES — eight photo cards
   ============================================================ */
.cs2-inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cs2-ind { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); color: var(--deep-text); }
.cs2-ind > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cs2-ind:hover > img { transform: scale(1.06); }
.cs2-ind::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(8, 8, 8, 0.86)); pointer-events: none; }
.cs2-ind > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 10px; padding: 18px; }
.cs2-ind h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.cs2-ind p { display: flex; flex-wrap: wrap; gap: 6px; }
.cs2-ind p span { padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--deep-text) 28%, transparent); background: color-mix(in srgb, var(--deep-text) 8%, transparent); font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); }

/* ============================================================
   STACK — delivery-system screen with promises + six groups
   ============================================================ */
.cs2-stack { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cs2-stack-shot { position: sticky; top: calc(var(--header-h, 72px) + 24px); margin: 0; }
.cs2-stack-shot figcaption { margin-top: 16px; }
.cs2-promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 14px; list-style: none; }
.cs2-promise li,
.cs2-ai-ex li,
.cs2-models li,
.cs2-extras li { display: flex; gap: 12px; align-items: flex-start; }
.cs2-promise div,
.cs2-ai-ex div,
.cs2-models div,
.cs2-extras div { display: grid; gap: 2px; min-width: 0; }
.cs2-promise b,
.cs2-ai-ex b { font-size: var(--fz-15); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.cs2-promise span,
.cs2-ai-ex span { font-size: 13px; line-height: 1.4; color: var(--muted); }

.cs2-grps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cs2-grp { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.cs2-grp:hover { border-color: var(--text); }
.cs2-grp-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cs2-grp ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.cs2-grp ul li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); background: var(--bg); font-size: var(--fz-14); font-weight: 600; }
.cs2-grp ul img { width: 20px; height: 20px; object-fit: contain; }
.cs2-grp > p:last-child { margin-top: auto; font-size: var(--fz-15); line-height: 1.45; color: var(--muted); }
html[data-theme="wpx-dark"] .cs2-grp ul img[src*="nextjs"],
html[data-theme="wpx-dark"] .cs2-grp ul img[src*="github"],
html[data-theme="wpx-dark"] .cs2-grp ul img[src*="openai"],
html[data-theme="wpx-dark"] .cs2-grp ul img[src*="anthropic"] { filter: invert(1); }

/* ============================================================
   AI — dark, workflow screen + examples
   ============================================================ */
.cs2-dark { background: var(--ink); border-top-color: var(--ink); color: var(--deep-text); }
.cs2-dark .section-label { color: var(--accent); }
.cs2-ai { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.cs2-ai-shot { margin: 0; }
.cs2-ai-shot figcaption { margin-top: 14px; font-size: var(--fz-13-5); color: var(--ink-muted); }
.cs2-ai-lede { max-width: 46ch; margin-top: 20px; font-size: var(--fz-17, 17px); line-height: 1.55; color: var(--ink-muted); }
.cs2-ai-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 32px 0 28px; padding-top: 28px; border-top: 1px solid var(--ink-line); list-style: none; }
.cs2-dark .cs2-ai-ex .cs2-ico { border-color: var(--ink-line); color: var(--accent); }
.cs2-dark .cs2-ai-ex span { color: var(--ink-muted); }
.cs2-checks { display: grid; gap: 10px; margin-bottom: 30px; list-style: none; }
.cs2-checks li { display: flex; gap: 11px; font-size: var(--fz-15); line-height: 1.4; }
.cs2-checks li::before,
.cs2-tier li::before,
.cs2-incl li::before {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cs2-checks li::before { background: var(--accent); }
.cs2-btn-dark { border-color: color-mix(in srgb, var(--deep-text) 40%, transparent); color: var(--deep-text); }
.cs2-btn-dark:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   PROCESS — four icon steps on a line
   ============================================================ */
.cs2-steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 44px; list-style: none; }
.cs2-steps::before,
.cs2-steps::after { content: ""; position: absolute; top: 7px; left: 0; height: 2px; background: var(--line); }
.cs2-steps::before { right: 0; }
.cs2-steps::after { width: calc(var(--p) * 100%); background: var(--text); }
.cs2-step { position: relative; }
.cs2-step::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: var(--bg);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.cs2-step.is-done::before { background: var(--accent); border-color: var(--text); transform: rotate(45deg); }
.cs2-step-when { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cs2-step-ico { display: grid; place-items: center; width: 68px; height: 68px; margin: 18px 0 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform 0.5s var(--ease); }
.cs2-step-ico svg { display: block; width: 44px; height: 44px; fill: currentColor; }
.cs2-step:hover .cs2-step-ico { transform: translateY(-4px); }
.cs2-step h3 { margin-bottom: 8px; font-size: clamp(21px, 2vw, 27px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.cs2-step > p:not(.cs2-step-when) { font-size: var(--fz-15); line-height: 1.5; color: var(--muted); }
.cs2-step-out { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; list-style: none; }
.cs2-step-out li { padding: 4px 9px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.cs2-models { margin-top: clamp(48px, 6vw, 80px); }
.cs2-models .section-label { margin-bottom: 18px; }
.cs2-models ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cs2-models li { align-items: center; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.cs2-models b { font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.cs2-models span { font-size: var(--fz-14); color: var(--muted); }
.cs2-models em { margin-left: auto; align-self: flex-start; padding: 3px 8px; background: var(--bg-alt); font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; }

/* ============================================================
   BUILD VS BUY — shared compare table, tighter
   ============================================================ */
.cs2-compare td,
.cs2-compare th { vertical-align: middle; }

/* ============================================================
   PRICING
   ============================================================ */
.cs2-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs2-tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cs2-tier.is-pop { background: var(--ink); border-color: var(--ink); color: var(--deep-text); }
.cs2-tier-ico,
.cs2-tier-ico svg { width: 56px; height: 56px; }
.cs2-tier-ico { margin: 0 0 8px; color: inherit; transition: transform 0.5s var(--ease); }
.cs2-tier-ico svg { display: block; fill: currentColor; }
.cs2-tier.is-pop .cs2-tier-ico { color: var(--accent); }
.cs2-tier:hover .cs2-tier-ico { transform: translateY(-4px); }
.cs2-tier-badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 5px 9px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cs2-tier-k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cs2-tier h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.cs2-tier-price { display: flex; align-items: baseline; gap: 10px; font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; }
.cs2-tier-price small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cs2-tier-best { font-size: var(--fz-15); line-height: 1.45; }
.cs2-tier-time { margin-top: auto; font-size: var(--fz-13-5); color: var(--muted); }
.cs2-tier.is-pop .cs2-tier-k,
.cs2-tier.is-pop .cs2-tier-time,
.cs2-tier.is-pop .cs2-tier-price small { color: var(--ink-muted); }
.cs2-tier ul { display: grid; gap: 11px; margin: 6px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); list-style: none; }
.cs2-tier.is-pop ul { border-top-color: var(--ink-line); }
.cs2-tier li,
.cs2-incl li { display: flex; gap: 11px; font-size: var(--fz-15); line-height: 1.4; }
.cs2-tier.is-pop li::before { background: var(--accent); }
.cs2-tier .btn { width: 100%; }
.cs2-tier.is-pop .btn-lime:hover { background: #fff; color: var(--ink); }

.cs2-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; list-style: none; }
.cs2-extras li { padding: 20px; border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); }
.cs2-extras b { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.cs2-extras div > span { font-size: var(--fz-14); line-height: 1.45; color: var(--muted); }
.cs2-incl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; list-style: none; }
.cs2-incl li { font-size: var(--fz-14-5); color: var(--muted); }

/* ============================================================
   GUARANTEES
   ============================================================ */
.cs2-guar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cs2-guar li { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border: 1px solid var(--line); background: var(--surface); }
.cs2-guar .cs2-ico { margin-bottom: 10px; }
.cs2-guar b { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.cs2-guar span:not(.cs2-ico) { font-size: var(--fz-15); line-height: 1.45; color: var(--muted); }

/* ---- Mega marquee ---- */
.cs2-mega { overflow: hidden; padding: clamp(14px, 2vw, 22px) 0; background: var(--ink); color: var(--deep-text); }
.cs2-mega .cs2-marquee-track { --dur: 40s; }
.cs2-mega-item { padding-right: 0.32em; font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
.cs2-mega-item i { font-style: normal; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .cs2-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs2-ind { aspect-ratio: 4 / 3; }
  .cs2-guar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .cs2-hero-grid { grid-template-columns: 1fr; }
  .cs2-stage { height: clamp(460px, 70vw, 620px); max-width: 780px; width: 100%; margin-inline: auto; }
  .cs2-show { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cs2-show-tabs { display: flex; gap: 8px; margin-right: calc(var(--gutter, 20px) * -1); padding: 2px var(--gutter, 20px) 4px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cs2-show-tabs::-webkit-scrollbar { display: none; }
  .cs2-show-tab { flex: none; width: auto; grid-template-columns: auto auto; gap: 9px; padding: 7px 14px 7px 7px; border-color: var(--line); scroll-snap-align: start; }
  .cs2-show-ico { width: 32px; height: 32px; }
  .cs2-show-ico svg { width: 22px; height: 22px; }
  .cs2-show-txt b { font-size: 14.5px; white-space: nowrap; }
  .cs2-show-txt small { display: none; }
  .cs2-stack { grid-template-columns: 1fr; }
  .cs2-stack-shot { position: relative; top: auto; max-width: 720px; }
  .cs2-ai { grid-template-columns: 1fr; }
  .cs2-ai-copy { order: -1; }
  .cs2-ai-shot { max-width: 820px; }
}

@media (max-width: 900px) {
  .cs2-head { grid-template-columns: 1fr; }
  .cs2-head-aside { justify-self: start; }
  .cs2-fits { grid-template-columns: 1fr 1fr; }
  .cs2-fitcard:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: start; }
  .cs2-fitcard:last-child figure { grid-row: span 4; margin: 0; }
  .cs2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; padding-top: 26px; }
  .cs2-steps::before,
  .cs2-steps::after { display: none; }
  .cs2-step::before { top: -26px; width: 14px; height: 14px; }
  .cs2-models ul,
  .cs2-extras { grid-template-columns: 1fr; }
  .cs2-tier { padding: 24px 20px 22px; }
  .cs2-tier-price { font-size: 40px; }
}

@media (max-width: 760px) {
  .cs2-tiers { grid-template-columns: 1fr; max-width: 560px; }
  .cs2-os { flex-wrap: wrap; }
  .cs2-os > span:not(.cs2-ico) { flex-basis: calc(100% - 80px); }
}

@media (max-width: 640px) {
  .cs2-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs2-facts li { padding: 16px 12px 0; }
  .cs2-facts b { font-size: 21px; }
  .cs2-facts li > span { font-size: 12px; }
  .cs2-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; height: auto; }
  .cs2-hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3.3; }
  .cs2-order,
  .cs2-toast,
  .cs2-aicard { position: relative; inset: auto; width: auto; }
  .cs2-order { width: 78%; margin: -48px 0 0 10px; padding: 12px 14px; }
  .cs2-pipe { gap: 7px; margin-top: 8px; }
  .cs2-pipe li { font-size: 12px; }
  .cs2-toast { display: none; }
  .cs2-aicard { margin: 0 0 0 auto; width: 88%; padding: 12px; }
  .cs2-hero-foot { justify-content: center; text-align: center; }
  .cs2-badges { flex-wrap: wrap; justify-content: center; gap: 14px 22px; }
  .cs2-badges img { height: 28px; }
  .cs2-fits { grid-template-columns: 1fr; gap: 40px; }
  .cs2-fitcard:last-child { display: flex; }
  .cs2-fitcard:last-child figure { margin: 0 0 20px; }
  .cs2-win-bar { height: 30px; padding: 0 10px; gap: 5px; }
  .cs2-win-bar i { width: 7px; height: 7px; }
  .cs2-win-bar span { padding: 2px 10px; font-size: 11px; }
  .cs2-show-note { font-size: 12.5px; }
  .cs2-inds { display: flex; gap: 12px; margin-right: calc(var(--gutter, 20px) * -1); padding-right: var(--gutter, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cs2-inds::-webkit-scrollbar { display: none; }
  .cs2-ind { flex: 0 0 76%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .cs2-promise { grid-template-columns: 1fr; gap: 12px; }
  .cs2-grps { grid-template-columns: 1fr; }
  .cs2-grp { padding: 18px; }
  .cs2-ai-ex { grid-template-columns: 1fr; gap: 16px; }
  .cs2-steps { grid-template-columns: 1fr; row-gap: 30px; padding-top: 0; }
  .cs2-step::before { display: none; }
  .cs2-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .cs2-step > * { grid-column: 2; }
  .cs2-step-ico { grid-column: 1; grid-row: 1 / span 4; width: 56px; height: 56px; margin: 0; }
  .cs2-step-ico svg { width: 36px; height: 36px; }
  .cs2-step-when { margin-bottom: 6px; }
  .cs2-models li { flex-wrap: wrap; }
  .cs2-models em { margin-left: 64px; }
  .cs2-guar { grid-template-columns: 1fr; }
  .cs2-head-aside.cs2-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs2-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cs2-js .cs2-card.is-in,
  .cs2-js .cs2-hero-photo.is-in img,
  .cs2-js .cs2-toast.is-in .cs2-toast-ico svg,
  .cs2-pipe li.is-now i::after,
  .cs2-marquee-track,
  .cs2-js .cs2-mark { animation: none; }
  .cs2-js .cs2-shot { transform: none; transition: none; }
}

/* Dark surfaces: buttons on them take the dark palette's action colour */
.cs2-ind,
.cs2-dark,
.cs2-tier.is-pop,
.cs2-mega {
  --cta: var(--deep-accent);
  --cta-hover: var(--deep-accent-hover);
  --cta-ink: var(--deep-accent-ink);
}
