/* A chapter's words: what it is about and who it is for, a bold statement with its points, the control the
   scroll moves through, and how to get the app. Bold words carry the message; the rest supports them. */
/* the column sits between the nav and the rail, and everything in it scales with the window */
.ch {
  position: absolute; top: 72px; bottom: 64px; left: clamp(28px, 6.4vw, calc(120 * var(--u))); width: clamp(360px, 36vw, calc(540 * var(--u))); z-index: 5;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.6vh, calc(26 * var(--u))); visibility: hidden;
}
.ch[data-side="right"] { left: auto; right: clamp(28px, 6.4vw, calc(120 * var(--u))); }
.ch-head { display: flex; align-items: center; gap: 13px; }
.ch-glyph {
  width: clamp(40px, 5.6vh, calc(48 * var(--u))); height: clamp(40px, 5.6vh, calc(48 * var(--u))); border-radius: 30%; display: grid; place-items: center;
  color: #fff; background: var(--acc, var(--orange)); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.38);
}
.ch-glyph .i { width: 52%; height: 52%; }
.ch-head p { display: flex; flex-direction: column; gap: 2px; }
.ch-head b { font-size: calc(19 * var(--u)); font-weight: 760; letter-spacing: -0.012em; }
.ch-head span { font-size: calc(14 * var(--u)); font-weight: 560; color: var(--ink-3); text-wrap: pretty; }

.ch-stmts { position: relative; width: 100%; }
.stmt { position: absolute; inset: 0; visibility: hidden; }
.stmt h2 {
  font-size: clamp(32px, min(3.85vw, 6.3vh), calc(68 * var(--u))); font-weight: 840; font-stretch: 125%; line-height: 0.98; letter-spacing: -0.036em;
  margin-bottom: clamp(12px, 2.5vh, calc(30 * var(--u))); text-wrap: balance;
}
.stmt h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.stmt h2 .w > span { display: inline-block; will-change: transform, opacity; }
.stmt ul { list-style: none; display: grid; gap: clamp(9px, 1.7vh, calc(18 * var(--u))); }
.stmt li { --ic: clamp(32px, 4.6vh, calc(40 * var(--u))); display: grid; grid-template-columns: var(--ic) minmax(0, 1fr); gap: clamp(11px, 1.1vw, calc(15 * var(--u))); align-items: start; will-change: transform, opacity; }
.pt-ic {
  width: var(--ic); height: var(--ic); border-radius: 30%; display: grid; place-items: center; color: var(--acc);
  background: color-mix(in oklab, var(--acc) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--acc) 22%, transparent);
}
.pt-ic .i { width: 52%; height: 52%; }
.stmt li p {
  --fs: clamp(14px, min(1.15vw, 2.1vh), calc(18 * var(--u))); padding-top: calc((var(--ic) - var(--fs) * 1.42) / 2); font-size: var(--fs); line-height: 1.42;
  color: rgba(var(--ink-rgb), var(--soft)); font-weight: 420; text-wrap: pretty;
}
.stmt li b { color: var(--ink); font-weight: 680; }

.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); }
.seg-thumb { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: var(--thumb); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.seg { --sh: clamp(32px, 4.6vh, calc(38 * var(--u))); --sp: clamp(9px, 1.05vw, calc(16 * var(--u))); --segf: clamp(12.5px, 1.02vw, calc(14.5 * var(--u))); max-width: 100%; }
.seg button { position: relative; z-index: 1; height: var(--sh); padding: 0 var(--sp); border-radius: 999px; font-size: var(--segf); font-weight: 620; white-space: nowrap; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg-ink { position: absolute; inset: 0; z-index: 2; display: flex; padding: 4px; pointer-events: none; }
.seg-ink span { height: var(--sh); padding: 0 var(--sp); display: grid; place-items: center; font-size: var(--segf); font-weight: 620; white-space: nowrap; color: var(--thumb-ink); }

.ch-get { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-get small { font-size: calc(13 * var(--u)); color: var(--ink-3); max-width: 26ch; line-height: 1.35; text-wrap: pretty; }
/* the official badge; on light rooms it keeps its own black, on dark ones a hairline of light lifts it */
.badge { display: inline-block; border-radius: 10px; }
.badge img { width: clamp(126px, 10.4vw, calc(150 * var(--u))); height: auto; }
body[data-tone="dark"] .badge img { filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.5)); }
.badge:hover img { transform: translateY(-1px); }
.pt-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--acc) 70%, transparent); text-underline-offset: 3px; white-space: nowrap; }
.pt-link:hover { text-decoration-color: var(--acc); }
