:root {
  --type-device: 12.5px;
  --type-device-title: 12px;
  --type-device-meta: 11.5px;
  --type-peek: 30px;
  --type-peek-small: 24px;
  --ribbon-ink: linear-gradient(92deg, var(--ribbon-a) 0%, var(--ribbon-b) 52%, var(--ribbon-c) 100%);
}
.ribbon {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58vw;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.ribbon svg { display: block; width: 100%; height: 100%; }
.s-a { stop-color: var(--ribbon-a); }
.s-b { stop-color: var(--ribbon-b); }
.s-c { stop-color: var(--ribbon-c); }
.s-2 { stop-opacity: .25; }
.s-6 { stop-opacity: .6; }
.s-9 { stop-opacity: .95; }
.rb-halo { opacity: .5; }
.rb-back, .rb-fold { opacity: .9; }
.rb-sheen { fill: none; stroke: var(--sheen); stroke-width: 30; stroke-linecap: round; opacity: .34; }
.rb-sheen-thin { fill: none; stroke: var(--sheen); stroke-width: 3; stroke-linecap: round; opacity: .38; }
.rb-fib { fill: var(--sheen); }
.rb-fib-d { fill: var(--accent-dark); }
.rb-fiber { opacity: .12; }

.hero {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  min-height: max(620px, calc(100svh - var(--nav-h) - 44px));
  display: grid;
  align-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: 40px;
  padding-block: 44px;
}
.hero-grid > * { min-width: 0; }
.h1 { margin-top: 26px; line-height: 1.18; }
.ln { display: block; animation: title-rise .62s var(--ease) both; }
.ln-1 { color: var(--ink); }
.ln-2 { color: var(--muted); animation-delay: .1s; }
.ln-3 { animation-delay: .2s; }
.kw { color: var(--ink); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .kw { background: var(--ribbon-ink); -webkit-background-clip: text; background-clip: text; color: var(--clear); }
}
.mark { position: relative; display: inline-block; color: var(--ink); }
.mark::after {
  content: "";
  position: absolute;
  inset: auto 0 -.04em;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
  transform-origin: left center;
  animation: title-line .42s .72s var(--ease) both;
}
@keyframes title-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes title-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lede { margin-top: 20px; max-width: 31em; line-height: 1.75; color: var(--muted); }
.lede strong { color: var(--ink); }
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 31em;
}
.plat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-label);
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.plat-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.plat-ico svg { width: 14px; height: 14px; }
.plat:hover { color: var(--ink); }
.plat:hover .plat-ico { border-color: var(--accent-ring); color: var(--accent); }

.device {
  position: relative;
  justify-self: center;
  width: 520px;
  max-width: calc(100% + 28px);
  margin-right: 64px;
  transform: rotate(-2deg);
}
.win {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  font-size: var(--type-device);
}
.win-bar { display: flex; align-items: center; height: 36px; padding-left: 12px; }
.win-logo { width: 18px; height: 18px; flex: 0 0 18px; }
.win-title { margin-left: 9px; font-size: var(--type-device-title); color: var(--muted); }
.win-ctrls { display: flex; margin-left: auto; height: 100%; }
.ctl { position: relative; width: 42px; height: 100%; }
.ctl::before, .ctl::after { content: ""; position: absolute; left: 50%; top: 50%; }
.ctl-min::before { width: 10px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.ctl-max::before { width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: var(--r-line); transform: translate(-50%, -50%); }
.ctl-close::before, .ctl-close::after { width: 12px; height: 1px; background: var(--ink); }
.ctl-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ctl-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.win-body { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
.win-side { padding: 6px 8px 14px; }
.win-side li {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 12px;
  margin-bottom: 2px;
  border-radius: var(--r-pill);
  color: var(--muted);
}
.win-side .is-cur { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-medium); }
.win-main { padding: 4px 16px 16px 6px; min-width: 0; }
.win-h { margin-bottom: 10px; font-size: var(--type-brand); font-weight: var(--weight-medium); letter-spacing: -.01em; }
.grp { margin: 0 0 6px 2px; color: var(--muted); font-size: var(--type-device-meta); font-weight: var(--weight-strong); }
.set-card { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-panel); color: var(--ink); }
.grp + .set-card:not(:last-child) { margin-bottom: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 33px; padding: 3px 12px; }
.row + .row { border-top: 1px solid var(--line); }
.sw { position: relative; width: 34px; height: 18px; flex: 0 0 34px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--muted); }
.sw.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sw.on::after { top: 2px; left: 18px; width: 12px; height: 12px; background: var(--on-accent); }
.field {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-inline: 10px;
  min-width: 72px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--type-device-meta);
}
.field.mono, .addr { font-family: var(--font-mono); }
.addr { font-size: var(--type-device-meta); color: var(--muted); }
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-panel-2);
  color: var(--ink);
  flex: 0 0 auto;
}
.seg span {
  display: grid;
  place-items: center;
  min-height: 20px;
  padding-inline: 10px;
  border-radius: var(--r-xs);
  font-size: var(--type-device-meta);
  color: var(--muted);
}
.seg .is-on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-seg); }
.tray {
  position: absolute;
  right: -72px;
  bottom: -62px;
  z-index: 2;
  width: 206px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--menu-glass);
  color: var(--ink);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-menu);
  font-size: var(--type-device);
}
.tray li { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding-inline: 10px; border-radius: var(--r-xs); }
.tray li.is-hover { background: var(--bg-panel-2); color: var(--ink); }
.tray .meta { font-size: var(--type-device-meta); color: var(--muted); }
.tray .sep { min-height: 1px; padding: 0; margin: 4px 6px; background: var(--line); }

.next { position: relative; padding-block: 26px 96px; }
.peek-title { margin-top: 18px; max-width: 24em; font-size: var(--type-peek); line-height: 1.3; }
.peek-title span { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.feature-grid > :first-child { grid-column: span 2; }
.feature-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 222px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.feature-card summary { position: relative; display: block; padding: 20px 58px 16px 20px; list-style: none; }
.feature-card summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.feature-card summary::after {
  content: "+";
  position: absolute;
  display: grid;
  place-items: center;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--ink);
  font-size: var(--type-h3);
}
.feature-card[open] summary::after { content: "−"; }
.feature-card summary:focus-visible { outline-offset: -4px; border-radius: var(--r-sm); }
.feature-title { display: block; font: var(--type-h3)/1.25 var(--font-display); }
.feature-detail { padding: 14px 20px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.feature-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: start;
  min-height: 126px;
  padding: 16px 20px;
}
.feature-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(to bottom, var(--bg), var(--clear)), var(--ribbon-ink);
  opacity: .23;
  pointer-events: none;
}
.feature-card[open] .feature-scene::before { border-radius: 0; }
.feature-mini {
  min-width: 0;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  font-size: var(--type-small);
}
.feature-mini pre { padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.feature-mini .field { min-width: 0; }

.tab-set { min-width: 0; }
.tab-rail, .toc-tabs { display: flex; gap: 4px 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab-rail [role="tab"], .toc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 6px 12px;
  border: 0;
  border-bottom: 2px solid var(--clear);
  background: var(--clear);
  color: var(--muted);
  font-size: var(--type-label);
  text-decoration: none;
}
.tab-rail [aria-selected="true"], .tab-rail [role="tab"]:hover, .toc-tabs a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab-rail [role="tab"]:focus-visible, .toc-tabs a:focus-visible { outline-offset: -4px; border-radius: var(--r-sm); }
.tab-pane { min-width: 0; padding-block: 20px; }
.toc-tabs { margin-block: 16px 28px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-card); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary { display: block; position: relative; list-style: none; min-height: var(--tap); padding: 12px 44px 12px 16px; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 11px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline-offset: -4px; border-radius: var(--r-sm); }
.faq-answer { border-top: 1px solid var(--line); padding: 14px 16px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 14px; }
.term-card dt { font: var(--weight-medium) var(--type-h3)/1.25 var(--font-display); }
.term-card dd, .client-card p, .post-card p { color: var(--muted); }
.client-card { display: grid; align-content: start; }
.client-card > * { min-width: 0; }
.client-head { display: flex; gap: 12px; align-items: center; }
.client-head > * { min-width: 0; }
.app-icon { width: 56px; height: 56px; }
[data-rev]:empty { display: none; }
.badge-first { border-color: var(--accent-ring); background: var(--bg-panel); color: var(--ink); font-weight: var(--weight-strong); }
.badge-rec { background: var(--bg); color: var(--ink); }
.badge-archived { background: var(--bg-panel-2); color: var(--muted); }
.badge-archived::before, .badge-rec::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--warn);
}
.badge-rec::before { background: var(--success); }
.post-meta { color: var(--muted); font-size: var(--type-small); }
.post-card h3, .client-card h3 { overflow-wrap: break-word; }

.callout {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--ink);
}

.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.data-table, .prose table, .reading table { border-collapse: collapse; text-align: start; font-size: var(--type-label); }
.data-table { width: 100%; }
:is(.data-table, .prose table, .reading table) :is(th, td) {
  min-width: 7em;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table, .prose table, .reading table) th { background: var(--bg-panel-2); color: var(--ink); }
:is(.data-table, .prose table, .reading table) caption { padding-block: 6px; text-align: start; color: var(--muted); }
.prose table, .reading table {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
:is(.prose, .reading) .table-wrap > table { display: table; width: 100%; overflow: visible; }

.article-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}
.article-download > * { margin: 0; }
.article-download p { color: var(--muted); margin-top: 5px; }
.dl-fab {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  z-index: 2;
  max-width: calc(100% - 32px);
}
.dl-fab-clearance { padding-bottom: 82px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 10px; }
.swatch { padding: 0; overflow: hidden; }
.swatch:has(.sw-clear) { background: var(--bg-panel-2); color: var(--ink); }
.swatch::before { content: ""; display: block; height: 48px; background: var(--sample, var(--bg)); }
.swatch code { display: block; margin: 0; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: var(--type-small); }
.swatch:has(.sw-bg) { --sample: var(--bg); }
.swatch:has(.sw-panel) { --sample: var(--bg-panel); }
.swatch:has(.sw-panel2) { --sample: var(--bg-panel-2); }
.swatch:has(.sw-line) { --sample: var(--line); }
.swatch:has(.sw-strong) { --sample: var(--line-strong); }
.swatch:has(.sw-ink) { --sample: var(--ink); }
.swatch:has(.sw-muted) { --sample: var(--muted); }
.swatch:has(.sw-accent) { --sample: var(--accent); }
.swatch:has(.sw-dark) { --sample: var(--accent-dark); }
.swatch:has(.sw-soft) { --sample: var(--accent-soft); }
.swatch:has(.sw-ring) { --sample: var(--accent-ring); }
.swatch:has(.sw-success) { --sample: var(--success); }
.swatch:has(.sw-warn) { --sample: var(--warn); }
.swatch:has(.sw-error) { --sample: var(--error); }
.swatch:has(.sw-ra) { --sample: var(--ribbon-a); }
.swatch:has(.sw-rb) { --sample: var(--ribbon-b); }
.swatch:has(.sw-rc) { --sample: var(--ribbon-c); }
.swatch:has(.sw-on) { --sample: var(--on-accent); }
.swatch:has(.sw-sheen) { --sample: var(--sheen); }
.swatch:has(.sw-veil) { --sample: var(--veil); }
.swatch:has(.sw-glass) { --sample: var(--glass); }
.swatch:has(.sw-menu) { --sample: var(--menu-glass); }
.swatch:has(.sw-scrim) { --sample: var(--scrim); }
.swatch:has(.sw-clear) { --sample: var(--clear); }
.swatch:has(.sw-blend) { --sample: var(--ribbon-ink); }

@media (max-width: 1180px) {
  .device { margin-right: 48px; width: 480px; }
  .tray { right: -48px; }
}
@media (max-width: 960px) {
  .ribbon { width: 100%; height: 300px; }
  .ribbon svg {
    -webkit-mask-image: linear-gradient(to bottom, var(--ink) 55%, var(--clear));
    mask-image: linear-gradient(to bottom, var(--ink) 55%, var(--clear));
  }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; padding-block: 130px 110px; }
  .device { width: min(520px, 100% - 40px); margin-right: 40px; }
  .tray { right: -36px; bottom: -56px; width: 188px; }
  .platforms { justify-content: center; max-width: max-content; }
}
@media (max-width: 640px) {
  .hero-grid { gap: 44px; padding-block: 102px 100px; }
  .platforms { gap: 8px 12px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid > :first-child { grid-column: auto; }
  .article-download { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 560px) {
  .device { width: 100%; margin-right: 0; }
  .win-body { grid-template-columns: 64px minmax(0, 1fr); }
  .win-side { padding-inline: 4px; }
  .win-side li { padding-inline: 7px; }
  .win-main { padding-inline: 4px 8px; }
  .win-title { display: none; }
  .row { flex-wrap: wrap; padding-inline: 7px; }
  .seg span { padding-inline: 7px; }
  .tray { right: 0; bottom: -76px; }
  .peek-title { font-size: var(--type-peek-small); }
  .ctas .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln, .mark::after { animation: none; }
  .plat, .plat-ico, .feature-card { transition: none; }
  .feature-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .kw { background: none; color: var(--ink); }
  .mark::after, .tab-slider { border-bottom: 2px solid currentColor; }
}