/* =============================================================
   WBK Shop case study — page-only components.
   Built on app.css tokens (cream ground, Newsreader + Inter). WBK's lime
   marks the "new" side of every comparison and nothing else, so it keeps
   one meaning on this page too.

   Reading rhythm: a sticky section bar, then seven sections that all
   share one anatomy — number + label, headline, one intro paragraph,
   evidence, and a "Key insight" line for the reader who skims.
   ============================================================= */
.cs { --lime: #c8f04a; --lime-ink: #1d2405; --stage: #0b0b0c; --card: #fff; --ink-2: #4a463f;
  --note-ux: #ffe58a; --note-disc: #ffc7d6; --note-com: #bfe3ff; --note-hmw: #d9f78a;
  --gap-sec: clamp(4.5rem, 10vw, 7rem); --gap-blk: clamp(1.75rem, 4vw, 2.5rem); }

/* ----- section bar ----- */
.cs-toc { position: sticky; top: var(--hdr, 78px); z-index: 50; margin-top: clamp(2rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--border-2); overflow-x: auto; scrollbar-width: none; }
.cs-toc::-webkit-scrollbar { display: none; }
.cs-toc ol { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: var(--page);
  display: flex; gap: clamp(1rem, 2.6vw, 1.6rem); white-space: nowrap; }
.cs-toc a { display: block; padding: .8rem 0; font-size: .8rem; color: var(--fg-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.cs-toc a:hover { color: var(--fg); }
.cs-toc a[aria-current] { color: var(--fg); border-bottom-color: var(--fg); }
.cs-toc a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.cs-sec { scroll-margin-top: calc(var(--hdr, 78px) + 3.5rem); }

/* ----- section anatomy ----- */
.cs-body { padding-block: clamp(3rem, 7vw, 4.5rem) 0; }
.cs-sec + .cs-sec { margin-top: var(--gap-sec); }
.cs .cs-sec > * + * { margin-top: var(--gap-blk); }
.cs-kicker { display: flex; align-items: baseline; gap: .6rem; font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.cs-kicker b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.cs h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.12; margin-top: .65rem; max-width: 22ch; text-wrap: balance; }
.cs h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; letter-spacing: -.005em; color: var(--fg); }
.cs-lede, .cs-body p.cs-body { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.cs-lede { margin-top: 1rem; }
.cs-note { font-size: .78rem; color: var(--fg-faint); margin-top: .75rem; }
.cs .cs-sub > * + * { margin-top: 1.25rem; }
.cs-sub + .cs-sub { margin-top: clamp(3rem, 7vw, 4.5rem); }
.cs-subh { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-family: var(--font-serif) !important; font-size: clamp(1.25rem, 2.4vw, 1.5rem) !important; font-weight: 400 !important; }
.cs-pill { font-family: var(--font-sans); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .7em; border-radius: 999px; background: var(--bg-elev); color: var(--fg-muted); border: 1px solid var(--border-2); }
.cs-pill.is-new { background: var(--lime); color: var(--lime-ink); border-color: transparent; }

/* the one line a skimming reader should leave each section with */
.cs-insight { max-width: 64ch; padding: 1rem 1.15rem; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border-2); border-left: 3px solid var(--lime); font-size: .95rem; line-height: 1.6; color: var(--fg); }
.cs-insight b { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #4d7a00; margin-bottom: .3rem; }

/* wide: visuals run past the reading column */
.cs-wide { width: 100%; }

/* ----- overview ----- */
.cs-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0;
  background: var(--border-2); border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; }
.cs-summary > div { background: var(--card); padding: 1.15rem 1.25rem 1.25rem; }
.cs-summary dt { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.cs-summary dd { margin: .45rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--fg); }
@container cs (max-width: 480px) { .cs-summary { grid-template-columns: 1fr; } }

.cs-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.cs-figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-figures > div { border-top: 1px solid var(--fg); padding-top: .75rem; display: grid; gap: .35rem; align-content: start; }
.cs-figures .n { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1; letter-spacing: -.02em;
  color: var(--fg); font-variant-numeric: tabular-nums; }
.cs-figures .l { font-size: .8rem; line-height: 1.45; color: var(--fg-muted); }
@container cs (max-width: 520px) { .cs-figures, .cs-figures--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----- charts ----- */
.cs-chart { margin: 0; padding: 1.25rem 1.3rem 1.35rem; background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; }
.cs-chart figcaption { margin-bottom: 1rem; }
.cs-chart figcaption p { font-size: .8rem; color: var(--fg-faint); margin-top: .15rem; }
.cs-bars { display: grid; gap: .6rem; }
.cs-bar { display: grid; grid-template-columns: minmax(8rem, 32%) 1fr 3.6rem; align-items: center; gap: .8rem; font-size: .85rem; }
.cs-bar span:first-child { color: var(--fg-muted); }
.cs-bar i { display: block; height: 10px; border-radius: 3px; background: rgba(17,17,17,.13); width: var(--w); }
.cs-bar.is-key i { background: var(--fg); }
.cs-bar b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@container cs (max-width: 480px) { .cs-bar { grid-template-columns: 1fr 3.4rem; } .cs-bar i { grid-column: 1 / -1; grid-row: 2; } }
.cs-funnel { display: grid; gap: .45rem; }
.cs-fstep { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 9px;
  padding: .7rem 1rem; width: var(--w); min-width: min(100%, 15rem); }
.cs-fstep .n { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.cs-fstep .l { font-size: .82rem; color: var(--fg-muted); }
.cs-fstep.is-end { background: var(--fg); border-color: var(--fg); }
.cs-fstep.is-end .n, .cs-fstep.is-end .l { color: var(--bg); }

/* ----- strategy ----- */
.cs-road { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.cs-road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--border); }
.cs-road li { position: relative; padding: 1.6rem 1.25rem 0 0; }
.cs-road li::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--fg-faint); }
.cs-road li:first-child::before { background: var(--lime); border-color: var(--lime-ink); }
.cs-road .when { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.cs-road h3 { margin-top: .25rem; }
.cs-road p { font-size: .86rem; margin-top: .3rem; line-height: 1.55; }
@container cs (max-width: 520px) {
  .cs-road { grid-template-columns: 1fr; gap: 1.1rem; }
  .cs-road::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .cs-road li { padding: 0 0 0 1.6rem; }
}
.cs-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-2);
  border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; }
.cs-trio > div { background: var(--card); padding: 1rem 1.1rem; }
.cs-trio b { font-weight: 500; color: var(--fg); font-size: .95rem; }
.cs-trio p { font-size: .86rem; line-height: 1.55; margin-top: .3rem; }
@container cs (max-width: 520px) { .cs-trio { grid-template-columns: 1fr; } }
.cs-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cs-chips li { font-size: .84rem; color: var(--fg); background: var(--card); border: 1px solid var(--border-2);
  border-radius: 999px; padding: .45em .95em; }
.cs-chips span { color: var(--fg-faint); margin-left: .35em; }
.cs-chips span::before { content: "\00b7\00a0"; }

/* ----- redesign ----- */
.cs-pull { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35;
  color: var(--fg); max-width: 34ch; border-left: 2px solid var(--fg); padding-left: 1.1rem; text-wrap: balance;
  margin-top: clamp(2rem, 5vw, 3rem) !important; }
.cs-steps { display: grid; gap: clamp(3.5rem, 8vw, 5rem); margin-top: clamp(2rem, 5vw, 3rem) !important; }
/* step header: one centred block over the centred phone below it */
.cs-step-head { display: flex; flex-direction: column; align-items: center; gap: .65rem; text-align: center;
  max-width: 36rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.cs-step-head p { text-wrap: balance; }
.cs-step-n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font-size: .8rem; font-weight: 600; margin-top: .1rem; }
.cs-step-head h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; }
.cs-step-head p { font-size: .95rem; line-height: 1.6; margin-top: .3rem; color: var(--ink-2); }
.ph-story { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

/* ----- decision ----- */
.cs-evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 64ch; }
.cs-evidence li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; font-size: .95rem; line-height: 1.6; color: var(--ink-2);
  padding-top: .9rem; border-top: 1px solid var(--border-2); }
.cs-evidence b { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); padding-top: .25rem; }
@container cs (max-width: 440px) { .cs-evidence li { grid-template-columns: 1fr; gap: .2rem; } }
.cs-aside { padding: 1.4rem; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--border-2);
  margin-top: clamp(3rem, 7vw, 4rem) !important; display: grid; gap: .6rem; }
.cs-aside h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; }
.cs-aside p:not(.cs-kicker) { font-size: .92rem; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.cs-mini { display: flex; gap: .75rem; margin-top: .6rem; }
.cs-mini img { width: min(30%, 130px); height: auto; border-radius: 16px; border: 5px solid #0e0e10; box-shadow: 0 18px 30px -22px rgba(30,24,12,.6); }

/* ----- results ----- */
.cs-targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cs-target { background: var(--fg); color: var(--bg); border-radius: 14px; padding: 1.2rem; }
.cs-target .n { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.1; color: var(--lime); white-space: nowrap; }
.cs-target .l { font-size: .82rem; margin-top: .5rem; color: rgba(250,248,244,.72); line-height: 1.45; }
@container cs (max-width: 560px) { .cs-targets { grid-template-columns: 1fr; } }
.cs-learn { margin: 0; padding: 0; list-style: none; counter-reset: l; display: grid; gap: 1rem; max-width: 64ch; }
.cs-learn li { counter-increment: l; position: relative; padding-left: 2.2rem; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.cs-learn li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-serif); color: var(--fg-faint); }
.cs-learn b { color: var(--fg); font-weight: 500; }

/* ----- research wall, problems, button demo, phones, pairs (kept) ----- */
/* --- research wall: sticky notes on a board --- */
.cs-wall { background: #ece7dc; border-radius: 16px; padding: clamp(1rem, 3vw, 1.75rem);
  background-image: radial-gradient(rgba(17,17,17,.07) 1px, transparent 1.4px); background-size: 14px 14px; }
.cs-wall__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); }
.cs-wall h3 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted);
  display: flex; align-items: center; gap: .45rem; margin-bottom: .75rem; }
.cs-wall h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.cs-notes { display: grid; gap: .6rem; }
.cs-sticky { background: var(--c); color: #1c1a14; font-size: .8rem; line-height: 1.4; padding: .7rem .75rem .9rem;
  border-radius: 2px; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 14px -10px rgba(0,0,0,.35);
  rotate: var(--r, 0deg); }
.cs-sticky:nth-child(3n+1) { --r: -1.2deg; } .cs-sticky:nth-child(3n+2) { --r: .9deg; } .cs-sticky:nth-child(3n) { --r: -.4deg; }
.cs-sticky small { display: block; margin-top: .4rem; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.cs-wall__hmw { margin-top: clamp(1rem, 2.5vw, 1.5rem); padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px dashed rgba(17,17,17,.2); }
.cs-wall__hmw .cs-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-wall__hmw .cs-sticky { font-family: var(--font-serif); font-size: 1rem; }
@container cs (max-width: 560px) {
  .cs-wall__cols, .cs-wall__hmw .cs-notes { grid-template-columns: 1fr; }
}

/* --- problem statements --- */
.cs-problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cs-problem { border-radius: 14px; padding: 1.3rem; background: var(--fg); color: var(--bg); }
.cs-problem .tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,244,.6); }
.cs-problem h3 { color: var(--bg); font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2; margin-top: .55rem; }
.cs-problem dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.3rem;
  padding-top: 1rem; border-top: 1px solid rgba(250,248,244,.18); }
.cs-problem dt { font-family: var(--font-serif); font-size: 1.35rem; color: var(--lime); }
.cs-problem dd { margin: .2rem 0 0; font-size: .75rem; color: rgba(250,248,244,.66); }
@container cs (max-width: 520px) { .cs-problems { grid-template-columns: 1fr; } }

/* --- the button decision, rebuilt --- */
.cs-decide { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-option { background: var(--stage); color: #fff; border-radius: 16px; padding: 1.3rem; border: 1px solid transparent; }
.cs-option.is-pick { border-color: var(--lime); }
.cs-option .tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cs-option.is-pick .tag { color: var(--lime); }
.cs-buy { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .6rem;
  background: #1b1b1e; border-radius: 14px; }
.cs-buy .price { margin-right: auto; padding-left: .4rem; font-size: .7rem; color: rgba(255,255,255,.55); line-height: 1.2; }
.cs-buy .price b { display: block; color: #fff; font-size: 1rem; font-weight: 500; }
.cs-btn { font-size: .78rem; font-weight: 600; padding: .65em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; white-space: nowrap; }
.cs-btn.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.cs-option p { color: rgba(255,255,255,.78); font-size: .86rem; margin-top: 1rem; }
@container cs (max-width: 560px) { .cs-decide { grid-template-columns: 1fr; } }

/* =============================================================
   Phone scenes: the real screen in a drawn phone, with each note
   beside it on a line that lands where the note is about. The note
   positions come from the original slides (as % of screen height).
   Under 820px the lines can't fit: the notes become a numbered list
   and matching numbered pins sit on the phone's edge.
   ============================================================= */
.ph-story { display: grid; gap: clamp(3rem, 8vw, 5rem); }
.ph-story__head { max-width: 46ch; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.ph-story__head h3 { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 400; line-height: 1.2; margin-top: .4rem; text-wrap: balance; }
.ph-story__head p { font-size: .92rem; margin-top: .5rem; text-wrap: pretty; }

/* A phone in Apple's iPhone 18 Pro bezel, centred, with notes on both sides.
   The note columns cover just the screen, so each --y is a share of the screenshot. */
.ph-scene { --phw: clamp(190px, 27cqw, 270px); --devh: calc(var(--phw) * 2760 / 1350);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
.ph-phones { display: flex; gap: clamp(1rem, 2.4vw, 1.75rem); }
.ph { margin: 0; }
.ph__dev { position: relative; width: var(--phw); aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 24px 28px rgb(30 24 12 / .22)) drop-shadow(0 6px 10px rgb(30 24 12 / .1)); }
.ph__dev > img { position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; object-fit: cover; object-position: top;
  border-radius: 13.6% / 6.26%; background: #0c0e09; }
.ph__dev::after, .bm-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/devices/iphone-18-pro-black.png") center / 100% 100% no-repeat; }
.ph figcaption { text-align: center; font-size: .78rem; color: var(--fg-faint); margin-top: .75rem; }

.ph-notes { position: relative; list-style: none; margin: calc(var(--devh) * .025) 0 0; padding: 0; height: calc(var(--devh) * .95); min-width: 0; }
.ph-notes li { position: absolute; top: var(--y); left: 0; right: 0; translate: 0 -.62em;
  font-size: .8rem; line-height: 1.38; }
.ph-notes b { display: block; font-weight: 500; color: var(--fg); text-wrap: pretty; }
.ph-notes span { display: block; margin-top: .2rem; font-size: .72rem; color: #5f7f12; }
/* the leader: a hairline from the note to the phone, ending in a lime dot on its edge */
.ph-notes li::before { content: ""; position: absolute; top: .62em; height: 1px; width: 2.2rem; background: rgba(17,17,17,.3); }
.ph-notes li::after { content: ""; position: absolute; top: calc(.62em - 4px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(17,17,17,.35); z-index: 2; }
.ph-notes--l li { text-align: right; padding-right: 2.9rem; }
.ph-notes--l li::before { right: .35rem; }
.ph-notes--l li::after { right: -4px; }
.ph-notes--r li { padding-left: 2.9rem; }
.ph-notes--r li::before { left: .35rem; }
.ph-notes--r li::after { left: -4px; }
.ph__pins { display: none; }

/* a narrow column: shorter notes */
@container cs (max-width: 560px) {
  .ph-notes li { font-size: .74rem; line-height: 1.32; }
  .ph-notes li > span { display: none; }
  .ph-notes--l li { padding-right: 1.9rem; }
  .ph-notes--r li { padding-left: 1.9rem; }
  .ph-notes li::before { width: 1.3rem; }
  /* one-phone scenes: phone on the left, every note on its right edge */
  .ph-scene--1 { --phw: min(48cqw, 220px); grid-template-columns: auto minmax(0, 1fr); }
  .ph-scene--1 .ph-phones { grid-column: 1; grid-row: 1; }
  .ph-scene--1 .ph-notes { grid-column: 2; grid-row: 1; }
  .ph-scene--1 .ph-notes--l li { text-align: left; padding: 0 0 0 1.9rem; }
  .ph-scene--1 .ph-notes--l li::before { right: auto; left: .35rem; }
  .ph-scene--1 .ph-notes--l li::after { right: auto; left: -4px; }
}

/* =============================================================
   Before / after, side by side: the live page and the redesign in
   browser frames, each with what was wrong or what changed under it.
   ============================================================= */
.cs-pairs { display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); margin-top: 1.5rem !important; }
.cs-pair h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 1rem; }
.cs-pair__grid { display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); align-items: start; gap: .5rem; }
.cs-pair__arrow { align-self: center; justify-self: center; color: var(--fg-faint); font-size: 1.1rem; margin-top: -3rem; }
.cs-side { margin: 0; }
.cs-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .55rem; color: #b5530d; }
.cs-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-side.is-new .cs-tag { color: #4d7a00; }
.cs-browser { border-radius: 10px; overflow: hidden; background: #0b0b0c; border: 1px solid rgba(17,17,17,.14);
  box-shadow: 0 24px 40px -28px rgba(30,24,12,.5); }
.cs-browser::before { content: ""; display: block; height: 22px; background:
  radial-gradient(circle at 12px 11px, #ff5f57 3.5px, transparent 4px),
  radial-gradient(circle at 26px 11px, #febc2e 3.5px, transparent 4px),
  radial-gradient(circle at 40px 11px, #28c840 3.5px, transparent 4px), #1c1c1f; }
.cs-browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.cs-side.is-new .cs-browser { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 24px 40px -28px rgba(30,24,12,.5); }
.cs-side figcaption { margin-top: .85rem; }
.cs-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cs-side li { font-size: .85rem; line-height: 1.5; color: var(--fg-muted); padding-left: 1.1rem; position: relative; }
.cs-side li::before { content: "\2715"; position: absolute; left: 0; top: 0; font-size: .7rem; color: #b5530d; }
.cs-side.is-new li::before { content: "\2713"; color: #4d7a00; }
@container cs (max-width: 600px) {
  .cs-pair__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .cs-pair__arrow { margin: 0; transform: rotate(90deg); }
}


/* ----- trade-offs: what was weighed, what was chosen, what it cost ----- */
.cs-trades { display: grid; gap: 1.1rem; }
.cs-trade { background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; padding: 1.3rem 1.35rem 1.4rem; }
.cs-trade h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.cs-trade__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.cs-trade__opts > div { border: 1px solid var(--border-2); border-radius: 12px; padding: .85rem .95rem; background: var(--bg); }
.cs-trade__opts > div.is-pick { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); background: color-mix(in srgb, var(--lime) 10%, #fff); }
.cs-trade__tag { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.is-pick .cs-trade__tag { color: #4d7a00; }
.cs-trade__opts b { display: block; margin-top: .3rem; font-weight: 500; color: var(--fg); font-size: .95rem; line-height: 1.4; }
.cs-trade__opts p { font-size: .85rem; line-height: 1.55; margin-top: .25rem; }
.cs-trade__why { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border-2); }
.cs-trade__why dt { font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.cs-trade__why dd { margin: .3rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
@container cs (max-width: 520px) { .cs-trade__opts, .cs-trade__why { grid-template-columns: 1fr; } }

/* ----- how I worked: four steps in a row ----- */
.cs-flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cs-flow li { counter-increment: f; background: var(--card); border: 1px solid var(--border-2); border-radius: 12px; padding: .95rem 1rem 1.05rem; }
.cs-flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--font-serif); color: var(--fg-faint); font-size: .9rem; }
.cs-flow b { display: block; margin-top: .35rem; font-weight: 500; color: var(--fg); }
.cs-flow span { display: block; margin-top: .3rem; font-size: .85rem; line-height: 1.5; color: var(--fg-muted); }
@container cs (max-width: 680px) { .cs-flow { grid-template-columns: 1fr 1fr; } }
@container cs (max-width: 340px) { .cs-flow { grid-template-columns: 1fr; } }

/* ----- brand marks and tool icons ----- */
.cs .lg { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.14em; }
.cs .lg--t { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 1px solid currentColor; font-size: .6em; font-weight: 700; font-style: normal; line-height: 1; vertical-align: .05em; }
.cs .brand { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.ph-notes .brand .lg { opacity: .9; }
.cs-chips li { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; }
.cs-chips b { font-weight: 500; color: var(--fg); }
.cs-chips__who { display: inline-flex; gap: .7rem; color: var(--fg-muted); font-size: .8rem; }
.cs-chips span::before { content: none; }
.cs-chips span.cs-chips__who { margin-left: 0; }
.cs-evidence li > span { display: block; }
.cs-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.cs-tool { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 500; color: var(--fg);
  background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: 999px; padding: .25em .6em; }
.cs-tool .lg { width: .95em; height: .95em; }
.cs-flow li::before { display: none; }

/* ----- light containers instead of black blocks -----
   The dark black-and-lime cards fought the cream page. They now share the
   soft container used by "Also explored": the page's raised tone, a
   hairline border, dark text. Lime is kept only as a thin accent on the
   chosen/recommended option. */
.cs-problem, .cs-target, .cs-option { background: var(--bg-elev); color: var(--fg); border: 1px solid var(--border-2); border-radius: 16px; }
.cs-problem .tag, .cs-option .tag { color: var(--fg-faint); }
.cs-problem h3 { color: var(--fg); }
.cs-problem dl { border-top-color: var(--border); }
.cs-problem dt { color: var(--fg); }
.cs-problem dd { color: var(--fg-muted); }
.cs-target .n { color: var(--fg); }
.cs-target .l { color: var(--fg-muted); }
.cs-option.is-pick { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.cs-option.is-pick .tag { color: #4d7a00; }
.cs-option p { color: var(--ink-2); }
.cs-buy { background: var(--card); border: 1px solid var(--border-2); }
.cs-buy .price { color: var(--fg-faint); }
.cs-buy .price b { color: var(--fg); }
.cs-btn { color: var(--fg); border-color: rgba(17,17,17,.25); }
.cs-btn.lime { color: var(--lime-ink); border-color: var(--lime); }
.cs-fstep.is-end { background: var(--bg-elev); border-color: var(--fg); }
.cs-fstep.is-end .n, .cs-fstep.is-end .l { color: var(--fg); }
.cs-fstep.is-end .l { font-weight: 500; }

/* ----- benchmark gallery: the real screens, per pattern ----- */
.bm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem !important; }
.bm-card { background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: 16px; padding: 1.15rem 1.15rem 1.25rem; }
.bm-card h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; color: var(--fg); line-height: 1.25; }
.bm-card > p { font-size: .86rem; line-height: 1.5; margin-top: .3rem; color: var(--ink-2); }
.bm-shots { display: grid; gap: .6rem; margin-top: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 68%; }
.bm-shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bm-shots figure { margin: 0; min-width: 0; }
.bm-shot { position: relative; display: block; width: 100%; aspect-ratio: 1350 / 2760; padding: 0; border: 0; border-radius: 0; overflow: visible; background: none; cursor: zoom-in;
  filter: drop-shadow(0 8px 12px rgb(30 24 12 / .16)); transition: transform .35s var(--ease); }
.bm-shot:hover { transform: translateY(-3px); }
.bm-shot:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.bm-shot img { position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; object-fit: cover; object-position: top; border-radius: 13.6% / 6.26%; background: #fff; }
.bm-shots figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .3rem; margin-top: .45rem; font-size: .72rem; line-height: 1.3; }
.bm-shots figcaption b { font-weight: 500; color: var(--fg); }
.bm-shots figcaption span:not(.lg) { color: var(--fg-faint); width: 100%; }
.bm-shots figcaption .lg { color: var(--fg-muted); }
@container cs (max-width: 680px) { .bm-grid { grid-template-columns: 1fr; } }
@container cs (max-width: 340px) { .bm-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bm-lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 420px); max-height: 92vh; overflow: visible; }
.bm-lightbox::backdrop { background: rgba(20,17,12,.7); }
.bm-lightbox img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 16px; }
.bm-close { position: absolute; top: -.6rem; right: -.6rem; width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
  color: var(--fg); font-size: 1.3rem; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bm-shot { transition: none; } .bm-shot:hover { transform: none; } }

/* =============================================================
   Case header. A clean framed panel instead of the dark full-bleed band:
   story on the left (tags, title, one-line subtitle, intro, impact chips),
   the product on WBK lime on the right, and a ruled facts bar under it.
   The lime block carries the view-transition name, so the bento card
   still grows into it.
   ============================================================= */
.hx { max-width: var(--page); margin: clamp(.75rem, 2vw, 1.5rem) auto 0; padding-inline: var(--pad); }
.hx__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem); padding: clamp(.9rem, 2vw, 1.25rem); border-radius: 24px;
  background-color: #fff; border: 1px solid var(--border-2);
  background-image: linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 28px 28px; }
.hx__text { display: flex; flex-direction: column; padding: clamp(.75rem, 2.4vw, 1.75rem); min-width: 0; }
.hx__crumbs { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--fg-faint); }
.hx__crumbs .case-back { font-size: .8rem; }
.hx__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.hx__tags span { font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 999px; padding: .4em .8em; }
.hx h1 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2.75rem, 6.2vw, 4.6rem); line-height: .98;
  letter-spacing: -.045em; color: var(--fg); margin-top: 1rem; width: fit-content; }
.hx__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.3;
  color: var(--fg); margin-top: .65rem; max-width: 26ch; text-wrap: balance; }
.hx__lead { font-size: .98rem; line-height: 1.7; color: var(--fg-muted); margin-top: 1rem; max-width: 46ch; text-wrap: pretty; }
.hx__chips { list-style: none; margin: auto 0 0; padding: clamp(1.5rem, 4vw, 2.25rem) 0 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.hx__chips li { background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px; padding: .7rem .85rem; }
.hx__chips b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; line-height: 1;
  letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.hx__chips span { display: block; font-size: .75rem; line-height: 1.35; color: var(--fg-muted); margin-top: .3rem; }

.hx__visual { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; min-height: clamp(340px, 42vw, 540px);
  display: flex; align-items: flex-end; justify-content: center; }
.hx__visual .tint-bg { border-radius: inherit; }
.hx__visual .tint-bg::after { background-image: radial-gradient(rgba(29,36,5,.16) 1px, transparent 1.6px); }
.hx__visual img { position: relative; width: min(100%, 560px); height: auto; margin-bottom: -9%;
  filter: drop-shadow(0 24px 34px rgba(29,36,5,.35)); }

.hx__facts { display: grid; grid-template-columns: 1.1fr 1.6fr .9fr .9fr 1.5fr; margin: clamp(1rem, 2.5vw, 1.5rem) 0 0;
  border-block: 1px solid var(--border); }
.hx__facts > div { padding: .95rem 1rem .95rem 0; min-width: 0; }
.hx__facts > div + div { padding-left: 1rem; border-left: 1px solid var(--border-2); }
.hx__facts dt { font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.hx__facts dd { margin: .35rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--fg); }
.hx__tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.hx__tool { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 500;
  background: #fff; border: 1px solid var(--border-2); border-radius: 999px; padding: .2em .6em; }
.hx .lg { width: .95em; height: .95em; fill: currentColor; flex: none; }

@media (max-width: 860px) {
  .hx__frame { grid-template-columns: 1fr; }
  .hx__facts { grid-template-columns: 1fr 1fr; }
  .hx__facts > div { padding: .85rem 0; border-left: 0 !important; padding-left: 0 !important; }
  .hx__facts > div:nth-child(odd) { padding-right: 1rem !important; }
  .hx__facts > div:nth-child(n+3) { border-top: 1px solid var(--border-2); }
  .hx__facts > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .hx__chips { grid-template-columns: 1fr 1fr; } .hx__chips b { font-size: 1.25rem; } }

/* ----- the case study takes the full page width; the prototype opens over a blurred page ----- */
.cs-split { max-width: var(--page); margin-inline: auto; padding-inline: var(--pad); }
.cs-split__main { min-width: 0; container: cs / inline-size; }
/* every block in the case study starts on the same left edge as the tab bar */
.cs-split__main > .cs-body { max-width: none; margin: 0; padding-inline: 0; }

/* the device: Apple's iPhone 18 Pro product bezel (1350 × 2760 at full size).
   Its screen opening is 1206 × 2622 (402 × 874 pt @3x), inset 72 / 69. */
.ip17 { --dev-ar: 1350 / 2760; --w: min(100%, 320px, calc((100vh - var(--hdr, 78px) - var(--toc-h, 48px) - 6rem) * var(--dev-ar)));
  position: relative; width: var(--w); aspect-ratio: var(--dev-ar);
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / .22)) drop-shadow(0 6px 10px rgb(0 0 0 / .12)); }
.ip17__screen { container-type: inline-size; position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%;
  border-radius: 13.6% / 6.26%; overflow: hidden; background: #0c0e09; isolation: isolate; }
.ip17__screen > iframe { position: absolute; left: 0; top: 0; width: 402px; height: 874px; border: 0; background: #000; transform-origin: 0 0; }
/* live prototype: the app draws its own status bar */
.ip17.is-live .ip17__soon { display: none; }
.ip17__screen > .ip17__home { pointer-events: none; }
.ip17__bezel { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ip17__home { position: absolute; z-index: 3; bottom: 2.2cqw; left: 50%; width: 36cqw; height: 1.3cqw; translate: -50% 0; border-radius: 99px; background: rgb(255 255 255 / .7); }

/* placeholder until the prototype is in */
.ip17__soon { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; color: #f2f5ea;
  background: radial-gradient(120% 60% at 50% 100%, rgb(200 240 74 / .16), transparent 60%), #0c0e09; }
.ip17__status { display: flex; justify-content: space-between; align-items: center; padding: 6.4cqw 8cqw 0 11cqw; font: 500 4cqw/1 Inter, system-ui, sans-serif; }
.ip17__icons { display: flex; gap: 1.4cqw; }
.ip17__icons i { width: 4.4cqw; height: 2.8cqw; border-radius: 1cqw; background: #f2f5ea; }
.ip17__icons i:last-child { width: 6.6cqw; }
.ip17__msg { display: grid; place-content: center; justify-items: center; gap: 1.6cqw; text-align: center; padding: 8cqw; font-family: Inter, system-ui, sans-serif; }
.ip17__msg b { font-weight: 500; font-size: 5.4cqw; }
.ip17__msg span:last-child { font-size: 4cqw; color: rgb(242 245 234 / .6); }
.ip17__dot { width: 3.2cqw; height: 3.2cqw; margin-bottom: 2cqw; border-radius: 50%; background: #c8f04a; box-shadow: 0 0 0 0 rgb(200 240 74 / .6); animation: ip17-pulse 2s infinite; }
@keyframes ip17-pulse { 70% { box-shadow: 0 0 0 4cqw rgb(200 240 74 / 0); } 100% { box-shadow: 0 0 0 0 rgb(200 240 74 / 0); } }
@media (prefers-reduced-motion: reduce) { .ip17__dot { animation: none; } }

/* the prototype: the phone floats over the page, which blurs and darkens
   with a lime tint taken from the case study's hero */
.cs-proto { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: calc(.75rem + env(safe-area-inset-top, 0px)) var(--pad) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(55% 50% at 50% 45%, rgb(200 240 74 / .14), transparent 72%),
    rgb(8 11 4 / .8);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.cs-proto.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.cs-proto__stick { display: grid; justify-items: center; gap: .6rem;
  scale: .94; translate: 0 18px; transition: scale .45s cubic-bezier(.2, .8, .2, 1), translate .45s cubic-bezier(.2, .8, .2, 1); }
.cs-proto.is-open .cs-proto__stick { scale: 1; translate: 0 0; }
.cs-proto__cap { margin: 0; font-size: .75rem; letter-spacing: .02em; color: rgb(242 245 234 / .6); }
.cs-proto__close { position: absolute; z-index: 1; top: calc(1rem + env(safe-area-inset-top, 0px)); right: calc(1rem + env(safe-area-inset-right, 0px));
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .14); border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #f2f5ea; font-size: 1.25rem; cursor: pointer; transition: background .2s; }
.cs-proto__close:hover { background: rgb(255 255 255 / .18); }
.cs-proto__close:focus-visible { outline: 2px solid #c8f04a; outline-offset: 2px; }
.cs-proto .ip17 { --w: min(calc(100vw - 2 * var(--pad)), 480px, calc((100dvh - 4rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * var(--dev-ar)));
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / .5)) drop-shadow(0 0 80px rgb(200 240 74 / .12)); }

/* the button that opens it */
.cs-proto-fab { position: fixed; z-index: 250; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.1rem .5rem .55rem; border: 0; border-radius: 99px;
  background: #111; color: #fff; font: 500 .875rem/1 Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45); transition: translate .3s, opacity .3s; }
.cs-proto-fab:hover { background: #000; }
.cs-proto-fab:focus-visible { outline: 2px solid #c8f04a; outline-offset: 3px; }
.cs-proto-fab__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #c8f04a; color: #111; }
.cs-proto-fab.is-hidden { opacity: 0; translate: -50% 150%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cs-proto, .cs-proto__stick, .cs-proto-fab { transition: none; } .cs-proto__stick { scale: 1; translate: 0 0; } }
.cs-road--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* =============================================================
   Editorial layout (v2): one reading column, a quiet section list
   on the left, and visuals on soft plates with mono captions.
   Each section reads the same way: label, a headline that is the
   insight, a sentence or two, then the evidence.
   ============================================================= */
.cx, .cx-hero { --col: 680px; --w-wide: min(940px, calc(100vw - 2 * var(--pad)));
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; --accent: #9cc626; }
.cx { container: cs / inline-size; max-width: calc(var(--col) + 2 * var(--pad)); margin-inline: auto;
  padding: 0 var(--pad) clamp(4rem, 9vw, 7rem); }
.cx-col { max-width: var(--col); margin-inline: auto; }
.cx-wide { container: cs / inline-size; width: var(--w-wide); margin-inline: calc((100% - var(--w-wide)) / 2); }

/* ----- hero ----- */
.cx-hero { padding: clamp(2rem, 6vw, 4rem) var(--pad) 0; scroll-margin-top: 6rem; }
.cx-crumbs { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--fg-faint); }
.cx-crumbs .case-back { font-size: .85rem; color: var(--fg-faint); }
.cx-crumbs > span:last-child { color: var(--fg); }
.cx-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.06;
  letter-spacing: -.015em; margin-top: clamp(1.5rem, 4vw, 2.25rem); max-width: 18ch; text-wrap: balance; }
.cx-lead { font-size: 1.125rem; line-height: 1.65; color: var(--fg-muted); margin-top: 1.1rem; max-width: 56ch; text-wrap: pretty; }
.cx-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }
.cx-meta dt { font-size: .78rem; color: var(--fg-faint); }
.cx-meta dd { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--fg); }
.cx-hero__visual { margin-top: clamp(2rem, 5vw, 3rem); }
.cx-hero__visual .hx__visual { min-height: clamp(300px, 46vw, 520px); }
.cx-stats { list-style: none; padding: 1.4rem 0 0; margin: clamp(1.5rem, 4vw, 2.25rem) auto 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; border-top: 1px solid var(--border); }
.cx-stats b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1;
  color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-stats span { display: block; font-size: .8rem; line-height: 1.4; color: var(--fg-muted); margin-top: .45rem; }
.cx-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----- section list: fixed beside the column on wide screens ----- */
.cx-toc { display: none; }
@media (min-width: 1400px) {
  .cx-toc { display: block; position: fixed; z-index: 40; top: 50%; translate: 0 -50%;
    left: max(1.5rem, calc(50vw - 670px)); width: 160px;
    opacity: 0; pointer-events: none; transition: opacity .3s; }
  .cx-toc.is-on { opacity: 1; pointer-events: auto; }
  .cx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
  .cx-toc a { position: relative; display: block; padding: .32rem 0 .32rem 1rem; font-size: .85rem; color: var(--fg-faint);
    transition: color .2s; }
  .cx-toc a:hover { color: var(--fg); }
  .cx-toc a[aria-current] { color: var(--fg); }
  .cx-toc a[aria-current]::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; translate: 0 -50%;
    background: var(--accent); }
  .cx-toc a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
}

/* ----- section anatomy ----- */
.cx-sec { padding-top: clamp(3.5rem, 8vw, 5.5rem); margin-top: clamp(3.5rem, 8vw, 5.5rem); border-top: 1px solid var(--border-2);
  scroll-margin-top: 4rem; }
.cx-sec:first-child { margin-top: clamp(3rem, 7vw, 5rem); }
.cs .cx-sec > * + * { margin-top: 1.1rem; }
.cs .cx-sec > .cx-wide, .cs .cx-sec > .cx-plate, .cs .cx-sec > .cx-car, .cs .cx-sec > .cx-step,
.cs .cx-sec > .cs-scene-wrap, .cs .cx-sec > .cs-decide, .cs .cx-sec > .cs-flow { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.cx-label { font-size: .85rem; color: var(--fg-faint); }
.cx h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1;
  letter-spacing: -.01em; margin-top: .55rem !important; max-width: 22ch; text-wrap: balance; }
.cx .cx-h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.3;
  color: var(--fg); max-width: 40ch; text-wrap: balance; }
.cx-p { font-size: 1.0625rem; line-height: 1.7; color: var(--fg-muted); max-width: 60ch; text-wrap: pretty; }
.cx-p--muted { color: var(--fg-faint); }
.cx-note { font-size: .8rem; line-height: 1.5; color: var(--fg-faint); max-width: 64ch; }
.cx-cap { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }

/* ----- plates: the soft panel every visual sits on ----- */
.cx-plate { background: var(--bg-elev); border-radius: 18px; padding: clamp(1rem, 2.8vw, 1.75rem); }
.cx-plate--2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem; }
.cx-plate--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cx-fig { margin: 0; background: #fff; border-radius: 12px; padding: 1.1rem 1.15rem 1.2rem; }
.cx-fig .cx-cap { margin-bottom: 1rem; }
.cx-find { background: #fff; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; }
.cx-find ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.cx-find li { font-size: .9rem; line-height: 1.45; color: var(--fg); padding: .55rem 0; border-top: 1px solid var(--border-2); }
.cx-quote { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; padding-left: 1.1rem; border-left: 2px solid var(--accent);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.35; color: var(--fg); max-width: 34ch; }

.cx-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.cx-pair { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; }
.cx-pair b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.25; color: var(--fg); margin-top: .5rem; }
.cx-pair__n { display: block; font-size: .85rem; color: var(--fg-muted); margin-top: .6rem; font-variant-numeric: tabular-nums; }

.cx-road { list-style: none; margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border); }
.cx-road li { position: relative; padding: 1.1rem 1rem 0 0; }
.cx-road li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--fg-faint); }
.cx-road li:first-child::before { background: var(--accent); }
.cx-road b { display: block; font-weight: 500; font-size: .95rem; color: var(--fg); margin-top: .35rem; }
.cx-road li > span:last-child { display: block; font-size: .85rem; line-height: 1.45; color: var(--fg-muted); margin-top: .25rem; }

/* ----- carousel: one screen at a time, numbered ----- */
.cx-car { position: relative; }
.cx-car__track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; background: var(--bg-elev); }
.cx-car__track::-webkit-scrollbar { display: none; }
.cx-slide { container: cs / inline-size; flex: 0 0 100%; min-width: 0; scroll-snap-align: start;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 3vw, 2rem); }
.cx-car__bar { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; }
.cx-car__n { margin-right: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--fg-faint); }
.cx-car__n b { font-weight: 400; color: var(--fg); }
.cx-car__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--fg);
  font-size: .95rem; cursor: pointer; transition: background .2s, opacity .2s; }
.cx-car__btn:hover:not(:disabled) { background: var(--bg-elev); }
.cx-car__btn:disabled { opacity: .3; cursor: default; }
.cx-car__btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.cx-car[data-n="1"] .cx-car__bar { display: none; }
.cx-car--phones .ph-scene { --phw: clamp(180px, 25cqw, 250px); justify-content: center; }
.cx-step { margin-top: clamp(2.5rem, 6vw, 3.75rem) !important; }
.cx-step .cx-h3 { margin-top: .4rem; }
.cx-step .cx-car { margin-top: 1.25rem; }
/* before/after slides: the pair fills the plate, captions one line each */
.cx-car--pairs .cs-pair h3 { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-faint); margin-bottom: .9rem; }
.cx-car--pairs .cs-side figcaption { font-size: .85rem; line-height: 1.45; color: var(--fg-muted); }

/* ----- benchmarks: six, then the rest on request ----- */
.cx-more { margin-top: 1rem; }
.cx-more > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-size: .85rem; color: var(--fg); padding: .55rem 1rem; border: 1px solid var(--border); border-radius: 999px; }
.cx-more > summary::-webkit-details-marker { display: none; }
.cx-more > summary::after { content: "+"; color: var(--fg-faint); }
.cx-more[open] > summary::after { content: "\2212"; }
.cx-more[open] > summary span::after { content: ""; }
.cx-more > .bm-grid { margin-top: 1rem; }
.cx-wide > .cx-note { margin-top: .9rem; }

/* ----- decisions: problem -> decision ----- */
.cx-ps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: .6rem; }
.cx-ps > div { border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem 1rem; }
.cx-ps > div.is-pick { border-color: var(--accent); background: color-mix(in srgb, var(--lime, #c8f04a) 12%, transparent); }
.cx-ps p { font-size: .95rem; line-height: 1.5; color: var(--fg); margin-top: .45rem; }
.cx-ps__arrow { align-self: center; color: var(--fg-faint); }
.cx-sec > .cx-ps + .cx-note { margin-top: .6rem; }
.cx-sec > .cx-note + .cx-ps { margin-top: 1.75rem; }

/* ----- prototype ----- */
.cx-try { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.1rem .5rem .55rem; border: 0; border-radius: 99px;
  background: #111; color: #fff; font: 500 .875rem/1 var(--font-sans); cursor: pointer; }
.cx-try:hover { background: #000; }
.cx-try:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cx-aside { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; }
.cx-aside .cx-h3 { margin-top: .5rem; }
.cx-aside .cx-p { font-size: .95rem; margin-top: .5rem; }
.cx-aside .cs-mini { margin: 0; }
.cx-aside .cs-mini img { width: 92px; }

/* ----- results ----- */
.cx-learn { list-style: none; counter-reset: l; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 60ch; }
.cx-learn li { counter-increment: l; position: relative; padding-left: 2.2rem; font-size: 1rem; line-height: 1.6; color: var(--fg-muted); }
.cx-learn li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: .1rem;
  font-family: var(--mono); font-size: .72rem; color: var(--fg-faint); }
.cx-learn b { color: var(--fg); font-weight: 500; }

/* ----- small screens ----- */
@media (max-width: 760px) {
  .cx-meta { grid-template-columns: 1fr 1fr; }
  .cx-stats { grid-template-columns: 1fr 1fr; }
  .cx-stats--3 { grid-template-columns: 1fr; }
  .cx-plate--2, .cx-plate--3, .cx-pairs { grid-template-columns: 1fr; }
  .cx-road { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .cx-ps { grid-template-columns: 1fr; }
  .cx-ps__arrow { justify-self: center; rotate: 90deg; }
  .cx-aside { grid-template-columns: 1fr; }
}

/* the lime rule: listing and product page side by side, then the buy bars */
.cx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cx-duo .ph-scene { --phw: clamp(170px, 30cqw, 220px); }
.cx .cx-stats + .cx-h3 { margin-top: clamp(2.25rem, 5vw, 3rem); }
@media (max-width: 760px) { .cx-duo { grid-template-columns: 1fr; } }
.cx-duo .ph-notes, .cx-duo .ph__pins { display: none; }
.cx-duo .ph-scene { grid-template-columns: 1fr; justify-items: center; }
.cx-duo .ph figcaption { font-size: .82rem; color: var(--fg-muted); }

/* =============================================================
   Layout v3: one column, one edge.
   Every block (text, charts, screens) shares a 688px column, so
   left and right edges line up down the whole page; only the hero
   image runs wider. Sections open on a hairline, a quiet label and
   a headline that states the point, so the headlines alone tell
   the story. Visuals sit on flat, square, neutral panels.
   ============================================================= */
.cx, .cx-hero { --col: 688px; --w-wide: min(924px, calc(100vw - 2 * var(--pad)));
  --panel: var(--bg-elev); --panel-line: transparent; }

/* type scale: 36 title / 28 headline / 18 subhead / 16 body / 15 labels */
.cx-title { font-size: clamp(1.9rem, 4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em;
  margin-top: 2.5rem; max-width: none; }
.cx-lead { font-size: 1rem; line-height: 1.6; margin-top: .75rem; max-width: none; }
.cx h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em;
  margin-top: 1.25rem !important; max-width: none; }
.cx .cx-h3, .cx .cs-pair h3, .cx .ph-story__head h3 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.01em; max-width: none; }
.cx-p, .cx-learn li, .cx-ps p { font-size: 1rem; line-height: 1.6; max-width: none; }
.cx-label, .cx-meta dt, .cx-meta dd { font-size: .9375rem; line-height: 1.5; }
.cx-cap { font-family: var(--font-sans); font-size: .875rem; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.cx-note { font-size: .875rem; max-width: none; }

/* hero: breadcrumb, the wide image, then title, intro and facts in the column */
.cx-hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.cx-hero__visual, .dx-hero { margin-top: 1.5rem; }
.cx-hero__visual .hx__visual { min-height: 0; aspect-ratio: 16 / 9; }
.dx-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.cx-meta { margin-top: 2rem; gap: 1rem; }
.cx-meta dd { margin-top: .25rem; }
.cx-stats { margin-top: 2.5rem; padding-top: 1.25rem; gap: 1rem; }
.cx-stats b { font-size: 1.75rem; }
.cx-stats span { font-size: .875rem; }

/* sections: a hairline, then label > headline > text, the same gaps everywhere */
.cx-sec { margin-top: 6rem; padding-top: 1rem; border-top-color: var(--border); }
.cx-sec:first-child { margin-top: 6rem; }
.cs .cx-sec > * + * { margin-top: 1rem; }
.cs .cx-sec > .cx-h3 { margin-top: 2.5rem; }
.cs .cx-sec > .cx-h3 + * { margin-top: .5rem; }
.cs .cx-sec > .cx-label + h2 { margin-top: 1.25rem !important; }
.cs .cx-sec > .cx-wide, .cs .cx-sec > .cx-plate, .cs .cx-sec > .cx-car, .cs .cx-sec > .cx-step,
.cs .cx-sec > .cs-scene-wrap, .cs .cx-sec > .cs-decide, .cs .cx-sec > .cs-flow,
.cs .cx-sec > .cx-pairs, .cs .cx-sec > .cx-road, .cs .cx-sec > .cx-ps { margin-top: 1.5rem; }

/* every visual lives in the column: one left edge, one right edge */
.cx .cx-wide { width: 100%; margin-inline: 0; }

.cx-road li > span:last-child { font-size: .9375rem; line-height: 1.5; }
.cx-road b { font-size: .9375rem; }


/* section list: in the left margin, always there, the current one marked */
@media (min-width: 1320px) {
  .cx-toc { opacity: 1; pointer-events: auto; top: clamp(8rem, 26vh, 15rem); translate: none; left: 1.5rem; width: 180px; }
  .cx-toc a { font-size: .9375rem; padding: .15rem 0; color: var(--fg-faint); }
  .cx-toc a[aria-current] { color: var(--fg); }
  .cx-toc a[aria-current]::before { left: -.75rem; width: 5px; height: 5px; }
}

@media (max-width: 760px) {
  .cx-sec, .cx-sec:first-child { margin-top: 4rem; }
  .cx-plate { padding: 1rem; }
  .cx-plate--3 { padding: 0; }
}

/* =============================================================
   Panels for the thinking: journey maps, site maps, brand and
   kit sheets. One flat panel, an italic serif title inside it.
   ============================================================= */
.cx-panel { margin: 0; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-line);
  padding: clamp(1.25rem, 4cqw, 2.25rem) clamp(1rem, 4cqw, 2.25rem); container: cs / inline-size; }
.cx-panel__t { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.375rem;
  line-height: 1.3; letter-spacing: -.01em; color: var(--fg); margin: 0 0 1.5rem; }
.cx-panel__note { margin-top: 1.25rem; font-size: .875rem; color: #4d7a00; }
.cx-tagline { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.cx-tagline--bad { color: #b5530d; }
.cx-tagline--good { color: #4d7a00; }

/* site map: a root, its branches, their pages, and notes that name what's wrong or right */
.cx-ia + .cx-ia { margin-top: 1.25rem; }
.cx-ia { border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--panel-line); padding: 1.25rem 1.25rem 1.5rem; }
.cx-ia__root { display: flex; justify-content: center; margin-top: .25rem; }
.cx-ia__node { display: inline-block; border-radius: 6px; font-size: .8125rem; line-height: 1.3; padding: .45rem .7rem; background: #fff; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--border); }
.cx-ia__root .cx-ia__node { background: var(--fg); color: var(--bg); box-shadow: none; font-weight: 500; }
.cx-ia__cols { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; position: relative; padding-top: 1rem; }
.cx-ia__cols::before { content: ""; position: absolute; top: 0; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 1px; background: var(--fg-faint); }
.cx-ia__cols::after { content: ""; position: absolute; top: -1.5rem; left: 50%; width: 1px; height: 1.5rem; background: var(--fg-faint); }
.cx-ia__col { position: relative; min-width: 0; }
.cx-ia__col::before { content: ""; position: absolute; top: -1rem; left: 50%; width: 1px; height: 1rem; background: var(--fg-faint); }
.cx-ia__col > .cx-ia__node { display: block; text-align: center; font-weight: 500; background: color-mix(in srgb, var(--fg) 6%, #fff); }
.cx-ia__col ul { list-style: none; margin: .5rem 0 0 .6rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--fg-faint); display: grid; gap: .35rem; }
.cx-ia__col li { position: relative; }
.cx-ia__col li::before { content: ""; position: absolute; left: -.6rem; top: 50%; width: .6rem; height: 1px; background: var(--fg-faint); }
.cx-ia__col li .cx-ia__node { display: block; }
.cx-ia__flag { display: block; border-radius: 6px; margin-top: .5rem; font-size: .75rem; line-height: 1.4; padding: .45rem .55rem; }
.cx-ia--before .cx-ia__flag { background: #f7dfd3; color: #8a3a0b; }
.cx-ia--after .cx-ia__flag { background: #e3efc4; color: #3e5f00; }
.cx-ia__arrow { display: block; text-align: center; color: var(--fg-faint); margin: .75rem 0; font-size: 1.1rem; }
@container cs (max-width: 600px) {
  .cx-ia__cols { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .cx-ia__cols::before, .cx-ia__cols::after, .cx-ia__col::before { display: none; }
}

/* rules: three short statements in plain columns */
.cx-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cx-rules b { display: block; font-weight: 500; font-size: .9375rem; color: var(--fg); line-height: 1.4; }
.cx-rules p { font-size: .875rem; line-height: 1.5; color: var(--fg-muted); margin-top: .3rem; }
@container cs (max-width: 600px) { .cx-rules { grid-template-columns: 1fr; } }
.cs .cx-sec > .cx-panel { margin-top: 1.5rem; }

/* audit: nothing a reader needs is set under 12px; lists run the full column */
.cx-learn { max-width: none; }
.bm-shots figcaption { font-size: .8125rem; }
.cs-tag, .cs-option .tag, .cs-problem .tag { font-size: .75rem; }
.cs-buy .price { font-size: .75rem; }
.cs-btn { border-radius: 99px; }

/* stacks: what used to be carousels, now one panel per screen, top to bottom */
.cx-stack { display: grid; gap: 1rem; }
.cs .cx-sec > .cx-stack, .cx-step .cx-stack { margin-top: 1.5rem; }
.cx-stack > .cx-slide { container: cs / inline-size; min-width: 0; background: var(--bg-elev); border-radius: 18px;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 3vw, 2rem); }
.cx-stack--phones .ph-scene { --phw: clamp(180px, 25cqw, 250px); justify-content: center; }
.cx-stack--pairs .cs-pair h3 { font-family: var(--font-sans); font-size: .9375rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--fg); margin-bottom: .9rem; }
.cx-stack--pairs .cs-side figcaption { font-size: .875rem; line-height: 1.45; color: var(--fg-muted); }

/* a small label over every headline */
.cs .cx-sec > .cx-label--sub { margin-top: 2.5rem; }
.cs .cx-sec > .cx-label--sub + .cx-h3 { margin-top: .35rem; }
.cx-label--title { margin-top: 2.5rem; }
.cx-label--title + .cx-title { margin-top: .5rem; }
.cx-step .cx-label + .cx-h3 { margin-top: .35rem; }

/* =============================================================
   Design system preview: a white sheet in three columns
   (styles, controls, commerce), each with a ruled header and
   small-caps groups. Components sit on the app's dark surface,
   in every state they have.
   ============================================================= */
.ds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.75rem 2rem; background: #fff;
  border-radius: 12px; padding: 1.5rem 1.5rem 1.75rem; box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 16px 32px -26px rgba(17,17,17,.35); }
.ds__col { min-width: 0; }
.ds__h { font-family: var(--font-sans); font-size: .9375rem; font-weight: 500; color: var(--fg); padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.ds__sub { display: block; margin: 1.25rem 0 .6rem; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.ds__type { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--fg); }
.ds__sw { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ds__sw li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: .65rem; align-items: center; }
.ds__sw li::before { content: ""; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(17,17,17,.08); }
.ds__sw b { font-weight: 500; font-size: .8125rem; color: var(--fg); line-height: 1.2; }
.ds__sw small { grid-column: 2; font-family: var(--mono); font-size: .75rem; color: var(--fg-faint); }
.ds__dark { background: #0b0b0e; border-radius: 12px; color: #fff; font-family: Figtree, var(--font-sans); }
.ds__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .75rem .6rem .6rem; }
.ds__row figure { margin: 0; display: grid; justify-items: center; gap: .4rem; }
.ds__row figcaption { font-family: var(--font-sans); font-size: .75rem; color: rgba(255,255,255,.55); }
.ds__row--wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ds-btn { display: inline-block; white-space: nowrap; font-size: .75rem; font-weight: 600; line-height: 1; padding: .6em .85em; border-radius: 99px; }
.ds-btn--lime { background: #b3e100; color: #0b0b0e; }
.ds-btn--lime.is-down { background: #8fb400; }
.ds-btn--line { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); color: #fff; }
.ds-btn--line.is-down { background: #252528; }
.ds-btn.is-off { background: rgba(255,255,255,.05); color: rgba(255,255,255,.3); box-shadow: none; }
.ds-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #252528; color: #fff; font-size: 1rem; line-height: 1; }
.ds-ico--lime { background: #b3e100; color: #0b0b0e; font-weight: 700; }
.ds-ico--sm { width: 26px; height: 26px; font-size: .9rem; }
.ds-chip { font-size: .75rem; font-weight: 600; padding: .5em .85em; border-radius: 99px; background: #18181b; color: rgba(255,255,255,.75); }
.ds-chip.is-on { background: #fff; color: #0b0b0e; }
.ds-card { padding: .75rem; display: grid; gap: .25rem; }
.ds-card__img { position: relative; border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 1; margin-bottom: .35rem; }
.ds-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-card__img .ds-ico { position: absolute; right: .45rem; bottom: .45rem; }
.ds-card__meta { font-size: .75rem; color: rgba(255,255,255,.55); }
.ds-card__t { font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.ds-card__p { font-size: .75rem; color: rgba(255,255,255,.45); }
.ds-card__p i { font-style: normal; font-weight: 700; color: #b3e100; background: rgba(179,225,0,.14); padding: 0 .3em; border-radius: 4px; }
.ds-card__price { font-size: .9375rem; font-weight: 700; }
.ds-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: .3rem; border-radius: 99px; font-size: .75rem; text-align: center; color: rgba(255,255,255,.6); }
.ds-tabs span { padding: .45rem 0; border-radius: 99px; }
.ds-tabs .is-on { background: #252528; color: #fff; font-weight: 600; }
.ds__col--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 2rem; align-items: start; }
.ds__col--wide > .ds__h { grid-column: 1 / -1; }
.ds-buy { display: flex; align-items: center; gap: .5rem; padding: .6rem .6rem .6rem .9rem; }
.ds-buy > span:first-child { margin-right: auto; font-size: .9375rem; font-weight: 700; line-height: 1.2; }
.ds-buy small { display: block; font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.55); }
.ds-seller { display: flex; justify-content: space-between; align-items: center; padding: .75rem .9rem; font-size: .8125rem; }
.ds-seller span { color: rgba(255,255,255,.6); font-size: .75rem; }
@container cs (max-width: 560px) { .ds { grid-template-columns: 1fr; } .ds__col--wide { grid-template-columns: 1fr; } .ds-card { max-width: 220px; } }
@container cs (max-width: 560px) { .ds__row { display: flex; flex-wrap: wrap; justify-content: space-around; row-gap: .75rem; } }

/* phone scenes: the phone always sits in the middle, notes either side, even when one side has none */
@container cs (min-width: 561px) {
  .ph-scene > .ph-notes--l { grid-column: 1; grid-row: 1; }
  .ph-scene > .ph-phones { grid-column: 2; grid-row: 1; }
  .ph-scene > .ph-notes--r { grid-column: 3; grid-row: 1; }
}

/* benchmark captions: icon and app on one line, the screen under it, never wrapping */
.bm-shots figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .35rem; row-gap: .05rem; align-items: center; min-width: 0; }
.bm-shots figcaption > b, .bm-shots figcaption > span:not(.lg) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-shots figcaption > span:not(.lg) { grid-column: 2; width: auto; }
.bm-shots figcaption > svg.lg, .bm-shots figcaption > span.lg { grid-row: 1; }

/* =============================================================
   Title hierarchy: page 40 / section 32 / subhead 24 / card 20,
   all Newsreader at 500, with clear air above and tight air below.
   Labels carry a small lime mark so each section start is easy to spot.
   ============================================================= */
.cx-title { font-size: clamp(2.1rem, 4.6vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.cx h2 { font-size: clamp(1.65rem, 3.4vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.022em; }
.cx .cx-h3, .cx .ph-story__head h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.cx-panel__t { font-weight: 500; }
.bm-card h4 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.cx-stack--pairs .cs-pair h3 { font-size: 1rem; font-weight: 600; }
.cx-label { display: flex; align-items: center; gap: .5rem; font-weight: 500; letter-spacing: .01em; }
.cx-sec > .cx-label:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #9cc626; flex: none; }
.cs .cx-sec > .cx-label + h2 { margin-top: .75rem !important; }
.cs .cx-sec > h2 + .cx-p { margin-top: .9rem; }
.cs .cx-sec > .cx-label--sub { margin-top: 3rem; }
.cs .cx-sec > .cx-label--sub + .cx-h3, .cx-step .cx-label + .cx-h3 { margin-top: .4rem; }
.cs .cx-sec > .cx-h3 + .cx-p { margin-top: .6rem; }

/* site map v2: straight on the panel, no inner white box */
.cx-ia { background: none; box-shadow: none; border-radius: 0; padding: 0; }
.cx-ia .cx-tagline { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; padding: .35rem .7rem; border-radius: 99px; }
.cx-ia--before .cx-tagline { background: #f6e3d8; color: #9a4410; }
.cx-ia--after .cx-tagline { background: #e6f1c8; color: #3e5f00; }
.cx-ia__root { margin-top: .5rem; }
.cx-ia__root .cx-ia__node { border-radius: 99px; padding: .5rem 1rem; font-size: .875rem; }
.cx-ia__cols { margin-top: 1.75rem; }
.cx-ia__col > .cx-ia__node { background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; font-size: .875rem; padding: .55rem .6rem; border-radius: 8px; }
.cx-ia__col li .cx-ia__node { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--border-2); font-size: .8125rem; color: var(--fg-muted); border-radius: 6px; }
.cx-ia__col ul { gap: .4rem; }
.cx-ia__flag { position: relative; background: none !important; padding: 0 0 0 .9rem; margin-top: .75rem; font-size: .8125rem; line-height: 1.4; }
.cx-ia__flag::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cx-ia--before .cx-ia__flag { color: #9a4410; }
.cx-ia--after .cx-ia__flag { color: #3e5f00; }
.cx-ia__arrow { margin: 1.75rem 0; height: 1px; background: var(--border); position: relative; font-size: 0; }
.cx-ia__arrow::after { content: "\2193"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: .95rem; color: var(--fg-faint);
  background: var(--bg-elev); padding: 0 .6rem; }

/* problem -> decision, as one card: the problem on the left, the call on the right */
.cx-ps { gap: 0; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1.15fr); }
.cx-ps > div { border: 0 !important; border-radius: 0; padding: 1.25rem 1.4rem 1.35rem; background: none; }
.cx-ps > div.is-pick { background: color-mix(in srgb, #b3e100 11%, #fff); box-shadow: none; }
.cx-ps .cx-cap { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9a4410; }
.cx-ps .cx-cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cx-ps .is-pick .cx-cap { color: #3e5f00; }
.cx-ps p { font-size: 1rem; line-height: 1.5; color: var(--fg); margin-top: .5rem; }
.cx-ps .is-pick p { font-weight: 500; }
.cx-ps__arrow { position: relative; z-index: 1; align-self: center; width: 0; overflow: visible; display: grid; place-items: center; }
.cx-ps__arrow::before { content: "\2192"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: #fff; box-shadow: 0 0 0 1px var(--border); color: var(--fg-muted); font-size: .9rem; }
.cx-ps__arrow { font-size: 0; }
.cx-sec > .cx-ps + .cx-note { margin-top: .6rem; padding-left: 1.4rem; }
@media (max-width: 760px) {
  .cx-ps { grid-template-columns: 1fr; }
  .cx-ps__arrow { width: auto; height: 0; rotate: 90deg; }
}

/* journey as rows: step, what went wrong, the number. One row per step reads left to right. */
.cx-jr { display: grid; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-2); overflow: hidden; }
.cx-jr__head, .cx-jr__row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 9rem; gap: 1.25rem; align-items: baseline; padding: .95rem 1.25rem; }
.cx-jr__head { padding-block: .7rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint);
  border-bottom: 1px solid var(--border); }
.cx-jr__row + .cx-jr__row { border-top: 1px solid var(--border-2); }
.cx-jr__step { display: flex; align-items: baseline; gap: .55rem; font-weight: 600; font-size: .9375rem; color: var(--fg); }
.cx-jr__step i { font-style: normal; font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--fg-faint); }
.cx-jr__hit { font-size: .9375rem; line-height: 1.5; color: var(--fg-muted); margin: 0; }
.cx-jr__n { margin: 0; font-size: .8125rem; line-height: 1.35; color: var(--fg-muted); }
.cx-jr__n b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.375rem; line-height: 1.1; color: var(--fg); letter-spacing: -.01em; }
.cx-jr__row.is-key { background: color-mix(in srgb, #b3e100 13%, #fff); }
.cx-jr__row.is-key .cx-jr__step i { color: #3e5f00; }
.cx-panel__note { color: #3e5f00; font-weight: 500; }
@container cs (max-width: 560px) {
  .cx-jr__head { display: none; }
  .cx-jr__row { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; }
  .cx-jr__hit { grid-column: 1 / -1; grid-row: 2; }
  .cx-jr__n { grid-column: 2; grid-row: 1; text-align: right; }
  .cx-jr__n b { font-size: 1.15rem; }
}

/* benchmarks: one pattern per row, so screens are big enough to read and names never cut */
.bm-grid { grid-template-columns: 1fr; gap: 1rem; }
.bm-shots { grid-template-columns: repeat(3, minmax(0, 160px)); gap: 1.25rem; }
.bm-shots--2 { grid-template-columns: repeat(2, minmax(0, 160px)); max-width: none; }
.bm-shots--4 { grid-template-columns: repeat(4, minmax(0, 130px)); }
.bm-card { padding: 1.4rem 1.5rem 1.5rem; }
@container cs (max-width: 560px) { .bm-shots, .bm-shots--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } .bm-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-ps > div:first-child { padding-right: 2rem; }
.cx-ps > div.is-pick { padding-left: 2.1rem; }
.cx-ps__arrow::before { translate: -50% 0; }
@media (max-width: 760px) { .cx-ps > div:first-child, .cx-ps > div.is-pick { padding: 1.1rem 1.25rem; } .cx-ps__arrow::before { translate: 0 0; } }
@container cs (max-width: 560px) { .bm-shots, .bm-shots--2, .bm-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

/* benchmark apps: each in its own card; name and screen top left, logo top right, the screen below */
.bm-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.bm-shots--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.bm-shots figure { display: flex; flex-direction: column; gap: .9rem; background: #fff; border-radius: 14px; padding: .85rem .85rem 1rem;
  box-shadow: inset 0 0 0 1px var(--border-2); }
.bm-shots figure > .bm-shot { width: 78%; align-self: center; }
.bm-shots figcaption { order: -1; margin: 0; grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; align-items: start; }
.bm-shots figcaption > b { grid-column: 1; grid-row: 1; font-size: .875rem; }
.bm-shots figcaption > span:not(.lg) { grid-column: 1; grid-row: 2; font-size: .8125rem; }
.bm-shots figcaption > .lg { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 26px; height: 26px; font-size: .7rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--bg-elev); color: var(--fg); border: 0; padding: 5px; box-sizing: border-box; }
.bm-shots figcaption > svg.lg { fill: var(--fg); }
.bm-card .bm-shots { margin-top: 1.1rem; }
@container cs (max-width: 560px) { .bm-shots, .bm-shots--2, .bm-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* decision card: one border around both halves, the lime side inside it */
.cx-ps { box-shadow: none; border: 1px solid var(--border); }
.cx-ps > div.is-pick { border-left: 1px solid color-mix(in srgb, #b3e100 35%, var(--border)) !important; }
.cx-aside .cx-try { margin-top: 1.25rem; }
.bm-shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.bm-shots--4 figure > .bm-shot { width: 56%; }

/* how I built it: title first, one line under it, the tools as a quiet footer */
.cs-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cs-flow li { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-2); border-radius: 14px; padding: 1.1rem 1.1rem 1rem; }
.cs-flow li > b { order: 1; margin: 0; font-size: 1rem; font-weight: 600; color: var(--fg); }
.cs-flow li > span:not(.cs-tools) { order: 2; margin-top: .35rem; font-size: .875rem; line-height: 1.5; color: var(--fg-muted); }
.cs-flow .cs-tools { order: 3; margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--border-2); display: flex; flex-wrap: wrap; gap: .4rem .75rem; }
.cs-flow li > span:not(.cs-tools) + .cs-tools, .cs-flow .cs-tools { margin-top: 1rem; }
.cs-flow li { justify-content: flex-start; }
.cs-flow li > .cs-tools { margin-top: auto; }
.cs-flow li > span:nth-child(3) { margin-bottom: 1rem; }
.cs-flow .cs-tool { background: none; border: 0; padding: 0; gap: .35rem; font-size: .8125rem; font-weight: 500; color: var(--fg-muted); }
.cs-flow .cs-tool .lg { width: 1rem; height: 1rem; color: var(--fg); }
.cs-flow .cs-tool:has(use[href="#lg-woocommerce"]) .lg { display: none; }
@container cs (max-width: 680px) { .cs-flow { grid-template-columns: 1fr 1fr; } }

/* web screens enlarge on click, in a wide lightbox */
.cs-browser { cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cs-browser:hover { transform: translateY(-3px); }
.cs-browser:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.bm-lightbox.is-wide { max-width: min(94vw, 1280px); }
.bm-lightbox.is-wide img { border-radius: 10px; max-height: 90vh; width: auto; max-width: 100%; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .cs-browser { transition: none; } .cs-browser:hover { transform: none; } }

/* =============================================================
   Section bar on phones and tablets (see assets/js/case-nav.js):
   slides over the site header once the hero is behind you.
   ============================================================= */
.cx-mnav { position: fixed; z-index: 70; top: 0; left: 0; right: 0; translate: 0 -105%; transition: translate .35s var(--ease);
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-2); padding-top: env(safe-area-inset-top, 0px); }
.cx-mnav.is-on { translate: 0 0; }
.cx-mnav__btn { display: flex; align-items: center; gap: .65rem; width: 100%; height: 52px; padding: 0 var(--pad); border: 0; background: none;
  font: inherit; color: var(--fg); text-align: left; cursor: pointer; }
.cx-mnav__n { font-family: var(--mono, ui-monospace, monospace); font-size: .75rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; flex: none; }
.cx-mnav__t { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-mnav__chev { flex: none; width: 28px; height: 28px; padding: 8px; border-radius: 50%; background: var(--bg-elev); color: var(--fg-muted);
  transition: rotate .25s var(--ease); box-sizing: border-box; }
.cx-mnav.is-open .cx-mnav__chev { rotate: 180deg; }
.cx-mnav__btn:focus-visible { outline: 2px solid var(--fg); outline-offset: -4px; border-radius: 8px; }
.cx-mnav__line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.cx-mnav__line i { display: block; height: 100%; background: #9cc626; transform-origin: 0 50%; transform: scaleX(0); }
.cx-mnav__list { list-style: none; margin: 0; padding: .35rem var(--pad) .75rem; display: none; max-height: min(70vh, 480px); overflow-y: auto;
  border-top: 1px solid var(--border-2); }
.cx-mnav.is-open .cx-mnav__list { display: grid; }
.cx-mnav__list a { display: flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .9375rem; color: var(--fg-muted); border-radius: 8px; }
.cx-mnav__list a span { font-family: var(--mono, ui-monospace, monospace); font-size: .75rem; color: var(--fg-faint); width: 1.4rem; }
.cx-mnav__list a[aria-current] { color: var(--fg); font-weight: 600; }
.cx-mnav__list a[aria-current] span { color: #4d7a00; }
.cx-mnav.is-open { box-shadow: 0 18px 40px -20px rgba(17,17,17,.35); }
/* the site header steps aside while the bar is showing */
.site-header { transition: translate .35s var(--ease); }
.cx-mnav-on .site-header { translate: 0 -100%; }
/* wide screens keep the margin list instead */
@media (min-width: 1320px) { .cx-mnav { display: none; } .cx-mnav-on .site-header { translate: none; } }
@media (prefers-reduced-motion: reduce) { .cx-mnav, .site-header, .cx-mnav__chev { transition: none; } }
.cx-mnav__line { top: calc(51px + env(safe-area-inset-top, 0px)); bottom: auto; }

/* section dividers: a full-column hairline, open air under it, then the label */
.cx-sec, .cx-sec:first-child { margin-top: 5rem; padding-top: 4.5rem; border-top: 1px solid rgba(17,17,17,.12); }
@media (max-width: 760px) { .cx-sec, .cx-sec:first-child { margin-top: 3.5rem; padding-top: 3rem; } }

/* cover: right under the title, the full column, rounded like the panels */
.cx-cover { margin: 1.75rem 0 0; }
.cx-cover .hx__visual { min-height: 0; aspect-ratio: 16 / 10; border-radius: 18px; }
.cx-cover .hx__visual img { width: min(88%, 520px); }
.cx-cover + .cx-lead { margin-top: 1.5rem; }

/* benchmark logos: each app's own App Store icon, top right */
.bm-shots figcaption > .bm-logo { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(17,17,17,.08); object-fit: cover; }
.cx-jr__step { white-space: nowrap; }
