.hero {
  min-height: calc(100svh - var(--nav-h) - var(--peek));
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 40px 24px 48px;
  overflow: clip;
  text-align: center;
}
.jelly { position: absolute; inset: 0; z-index: 0; pointer-events: none; isolation: isolate; }
.jelly > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side { position: absolute; inset: 0; }
.side-l { transform-origin: 0 50%; }
.side-r { transform-origin: 100% 50%; }
.jb {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: var(--r-jelly);
  mix-blend-mode: multiply;
  transform: rotate(var(--r));
  background: linear-gradient(150deg,var(--j-from),var(--j-to));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--white-55),inset 0 2px 0 var(--white-75),inset -6px -9px 16px var(--ink-06),0 44px 96px -26px var(--glow);
}
.jb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(130% 90% at 18% 0%,var(--white-55),var(--clear) 55%);
}
.jb::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: calc(var(--r-jelly) - 10px);
  border: 1px solid var(--white-30);
}
.cobalt { --j-from: var(--jl-cobalt); --j-to: var(--jl-sky); --glow: var(--jg-blue); }
.sky { --j-from: var(--jl-sky); --j-to: var(--jl-cobalt); --glow: var(--jg-blue); }
.magenta { --j-from: var(--jl-magenta); --j-to: var(--jl-pink); --glow: var(--jg-pink); }
.grass { --j-from: var(--jl-grass); --j-to: var(--jl-lime); --glow: var(--jg-green); }
.sunset { --j-from: var(--jl-yellow); --j-to: var(--jl-orange); --glow: var(--jg-orange); }
.citrus { --j-from: var(--jl-lime); --j-to: var(--jl-yellow); --glow: var(--jg-green); }
.la { --s: 300px; --r: -12deg; left: -60px; top: calc(50% - 324px); }
.lb { --s: 220px; --r: 10deg; left: -70px; top: calc(50% - 34px); }
.lc { --s: 160px; --r: -20deg; left: 140px; top: calc(50% + 76px); }
.ra { --s: 320px; --r: 14deg; right: -80px; top: calc(50% - 364px); }
.rb { --s: 240px; --r: -10deg; right: -40px; top: calc(50% - 64px); }
.rc { --s: 170px; --r: 18deg; right: 150px; top: calc(50% + 106px); }
.seal {
  position: absolute;
  right: 126px;
  top: calc(50% - 198px);
  width: 96px;
  height: 96px;
  border-radius: var(--r-round);
  background: var(--white);
  color: var(--success);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 6px var(--white-40),inset 0 -3px 0 var(--ink-06),0 16px 34px -12px var(--ink-28);
}
.seal::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; border: 1.5px dashed currentColor; opacity: .5; }
.seal svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }

.stage { position: relative; z-index: 1; display: grid; justify-items: center; width: 100%; max-width: 900px; }
.mark { display: flex; align-items: center; gap: 26px; margin: 0 0 30px; }
.app {
  position: relative;
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: var(--r-app);
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding-top: 10px;
  box-shadow: inset 0 0 0 1px var(--ink-04),0 6px 0 var(--line),0 7px 0 var(--ink-06),0 26px 44px -14px var(--ink-18),0 44px 70px -34px var(--accent-45);
  overflow: hidden;
}
.app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 17px;
  background: linear-gradient(90deg,var(--j-cobalt),var(--j-sky));
  box-shadow: inset 0 -1px 0 var(--white-40);
}
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,var(--white-40),var(--clear) 40%);
  pointer-events: none;
}
.app img { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px var(--accent-30)); }
.word {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--size-word);
  font-weight: var(--weight-display);
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.word-latin { padding-bottom: .04em; }
.word-tag, .tag { display: inline-block; }
.tag {
  padding: .06em .2em .1em;
  border-radius: var(--r-stamp);
  background: linear-gradient(160deg,var(--accent),var(--accent-dark));
  color: var(--white);
  letter-spacing: .02em;
  transform: rotate(-3deg);
  box-shadow: inset 0 2px 0 var(--white-40),inset 0 -5px 0 var(--ink-12),0 16px 30px -12px var(--accent-45);
}
.hero .title {
  max-width: 22em;
  margin: 0;
  font-size: var(--size-hero-title);
  font-weight: var(--weight-brand);
  text-wrap: wrap;
}
.title-a, .title-b { display: inline-block; }
.title-a { color: var(--ink); }
.title-b { color: var(--muted); }
.lede { margin: 16px 0 0; max-width: 33em; font-size: 18px; line-height: 1.65; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: var(--weight-bold); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero .btn-soft:not(:hover) { color: var(--accent); }
.plats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.plats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 15px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--muted);
  font-size: var(--size-small);
  font-weight: var(--weight-ui);
  text-decoration: none;
  transition: color var(--snap), border-color var(--snap);
}
.plats a:hover { color: var(--ink); border-color: var(--accent-30); }
.plats svg { width: 16px; height: 16px; }
.facts { display: grid; grid-template-columns: repeat(3,236px); gap: 20px; margin-top: 48px; }
.fact {
  position: relative;
  padding: 36px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-04);
}
.fact-ico {
  position: absolute;
  left: 50%;
  top: calc(var(--fact-icon,48px) / -2);
  width: var(--fact-icon,48px);
  height: var(--fact-icon,48px);
  margin-left: calc(var(--fact-icon,48px) / -2);
  border-radius: var(--r-round);
  background: var(--white);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-float);
}
.fact-ico::before, .fact-ico::after {
  content: "";
  position: absolute;
  border-radius: var(--r-round);
  background: var(--rainbow-ring);
  mask: radial-gradient(closest-side,var(--clear) calc(100% - 1.5px),var(--ink) calc(100% - 1px));
}
.fact-ico::before { inset: -7px; opacity: .9; }
.fact-ico::after { inset: -14px; opacity: .35; }
.fact-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fact-t { display: block; font: var(--weight-brand) var(--size-body)/1.35 var(--font-display); letter-spacing: -.01em; }
.fact-t code { font-weight: var(--weight-bold); font-size: 15px; }
.fact-s { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.rise { animation: shelf-arrival .56s var(--ease) both; }
.d0 { animation-delay: 0s; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .3s; }
.d4 { animation-delay: .38s; }
.d5 { animation-delay: .48s; }
.d6 { animation-delay: .56s; }
.d7 { animation-delay: .62s; }
@keyframes shelf-arrival {
  from { opacity: 0; transform: translate3d(0,28px,0); }
  to { opacity: 1; transform: none; }
}

.shelf { padding: 0 max(24px,var(--gutter)) 96px; }
.shelf-panel {
  max-width: 1360px;
  margin-inline: auto;
  padding: 72px clamp(16px,4vw,48px);
  border-radius: var(--r-xl);
  background: var(--panel);
  color: var(--ink);
  text-align: center;
}
.shelf-panel h2 { margin: 0; font-size: 32px; }
.shelf-panel p { margin: 12px auto 0; max-width: 36em; color: var(--muted); }

.feature-band {
  display: grid;
  align-content: center;
  min-height: 100svh;
  min-width: 0;
  padding-block: var(--block-space);
  background: var(--yellow);
  color: var(--ink);
}
.feature-heading { margin-bottom: 28px; font-size: var(--size-rail-title); line-height: 1.1; }
.feature-heading span { display: block; color: var(--ink-76); }
.feature-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.5);
  gap: var(--gap);
  padding: 12px var(--gutter) 24px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
}
.feature-card {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  padding: var(--card-space);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
}
.feature-card h3 { margin: 0 0 10px; }
.feature-card p { margin: 0 0 20px; }
.feature-card code { justify-self: start; color: var(--accent-dark); }
.feature-gem {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--white);
  box-shadow: inset 0 2px 0 var(--white-40),inset 0 -4px 8px var(--ink-12),0 7px 15px -5px var(--accent-45);
}
.feature-gem svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-controls { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.rail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--r-round);
  background: var(--black);
  color: var(--white);
  font-size: 24px;
  text-decoration: none;
}
.rail-arrow:first-child { background: var(--ink-28); color: var(--black); }
.rail-arrow:disabled { background: var(--ink-18); color: var(--ink); cursor: default; }

[role="tablist"], .toc-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--ink);
}
[role="tab"], .toc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--ink);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
[role="tab"]:hover, .toc-tabs a:hover { background: var(--white); color: var(--accent-dark); }
[role="tab"][aria-selected="true"] { background: var(--accent-dark); color: var(--white); }
[role="tabpanel"] { min-width: 0; margin-top: 16px; }
.toc-tabs { margin-block: 16px 30px; }
.toc-tabs.is-sticky { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; }
.toc-tabs.is-static { position: static; }
:where(.prose,.doc-flow) :is(section,h2,h3)[id] { scroll-margin-top: 90px; }
.faq-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  list-style: none;
  border-radius: inherit;
  font-weight: var(--weight-bold);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--accent-dark); font: var(--weight-bold) 20px/1 var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }

.term-card, .client-card, .post-card { display: grid; align-content: start; gap: 12px; }
.term-card :is(h3,p), .client-card :is(h3,p), .post-card :is(h3,p) { margin: 0; }
.term-card code, .post-card time { color: var(--muted); font-size: var(--size-small); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.client-head, .client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.client-version:empty { display: none; }
.client-version:not(:empty) { color: var(--muted); font: var(--size-small)/1.6 var(--font-mono); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: var(--weight-bold);
}
.badge-first { background: var(--accent-dark); color: var(--white); }
.badge-recommended { background: var(--accent-14); color: var(--accent-dark); }
.badge-archived { background: var(--line); color: var(--ink); }
.status-dot { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent); }
.badge-archived .status-dot { background: var(--muted); }
.callout {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm);
  background: var(--panel);
  color: var(--ink);
}
.article-download {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  margin-block: 36px 0;
}
.article-download > div { flex: 1 1 15em; min-width: 0; }
.article-download h2 { margin-block: 0 .35em; }
.dl-fab {
  position: fixed;
  right: max(24px,env(safe-area-inset-right));
  bottom: max(24px,env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  box-shadow: inset 0 1px 0 var(--white-30),0 16px 34px -12px var(--ink-28);
  transition: transform var(--snap);
}
.dl-fab:hover { transform: translateY(-2px); }
.dl-fab svg { width: 18px; height: 18px; }

.table-wrap, .prose table, .doc-flow table, .wrap table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table, .doc-flow table, .wrap table, .data-table { display: block; overflow-x: auto; max-width: 100%; min-width: 0; }
.table-wrap > table { display: table; width: 100%; max-width: none; }
.data-table, .prose table, .doc-flow table, .wrap table {
  border-collapse: collapse;
  background: var(--white);
  color: var(--ink);
  text-align: start;
}
:is(.data-table, .prose table, .doc-flow table, .wrap table) :is(th,td) {
  min-width: 7em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: start;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table, .prose table, .doc-flow table, .wrap table) th { background: var(--panel); color: var(--ink); }
:is(.data-table, .prose table, .doc-flow table, .wrap table) code { overflow-wrap: anywhere; }

.preview-flow > * + * { margin-top: 36px; }
.preview-flow .btn-set { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,128px),1fr)); gap: 12px; }
.swatches li { min-width: 0; padding: 9px; border-radius: var(--r-sm); background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.swatches li::before { content: ""; display: block; height: 36px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sample); }
.s-bg { --sample: var(--bg); }
.s-glass { --sample: var(--bg-glass); }
.s-panel { --sample: var(--panel); }
.s-yellow { --sample: var(--yellow); }
.s-line { --sample: var(--line); }
.s-accent { --sample: var(--accent); }
.s-accent-dark { --sample: var(--accent-dark); }
.s-ink { --sample: var(--ink); }
.s-muted { --sample: var(--muted); }
.s-success { --sample: var(--success); }
.s-warn { --sample: var(--warn); }
.s-error { --sample: var(--error); }
.s-white { --sample: var(--white); }
.s-black { --sample: var(--black); }
.s-clear { --sample: var(--clear); }
.s-ink04 { --sample: var(--ink-04); }
.s-ink06 { --sample: var(--ink-06); }
.s-ink08 { --sample: var(--ink-08); }
.s-ink12 { --sample: var(--ink-12); }
.s-ink18 { --sample: var(--ink-18); }
.s-ink28 { --sample: var(--ink-28); }
.s-ink76 { --sample: var(--ink-76); }
.s-white30 { --sample: var(--white-30); }
.s-white40 { --sample: var(--white-40); }
.s-white55 { --sample: var(--white-55); }
.s-white75 { --sample: var(--white-75); }
.s-accent14 { --sample: var(--accent-14); }
.s-accent30 { --sample: var(--accent-30); }
.s-accent45 { --sample: var(--accent-45); }
.s-jc { --sample: var(--j-cobalt); }
.s-js { --sample: var(--j-sky); }
.s-jm { --sample: var(--j-magenta); }
.s-jp { --sample: var(--j-pink); }
.s-jg { --sample: var(--j-grass); }
.s-jl { --sample: var(--j-lime); }
.s-jy { --sample: var(--j-yellow); }
.s-jo { --sample: var(--j-orange); }
.s-lc { --sample: var(--jl-cobalt); }
.s-ls { --sample: var(--jl-sky); }
.s-lm { --sample: var(--jl-magenta); }
.s-lp { --sample: var(--jl-pink); }
.s-lg { --sample: var(--jl-grass); }
.s-ll { --sample: var(--jl-lime); }
.s-ly { --sample: var(--jl-yellow); }
.s-lo { --sample: var(--jl-orange); }
.s-gb { --sample: var(--jg-blue); }
.s-gp { --sample: var(--jg-pink); }
.s-gg { --sample: var(--jg-green); }
.s-go { --sample: var(--jg-orange); }
.s-ring { --sample: var(--rainbow-ring); }

@media (max-height: 820px) and (min-width: 721px) {
  .hero { padding-top: 28px; padding-bottom: 36px; }
  .word { --size-word: clamp(56px,5.8vw,84px); }
  .app { width: 100px; height: 100px; border-radius: var(--r-stamp); }
  .app img { width: 62px; height: 62px; }
  .mark, .hero .cta { margin-bottom: 24px; }
  .hero .cta { margin-top: 24px; margin-bottom: 0; }
  .facts { margin-top: 42px; }
}
@media (max-width: 1320px) {
  .side-l { transform: translateX(-60px) scale(.88); }
  .side-r { transform: translateX(60px) scale(.88); }
}
@media (max-width: 1080px) {
  .side-l { transform: translateX(-130px) scale(.72); }
  .side-r { transform: translateX(130px) scale(.72); }
  .facts { grid-template-columns: repeat(3,minmax(0,220px)); }
  .feature-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.5); }
}
@media (max-width: 720px) {
  .hero { padding: 32px 18px 40px; }
  .side-l, .side-r { opacity: .55; }
  .side-l { transform: translateX(-150px) scale(.5); }
  .side-r { transform: translateX(150px) scale(.5); }
  .mark { gap: 14px; margin-bottom: 22px; }
  .app { width: 64px; height: 64px; border-radius: var(--r-app-mobile); padding-top: 6px; }
  .app::before { height: 10px; }
  .app img { width: 40px; height: 40px; }
  .word { gap: 5px; }
  .tag { border-radius: var(--r-stamp-mobile); }
  .lede { font-size: var(--size-body); }
  .facts { --fact-icon: 34px; width: min(100%,500px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 33px; }
  .fact { padding: 24px 4px 10px; border-radius: var(--r-md); }
  .fact-t, .fact-t code { font-size: 13px; }
  .fact-s { font-size: 12px; }
  .fact-ico svg { width: 18px; height: 18px; }
  .fact-ico::after { inset: -10px; }
  .feature-track { grid-auto-columns: 100%; }
  .dl-fab { right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); min-height: 44px; font-size: var(--size-small); }
  .toc-tabs.is-sticky { position: static; }
}
@media (max-width: 380px) {
  .hero .cta { gap: 8px; margin-top: 22px; }
  .hero .btn { padding-inline: 12px; }
  .hero .plats { gap: 6px; margin-top: 18px; }
  .hero .plats a { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .dl-fab, .plats a { transition: none; }
}