/* =============================================================
   Shiploose case study — field-ops app layout
   Loaded after styles.css; consumes the page-local token block
   set on #top (--ink, --grad, --paper, …).
   Namespace: .sl-*

   Real product screens carry this page (.sl-browser). They are
   1920x1200 exports of the app, so the frame takes the image's own
   proportions and never crops.
   ============================================================= */

/* ---------- Accent tokens, sampled from the app itself ----------
   #F5C518 is the product's primary: in the app it is always a FILL with
   dark text on it, never text on white — so it is used here the same way
   (dots, dark-surface accents, icon tiles). --sl-accent is that yellow
   darkened until it is legible as text on paper (5.5:1), for the small
   mono labels only. */
#top {
  --sl-yellow: #F5C518;        /* the app's primary — fills, dark surfaces */
  --sl-mid: #C79E12;           /* mid tone — borders, the timeline spine */
  --sl-accent: #7A5B06;        /* text-safe on paper (5.5:1) */
  --sl-accent-soft: rgba(212, 168, 12, 0.14);
  --sl-accent-line: rgba(212, 168, 12, 0.34);
}

/* ---------- Scroll reveal (progressive enhancement, js/reveal.js)
   Only applies once <html> gets .nc-reveal, so with JS off,
   reduced motion, or no IntersectionObserver everything shows. */
html.nc-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.nc-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Layout primitives ---------- */
.sl-section { padding: clamp(60px, 7.5vw, 116px) var(--gutter); }
.sl-section--tight { padding-top: clamp(20px, 3vw, 40px); }
.sl-section--flush { padding-bottom: clamp(24px, 3vw, 44px); }
/* .sl-section--rule: the line itself lives in styles.css (.nc-rule group) so it
   stays inside the content column instead of spanning the viewport. */
.sl-prose { max-width: 62ch; }
/* .kicker is the site eyebrow; page stylesheets may only set its spacing. */
.sl-section .kicker { margin: 0 0 18px; }

/* ---------- Shared type ---------- */
.sl-h2 {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.95rem, 4.1vw, 2.95rem);
  line-height: 1.03; letter-spacing: -0.035em;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.sl-h2--dark { color: #fff; }
.sl-h3 {
  font-family: var(--ff-title); font-weight: 700; font-size: 20px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px;
}
.sl-lead {
  font-family: var(--ff-body); font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6; color: var(--ink-60); margin: 22px 0 0;
}
.sl-body { font-family: var(--ff-body); font-size: 16.5px; line-height: 1.65; color: var(--ink-60); margin: 0; }
.sl-body + .sl-body,
.sl-lead + .sl-body { margin-top: 16px; }
/* ---------- Buttons ---------- */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-title); font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.sl-btn__arrow { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sl-btn:hover .sl-btn__arrow { transform: translateX(3px); }

/* Black primary, neutral shadow. On dark panels use .sl-btn--light instead. */
.sl-btn--primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 10, 8, 0.7); }
.sl-btn--primary:hover { background: var(--ink-elevated); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(10, 10, 8, 0.8); }

.sl-btn--ghost { border-color: var(--border-ink-strong); color: var(--ink); }
.sl-btn--ghost:hover { border-color: var(--ink); background: rgba(10, 10, 8, 0.05); transform: translateY(-2px); }

.sl-btn--light { background: #fff; color: var(--ink); }
.sl-btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6); }

.sl-btn--ghost-dark { border-color: rgba(255, 255, 255, 0.3); color: var(--on-dark); }
.sl-btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.72); color: #fff; transform: translateY(-2px); }

/* ---------- Browser frame around a real product screen ----------
   No fixed aspect ratio: the shot takes the image's own proportions so a
   screenshot is never cropped. The img's width/height attributes reserve the
   box before load, so this costs no layout shift. Same component as
   .ol-browser on the O Lab Plus case, so the two pages read as one system. */
.sl-browser {
  border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 44px 80px -40px rgba(10, 10, 8, 0.42);
}
.sl-browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  background: var(--ink);
}
.sl-browser__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); flex: 0 0 auto; }
.sl-browser__url {
  margin-left: 12px; font-family: var(--ff-mono); font-size: 12px; color: var(--on-dark-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sl-browser__shot { position: relative; overflow: hidden; background: var(--surface-light); }
.sl-browser__shot img { width: 100%; height: auto; display: block; }
.sl-caption { font-family: var(--ff-body); font-size: 13px; line-height: 1.5; color: var(--ink-45); margin: 14px 0 0; }

/* ---------- Engagement band (dark) ---------- */
.sl-band {
  position: relative; overflow: hidden;
  background: var(--ink); border-radius: 32px;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 56px);
}
.sl-band::before,
.sl-band::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  pointer-events: none;
}
.sl-band::before { top: -46%; left: -6%; background: radial-gradient(circle, rgba(245, 197, 24, 0.24), transparent 68%); }
.sl-band::after { bottom: -50%; right: -6%; background: radial-gradient(circle, rgba(212, 168, 12, 0.3), transparent 68%); }

.sl-meta {
  position: relative; z-index: 1; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 48px);
}
.sl-meta__item { position: relative; }
.sl-meta__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 3.6vw, 48px) * -0.5);
  top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.sl-meta__term {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted); margin: 0 0 10px;
}
.sl-meta__def {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em;
  color: #fff; margin: 0;
}

/* ---------- Two-column intro ---------- */
.sl-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.sl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.sl-chip {
  display: inline-flex; align-items: center;
  font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface-light); border: 1px solid var(--border-ink);
  padding: 9px 16px; border-radius: 999px;
}

/* The constraint that shaped the build. Full border, no edge stripe. */
.sl-constraint {
  position: relative; background: var(--surface-light);
  border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(26px, 3vw, 38px);
}
.sl-constraint__kicker {
  font-family: var(--ff-title); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0;
}
.sl-constraint__text {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.4; letter-spacing: -0.02em;
  color: var(--ink); margin: 16px 0 0;
}
.sl-constraint__meta {
  font-family: var(--ff-body); font-size: 14px; line-height: 1.55; color: var(--ink-45);
  margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border-ink);
}

/* ---------- Before / after comparison ---------- */
.sl-compare {
  border: 1px solid var(--border-ink); border-radius: 24px; overflow: hidden;
  background: var(--surface-light); margin-top: clamp(30px, 3.6vw, 44px);
}
.sl-compare__head, .sl-compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.sl-compare__head > div {
  font-family: var(--ff-title); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 16px clamp(18px, 2.2vw, 28px);
}
.sl-compare__head > div:first-child { color: var(--ink-35); }
.sl-compare__head > div:last-child { color: var(--ink); background: var(--sl-accent-soft); }
.sl-compare__row > div {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--border-ink);
  font-family: var(--ff-body); font-size: 15.5px; line-height: 1.55;
}
.sl-compare__row > div:first-child { color: var(--ink-45); }
.sl-compare__row > div:last-child { color: var(--ink); background: var(--sl-accent-soft); }

/* ---------- Workflow timeline ---------- */
.sl-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(30px, 3.6vw, 44px);
}
.sl-flow::before {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: var(--border-ink);
}
.sl-flow__stage {
  position: relative;
  min-width: 0;
  padding: 35px 4px 0;
}
.sl-flow__stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 4px solid var(--sl-yellow);
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}
.sl-flow__name { font-family: var(--ff-title); font-weight: 700; font-size: 14.5px; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 5px; }
.sl-flow__who { font-family: var(--ff-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sl-accent); margin: 0 0 7px; }
.sl-flow__gloss { font-family: var(--ff-body); font-size: 13px; line-height: 1.45; color: var(--ink-60); margin: 0; }
.sl-flow__detours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(20px, 2.4vw, 28px); }
.sl-flow__detour {
  background: var(--surface-light);
  border: 1px solid var(--border-ink); border-radius: 16px; padding: 18px 20px;
}
.sl-flow__detour-title { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.sl-flow__detour-text { font-family: var(--ff-body); font-size: 14.5px; line-height: 1.55; color: var(--ink-60); margin: 0; }

/* ---------- Detail panel: a labelled list on its own surface ----------
   Same treatment as .ol-panel on the O Lab Plus case, so the two pages read as
   one system. */
.sl-panel {
  margin-top: clamp(20px, 2.2vw, 26px);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 26px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-ink); border-radius: 16px;
}
.sl-panel__label {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--sl-accent);
  margin: 0 0 12px;
}
.sl-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.sl-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--ff-body); font-size: 15px; line-height: 1.55; color: var(--ink-60);
}
.sl-list li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%; background: var(--sl-mid);
}
.sl-panel .sl-list { margin: 0; gap: 10px; }
.sl-panel .sl-list li { font-size: 14.5px; line-height: 1.6; }
.sl-panel .sl-list li::before { margin-top: 7px; }

/* ---------- Feature row: copy beside a real screen ----------
   The screens stay card-sized and never span the content column: the shot sits
   in its own column next to the copy, and :nth-child(even) alternates sides so
   the page does not read as one long ladder. The wider column always holds the
   screenshot. */
.sl-features { display: grid; gap: 0; margin-top: clamp(34px, 4vw, 52px); }
.sl-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 58px); align-items: center; }
.sl-feature:nth-child(even) .sl-feature__copy { order: 2; }
.sl-feature:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.sl-feature__shot { position: relative; }
.sl-feature__copy .sl-h3 {
  font-size: clamp(21px, 2.1vw, 25px); line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.sl-feature__copy .sl-body { color: var(--ink-70); }
/* Hairline between rows. Grid gap is 0 so the margin and padding can be equal,
   which centres the rule in the space rather than hanging it off the next row. */
.sl-feature + .sl-feature {
  margin-top: clamp(44px, 5.4vw, 80px);
  padding-top: clamp(44px, 5.4vw, 80px);
  border-top: 1px solid var(--border-ink);
}

/* ---------- Compact module grid (dark) ---------- */
.sl-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); margin-top: clamp(30px, 3.6vw, 44px); }
.sl-module {
  position: relative; overflow: hidden;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px; padding: clamp(20px, 2.2vw, 26px);
}
.sl-module::before {
  content: ""; position: absolute; pointer-events: none;
  top: -40%; right: -20%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.22), transparent 68%);
}
.sl-module__title {
  position: relative;
  font-family: var(--ff-title); font-weight: 700; font-size: 16px; letter-spacing: -0.015em;
  color: #fff; margin: 0 0 8px;
}
.sl-module__text {
  position: relative;
  font-family: var(--ff-body); font-size: 14.5px; line-height: 1.55;
  color: var(--on-dark-muted); margin: 0;
}

/* ---------- Timeline (phases) ----------
   Plain dot nodes. The order comes from the layout, not from a number stamped
   on each step. */
.sl-timeline { position: relative; margin-top: clamp(36px, 4vw, 56px); padding-left: 0; list-style: none; }
.sl-timeline::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--sl-accent), var(--sl-mid) 55%, rgba(245, 197, 24, 0.2));
}
.sl-step { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: clamp(18px, 2.6vw, 34px); }
.sl-step + .sl-step { margin-top: clamp(20px, 2.4vw, 30px); }
.sl-step__node {
  position: relative; z-index: 1; margin-top: 26px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sl-accent); box-shadow: 0 0 0 6px var(--paper);
}
.sl-step__card {
  background: var(--surface-light); border: 1px solid var(--border-ink);
  border-radius: 22px; padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.sl-step__card:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.sl-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sl-step__when {
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-45); white-space: nowrap;
}
.sl-list--two { grid-template-columns: 1fr 1fr; column-gap: 26px; }

/* ---------- Provenance note ---------- */
.sl-note {
  display: flex; gap: 13px; align-items: flex-start;
  margin-top: clamp(26px, 3vw, 36px); padding: 16px 20px;
  border: 1px dashed var(--border-ink-strong); border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--ff-body); font-size: 14px; line-height: 1.55; color: var(--ink-45);
}
.sl-note strong { color: var(--ink); font-weight: 600; }
.sl-note svg { flex: 0 0 auto; color: var(--sl-accent); margin-top: 2px; }

/* ---------- Result panel ---------- */
.sl-result { position: relative; overflow: hidden; background: var(--ink); border-radius: 32px; padding: clamp(30px, 4.4vw, 60px); }
.sl-result::before {
  content: ""; position: absolute; top: -34%; right: -8%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.3), rgba(212, 168, 12, 0.16) 42%, transparent 70%);
  pointer-events: none;
}
.sl-result__inner { position: relative; z-index: 1; }
.sl-result__statement {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.28; letter-spacing: -0.03em;
  color: #fff; margin: 0; max-width: 34ch; text-wrap: balance;
}
.sl-result__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(30px, 3.6vw, 46px);
  padding-top: clamp(26px, 3vw, 38px); border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.sl-result__label { font-family: var(--ff-title); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 10px; }
.sl-result__text { font-family: var(--ff-body); font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0; }

/* ---------- Playbook cards ---------- */
.sl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 24px); margin-top: clamp(34px, 4vw, 52px); }
.sl-card {
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 22px;
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.35s;
}
.sl-card:hover { transform: translateY(-4px); border-color: var(--border-ink-strong); box-shadow: 0 22px 40px -26px rgba(10, 10, 8, 0.4); }
.sl-card__icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--sl-accent-soft); border: 1px solid var(--sl-accent-line); color: var(--sl-accent);
  margin-bottom: 18px;
}

/* ---------- Closing CTA ---------- */
.sl-cta {
  position: relative; overflow: hidden; background: var(--ink);
  border-radius: 36px; padding: clamp(38px, 5.6vw, 84px) clamp(26px, 4vw, 72px);
  text-align: center;
}
.sl-cta::before, .sl-cta::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
}
.sl-cta::before { top: -30%; left: -8%; background: radial-gradient(circle, rgba(245, 197, 24, 0.24), transparent 70%); }
.sl-cta::after { bottom: -34%; right: -6%; background: radial-gradient(circle, rgba(212, 168, 12, 0.28), transparent 70%); }
.sl-cta__inner { position: relative; z-index: 1; }
.sl-cta__lead { font-family: var(--ff-body); font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.6; color: var(--on-dark-muted); max-width: 58ch; margin: 22px auto 0; }
.sl-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Next case study ---------- */
.sl-next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.sl-next:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.sl-next__label { font-family: var(--ff-title); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 8px; }
.sl-next__title { font-family: var(--ff-title); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.sl-next__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-size: 15px; font-weight: 600; color: var(--ink); }
.sl-next:hover .sl-next__go span { transform: translateX(4px); }
.sl-next__go span { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Sticky mobile CTA ---------- */
.sl-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(10, 10, 8, 0.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  padding: 12px 12px 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(140%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.sl-sticky.is-in { transform: none; opacity: 1; }
.sl-sticky__text { font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.sl-sticky__text span { display: block; font-family: var(--ff-body); font-size: 12.5px; font-weight: 400; color: var(--on-dark-muted); margin-top: 2px; }
.sl-sticky .sl-btn { padding: 12px 20px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .sl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 34px); }
  .sl-meta__item:not(:first-child)::before { left: calc(clamp(22px, 4vw, 34px) * -0.5); }
  /* Drop the left-edge divider on the first cell of each row */
  .sl-meta__item:nth-child(odd)::before { display: none; }
  .sl-result__grid { grid-template-columns: 1fr; gap: 22px; }
  .sl-cards { grid-template-columns: 1fr; }
  .sl-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sl-split { grid-template-columns: 1fr; }
  .sl-sticky { display: flex; }
  /* Stack every feature row copy-first, overriding the alternation */
  .sl-feature { grid-template-columns: 1fr; }
  .sl-feature:nth-child(even) .sl-feature__copy { order: 0; }
  .sl-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sl-flow::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .sl-flow__stage { padding: 0 0 0 36px; }
  .sl-flow__stage::before {
    top: 0;
    left: 0;
    transform: none;
  }
}
@media (max-width: 640px) {
  .sl-meta { grid-template-columns: 1fr; gap: 22px; }
  .sl-meta__item:not(:first-child)::before { display: none; }
  .sl-meta__item:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 22px;
  }
  /* Stacked cells lose the column they sat under, so each one carries its own
     label from data-side. Without this the two halves of a row read as one
     paragraph and nothing says which is the spreadsheet and which is the app. */
  .sl-compare__head { display: none; }
  .sl-compare__row { grid-template-columns: 1fr; }
  .sl-compare__row > div::before {
    content: attr(data-side);
    display: block; margin-bottom: 6px;
    font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
  }
  .sl-compare__row > div:first-child::before { color: var(--ink-35); }
  .sl-compare__row > div:last-child::before { color: var(--sl-accent); }
  .sl-compare__row > div:last-child { border-top: 0; }
  .sl-list--two { grid-template-columns: 1fr; }
  .sl-step { grid-template-columns: 14px 1fr; gap: 16px; }
  .sl-step__node { width: 14px; height: 14px; margin-top: 24px; box-shadow: 0 0 0 5px var(--paper); }
  .sl-timeline::before { left: 6px; }
  .sl-btn { width: 100%; }
  .sl-sticky .sl-btn { width: auto; }
  .sl-modules { grid-template-columns: 1fr; }
  .sl-flow__detours { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-card, .sl-step__card, .sl-feature, .sl-next, .sl-btn, .sl-sticky { transition: none; }
  .sl-card:hover, .sl-step__card:hover, .sl-feature:hover, .sl-next:hover, .sl-btn:hover { transform: none; }
}
