/* Existing graphite artwork, self-hosted type and native product images are
   authoritative. This layer adds navigation, comparison and reading tools. */
:root {
  --enh-panel: #111517;
  --enh-panel-hover: #1b2420;
  --enh-edge: #3d4a44;
  --enh-soft: #c6d4cc;
  --enh-label: #a8d4bd;
  --enh-rule: #2b3330;
  --enh-shade: #030505c9;
  --enh-clear: transparent;
  --enh-ease: cubic-bezier(.2,.7,.2,1);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-label { display: flex; gap: 10px; align-items: center; color: var(--enh-label); font-size: 11px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.section-label::before { content: ''; height: 1px; width: 22px; background: currentColor; }
.hero > .section-label { justify-content: center; margin: 0 auto 22px; }
.hero > h1 { max-width: 1020px; }
/* Route headings receive screen-reader focus without an interactive control ring. */
main h1[tabindex="-1"]:focus { outline: none; }
.section-head > div > .section-label { margin-bottom: 16px; }
.hero-facts { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 21px auto 0; font-size: 12px; color: var(--enh-soft); }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { width: 14px; height: 14px; color: var(--enh-label); }
.command-trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--enh-edge); border-radius: 7px; background: var(--enh-clear); color: var(--enh-soft); font-size: 13px; }
.command-trigger:hover { background: var(--enh-panel-hover); color: var(--ink); }
kbd { font-family: inherit; font-size: 11px; line-height: 1; border: 1px solid var(--enh-edge); border-radius: 4px; padding: 4px 5px; color: var(--muted); }
.nav-actions { gap: 12px; }
#products .product-overview { gap: 20px; }
#products .product-overview article { position: relative; display: flex; flex-direction: column; border: 1px solid var(--enh-edge); border-radius: 12px; padding: 28px; background: linear-gradient(145deg,var(--enh-panel-hover),var(--enh-panel) 55%); transition: border-color 180ms var(--enh-ease),background 180ms var(--enh-ease); }
#products .product-overview article:hover,#products .product-overview article:focus-within { border-color: var(--enh-label); }
.collection-number { font-size: 11px; letter-spacing: .1em; color: var(--enh-soft); margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between; }
.collection-number > span:last-child { display: inline-flex; gap: 7px; align-items: center; }
#products .product-overview .product-identity { margin-bottom: 18px; }
#products .product-overview h3 { font-size: 21px; margin-bottom: 12px; }
#products .product-overview p { min-height: 110px; font-size: 15px; }
#products .product-overview .channel-label { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 20px; }
#products .product-overview .text-link { justify-content: space-between; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--enh-rule); }
.fit-section { margin-top: 36px; padding-bottom: 50px; }
.fit-section > h2 { font-size: 28px; margin-bottom: 22px; }
.fit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--enh-edge); border-radius: 12px; overflow: clip; background: var(--enh-panel); }
.fit-grid article { padding: 25px 27px; border-right: 1px solid var(--enh-rule); }
.fit-grid article:last-child { border-right: 0; }
.fit-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 4px; }
.fit-grid h3 .icon { color: var(--enh-label); }
.fit-grid .fit-channel { color: var(--enh-soft); font-size: 13px; }
.fit-grid dl { margin: 23px 0 16px; }
.fit-grid dl > div { margin-top: 16px; }
.fit-grid dt { color: var(--muted); font-size: 12px; }
.fit-grid dd { margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.fit-grid .text-link { justify-content: space-between; width: 100%; margin-top: 8px; border-top: 1px solid var(--enh-rule); padding-top: 12px; }
.guide-tools { border: 1px solid var(--enh-edge); border-radius: 10px; background: var(--enh-panel); padding: 18px 20px; margin-bottom: 25px; }
.guide-search-row { display: flex; gap: 10px; align-items: center; }
.guide-search-row .search { flex: 1; width: auto; background: var(--bg); min-width: 0; }
.guide-search-row .search input { min-width: 0; width: 100%; }
.guide-search-clear { padding: 8px 12px; border: 1px solid var(--enh-edge); background: var(--enh-clear); color: var(--enh-soft); border-radius: 7px; min-height: 44px; flex-shrink: 0; font-size: 13px; }
.guide-search-clear:hover { background: var(--enh-panel-hover); }
.guide-tools .note { font-size: 12px; margin-top: 10px; }
.chapter-empty { padding: 30px 22px; border: 1px solid var(--enh-rule); border-radius: 10px; }
.chapter-empty h3 { margin: 0 0 10px; }
.chapter-empty .text-link { margin-top: 12px; border: 0; background: none; padding: 0; }
.feature-catalog [data-chapter-index] { scroll-margin-top: 120px; }
.feature-catalog [data-chapter-index]:target { border-color: var(--enh-label); }
.chapter-number { color: var(--enh-label); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 400; margin-right: 10px; }
.site-search-dialog { width: min(620px,calc(100% - 32px)); max-height: min(740px,calc(100dvh - 48px)); padding: 0; margin: auto; color: var(--ink); background: var(--enh-panel); border: 1px solid var(--enh-edge); border-radius: 14px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px var(--enh-shade); }
.site-search-dialog::backdrop { background: var(--enh-shade); }
.search-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 28px 28px 22px; }
.search-dialog-head h2 { font-size: 29px; line-height: 1.2; margin-top: 10px; }
.search-close { background: var(--enh-clear); border: 1px solid var(--enh-edge); color: var(--enh-soft); border-radius: 7px; width: 40px; height: 40px; flex-shrink: 0; font-size: 26px; line-height: 1; }
.search-close:hover { background: var(--enh-panel-hover); }
.site-search-field { display: flex; gap: 12px; align-items: center; border-block: 1px solid var(--enh-rule); background: var(--bg); padding: 14px 28px; }
.site-search-field > .icon { color: var(--enh-label); }
.site-search-field input { width: 100%; min-width: 0; min-height: 36px; border: 0; background: var(--enh-clear); color: var(--ink); font-size: 16px; }
.site-search-field input::placeholder { color: var(--muted); opacity: 1; }
.site-search-field input:focus-visible { outline-offset: 3px; }
.search-count { padding: 16px 28px 5px; color: var(--muted); font-size: 12px; }
.site-search-results { padding: 6px 12px 16px; }
.site-search-results ol { list-style: none; padding: 0; margin: 0; }
.site-search-results a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 16px; border-radius: 8px; min-height: 66px; }
.site-search-results a:hover,.site-search-results a:focus-visible { background: var(--enh-panel-hover); }
.site-search-results a:focus-visible { outline-offset: -2px; }
.site-search-results strong { display: block; font-weight: 500; font-size: 14px; line-height: 1.5; }
.site-search-results small { display: block; color: var(--enh-soft); font-size: 12px; margin-top: 4px; }
.site-search-results a > span:last-child { color: var(--enh-label); }
.search-empty { padding: 28px 16px; }
.search-empty p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.search-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 28px; font-size: 11px; color: var(--enh-soft); border-top: 1px solid var(--enh-rule); }
.download-release[data-state="loading"] #installer-download { cursor: progress; }
.download-release[data-state="unavailable"] .release-empty > .icon { color: var(--amber); }
.release-empty .text-link { margin-top: 15px; }

@media(max-width:1100px) {
  .nav-links { gap: 16px; }
  .command-trigger kbd { display: none; }
  #products .product-overview article { padding: 23px; }
  .fit-grid article { padding: 23px; }
}
@media(max-width:900px) {
  .command-trigger > span,.command-trigger kbd { display: none; }
  .command-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
}
@media(max-width:760px) {
  .hero > .section-label { margin-bottom: 18px; font-size: 10px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; max-width: 440px; font-size: 11px; line-height: 1.5; }
  .hero-facts span { justify-content: center; align-items: flex-start; text-align: left; }
  .hero-facts .icon { flex-shrink: 0; margin-top: 1px; }
  #products .product-overview { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #products .product-overview article { padding: 25px; }
  #products .product-overview p { min-height: 0; margin-bottom: 24px; }
  #products .product-overview .channel-label { margin-bottom: 18px; }
  .collection-number { margin-bottom: 20px; }
  .fit-grid { grid-template-columns: minmax(0,1fr); }
  .fit-grid article { border-right: 0; border-bottom: 1px solid var(--enh-rule); }
  .fit-grid article:last-child { border-bottom: 0; }
  .fit-grid dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 8px; }
  .fit-section { padding-bottom: 32px; }
}
@media(max-width:480px) {
  .nav { gap: 8px; }
  .nav-actions { gap: 8px; }
  .company-logo { width: 128px; height: 40px; }
  .nav-actions .lang,.menu,.command-trigger { min-width: 44px; width: 44px; min-height: 44px; }
  .guide-tools { padding: 16px; }
  .guide-search-row { flex-wrap: wrap; }
  .guide-search-clear { min-height: 40px; }
  .site-search-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 11px; }
  .search-dialog-head { padding: 22px 20px 18px; gap: 10px; }
  .search-dialog-head h2 { font-size: 25px; }
  .site-search-field { padding: 13px 20px; }
  .search-count { padding-inline: 20px; }
  .search-hint { padding-inline: 20px; }
  .fit-grid dl { grid-template-columns: minmax(0,1fr); gap: 0; }
}
@media(prefers-reduced-motion:reduce) {
  #products .product-overview article { transition: none; }
}
@media(forced-colors:active) {
  #products .product-overview article,.site-search-dialog,.fit-grid,.guide-tools { background: Canvas; color: CanvasText; border-color: CanvasText; }
}

/* Home refinements: Soffit's soft lighting and Roadmap Ascent's fine axis are
   public visual references. Geometry and styles below are independently authored. */
#app[data-route="home"] {
  --lower-light: #b0afff;
  --lower-edge: #414454;
  --lower-surface: #12151c;
}
#app[data-route="home"] #products .product-overview article {
  isolation: isolate;
  overflow: hidden;
  border-color: var(--lower-edge);
  background: radial-gradient(ellipse at 100% 0%,#6d5cbe26,transparent 62%),linear-gradient(145deg,#181e24,#111517 65%);
}
#app[data-route="home"] #products .product-overview article::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 1px;
  background: linear-gradient(90deg,transparent,#a59ce68c,transparent);
  pointer-events: none;
}
#app[data-route="home"] #products .product-overview article:hover,
#app[data-route="home"] #products .product-overview article:focus-within { border-color: var(--lower-light); }
#app[data-route="home"] #products .mark-caption { min-height: 44px; }
#app[data-route="home"] .journey { list-style: none; padding: 0; gap: 30px; }
#app[data-route="home"] .journey > li { position: relative; padding-top: 54px; }
#app[data-route="home"] .journey .step {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #77789c;
  border-radius: 50%;
  background: var(--lower-surface);
  color: #d8d8ef;
  font-size: 12px;
  line-height: 1;
}
#app[data-route="home"] .journey > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 44px;
  width: calc(100% - 14px);
  height: 1px;
  background: linear-gradient(90deg,#72719b,#636780);
  pointer-events: none;
}
#app[data-route="home"] .closing { background: #0a0b10; }
#app[data-route="home"] .closing::before {
  display: block;
  background: radial-gradient(ellipse at 90% 65%,#463b9e29,transparent 62%);
}
.closing-filaments { position: absolute; z-index: -1; width: 850px; height: 340px; right: -220px; top: -35px; opacity: .66; pointer-events: none; }
#app[data-route="home"] .closing .btn { border-radius: 999px; }
#app[data-route="home"] .closing .btn:focus-visible,
#app[data-route="home"] #products .text-link:focus-visible { outline: 2px solid var(--lower-light); outline-offset: 5px; }
@media(min-width:761px) and (max-width:1100px) {
  #app[data-route="home"] #products .mark-caption { min-height: 66px; }
}
@media(max-width:900px) {
  #app[data-route="home"] .journey { grid-template-columns: minmax(0,1fr); gap: 0; }
  #app[data-route="home"] .journey > li { padding: 0 0 30px 54px; }
  #app[data-route="home"] .journey > li:last-child { padding-bottom: 0; }
  #app[data-route="home"] .journey > li:not(:last-child)::after {
    top: 44px;
    left: 16px;
    width: 1px;
    height: calc(100% - 48px);
    background: linear-gradient(#72719b,#636780);
  }
  #app[data-route="home"] .journey h3 { padding-top: 4px; }
}
@media(max-width:760px) {
  #app[data-route="home"] #products .mark-caption { min-height: 0; }
  .closing-filaments { width: 650px; height: 300px; right: -330px; top: auto; bottom: -75px; opacity: .5; }
}
@media(forced-colors:active) {
  #app[data-route="home"] #products .product-overview article,
  #app[data-route="home"] .journey .step,
  #app[data-route="home"] .closing { background: Canvas; color: CanvasText; border-color: CanvasText; }
  #app[data-route="home"] #products .product-overview article::before,
  #app[data-route="home"] .closing::before,.closing-filaments { display: none; }
  #app[data-route="home"] .journey > li:not(:last-child)::after { background: CanvasText; }
}

/* The same visual system continues through every customer route. Reading and
   form surfaces stay quiet; the local Hero is the only animated background. */
:root { --bg: #09090b; --surface: #11131a; --raised: #191b25; --line: #2d303c; --focus: var(--workspace-accent); }
::selection { background: #4a456e; color: #fff; }
.nav-links a[aria-current=page] { text-decoration-color: var(--workspace-accent); }
.nav-links a[aria-current=page]::after { background: var(--workspace-accent); }
.product-context { background: #0e0f16; border-color: #2d303c; }
.product-context nav a[aria-current=page] { color: #efedff; border-color: var(--workspace-accent); }
#app:not([data-route="home"]) .page-head h1 { max-width: 22ch; }
#app:not([data-route="home"]) .page-head > p { color: var(--workspace-soft); }
#app:not([data-route="home"]) .page-head + :is(.guide-layout,.support-layout,.checkout-layout,.pricing,.section) { margin-top: 32px; }
#app:not([data-route="home"]) .text-link:hover { color: #d9d6ff; }
#app:not([data-route="home"]) :is(.page-head,.product-detail-top,.resource-item,.closing) .btn { border-radius: 999px; }
#app:not([data-route="home"]) :is(.price-column,.order-summary,.download-release,.support-form) { background: var(--workspace-panel); border-color: #414454; }
#app:not([data-route="home"]) .price-column { background: radial-gradient(ellipse at 100% 0%,#6d5cbe26,transparent 55%),var(--workspace-panel); }
.resource-jumps { gap: 10px; padding-block: 20px 28px; border-color: #2d303c; }
.resource-jumps a { padding: 10px 16px; border: 1px solid #3d4051; border-radius: 999px; color: #deddeb; line-height: 1.5; }
.resource-jumps a:hover { background: #1d1e2c; border-color: #77779b; text-decoration: none; }
.resource-item { border-color: #30333f; }
.resource-item > .button-row { gap: 10px; }
.guide-sidebar > a:hover { background: #1b1d29; }
.guide-sidebar > a.active { background: #242337; color: #f0edff; }
.guide-tools,.gallery-filter { background: var(--workspace-panel); border-color: #414454; }
.guide-sidebar .btn { color: #111316; }
.download-products { background: #10121a; border-color: #3e4151; }
.download-product.selected { color: #f0edff; background: #242337; border-color: #77779b; }
.download-product.selected > .icon { color: var(--workspace-accent); }
.download-product.selected small { color: #d1cfea; }
.download-product:hover { background: #1d1e2c; }
.field input,.field select,.field textarea { background: #0e1018; border-color: #4c4e62; caret-color: #c5c1ff; }
@media(max-width:650px) {
  .resource-jumps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-block: 16px 24px; }
  .resource-jumps a { justify-content: center; padding-inline: 10px; font-size: 13px; }
  .resource-jumps .icon { flex-shrink: 0; width: 16px; height: 16px; }
}
@media(forced-colors:active) {
  #app:not([data-route="home"]) :is(.price-column,.order-summary,.download-release,.support-form),
  .resource-jumps a,.guide-tools,.gallery-filter,.download-products,.field input,.field select,.field textarea { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .guide-sidebar > a.active,.download-product.selected { background: Highlight; color: HighlightText; }
  .download-product.selected small { color: HighlightText; }
}

/* Two currently public products; preserve the existing mobile stack. */
@media(min-width:801px){.product-overview,.fit-grid,.pricing,.directory-jumps,.download-products{grid-template-columns:repeat(2,minmax(0,1fr));}}
