/* c-design.css: shared layer for design C, "Instrument".
   Source of truth for the look: docs/plans/feat-landing-redesign/v2/c.html, c-home.html,
   c-guide.html, c-tool.html. How to use it: docs/plans/feat-landing-redesign/v2/IMPLEMENTATION.md.
   Markup helpers (header, mobile menu, arc-line script): scripts/lib/c-chrome.js.

   Load order on a page:
     <link rel="preconnect" href="https://fonts.googleapis.com" />
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&display=swap" />
     <link rel="stylesheet" href="/c-design.css?v=2" />
     <style> page-only sections </style>
   Set <html lang="en" data-theme="dark"> so the shared .mrf-footer uses its dark variant. */

/* ============ Tokens ============ */
:root {
  --base-l: 18;
  --base: hsl(216 8% calc(var(--base-l) * 1%));
  --panel: hsl(216 8% calc((var(--base-l) + 4.5) * 1%));
  --panel-2: hsl(216 8% calc((var(--base-l) + 8) * 1%));
  --edge: rgba(255, 255, 255, 0.09);
  --edge-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f2f0;
  --dim: #b5b8b3;
  --soft: #8b9095;
  --accent: #eab308;
  --data: #7fd1e0;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --d-wght: 700;
  --d-wdth: 90;
  --fs: 18px;
  --radius: 10px;
  --phone-w-desk: 320px;
  --paper: #f3f4f2;
  --measure: 66ch;
  --lh: 1.7;
  --speed: 1;
  --space: 1;
  --arc: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}
@media (max-width: 700px) {
  :root {
    --arc: 32px;
  }
}

/* ============ Base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: var(--fs);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  background: var(--accent);
  color: #17181a;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ============ Type ============ */
.display {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(42px, 5.2vw, 82px);
  max-width: 11em;
}
.h2 {
  font-size: clamp(38px, 4.6vw, 68px);
  max-width: 13em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.lead {
  color: var(--dim);
  font-size: calc(var(--fs) * 1.08);
  max-width: 32em;
}
.fine {
  font-size: 14px;
  color: var(--soft);
  margin-top: 14px;
}
@media (max-width: 1000px) {
  .h1 {
    font-size: clamp(40px, 10.6vw, 68px);
  }
}

/* ============ Layout ============ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec {
  padding-top: calc(clamp(80px, 13vh, 150px) * var(--space));
  padding-bottom: calc(clamp(80px, 13vh, 150px) * var(--space));
}
/* First section after a .light one: room for the arc that hangs below it. */
.after-light {
  padding-top: calc(clamp(80px, 13vh, 150px) * var(--space) + var(--arc) * 0.5);
}
/* Page top: clears the fixed header. */
.page-top {
  padding-top: clamp(124px, 18vh, 180px);
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #17181a;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 24px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  border-radius: calc(var(--radius) * 0.6);
  transition:
    transform 120ms ease,
    filter 120ms ease;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 15px;
}
/* Secondary action: outlined, same size as .btn. */
.btn-line {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--edge-strong);
}
.btn-line:hover {
  filter: none;
  box-shadow: inset 0 0 0 1.5px var(--text);
}
/* Quiet text link next to a button. */
.more {
  color: var(--dim);
  font-size: 16px;
  text-underline-offset: 5px;
  text-decoration-color: var(--edge-strong);
}
.more:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* ============ Header + mobile menu ============ */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--base) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.brand {
  flex: none;
}
.brand img {
  height: 98px;
  width: auto; max-width: none; flex: none;
  margin: -24px -220px -10px -28px; /* the SVG box is mostly empty: crop to the wordmark */
}
.top nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  margin-left: auto;
}
.top nav a,
.top .login {
  text-decoration: none;
  color: var(--dim);
  font-size: 15px;
}
.top nav a:hover,
.top .login:hover,
.top nav a[aria-current] {
  color: var(--text);
}
.top nav.lang {
  margin-left: 0;
}
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--edge);
  border-radius: 999px;
}
.top .lang a,
.lang a {
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1;
  color: var(--soft);
  padding: 6px 8px;
  border-radius: 999px;
}
.lang a:hover {
  color: var(--text);
}
.top .lang a[aria-current],
.lang a[aria-current] {
  background: var(--panel-2);
  color: var(--text);
}
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--base);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 84px var(--gutter) 32px;
  overflow-y: auto;
}
.menu > a {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: 38px;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
}
.menu > a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.menu .btn {
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
  font-variation-settings: normal;
  line-height: 1.2;
  color: #17181a;
  margin-top: 24px;
  align-self: flex-start;
}
.menu .lang {
  align-self: flex-start;
  margin-top: 22px;
}
.menu .lang a {
  font-size: 15px;
  padding: 9px 12px;
}
.menu-close {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
body.menu-open .menu {
  display: flex;
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 1060px) {
  .top nav,
  .top .login,
  .top > .lang,
  .top > .btn {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* ============ Panels (raised readouts) ============ */
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px -24px rgba(0, 0, 0, 0.55);
}
.panel-label {
  font-size: 13px;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
/* Big number inside a panel: <div class="readout"><b>62</b><span>ms</span></div> */
.readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}
.readout b {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: 48px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.readout span {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

/* ============ Light sections ============
   <section class="sec wrap light">. Cool white paper, full bleed via border-image,
   curved top and bottom edges (masks), and a yellow arc line drawn along the top edge
   when the section enters the viewport (the line is injected by chromeScript()). */
.light {
  --text: #1b1e22;
  --dim: #474c52;
  --soft: #6a6f75;
  --edge: rgba(20, 24, 28, 0.12);
  --edge-strong: rgba(20, 24, 28, 0.24);
  --panel: #ffffff;
  --panel-2: #e9ebe8;
  --data: #1c8299;
  background: var(--paper);
  color: var(--text);
  border-image: linear-gradient(var(--paper), var(--paper)) fill 0 / 0 / 0
    100vmax;
  position: relative;
}
.light .panel {
  box-shadow:
    0 1px 2px rgba(20, 24, 28, 0.06),
    0 22px 44px -22px rgba(20, 24, 28, 0.32);
}
.light :focus-visible {
  outline-color: var(--text);
}
.light .phone {
  --phone-frame: #1d1e21;
}
.light .btn-line:hover {
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.light::before,
.light::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: var(--arc);
  transform: translateX(-50%);
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 72' preserveAspectRatio='none'%3E%3Cpath d='M0 72 C 260 4, 740 4, 1000 72 Z'/%3E%3C/svg%3E")
    0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 72' preserveAspectRatio='none'%3E%3Cpath d='M0 72 C 260 4, 740 4, 1000 72 Z'/%3E%3C/svg%3E")
    0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
.light::before {
  bottom: calc(100% - 1px);
}
.light::after {
  top: calc(100% - 1px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 72' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 260 68, 740 68, 1000 0 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 72' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 260 68, 740 68, 1000 0 Z'/%3E%3C/svg%3E");
}
.arc-line {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 100vw;
  height: var(--arc);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.arc-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(1.4s / var(--speed))
    cubic-bezier(0.45, 0, 0.2, 1);
}
.light.seen .arc-line path {
  stroke-dashoffset: 0;
}

/* ============ Photos (duotone by default) ============
   <figure class="photo"><img src="/images/..." alt="..." /></figure>
   Opt out per photo with .photo--natural, or for the page with <html data-photo="natural">. */
.photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: color-mix(in srgb, var(--accent) 62%, #f4efe0);
  isolation: isolate;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.75);
  mix-blend-mode: multiply;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--base);
  mix-blend-mode: lighten;
  pointer-events: none;
}
[data-photo="natural"] .photo,
.photo.photo--natural {
  background: var(--base);
}
[data-photo="natural"] .photo img,
.photo.photo--natural img {
  filter: none;
  mix-blend-mode: normal;
}
[data-photo="natural"] .photo::after,
.photo.photo--natural::after {
  content: none;
}

/* Closing band with a full-bleed photo behind the final CTA.
   <section class="close"><figure class="photo">...</figure><div class="shade"></div>
   <div class="wrap"><h2 class="display">...</h2><p>...</p><a class="btn">...</a></div></section> */
.close {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
}
.close .photo {
  position: absolute;
  inset: 0;
  margin: 0;
}
.close .photo img {
  object-position: 50% 40%;
}
.close .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--base) 88%, transparent) 0%,
    color-mix(in srgb, var(--base) 40%, transparent) 60%,
    transparent 100%
  );
}
.close .wrap {
  position: relative;
  width: 100%;
}
.close h2 {
  font-size: clamp(48px, 7.6vw, 116px);
  max-width: 8.5em;
}
.close p {
  color: var(--dim);
  max-width: 28em;
  margin: 24px 0 30px;
}
@media (max-width: 700px) {
  .close .shade {
    background: color-mix(in srgb, var(--base) 72%, transparent);
  }
}

/* Photo credit line, placed right before the footer. */
.photo-credit {
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--soft);
}
.photo-credit a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ============ Phone frame (copy of v2/shared/phone.css) ============
   Real app screenshots, 1290 x 2796 (iPhone 15 Pro Max ratio). Size with --phone-w.
   <div class="phone"><img src="/images/.../coach-chat.webp" alt="..." /></div>
   Variants: .phone--tilt, .phone--flat, .phone--light. */
.phone {
  --phone-w: 300px;
  --phone-frame: #1d1e21;
  --phone-edge: #3a3c40;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 1290 / 2796;
  box-sizing: content-box;
  padding: calc(var(--phone-w) * 0.034);
  border-radius: calc(var(--phone-w) * 0.17);
  background: var(--phone-frame);
  box-shadow:
    inset 0 0 0 1.5px var(--phone-edge),
    inset 0 0 0 calc(var(--phone-w) * 0.012) var(--phone-frame),
    0 40px 80px -20px rgba(0, 0, 0, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(var(--phone-w) * 0.062);
  left: 50%;
  width: calc(var(--phone-w) * 0.3);
  height: calc(var(--phone-w) * 0.088);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone > img,
.phone > .phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--phone-w) * 0.135);
  overflow: hidden;
  background: #0b0b0b;
}
.phone--flat {
  box-shadow:
    inset 0 0 0 1.5px var(--phone-edge),
    inset 0 0 0 calc(var(--phone-w) * 0.012) var(--phone-frame);
}
.phone--light {
  --phone-frame: #d9dad6;
  --phone-edge: #b9bab5;
}
.phone--tilt {
  transform: perspective(1600px) rotateY(-14deg) rotateX(4deg);
}

/* ============ FAQ (details/summary) ============
   <div class="faq"><details><summary>Question</summary><p>Answer</p></details>...</div> */
.faq {
  border-bottom: 1px solid var(--edge);
}
.faq details {
  border-top: 1px solid var(--edge);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  font-size: calc(var(--fs) * 1.04);
  font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--text), var(--text)) center / 14px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 14px no-repeat;
  transition: transform 220ms ease;
  transform: translateY(1px);
}
.faq details[open] summary::after {
  transform: translateY(1px) rotate(45deg);
}
.faq summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.faq details p,
.faq details ul,
.faq details ol {
  margin: -4px 0 22px;
  max-width: 38em;
  color: var(--dim);
}
.faq details p + p {
  margin-top: 0;
}
.faq details[open] {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 16px;
}
/* Two-column FAQ: heading on the left (sticky), questions on the right. */
.faqs {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faqs .side {
  position: sticky;
  top: 120px;
}
.faqs .side p {
  color: var(--dim);
  margin: 22px 0 0;
}
@media (max-width: 860px) {
  .faqs {
    grid-template-columns: minmax(0, 1fr);
  }
  .faqs .side {
    position: static;
  }
}

/* ============ Tables ============
   Plain <table class="table"> anywhere, or any table inside .prose.
   Wrap wide tables in <div class="table-wrap"> so they scroll inside, not the page. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.4em;
}
.table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 1.4em;
}
.table-wrap > .table,
.table-wrap > table {
  margin: 0;
}
.table th,
.prose th {
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  color: var(--soft);
  padding: 0 14px 8px 0;
  vertical-align: bottom;
}
.table td,
.prose td {
  padding: 11px 14px 11px 0;
  border-top: 1px solid var(--edge);
  color: var(--text);
  vertical-align: baseline;
}
.table tbody tr:last-child td,
.prose tbody tr:last-child td {
  border-bottom: 1px solid var(--edge);
}
.table td:first-child,
.prose td:first-child {
  font-weight: 600;
}
.table caption,
.prose caption {
  caption-side: bottom;
  text-align: left;
  font-size: 14px;
  color: var(--soft);
  padding-top: 10px;
}

/* ============ Breadcrumb ============
   <nav class="crumbs" aria-label="Breadcrumb"><ol><li><a href="/guides">Guides</a></li>...</ol></nav> */
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--soft);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--edge-strong);
}
.crumbs a {
  color: var(--dim);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumbs [aria-current] {
  color: var(--soft);
}
/* Meta row under a guide H1 (read time, updated, author). */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--soft);
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta svg {
  flex: none;
}

/* ============ Article (long text) ============
   <section class="sec wrap light article"><nav class="toc">...</nav><article class="prose">...</article></section>
   Without a TOC, use <section class="sec wrap light article article--solo">. */
.article {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--measure));
  gap: clamp(40px, 6vw, 104px);
  justify-content: center;
}
.article--solo {
  grid-template-columns: minmax(0, var(--measure));
}
.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  font-size: 15px;
}
.toc-title {
  font-size: 14px;
  color: var(--soft);
  margin: 0 0 14px;
  font-weight: 400;
}
.toc-body {
  position: relative;
  padding-left: 18px;
}
.toc-rail {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--edge);
  border-radius: 2px;
  overflow: hidden;
}
.toc-rail i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--read, 0));
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li a {
  display: block;
  padding: 6px 0;
  color: var(--soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color 150ms ease;
}
.toc li a:hover {
  color: var(--text);
}
.toc li a[aria-current="true"] {
  color: var(--text);
  font-weight: 650;
}
.toc-mobile {
  display: none;
}

.prose {
  min-width: 0;
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--dim);
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose .intro p:first-child,
.prose > p.intro {
  font-size: calc(var(--fs) * 1.14);
  line-height: 1.6;
  color: var(--text);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.4em 0 0.7em;
  text-wrap: balance;
}
.prose h3 {
  font-size: calc(var(--fs) * 1.1);
  font-weight: 650;
  color: var(--text);
  margin: 1.8em 0 0.4em;
  line-height: 1.3;
}
.prose h4 {
  font-size: var(--fs);
  font-weight: 650;
  color: var(--text);
  margin: 1.5em 0 0.3em;
}
.prose strong {
  color: var(--text);
  font-weight: 650;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 90%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background-color 150ms ease;
}
.prose a:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.prose ul {
  list-style: none;
  margin: 0 0 1.3em;
  padding: 0;
}
.prose ul li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--edge);
}
.prose ul li:last-child {
  border-bottom: 1px solid var(--edge);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(10px + 0.5lh - 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 2px solid var(--data);
}
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}
.prose ol li {
  padding: 4px 0 4px 4px;
}
.prose ol li::marker {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.prose blockquote {
  margin: 2em 0 2.2em;
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.prose blockquote p {
  margin: 0;
}
.prose figure {
  margin: 1.8em 0;
}
.prose figure img {
  border-radius: var(--radius);
}
.prose figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--soft);
}
.prose code {
  font-size: 0.9em;
  background: var(--panel-2);
  border-radius: 4px;
  padding: 1px 5px;
}
.prose .callout {
  margin: 1.6em 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--accent);
}
.prose .callout > :last-child {
  margin-bottom: 0;
}
@media (max-width: 1000px) {
  .article,
  .article--solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(var(--measure) + 2 * var(--gutter));
  }
  .toc {
    display: none;
  }
  .toc-mobile {
    display: block;
    margin: 0 0 36px;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background: var(--panel);
  }
  .toc-mobile summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .toc-mobile summary::-webkit-details-marker {
    display: none;
  }
  .toc-mobile summary svg {
    transition: transform 150ms ease;
  }
  .toc-mobile[open] summary svg {
    transform: rotate(180deg);
  }
  .toc-mobile ol {
    margin: 0;
    padding: 0 16px 12px 34px;
    color: var(--soft);
  }
  .toc-mobile li {
    padding: 5px 0;
  }
  .toc-mobile a {
    color: var(--dim);
    text-decoration: none;
  }
}

/* ============ Related reading ============
   <ul class="rel"><li><a href="..."><b>Title</b><span>One line</span><em>Guide</em></a></li>...</ul>
   The first item is the large one. */
.rel {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0 48px;
}
.rel li:first-child {
  grid-row: span 4;
}
.rel a {
  display: block;
  text-decoration: none;
  padding: 18px 0;
  border-top: 1px solid var(--edge);
  height: 100%;
}
.rel b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.rel span {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
  display: block;
}
.rel em {
  font-style: normal;
  font-size: 13.5px;
  color: var(--soft);
  display: block;
  margin-top: 8px;
}
.rel li:first-child a {
  padding-top: 22px;
}
.rel li:first-child b {
  font-family: var(--font-display);
  font-weight: var(--d-wght);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.rel li:first-child span {
  font-size: 17px;
  max-width: 30em;
}
.rel a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
@media (max-width: 760px) {
  .rel {
    grid-template-columns: 1fr;
  }
  .rel li:first-child {
    grid-row: auto;
  }
}

/* ============ Cookie banner ============
   Same markup as before (#cookie-banner .cookie-inner .cookie-text .cookie-right ...).
   The old token names are mapped onto design C so legacy rules still resolve. */
.cookie-banner {
  --chalk: var(--text);
  --chalk-dim: var(--dim);
  --plate: var(--accent);
  --rubber: var(--base);
  --rubber-2: var(--panel);
  --rubber-3: var(--panel-2);
  --steel: var(--soft);
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: none;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-text h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
}
.cookie-text p {
  margin: 0 0 14px;
  color: var(--dim);
}
.cookie-text a {
  color: var(--text);
  text-underline-offset: 3px;
}
.cookie-categories {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cookie-cat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.cookie-cat.locked {
  cursor: default;
  opacity: 0.7;
}
.cookie-cat input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.cat-label {
  font-weight: 600;
}
.cat-desc {
  color: var(--soft);
  font-size: 13px;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: calc(var(--radius) * 0.6);
  cursor: pointer;
  border: 1px solid var(--edge-strong);
  background: transparent;
  color: var(--text);
}
.cookie-btn:hover {
  border-color: var(--text);
}
.cookie-btn-accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #17181a;
}
.cookie-btn-accept:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
}
@media (max-width: 520px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
  }
  .cookie-btns .cookie-btn {
    flex: 1 1 auto;
  }
}

/* ============ Reveal hook ============
   Add data-inview to any element; chromeScript() adds .seen once it is on screen.
   [data-inview="rise"] gives a small fade-up. Reduced motion gets the end state. */
[data-inview="rise"] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity calc(0.7s / var(--speed)) ease,
    transform calc(0.7s / var(--speed)) cubic-bezier(0.2, 0.75, 0.2, 1);
}
[data-inview="rise"].seen {
  opacity: 1;
  transform: none;
}
/* No JS: never leave content hidden. chromeScript() sets html.js. */
html:not(.js) [data-inview="rise"] {
  opacity: 1;
  transform: none;
}

/* ============ Reduced motion: end states ============ */
@media (prefers-reduced-motion: reduce) {
  .arc-line path {
    transition: none !important;
    stroke-dashoffset: 0;
  }
  [data-inview="rise"] {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  .btn,
  .faq summary::after,
  .toc li a,
  .toc-mobile summary svg,
  .prose a {
    transition: none;
  }
}

@media (max-width: 900px) {
  .brand img { height: 80px; margin: -19px -179px -9px -23px; }
}

/* A light section stays above a following positioned photo band so its bottom arc shows. */
.light { z-index: 1; }

.brand { flex: none; }

/* Footer language row (home pages). Sits inside the dark .mrf-footer. */
.lang-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 36px) 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 14px;
  color: #8b9095;
}
.lang-foot .lang {
  border-color: rgba(255, 255, 255, 0.12);
}
.lang-foot .lang a {
  font-size: 14px;
  padding: 7px 12px;
  color: #b5b8b3;
}
.lang-foot .lang a[aria-current] {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f2f0;
}
