/* Marketing pages: the home page and its sections (how it works, formats, engine, safety, Pro,
   Rind, FAQ). Builds on base.css (tokens, chrome, footer, buttons). */
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); overflow-x: hidden; }
main { overflow-x: clip; }
img { display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }

h1, h2, h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button.ghost { background: transparent; box-shadow: none; color: var(--accent); border: 2px solid var(--accent); margin-top: 22px; }
.actions .button.ghost { margin-top: 0; padding: 13px 22px; }
.button.ghost:hover { background: var(--peel-skin), var(--button); color: var(--on-button); border-color: var(--button); }
.button svg { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.button:hover svg { transform: translateY(3px); }
.button small { font-weight: 500; opacity: 0.8; }

.brew {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 9px 9px 14px;
  font: 500 14px/1.4 var(--mono); letter-spacing: -0.01em;
}
.brew code { overflow-x: auto; white-space: nowrap; font-size: 1em; }
.brew button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 5px 12px; min-height: 44px; font: 600 13px var(--sans); cursor: pointer;
  transition: transform .3s var(--spring);
}
.brew button:active { transform: scale(.9); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto; column-gap: 44px; row-gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 28px; }
.hero > div { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--leaf); background: color-mix(in srgb, var(--leaf) 12%, transparent); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 2.4s infinite; }
@keyframes blink { 50% { transform: scale(1.6); opacity: .5; } }
h1 { font: 400 clamp(44px, 6.2vw, 76px)/1.0 var(--display); letter-spacing: -0.015em; margin: 16px 0 16px; }
h1 em { font-style: normal; color: var(--orange); }
.punch { font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--display); margin: 0 0 12px; color: var(--ink); letter-spacing: -0.005em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 27em; margin: 0 0 26px; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts svg { width: 15px; height: 15px; color: var(--leaf); flex: none; }
.maker { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.proof { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }
.proof li + li { border-left: 1px solid var(--line); }
.proof a { display: grid; gap: 2px; padding: 18px 22px; text-decoration: none; height: 100%; transition: background .2s; }
.proof a:hover { background: var(--bg-2); }
.proof b { font: 400 clamp(28px, 3vw, 38px)/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: 15px; }
.proof a:hover span { color: var(--ink); }
.maker a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Hero: headline and download, beside a Finder window that shows Peel at work ---------- */
.hero-copy { padding-top: 8px; }
.hero-copy h1 { font-size: clamp(38px, 4.1vw, 64px); line-height: .98; margin: 0 0 24px; }
.hero-copy h1 .nw { white-space: nowrap; }
.hero-copy h1 em { display: block; }
.hero-copy .lede { max-width: 24em; margin-bottom: 30px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.hero-meta { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
/* Homebrew is a quiet disclosure: an underlined link that reveals the copyable command. */
.hero-brew { margin-top: 18px; }
.hero-brew summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 17px; background: linear-gradient(currentColor, currentColor) 0 80% / 100% 1.5px no-repeat; }
.hero-brew summary::-webkit-details-marker { display: none; }
.hero-brew summary:hover { color: var(--accent); }
.hero-brew summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.hero-brew .brew { margin-top: 8px; }

.fw-stage { position: relative; margin: 0; min-width: 0; }
/* The Finder window speaks macOS, not the site: neutral greys, system type, selection blue. */
.fw { --f-win: #ffffff; --f-bar: #f5f5f5; --f-side: #ececec; --f-line: #dedede; --f-text: #1d1d1f; --f-sub: #6e6e73; --f-btn: rgba(0, 0, 0, .05); --f-sel: #0a5ad6; --f-menu: #f2f2f2;
  position: relative; width: 100%; aspect-ratio: 600 / 340; }
@media (prefers-color-scheme: dark) {
  .fw { --f-win: #1e1e1e; --f-bar: #2a2a2a; --f-side: #252525; --f-line: #383838; --f-text: #e9e9eb; --f-sub: #98989d; --f-btn: rgba(255, 255, 255, .07); --f-menu: #2c2c2e; }
}
.fw-canvas { position: absolute; left: 0; top: 0; width: 600px; height: 340px; transform-origin: 0 0; border-radius: 12px; overflow: hidden; background: var(--f-win); border: 1px solid var(--f-line); box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .2); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; color: var(--f-text); -webkit-font-smoothing: antialiased; }
.fw-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; background: var(--f-bar); border-bottom: 1px solid var(--f-line); }
.fw-bar svg { width: 15px; height: 15px; color: var(--f-sub); }
.fw-lights { display: flex; gap: 7px; }
.fw-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.fw-lights i:nth-child(2) { background: #febc2e; }
.fw-lights i:nth-child(3) { background: #28c840; }
.fw-nav { display: flex; gap: 2px; margin-left: 6px; }
.fw-nav svg, .fw-tools > svg { box-sizing: content-box; padding: 4px 6px; border-radius: 6px; background: var(--f-btn); }
.fw-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; min-width: 0; }
.fw-ficon { width: 11px; height: 14px; border-radius: 1.5px; background: var(--f-sub); clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); flex: none; }
.fw-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fw-seg { display: flex; border-radius: 6px; background: var(--f-btn); padding: 2px; gap: 1px; }
.fw-seg svg, .fw-seg b svg { padding: 2px 5px; }
.fw-seg b { display: flex; border-radius: 4px; background: color-mix(in srgb, var(--f-text) 14%, transparent); }
.fw-body { position: relative; height: 296px; display: grid; grid-template-columns: 136px minmax(0, 1fr); }
.fw-side { padding: 10px 8px; background: var(--f-side); border-right: 1px solid var(--f-line); display: grid; align-content: start; gap: 1px; font-size: 12.5px; }
.fw-side p { margin: 0 6px 5px; font-size: 11px; font-weight: 600; color: var(--f-sub); }
.fw-side span { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 6px; }
.fw-side svg { width: 14px; height: 14px; color: var(--f-sel); flex: none; }
.fw-side span.on { background: color-mix(in srgb, var(--f-text) 11%, transparent); }
.fw-list { position: relative; min-width: 0; }
.fw-head, .fr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 118px 62px; align-items: center; column-gap: 9px; padding: 0 14px; }
.fw-head { height: 26px; border-bottom: 1px solid var(--f-line); font-size: 11.5px; color: var(--f-sub); }
.fw-head span:first-child { grid-column: 1 / 3; }
.fw-pane { position: absolute; left: 0; right: 0; top: 26px; padding: 4px 6px; display: none; }
.fw[data-pane="downloads"] [data-p="downloads"], .fw[data-pane="brand"] [data-p="brand"],
.fw[data-pane="pay"] [data-p="pay"], .fw[data-pane="desktop"] [data-p="desktop"] { display: block; animation: fw-in .3s ease-out; }
@keyframes fw-in { from { opacity: 0; transform: translateY(4px); } }
.fr { height: 30px; padding: 0 8px; border-radius: 6px; font-size: 13px; }
.fr:nth-child(even) { background: color-mix(in srgb, var(--f-text) 3.5%, transparent); }
.fr-ic { width: 22px; height: 18px; }
.fr-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-k, .fr-s { color: var(--f-sub); font-size: 12px; white-space: nowrap; }
.fr.is-sel { background: var(--f-sel); color: #fff; }
.fr.is-sel .fr-k, .fr.is-sel .fr-s { color: rgba(255, 255, 255, .85); }
.fr.is-dbl { animation: fw-dbl .35s ease-out; }
@keyframes fw-dbl { 40% { transform: scale(.985); filter: brightness(1.15); } }
.fw-new { display: none; }
.fw-new.is-on { display: grid; animation: fw-in .35s ease-out; }
.fw-status { position: absolute; left: 136px; right: 0; bottom: 0; height: 24px; display: grid; place-items: center; border-top: 1px solid var(--f-line); font-size: 11px; color: var(--f-sub); background: var(--f-win); }

/* Overlays, shown by classes the script adds. */
.fw-ql, .fw-sheet, .fw-menu, .fw-hud, .fw-alert { position: absolute; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--spring); }
.fw-ql { left: 200px; top: 8px; width: 300px; border-radius: 12px; overflow: hidden; background: var(--f-win); border: 1px solid var(--f-line); box-shadow: 0 22px 50px rgba(0, 0, 0, .4); transform: scale(.4); transform-origin: 40% 40%; }
.fw-ql-bar { padding: 6px 10px; font-size: 12px; font-weight: 600; text-align: center; color: var(--f-sub); border-bottom: 1px solid var(--f-line); background: var(--f-bar); }
.fw-ql img { display: block; width: 100%; height: 220px; object-fit: contain; padding: 14px; background: color-mix(in srgb, var(--f-text) 4%, var(--f-win)); }
.fw.ql-on .fw-ql { opacity: 1; transform: none; }
.fw-sheet { left: 210px; top: 0; width: 300px; padding: 16px 18px 14px; border-radius: 0 0 12px 12px; background: var(--f-menu); border: 1px solid var(--f-line); border-top: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: translateY(-105%); display: grid; gap: 9px; justify-items: start; }
.fw-sheet p { margin: 0; font-size: 13px; font-weight: 600; }
.fw-lock { width: 24px; height: 24px; color: var(--f-sub); }
.fw-field { display: flex; align-items: center; width: 100%; height: 26px; padding: 0 9px; border-radius: 6px; border: 2px solid color-mix(in srgb, var(--f-sel) 70%, transparent); background: var(--f-win); }
.fw-field i { display: block; height: 8px; width: 0; background: radial-gradient(circle, var(--f-text) 3px, transparent 3.4px) 0 50% / 11px 8px repeat-x; transition: width 1s steps(10); }
.fw.typed .fw-field i { width: 110px; }
.fw-remember { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--f-sub); }
.fw-check { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--f-sel); color: #fff; font-size: 10px; }
.fw-btn { justify-self: end; padding: 4px 14px; border-radius: 6px; background: var(--f-sel); color: #fff; font-size: 12.5px; font-weight: 600; }
.fw.sheet-on .fw-sheet { opacity: 1; transform: none; }
.fw-menu { width: 200px; padding: 5px; border-radius: 9px; background: var(--f-menu); border: 1px solid var(--f-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transform-origin: 0 0; transform: scale(.6); display: grid; }
.fw-menu span { padding: 4px 10px; border-radius: 5px; font-size: 12.5px; }
.fw.menu-hl .fw-menu span.hl { background: var(--f-sel); color: #fff; }
.fw-menu-rar { left: 330px; top: 136px; }
.fw-menu-make { left: 330px; top: 106px; }
.fw.rar-menu .fw-menu-rar, .fw.make-menu .fw-menu-make { opacity: 1; transform: none; }
.fw-hud { left: 220px; top: 96px; width: 260px; padding: 14px 16px; border-radius: 12px; background: var(--f-menu); border: 1px solid var(--f-line); box-shadow: 0 20px 44px rgba(0, 0, 0, .4); transform: translateY(8px); }
.fw-hud p { margin: 0 0 9px; font-size: 12.5px; font-weight: 600; }
.fw-prog { display: block; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--f-text) 14%, transparent); overflow: hidden; }
.fw-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--f-sel); }
.fw.hud-on .fw-hud { opacity: 1; transform: none; }
.fw.hud-on .fw-prog i { width: 100%; transition: width 1.4s cubic-bezier(.4, 0, .3, 1); }
.fw-alert { left: 156px; right: 16px; top: 40px; padding: 11px 13px; border-radius: 10px; background: var(--f-menu); border: 1px solid var(--f-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); font-size: 12.5px; line-height: 1.45; transform: translateY(-8px); }
.fw-alert b { display: block; margin-bottom: 2px; }
.fw.alert-on .fw-alert { opacity: 1; transform: none; }

/* Under the window: the steps on the left, the orange on its own on the right. */
.fw-under { display: grid; grid-template-columns: minmax(0, 1fr) 21%; align-items: start; column-gap: 16px; margin-top: 16px; }
.fw-tabs { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.fw-tabs button { appearance: none; position: relative; min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: 600 15.5px var(--sans); cursor: pointer; transition: color .2s; }
.fw-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--spring); }
.fw-tabs button[aria-pressed="true"] { color: var(--ink); }
.fw-tabs button[aria-pressed="true"]::after { transform: none; }
.fw-tabs button:hover { color: var(--ink); }
.fw-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.fw-cap { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; max-width: 30em; min-height: 3em; }
/* The orange stays still, on the Rind page's light and shadow, with a glare and reflection. */
.fw-fruit { position: relative; margin-top: 10px; justify-self: end; width: 100%; max-width: 210px; pointer-events: none; }
.fw-orange { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.fw-orange-refl { position: absolute; z-index: 1; left: 0; top: 99%; width: 100%; height: auto; transform: scaleY(-1); opacity: .2; filter: blur(2px) saturate(1.2); -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 18%); mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 18%); }
.fw-fruit::before, .fw-fruit::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.fw-fruit::before { z-index: 0; left: -40%; right: -24%; top: 82%; height: 32%; background: radial-gradient(closest-side, rgba(226, 140, 72, .5), rgba(226, 140, 72, .32) 40%, rgba(226, 140, 72, .1) 75%, rgba(226, 140, 72, 0)); }
.fw-fruit::after { z-index: 1; left: -6%; right: 18%; top: 91%; height: 11%; background: radial-gradient(closest-side, rgba(60, 24, 6, .55), rgba(60, 24, 6, .38) 45%, rgba(60, 24, 6, 0)); filter: blur(3px); }
@media (prefers-color-scheme: dark) {
  .fw-fruit::before { background: radial-gradient(closest-side, rgba(190, 92, 34, .95), rgba(166, 78, 28, .7) 40%, rgba(130, 56, 20, .28) 75%, rgba(130, 56, 20, 0)); }
  .fw-fruit::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, 0)); }
  .fw-orange-refl { opacity: .3; }
}

@media (max-width: 960px) {
  .hero-copy { padding-top: 0; }
  .fw-under { grid-template-columns: minmax(0, 1fr) 26%; }
}
@media (max-width: 600px) {
  /* A narrower window on phones: no sidebar or Kind column, so the demo stays legible. */
  .fw { aspect-ratio: 400 / 340; }
  .fw-canvas { width: 400px; }
  .fw-body { grid-template-columns: minmax(0, 1fr); }
  .fw-side, .fr-k, .fw-head span:nth-child(2), .fw-seg { display: none; }
  .fw-head, .fr { grid-template-columns: 22px minmax(0, 1fr) 58px; }
  .fw-status { left: 0; }
  .fw-ql { left: 50px; }
  .fw-sheet { left: 50px; }
  .fw-menu-rar, .fw-menu-make { left: 150px; }
  .fw-hud { left: 70px; }
  .fw-alert { left: 16px; }
  .fw-under { grid-template-columns: minmax(0, 1fr) 70px; column-gap: 10px; }
  .fw-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 14px; scrollbar-width: none; }
  .fw-tabs::-webkit-scrollbar { display: none; }
  .fw-tabs button { flex: none; font-size: 15px; }
  .fw-fruit { margin-top: 0; }
}
@media (max-width: 380px) {
  .hero-copy h1 .nw { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-ql, .fw-sheet, .fw-menu, .fw-hud, .fw-alert, .fw-tabs button::after { transition: none; }
  .fw.hud-on .fw-prog i, .fw-field i { transition: none; }
  .fw[data-pane] .fw-pane, .fw-new.is-on, .fr.is-dbl { animation: none; }
}

/* ---------- What Peel does ---------- */
.does { padding-top: 64px; }
.does-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.does-card { position: relative; display: grid; align-content: start; gap: 10px; height: 100%; padding: 24px 24px 56px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: transform .4s var(--spring), border-color .2s; }
.does-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.does-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.does-ic svg { width: 24px; height: 24px; }
.does-card h3 { font: 400 23px/1.15 var(--display); margin: 4px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.does-tag { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--on-button); background: var(--button); border-radius: 999px; padding: 3px 8px; }
.does-card p { margin: 0; color: var(--muted); font-size: 16px; }
.does-card code { font: 500 14px var(--mono); background: var(--code-bg); border-radius: 6px; padding: 1px 5px; }
.does-go { position: absolute; left: 24px; bottom: 20px; color: var(--accent); transition: transform .35s var(--spring); }
.does-go svg { width: 22px; height: 22px; display: block; }
.does-card:hover .does-go { transform: translateX(6px); }

/* Spotlight scene */
.spot { position: absolute; left: 70px; top: 70px; width: 420px; background: var(--window); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 10; transform: translateY(-10px) scale(.96); opacity: 0; transition: transform .45s var(--spring), opacity .25s; }
.scene.spot-open .spot { transform: none; opacity: 1; }
.spot-q { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; font: 500 21px var(--system); }
.spot-q svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.spot-caret { width: 2px; height: 22px; background: var(--accent); animation: caret 1s steps(1) infinite; margin-left: -8px; }
.spot-r { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.spot-r li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s var(--spring); }
.spot-r li:nth-child(2) { transition-delay: .06s; } .spot-r li:nth-child(3) { transition-delay: .12s; }
.scene.spot-found .spot-r { padding-top: 6px; }
.scene.spot-found .spot-r li { opacity: 1; transform: none; }
.scene.spot-pick .spot-r li.hit { background: var(--select); color: #fff; }
.scene.spot-pick .spot-r li.hit small { color: rgba(255, 255, 255, .8); }
.spot-r img { width: 28px; height: 28px; }
.spot-r b { display: block; font: 600 13.5px var(--system); }
.spot-r small { color: var(--muted); font: 12px var(--system); }
.scene:not(.spot-found) .spot-r { max-height: 0; border-top-color: transparent; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(36px) scale(.97); transition: opacity .7s var(--smooth), transform .9s var(--spring); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.kicker { font-weight: 700; color: var(--accent); font-size: 15px; margin: 0 0 10px; }
h2 { font: 400 clamp(30px, 4vw, 48px)/1.08 var(--display); letter-spacing: -0.01em; margin: 0 0 16px; }
.sub { color: var(--muted); font-size: 19px; max-width: 36em; margin: 0; }

/* ---------- Feature rows with animated scenes ---------- */
.features { margin-top: 24px; }
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.features .feature:nth-child(even) .scene-wrap { order: -1; }
.features .feature:nth-child(even) { grid-template-columns: 1.2fr .8fr; }
.feature h3 { font: 400 clamp(26px, 3vw, 34px)/1.1 var(--display); margin: 0 0 12px; }
.feature p { color: var(--muted); margin: 0 0 14px; font-size: 18px; }
.feature p b { color: var(--ink); }
.step { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 400 19px var(--display); margin-bottom: 16px; transform: rotate(-6deg); }
.feature.in .step { animation: boing .8s var(--spring) .2s both; }
@keyframes boing { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(-6deg); } }
.scene-wrap { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }

/* A scene is a 560 x 360 canvas, scaled to fit. */
.scene { position: relative; width: 100%; aspect-ratio: 560 / 360; }
.canvas { position: absolute; left: 0; top: 0; width: 560px; height: 360px; transform-origin: 0 0; font: 13px/1.3 var(--system); color: var(--ink); }
.win { position: absolute; inset: 0; background: var(--window); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.wbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--window-bar); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.wtitle { position: relative; margin-left: 10px; font-weight: 700; height: 18px; flex: 1; }
.wtitle span { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform .45s var(--spring), opacity .3s; }
.wtitle img { width: 16px; height: 16px; }
.wtitle .tb { opacity: 0; transform: translateY(14px); }
.scene.opened .wtitle .ta { opacity: 0; transform: translateY(-14px); }
.scene.opened .wtitle .tb { opacity: 1; transform: none; }

.item { position: absolute; width: 104px; text-align: center; transition: opacity .3s, transform .4s var(--spring); }
/* Icon positions on the scenes' grid view: four columns, two rows. */
.item.c1 { left: 28px; } .item.c2 { left: 152px; } .item.c3 { left: 276px; } .item.c4 { left: 400px; }
.item.r1 { top: 30px; } .item.r2 { top: 150px; }
.item .ic { width: 64px; height: 64px; margin: 0 auto 6px; position: relative; }
.item .ic img { width: 64px; height: 64px; }
.item .lb { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 12px; line-height: 1.35; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.sel .ic { background: rgba(127, 127, 127, .14); border-radius: 8px; }
.item.sel .lb { background: var(--select); color: #fff; }
.item.pop .ic { animation: peelpop .55s var(--smooth) forwards; }
@keyframes peelpop { 0% { transform: scale(1); } 30% { transform: scale(1.25, .85) rotate(-6deg); } 55% { transform: scale(.9, 1.15) rotate(4deg); } 100% { transform: scale(3) rotate(0); opacity: 0; } }
.item.new { animation: newpop .7s var(--spring) both; }
@keyframes newpop { from { transform: scale(0) rotate(-25deg); opacity: 0; } }
.item.hidden { opacity: 0; transform: scale(.4); }

/* generic file icons */
.fi { position: absolute; inset: 6px 10px; border-radius: 4px 12px 4px 4px; background: #fff; border: 1px solid #ddd2c4; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.fi::after { content: attr(data-t); position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 800 10px var(--system); color: #fff; }
.fi.pdf { background: linear-gradient(#ff6b5a, #e23b2e); border: 0; }
.fi.img { background: linear-gradient(160deg, #ffd27a, #ff8a3d 55%, #2f7a3a 56%, #4aa257); border: 0; }
.fi.jpg { background: linear-gradient(#5bc0ff, #2b7fe0); border: 0; }
.fi.txt { background: repeating-linear-gradient(#fff 0 6px, #e9e1d6 6px 7px); }
.fi.txt::after { color: #8a7a68; }
.fol { position: absolute; left: 4px; right: 4px; top: 14px; bottom: 6px; border-radius: 6px; background: linear-gradient(#8fd0ff, #3d9bf0); box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.fol::before { content: ""; position: absolute; left: 0; top: -7px; width: 24px; height: 10px; border-radius: 5px 5px 0 0; background: #8fd0ff; }

/* list view inside the opened archive */
.list { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; opacity: 0; pointer-events: none; }
.scene.opened .list { opacity: 1; }
.list .hd, .list .rw { display: grid; grid-template-columns: 1fr 76px 100px; gap: 10px; padding: 7px 18px; align-items: center; }
.list .hd { color: var(--muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--line); }
.list .rw:nth-child(even) { background: var(--row-alt); }
.list .rw span:first-child { display: flex; align-items: center; gap: 8px; }
.list .rw span:not(:first-child) { color: var(--muted); }
.list .rw { opacity: 0; transform: translateX(-30px); }
.scene.opened .list .rw { animation: rowin .55s var(--spring) forwards; }
.scene.opened .list .rw:nth-child(2) { animation-delay: .05s; } .scene.opened .list .rw:nth-child(3) { animation-delay: .12s; }
.scene.opened .list .rw:nth-child(4) { animation-delay: .19s; } .scene.opened .list .rw:nth-child(5) { animation-delay: .26s; }
.scene.opened .list .rw:nth-child(6) { animation-delay: .33s; } .scene.opened .list .rw:nth-child(7) { animation-delay: .4s; }
.scene.opened .list .rw:nth-child(8) { animation-delay: .47s; }
@keyframes rowin { to { opacity: 1; transform: none; } }
.mi { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.mi.f { background: linear-gradient(#8fd0ff, #3d9bf0); height: 13px; }
.mi.i { background: linear-gradient(135deg, #ffd27a, #ff8a3d 55%, #2f7a3a 56%); }
.mi.p { background: linear-gradient(#ff6b5a, #e23b2e); }
.mi.t { background: #fff; border: 1px solid #d9cfc2; }
.grid-view { position: absolute; inset: 38px 0 0; transition: opacity .35s; }
.scene.opened .grid-view { opacity: 0; }

/* cursor, clicks and sparkles */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 30px; z-index: 20; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.cursor svg { width: 100%; height: 100%; transition: transform .12s; transform-origin: 2px 2px; }
.cursor.press svg { animation: press .25s; }
@keyframes press { 40% { transform: scale(.8); } }
.ripple { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid var(--accent); z-index: 19; pointer-events: none; animation: ripple .55s var(--smooth) forwards; }
.ripple.alt { border-color: #3d9bf0; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.spark { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; z-index: 18; pointer-events: none; animation: spark .7s var(--smooth) forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1.2); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* context menu */
.menu { position: absolute; width: 200px; background: var(--window); border: 1px solid var(--line); border-radius: 9px; padding: 5px; box-shadow: var(--shadow); z-index: 10; transform-origin: 0 0; transform: scale(.4); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s; }
.scene.menu-open .menu { transform: scale(1); opacity: 1; }
/* Where each scene's right-click menu opens: Peel's open menu, and Compress with Password. */
.menu.menu-peel { left: 92px; top: 108px; }
.menu.menu-compress { left: 120px; top: 108px; width: 236px; }
.menu div { height: 24px; padding: 0 10px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 6px; }
.menu .dim { color: var(--muted); }
.menu .pl { justify-content: flex-start; gap: 8px; }
.menu .pl img { width: 15px; height: 15px; }
.menu .hit { background: var(--select); color: #fff; }

/* progress HUD */
.hud { position: absolute; left: 50%; bottom: 22px; width: 300px; margin-left: -150px; z-index: 12; background: rgba(30, 22, 16, .9); color: #fff; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; align-items: center; opacity: 0; transform: translateY(90px); transition: transform .5s var(--spring), opacity .3s; }
.scene.hud-on .hud { transform: none; opacity: 1; }
.hud img { width: 28px; height: 28px; grid-row: span 2; }
.hud .tx { font-weight: 600; font-size: 12.5px; }
.hud .pc { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .8; }
.hud .bar { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.hud .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ffb547, #ff7a1a); }
.scene.hud-on .hud .bar i { width: 100%; transition: width 1.7s cubic-bezier(.4, 0, .3, 1); }

/* keycap */
.key { position: absolute; right: 26px; bottom: 26px; width: 118px; height: 44px; border-radius: 10px; background: var(--window); border: 1px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 10px 20px rgba(0, 0, 0, .15); display: grid; place-items: center; font: 600 13px var(--system); color: var(--muted); z-index: 15; transition: transform .1s, box-shadow .1s; }
.key.down { transform: translateY(5px); box-shadow: 0 1px 0 var(--line), 0 4px 10px rgba(0, 0, 0, .15); color: var(--accent); }

/* Quick Look panel */
.ql { position: absolute; left: 150px; top: 54px; width: 300px; background: var(--window); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 10; transform-origin: -70px 46px; transform: scale(.15); opacity: 0; transition: transform .5s var(--spring), opacity .25s; }
.scene.ql-open .ql { transform: none; opacity: 1; }
.ql header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ql header img { width: 34px; height: 34px; }
.ql header b { display: block; font-size: 13.5px; }
.ql header small { color: var(--muted); }
.ql ul { list-style: none; margin: 0; padding: 6px 0; }
.ql li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 14px; opacity: 0; transform: translateY(8px); }
.ql li span:last-child { color: var(--muted); white-space: nowrap; }
.ql li.in { padding-left: 30px; }
.scene.ql-open .ql li { animation: rowin .45s var(--spring) forwards; }
.scene.ql-open .ql li:nth-child(2) { animation-delay: .07s; } .scene.ql-open .ql li:nth-child(3) { animation-delay: .14s; }
.scene.ql-open .ql li:nth-child(4) { animation-delay: .21s; } .scene.ql-open .ql li:nth-child(5) { animation-delay: .28s; }
.scene.ql-open .ql li:nth-child(6) { animation-delay: .35s; }

/* password dialog */
.pw { position: absolute; left: 130px; top: 50px; width: 300px; height: 232px; background: var(--window); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; text-align: center; z-index: 10; opacity: 0; transform: translateY(-300px) rotate(-6deg); transition: transform .6s var(--spring), opacity .3s; }
.scene.pw-open .pw { transform: none; opacity: 1; }
.scene.pw-done .pw { transform: scale(.3) rotate(10deg); opacity: 0; transition: transform .4s var(--smooth), opacity .35s; }
.pw .lock { width: 44px; height: 44px; margin: 0 auto 6px; }
.pw .lock .shackle { transition: transform .4s var(--spring); transform-origin: 30px 20px; }
.scene.unlocked .pw .lock .shackle { transform: translateY(-5px) rotate(28deg); }
.pw b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.pw .hint2 { color: var(--muted); font-size: 12.5px; }
.pw .field { height: 30px; margin: 14px 0 0; border: 2px solid var(--accent); border-radius: 7px; padding: 0 10px; text-align: left; display: flex; align-items: center; gap: 2px; font-size: 16px; letter-spacing: 1px; }
.pw .field::after { content: ""; width: 2px; height: 16px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pw .field i { font-style: normal; animation: newpop .3s var(--spring) both; }
.pw .btns { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 8px; }
.pw .btns span { padding: 4px 14px; border-radius: 6px; border: 1px solid var(--line); transition: transform .15s; }
.pw .btns .ok { background: var(--select); color: #fff; border-color: transparent; }
.pw .btns .ok.press { transform: scale(.9); }
.scene.shake .pw { animation: shake .5s; }
@keyframes shake { 15%, 55% { transform: translateX(-12px); } 35%, 75% { transform: translateX(12px); } 90% { transform: translateX(-4px); } }
.pw .err { color: #e23b2e; font-size: 12px; height: 16px; margin-top: 6px; opacity: 0; transition: opacity .2s; text-align: left; }
.scene.wrong .pw .err { opacity: 1; }

/* ---------- Formats ---------- */
.formats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.formats h2 .num { color: var(--accent); display: inline-block; }
.shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; margin: 44px 0 36px; }
.shelf figure { margin: 0; text-align: center; }
.shelf img { width: 100%; max-width: 104px; height: auto; margin: 0 auto; }
.shelf figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }
html.js .shelf figure { opacity: 0; transform: translateY(60px) rotate(-12deg) scale(.6); }
.shelf.in figure { animation: hop .8s var(--spring) forwards; }
.shelf.in figure:nth-child(2) { animation-delay: .07s; } .shelf.in figure:nth-child(3) { animation-delay: .14s; }
.shelf.in figure:nth-child(4) { animation-delay: .21s; } .shelf.in figure:nth-child(5) { animation-delay: .28s; }
.shelf.in figure:nth-child(6) { animation-delay: .35s; } .shelf.in figure:nth-child(7) { animation-delay: .42s; }
@keyframes hop { to { opacity: 1; transform: none; } }
.shelf figure:hover img { animation: wobble .6s; }
@keyframes wobble { 20% { transform: translateY(-10px) rotate(-8deg); } 45% { transform: translateY(-4px) rotate(6deg); } 70% { transform: rotate(-3deg); } }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: transform .4s var(--spring), box-shadow .3s; }
.group:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 16px 30px -18px rgba(90, 45, 10, .4); }
.group h3 { font: 400 20px/1.2 var(--display); margin: 0 0 4px; }
.group p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font: 600 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 8px; background: var(--code-bg); border: 1px solid var(--line); transition: transform .3s var(--spring), background .2s, color .2s; }
.chips li:hover { transform: translateY(-3px) rotate(-4deg) scale(1.08); background: var(--g, var(--accent)); color: #fff; }
.group .icons { display: grid; grid-template-columns: repeat(6, minmax(0, 40px)); gap: 2px; margin: 0 0 10px; }
.group .icons img { width: 100%; height: auto; }
.marquee { margin-top: 44px; display: grid; gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font: 400 22px/1 var(--display); padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.track span { background: var(--g, var(--surface)); color: #fff; border-color: transparent; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Weissman score ---------- */
.weissman { background-color: var(--bg); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; border-bottom: 1px solid var(--line); }
.wm-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; }
.wm-head .kicker { grid-column: 1 / -1; margin: 0; }
.wm-head h2 { margin: 0; }
.wm-head .sub { max-width: none; }
.wm-head h2 .wm-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.wm-lab { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: stretch; }
.wm-meter { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 28px 34px; display: grid; gap: 6px; justify-items: center; align-content: center; text-align: center; position: relative; overflow: hidden; }
.wm-meter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px); opacity: .5; }
.wm-dial { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.wm-dial .wm-arc-bg { fill: none; stroke: var(--line); stroke-width: 22; stroke-linecap: round; }
.wm-dial .wm-arc-win { fill: none; stroke: var(--accent); stroke-width: 22; stroke-linecap: round; opacity: .9; }
.wm-dial .wm-arc-lose { fill: none; stroke: var(--muted); stroke-width: 22; stroke-linecap: round; opacity: .28; }
.wm-dial .wm-tick { stroke: var(--muted); stroke-width: 2; }
.wm-dial .wm-tick.wm-par { stroke: var(--ink); stroke-width: 3; }
.wm-dial .wm-tick-label { fill: var(--muted); font: 600 13px var(--mono); }
.wm-dial .wm-par-label { fill: var(--ink); font: 700 12px var(--sans); letter-spacing: .04em; }
.wm-needle { transform-origin: 210px 210px; transform: rotate(var(--wm-angle, 0deg)); transition: transform 1.1s var(--spring); }
.wm-needle line { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.wm-needle circle { fill: var(--accent); stroke: var(--surface); stroke-width: 4; }
.wm-read { font: 400 clamp(64px, 9vw, 96px)/.9 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; margin-top: -8px; }
.wm-what { font-weight: 700; font-size: 18px; }
.wm-compare { width: 100%; display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: left; }
.wm-cmp h3 { font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.wm-cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wm-cmp li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) 4.6em; gap: 10px; align-items: center; font: 600 14.5px var(--sans); }
.wm-cmp li .v { font: 600 14px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.wm-cmp li .t { height: 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.wm-cmp li .t i { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--muted); opacity: .45; transition: width .9s var(--smooth); }
.wm-cmp li.me .t i { background: var(--accent); opacity: 1; }
.wm-cmp li.me { color: var(--accent); }
.wm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; display: grid; gap: 16px; align-content: start; }
.wm-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wm-tabs button, .wm-files button { font: 700 15px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: transform .3s var(--spring), background .2s, color .2s; }
.wm-tabs button:hover, .wm-files button:hover { transform: translateY(-2px); }
.wm-tabs button[aria-selected="true"], .wm-files button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.wm-files { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-files button { font-size: 13px; padding: 6px 12px; }
.wm-files[hidden] { display: none; }
.wm-vs { color: var(--muted); font-size: 16px; margin: 0; }
.wm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wm-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: transform .35s var(--spring), border-color .2s, background .2s; }
.wm-row:hover, .wm-row[aria-pressed="true"] { transform: translateX(6px); border-color: var(--accent); }
.wm-row[aria-pressed="true"] { background: var(--select-soft); }
.wm-row .wm-nm { font-weight: 700; font-size: 17.5px; min-width: 0; }
.wm-row .wm-nm small { display: block; font: 500 14px/1.4 var(--mono); color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.wm-row .wm-sc { font: 400 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.wm-row .wm-sc.wm-up { color: var(--accent); }
.wm-row .wm-sc.wm-par { color: var(--ink); }
.wm-row .wm-sc.wm-down { color: var(--muted); }
.wm-row .wm-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.wm-row .wm-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 99px; background: var(--accent); transition: width .9s var(--smooth); }
.wm-row .wm-bar i.wm-down { background: var(--muted); opacity: .5; }
.wm-row .wm-bar b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .55; }
.wm-formula { margin: 0; display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 16px; }
.wm-formula .wm-eq { font: 500 clamp(18px, 2.2vw, 22px) var(--mono); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wm-formula .wm-fr { display: inline-grid; text-align: center; line-height: 1.15; }
.wm-formula .wm-fr span:first-child { border-bottom: 2px solid currentColor; padding: 0 4px 2px; }
.wm-formula .wm-fr span:last-child { padding-top: 2px; }
.wm-formula figcaption { color: var(--muted); font-size: 16px; }
.wm-fine { margin: 24px 0 0; color: var(--muted); font-size: 14.5px; }
.wm-more { margin: 14px 0 0; font-weight: 700; font-size: 17px; }
.wm-more a { color: var(--accent); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: border-color .2s; }
.wm-more a:hover { border-bottom-color: var(--accent); }
@media (max-width: 860px) { .wm-lab, .wm-head { grid-template-columns: 1fr; } .wm-head { align-items: start; } }
@media (max-width: 600px) { .wm-meter, .wm-panel { border-radius: 22px; padding: 18px; } .wm-row .wm-sc { font-size: 26px; } .wm-row .wm-nm { font-size: 16px; } .wm-cmp li { grid-template-columns: 4.8em minmax(0, 1fr) 4.4em; font-size: 13.5px; } }

/* ---------- Safety band ---------- */
.band { background: var(--band); color: var(--band-ink); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: var(--band-ink); }
.band .sub { color: var(--band-muted); }
.band .kicker { color: var(--dark-accent); }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px 18px; transition: transform .4s var(--spring), background .3s; }
.band li:hover { transform: translateX(8px); background: rgba(255, 255, 255, 0.09); }
html.js .band li { opacity: 0; transform: translateX(40px); }
.band.in li { animation: slidein .7s var(--spring) forwards; }
.band.in li:nth-child(2) { animation-delay: .12s; } .band.in li:nth-child(3) { animation-delay: .24s; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.band li svg { width: 22px; height: 22px; color: var(--dark-accent); flex: none; margin-top: 2px; }
.band li b { display: block; }
.band li span { color: var(--band-muted); font-size: 15px; }
.band .corner { position: absolute; right: 0; bottom: 0; width: 76px; height: 76px; transition: width .9s var(--spring), height .9s var(--spring); pointer-events: none; }
.band.in .corner { width: 112px; height: 112px; }
.band:hover .corner { width: 148px; height: 148px; }
.band .corner svg { display: block; width: 100%; height: 100%; overflow: visible; }
.band .corner .flap { filter: drop-shadow(-6px -6px 9px var(--peel-shade)); }

/* ---------- Get it ---------- */
.pro-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 56px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pro-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.pro .kicker { display: flex; align-items: center; gap: 10px; }
.pro .pro-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.pro .pro-note a { color: var(--accent); }
.pro .soon { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 4px 10px; }
.pro-free { margin: 22px 0 0; font-weight: 600; color: var(--leaf); }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.pro-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: transform .4s var(--spring); }
.pro-list li:hover { transform: translateX(6px); }
.pro-list b { display: block; font: 400 19px/1.25 var(--display); margin-bottom: 4px; }
.pro-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .pro-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; } }
.get { text-align: center; }
.get picture { display: inline-block; }
.get img.big { width: 168px; height: 168px; margin: 0 auto 24px; filter: drop-shadow(0 22px 30px rgba(242, 107, 29, 0.3)); animation: bob 4s ease-in-out infinite; transition: transform .5s var(--spring); }
.get img.big:hover { transform: rotate(-10deg) scale(1.08); }
@keyframes bob { 50% { translate: 0 -12px; } }
.get .actions { justify-content: center; }
.get .sub { margin: 0 auto 32px; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 32px; display: grid; gap: 16px; }
.faq-side h2 { margin: 0; }
.faq-side .sub { font-size: 18px; }
.faq-side .sub a { color: var(--accent); }
.faq-jump { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jump a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 15px var(--sans); padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--spring), background .2s, color .2s; }
.faq-jump a span { font: 600 12.5px var(--mono); color: var(--muted); }
.faq-jump a:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }
.faq-jump a:hover span { color: inherit; }
.faq-groups { display: grid; gap: 28px; }
.faq-group { scroll-margin-top: 24px; }
.faq-group > h3 { font: 400 24px/1.2 var(--display); margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.faq-group > h3 span { font: 600 13px var(--mono); color: var(--muted); }
.faq .qas { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; min-height: 44px; transition: background .2s; }
.qa summary:hover { background: var(--bg-2); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); font: 400 22px/1 var(--display); color: var(--accent); transition: transform .35s var(--spring), background .2s, color .2s; flex: none; }
.qa[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.qa summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.qa h4, .qa h3 { font: 700 18px/1.35 var(--sans); margin: 0; }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 17px; max-width: 46em; }
.qa[open] p { animation: qa-open .4s var(--smooth); }
@keyframes qa-open { from { opacity: 0; transform: translateY(-6px); } }
.qa code { font: 500 14px var(--mono); background: var(--code-bg); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.qa a { color: var(--accent); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-side { position: static; } }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 920px; margin: 48px auto 0; text-align: left; }
.specs div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.specs dt { font-weight: 700; margin: 0 0 4px; }
.specs dd { margin: 0; color: var(--muted); font-size: 15px; }
.specs code { font: 500 13px var(--mono); background: var(--code-bg); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }

html { accent-color: var(--accent); }

::-webkit-scrollbar-thumb:hover { background-color: #ff8a3d; border-width: 2px; }

@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--accent) var(--bg-2); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; min-height: 0; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .groups { grid-template-columns: 1fr 1fr; }
  .feature, .features .feature:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .does-grid { grid-template-columns: 1fr 1fr; }
  .features .feature:nth-child(even) .scene-wrap { order: 0; }
  .band { grid-template-columns: 1fr; padding: 40px 28px 80px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .brew { width: 100%; justify-content: space-between; }
  .brew code { white-space: normal; overflow-wrap: anywhere; }
  .scene-wrap { padding: 10px; border-radius: 18px; }
  .groups { grid-template-columns: 1fr; }
  .does-grid { grid-template-columns: 1fr; }
  .band { border-radius: 24px; }
  .track span { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .shelf figure, html.js .band li { opacity: 1; transform: none; }
  .list .rw, .ql li { opacity: 1; transform: none; }
  .track { flex-wrap: wrap; width: auto; }
  .track[aria-hidden="true"] { display: none; }
}

/* ---------- Section pages ---------- */
.page-hero { padding-top: 40px; padding-bottom: 8px; }
.page-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-weight: 600; font-size: 15px; color: var(--muted); }
.page-hero .crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.page-hero .crumbs a { color: inherit; text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font: 400 clamp(44px, 7vw, 84px)/1 var(--display); letter-spacing: -0.015em; margin: 0 0 18px; color: var(--accent); text-wrap: balance; }
.page-hero .lede { margin: 0; max-width: 40em; }
.page-section > section { padding-top: 48px; }
.pager { padding: 8px 0 72px; }
.pager a { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px; transition: transform .4s var(--spring), border-color .2s; }
.pager a:hover { transform: translateY(-4px); border-color: var(--accent); }
.pager small { display: block; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.pager b { font: 400 clamp(24px, 3vw, 34px)/1.1 var(--display); }
.pager span[aria-hidden] { font: 400 40px/1 var(--display); color: var(--accent); transition: transform .4s var(--spring); }
.pager a:hover span[aria-hidden] { transform: translateX(8px); }

/* ---------- Engine page: the scorecard ---------- */
.eng-kicker { letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--ink); }
.eng-hero { display: grid; grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr); gap: 12px 40px; align-items: center; }
.eng-hero h1 { color: var(--ink); font-size: clamp(44px, 6vw, 76px); line-height: .98; margin: 16px 0 14px; max-width: 9.5em; }
.eng-hero .lede { max-width: 30em; }
.eng-eyebrow { color: var(--accent); background: var(--select-soft); }
.eng-eyebrow::before { animation: none; }
.eng-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(90, 45, 10, .18)); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eng-label.accent { color: var(--accent); }
.eng-summary-col { display: grid; gap: 12px; align-content: center; padding-right: 8px; }
.eng-label { font: 700 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.eng-bench { margin-top: 28px; }
.eng-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px 28px 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 32px; align-items: center; }
.eng-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px); opacity: .5; }
.eng-card::before { content: ""; position: absolute; left: -80px; top: -90px; width: 420px; height: 360px; background: radial-gradient(closest-side, var(--select-soft), transparent); pointer-events: none; }
.eng-card > * { position: relative; }
.eng-score { padding-right: 32px; border-right: 1px solid var(--line); }
.eng-gauge { margin-top: 16px; display: grid; gap: 6px; width: min(100%, 260px); }
.eng-gauge-track { position: relative; height: 10px; border-radius: 99px; background: var(--bg-2); overflow: visible; }
.eng-gauge-track i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, var(--button), var(--accent)); transition: width .8s var(--smooth); }
.eng-gauge-track b { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.eng-gauge-scale { display: flex; justify-content: space-between; font: 600 11.5px var(--mono); color: var(--muted); }
.eng-delta { justify-self: start; margin: 0; padding: 4px 12px; border-radius: 99px; font: 700 13.5px var(--mono); }
.eng-delta.up { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--leaf); }
.eng-delta.down { background: var(--select-soft); color: var(--accent-strong); }
.eng-summary { min-height: 4.8em; }
.eng-big { margin: 0; font: 400 clamp(72px, 10vw, 120px)/.9 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.eng-big-cap { margin: 8px 0 0; font: 400 24px var(--display); display: flex; align-items: center; gap: 10px; }
.eng-info { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 12px var(--sans); color: var(--muted); text-decoration: none; }
.eng-info:hover { color: var(--accent); }
.eng-summary { margin: 0; font-size: 17px; color: var(--ink); text-wrap: pretty; }
.eng-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.eng-table th, .eng-table td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.eng-table tbody tr:last-child th, .eng-table tbody tr:last-child td { border-bottom: 0; font-weight: 800; }
.eng-table thead th { font: 700 15px var(--sans); }
.eng-table thead small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.eng-table tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.eng-table tbody th .ico { vertical-align: -4px; margin-right: 10px; color: var(--muted); }
.eng-table td { font: 600 17px var(--mono); white-space: nowrap; }
.eng-table thead th { white-space: nowrap; }
.eng-table .me { background: var(--select-soft); }
.eng-table thead .me { border-radius: 14px 14px 0 0; }
.eng-table tbody tr:last-child .me { border-radius: 0 0 14px 14px; }
.eng-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.eng-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.eng-seg[hidden] { display: none; }
.eng-seg button { font: 700 14.5px var(--sans); color: var(--ink); background: transparent; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; transition: background .2s, color .2s; }
.eng-seg button:hover { background: var(--bg-2); }
.eng-seg button[aria-selected="true"], .eng-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.eng-seg.small button { font-size: 13px; padding: 6px 11px; }
.eng-seg button span { font-weight: 500; opacity: .7; }
.eng-pick { justify-self: start; }

.eng-more { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.eng-more-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: stretch; }
.eng-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.eng-metric { --hue: var(--accent); position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.eng-metric h3 { margin: 0; font: 700 15px/1.25 var(--sans); display: flex; gap: 10px; align-items: center; }
.eng-metric .badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--hue) 16%, transparent); color: var(--hue); flex: none; }
.eng-metric .badge .ico { width: 19px; height: 19px; }
.eng-metric .v { margin: 0; font: 400 32px/1.05 var(--display); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.eng-metric.wide .v { font-size: clamp(36px, 3.6vw, 46px); }
.eng-metric .d { padding: 3px 9px; border-radius: 99px; font: 700 13px var(--mono); }
.eng-metric .d.up { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--leaf); }
.eng-metric .d.down { background: var(--select-soft); color: var(--accent-strong); }
.eng-metric .cmp { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 7px; }
.eng-metric .cmp li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 5.6em; gap: 10px; align-items: center; font: 600 13px var(--sans); color: var(--muted); }
.eng-metric .cmp li.me { color: var(--ink); }
.eng-metric .cmp .t { height: 9px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.eng-metric .cmp .t i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--muted); opacity: .45; }
.eng-metric .cmp li.me .t i { background: var(--hue); opacity: 1; }
.eng-metric .cmp .n { font: 600 12.5px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.eng-metric .c { margin: 0; color: var(--muted); font-size: 13px; }
.eng-formula { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.eng-formula > p { margin: 0 0 12px; }
.eng-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--bg-2); border-radius: 16px; padding: 16px 20px; margin: 4px 0 14px; font: 500 22px var(--mono); }
.eng-eq.big { font-size: 22px; flex-wrap: nowrap; white-space: nowrap; }
.eng-eq .wm-fr { display: inline-grid; text-align: center; line-height: 1.15; }
.eng-eq .wm-fr span:first-child { border-bottom: 2px solid currentColor; padding: 0 4px 2px; }
.eng-prod { font-size: 1.6em; line-height: 1; }
.eng-defs { margin: 0 0 12px; display: grid; }
.eng-defs div { display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.eng-defs dt { font: italic 600 15px var(--mono); }
.eng-defs dd { margin: 0; }
.eng-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.eng-scores { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 48px; }
.eng-score-tabs { display: grid; gap: 2px; margin-top: 24px; }
.eng-score-tabs button + button { border-top: 1px solid var(--line); }
.eng-score-tabs button { text-align: left; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; background: transparent; border: 0; border-left: 3px solid transparent; border-radius: 0 14px 14px 0; padding: 12px 16px; cursor: pointer; color: var(--ink); font: inherit; transition: background .2s; }
.eng-score-tabs button .ico { grid-row: span 2; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.eng-score-tabs button b { font: 400 21px var(--display); }
.eng-score-tabs button span { color: var(--muted); font-size: 14.5px; }
.eng-score-tabs button:hover { background: var(--bg-2); }
.eng-score-tabs button[aria-selected="true"] { background: var(--select-soft); border-left-color: var(--accent); }
.eng-score-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; align-self: start; }
.eng-score-panel > p { margin: 0 0 12px; }
.eng-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.eng-panel-head .eng-label { margin: 0; }
.eng-tag { font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 3px 10px; }
.eng-comp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 6px 0 18px; align-items: stretch; }
.eng-comp-top .eng-eq { margin: 0; justify-content: center; }
.eng-defs.compact { border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px; margin: 0; }
.eng-defs.compact div { font-size: 13px; padding: 5px 0; }
.eng-defs.compact div:last-child { border-bottom: 0; }
.eng-profiles { display: grid; gap: 8px; margin-bottom: 10px; }
.eng-profiles button { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 12px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 5px 8px; cursor: pointer; font: 600 14px var(--sans); color: var(--ink); text-align: left; }
.eng-profiles button:hover { background: var(--bg-2); }
.eng-profiles button[aria-pressed="true"] { border-color: var(--accent); background: var(--select-soft); }
.eng-profiles .eng-weights { margin: 0; }
.eng-key { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.eng-key li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; background: var(--c); }
.eng-key .w-ratio { --c: #5c4a3a; } .eng-key .w-pack { --c: #c2410c; } .eng-key .w-unpack { --c: #2a6f34; } .eng-key .w-memory { --c: #a08a72; }
.eng-weights { display: flex; border-radius: 8px; overflow: hidden; margin: 14px 0 18px; font: 700 12px var(--sans); color: #fff; }
.eng-weights span { padding: 7px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-weights .w-ratio { background: #5c4a3a; } .eng-weights .w-pack { background: #c2410c; }
.eng-weights .w-unpack { background: #2a6f34; } .eng-weights .w-memory { background: #a08a72; }
.eng-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.eng-bars li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 5em; gap: 10px; align-items: center; font: 600 14px var(--sans); }
.eng-bars .t { height: 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.eng-bars .t i { display: block; height: 100%; width: var(--w); background: var(--muted); opacity: .5; border-radius: 99px; }
.eng-bars li.me .t i { background: var(--accent); opacity: 1; }
.eng-bars .v { font: 600 13.5px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.eng-scroll { overflow-x: auto; margin-top: 14px; }
.eng-mini { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.eng-mini th, .eng-mini td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.eng-mini th:first-child { text-align: left; }
.eng-mini thead th { color: var(--muted); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.eng-mini td { font-family: var(--mono); font-size: 13.5px; }
.eng-mini tr.me th { color: var(--accent-strong); }

.eng-frontier { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.eng-chart-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; }
.eng-chart-card figcaption { display: grid; gap: 12px; }
.eng-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.eng-chart-card h3, .eng-about h3 { margin: 0; font: 400 22px var(--display); }
.eng-file-tag { font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 4px 10px; }
.eng-chart svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.eng-chart .grid { stroke: var(--line); }
.eng-chart .grid.minor { stroke-dasharray: 2 4; }
.eng-chart .ax { fill: var(--muted); font: 500 15px var(--mono); }
.eng-chart .ax-t { fill: var(--muted); font: 600 16px var(--sans); }
.eng-chart .lab { fill: var(--c); font: 800 15px var(--sans); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.eng-chart .front { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 6; opacity: .55; }
.eng-chart circle.me { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.eng-chart circle.them { fill: var(--surface); stroke: var(--c); stroke-width: 2.5; }
.eng-chart circle:not(.on) { opacity: .5; }
.eng-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.eng-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.eng-legend li.fmt { color: var(--ink); font-weight: 600; }
.eng-legend li.fmt::before { background: var(--c); }
.eng-legend li.me::before { background: var(--muted); }
.eng-legend li.them::before { width: 7px; height: 7px; border: 2px solid var(--muted); }
.eng-legend li.front::before { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed var(--ink); opacity: .6; vertical-align: 3px; }
.eng-about { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; }
.eng-about h3 { margin-bottom: 12px; }
.eng-about p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }

.eng-quant { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.eng-quant h2 { margin-top: 0; }
.eng-quant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.eng-q { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.eng-q .eng-label { margin: 0; }
.eng-q .q-big { margin: 0; font: 400 clamp(32px, 3.6vw, 44px)/1.05 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.eng-q.time .q-big { color: var(--leaf); }
.eng-q.space .q-big { color: var(--accent); }
.eng-q.open .q-big { color: #c58a1c; }
.eng-q .q-body { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.eng-q.wide { grid-column: span 3; }
.eng-q.picks, .eng-q.level { background: var(--bg-2); }
.eng-q.picks .q-big, .eng-q.level .q-big { font-size: clamp(24px, 2.6vw, 30px); }
.q-picks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-picks li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.q-picks .q-why { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.q-picks b { font: 400 20px/1.2 var(--display); }
.q-picks .q-stats { font: 500 13px var(--mono); color: var(--muted); }
.q-level { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.q-level li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.q-level b { font-weight: 800; }
.q-level span { color: var(--muted); }

.eng-method { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.eng-method-title { font-size: clamp(26px, 3vw, 34px); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.eng-method-title .ico { width: 32px; height: 32px; color: var(--accent); }
.eng-method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eng-m { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.eng-m .k { margin: 0; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eng-m .b { margin: 0; font: 400 20px/1.2 var(--display); }
.eng-m .s { margin: 0; color: var(--muted); font-size: 14px; }
.eng-method-foot { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.eng-notes h3, .eng-dl h3 { margin: 0 0 12px; font: 400 20px var(--display); }
.eng-notes ul { margin: 0; padding: 0; list-style: none; columns: 2 18em; column-gap: 28px; }
.eng-notes li { break-inside: avoid; position: relative; padding: 0 0 12px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.eng-notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }
.eng-dl { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.eng-dl > p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.eng-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.eng-downloads .button { margin-top: 12px; font-size: 15px; padding: 11px 18px; }
.eng-method .wm-more { margin-top: 28px; }

@media (max-width: 960px) {
  .eng-card { grid-template-columns: 1fr 1fr; }
  .eng-method-foot { grid-template-columns: minmax(0, 1fr); }
  .eng-quant-grid { grid-template-columns: minmax(0, 1fr); }
  .eng-q.wide { grid-column: auto; }
  .q-picks, .q-level { grid-template-columns: minmax(0, 1fr); }
  .eng-table { grid-column: 1 / -1; }
  .eng-more-grid, .eng-scores, .eng-frontier { grid-template-columns: minmax(0, 1fr); }
  .eng-method-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .eng-card { grid-template-columns: minmax(0, 1fr); padding: 20px; border-radius: 22px; }
  .eng-hero { grid-template-columns: minmax(0, 1fr); }
  .eng-table tbody th { white-space: normal; }
  .eng-seg button span { display: none; }
  .eng-table th, .eng-table td { padding: 9px 6px; }
  .eng-table td { font-size: 15px; }
  .eng-table tbody th .ico { display: none; }
  .eng-art { max-width: 340px; }
  .eng-comp-top { grid-template-columns: minmax(0, 1fr); }
  .eng-profiles button { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .eng-score { border-right: 0; padding-right: 0; }
  .eng-metrics { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .eng-bars li { grid-template-columns: 7.5em minmax(0, 1fr) 4em; font-size: 13px; }
  .eng-method-grid { grid-template-columns: 1fr; }
  .eng-controls { flex-direction: column; align-items: stretch; }
}

/* ---------- Engine page: hover and focus ---------- */
.eng-metric, .eng-q, .eng-m, .eng-about, .eng-chart-card, .eng-dl, .q-picks li { transition: transform .35s var(--spring), box-shadow .3s, border-color .3s; }
.eng-metric:hover, .eng-q:hover, .eng-m:hover, .q-picks li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.eng-metric:hover { border-color: color-mix(in srgb, var(--hue) 55%, var(--line)); }
.eng-metric:hover .badge { transform: rotate(-6deg) scale(1.06); }
.eng-metric .badge { transition: transform .35s var(--spring); }
.eng-q:hover, .eng-m:hover, .q-picks li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.eng-table tbody tr { transition: background .2s; }
.eng-table tbody tr:hover th, .eng-table tbody tr:hover td { background: var(--bg-2); }
.eng-table tbody tr:hover td.me { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.eng-bars li, .eng-metric .cmp li { transition: color .2s; }
.eng-bars li:hover, .eng-metric .cmp li:hover { color: var(--ink); }
.eng-bars li:hover .t i, .eng-metric .cmp li:hover .t i { opacity: 1; }
.eng-mini tbody tr:hover th, .eng-mini tbody tr:hover td { background: var(--bg-2); }
.q-level li { transition: background .2s; border-radius: 8px; }
.q-level li:hover { background: var(--surface); }
.eng-defs div { transition: background .2s; border-radius: 6px; }
.eng-defs div:hover { background: var(--bg-2); }
.eng-bars .t i, .eng-metric .cmp .t i, .eng-gauge-track i { animation: eng-grow .9s var(--smooth) both; transform-origin: left; }
@keyframes eng-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.eng-seg button:focus-visible, .eng-score-tabs button:focus-visible, .eng-profiles button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eng-notes code { white-space: nowrap; font-size: .92em; background: var(--code-bg); border-radius: 5px; padding: 1px 5px; }

/* the chart's points */
.eng-chart .pt { cursor: pointer; transition: r .2s var(--spring), opacity .2s; outline: none; }
.eng-chart svg.hovering .pt:not(.hot) { opacity: .25; }
.eng-chart .pt.hot { opacity: 1; r: 11px; stroke: var(--ink); stroke-width: 2.5; }
.eng-chart .pt:focus-visible { stroke: var(--accent); stroke-width: 3; }
.eng-chart .guide line { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: 0; transition: opacity .2s; }
.eng-chart .guide.show line { opacity: .5; }
.eng-about.live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.eng-about .q-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.eng-about .q-stats-grid div { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.eng-about .q-stats-grid dt { font: 700 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eng-about .q-stats-grid dd { margin: 2px 0 0; font: 400 clamp(17px, 1.6vw, 21px)/1.1 var(--display); color: var(--ink); white-space: nowrap; }
.eng-about .q-on { color: var(--leaf); font-weight: 600; }
.eng-about .q-off b, .eng-about p b { color: var(--ink); }
.eng-hint { font-size: 13.5px !important; border-top: 1px dashed var(--line); padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .eng-metric, .eng-q, .eng-m, .q-picks li, .eng-metric .badge { transition: none; }
  .eng-metric:hover, .eng-q:hover, .eng-m:hover, .q-picks li:hover, .eng-metric:hover .badge { transform: none; }
  .eng-bars .t i, .eng-metric .cmp .t i, .eng-gauge-track i { animation: none; }
}

/* ---------- Safety page ---------- */
.sf-eyebrow { color: var(--leaf); }
.sf-hero h1 { color: var(--ink); font-size: clamp(44px, 6vw, 76px); line-height: .98; margin: 16px 0 14px; }
.sf-hero .lede { max-width: 34em; }
.sf-toc { margin-top: 28px; }
.sf-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform .3s var(--spring), border-color .2s; }
.sf-toc a span { font: 600 12px var(--mono); color: var(--accent); }
.sf-toc a:hover { transform: translateY(-2px); border-color: var(--accent); }
.sf-section { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.sf-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.sf-num { font: 600 14px var(--mono); color: var(--accent); padding-top: 14px; }
.sf-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.sf-badge .ico { width: 26px; height: 26px; }
.sf-head h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); }
.sf-head .sub { max-width: 40em; }
.sf-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; align-items: start; }
.sf-label { margin: 0 0 12px; font: 700 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sf-label .ico { width: 16px; height: 16px; }
.sf-does { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.sf-does ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sf-does li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 8px; border-radius: 12px; font-size: 16px; transition: background .2s; }
.sf-does li:hover { background: var(--bg-2); }
.sf-does .sf-tick { width: 20px; height: 20px; color: var(--leaf); margin-top: 2px; }
.sf-does code, .sf-limits code, .sf-isnt code { font: 500 .88em var(--mono); background: var(--code-bg); border-radius: 6px; padding: 1px 5px; }
.sf-limits { background: var(--bg-2); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 22px; padding: 20px 22px; }
.sf-limits .sf-label { color: var(--accent-strong); }
.sf-limits ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.sf-limits li::marker { color: var(--accent); }
.sf-limits a, .sf-does a { color: var(--accent); }
.sf-trust { margin-top: 64px; scroll-margin-top: 24px; }
.sf-trust .band a { color: #ffb37a; }
.sf-isnt { margin-top: 64px; }
.sf-isnt h2 { margin: 0 0 8px; }
.sf-isnt-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sf-isnt-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 8px; transition: transform .35s var(--spring), border-color .3s; }
.sf-isnt-grid li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sf-isnt-grid b { font: 400 22px/1.15 var(--display); }
.sf-isnt-grid span { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .sf-body { grid-template-columns: minmax(0, 1fr); }
  .sf-isnt-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sf-head { grid-template-columns: auto minmax(0, 1fr); }
  .sf-num { display: none; }
  .sf-badge { width: 44px; height: 44px; border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-toc a, .sf-isnt-grid li { transition: none; }
  .sf-toc a:hover, .sf-isnt-grid li:hover { transform: none; }
}

/* The install command on the Rind page: a terminal block in the band. */
.rind-cmd { margin: 18px 0 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: var(--dark-bg); border: 1px solid var(--dark-line); }
.rind-cmd code { display: block; padding: 0; border: 0; background: none; font: 400 14px/1.7 var(--mono); color: var(--dark-ink); white-space: pre; font-variant-ligatures: none; -webkit-font-smoothing: antialiased; }

/* Rind: the hero, copy on the left and the peeled rind running off the right. */
.rind-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 0; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.rind-hero h1 { color: var(--ink); font-size: clamp(44px, 5.2vw, 78px); line-height: .98; margin: 22px 0 20px; max-width: none; white-space: nowrap; }
.rind-hero h1 em { display: block; }
.rind-hero .lede { max-width: 25em; margin-bottom: 30px; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }
.rind-hero .actions { gap: 22px 30px; }
.rind-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; font-size: 17px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--spring), color .2s; }
.rind-link:hover { color: var(--accent-strong); background-size: 0 2px; background-position: 100% 100%; }
.rind-copy { position: relative; z-index: 1; }
/* The rind stands on a pool of light with a contact shadow, drawn here so they follow the
   theme. The image ends at the rind's lowest point, so both sit at the stage's bottom edge. */
.rind-stage { position: relative; justify-self: center; width: min(100%, 560px); margin-bottom: 7%; }
.rind-stage::before, .rind-stage::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.rind-stage::before { left: -36%; right: -26%; top: 86%; height: 34%; background: radial-gradient(closest-side, rgba(226, 140, 72, .5), rgba(226, 140, 72, .34) 40%, rgba(226, 140, 72, .12) 75%, rgba(226, 140, 72, 0)); }
.rind-stage::after { left: -30%; right: 14%; top: 92.5%; height: 11%; background: radial-gradient(closest-side, rgba(60, 24, 6, .6), rgba(60, 24, 6, .42) 45%, rgba(60, 24, 6, 0)); filter: blur(3px); }
.rind-art { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) {
  .rind-stage::before { background: radial-gradient(closest-side, rgba(190, 92, 34, 1), rgba(166, 78, 28, .75) 40%, rgba(130, 56, 20, .3) 75%, rgba(120, 52, 18, 0)); }
  .rind-stage::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .95), rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, 0)); }
}

/* Rind in numbers. */

/* Same task, four ways: a dark terminal pane with tabs, beside the result they share. */
.rind-ways { padding-top: 56px; }
.rind-ways .rw-head { max-width: 46em; }
.rind-ways .rw-head h2 { margin: 6px 0 10px; }
.rw-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 26px; border-radius: 22px; overflow: hidden; background: var(--dark-bg); border: 1px solid var(--dark-line); box-shadow: 0 24px 50px rgba(60, 25, 8, .22); }
.rw-code { padding: 14px 16px 18px; border-right: 1px solid var(--dark-line); min-width: 0; }
.rw-out { padding: 18px 20px; background: var(--dark-pane); min-width: 0; }
.rw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rw-tabs button { appearance: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--dark-line); border-radius: 999px; background: var(--dark-bar); color: var(--dark-soft); font: 700 14px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rw-tabs button:hover { color: #fff; border-color: var(--dark-hover); }
.rw-tabs button[aria-selected="true"] { background: var(--peel-skin), var(--button); color: #fff; border-color: transparent; }
.rw-tabs button:focus-visible { outline: 2px solid var(--dark-accent); outline-offset: 2px; }
.rw-kind { margin: 0 0 8px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dark-accent); }
.rw-panel pre { margin: 0; padding: 0; overflow-x: auto; background: none; border: 0; }
.rw-panel code { display: block; padding: 0; border: 0; background: none; font: 400 14px/1.7 var(--mono); color: var(--dark-ink); white-space: pre; font-variant-ligatures: none; -webkit-font-smoothing: antialiased; }
.rw-out code { color: var(--dark-ink-3); }
.rw-pane:not([hidden]) { animation: rw-fade .35s ease-out; }
@keyframes rw-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .rind-hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .rind-hero h1 { white-space: normal; }
  .rind-stage { width: min(100%, 420px); }
  .rw-panel { grid-template-columns: minmax(0, 1fr); }
  .rw-code { border-right: 0; border-bottom: 1px solid var(--dark-line); }
}
@media (prefers-reduced-motion: reduce) {
  .rw-pane:not([hidden]) { animation: none; }
}

/* Display headlines carry the brand orange in both themes (large text, so 3:1 is enough). */
.page-hero h1 em, .rind-hero h1 em, .hero-copy h1 em { color: var(--orange); }

/* ---------- Formats page: the numbers, what each format can do, what the engine reads, the gaps ---------- */
.fmt-hero { padding-bottom: 56px; }
.fmt-hero h1 { color: var(--ink); max-width: 14em; }
.fmt-hero h1 em { display: block; font-style: normal; color: var(--orange); }
.fmt-hero .lede { max-width: 40em; }
.fmt-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.fmt-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fmt-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.fmt-table th, .fmt-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fmt-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.fmt-table tbody tr:last-child > * { border-bottom: 0; }
.fmt-table tbody tr:hover { background: var(--bg-2); }
.fmt-table tbody th { font-weight: 700; color: var(--ink); min-width: 210px; }
.fmt-table tbody th small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); line-height: 1.7; }
.fmt-table code { font: 500 12.5px var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.fmt-table td { color: var(--muted); }
.fmt-table .y { color: var(--leaf); font-weight: 800; }
.fmt-table .n { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.fmt-note { margin: 14px 0 0; max-width: 52em; color: var(--muted); font-size: 15px; }
.fmt-limits { margin: 20px 0 0; padding: 0 0 0 20px; display: grid; gap: 8px; max-width: 52em; color: var(--muted); }
.fmt-limits li::marker { color: var(--accent); }

/* "From The Pith": related articles from the journal (/blog) on the home and section pages. */
.pith-related { padding: 72px 0; border-top: 1px solid var(--line); }
.pith-related .sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.pith-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.pith-cards a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.pith-cards img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.pith-cards small { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pith-cards b { font-size: 20px; line-height: 1.25; }
.pith-cards span { color: var(--muted); font-size: 16px; }
.pith-cards a:hover b { color: var(--accent-strong); text-decoration: underline; }
.pith-more { margin: 28px 0 0; font-weight: 700; }
.pith-more a { color: var(--accent-strong); }

/* ---------- Pro: free to use, Pro to get back in ---------- */
.pr-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 48px; align-items: end; padding-bottom: 36px; }
.pr-hero h1 { color: var(--ink); font-size: clamp(42px, 5vw, 72px); line-height: .98; margin: 0 0 20px; }
.pr-hero h1 em { display: block; font-style: normal; color: var(--orange); }
.pr-hero .lede { max-width: 32em; }
.pr-promise { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.pr-promise b { display: block; margin-bottom: 6px; color: var(--ink); }
.pr-promise p { margin: 0; color: var(--muted); font-size: 15px; }
.pr-promise-ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }
.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pr-plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.pr-plan-pro { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 24px 50px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.pr-tag { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pr-plan-pro .pr-tag { color: var(--accent); }
.pr-plan h2 { margin: 6px 0 4px; font: 400 30px/1.1 var(--display); color: var(--ink); }
.pr-price { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.pr-price b { font: 400 46px/1 var(--display); color: var(--ink); margin-right: 4px; }
.pr-note { margin: 6px 0 16px; color: var(--muted); font-size: 15px; }
.pr-plus { margin: 0 0 6px; font-weight: 700; color: var(--ink); font-size: 15px; }
.pr-plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pr-plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.pr-plan li b { color: var(--ink); }
.pr-plan li .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--leaf); }
.pr-fine { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.pr-plan .button { margin-top: auto; align-self: flex-start; }
.pr-table { min-width: 0; }
.pr-table td { width: 120px; text-align: center; }
.pr-table th[scope="col"]:not(:first-child) { text-align: center; }
.pr-table tbody th { font-weight: 600; }
.pr-table tbody th small { font-weight: 500; }
.pr-how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; margin-top: 24px; }
.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.pr-steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pr-steps li::before { content: counter(s); grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font: 400 18px var(--display); }
.pr-steps b { color: var(--ink); }
.pr-steps span { color: var(--muted); font-size: 15px; }
.pr-shot { margin: 0; }
.pr-shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .45); }
.pr-shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.pr-limits { padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pr-limits h2 { margin: 0 0 8px; }
.pr-limits p { margin: 0; color: var(--muted); max-width: 60em; }
.pr-channels { margin-top: 16px; max-width: 52em; }
@media (max-width: 960px) {
  .pr-hero, .pr-how { grid-template-columns: minmax(0, 1fr); }
  .pr-plans { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Shared components ---------- */
/* A titled section on a section page: kicker, heading, a line under it, then its content. */
.section-block { padding-top: 72px; }
.section-block > h2 { margin: 6px 0 10px; }
.section-block > .sub { max-width: 46em; }
/* Numbered stat cards: a figure and what it counts. The grid fits four or five across and
   wraps on narrow screens. Used on Safety, Rind and Formats. */
.stats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stats li { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .3s var(--spring), border-color .2s; }
.stats li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.stats b { font: 400 clamp(34px, 4vw, 46px)/1 var(--display); color: var(--accent); }
.stats span { font-size: 15px; font-weight: 600; color: var(--muted); }
/* Titled cards: a heading and a line or two. Used on Formats and Pro. */
.card-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card-grid li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .3s var(--spring), border-color .2s; }
.card-grid li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card-grid :is(h3, b) { display: block; margin: 0 0 6px; font: 400 21px/1.15 var(--display); color: var(--ink); }
.card-grid :is(p, span) { margin: 0; color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .stats li, .card-grid li { transition: none; } .stats li:hover, .card-grid li:hover { transform: none; } }
