/* ==========================================================================
   Firefly — case study pages (/commerce/ and the ones to come)

   Loaded after styles.css, which gives the colours, type, the nav and its
   Solutions menu, .label, .cta and the grain. These pages scroll like any
   page: no film, no swarm. The night is kept to the hero, and kept quiet.
   ========================================================================== */

.case { background: var(--night); }

/* the nav sits over the page as it scrolls, so it gets a dark fade behind it */
.case .nav {
  background: linear-gradient(180deg, rgb(15 13 10 / .92), rgb(15 13 10 / .6) 60%, transparent);
}

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding-inline: var(--pad); }

/* ---- Hero: a still night, one band of light on the ridge, a few fireflies ---- */

.case-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(52rem, 92svh);
  display: grid; align-items: end;
  padding-block: clamp(8rem, 22vh, 12rem) clamp(3.5rem, 10vh, 6rem);
  background:
    radial-gradient(ellipse 60% 26% at 32% 78%, rgb(var(--seam-rgb) / .22), transparent 70%),
    radial-gradient(ellipse 90% 40% at 30% 86%, rgb(var(--haze-rgb) / .22), transparent 72%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 40%, var(--sky-2) 66%, var(--sky-3) 84%);
}
.case-hero__land {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 34%; display: block;
}
.case-hero__land path:nth-child(1) { fill: rgb(var(--land-ink-rgb) / .55); }
.case-hero__land path:nth-child(2) { fill: var(--land-near); }
.case-hero::after {
  /* the page continues below in the same dark */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--night));
}

.case-hero .fly { position: absolute; z-index: -1; }
.fly {
  --s: 4rem;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: radial-gradient(closest-side,
    rgb(var(--fly-hot)) 0, rgb(var(--fly-hot) / .9) 1.6%, rgb(var(--fly-c) / .6) 3.4%,
    rgb(var(--glow-rgb) / .34) 7%, rgb(var(--glow-rgb) / .16) 14%, rgb(var(--glow-rgb) / .06) 28%,
    rgb(var(--glow-rgb) / .015) 56%, rgb(var(--glow-rgb) / 0) 100%);
  opacity: .25;
  animation: fly-pulse var(--t, 3s) ease-out var(--d, 0s) infinite;
}
@keyframes fly-pulse { 0% { opacity: .1; } 10% { opacity: 1; } 45% { opacity: .45; } 75%, 100% { opacity: .1; } }

.case-hero__text { max-width: 60rem; }
@media (max-width: 640px) { .case-hero { min-height: 0; padding-top: 12rem; } }
.case-hero .label { margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.case-hero h1 {
  max-width: 15ch; text-wrap: balance;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  font-weight: 600; line-height: .95; letter-spacing: -.045em;
}
.case-hero h1 em {
  font-style: normal; color: var(--glow);
  text-shadow: 0 0 .5em rgb(var(--glow-rgb) / .3), 0 0 1.4em rgb(var(--glow-rgb) / .16);
}
.case-hero__lede {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.4; letter-spacing: -.01em;
  color: var(--paper);
  text-wrap: balance;
}
.case-hero__who {
  margin-top: 1rem;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  color: var(--mist);
}

/* ---- Facts: what one SKU gets ---- */

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
  border-bottom: 1px solid rgb(var(--paper-rgb) / .12);
}
.fact { padding: clamp(1.3rem, 3vw, 2rem) clamp(.8rem, 2vw, 1.6rem); }
.fact + .fact { border-left: 1px solid rgb(var(--paper-rgb) / .12); }
.fact__n {
  display: block; white-space: nowrap;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 600; line-height: 1; letter-spacing: -.04em;
  color: var(--glow);
}
.fact__n small { font-size: .45em; letter-spacing: -.01em; margin-left: .12em; }
.fact__what { display: block; margin-top: .7rem; font-size: .92rem; line-height: 1.4; color: var(--mist); }

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid rgb(var(--paper-rgb) / .12); }
}

/* ---- Sections ---- */

.sect { padding-block: clamp(4.5rem, 12vh, 8rem); }
.sect .label { margin-bottom: clamp(1.1rem, 2.6vh, 1.8rem); }
.sect__title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -.034em;
  text-wrap: balance;
}
.sect__body {
  margin-top: clamp(1.1rem, 2.6vh, 1.6rem);
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.6;
  color: var(--mist);
}
.sect__body + .sect__body { margin-top: 1rem; }
.sect__body strong { font-weight: 500; color: var(--paper); }

/* ---- Steps ---- */

.steps {
  list-style: none; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem);
}
.step {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid rgb(var(--paper-rgb) / .12); border-radius: 1rem;
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / .035), rgb(var(--paper-rgb) / .01));
}
.step__num { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; color: var(--glow); }
.step h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em;
}
.step p { margin-top: .8rem; font-size: 1rem; line-height: 1.6; color: var(--mist); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* ---- Hero: the title on the left, three images from the listing fanned on the right ---- */

.case-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fan { position: relative; aspect-ratio: 1.1; width: 100%; max-width: 34rem; justify-self: end; }
.fan__card {
  position: absolute; width: 62%; height: auto; aspect-ratio: 1;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(var(--paper-rgb) / .08);
}
.fan__card--l { left: 0; top: 12%; transform: rotate(-8deg); filter: brightness(.82); }
.fan__card--r { right: 0; top: 12%; transform: rotate(8deg); filter: brightness(.82); }
.fan__card--c {
  left: 19%; top: 0; z-index: 1;
  box-shadow: 0 34px 90px rgb(0 0 0 / .6), 0 0 0 1px rgb(var(--glow-rgb) / .35), 0 0 80px rgb(var(--glow-rgb) / .18);
}
@media (max-width: 899px) {
  .case-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .fan { justify-self: center; width: 84%; max-width: 24rem; margin-top: .5rem; }
}

.flow__head { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 1rem; }

/* ---- The listing showcase: one big image, its nine thumbnails, the title and the plan ---- */

.showcase {
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 3.5rem);
  padding: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid rgb(var(--paper-rgb) / .12); border-radius: 1.4rem;
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / .035), rgb(var(--paper-rgb) / .01));
}
.showcase__main { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: .9rem; background: #f3ead9; }
.showcase__thumbs { margin-top: .7rem; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .4rem; }
.showcase__thumbs button {
  padding: 0; border: 0; border-radius: .4rem; background: none; cursor: pointer;
  overflow: hidden; opacity: .55;
  outline: 2px solid transparent; outline-offset: 1px;
  transition: opacity .3s, outline-color .3s;
}
.showcase__thumbs button:hover { opacity: .9; }
.showcase__thumbs button[aria-pressed="true"] { opacity: 1; outline-color: var(--glow); }
.showcase__thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.showcase__side { padding-top: .4rem; }
.showcase__title { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 2rem; }
.roles { list-style: none; margin: 0; padding: 0; counter-reset: role; }
.roles li {
  counter-increment: role;
  display: grid; grid-template-columns: 1.6rem 6.4rem 1fr; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid rgb(var(--paper-rgb) / .07);
  font-size: .92rem; color: var(--mist);
  transition: color .3s;
}
.roles li::before { content: counter(role, decimal-leading-zero); font: 500 .66rem/1 var(--mono); color: rgb(var(--paper-rgb) / .35); }
.roles b { font-weight: 500; color: rgb(var(--paper-rgb) / .8); }
.roles li.is-on { color: var(--paper); }
.roles li.is-on::before, .roles li.is-on b { color: var(--glow); }
.showcase figcaption { grid-column: 1 / -1; font-size: .88rem; color: var(--mist); }
@media (max-width: 899px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase__thumbs { display: flex; overflow-x: auto; padding: 3px; margin-inline: -3px; }
  .showcase__thumbs button { flex: none; width: 3.8rem; }
}

/* ---- A real A/B test ---- */

.abtest { margin-top: clamp(3rem, 7vh, 4.5rem); }
.abtest__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.abtest__pair { max-width: 62rem; margin-top: 1.6rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); }
.arm { margin: 0; }
.arm img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: .9rem; box-shadow: 0 0 0 1px rgb(var(--paper-rgb) / .1); }
.arm--b img { box-shadow: 0 0 0 1px rgb(var(--glow-rgb) / .5), 0 0 60px rgb(var(--glow-rgb) / .14); }
.arm figcaption { margin-top: .8rem; display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--paper); }
.arm__tag {
  flex: none; padding: .35em .55em; border-radius: .35em;
  font: 500 .6rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist); background: rgb(var(--paper-rgb) / .08);
}
.arm__tag--b { color: var(--ink); background: var(--glow); }
.abtest__vs { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.abtest__why {
  margin: 1.8rem 0 0; padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--glow);
  max-width: 62ch;
}
.abtest__why p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; letter-spacing: -.01em; }
.abtest__why footer { margin-top: .7rem; font-size: .86rem; color: var(--mist); }
.abtest__titles { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgb(var(--paper-rgb) / .12); }
.tline { display: flex; align-items: baseline; gap: .8rem; padding: .55rem 0; font-size: .98rem; line-height: 1.45; }
.tline mark { background: rgb(var(--glow-rgb) / .2); color: var(--glow); padding: 0 .2em; border-radius: .2em; }
.tline__why { margin-top: .6rem; font-size: .9rem; color: var(--mist); }
@media (max-width: 640px) {
  .abtest__pair { grid-template-columns: 1fr 1fr; }
  .abtest__vs { display: none; }
  .tline { flex-direction: column; gap: .4rem; }
  .arm figcaption { flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .88rem; }
}

/* ---- Case details, beside the title ---- */

.case-meta {
  margin: clamp(2.2rem, 5vh, 3.2rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem clamp(1rem, 2.4vw, 2rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgb(var(--paper-rgb) / .14);
}
.case-meta dt { font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.case-meta dd { margin: .55rem 0 0; font-size: .98rem; line-height: 1.4; }
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.facts__note { margin-top: .9rem; font-size: .84rem; color: var(--mist); }
.facts__note a, .method a { color: var(--paper); text-decoration: underline; text-decoration-color: rgb(var(--glow-rgb) / .6); text-underline-offset: .2em; }
.facts__note a:hover { color: var(--glow); }

/* a heading on the left, its text on the right */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.4rem, 5vw, 5rem); align-items: start; }
.split .sect__body:first-child { margin-top: 0; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* ---- The challenge: three problems ---- */

.pains {
  list-style: none; margin: clamp(2.2rem, 5vh, 3.2rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem);
}
.pains li { padding-top: 1.2rem; border-top: 2px solid rgb(var(--paper-rgb) / .18); }
.pains h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; }
.pains p { margin-top: .6rem; font-size: 1rem; line-height: 1.6; color: var(--mist); }
@media (max-width: 899px) { .pains { grid-template-columns: 1fr; } }

.steps--plain .step { background: none; }

/* ---- The results chart: time per step, by hand against Firefly Commerce ----
   A real table drawn as bars, so the numbers are also there to read. --v is minutes;
   the longest step (8 h = 480 min) fills the cell. */

.chart { margin: clamp(2.5rem, 6vh, 4rem) 0 0; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .8rem 2rem; margin-bottom: 1.2rem; }
.chart__title { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.legend { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--mist); }
.legend__key { width: .8rem; height: .8rem; border-radius: 3px; }
.legend .legend__key:nth-of-type(2) { margin-left: .9rem; }
.legend__key--hand, .bar--hand { background: #8a8073; }
.legend__key--ff, .bar--ff { background: var(--glow); }

.chart__scroll { overflow-x: auto; }
.bars { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .92rem; }
.bars thead th {
  padding: 0 0 .7rem; text-align: left;
  font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
}
.bars tbody th, .bars tfoot th { padding: .85rem 1.4rem .85rem 0; text-align: left; font-weight: 400; color: var(--paper); }
.bars td { padding: .85rem 1.2rem .85rem 0; white-space: nowrap; }
.bars td:nth-child(2) { width: 24rem; }
.bars tbody tr { border-top: 1px solid rgb(var(--paper-rgb) / .08); }
.bars tfoot tr { border-top: 1px solid rgb(var(--paper-rgb) / .22); }
.bars tfoot th, .bars tfoot .bar__v { font-weight: 600; color: var(--paper); }
.bar {
  display: inline-block; vertical-align: middle;
  height: .7rem; min-width: 4px;
  width: calc(var(--v) * 20rem / 480);   /* one scale for both columns: 8 h is 20rem */
  border-radius: 0 4px 4px 0;
}
.bar__v { display: inline-block; vertical-align: middle; margin-left: .6rem; font-variant-numeric: tabular-nums; color: var(--paper); }

/* ---- 50 SKUs ---- */

.range {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgb(var(--glow-rgb) / .35); border-radius: 1rem;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgb(var(--glow-rgb) / .08), transparent 70%);
}
.range__k { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.range__row { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.range__n { display: block; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--glow); }
.range__n--hand { color: rgb(var(--paper-rgb) / .5); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgb(var(--paper-rgb) / .35); }
.range__what { display: block; margin-top: .6rem; font-size: .98rem; line-height: 1.45; color: var(--mist); }
@media (max-width: 640px) { .range__row { grid-template-columns: 1fr; } }

/* ---- What's next ---- */

.next { list-style: none; margin: 0; padding: 0; }
.next li { padding: 1rem 0; border-bottom: 1px solid rgb(var(--paper-rgb) / .1); font-size: 1.02rem; line-height: 1.55; color: var(--mist); }
.next li:first-child { padding-top: 0; }
.next b { font-weight: 600; color: var(--paper); }

/* ---- How we estimated ---- */

.sect--method { padding-block: 0 clamp(2rem, 5vh, 3rem); }
.method { max-width: 78ch; font-size: .9rem; line-height: 1.65; color: var(--mist); }

/* ---- How it's built ---- */

.built {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(1.6rem, 4vh, 2.4rem);
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
}
.built h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.built p { margin-top: .55rem; font-size: .96rem; line-height: 1.6; color: var(--mist); }
@media (max-width: 899px) { .built { grid-template-columns: 1fr; } }

/* ---- Close ---- */

.case-close {
  padding-block: clamp(5rem, 14vh, 9rem) clamp(1.1rem, 3.2vh, 2rem);
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgb(var(--dawn-a-rgb) / .12), transparent 70%);
}
.case-close h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.more { margin-top: clamp(3rem, 8vh, 5rem); display: grid; justify-items: center; gap: 1rem; }
.more__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.more__item {
  display: grid; gap: .25rem; text-align: left;
  min-width: min(17rem, 100%); padding: 1rem 1.2rem;
  border: 1px solid rgb(var(--paper-rgb) / .12); border-radius: .9rem;
}
.more__item b { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: rgb(var(--paper-rgb) / .7); }
.more__item span { font-size: .86rem; color: rgb(var(--paper-rgb) / .45); }
.case-close .foot { margin-top: clamp(4rem, 12vh, 7rem); }

@media (prefers-reduced-motion: reduce) {
  .fly { animation: none; opacity: .7; }
}

/* ---- Four steps, and the Shopee section ---- */

.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps--four { grid-template-columns: minmax(0, 1fr); } }

.onshop {
  margin-top: clamp(3.5rem, 8vh, 5rem); padding-top: clamp(2.5rem, 6vh, 3.5rem);
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.onshop__list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.onshop__list li { padding: .9rem 0; border-bottom: 1px solid rgb(var(--paper-rgb) / .08); font-size: .98rem; line-height: 1.55; color: var(--mist); }
.onshop__list b { display: block; margin-bottom: .2rem; font-weight: 600; color: var(--paper); }
.onshop__proof { margin-top: 2rem; font-size: 1rem; color: var(--mist); }
.onshop__proof b { font-weight: 600; color: var(--glow); }
@media (max-width: 899px) { .onshop { grid-template-columns: minmax(0, 1fr); } }

/* the update screen, drawn: a light card, like the app it stands for */
.sync { margin: 0; }
.sync__card {
  padding: 1.2rem; border-radius: 1rem;
  background: #fbf7ef; color: #1f1a14;
  box-shadow: 0 30px 80px rgb(0 0 0 / .5), 0 0 0 1px rgb(var(--glow-rgb) / .3), 0 0 70px rgb(var(--glow-rgb) / .12);
}
.sync__head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid #e6dccb; }
.sync__head img { width: 3rem; height: 3rem; border-radius: .5rem; }
.sync__name { font-weight: 600; font-size: .98rem; }
.sync__state { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; font-size: .8rem; color: #6b6255; }
.sync__state i { width: .5rem; height: .5rem; border-radius: 50%; background: #2f9e5b; }
.sync__row { padding: .85rem 0; border-bottom: 1px solid #efe6d6; }
.sync__row label { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.sync__row input { accent-color: #b97a1c; margin: 0; }
.sync__old, .sync__new { margin-top: .4rem; padding-left: 1.5rem; font-size: .84rem; line-height: 1.45; }
.sync__old { color: #8a8073; text-decoration: line-through; text-decoration-color: rgb(138 128 115 / .6); }
.sync__new { color: #1f1a14; }
.sync__new mark { background: #ffe2a3; color: #5a3a08; padding: 0 .2em; border-radius: .2em; }
.sync__row:nth-of-type(4) .sync__old { text-decoration: none; }
.sync__btn {
  margin-top: 1rem; padding: .75rem 1rem; border-radius: .6rem; text-align: center;
  background: #1f1a14; color: #ffc758; font-weight: 500; font-size: .9rem;
}
.sync figcaption { margin-top: 1rem; font-size: .86rem; color: var(--mist); }

/* a solution that has its page is a link in the closing list */
a.more__item--link b { color: var(--paper); }
a.more__item--link span { color: var(--mist); }
a.more__item--link { transition: border-color .3s; }
a.more__item--link:hover, a.more__item--link:focus-visible { border-color: rgb(var(--glow-rgb) / .6); }
a.more__item--link:hover b { color: var(--glow); }

/* ---- Screens of the product, in a browser frame (Commerce and Social) ---- */

.sbrowser { border-radius: .9rem; overflow: hidden; background: #15120e; box-shadow: 0 30px 80px rgb(0 0 0 / .5), 0 0 0 1px rgb(var(--paper-rgb) / .12); }
.sbrowser__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: #1f1a14; border-bottom: 1px solid rgb(var(--paper-rgb) / .08); }
.sbrowser__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: rgb(var(--paper-rgb) / .18); }
.sbrowser__bar span { margin-left: .6rem; font: 500 .66rem/1 var(--mono); letter-spacing: .08em; color: var(--mist); }
.sbrowser img { display: block; width: 100%; height: auto; }
figure.sbrowser { margin: 0; }

.inapp { margin-top: clamp(3rem, 7vh, 4.5rem); }
.inapp__title { max-width: 30ch; margin-bottom: 1.4rem; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }

.inapp__note { margin-top: 1rem; font-size: .86rem; color: var(--mist); }
/* a light app on the dark page: a darker frame keeps the edge */
.sbrowser--light { box-shadow: 0 30px 80px rgb(0 0 0 / .5), 0 0 0 1px rgb(var(--paper-rgb) / .18); }

.pair-real { margin-top: clamp(3rem, 7vh, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.pair-real figure { margin: 0; }
.pair-real figcaption { margin-top: .9rem; font-size: .92rem; line-height: 1.5; color: var(--mist); }
.pair-real figcaption b { display: block; font-weight: 600; color: var(--paper); }
@media (max-width: 899px) { .pair-real { grid-template-columns: minmax(0, 1fr); } }

/* ---- Short case studies: tighter sections, one-line steps, a one-line footnote ---- */

.sect--tight { padding-block: clamp(3rem, 8vh, 5rem); }
.sect--tight .split { align-items: end; }
.sect--tight .split .sect__body { margin-top: 0; }
.steps--short .step { padding: 1.2rem 1.3rem; }
.steps--short .step p { margin-top: .55rem; font-size: 1rem; line-height: 1.5; color: var(--paper); }
.footnote { margin-top: 1rem; font-size: .84rem; color: var(--mist); }
.range__row p { margin: 0; }
.abtest__pair { max-width: 44rem; }
