/* =============================================================
   MEASURE MARKETING PRO — DESIGN SYSTEM v2
   Conversion Tracking Agency
   Loads AFTER style.css. Everything is prefixed `ds-` so it can
   roll out page by page without touching legacy pages.
   Reference: /design-system
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color: surfaces */
  --ds-bg:          #0A0A0B;
  --ds-surface:     #111113;
  --ds-surface-2:   #17171A;
  --ds-surface-3:   #1E1E22;
  --ds-line:        rgba(255,255,255,0.07);
  --ds-line-strong: rgba(255,255,255,0.13);

  /* Color: text */
  --ds-white: #FAFAF9;
  --ds-text:  #D6D3D1;
  --ds-muted: #A1A1AA;
  --ds-dim:   #71717A;

  /* Color: brand */
  --ds-gold:       #F5C100;
  --ds-gold-hover: #FFD23F;
  --ds-gold-deep:  #B88F00;
  --ds-gold-tint:  rgba(245,193,0,0.08);
  --ds-gold-line:  rgba(245,193,0,0.28);

  /* Color: status (UI mocks, diagrams) */
  --ds-ok:   #4ADE80;
  --ds-warn: #FBBF24;

  /* Type */
  --ds-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ds-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --ds-fs-display: clamp(2.6rem, 5.4vw, 4.4rem);
  --ds-fs-h2:      clamp(2rem, 3.6vw, 2.85rem);
  --ds-fs-h3:      1.2rem;
  --ds-fs-lead:    clamp(1.08rem, 1.4vw, 1.25rem);
  --ds-fs-body:    1rem;
  --ds-fs-small:   0.875rem;
  --ds-fs-eyebrow: 0.72rem;

  /* Space & shape */
  --ds-section:    clamp(88px, 11vw, 136px);
  --ds-max:        1200px;
  --ds-max-narrow: 760px;
  --ds-r-lg: 18px;
  --ds-r:    12px;
  --ds-r-sm: 8px;

  /* Motion & depth */
  --ds-ease: cubic-bezier(.2,.7,.2,1);
  --ds-t:    .25s var(--ds-ease);
  --ds-shadow:      0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -24px rgba(0,0,0,0.8);
  --ds-shadow-lift: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -30px rgba(0,0,0,0.9);
}

/* ---------- 2. Base ---------- */
body.ds-page {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-sans);
  font-size: var(--ds-fs-body);
  line-height: 1.7;
  font-feature-settings: "ss01", "cv11";
}
.ds-page h1, .ds-page h2, .ds-page h3, .ds-page h4 {
  color: var(--ds-white);
  font-family: var(--ds-sans);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.ds-page p { color: var(--ds-text); }
.ds-page code, .ds-page kbd, .ds-page pre { font-family: var(--ds-sans); }
.ds-page :not(pre) > code { font-size: 0.88em; color: var(--ds-white); background: rgba(255,255,255,0.06); border: 1px solid var(--ds-line); border-radius: 5px; padding: 0.05em 0.4em; }
.ds-page ::selection { background: var(--ds-gold); color: #0A0A0B; }

.ds-container { max-width: var(--ds-max); margin: 0 auto; padding: 0 1.5rem; }
.ds-narrow    { max-width: var(--ds-max-narrow); }
.ds-section   { padding: var(--ds-section) 0; position: relative; }
.ds-section--alt { background: var(--ds-surface); border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-center { text-align: center; }
.ds-center .ds-lead { margin-left: auto; margin-right: auto; }

/* ---------- 3. Typography ---------- */
.ds-display {
  font-size: var(--ds-fs-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.ds-h2 { font-size: var(--ds-fs-h2); font-weight: 700; }
.ds-h3 { font-size: var(--ds-fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
/* Serif italic accent: one or two words per heading, never a full line */
.ds-accent {
  font-family: var(--ds-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ds-gold);
}
.ds-lead {
  font-size: var(--ds-fs-lead);
  color: var(--ds-muted);
  line-height: 1.65;
  max-width: 620px;
}
.ds-small { font-size: var(--ds-fs-small); color: var(--ds-muted); }

/* Eyebrow: gold rule + caps label (replaces the legacy pill) */
.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--ds-fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-gold);
  margin-bottom: 1.25rem;
}
.ds-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ds-gold);
}
.ds-center .ds-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ds-gold);
}

.ds-section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.ds-section-head .ds-h2 { margin-bottom: 1rem; }

/* ---------- 4. Icons ---------- */
/* Monoline SVG icons from the inline sprite. 24px grid, 1.5 stroke. */
.ds-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ds-icon--sm { width: 16px; height: 16px; }
.ds-icon--lg { width: 28px; height: 28px; }
.ds-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-r);
  display: grid;
  place-items: center;
  color: var(--ds-gold);
  background: linear-gradient(180deg, var(--ds-gold-tint), rgba(245,193,0,0.02));
  border: 1px solid var(--ds-gold-line);
}

/* ---------- 5. Buttons ---------- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--ds-r-sm);
  font-family: var(--ds-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--ds-t);
  text-decoration: none;
}
.ds-btn .ds-icon { width: 16px; height: 16px; transition: transform var(--ds-t); }
.ds-btn:hover .ds-icon { transform: translateX(3px); }
.ds-btn--primary { background: var(--ds-gold); color: #0A0A0B; }
.ds-btn--primary:hover { background: var(--ds-gold-hover); }
.ds-btn--secondary { background: transparent; color: var(--ds-white); border-color: var(--ds-line-strong); }
.ds-btn--secondary:hover { border-color: var(--ds-gold-line); background: var(--ds-gold-tint); }
.ds-btn--lg { padding: 17px 28px; font-size: 1rem; }
.ds-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ds-gold);
}
.ds-link .ds-icon { width: 15px; height: 15px; transition: transform var(--ds-t); }
.ds-link:hover .ds-icon { transform: translateX(3px); }
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Cards ---------- */
.ds-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ds-surface-2), var(--ds-surface));
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-r-lg);
  padding: 2rem;
  box-shadow: var(--ds-shadow);
  transition: var(--ds-t);
  text-decoration: none;
  color: inherit;
}
a.ds-card:hover, .ds-card--hover:hover {
  border-color: var(--ds-gold-line);
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow-lift);
}
.ds-card .ds-icon-tile { margin-bottom: 1.5rem; }
.ds-card h3 { margin-bottom: 0.6rem; }
.ds-card p { font-size: 0.95rem; color: var(--ds-muted); line-height: 1.65; flex: 1; }
.ds-card .ds-link { margin-top: 1.5rem; }
.ds-card-index {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--ds-sans);
  font-size: 0.72rem;
  color: var(--ds-dim);
  letter-spacing: 0.05em;
}

.ds-grid { display: grid; gap: 20px; }
.ds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ds-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ds-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Check list */
.ds-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 10px; }
.ds-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ds-text); }
.ds-checks .ds-icon { width: 18px; height: 18px; color: var(--ds-gold); margin-top: 3px; }

/* ---------- 7. Hero ---------- */
.ds-hero {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.ds-hero::after { /* gold glow */
  content: "";
  position: absolute;
  width: 900px; height: 600px;
  top: -260px; right: -220px;
  background: radial-gradient(closest-side, rgba(245,193,0,0.14), transparent);
  z-index: -1;
  pointer-events: none;
}
.ds-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.ds-hero .ds-display { margin-bottom: 1.5rem; }
.ds-hero .ds-lead { margin-bottom: 2.25rem; }

/* Trust row (hero): three equal columns, never wraps unevenly */
.ds-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ds-line);
  max-width: 600px;
}
.ds-trust-sep { display: none; }
.ds-trust-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 18px; border-left: 1px solid var(--ds-line); }
.ds-trust-item:first-child { padding-left: 0; border-left: 0; }
.ds-trust-item > .ds-icon { width: 20px; height: 20px; color: var(--ds-gold); }
.ds-trust-text { display: flex; flex-direction: column; line-height: 1.3; }
.ds-trust-text strong { font-size: 0.88rem; font-weight: 600; color: var(--ds-white); }
.ds-trust-text span { font-size: 0.74rem; color: var(--ds-dim); }
.ds-stars { display: inline-flex; gap: 2px; color: var(--ds-gold); height: 20px; align-items: center; }
.ds-stars .ds-icon { width: 14px; height: 14px; fill: currentColor; stroke-width: 1; }
@media (max-width: 480px) { .ds-trust-item { padding: 0 10px; } .ds-trust-text strong { font-size: 0.8rem; } }

.ds-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ds-line);
}
.ds-proof-item { padding-right: 2.25rem; margin-right: 2.25rem; border-right: 1px solid var(--ds-line); }
.ds-proof-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ds-proof-num { display: block; font-size: 1.75rem; font-weight: 700; color: var(--ds-white); letter-spacing: -0.03em; line-height: 1.1; }
.ds-proof-label { font-size: 0.8rem; color: var(--ds-dim); }

/* Founder card (hero, sits on top of the signal panel) */
.ds-hero-visual { display: flex; flex-direction: column; gap: 14px; }
.ds-founder {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: linear-gradient(180deg, var(--ds-surface-2), var(--ds-surface));
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-r-lg);
  box-shadow: var(--ds-shadow);
}
.ds-founder-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--ds-gold);
  padding: 3px;
  background: var(--ds-bg);
}
.ds-founder-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.ds-founder-text strong { color: var(--ds-white); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.ds-founder-text span { color: var(--ds-muted); font-size: 0.85rem; }
.ds-founder-top { display: flex; align-items: center; gap: 16px; }
.ds-founder-loc { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 0.78rem !important; color: var(--ds-dim) !important; }
.ds-founder-loc .ds-icon { width: 14px; height: 14px; color: var(--ds-gold); }
.ds-founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ds-line);
}
.ds-founder-stats > div { padding: 0 14px; border-left: 1px solid var(--ds-line); }
.ds-founder-stats > div:first-child { padding-left: 0; border-left: 0; }
.ds-founder-stats .ds-proof-num { font-size: 1.5rem; }
.ds-founder-stats .ds-proof-label { display: block; font-size: 0.75rem; line-height: 1.35; margin-top: 2px; }
/* About the specialist */
.ds-about { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.ds-about-card { align-items: center; text-align: center; padding: 2.5rem 2rem; }
.ds-about-photo { display: block; width: 144px; height: 144px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; border: 2px solid var(--ds-gold); padding: 4px; background: var(--ds-bg); }
.ds-about-card strong { display: block; font-size: 1.25rem; color: var(--ds-white); font-weight: 600; letter-spacing: -0.01em; }
.ds-about-card .ds-about-role { display: block; font-size: 0.9rem; color: var(--ds-muted); margin-top: 2px; }
.ds-about-card .ds-founder-loc { justify-content: center; margin-top: 8px; font-size: 0.82rem; color: var(--ds-dim); }
.ds-about-certs { display: flex; justify-content: center; gap: 14px; width: 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ds-line); }
.ds-about-certs img { display: block; width: 84px; height: 84px; max-width: 84px; object-fit: contain; }
.ds-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; padding: 1.5rem 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-about-stats > div { padding: 0 20px; border-left: 1px solid var(--ds-line); }
.ds-about-stats > div:first-child { padding-left: 0; border-left: 0; }
.ds-about-stats .ds-proof-label { display: block; font-size: 0.8rem; margin-top: 4px; }
.ds-about-stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 680px) { .ds-about-stats--4 { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; } .ds-about-stats--4 > div:nth-child(3) { padding-left: 0; border-left: 0; } }
.ds-hero .ds-about-card { max-width: 380px; justify-self: end; width: 100%; }
@media (max-width: 1024px) { .ds-hero .ds-about-card { justify-self: start; } }
@media (max-width: 1024px) { .ds-about { grid-template-columns: 1fr; } .ds-about-card { max-width: 420px; width: 100%; } }

.ds-founder-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ds-gold);
  border: 1px solid var(--ds-gold-line);
  transition: var(--ds-t);
  flex-shrink: 0;
}
.ds-founder-link .ds-icon { width: 16px; height: 16px; }
.ds-founder-link:hover { background: var(--ds-gold-tint); }

/* Signal panel (hero UI mock) */
.ds-panel {
  background: linear-gradient(180deg, rgba(30,30,34,0.9), rgba(17,17,19,0.95));
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-r-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(245,193,0,0.04);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.ds-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ds-line);
  font-size: 0.78rem; color: var(--ds-muted);
}
.ds-panel-head strong { color: var(--ds-white); font-weight: 600; }
.ds-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ds-sans); font-size: 0.7rem; color: var(--ds-ok); }
.ds-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-ok); box-shadow: 0 0 0 3px rgba(74,222,128,0.15); }
.ds-panel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ds-line);
}
.ds-panel-row:last-child { border-bottom: 0; }
.ds-panel-row .ds-icon-tile { width: 36px; height: 36px; border-radius: 9px; }
.ds-panel-row .ds-icon-tile .ds-icon { width: 18px; height: 18px; }
.ds-panel-title { font-size: 0.88rem; font-weight: 600; color: var(--ds-white); line-height: 1.3; }
.ds-panel-meta { font-size: 0.74rem; color: var(--ds-dim); font-family: var(--ds-sans); }
.ds-panel-val { font-family: var(--ds-sans); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.82rem; color: var(--ds-white); text-align: right; }
.ds-panel-dest { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.ds-chip {
  font-family: var(--ds-sans);
  font-size: 0.64rem;
  color: var(--ds-muted);
  border: 1px solid var(--ds-line-strong);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.ds-panel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: rgba(245,193,0,0.04);
  border-top: 1px solid var(--ds-line);
  font-size: 0.76rem; color: var(--ds-muted);
}
.ds-panel-foot b { color: var(--ds-gold); font-weight: 600; font-family: var(--ds-sans); }

/* Journey panel (industry hero): one buyer from click to revenue */
.ds-jr-panel {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(245,193,0,0.09), transparent 70%),
    linear-gradient(180deg, rgba(30,30,34,0.92), rgba(15,15,17,0.96));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.ds-jr-panel .ds-panel-head strong { display: inline-flex; align-items: center; gap: 8px; }
.ds-jr-panel .ds-panel-head strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-gold); box-shadow: 0 0 0 3px rgba(245,193,0,0.15); }
.ds-jr-head-note { font-size: 0.74rem; color: var(--ds-dim); }

.ds-jr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ds-line); }
.ds-jr-kpis > div { padding: 12px 18px; border-left: 1px solid var(--ds-line); }
.ds-jr-kpis > div:first-child { border-left: 0; }
.ds-jr-kpis span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-dim); }
.ds-jr-kpis b { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 600; color: var(--ds-white); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ds-jr-kpis > div:last-child b { color: var(--ds-gold); }

.ds-jr { padding: 8px 18px 14px; }
.ds-jr-step {
  --d: calc(var(--i, 0) * 0.45s);
  position: relative;
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 11px 0;
  animation: ds-jr-in .5s var(--ds-ease) both;
  animation-delay: calc(var(--i, 0) * 0.12s);
}
/* connector track + gold fill that draws down the journey */
.ds-jr-step::before, .ds-jr-step::after {
  content: "";
  position: absolute;
  left: 17.5px;
  top: calc(50% + 18px);
  height: calc(100% - 36px + 22px);
  width: 1px;
}
.ds-jr-step::before { background: var(--ds-line-strong); }
.ds-jr-step::after {
  background: linear-gradient(180deg, var(--ds-gold), rgba(245,193,0,0.35));
  transform-origin: top;
  animation: ds-jr-fill .45s linear both;
  animation-delay: calc(var(--d) + 0.35s);
}
.ds-jr-step:last-child::before, .ds-jr-step:last-child::after { display: none; }

.ds-jr-node {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ds-gold);
  background: var(--ds-surface-3);
  border: 1px solid var(--ds-gold-line);
  animation: ds-jr-node .4s var(--ds-ease) both;
  animation-delay: calc(var(--d) + 0.2s);
}
.ds-jr-node .ds-icon { width: 17px; height: 17px; }
.ds-jr-step.is-final .ds-jr-node { background: var(--ds-gold); color: #0A0A0B; border-color: var(--ds-gold); }
.ds-jr-step.is-final .ds-jr-node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--ds-gold);
  animation: ds-jr-ping 2.4s ease-out infinite;
  animation-delay: calc(var(--d) + 0.8s);
  opacity: 0;
}
.ds-jr-day { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-gold); margin-bottom: 2px; }
.ds-jr-step.is-final .ds-panel-val { color: var(--ds-gold); }
.ds-jr .ds-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; }
.ds-jr-plus { align-self: center; font-size: 0.72rem; font-weight: 600; color: var(--ds-gold); margin-right: 4px; white-space: nowrap; }
.ds-jr .ds-chip img { width: 12px; height: 12px; object-fit: contain; flex-shrink: 0; }

@keyframes ds-jr-in   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ds-jr-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ds-jr-node { from { box-shadow: 0 0 0 0 rgba(245,193,0,0); border-color: var(--ds-line-strong); color: var(--ds-dim); }
                        60% { box-shadow: 0 0 0 6px rgba(245,193,0,0.18); }
                        to   { box-shadow: 0 0 0 0 rgba(245,193,0,0); } }
@keyframes ds-jr-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ds-jr-step, .ds-jr-step::after, .ds-jr-node, .ds-jr-step.is-final .ds-jr-node::after { animation: none; }
}
@media (max-width: 480px) {
  .ds-jr-kpis > div { padding: 10px 12px; }
  .ds-jr-step { grid-template-columns: 36px 1fr; }
  .ds-jr-step > div:last-child { grid-column: 2; }
  .ds-jr-step .ds-panel-val, .ds-jr-step .ds-panel-dest { text-align: left; justify-content: flex-start; }
}

/* Platform tiles */
.ds-tile-group { margin-top: 2.5rem; }
.ds-tile-group:first-of-type { margin-top: 0; }
.ds-tile-group .ds-h3 { margin-bottom: .35rem; }
.ds-tile-group .ds-small { margin-bottom: 1.25rem; max-width: 640px; }
.ds-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ds-tile { padding: 1.1rem 1.25rem; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r); background: var(--ds-bg); }
.ds-tile strong { display: block; color: var(--ds-white); font-weight: 600; font-size: 1rem; }
.ds-tile span { display: block; color: var(--ds-dim); font-size: 0.8rem; margin-top: 2px; }

/* Odd card count in a 2-col grid: last card spans the row */
@media (min-width: 681px) { .ds-grid--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1025px) { .ds-grid--3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* Numbered mistakes list (explainer) */
.ds-mistakes { list-style: none; counter-reset: m; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.ds-mistakes li { counter-increment: m; position: relative; padding: 1rem 0 1rem 2.75rem; border-top: 1px solid var(--ds-line); }
.ds-mistakes li:first-child { border-top: 0; padding-top: .25rem; }
.ds-mistakes li::before {
  content: counter(m);
  position: absolute; left: 0; top: 1rem;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 600; color: var(--ds-gold);
  border: 1px solid var(--ds-gold-line); background: var(--ds-gold-tint);
}
.ds-mistakes li:first-child::before { top: .25rem; }
.ds-mistakes strong { display: block; color: var(--ds-white); font-weight: 600; margin-bottom: 2px; }
.ds-mistakes span { display: block; color: var(--ds-muted); font-size: .95rem; line-height: 1.6; }

/* Before/after panel (home hero): all three business models at once */
.ds-ba { background: radial-gradient(420px 220px at 100% 0%, rgba(245,193,0,0.09), transparent 70%), linear-gradient(180deg, rgba(30,30,34,0.92), rgba(15,15,17,0.96)); }
.ds-ba .ds-panel-head strong { display: inline-flex; align-items: center; gap: 8px; }
.ds-ba .ds-panel-head strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-gold); box-shadow: 0 0 0 3px rgba(245,193,0,0.15); }
.ds-ba-note { font-size: 0.7rem; color: var(--ds-muted); border: 1px solid var(--ds-line-strong); border-radius: 999px; padding: 2px 10px; }
.ds-ba-cols, .ds-ba-pair { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: stretch; }
.ds-ba-cols { padding: 14px 18px 0; font-size: 0.6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-dim); }
.ds-ba-cols span:last-child { color: var(--ds-gold); }
.ds-ba-block { padding: 12px 18px 14px; border-bottom: 1px solid var(--ds-line); animation: ds-jr-in .5s var(--ds-ease) both; animation-delay: calc(var(--i, 0) * .14s); }
.ds-ba-block:last-child { border-bottom: 0; padding-bottom: 18px; }
.ds-ba-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.78rem; font-weight: 600; color: var(--ds-white); }
.ds-ba-tag .ds-icon { width: 14px; height: 14px; color: var(--ds-gold); }
.ds-ba-col { border-radius: 10px; padding: 9px 11px; border: 1px solid var(--ds-line); background: rgba(255,255,255,0.015); display: grid; gap: 4px; }
.ds-ba-col--after { border-color: var(--ds-gold-line); background: linear-gradient(180deg, rgba(245,193,0,0.08), rgba(245,193,0,0.015)); }
.ds-ba-stat { display: flex; align-items: baseline; gap: 6px; font-size: 0.76rem; line-height: 1.35; color: var(--ds-dim); }
.ds-ba-stat b { min-width: 2.6em; font-size: 0.92rem; font-weight: 600; color: var(--ds-muted); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ds-ba-col--after .ds-ba-stat { color: var(--ds-muted); }
.ds-ba-col--after .ds-ba-stat b { color: var(--ds-white); }
.ds-ba-col--after .ds-ba-stat.is-key b, .ds-ba-col--after .ds-ba-stat.is-key { color: var(--ds-gold); }
.ds-ba-arrow { display: grid; place-items: center; }
.ds-ba-arrow span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-gold); color: #0A0A0B; box-shadow: 0 0 0 3px rgba(245,193,0,0.12); }
.ds-ba-arrow .ds-icon { width: 11px; height: 11px; stroke-width: 2.5; }
@media (max-width: 420px) { .ds-ba-cols, .ds-ba-pair { grid-template-columns: 1fr 18px 1fr; } .ds-ba-block, .ds-ba-cols { padding-left: 12px; padding-right: 12px; } .ds-ba-col { padding: 8px; } .ds-ba-stat { font-size: 0.7rem; } .ds-ba-stat b { font-size: 0.82rem; min-width: 2.2em; } }
@media (prefers-reduced-motion: reduce) { .ds-ba-block { animation: none; } }

/* ---------- 8. Logo wall (fixed, full color) ---------- */
.ds-logos { padding: 56px 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-logos-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ds-dim); margin-bottom: 2rem; }
.ds-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 8px 24px;
}
/* Client logo files are square canvases with built-in padding, so size by
   height (not max-height) and keep them in full color. */
.ds-logo-grid img {
  height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  opacity: .9;
  transition: opacity var(--ds-t), transform var(--ds-t);
}
.ds-logo-grid img:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- 9. Explainer ---------- */
.ds-explainer { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.ds-explainer-intro { position: sticky; top: 120px; }
.ds-qa { border-top: 1px solid var(--ds-line); padding: 2.25rem 0; }
.ds-qa:first-child { border-top: 0; padding-top: 0; }
.ds-qa-num { font-family: var(--ds-sans); font-size: 0.75rem; color: var(--ds-gold); letter-spacing: .05em; display: block; margin-bottom: .75rem; }
.ds-qa h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.02em; }
.ds-qa p { color: var(--ds-muted); margin-bottom: 1rem; }
.ds-qa p:last-child { margin-bottom: 0; }
.ds-qa a:not(.ds-link) { color: var(--ds-white); text-decoration: underline; text-decoration-color: var(--ds-gold-line); text-underline-offset: 3px; }
.ds-qa a:not(.ds-link):hover { text-decoration-color: var(--ds-gold); }
.ds-definition {
  border-left: 2px solid var(--ds-gold);
  padding: 4px 0 4px 20px;
  font-size: 1.08rem;
  color: var(--ds-white) !important;
  line-height: 1.6;
}

/* Process steps */
.ds-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; border: 1px solid var(--ds-line); border-radius: var(--ds-r); overflow: hidden; }
.ds-step { padding: 1.25rem; border-right: 1px solid var(--ds-line); background: var(--ds-surface); }
.ds-step:last-child { border-right: 0; }
.ds-step-n { font-family: var(--ds-sans); font-size: 0.7rem; color: var(--ds-gold); }
.ds-step strong { display: block; color: var(--ds-white); font-size: 0.95rem; margin: .35rem 0 .3rem; }
.ds-step span { font-size: 0.8rem; color: var(--ds-dim); line-height: 1.5; display: block; }

/* ---------- 10. Industry cards ---------- */
.ds-industry { padding: 2.25rem; }
.ds-industry h3 { font-size: 1.45rem; font-weight: 600; }
.ds-industry .ds-checks { padding-top: 1.25rem; margin-top: 1.5rem; border-top: 1px solid var(--ds-line); flex: 1; }

/* ---------- 11. Testimonials ---------- */
.ds-quote { padding: 2rem; }
.ds-quote .ds-icon { color: var(--ds-gold); width: 26px; height: 26px; margin-bottom: 1.25rem; }
.ds-quote blockquote { margin: 0 0 1.75rem; font-size: 0.98rem; line-height: 1.7; color: var(--ds-text); flex: 1; }
.ds-quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 1.25rem; border-top: 1px solid var(--ds-line); }
.ds-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ds-gold);
  background: var(--ds-gold-tint);
  border: 1px solid var(--ds-gold-line);
  flex-shrink: 0;
}
.ds-quote cite { font-style: normal; }
.ds-quote cite strong { display: block; font-size: 0.9rem; color: var(--ds-white); font-weight: 600; }
.ds-quote cite span { display: block; font-size: 0.8rem; color: var(--ds-dim); line-height: 1.4; }
.ds-quote--featured { grid-column: span 2; }
.ds-quote--featured blockquote { font-family: var(--ds-serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.35; color: var(--ds-white); letter-spacing: -0.005em; }

/* ---------- 12. CTA band ---------- */
.ds-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-gold-line);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(245,193,0,0.16), transparent 70%),
    linear-gradient(180deg, var(--ds-surface-2), var(--ds-surface));
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 40px;
  align-items: center;
}
.ds-cta .ds-h2 { margin-bottom: .9rem; }
.ds-cta p { color: var(--ds-muted); max-width: 560px; }

/* ---------- 13. Utilities ---------- */
.ds-mt-0 { margin-top: 0; }
.ds-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 15. Product pages ---------- */
.ds-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ds-dim); margin-bottom: 2rem; }
.ds-breadcrumb a { color: var(--ds-muted); }
.ds-breadcrumb a:hover { color: var(--ds-gold); }
.ds-product-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: radial-gradient(closest-side, rgba(245,193,0,0.08), transparent), var(--ds-surface);
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-r-lg);
  padding: 2.5rem;
}
.ds-product-logo img { max-width: 100%; max-height: 220px; width: auto; height: auto; }
.ds-card.ds-product-card { padding: 0; overflow: hidden; }
.ds-product-card .ds-product-logo { border: 0; border-bottom: 1px solid var(--ds-line); border-radius: 0; aspect-ratio: 16 / 7; }
.ds-product-card .ds-product-logo img { max-height: 140px; }
.ds-product-card-body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.ds-product-card-body p { flex: 1; }
.ds-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-gold); margin-bottom: .6rem; }

.ds-prose p { color: var(--ds-muted); margin-bottom: 1.1rem; }
.ds-prose p:last-child { margin-bottom: 0; }
.ds-prose strong { color: var(--ds-white); font-weight: 600; }
.ds-prose a { color: var(--ds-white); text-decoration: underline; text-decoration-color: var(--ds-gold-line); text-underline-offset: 3px; }

.ds-logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.ds-logo-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ds-logo-row img { height: 40px; width: auto; }
.ds-logo-row figcaption { font-size: 0.78rem; color: var(--ds-dim); }

.ds-faq { max-width: var(--ds-max-narrow); margin: 0 auto; }
.ds-faq details { border-bottom: 1px solid var(--ds-line); }
.ds-faq details:first-child { border-top: 1px solid var(--ds-line); }
.ds-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 1.4rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ds-white);
  letter-spacing: -0.01em;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary .ds-icon { color: var(--ds-gold); transition: transform var(--ds-t); }
.ds-faq details[open] summary .ds-icon { transform: rotate(90deg); }
.ds-faq details > div { padding: 0 0 1.5rem; color: var(--ds-muted); }
.ds-faq details > div p { color: var(--ds-muted); }

.ds-price-note { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 1.25rem; }
.ds-price-note span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ds-muted); }
.ds-price-note .ds-icon { width: 16px; height: 16px; color: var(--ds-gold); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  .ds-hero-grid { grid-template-columns: 1fr; }
  .ds-panel, .ds-hero-visual { max-width: 520px; }
  .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ds-explainer { grid-template-columns: 1fr; }
  .ds-explainer-intro { position: static; }
  .ds-logo-grid { grid-template-columns: repeat(4, 1fr); }
  .ds-cta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ds-grid--3, .ds-grid--2, .ds-grid--4 { grid-template-columns: 1fr; }
  .ds-quote--featured { grid-column: auto; }
  .ds-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
  .ds-logo-grid img { height: 120px; }
  .ds-steps { grid-template-columns: 1fr 1fr; }
  .ds-step:nth-child(2) { border-right: 0; }
  .ds-step:nth-child(-n+2) { border-bottom: 1px solid var(--ds-line); }
  .ds-proof-item { padding-right: 1.25rem; margin-right: 1.25rem; }
  .ds-proof-num { font-size: 1.4rem; }
  .ds-card, .ds-industry, .ds-quote { padding: 1.6rem; }
  .ds-btn--lg { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-card, .ds-btn, .ds-link .ds-icon, .ds-btn .ds-icon { transition: none; }
}
