/* =========================================================================
   HDTools design system — single stylesheet.
   Replaces the 18 legacy layers (index.css, site.css, stage*.css …).

   Rules of this file:
   1. Every size, colour, radius and duration comes from a token in :root.
   2. No !important (the only exceptions are reduced-motion resets).
   3. One container, one gutter, one section rhythm for every page.
   4. Components are styled once; page differences use modifiers.

   Contents
   01 Tokens            07 Buttons & links       13 Home: products
   02 Font              08 Header & navigation   14 Home: featured news
   03 Base / reset      09 Footer                15 Home: alpha notice
   04 Layout            10 Modals                16 Reveal motion
   05 Typography        11 Video preview card    17 Responsive
   06 Section heads     12 Home: hero & intro
   ========================================================================= */

/* 01 Tokens ------------------------------------------------------------- */
:root {
  /* Layout */
  --container: 1120px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --header-h: 48px;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Section rhythm: the only three vertical paddings used by sections */
  --section-y: clamp(48px, 5.6vw, 80px);
  --hero-y: clamp(40px, 7vw, 104px);
  --home-hero-h: 548px;
  --band-y: clamp(32px, 3.6vw, 48px);
  --intro-y: clamp(32px, 3vw, 40px);
  --head-gap: clamp(28px, 3vw, 40px);
  --row-gap: clamp(28px, 4.4vw, 56px);
  --row-y: clamp(28px, 3vw, 40px);

  /* Type scale */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-13: 13px;
  --fs-md: 14px;
  --fs-15: 15px;
  --fs-lg: 16px;
  --fs-h4: 20px;
  --fs-h3: clamp(22px, 2vw, 26px);
  --fs-hero-card: 26px;
  --fs-h2: clamp(28px, 2.6vw, 34px);
  --fs-h1: clamp(28px, 2.8vw, 38px);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.7;
  --ls-title: -0.022em;
  --ls-caps: 0.13em;

  /* Colour: dark surfaces */
  --navy-950: #121c32;
  --navy-900: #1e2638;
  --navy-850: #1c2942;
  --navy-800: #1d2941;
  --navy-700: #26344e;
  --navy-600: #314665;

  /* Colour: light surfaces */
  --paper: #f5f8fe;
  --mist: #e5e9f1;
  --fog: #d6dbe7;

  /* Colour: text on light */
  --ink: #1d2b47;
  --ink-2: #324a73;
  --text: #526d98;
  --text-2: #4d678f;
  --muted: #7185a5;
  --eyebrow: #8399bb;
  --link: #456de4;
  --link-hover: #2f56cf;
  --rule: rgba(68, 91, 133, 0.16);

  /* Colour: text on dark */
  --on-dark: #f7f8fc;
  --on-dark-2: rgba(228, 238, 255, 0.96);
  --on-dark-soft: rgba(185, 205, 240, 0.78);
  --on-dark-muted: rgba(150, 176, 218, 0.62);
  --accent: #8ea9d2;
  --accent-label: rgba(142, 169, 210, 0.6);
  --rule-dark: rgba(93, 119, 164, 0.14);

  /* Brand accents */
  --revit: #4162e8;
  --revit-strong: #35568f;
  --revit-line: #4c73b3;
  --max: #2880a0;
  --max-strong: #285f72;
  --max-line: #3d8297;
  --hexa-strong: #405879;
  --hexa-line: #5a7499;
  --neutral-strong: #34445f;
  --neutral-line: #526987;

  /* Radius */
  --r-btn: 5px; /* buttons and tabs: clearly less round than cards */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-card: 0 12px 28px rgba(25, 38, 65, 0.09);
  --shadow-float: 0 18px 38px rgba(6, 12, 26, 0.22);
  --shadow-modal: 0 32px 72px rgba(6, 10, 22, 0.54);

  /* Controls */
  --control-h: 38px;
  --control-h-touch: 42px;
  --control-h-compact: 28px;
  --control-h-card-touch: 32px;

  /* Motion */
  /* Motion: soft deceleration everywhere, nothing snaps.
     --ease-soft is the default for anything that enters or moves. */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 0.82, 0.24, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-med: 480ms;
  --t-slow: 1000ms;
}

/* 02 Font --------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 03 Base / reset ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

img, svg, canvas, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(132, 177, 255, 0.92);
  outline-offset: 3px;
}

main.page {
  display: block;
  overflow-x: clip;
}

.section-anchor {
  display: block;
  position: relative;
  top: calc(-1 * var(--header-h));
}

/* 04 Layout ------------------------------------------------------------- */
/* The one container every section, header and overlay aligns to. */
.standard-container,
.content-strip__inner,
.nav-inner,
.nav-overlay-inner,
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* 05 Typography --------------------------------------------------------- */
.text-eyebrow,
.intro-band__eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--eyebrow);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.text-page-title,
.intro-band h1 {
  color: var(--ink-2);
  font-size: var(--fs-h1);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.text-section-title {
  color: var(--ink);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
}

.text-card-title {
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: var(--ls-title);
}

.text-body {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.text-body-large {
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.65;
  text-wrap: pretty;
}

.text-metadata,
.text-caption {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.text-metadata {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Balanced titles: the renderer splits headings into lines on purpose. */
.balanced-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.balanced-title__line {
  max-width: 100%;
}

.responsive-copy--compact {
  display: none;
}

/* 06 Section heads ------------------------------------------------------ */
.standard-section-head {
  max-width: 780px;
  margin-bottom: var(--head-gap);
}

.standard-section-head .text-body-large {
  margin-top: var(--s-3);
}

.standard-section-head--catalog-centered {
  margin-inline: auto;
  text-align: center;
}

/* 07 Buttons & links ---------------------------------------------------- */
.standard-button,
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--control-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  color: #f7fbff;
  font-size: var(--fs-sm);
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition:
    background-color var(--t-base) var(--ease-soft),
    border-color var(--t-base) var(--ease-soft),
    color var(--t-base) var(--ease-soft),
    filter var(--t-base) var(--ease-soft),
    box-shadow var(--t-med) var(--ease-soft),
    transform var(--t-med) var(--ease-soft);
}

.standard-button:active:not(.is-disabled),
.hero-btn:active:not(.is-disabled) {
  transform: scale(0.985);
  transition-duration: 90ms;
}

.standard-button:hover:not(.is-disabled),
.standard-button:focus-visible {
  filter: brightness(1.1);
}

.standard-button--revit.standard-button--primary {
  background: var(--revit-strong);
  border-color: var(--revit-line);
}

.standard-button--max.standard-button--primary {
  background: var(--max-strong);
  border-color: var(--max-line);
}

.standard-button--hexa.standard-button--primary,
.standard-button--site.standard-button--primary {
  background: var(--hexa-strong);
  border-color: var(--hexa-line);
}

.standard-button--secondary {
  background: rgba(52, 68, 95, 0.05);
  border-color: rgba(52, 68, 95, 0.22);
  color: #34445f;
}

.standard-button.is-disabled,
.hero-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--link);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 08 Header & navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* iPhone (iOS 26) tints the area around the address bar from the colour of the
     element stuck to the top edge itself, so the sticky box carries the colour. */
  background-color: var(--navy-900);
}

/* In-app browsers on iPhone (Telegram and others) show the page under their own
   translucent top bar: the bar's own colour runs upward, so nothing scrolls
   visibly above it. In an ordinary browser this strip is above the screen. */
.site-header::before,
html.product-category-docked .category-navigation-band::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 240px;
  background: inherit;
  pointer-events: none;
}

/* Dim layer behind the open dropdown. */
.site-header::after {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 900;
  background: rgba(10, 17, 30, 0.26);
  -webkit-backdrop-filter: blur(5px) saturate(0.96);
  backdrop-filter: blur(5px) saturate(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms var(--ease-soft), visibility 0s linear 420ms;
}

/* The blur samples what is behind the layer (no filter on the page itself),
   so the screen edges stay clean. */
html.nav-blur-visible .site-header::after {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms var(--ease-soft), visibility 0s;
}

.site-header-bar {
  position: relative;
  z-index: 1100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--rule-dark);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.nav-logo {
  display: flex;
  justify-self: start;
  width: 28px;
  height: 28px;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 18px 0;
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 12px;
  transition: color var(--t-fast) var(--ease);
}

.nav-item.is-active .nav-link,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--on-dark);
}

.nav-user {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--header-h);
  max-width: 230px;
  color: var(--on-dark);
}

.nav-user__text {
  max-width: 140px;
  overflow: hidden;
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color var(--t-fast) var(--ease);
}

.nav-user:hover .nav-user__text,
html.is-signed-in .nav-user__text {
  color: var(--on-dark);
}

.nav-user[hidden] {
  display: none;
}

.nav-user__icon,
.nav-user__icon img {
  display: inline-flex;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.nav-mobile-toggle,
.nav-account {
  display: none;
}

/* Right side of the header: language, then the account. */
.nav-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}

/* Language switcher */
.nav-lang {
  position: relative;
}

.nav-lang__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--header-h);
  color: var(--on-dark-soft);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease);
}

.nav-lang__button:hover,
.nav-lang.is-open .nav-lang__button {
  color: var(--on-dark);
}

.nav-lang__globe {
  opacity: 0.85;
}

.nav-lang__list {
  position: absolute;
  top: calc(100% - 8px);
  right: -10px;
  z-index: 1200;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(170, 192, 225, 0.12);
  border-radius: 12px;
  background: #1f2a40;
  box-shadow: 0 22px 44px -18px rgba(4, 8, 18, 0.6);
  list-style: none;
  animation: nav-lang-in 260ms var(--ease-soft) both;
}

@keyframes nav-lang-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.nav-lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c3d1ea;
  font-size: var(--fs-sm);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-lang__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.nav-lang__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-lang__item.is-current {
  color: #fff;
}

.nav-lang__item.is-current::before {
  background: var(--accent);
}

.nav-lang-row {
  display: none;
}

/* Dropdown overlay. index.js animates .nav-overlay-inner height. */
.nav-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--navy-900);
  box-shadow: 0 32px 64px rgba(4, 8, 18, 0.44);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 340ms var(--ease-soft),
    visibility 0s linear 340ms;
}

html.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 480ms var(--ease-soft),
    visibility 0s;
}

.nav-overlay-inner {
  position: relative;
  height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(79, 105, 151, 0.08);
  transition: height 520ms var(--ease-soft);
}

.nav-panel {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 0.85fr);
  gap: var(--s-6);
  padding: 36px 0 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease-soft);
}

.nav-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px var(--s-6);
  align-content: start;
}

.nav-panel-group {
  display: contents;
}

.nav-panel-label {
  grid-column: 1 / -1;
  margin: 0 6px 6px;
  color: var(--accent-label);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-panel-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s-3);
  min-height: 68px;
  margin-inline: 6px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}

.nav-panel-item:hover,
.nav-panel-item:focus-visible {
  background: rgba(8, 13, 24, 0.18);
}

html.nav-opening .nav-panel.is-active .nav-panel-item {
  animation: hd-nav-drop 640ms var(--ease-soft) 60ms both;
}

html.nav-opening .nav-panel.is-active .nav-panel-item:nth-of-type(2) { animation-delay: 110ms; }
html.nav-opening .nav-panel.is-active .nav-panel-item:nth-of-type(3) { animation-delay: 160ms; }
html.nav-opening .nav-panel.is-active .nav-panel-item:nth-of-type(4) { animation-delay: 210ms; }

@keyframes hd-nav-drop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-panel-item-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.nav-panel-item-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.nav-panel-item-icon--asset::before {
  display: none;
}

.nav-panel-item-icon-image {
  width: 28px;
  height: 28px;
  margin: 6px;
  object-fit: contain;
  opacity: 0.78;
}

.nav-icon-addons { --icon: url("img/icon/addons.svg"); }
.nav-icon-scripts { --icon: url("img/icon/scripts.svg"); }
.nav-icon-education { --icon: url("assets/nav-icons/education.svg"); }
.nav-icon-news { --icon: url("assets/nav-icons/news.svg"); }
.nav-icon-blog,
.nav-icon-release { --icon: url("assets/nav-icons/release.svg"); }
.nav-icon-roadmap { --icon: url("assets/nav-icons/roadmap.svg"); }
.nav-icon-revit { --icon: url("assets/nav-icons/revit.svg"); }
.nav-icon-max { --icon: url("assets/nav-icons/max.svg"); }
.nav-icon-hexa { --icon: url("assets/nav-icons/hexa.svg"); }
.nav-icon-site { --icon: url("assets/nav-icons/site.svg"); }
.nav-icon-about-studio { --icon: url("img/icon/about-studio.svg"); }
.nav-icon-about-method { --icon: url("img/icon/about-method.svg"); }
.nav-icon-mail { --icon: url("assets/nav-icons/mail.svg"); }
.nav-icon-telegram { --icon: url("assets/nav-icons/telegram.svg"); }

.nav-panel-item-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.nav-panel-item-title {
  color: var(--accent);
  font-size: var(--fs-13);
  font-weight: 590;
  line-height: 1.2;
  transition: color var(--t-fast) var(--ease);
}

.nav-panel-item-desc {
  color: rgba(142, 169, 210, 0.62);
  font-size: var(--fs-xs);
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease);
}

.nav-panel-item:hover .nav-panel-item-title { color: rgba(181, 204, 235, 0.96); }
.nav-panel-item:hover .nav-panel-item-desc { color: rgba(161, 187, 222, 0.84); }

.nav-panel-preview {
  display: flex;
  justify-content: flex-end;
}

.nav-preview-card {
  position: relative;
  width: 210px;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid rgba(90, 115, 162, 0.18);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.nav-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-700);
}

/* 09 Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--rule-dark);
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0 28px;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 28px;
}

.site-footer__tagline {
  max-width: 30ch;
  margin: 18px 0 0;
  color: rgba(170, 194, 232, 0.7);
  font-size: var(--fs-13);
  line-height: 1.55;
}

.site-footer__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.site-footer__heading {
  margin: 0 0 6px;
  color: rgba(170, 194, 232, 0.55);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__group a,
.site-footer__legal a,
.site-footer__alpha a {
  color: rgba(214, 224, 242, 0.82);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.site-footer__group a {
  font-size: var(--fs-md);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.site-footer__group a:hover,
.site-footer__legal a:hover {
  color: var(--on-dark);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(170, 194, 232, 0.6);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.site-footer__marks {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 30px 0 26px;
}

.site-footer__mark {
  display: block;
  width: 30px;
  height: 30px;
  background: rgba(170, 194, 232, 0.5);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--t-fast) var(--ease);
}

.site-footer__mark:hover,
.site-footer__mark:focus-visible {
  background: var(--on-dark);
}

.site-footer__bottom p,
.site-footer__legal {
  margin: 0;
}

.site-footer__alpha {
  flex: 1 1 auto;
  text-align: center;
}

.site-footer__alpha a {
  color: rgba(214, 224, 242, 0.82);
}

.site-footer__alpha a:hover {
  color: var(--on-dark);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer__legal a {
  color: rgba(170, 194, 232, 0.6);
}

@media (max-width: 760px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 28px 0 20px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__group a,
  .site-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: var(--control-h-touch);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__alpha {
    text-align: left;
  }
}

/* 10 Modals ------------------------------------------------------------- */
.stage3-video-backdrop,
.hd-installer-backdrop,
.hd-ui-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: rgba(7, 11, 19, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease-soft), visibility 0s linear 280ms;
}

.hd-installer-backdrop {
  z-index: 1600;
}

.stage3-video-backdrop.is-open,
.hd-installer-backdrop.is-open,
.hd-ui-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms var(--ease-soft), visibility 0s;
}

.hd-installer-open {
  overflow: hidden;
}

/* Modal close button (video and installer modals) */
.stage3-video-modal__close,
.hd-installer-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: rgba(151, 84, 84, 0.14);
  color: #d58a8a;
  font-size: var(--fs-h4);
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.stage3-video-modal__close:hover,
.hd-installer-modal__close:hover {
  background: rgba(185, 44, 44, 0.76);
  color: #fff;
}

/* Video modal (markup created by stage4.js), after the Figma mockup "Frame 539":
   16:9 screen with a brand poster, a full-width seek line, and a dark control
   bar (play/pause · centred title · full screen). Proportions follow the
   mockup: bar ≈ 9% of the player width, line 6px, thumb 18px. */
.stage3-video-modal {
  --pv-bar: clamp(56px, 8.6vw, 92px);
  --pv-top: clamp(40px, 4.4vw, 52px);
  --pv-line: 6px;
  --pv-thumb: 18px;
  --pv-icon: clamp(22px, 2.6vw, 30px);
  --pv-side: clamp(14px, 2.6vw, 30px);
  --pv-accent: #5871a8;
  --pv-glow: #33467c;
  --pv-played: #d9dce8;
  --pv-bar-bg: #171e30;
  --progress: 0;
  --pv-ratio: 1.6; /* 16:10; replaced by the real video proportions on load */
  position: relative;
  display: flex;
  flex-direction: column;
  /* Width also respects the viewport height so screen + bar always fit. */
  width: min(1080px, 100%, calc((100dvh - 2 * var(--s-5) - var(--pv-top) - var(--pv-bar) - var(--pv-line)) * var(--pv-ratio)));
  overflow: hidden;
  background: var(--pv-bar-bg);
  border: 1px solid var(--pv-bar-bg);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.985);
  transition: transform 640ms var(--ease-soft);
}

.stage3-video-backdrop.is-open .stage3-video-modal {
  transform: none;
}

.stage3-video-modal--max {
  --pv-accent: #4c80a3;
  --pv-glow: #2f5072;
}

.stage3-video-modal--hexa,
.stage3-video-modal--site {
  --pv-accent: #6a84ab;
  --pv-glow: #36486a;
}

.stage3-modal-open {
  overflow: hidden;
}

/* Screen */
.stage3-video-modal__stage {
  position: relative;
  aspect-ratio: var(--pv-ratio);
  overflow: hidden;
  background:
    radial-gradient(90% 75% at 50% 0%, var(--pv-glow), transparent 72%),
    linear-gradient(180deg, #2a3550, #1e2638);
}

.stage3-video-modal__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding-bottom: 3%;
  transition: opacity 800ms ease-in-out;
}

/* Before the video (Pavel 2026-10-11): nothing that looks like loading. The
   logo already on the poster quietly brightens and grows a little from its
   resting look, then the poster fades out slowly and the video starts. */
.stage3-video-modal.is-intro .stage3-video-modal__logo {
  animation: pv-intro-logo 2200ms ease-in-out both;
}

@keyframes pv-intro-logo {
  0% { opacity: 0.62; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

.stage3-video-modal__logo {
  width: clamp(84px, 15.4%, 164px);
  height: auto;
  opacity: 0.62;
}

.stage3-video-modal__product {
  color: var(--pv-accent);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 600;
}

.stage3-video-modal__note {
  display: none;
  color: var(--on-dark-soft);
  font-size: var(--fs-13);
}

.stage3-video-modal:not(.has-video) .stage3-video-modal__note {
  display: block;
}

.stage3-video-modal.is-playing .stage3-video-modal__poster {
  opacity: 0;
  pointer-events: none;
}

.stage3-video-modal__player {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  object-fit: contain;
  cursor: pointer;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.stage3-video-modal.is-playing .stage3-video-modal__player {
  background: #0e1320;
  opacity: 1;
}

/* Thin top strip above the video: holds the close button, so nothing covers
   the picture and the panel's rounded corners never cut the video. */
.stage3-video-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pv-top);
  padding: 0 clamp(8px, 1.1vw, 12px);
}

/* Product symbol on the left balances the close button on the right. */
.stage3-video-modal__symbol {
  width: auto;
  height: clamp(18px, 2vw, 24px);
  margin-left: 4px;
  opacity: 0.85;
}

/* Close: soft square with a thin muted-red cross (mockup: 40px, radius 7). */
.stage3-video-modal__close {
  position: static;
  width: clamp(28px, 3vw, 34px);
  height: clamp(28px, 3vw, 34px);
  border-radius: 7px;
  background: rgba(143, 86, 86, 0.1);
  color: #a46c6c;
}

.stage3-video-modal__close:hover,
.stage3-video-modal__close:focus-visible {
  background: rgba(143, 86, 86, 0.22);
  color: #d49393;
}

.stage3-video-modal__close svg {
  width: 100%;
  height: 100%;
}

/* Seek line: the visible line is 6px; the hit area is taller for fingers. */
.stage3-video-modal__seek {
  position: relative;
  z-index: 3;
  height: var(--pv-line);
  background: var(--pv-accent);
  cursor: pointer;
  touch-action: none;
}

.stage3-video-modal__seek::before {
  content: "";
  position: absolute;
  inset: -10px 0;
}

.stage3-video-modal__played {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress) * 100%);
  background: var(--pv-played);
}

.stage3-video-modal__thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--progress) * (100% - var(--pv-thumb)));
  width: var(--pv-thumb);
  height: var(--pv-thumb);
  border-radius: 50%;
  background: var(--pv-played);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  transition: transform var(--t-fast) var(--ease);
}

.stage3-video-modal__seek:hover .stage3-video-modal__thumb,
.stage3-video-modal.is-seeking .stage3-video-modal__thumb {
  transform: translateY(-50%) scale(1.15);
}

.stage3-video-modal__seek:focus-visible {
  outline: 2px solid var(--pv-played);
  outline-offset: 4px;
}

/* Control bar */
.stage3-video-modal__controls {
  display: grid;
  grid-template-columns: var(--pv-icon) minmax(0, 1fr) var(--pv-icon);
  align-items: center;
  gap: var(--s-4);
  height: var(--pv-bar);
  padding: 0 var(--pv-side);
}

.stage3-video-modal__icon {
  display: grid;
  place-items: center;
  width: var(--pv-icon);
  height: var(--pv-icon);
  color: var(--pv-played);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.stage3-video-modal__icon svg {
  width: 100%;
  height: 100%;
}

.stage3-video-modal__icon:hover,
.stage3-video-modal__icon:focus-visible {
  color: #fff;
  transform: scale(1.08);
}

.stage3-video-modal__title {
  overflow: hidden;
  color: var(--pv-played);
  font-size: clamp(14px, 1.9vw, 20px);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Without a video (coming soon) or with an embedded page that has its own
   controls, the seek line and buttons are shown but inactive. */
.stage3-video-modal:not(.has-video) .stage3-video-modal__seek,
.stage3-video-modal:not(.has-video) .stage3-video-modal__icon,
.stage3-video-modal.is-embed .stage3-video-modal__seek,
.stage3-video-modal.is-embed .stage3-video-modal__icon {
  opacity: 0.35;
  pointer-events: none;
}

/* Full screen: the whole player (screen + bar) fills the display. */
.stage3-video-modal:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.stage3-video-modal:fullscreen .stage3-video-modal__stage {
  flex: 1;
  aspect-ratio: auto;
}

/* Interface viewer (markup created by stage4.js): the window mockup of a
   tool on a calm stage, with Dark / Light or other screens as tabs. */
.hd-ui-modal {
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 2 * var(--s-5));
  overflow: hidden;
  background: #171e30;
  border: 1px solid #171e30;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.985);
  transition: transform 640ms var(--ease-soft);
}

.hd-ui-backdrop.is-open .hd-ui-modal {
  transform: none;
}

.hd-ui-modal__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 10px 0 16px;
}

.hd-ui-modal__symbol {
  width: auto;
  height: 22px;
  opacity: 0.85;
}

.hd-ui-modal__title {
  overflow: hidden;
  color: #d9dce8;
  font-size: var(--fs-15);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hd-ui-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.hd-ui-modal__tab {
  position: relative;
  padding: 6px 10px 6px 20px;
  color: rgba(203, 216, 238, 0.6);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-base) var(--ease-soft);
}

.hd-ui-modal__tab::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #4f7dff;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-soft);
}

.hd-ui-modal--max .hd-ui-modal__tab::before { background: #71c8f4; }

.hd-ui-modal__tab:hover,
.hd-ui-modal__tab.is-active {
  color: #f2f6ff;
}

.hd-ui-modal__tab.is-active::before {
  opacity: 1;
}

.hd-ui-modal__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 7px;
  background: rgba(143, 86, 86, 0.1);
  color: #a46c6c;
  transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft);
}

.hd-ui-modal__tabs:empty + .hd-ui-modal__close {
  margin-left: auto;
}

.hd-ui-modal__close:hover,
.hd-ui-modal__close:focus-visible {
  background: rgba(143, 86, 86, 0.22);
  color: #d49393;
}

.hd-ui-modal__close svg {
  width: 100%;
  height: 100%;
}

.hd-ui-modal__stage {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0;
  padding: clamp(16px, 3vw, 36px);
  overflow: auto;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(80, 105, 170, 0.22), transparent 70%),
    #1e2638;
}

.hd-ui-modal--max .hd-ui-modal__stage {
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(58, 135, 159, 0.22), transparent 70%),
    #1c2733;
}

.hd-ui-modal__image {
  max-width: 100%;
  max-height: calc(100dvh - 2 * var(--s-5) - 52px - 72px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 420ms var(--ease-soft);
}

.hd-ui-modal__image.is-shown {
  opacity: 1;
}

@media (max-width: 760px) {
  .hd-ui-modal__top {
    flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
  }

  .hd-ui-modal__tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .hd-ui-modal__close {
    margin-left: auto;
  }
}

/* Installer modal (markup created by stage4.js) */
.hd-installer-modal {
  position: relative;
  width: min(450px, 100%);
  height: min(680px, calc(100dvh - 28px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(113, 164, 235, 0.28);
  border-radius: var(--r-md);
  background: linear-gradient(145deg, #1a263d 0%, #1d2940 58%, #172239 100%);
  color: #78c7fb;
  transform: scale(0.985);
  transition: transform 640ms var(--ease-soft);
}

.hd-installer-backdrop.is-open .hd-installer-modal {
  transform: none;
}

.hd-installer-modal--max { border-color: rgba(80, 181, 219, 0.3); }
.hd-installer-modal--hexa {
  border-color: rgba(132, 166, 215, 0.36);
  background: linear-gradient(145deg, #202c43, #1d293e 58%, #1a2538);
  color: #91b6e5;
}

.hd-installer-modal__mark {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 21px;
  height: 21px;
  opacity: 0.86;
}

/* The wave engine sizes a canvas to its parent, so the box sets the geometry. */
.hd-installer-modal__wave-box {
  position: absolute;
  top: 85px;
  left: 8%;
  width: 84%;
  height: 315px;
  overflow: hidden;
  opacity: 0.65;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
}

.hd-installer-modal__wave {
  width: 100%;
  height: 100%;
}

.hd-installer-modal__brand {
  position: absolute;
  top: 142px;
  left: 50%;
  z-index: 2;
  width: 194px;
  text-align: center;
  transform: translateX(-50%);
}

.hd-installer-modal__brand img {
  width: 100%;
  height: 184px;
  object-fit: contain;
  opacity: 0.92;
}

.hd-installer-modal__site {
  margin-top: var(--s-2);
  color: rgba(137, 190, 237, 0.78);
  font-size: var(--fs-xs);
}

.hd-installer-modal__copy {
  position: absolute;
  right: var(--s-6);
  bottom: 150px;
  left: var(--s-6);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: rgba(150, 200, 245, 0.86);
}

.hd-installer-modal__agreement {
  /* full width above the button: one or two calm lines instead of a squeezed column */
  position: absolute;
  right: calc(var(--s-6) + 96px);   /* not stretched across the whole window */
  bottom: 96px;
  left: var(--s-6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-13);
  line-height: 1.4;
  cursor: pointer;
}

.hd-installer-modal__agreement input {
  /* a calm checkbox in the window's own style (the native white box looked harsh on the dark card) */
  --check-on: #5a7fe6;
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid rgba(160, 186, 225, 0.45);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hd-installer-modal__agreement input:hover { border-color: rgba(180, 204, 240, 0.7); }
.hd-installer-modal__agreement input:checked {
  border-color: var(--check-on);
  background-color: var(--check-on);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hd-installer-modal__agreement input:focus-visible { outline: 2px solid rgba(160, 186, 225, 0.6); outline-offset: 2px; }
.hd-installer-modal--max .hd-installer-modal__agreement input { --check-on: #2f97b4; }
.hd-installer-modal--hexa .hd-installer-modal__agreement input { --check-on: #5d7aa6; }

.hd-installer-modal__next {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 187px;
  height: 52px;
  border: 1px solid rgba(104, 191, 241, 0.42);   /* calmer outline (Pavel) */
  border-radius: var(--r-btn);
  background: rgba(37, 61, 94, 0.72);
  color: #91ceff;
  font-size: var(--fs-md);
  font-weight: 700;
}

.hd-installer-modal--hexa .hd-installer-modal__next {
  border-color: rgba(128, 170, 221, 0.42);
  color: #9ec0eb;
}

.hd-installer-modal__next:disabled {
  cursor: default;
  opacity: 0.42;
}

.hd-installer-modal__next:not(:disabled):hover {
  background: rgba(48, 78, 119, 0.82);
}

/* 11 Video preview card ------------------------------------------------- */
/* After the Figma mockup "Frame 539". Sizes are shares of the card width (cqw)
   so the card scales with its column. Tool icon (top left), product logo (top
   right) and title (bottom left) all sit on one inset from the edges. */
.video-preview-card {
  --vc-inset: 5.6cqw;
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid rgba(97, 132, 197, 0.3);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 700ms var(--ease-soft), box-shadow 700ms var(--ease-soft);
}

.video-preview-card:hover {
  box-shadow: 0 20px 42px rgba(25, 38, 65, 0.15);
}

.video-preview-card--max { border-color: rgba(76, 163, 193, 0.32); }
.video-preview-card--hexa { border-color: rgba(119, 151, 200, 0.3); }
.video-preview-card--site { border-color: rgba(122, 146, 190, 0.28); }

/* Background rendered from the mockup: blue glow, line waves, darker bottom. */
.video-preview-card__static-bg {
  position: absolute;
  inset: 0;
  background: url("assets/backgrounds/video-revit.webp?v=2") center / cover no-repeat;
  transition: transform 1400ms var(--ease-soft);
}

.video-preview-card:hover .video-preview-card__static-bg {
  transform: scale(1.03);
}

.video-preview-card--max .video-preview-card__static-bg {
  background-image: url("assets/backgrounds/video-max.webp?v=2");
}

/* Tool icon tile: translucent navy with a thin gradient edge. */
.video-preview-card__tool-icon {
  position: absolute;
  top: var(--vc-inset);
  left: var(--vc-inset);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 16.5cqw;
  aspect-ratio: 1;
  border-radius: max(5px, 1.6cqw);
  background: rgba(32, 40, 59, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  --icon-accent: #4f7fe0;
  color: #a8b5d2; /* two-tone like the mockup: light lines + brand accent */
}

.video-preview-card--max .video-preview-card__tool-icon { --icon-accent: #4fa9cc; } /* 3ds Max cyan, as the logo and lines */
.video-preview-card--hexa .video-preview-card__tool-icon { --icon-accent: #7f9cc9; }

/* Shapes get a translucent accent fill; a second element is drawn in the
   accent colour itself. */
.video-preview-card__tool-svg:not(.is-full-bleed) > * {
  fill: color-mix(in srgb, var(--icon-accent) 52%, transparent);
}

.video-preview-card__tool-svg:not(.is-full-bleed) > :last-child:not(:first-child) {
  fill: none;
  stroke: var(--icon-accent);
}

.video-preview-card__tool-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(45deg, #1f2639, #466bbe);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.video-preview-card--max .video-preview-card__tool-icon::before {
  background: linear-gradient(45deg, #1f2639, #3f8db3);
}

.video-preview-card__tool-svg {
  width: 56%;
  height: 56%;
}

.video-preview-card__tool-svg.is-full-bleed {
  width: 100%;
  height: 100%;
}

/* Raster ribbon icons (STR.) are never scaled: natural size, whole-pixel position. */
img.hd-px {
  width: auto;
  height: auto;
  max-width: none;
  image-rendering: pixelated;
}

.video-preview-card__product-logo {
  position: absolute;
  top: var(--vc-inset);
  right: var(--vc-inset);
  z-index: 3;
  width: 12cqw;
  height: auto;
  object-fit: contain;
  opacity: 0.72;
}

/* Home page: no tool icon; the product logo sits in the top left corner. */
.video-preview-card--home .video-preview-card__product-logo {
  right: auto;
  left: var(--vc-inset);
}

/* Play, exactly as the mockup: translucent brand disc, thin light ring,
   large light triangle in the brand tint. No shadow, no blur. */
.video-preview-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: max(44px, 10.6cqw);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 176, 254, 0.5);
  border-radius: 50%;
  background: rgba(57, 84, 165, 0.5);
  color: #8bb0fe;
  transform: translate(-50%, -50%);
  transition:
    transform var(--t-med) var(--ease-soft),
    background-color var(--t-med) var(--ease-soft),
    border-color var(--t-med) var(--ease-soft);
}

.video-preview-card__play:hover,
.video-preview-card__play:focus-visible {
  border-color: rgba(139, 176, 254, 0.85);
  background: rgba(57, 84, 165, 0.68);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-preview-card--max .video-preview-card__play {
  border-color: rgba(113, 200, 244, 0.5);
  background: rgba(71, 129, 158, 0.3);
  color: #71c8f4;
}

.video-preview-card--max .video-preview-card__play:hover,
.video-preview-card--max .video-preview-card__play:focus-visible {
  border-color: rgba(113, 200, 244, 0.85);
  background: rgba(71, 129, 158, 0.48);
}

.video-preview-card--hexa .video-preview-card__play {
  border-color: rgba(160, 186, 225, 0.5);
  background: rgba(77, 102, 143, 0.45);
  color: #b4c8e8;
}

.video-preview-card__play-icon {
  width: 100%;
  height: 100%;
}

.video-preview-card__title {
  position: absolute;
  right: var(--vc-inset);
  bottom: var(--vc-inset);
  left: var(--vc-inset);
  z-index: 3;
  display: flex;
  flex-direction: column;
  color: #a8b5d2;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.video-preview-card__title .balanced-title__line {
  white-space: nowrap;
}

.video-preview-card__title--large { font-size: clamp(15px, 5.2cqw, 34px); }
.video-preview-card__title--medium { font-size: clamp(15px, 4.9cqw, 32px); }
.video-preview-card__title--small { font-size: clamp(14px, 4.5cqw, 30px); }
.video-preview-card__title--compact { font-size: clamp(14px, 4.1cqw, 28px); }

.video-preview-card.is-playing .video-preview-card__play {
  opacity: 0;
}

/* 12 Home: hero & intro ------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.hero__bg,
.hero__canvas,
.hero__mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  z-index: 0;
  background:
    radial-gradient(140% 77.6% at 50% 0%, #2a3c65 0%, rgba(42, 60, 101, 0.88) 18.4%, rgba(42, 60, 101, 0.54) 40.2%, rgba(42, 60, 101, 0.18) 65.3%, transparent 83.7%),
    var(--navy-900);
}

.hero__canvas {
  z-index: 1;
  transition: opacity 380ms ease;
}

.hero__mask {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #1e2638 0%, rgba(30, 38, 56, 0.92) 13.9%, rgba(30, 38, 56, 0.42) 29%, rgba(30, 38, 56, 0.08) 42%, transparent 50%, rgba(30, 38, 56, 0.08) 58%, rgba(30, 38, 56, 0.42) 71%, rgba(30, 38, 56, 0.92) 86.1%, #1e2638 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
}

/* Banner keeps the accepted 548px height on desktop; the cards sit in the
   middle, so the space above and below them is equal. */
.home-hero .hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 2 * var(--gutter), var(--container));
  min-height: var(--home-hero-h);
  margin-inline: auto;
  padding: var(--hero-y) 0;
}

.hero-cards-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
  gap: 52px;
  width: 100%;
}

/* Hero card: gradient border (::before) + glass fill (__surface).
   Border/fill angles are animated by card23.js through CSS variables. */
.hero-card {
  position: relative;
  min-height: 242px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(6.8px) saturate(1.16);
  backdrop-filter: blur(6.8px) saturate(1.16);
}

.home-hero .hero-card {
  animation: hd-rise 1100ms var(--ease-soft) 120ms both;
}

.home-hero .hero-card + .hero-card {
  animation-delay: 240ms;
}

@keyframes hd-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Phone: the two home cards arrive softly from the sides (left, then right); desktop keeps the fade. */
@keyframes hd-slide-l { from { opacity: 0; transform: translate3d(-34px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes hd-slide-r { from { opacity: 0; transform: translate3d(34px, 0, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .home-hero .hero-card { animation: hd-slide-l 1200ms var(--ease-soft) 140ms both; }
  .home-hero .hero-card + .hero-card { animation-name: hd-slide-r; animation-delay: 300ms; }
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(var(--revit-border-angle-current, 305deg), #3f64b4 0%, #162133 49%, #162133 80%, #2757d0 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.hero-card--max::before {
  background: linear-gradient(var(--max-border-angle-current, 40deg), #3f83b4 0%, #162133 49%, #162133 80%, #156f96 100%);
}

.hero-card__surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(var(--revit-fill-angle-current, 220deg), rgba(61, 112, 251, 0.3) 0%, rgba(36, 46, 67, 0.04) 47.6%, rgba(65, 117, 246, 0.22) 100%);
}

.hero-card--max .hero-card__surface {
  background: linear-gradient(var(--max-fill-angle-current, 153deg), rgba(61, 132, 177, 0.3) 0%, rgba(36, 46, 67, 0.04) 47.6%, rgba(86, 137, 196, 0.22) 100%);
}

/* Accepted card layout: logo column 140px | text column, buttons under the text. */
.hero-card__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0 18px;
  height: 100%;
  min-height: 242px;
  padding: 26px 20px 20px 22px;
}

.hero-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
}

.hero-card__brand-image {
  width: 100px;
  max-width: 100%;
  height: auto;
}

.hero-card__main {
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-card__copy {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.hero-card__title {
  margin-bottom: 10px;
  color: var(--on-dark);
  font-size: var(--fs-hero-card);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-card__subtitle {
  max-width: 250px;
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.36;
  letter-spacing: -0.005em;
}

/* "Download Alpha" takes the free width, the second action fits its label. */
.hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px var(--s-3);
  margin-top: 14px;
}

/* Longer labels in other languages: the main action grows, both may wrap. */
.hero-card__actions > :first-child {
  flex: 1 1 auto;
}

/* Compact controls inside hero cards (accepted 26px size, RC v28). */
.hero-card .hero-btn {
  min-height: var(--control-h-compact);
  padding: 0 12px;
  font-size: var(--fs-2xs);
  font-weight: 500;
}

/* Button roles. --download is the main action (download / open the product):
   bright fill. --try is information (tools, roadmap, tutorials): pale outline. */
.hero-btn--download { color: rgba(255, 255, 255, 0.96); }
.hero-btn--try { color: rgba(214, 226, 250, 0.78); }

.hero-btn--revit-download { background: rgba(65, 98, 232, 0.78); border-color: rgba(109, 145, 255, 0.84); }
.hero-btn--revit-try { background: rgba(64, 95, 158, 0.1); border-color: rgba(120, 156, 245, 0.4); }
.hero-btn--max-download { background: rgba(40, 128, 152, 0.84); border-color: rgba(101, 206, 241, 0.7); }
.hero-btn--max-try { background: rgba(20, 92, 116, 0.1); border-color: rgba(78, 204, 243, 0.36); color: rgba(206, 236, 246, 0.78); }
.hero-btn--hexa-download { background: rgba(72, 98, 140, 0.84); border-color: rgba(150, 178, 220, 0.7); }
.hero-btn--hexa-try { background: rgba(70, 92, 128, 0.1); border-color: rgba(140, 170, 215, 0.36); }

.hero-btn:hover:not(.is-disabled),
.hero-btn:focus-visible {
  filter: brightness(1.15);
}

/* Intro band */
.intro-band {
  padding: var(--band-y) 0;
  background: var(--fog);
  text-align: center;
}

.intro-band__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(49, 71, 102, 0.42);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.intro-band h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.intro-band p {
  max-width: 980px;
  margin-inline: auto;
  color: var(--text-2);
  font-size: var(--fs-15);
  line-height: 1.64;
  text-wrap: pretty;
}

/* 13 Home: products ----------------------------------------------------- */
.home-products-section {
  padding: var(--section-y) 0;
  background: var(--paper);
}

/* Subscription plans: period switch, four equal cards, one footnote. */
.pricing-section {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.pricing-alpha {
  margin: 0 auto 16px;
  max-width: 640px;
  color: #6b7c99;
  font-size: var(--fs-13);
  line-height: 1.4;
  text-align: center;
}

.pricing-period {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-period__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-md);
  background: rgba(29, 43, 71, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.pricing-period__btn.is-active {
  background: var(--ink);
  color: #fff;
}

.pricing-period__save {
  font-weight: 600;
  opacity: 0.72;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(29, 43, 71, 0.05);
}

.pricing-card__name {
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.18;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink);
}

.pricing-card__amount {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pricing-card__unit,
.pricing-card__note,
.pricing-foot {
  color: #6b7c99;
  font-size: var(--fs-13);
}

.pricing-card__note {
  height: 20px;
  margin-top: 8px;
  line-height: 20px;
  white-space: nowrap;
}

.pricing-card__features {
  flex: 1;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.pricing-card__features li + li {
  margin-top: 8px;
}

.pricing-card__action {
  margin-top: 16px;
}

.pricing-card__action:disabled {
  opacity: 0.55;
  cursor: default;
}

.pricing-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-12, 12px);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Media row: one two-column pattern for every "picture + text" block. */
.home-product-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--row-gap);
  padding: var(--row-y) 0;
}

.home-product-row + .home-product-row {
  border-top: 1px solid var(--rule);
}

.home-product-row:first-child {
  padding-top: 0;
}

.home-product-row:last-child {
  padding-bottom: 0;
}

.home-product-list {
  max-width: 936px;
  margin-inline: auto;
}

.home-product-row {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 56px;
}

.home-products-section .text-section-title {
  font-weight: 570;
  letter-spacing: -0.026em;
}

.home-product-row .video-preview-card {
  border-radius: var(--r-lg);
}

.home-product-row__copy .text-eyebrow {
  margin-bottom: var(--s-3);
  color: #8ba0c1;
  letter-spacing: 0.14em;
}

.home-product-row--reverse .home-product-row__media {
  order: 2;
}

.home-product-row__copy .text-card-title {
  margin-bottom: 18px;
  color: #20304e;
  font-size: 28px;
  font-weight: 530;
  line-height: 1.16;
  letter-spacing: -0.024em;
}

.home-product-row__copy .text-body {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.72;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.home-product-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* 14 Home: featured news ------------------------------------------------ */
.featured-content-section {
  padding: var(--section-y) 0;
  background: #f7f9fd;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.home-news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 28px;
}

.featured-content-section .text-section-title {
  font-size: clamp(28px, 2.65vw, 39px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.026em;
}

.home-news-head__all {
  flex: none;
  padding-bottom: 6px;
}

.home-news-list {
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.home-news-row {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.home-news-row__date,
.home-news-row__meta {
  margin: 0;
  color: #8d9ab0;
  font-size: var(--fs-13);
  line-height: 1.4;
}

.home-news-row__body {
  min-width: 0;
}

.home-news-row__meta {
  margin-bottom: 8px;
}

.home-news-row__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.home-news-row__title a {
  color: inherit;
  text-decoration: none;
  transition: color 240ms var(--ease-soft);
}

/* Stretched link: the whole row is one target. */
.home-news-row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-news-row:hover .home-news-row__title a,
.home-news-row__title a:focus-visible {
  color: #2f55c4;
}

.home-news-row__text {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-15);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-news-row__more {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .home-news-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-news-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px 0;
  }

  .home-news-row__more {
    justify-self: start;
  }
}

/* 15b Shared content sections ------------------------------------------ */
/* Information band: centred statement under a hero. */
.information-band {
  padding: var(--band-y) 0;
  background: #d6dce8;
  text-align: center;
}

.information-band--hexa {
  background: #d8deea;
}

.information-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.information-band .text-section-title {
  max-width: 760px;
  margin-bottom: var(--s-3);
}

.information-band .text-body-large {
  max-width: 740px;
  font-size: var(--fs-15);
}

/* Secondary sections: archive, installation, tutorials, values … */
.secondary-section {
  padding: var(--section-y) 0;
  background: #f7f9fd;
}

.secondary-section--mist {
  background: #e3e8f2;
}

/* Light content card used by version, step, value and update cards. */
.version-card,
.standard-step {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 27px rgba(24, 37, 63, 0.07);
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.version-card {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
}

.version-card .text-metadata {
  color: var(--muted);
}

.version-card .text-card-title {
  margin-top: var(--s-1);
}

.standard-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.standard-step__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: rgba(73, 111, 224, 0.1);
  color: var(--link);
  font-size: var(--fs-15);
  font-weight: 700;
}

.standard-step .text-card-title {
  margin-bottom: var(--s-2);
  font-size: var(--fs-h4);
}

/* 15c Product pages ---------------------------------------------------- */
.product-hero {
  display: flex;
  align-items: center;
  min-height: clamp(340px, 30vw, 420px);
  background: linear-gradient(115deg, #1a2844 0%, #23385e 48%, #17243d 100%);
}

.product-hero--max {
  background: linear-gradient(115deg, #182a39 0%, #234455 48%, #172938 100%);
}

.product-hero--hexa {
  background: var(--navy-900);
}

.product-hero--max .hero__bg {
  opacity: 0.72;
}

.product-hero__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding: var(--s-8) 0;
}

.product-hero-content {
  display: grid;
  grid-template-columns: 128px minmax(0, 520px);
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.product-hero-content__brand {
  display: flex;
  justify-content: center;
}

.product-hero-content__brand .brand-logo {
  width: 108px;
  height: auto;
}

/* The Hexa mark fills its box more than the Revit and 3ds Max marks: a notch smaller so the three look equal. */
.product-hero-content__brand .brand-logo--hexa { width: 92px; }

.product-hero-content__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.product-hero-content__support {
  color: rgba(205, 220, 248, 0.72);
}

.product-hero-content__title {
  color: #f4f7ff;
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.034em;
}

.product-hero-content__subtitle {
  margin: 10px 0 20px;
  color: rgba(236, 243, 255, 0.9);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.product-hero-content__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 432px;
}

.product-hero-content__actions .hero-btn {
  width: 100%;
  font-size: var(--fs-sm);
}



.product-hero .hero-btn--revit-download { background: #5479ea; border-color: rgba(137, 164, 249, 0.7); }
.product-hero .hero-btn--revit-try { background: rgba(77, 110, 220, 0.1); border-color: rgba(122, 154, 245, 0.42); }
.product-hero .hero-btn--max-download { background: #2b8ba6; border-color: rgba(106, 200, 220, 0.7); }
.product-hero .hero-btn--max-try { background: rgba(31, 118, 137, 0.1); border-color: rgba(96, 196, 214, 0.38); }
.product-hero .hero-btn--hexa-download { background: #54709b; border-color: rgba(160, 186, 225, 0.7); }
.product-hero .hero-btn--hexa-try { background: rgba(110, 140, 190, 0.1); border-color: rgba(150, 178, 220, 0.4); }
/* A main action that is not available yet ("Not released") stays quiet. */
.product-hero .hero-btn--download.is-disabled { background: rgba(110, 140, 190, 0.1); border-color: rgba(150, 178, 220, 0.3); }

/* Category rail: sticks to the top; stage15.js docks it in place of the header. */
.category-navigation-band {
  --tab-tint: rgba(78, 116, 255, 0.3);    /* Revit: blue light behind the active tab */
  --tab-dot: #4f7dff;
  position: sticky;
  top: 0;
  z-index: 900;
  background: #1f2a3e;
  border-block: 1px solid rgba(132, 158, 199, 0.14);
  box-shadow: 0 8px 20px rgba(11, 18, 31, 0.08);
}

.category-navigation-band--max {
  --tab-tint: rgba(58, 150, 184, 0.34);   /* 3ds Max: the cyan-teal of its banner lines */
  --tab-dot: #71c8f4;
  background: #1c2d3a;
}

.category-navigation-band--hexa {
  --tab-tint: rgba(150, 172, 225, 0.26);
  --tab-dot: #9fb6e6;
}

.site-header {
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

html.product-category-docked .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

html.product-category-docked .category-navigation-band {
  z-index: 1200;
}

.category-navigation-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}

.category-home-link {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease);
}

/* The mark is 16x24 inside a 48 box: at 36px it is 12x18 on whole pixels,
   level with the category icons beside it (12-16px artwork). */
.category-home-link img {
  width: 36px;
  height: 36px;
  max-width: none;
  margin: -4px;
  /* The mark starts 12px inside its box: pull it back so it stands on the page edge line. */
  position: relative;
  left: -8px;
}

html.product-category-docked .category-home-link {
  opacity: 1;
  visibility: visible;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 80px);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

/* Shared tab style: category tabs, news filters and roadmap tabs. */
.category-tab,
.news-filter,
.roadmap-tab {
  position: relative;
  isolation: isolate;
  flex: none;
  min-height: var(--control-h);
  padding: 0 var(--s-3) 0 calc(var(--s-3) + 4px);
  color: rgba(203, 216, 238, 0.62);
  font-size: var(--fs-13);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease-soft);
}

/* Active tab: a small dot in the product colour before the label, and a soft
   light behind the glass: a blurred stripe tilted ~45 degrees that glides to
   the active tab (stage4.js moves .tab-glow). The panel itself stays grey. */
/* The light lives in a clipping layer over the whole panel, so it runs from
   edge to edge with no visible ends (the panel itself is not clipped, so the
   phone picker's list can open below it). */
.category-navigation-band,
.news-switcher-section,
.roadmap-navigation-band {
  isolation: isolate;
}

.tab-glow-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.news-switcher-section,
.roadmap-navigation-band {
  position: relative;
}

.category-navigation-band__inner,
.news-switcher-section__inner,
.roadmap-navigation-band__inner {
  position: relative;
  z-index: 1;
}

.tab-glow {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: 0;
  z-index: 0;
  width: var(--glow-w, 0px);
  transform: translateX(var(--glow-x, 0px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 900ms var(--ease-soft),
    width 900ms var(--ease-soft),
    opacity 600ms var(--ease-soft);
}

.tab-glow.is-ready {
  opacity: 1;
}

/* A wide, heavily blurred tilted band of tinted light: a faint shading, not
   a visible stripe. */
.tab-glow::before {
  content: "";
  position: absolute;
  inset: 0 -55%;
  background: linear-gradient(90deg, transparent 0%, var(--tab-tint, rgba(120, 150, 235, 0.3)) 50%, transparent 100%);
  filter: blur(18px);
  transform: skewX(-40deg);
}

.category-tab::before,
.news-filter::before,
.roadmap-tab::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--tab-dot, #6f93f5);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 600ms var(--ease-soft), transform 700ms var(--ease-soft);
  pointer-events: none;
}

/* Phone tab picker (stage4.js): on larger screens the wrapper is transparent
   and the button hidden, so the tabs show as a row. */
.tab-picker-wrap {
  display: contents;
}

.tab-picker {
  display: none;
}

/* The dot and the blurred light were too faint to read as a selection.
   The active tab is white with a 2px underline in the product colour. */
.category-tab::before,
.news-filter::before,
.roadmap-tab::before,
.tab-picker__value::before {
  display: none;
}

.tab-glow {
  display: none;
}

.category-tab,
.news-filter,
.roadmap-tab {
  padding-inline: var(--s-3);
}

.category-tab::after,
.news-filter::after,
.roadmap-tab::after {
  content: "";
  position: absolute;
  right: var(--s-3);
  bottom: 0;
  left: var(--s-3);
  height: 2px;
  border-radius: 1px;
  background: var(--tab-dot, #6f93f5);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 500ms var(--ease-soft), transform 700ms var(--ease-soft);
}

.tab-picker__value {
  padding-left: 0;
}


.category-tab:hover,
.news-filter:hover,
.roadmap-tab:hover {
  color: #eef3ff;
}

.category-tab.is-active,
.news-filter.is-active,
.roadmap-tab.is-active,
.roadmap-tab--active {
  color: #f5f8ff;
}

.category-tab.is-active::after,
.news-filter.is-active::after,
.roadmap-tab.is-active::after,
.roadmap-tab--active::after {
  opacity: 1;
  transform: none;
}

/* Category tabs carry a flat one-colour icon. It is shown at its native size
   and kept on whole pixels: the 1px bottom margin makes the centred box even
   inside the even control height, and stage4.js rounds each tab's width up. */
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-tab__icon {
  flex: none;
  margin-bottom: 1px;
}

/* Narrow screens: the category row keeps its icons and drops the words (stage4.js sets .is-icons). */
.tab-picker-wrap.is-icons { flex: 1 1 auto; min-width: 0; }
.tab-picker-wrap.is-icons .category-tabs { flex: 1 1 auto; width: 100%; max-width: 440px; gap: 0; justify-content: space-between; }
.tab-picker-wrap.is-icons .category-tab { flex: 1 1 0; justify-content: center; min-width: 36px; padding-left: 0; padding-right: 0; }
.tab-picker-wrap.is-icons .category-tab__label { display: none; }
/* Docked: the home mark takes the left corner, so the icon row moves aside for it. */
.tab-picker-wrap.is-icons .category-tabs { transition: margin-left 620ms var(--ease-soft); }

/* Tool catalogue */
.product-catalog {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--row-gap);
  padding: var(--row-y) 0;
  scroll-margin-top: calc(var(--header-h) + var(--s-6));
}

.tool-row + .tool-row {
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.tool-row:first-child,
.tool-row.is-first-visible {
  padding-top: 0;
  border-top: 0;
}

.tool-row:last-child {
  padding-bottom: 0;
}

.tool-row.is-filtered-out,
.tool-row.is-hidden {
  display: none;
}

/* Tool heading: plain icon (no tile), a quiet meta line, then the title. */
.tool-row__heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

/* Tool icon next to the title: black and white, flat, no tile. */
.tool-row__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #1f2a3d;
}

.tool-row__icon-svg {
  width: 44px;
  height: 44px;
}

/* Tool icons keep a fine line at any size (the source icons are drawn with a
   ~1px line): the stroke does not grow when the icon is enlarged. */
.tool-row__icon-svg:not(.is-full-bleed) *,
.video-preview-card__tool-svg:not(.is-full-bleed) *,
.tool-detail-identity__tool-svg:not(.is-full-bleed) * {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.4px;
}

.tool-row__icon-svg.is-full-bleed,
.tool-row__icon--full-bleed .tool-row__icon-svg {
  width: 100%;
  height: 100%;
}

.tool-row__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

/* Category and version as plain text separated by a dot, no frames. */
.tool-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-badge + .tool-badge::before {
  content: "·";
  margin: 0 8px;
  color: #9aabc6;
  font-weight: 700;
}

.tool-badge--accent { color: #167e9c; }
.page-product--revit .tool-badge--accent { color: #4568c9; }
.tool-badge--live { color: #2e915e; }
.tool-badge--muted { color: #7a8ca8; }

.tool-row__text-title {
  font-size: var(--fs-h4);
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.tool-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tool-status--live { color: #2e915e; }
.tool-status--development,
.tool-status--planned { color: #5e7191; }

.tool-related-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

/* Related update: one quiet line, label and text, no rules around it. */
.tool-related-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  color: #4a6080;
  font-size: var(--fs-13);
  line-height: 1.45;
  transition: color var(--t-fast) var(--ease-soft);
}

.tool-related-link span {
  color: var(--muted);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tool-related-link:hover {
  color: var(--ink);
}

/* The module's real tools (ribbon / toolbar buttons) with their own icons. */
.tool-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tool-items__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #3b4f6e;
  font-size: var(--fs-13);
  line-height: 1.3;
}

.tool-items__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
}

.tool-items__img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tool-items__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a3b1c7;
}

/* A long translated name wraps onto a second line; it is never cut. */
.tool-items__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Phone: one column. */
@media (max-width: 560px) {
  .tool-items {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tool-items__more {
  color: var(--link, #4568c9);
  font-weight: 600;
}

/* Tools that have a window: "More details" opens the interface viewer. */
.tool-items__item--ui .tool-items__name {
  color: #20304e;
  font-weight: 600;
}

.tool-items__item--ui .tool-items__name-link {
  color: var(--link, #4568c9);
  text-align: left;
  transition: color var(--t-base) var(--ease-soft);
}

.tool-items__name-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.tool-items__item--ui .tool-items__name-link:hover,
.tool-items__item--ui .tool-items__name-link:focus-visible {
  color: #2c4fb0;
}

.tool-items__details {
  flex: none;
  margin-left: auto;
  padding: 2px 0 2px 8px;
  color: var(--link, #4568c9);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease-soft);
}

.tool-items__details::after {
  content: " →";
}

.tool-items__details:hover,
.tool-items__details:focus-visible {
  color: #2c4fb0;
}

/* Tool page: the full list, a little larger. */
.tool-items-section .tool-items {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px 36px;
  margin-top: 0;
}

.tool-items-section .tool-items__item {
  gap: 14px;
  font-size: var(--fs-md);
}

.tool-items-section .tool-items__icon,
.tool-items-section .tool-items__img {
  width: 32px;
  height: 32px;
}

.tool-row__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

/* 15e Module tools and instruction pages -------------------------------- */
/* Module page: each tool as its own card (video, icon, name, summary, links). */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: calc(var(--header-h) + var(--s-6));
}

.tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-card__icon {
  flex: none;
  width: 32px;
  height: 32px;
}

.tool-card__title {
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
}

.tool-card__summary {
  font-size: var(--fs-md);
  line-height: 1.6;
}

.tool-card__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 2px;
}

.tool-card__pending {
  color: #9aa8bf;
  font-size: var(--fs-13);
  font-weight: 600;
}

/* Instruction page: icon + name, one line, where to find it, then the video. */
.instruction-intro__title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
}

.instruction-intro__icon {
  flex: none;
  width: clamp(40px, 4.2vw, 56px);
  height: clamp(40px, 4.2vw, 56px);
}

/* The video right under the intro, full container width. */
.instruction-video-section {
  padding: var(--section-y) 0 0;
  background: #f7f9fd;
}

.instruction-about {
  padding-top: var(--section-y);
}

.instruction-video {
  width: 100%;
}

/* "What it does": heading on the left, text on the right. */
.instruction-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 20px clamp(32px, 5vw, 80px);
}

.instruction-about__grid .standard-section-head {
  margin-bottom: 0;
}

.instruction-about__copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.instruction-about__copy .text-body {
  font-size: var(--fs-lg);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .instruction-about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .instruction-about__copy .text-body {
    font-size: var(--fs-md);
  }
}

/* Interface anatomy: an interactive window, after the old Corona Renderer
   docs. Every control is clickable; hover puts a spotlight on it, click opens
   its explanation in the list. No markers or badges are drawn on the window. */
.anatomy {
  --anatomy-accent: #4f7dff;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.anatomy--max {
  --anatomy-accent: #3a879f;
}

.anatomy__figure {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}

.anatomy__tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.anatomy__tab {
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-btn);
  color: #7d8aa1;
  font-size: var(--fs-13);
  font-weight: 600;
  transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft);
}

.anatomy__tab:hover {
  color: var(--ink);
}

.anatomy__tab.is-active {
  background: rgba(68, 91, 133, 0.08);
  color: var(--ink);
}

.anatomy__shot {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.08), 0 24px 56px -18px rgba(20, 30, 50, 0.38);
}

.anatomy__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Clickable areas: invisible until the cursor is over the window, then a
   faint hairline shows what can be clicked. */
.anatomy__hit {
  position: absolute;
  z-index: 2;
  border-radius: 5px;
  cursor: pointer;
  transition: box-shadow 240ms var(--ease-soft), background-color 240ms var(--ease-soft);
}

.anatomy__shot:hover .anatomy__hit {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.anatomy__shot .anatomy__hit:hover,
.anatomy__hit:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  outline: none;
}

/* Spotlight, in place: each control has its own veil + ring. The veil puts
   the rest of the window in a very light shade with a barely-there blur,
   feathered around the control (two gradient masks); the thin ring fades in
   around the control. */
.anatomy__veil,
.anatomy__ring {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.anatomy__veil {
  inset: 0;
  z-index: 3;
  background: rgba(14, 20, 34, 0.16);
  -webkit-backdrop-filter: blur(0.8px);
  backdrop-filter: blur(0.8px);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
  transition: opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Safari / iOS: no backdrop blur (WebKit ignores the mask for it). */
.anatomy--no-blur .anatomy__veil {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.anatomy__shot[data-theme="light"] .anatomy__veil {
  background: rgba(40, 55, 90, 0.07);
}

.anatomy__ring {
  z-index: 4;
  border-radius: 7px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 14px rgba(109, 156, 255, 0.12);
  transform: scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.anatomy__shot[data-theme="light"] .anatomy__ring {
  box-shadow:
    0 0 0 1px rgba(103, 140, 218, 0.5),
    0 0 14px rgba(103, 140, 218, 0.1);
}

.anatomy__veil.is-active {
  opacity: 1;
}

.anatomy__ring.is-active {
  opacity: 1;
  transform: none;
}

.anatomy__veil[hidden],
.anatomy__ring[hidden] {
  display: none;
}

.anatomy.has-focus .anatomy__shot .anatomy__hit {
  box-shadow: none;
  background: transparent;
}

.anatomy__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #8d9ab0;
  font-size: var(--fs-13);
}

.anatomy__hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--anatomy-accent);
  opacity: 0.8;
}

/* The list of controls: an accordion, one explanation open at a time. */
.anatomy__list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
  list-style: none;
}

.anatomy__row {
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.anatomy__row-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  text-align: left;
  cursor: pointer;
}

.anatomy__row-head::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.25px solid #9aa7bc;
  border-bottom: 1.25px solid #9aa7bc;
  transform: rotate(45deg);
  transition: transform 320ms var(--ease-soft), margin 320ms var(--ease-soft), border-color var(--t-base) var(--ease-soft);
}

.anatomy__row.is-open .anatomy__row-head::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.anatomy__index {
  color: #9aa7bc;
  font-size: var(--fs-13);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-base) var(--ease-soft);
}

.anatomy__title {
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--t-base) var(--ease-soft);
}

.anatomy__row-head:hover .anatomy__title,
.anatomy__row.is-active .anatomy__title {
  color: var(--anatomy-accent);
}

.anatomy__row.is-open .anatomy__index,
.anatomy__row.is-active .anatomy__index {
  color: var(--anatomy-accent);
}

.anatomy__row-head:focus-visible {
  outline: none;
}

.anatomy__row-head:focus-visible .anatomy__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.anatomy__desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease-soft);
}

.anatomy__desc > p {
  overflow: hidden;
  min-height: 0;
  padding-left: 34px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 280ms var(--ease-soft), padding 360ms var(--ease-soft);
}

.anatomy__row.is-open .anatomy__desc {
  grid-template-rows: 1fr;
}

.anatomy__row.is-open .anatomy__desc > p {
  padding-bottom: 20px;
  opacity: 1;
}

/* Live window: centred in its column; JS scales it (transform) to the column. */
.anatomy--live .anatomy__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anatomy__shot--live {
  width: fit-content;
  border-radius: 0;
}

/* Tip as a marker callout: a dot on the control's frame, a thin line, the
   card (SVG) with the text on top. Fades in and out in place. */
.anatomy__figure {
  isolation: isolate;
}

.anatomy__bubble {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.anatomy__bubble-fill {
  fill: rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 12px 22px rgba(20, 30, 50, 0.22));
}

.anatomy__bubble-line {
  fill: none;
  stroke: rgba(150, 182, 245, 0.7);
  stroke-width: 1;
}

.anatomy__shot[data-theme="light"] ~ .anatomy__bubble .anatomy__bubble-line {
  stroke: rgba(103, 140, 218, 0.6);
}

.anatomy__bubble-text {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  padding: 11px 14px 12px;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.anatomy__bubble-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
}

.anatomy__bubble.is-visible,
.anatomy__bubble-text.is-visible {
  opacity: 1;
  transform: none;
}

.anatomy__bubble-dot {
  fill: #6d9cff;
  stroke: #fff;
  stroke-width: 1.5;
}

.anatomy__shot[data-theme="light"] ~ .anatomy__bubble .anatomy__bubble-dot {
  fill: #678cda;
}

/* Live plugin window (HDTools.UI design system on the web). Colours are the
   Dark / Light theme tokens measured on the WPF renders; sizes follow the
   window metrics (title bar, control and card heights per window). */
.hdw {
  --hdw-font: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, sans-serif;
  width: var(--hdw-w, 313px);
  transform-origin: 0 0;
  border: 1px solid var(--win-border);
  background: var(--win);
  color: var(--text);
  font: 400 12px/1.25 var(--hdw-font);
  letter-spacing: 0;
  text-align: left;
  user-select: none;
  transition: background-color 280ms var(--ease-soft), border-color 280ms var(--ease-soft), color 280ms var(--ease-soft);
}

.hdw *,
.hdw *::before,
.hdw *::after {
  transition-property: background-color, border-color, color, fill, stroke, opacity;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-soft);
}

.hdw--dark {
  --win: #3b4453; --win-border: #222933; --title: #9baac0; --title-glyph: #8997ac; --title-icon: #7396dd;
  --panel: #3f4c60; --panel-head: #3f4c60; --panel-border: #222933; --bar: #6d9cff; --group-text: #b9ccf5;
  --text: #adc4f2; --card: #374255; --card-hover: #3c475b; --card-border: #222933; --card-border-hover: #5d88de;
  --card-text: #b0c7f5; --card-text-off: #86a6ea;
  --radio-bg: #2f3a4d; --radio-border: #222933; --radio-dot: #6d9cff;
  --primary: #516ead; --primary-hover: #5b7bc0; --primary-border: #262d38; --primary-text: #d8e3fa;
  --secondary: #374255; --secondary-hover: #3e4b62; --secondary-border: #6386d0; --secondary-text: #b0c7f5;
  --success: #537665; --success-hover: #5b8070; --success-border: #80aa7e; --success-text: #e4f2da;
  --danger: #74555f; --danger-hover: #7f5e68; --danger-border: #a37f7f; --danger-text: #fafafa;
  --combo: #445476; --combo-hover: #4a5b7f; --combo-border: #222933; --combo-text: #adc4f2; --combo-glyph: #bcd3ff;
  --num: #394558; --num-border: #222933; --num-text: #ebf2ff; --num-glyph: #7d91b0;
  --check-bg: #344055; --check-border: #222933; --check-mark: #6d9cff;
  --ip: #b0c7f5; --is: #6d9cff; --ia: #6d9cff;
}

.hdw--strip.hdw--dark {
  --panel-head: #3a475a;
}

.hdw--light {
  --win: #ffffff; --win-border: #8092bd; --title: #8092bd; --title-glyph: #7894d7; --title-icon: #3d5c9e;
  --panel: #f7f8fa; --panel-head: #f7f8fa; --panel-border: #bbc0c8; --bar: #6d9cff; --group-text: #627397;
  --text: #5a6c93; --card: #ffffff; --card-hover: #f5f8fd; --card-border: #8092bd; --card-border-hover: #6d9cff;
  --card-text: #5b6d94; --card-text-off: #5b6d94;
  --radio-bg: #ffffff; --radio-border: #8092bd; --radio-dot: #678cda;
  --primary: #d4e4f9; --primary-hover: #c6dbf7; --primary-border: #6f8ccd; --primary-text: #2e5183;
  --secondary: #ffffff; --secondary-hover: #f1f5fc; --secondary-border: #7f95c8; --secondary-text: #5b6d94;
  --success: #c9dbbf; --success-hover: #bfd4b3; --success-border: #80aa7e; --success-text: #314a36;
  --danger: #e4cece; --danger-hover: #dcc2c2; --danger-border: #b28a8a; --danger-text: #5a4046;
  --combo: #eff2f8; --combo-hover: #e6ebf5; --combo-border: #8092bd; --combo-text: #2e5182; --combo-glyph: #5b6d94;
  --num: #ffffff; --num-border: #8092bd; --num-text: #2e5182; --num-glyph: #7f95c8;
  --check-bg: #ffffff; --check-border: #8092bd; --check-mark: #7395dd;
  --ip: #5b6d94; --is: #678cda; --ia: #678cda;
}

.hdw .f-p { fill: var(--ip); }
.hdw .s-p { stroke: var(--ip); }
.hdw .f-s { fill: var(--is); }
.hdw .s-s { stroke: var(--is); }
.hdw .f-a { fill: var(--ia); }
.hdw .s-a { stroke: var(--ia); }
.hdw .f-t { fill: var(--title-icon); }
.hdw .s-t { stroke: var(--title-icon); }
.hdw .f-c { fill: currentColor; }
.hdw .s-c { stroke: currentColor; }

.hdw-icon {
  display: block;
  flex: none;
  overflow: visible;
}

.hdw-icon--pair img {
  display: block;
  width: 19px;
  height: 19px;
}

.hdw--dark .hdw-only-light,
.hdw--light .hdw-only-dark {
  display: none;
}

/* Title bar */
.hdw-titlebar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  height: var(--hdw-title-h, 32px);
  padding: 0 8px;
}

.hdw-titlebar__icon {
  max-width: 26px;
  max-height: 20px;
}

.hdw-titlebar .hdw-icon--pair img {
  width: 20px;
  height: 20px;
}

.hdw-titlebar__title {
  overflow: hidden;
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdw-titlebar__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.hdw-titlebar__buttons svg {
  fill: none;
  stroke: var(--title-glyph);
  stroke-width: 1.1;
}

/* Groups */
.hdw-body {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}

.hdw-group {
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.hdw-group__head {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--hdw-head-h, 22px);
  padding-left: 12px;
  background: var(--panel-head);
  color: var(--group-text);
}

.hdw-group__head::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--bar);
}

.hdw-group__body {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.hdw-row,
.hdw-field {
  display: grid;
  align-items: center;
  gap: 8px;
}

.hdw-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hdw-label {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Radio cards */
.hdw-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.hdw-card {
  position: relative;
  height: var(--hdw-card-h, 62px);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card);
  color: var(--card-text-off);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hdw-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-hover);
}

.hdw-card.is-checked {
  color: var(--card-text);
}

.hdw-card__icon {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 25px;
  height: 25px;
}

.hdw-card__label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdw-radio {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--radio-border);
  border-radius: 50%;
  background: var(--radio-bg);
}

.hdw-radio::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: var(--radio-dot);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms var(--ease-soft), transform 260ms var(--ease-soft);
}

.hdw-card.is-checked .hdw-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* Buttons */
.hdw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: var(--hdw-control-h, 31px);
  padding: 0 8px;
  border: 1px solid;
  border-radius: 3px;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.hdw-btn:active {
  transform: translateY(0.5px);
}

.hdw-btn--primary { border-color: var(--primary-border); background: var(--primary); color: var(--primary-text); }
.hdw-btn--primary:hover { background: var(--primary-hover); }
.hdw-btn--secondary { border-color: var(--secondary-border); background: var(--secondary); color: var(--secondary-text); }
.hdw-btn--secondary:hover { background: var(--secondary-hover); }
.hdw-btn--success { border-color: var(--success-border); background: var(--success); color: var(--success-text); }
.hdw-btn--success:hover { background: var(--success-hover); }
.hdw-btn--danger { border-color: var(--danger-border); background: var(--danger); color: var(--danger-text); }
.hdw-btn--danger:hover { background: var(--danger-hover); }

/* Combo box */
.hdw-combo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  height: var(--hdw-field-h, 24px);
  padding: 0 9px 0 6px;
  border: 1px solid var(--combo-border);
  background: var(--combo);
  color: var(--combo-text);
  cursor: pointer;
}

.hdw-combo:hover {
  background: var(--combo-hover);
}

.hdw-combo > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdw-combo__glyph {
  flex: none;
  fill: none;
  stroke: var(--combo-glyph);
}

/* Number field with − / + */
.hdw-num {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px 18px;
  align-items: center;
  height: var(--hdw-field-h, 24px);
  padding: 0 3px 0 7px;
  border: 1px solid var(--num-border);
  background: var(--num);
  color: var(--num-text);
  font-variant-numeric: tabular-nums;
}

.hdw-num__step {
  display: grid;
  place-items: center;
  height: 100%;
  cursor: pointer;
}

/* Touch: the drawn button stays 1:1 with the plugin, the finger target is 24x44. */
@media (pointer: coarse) {
  .hdw-num__step {
    position: relative;
  }

  .hdw-num__step::after {
    content: "";
    position: absolute;
    inset: -10px -3px;
  }
}

.hdw-num__step svg {
  fill: none;
  stroke: var(--num-glyph);
}

.hdw-num__step:hover svg {
  stroke: var(--text);
}

/* Checkboxes */
.hdw-checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.hdw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hdw-check__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--check-border);
  background: var(--check-bg);
}

.hdw-check__box svg {
  fill: none;
  stroke: var(--check-mark);
  stroke-width: 1.6;
  opacity: 0;
  transition: opacity 160ms var(--ease-soft);
}

.hdw-check.is-checked .hdw-check__box svg {
  opacity: 1;
}

.hdw-check:hover .hdw-check__box {
  border-color: var(--card-border-hover);
}

.hdw-check__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Conditional parts (By elements / Whole boundary ...) */
.hdw [hidden] {
  display: none;
}

/* With screen tabs, the list starts level with the window, not the tabs. */
@media (min-width: 901px) {
  .anatomy:has(.anatomy__tabs) .anatomy__list {
    margin-top: 44px;
  }
}

@media (max-width: 900px) {
  .anatomy {
    grid-template-columns: minmax(0, 1fr);
  }

  .anatomy__figure {
    position: relative;
    top: auto;
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

/* More tools like this: the other tools of the module, then the way back. */
.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.related-tool {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  transition: background-color 360ms var(--ease-soft), box-shadow 360ms var(--ease-soft);
}

.related-tool:hover {
  background: #fff;
  box-shadow: 0 14px 34px -22px rgba(20, 30, 50, 0.4);
}

.related-tool__icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
}

.related-tool__name {
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}

.related-tool__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.instruction-back {
  font-weight: 600;
}

/* 15d Inner pages: dark intro --------------------------------------------- */
.compact-dark-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5vw, 64px) 0;
  background: var(--navy-900);
}

.shared-wave23-bg,
.shared-wave23-canvas--hero,
.shared-wave23-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shared-wave23-bg {
  z-index: 0;
  background:
    radial-gradient(140% 77.6% at 50% 0%, #2a3c65 0%, rgba(42, 60, 101, 0.88) 18.4%, rgba(42, 60, 101, 0.54) 40.2%, rgba(42, 60, 101, 0.18) 65.3%, transparent 83.7%),
    var(--navy-900);
}

.shared-wave23-canvas--hero {
  z-index: 1;
}

.shared-wave23-mask {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #1e2638 0%, rgba(30, 38, 56, 0.92) 13.9%, rgba(30, 38, 56, 0.42) 29%, rgba(30, 38, 56, 0.08) 42%, transparent 50%, rgba(30, 38, 56, 0.08) 58%, rgba(30, 38, 56, 0.42) 71%, rgba(30, 38, 56, 0.92) 86.1%, #1e2638 100%);
}

.compact-dark-intro__inner {
  position: relative;
  z-index: 3;
}

.compact-dark-intro .text-eyebrow {
  margin-bottom: var(--s-4);
}

.compact-dark-intro .text-page-title {
  max-width: 760px;
  color: #f4f7ff;
  font-size: clamp(32px, 3.6vw, 46px);
}

.compact-dark-intro .text-body-large {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(207, 219, 242, 0.76);
  font-size: var(--fs-15);
}

/* Dark switcher strip (news filters, roadmap tabs) */
.news-switcher-section,
.roadmap-navigation-band {
  background: #1f2a3e;
  border-bottom: 1px solid rgba(132, 158, 199, 0.14);
}

.news-switcher-section__inner,
.roadmap-navigation-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.news-filter-strip,
.roadmap-switcher {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-filter-set {
  display: flex;
  gap: var(--s-1);
}

.news-filter-divider {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 var(--s-2);
  background: rgba(170, 192, 225, 0.16);
}

/* Content + sticky sidebar layout (news, roadmap, about) */
.news-section,
.roadmap-section,
.about-section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--paper);
}

.news-section > .standard-container,
.roadmap-section > .standard-container {
  position: relative;
  z-index: 2;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: clamp(28px, 3.4vw, 48px);
}

.stage3-roadmap-panel.is-hidden,
.roadmap-panel--hidden {
  display: none;
}

.about-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Sidebar cards */
.compact-info-card {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 27px rgba(24, 37, 63, 0.07);
}

.compact-info-card--dark {
  border-color: rgba(111, 154, 227, 0.2);
  background: linear-gradient(145deg, #202e49, #273956 58%, #1c2a43);
  box-shadow: 0 14px 31px rgba(24, 37, 63, 0.14);
  color: rgba(205, 220, 245, 0.74);
}

.compact-info-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 21px, rgba(133, 160, 246, 0.16) 21px 22px, transparent 22px 27px, rgba(133, 160, 246, 0.07) 27px 28px);
}

.compact-info-card--max::before {
  background: repeating-linear-gradient(118deg, transparent 0 21px, rgba(105, 194, 216, 0.18) 21px 22px, transparent 22px 27px, rgba(105, 194, 216, 0.08) 27px 28px);
}

.compact-info-card__wave {
  display: none;
}

.compact-info-card > * {
  position: relative;
  z-index: 2;
}

.compact-info-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.compact-info-card--dark strong {
  color: #f1f5ff;
}

.compact-info-card--dark .text-eyebrow {
  color: rgba(165, 186, 222, 0.8);
}

.compact-info-card--dark .text-body,
.compact-info-card--dark .text-caption {
  color: rgba(205, 220, 245, 0.74);
}

.compact-info-card .text-caption {
  display: block;
  margin-top: 14px;
}

.compact-info-card .text-link {
  margin-top: var(--s-3);
}

/* Notice box */
.standard-notice {
  margin-top: var(--s-5);
  padding: 20px 22px;
  border: 1px solid rgba(88, 123, 199, 0.25);
  border-radius: var(--r-lg);
  background: rgba(82, 115, 221, 0.06);
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.6;
}

.standard-notice a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 15e News: text-first lead, hairline changelog, product lines ----------- */
.news-page {
  padding: var(--section-y) 0;
  background: #f7f9fd;
}

.news-card.is-hidden,
.news-card.is-filtered-out {
  display: none;
}

.news-meta {
  margin: 0;
  color: #7d8aa1;
  font-size: var(--fs-13);
  line-height: 1.5;
}

/* Lead story: text only */
.news-lead {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.news-lead > * {
  max-width: 760px;
}

.news-lead__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.news-lead__text {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.65;
}

/* Changelog: one head row, then hairline-separated rows */
.news-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.news-feed-head__latest {
  color: #7d8aa1;
  font-size: var(--fs-13);
}

.news-feed-head__latest strong {
  color: var(--ink);
  font-weight: 600;
}

.news-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  gap: 0 clamp(20px, 3vw, 48px);
  padding: 32px 0;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
  scroll-margin-top: calc(var(--header-h) + var(--s-6));
}

.news-row__date strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
}

.news-row__date span {
  color: #8d9ab0;
  font-size: var(--fs-13);
}

.news-row__content {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 720px;
}

.news-row__title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.news-row__text {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.65;
}

.news-empty {
  margin: 40px 0 0;
  color: #7d8aa1;
  font-size: var(--fs-md);
  text-align: center;
}

/* Product lines: four hairline-topped items, mark and name on one line */
.news-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.4vw, 36px);
}

.news-platform-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  align-content: start;
  gap: 10px 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(68, 91, 133, 0.16);
}

.news-platform-link__copy {
  display: contents;
}

.news-platform-link .brand-symbol {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.42) contrast(1.15);
}

.news-platform-link strong {
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.3;
}

.news-platform-link small {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.55;
}

.news-platform-link .text-link {
  grid-column: 1 / -1;
  justify-self: start;
}

.news-products__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
}

.news-footnote {
  max-width: 640px;
  margin: 0;
  color: #8d9ab0;
  font-size: var(--fs-13);
  line-height: 1.6;
}

/* 15f Roadmap: a route Now → Next → Later -------------------------------- */
.roadmap-page {
  padding: var(--section-y) 0;
  background: #f7f9fd;
}

.stage3-roadmap-panel.is-hidden {
  display: none;
}

.roadmap-route {
  --tone: #4f7dff;
  --tone-soft: rgba(79, 125, 255, 0.16);
  animation: account-in 620ms var(--ease-soft) both;
}

.roadmap-route--max {
  --tone: #3a879f;
  --tone-soft: rgba(58, 135, 159, 0.18);
}

.roadmap-route--hexa {
  --tone: #6a7ce0;
  --tone-soft: rgba(106, 124, 224, 0.18);
}

/* Summary: mark and name on one line, one fact line, a thin bar, the text. */
.roadmap-summary {
  display: grid;
  justify-items: start;
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.roadmap-summary__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.roadmap-summary__mark {
  /* Next to a 28px/700 title the glyph is the full font size (~30px), not the cap height. */
  width: 36px;
  height: 36px;
  --mark-fill: 0.84;
  flex: none;
}

.roadmap-summary__title {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.roadmap-summary__facts {
  margin-top: 10px;
  color: #7d8aa1;
  font-size: var(--fs-13);
  line-height: 1.5;
}

.roadmap-summary__text {
  margin-top: 16px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stages on one line, joined by the route */
.roadmap-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--stages, 3), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-stages::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 0;
  border-top: 1.5px dashed rgba(68, 91, 133, 0.22);
}

.roadmap-stage {
  position: relative;
  padding: 44px 0 0;
}

/* Wide screens: the parts of the three stages line up (when, title, text,
   checklist) whatever their length. */
@media (min-width: 901px) {
  .roadmap-stage {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
}

.roadmap-stage__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(68, 91, 133, 0.32);
  border-radius: 50%;
  background: #f7f9fd;
}

.roadmap-stage--current .roadmap-stage__node {
  border-color: var(--tone);
  background: var(--tone);
  box-shadow: 0 0 0 6px var(--tone-soft);
}

/* The travelled part of the route, from the current stage onwards. */
.roadmap-stage--current::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: calc(-1 * clamp(16px, 2vw, 28px) - 8px);
  border-top: 1.5px solid var(--tone);
}

.roadmap-stage--current {
  padding: 44px 0 0;
}

.roadmap-stage--current > :not(.roadmap-stage__node) {
  position: relative;
}

.roadmap-stage__when {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 1.6em;
  margin-bottom: 10px;
}

.roadmap-stage__when strong {
  color: var(--tone);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.roadmap-stage--future .roadmap-stage__when strong {
  color: #8d9ab0;
}

.roadmap-stage__when span {
  color: #7d8aa1;
  font-size: var(--fs-13);
}

.roadmap-stage__title {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.roadmap-stage--future .roadmap-stage__title {
  color: #3b4f6e;
}

.roadmap-stage__text {
  margin-top: 10px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.roadmap-checklist {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
  list-style: none;
}

.roadmap-checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.45;
}

/* Released versions: version, then the date muted, then the note. */
.roadmap-checklist li > span {
  display: block;
}

.roadmap-checklist__meta {
  color: #7d8aa1;
  font-size: var(--fs-13);
}

.roadmap-checklist__note {
  margin-top: 2px;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.roadmap-checklist li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(68, 91, 133, 0.28);
  border-radius: 50%;
}

.roadmap-stage--future .roadmap-checklist li {
  color: #4a5f80;
}

/* Current stage: items in this release, checked in the product colour. */
.roadmap-stage--current .roadmap-checklist li::before {
  border-color: var(--tone);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--tone);
}

.roadmap-foot {
  display: grid;
  gap: 8px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.roadmap-foot__line,
.roadmap-foot__note {
  max-width: 640px;
  margin: 0;
}

.roadmap-foot__note {
  color: #8d9ab0;
  font-size: var(--fs-13);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .news-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 28px 0;
  }

  .news-row__date {
    display: flex;
    gap: 8px;
    align-items: baseline;
  }

  .news-row__date strong {
    font-size: var(--fs-md);
  }

  .news-platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  /* Route turns vertical */
  .roadmap-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-left: 36px;
  }

  .roadmap-stages::before {
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: auto;
    height: auto;
    border-top: 0;
    border-left: 1.5px dashed rgba(68, 91, 133, 0.22);
  }

  .roadmap-stage,
  .roadmap-stage--current {
    padding: 0;
  }

  .roadmap-stage__node {
    top: 2px;
    left: -36px;
  }

  .roadmap-stage--current::before {
    top: 8px;
    bottom: -36px;
    left: -28px;
    right: auto;
    border-top: 0;
    border-left: 1.5px solid var(--tone);
  }
}

/* 15g About ------------------------------------------------------------- */
.about-story {
  max-width: 720px;
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.75;
}

.about-story p + p {
  margin-top: 22px;
}

.about-story strong {
  color: var(--ink);
}

.about-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-value-card,
.contact-card {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 27px rgba(24, 37, 63, 0.07);
}

.about-value-card .text-card-title,
.contact-card .text-card-title {
  margin-bottom: var(--s-2);
  font-size: var(--fs-h4);
}

.contact-card__symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: rgba(73, 111, 224, 0.1);
  color: var(--link);
  font-weight: 700;
}

/* 15h Tool detail pages ------------------------------------------------- */
.tool-detail-overview {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.tool-detail-story-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--row-gap);
  padding: var(--row-y) 0;
}

.tool-detail-story-row + .tool-detail-story-row {
  border-top: 1px solid var(--rule);
}

.tool-detail-story-row:first-child {
  padding-top: 0;
}

.tool-detail-story-row:last-child {
  padding-bottom: 0;
}

.tool-detail-story-row--media-right .tool-detail-story__media {
  order: 2;
}

.tool-detail-story__media {
  min-width: 0;
}

.tool-detail-story__copy {
  display: grid;
  align-content: center;
  gap: var(--s-3);
  min-width: 0;
}

.tool-detail-story__copy .text-eyebrow,
.tool-detail-story__copy .tool-row__badges {
  margin-bottom: 0;
}

.tool-detail-story__copy .tool-status {
  margin-top: 0;
}

.tool-detail-highlights {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text);
}

.tool-detail-story__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) 18px;
  margin-top: var(--s-2);
}

.tool-detail-identity {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(92, 116, 158, 0.18);
  border-radius: var(--r-xl);
  background: #1d2a43;
  box-shadow: 0 18px 40px rgba(16, 28, 48, 0.16);
}

.tool-detail-identity__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.44;
}

.tool-detail-identity__tool-icon {
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-lg);
  background: rgba(235, 242, 255, 0.12);
  color: #c3c8d1;
}

.tool-detail-identity__tool-svg {
  width: 34px;
  height: 34px;
}

.tool-detail-identity__meta {
  position: absolute;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: rgba(226, 235, 250, 0.74);
}

.tool-detail-identity__meta span {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-detail-identity__meta strong {
  color: rgba(247, 250, 255, 0.96);
  font-size: var(--fs-13);
  font-weight: 600;
}

.tool-detail-story__media--image {
  overflow: hidden;
  border: 1px solid rgba(92, 116, 158, 0.14);
  border-radius: var(--r-xl);
  background: rgba(28, 39, 61, 0.08);
}

.tool-detail-story__media--image img {
  width: 100%;
  height: auto;
}

.tool-update-grid {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.tool-update-card {
  position: relative;
  overflow: hidden;
  padding: 22px var(--s-5) 22px 28px;
  border: 1px solid rgba(71, 100, 150, 0.16);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(26, 43, 72, 0.07);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.tool-update-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.82;
}

.tool-update-card:hover {
  border-color: rgba(82, 118, 181, 0.3);
  box-shadow: 0 16px 34px rgba(26, 43, 72, 0.11);
}

.tool-update-card .text-card-title {
  margin: var(--s-2) 0;
  font-size: var(--fs-h4);
}

.tool-update-card .text-link {
  margin-top: var(--s-3);
}

/* 15i 404 page --------------------------------------------------------- */
.not-found-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3) var(--s-6);
}

/* Picker mode (stage4.js adds .is-picker when the tab row does not fit the
   panel): "CATEGORY ● Modeling" opens the list of tabs below. */
.tab-picker-wrap.is-picker {
  position: relative;
  display: block;
  width: min(100%, 480px); /* the same column as the cards below */
}

.news-filter-strip.has-pickers .tab-picker-wrap.is-picker {
  width: auto;
}

.tab-picker-wrap.is-picker .tab-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  color: #f2f6ff;
  font-size: var(--fs-md);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.tab-picker__label {
  color: rgba(203, 216, 238, 0.5);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tab-picker__value {
  position: relative;
  padding-left: 13px;
}

.tab-picker__value::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--tab-dot, #6f93f5);
}

.tab-picker__chevron {
  width: 12px;
  height: 12px;
  color: rgba(203, 216, 238, 0.6);
  transition: transform 420ms var(--ease-soft);
}

.tab-picker-wrap.is-picker.is-open .tab-picker__chevron {
  transform: rotate(180deg);
}

.tab-picker-wrap.is-picker > .category-tabs,
.tab-picker-wrap.is-picker > .news-filter-set,
.tab-picker-wrap.is-picker > .roadmap-switcher {
  position: absolute;
  top: calc(100% + 4px);
  left: -10px;
  z-index: 40;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 2 * var(--gutter));
  margin: 0;
  padding: 6px;
  overflow: visible;
  background: #182132;
  border: 1px solid rgba(132, 158, 199, 0.16);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 44px rgba(4, 8, 18, 0.45);
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transform-origin: top left;
  /* No transition when closed: a list that is re-measured (resize, load)
     must never be caught half-faded. It opens with the rule below. */
}

.tab-picker-wrap.is-picker.is-open > .category-tabs,
.tab-picker-wrap.is-picker.is-open > .news-filter-set,
.tab-picker-wrap.is-picker.is-open > .roadmap-switcher {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms var(--ease-soft), transform 520ms var(--ease-soft), visibility 0s;
}


.tab-picker-wrap.is-picker .category-tab,
.tab-picker-wrap.is-picker .news-filter,
.tab-picker-wrap.is-picker .roadmap-tab {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 30px;
  border-radius: var(--r-md);
  text-align: left;
}

.tab-picker-wrap.is-picker .category-tab::before,
.tab-picker-wrap.is-picker .news-filter::before,
.tab-picker-wrap.is-picker .roadmap-tab::before {
  left: 14px;
}

.tab-picker-wrap.is-picker .category-tab:hover,
.tab-picker-wrap.is-picker .news-filter:hover,
.tab-picker-wrap.is-picker .roadmap-tab:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* News: the two pickers sit side by side. */
.news-filter-strip.has-pickers {
  gap: var(--s-6);
  overflow: visible;
}

.news-filter-strip.has-pickers .news-filter-divider {
  display: none;
}


/* 16 Reveal motion ------------------------------------------------------ */
/* stage4.js adds .is-visible when an element scrolls into view. */
.reveal-side,
.reveal-stage3,
.reveal-fade {
  opacity: 0;
  transition:
    opacity 1100ms var(--ease-soft),
    transform 1400ms var(--ease-soft);
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--reveal-offset, 0ms));
}

/* Calm reveals: text and sections only fade in (nothing jumps up). Video
   cards and pictures glide in softly from their own side - left-hand ones
   from the left, right-hand ones from the right; the text follows a beat
   later with a plain fade. */
.reveal-side--left,
.reveal-side--right { transform: scale(0.985); }
.reveal-side--media.reveal-side--left { transform: translate3d(-44px, 0, 0); }
.reveal-side--media.reveal-side--right { transform: translate3d(44px, 0, 0); }
.reveal-side--copy { --reveal-offset: 160ms; transform: none; }

.reveal-side.is-visible,
.reveal-stage3.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .reveal-side,
  .reveal-stage3,
  .reveal-fade {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-side,
  .reveal-stage3,
  .reveal-fade {
    opacity: 1;
    transform: none;
  }
}

/* 17 Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-cards-stack {
    gap: var(--s-6);
  }

  .home-product-row {
    max-width: 820px;
    margin-inline: auto;
  }

  .standard-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-grid {
    grid-template-columns: 1fr;
  }

  /* Sidebar layouts: sidebar moves under the content and stops sticking */
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .about-value-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: two columns get too narrow below ~900-960px, stack them. */
@media (max-width: 960px) {
  .hero-cards-stack {
    grid-template-columns: minmax(0, 440px);
    gap: var(--s-6);
  }
}

@media (max-width: 900px) {
  /* Stacked rows keep a readable measure (~75 characters) instead of
     stretching the picture and the text across the whole tablet. */
  .home-product-row,
  .tool-row,
  .tool-detail-story-row {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    max-width: 480px;
    margin-inline: auto;
  }

  .home-product-row--reverse .home-product-row__media,
  .tool-detail-story-row--media-right .tool-detail-story__media {
    order: 0;
  }
}

/* Mobile: must match MOBILE_MAX = 760 in stage24.js */
@media (max-width: 760px) {
  :root {
    --row-y: 24px;
  }

  /* Header: logo left, menu icon right; the account entry moves into the menu. */
  .nav-inner {
    display: flex;
    justify-content: space-between;
  }

  /* With the menu icon, the account lives first inside the menu, so the
     header shows only the logo and the menu icon. */
  .nav-menu,
  .nav-tools {
    display: none;
  }

  .nav-lang-row {
    order: 5;
    display: block;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin: 0 auto var(--s-6);
    padding: 18px 0 8px;
    border-top: 1px solid var(--rule-dark);
  }

  html.nav-mobile-open .nav-lang-row {
    animation: hd-menu-in 900ms var(--ease-soft) 490ms both;
  }

  .nav-lang-row__label {
    display: block;
    margin-bottom: 12px;
    padding-left: calc(var(--menu-icon-col) + var(--menu-gap));
    color: rgba(160, 182, 220, 0.6);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
  }

  .nav-lang-row__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: calc(var(--menu-icon-col) + var(--menu-gap));
  }

  .nav-lang-row__item {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #c3d1ea;
    font-size: var(--fs-sm);
  }

  .nav-lang-row__item.is-current {
    background: rgba(142, 169, 210, 0.2);
    color: #fff;
  }

  /* Borderless animated "sandwich" icon that morphs into a cross. */
  .nav-mobile-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    color: var(--accent); /* same colour as the logo on the left */
    -webkit-tap-highlight-color: transparent;
  }

  /* Whole-pixel geometry (18px box, lines at 0/7/14) so all three lines
     render with the same thickness. */
  .nav-mobile-toggle__icon {
    position: relative;
    width: 24px;
    height: 18px;
  }

  .nav-mobile-toggle__icon::before,
  .nav-mobile-toggle__icon::after,
  .nav-mobile-toggle__icon span {
    content: "";
    position: absolute;
    right: 0;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    /* Closing: the cross slowly straightens first, then the lines part. */
    transition:
      top 420ms cubic-bezier(0.65, 0, 0.35, 1) 300ms,
      transform 480ms cubic-bezier(0.65, 0, 0.35, 1) 0ms,
      opacity 300ms ease 320ms;
  }

  .nav-mobile-toggle__icon::before { top: 0; }
  .nav-mobile-toggle__icon span { top: 7px; }
  .nav-mobile-toggle__icon::after { top: 14px; }

  /* Opening: the lines meet in the middle first, then turn into a cross. */
  html.nav-mobile-open .nav-mobile-toggle__icon::before,
  html.nav-mobile-open .nav-mobile-toggle__icon::after,
  html.nav-mobile-open .nav-mobile-toggle__icon span {
    top: 7px;
    transition:
      top 420ms cubic-bezier(0.65, 0, 0.35, 1) 0ms,
      transform 560ms cubic-bezier(0.65, 0, 0.35, 1) 340ms,
      opacity 240ms ease 180ms;
  }

  html.nav-mobile-open .nav-mobile-toggle__icon::before { transform: rotate(45deg); }
  html.nav-mobile-open .nav-mobile-toggle__icon span { opacity: 0; }
  html.nav-mobile-open .nav-mobile-toggle__icon::after { transform: rotate(-45deg); }

  /* Full-screen menu sheet under the header. */
  .nav-overlay {
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
    border-top: 1px solid var(--rule-dark);
    transform: none;
    transition:
      opacity 380ms var(--ease-soft),
      visibility 0s linear 380ms;
  }

  html.nav-mobile-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition:
      opacity 640ms var(--ease-soft),
      visibility 0s;
  }

  /* The desktop dropdown machinery is not used on phones. */
  .nav-overlay-inner {
    height: auto;
    overflow: visible;
    border-top: 0;
    transition: none;
  }

  .nav-panel {
    position: static;
    display: block;
    padding: 18px 0 8px;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .nav-panel + .nav-panel {
    border-top: 1px solid var(--rule-dark);
  }

  .nav-panel-main {
    display: block;
  }

  /* Same full menu as before (titles and descriptions), only tidier: the
     icons sit on one vertical axis at the page edge, the gap from icon to
     text equals the page gutter, slightly brighter text, product icons in
     their own colours. */
  /* Icon column = the icon itself (36px) at the page edge, then a fixed gap
     to the text: no empty space floating around the icons. */
  .nav-overlay {
    --menu-gap: 16px;
    --menu-icon-col: 36px;
  }

  .nav-panel-label {
    margin: 0 0 var(--s-1);
    padding-left: calc(var(--menu-icon-col) + var(--menu-gap));
    color: rgba(160, 182, 220, 0.6);
    font-size: var(--fs-2xs);
  }

  .nav-panel-item {
    grid-template-columns: var(--menu-icon-col) minmax(0, 1fr);
    column-gap: var(--menu-gap);
    min-height: 0;
    margin-inline: 0;
    padding: 7px 0;
    border-radius: 0;
  }

  .nav-panel-item:hover,
  .nav-panel-item:focus-visible {
    background: none;
  }

  /* All icons one colour (monochrome) and one visual size: solid, heavy
     glyphs are drawn a little smaller and thin outline glyphs a little
     larger (factors measured from each icon's ink). */
  .nav-panel-item-icon {
    justify-self: center;
    width: 36px;
    height: 36px;
  }

  .nav-panel-item-icon::before {
    inset: 0;
    opacity: 0.85;
    transform: scale(var(--icon-scale, 1));
  }

  .nav-icon-news { --icon-scale: 0.96; }
  .nav-icon-education { --icon-scale: 0.97; }
  .nav-icon-release,
  .nav-icon-roadmap { --icon-scale: 1.06; }
  .nav-icon-revit { --icon-scale: 1.02; }
  .nav-icon-max { --icon-scale: 1.04; }
  .nav-icon-hexa { --icon-scale: 0.92; }
  .nav-icon-mail { --icon-scale: 0.93; }

  /* Contrast between the original (accent-blue text) and the brighter pass. */
  .nav-panel-item-title {
    color: #c3d1ea;
    font-size: var(--fs-lg);
  }

  .nav-panel-item-desc {
    margin-top: 2px;
    color: rgba(166, 187, 222, 0.68);
    font-size: var(--fs-13);
    line-height: 1.35;
  }

  .nav-panel-preview {
    display: none;
  }

  /* Menu order on phones: account, products (Revit, 3ds Max...), news, the
     rest. Sections fade in one after another in that order. */
  .nav-overlay,
  .nav-overlay-inner {
    display: flex;
    flex-direction: column;
  }

  .nav-account { order: -1; }
  .nav-panel[data-panel="download"] { order: 1; }
  .nav-panel[data-panel="news"] { order: 2; }
  .nav-panel[data-panel="about"] { order: 3; }
  .nav-panel[data-panel="contact"] { order: 4; }

  html.nav-mobile-open .nav-panel,
  html.nav-mobile-open .nav-account {
    animation: hd-menu-in 900ms var(--ease-soft) 160ms both;
  }

  html.nav-mobile-open .nav-account { animation-delay: 140ms; }
  html.nav-mobile-open .nav-panel[data-panel="download"] { animation-delay: 210ms; }
  html.nav-mobile-open .nav-panel[data-panel="news"] { animation-delay: 280ms; }
  html.nav-mobile-open .nav-panel[data-panel="about"] { animation-delay: 350ms; }
  html.nav-mobile-open .nav-panel[data-panel="contact"] { animation-delay: 420ms; }

  /* The first panel after the account needs no rule above it. */
  .nav-panel + .nav-panel {
    border-top: 0;
  }

  .nav-panel:not([data-panel="download"]) {
    border-top: 1px solid var(--rule-dark);
  }

  @keyframes hd-menu-in {
    from { opacity: 0; }
    to { opacity: 1; transform: none; }
  }

  .nav-account:not([hidden]) {
    display: block;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin: var(--s-4) auto 0;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--rule-dark);
  }

  .nav-account__text {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .nav-account__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-account__desc {
    color: rgba(166, 187, 222, 0.68);
    font-size: var(--fs-13);
    font-weight: 400;
    line-height: 1.35;
  }

  .nav-account__button {
    display: grid;
    grid-template-columns: var(--menu-icon-col) minmax(0, 1fr);
    align-items: center;
    gap: var(--menu-gap);
    width: 100%;
    min-height: 48px;
    color: var(--on-dark);
    font-size: var(--fs-lg);
    font-weight: 590;
    text-align: left;
  }

  .nav-account__icon {
    justify-self: center;
    width: 32px;
    height: 32px;
  }

  /* Touch targets */
  .standard-button,
  .text-link {
    min-height: var(--control-h-touch);
  }

  .responsive-copy--desktop { display: none; }
  .responsive-copy--compact { display: inline; }

  /* Home hero cards on phones: [logo | title + subtitle] in golden proportion
     (1 : 1.618), then the actions. Taller than the desktop card's ratio so the
     logo has air above it; buttons stay quieter than the 26px title. */
  .hero-card {
    min-height: 0;
    border-radius: var(--r-lg);
  }

  .hero-card__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 30px 14px;
    min-height: 252px;
    padding: 34px 22px 24px;
  }

  .hero-card__brand {
    margin-top: 0;
  }

  .hero-card__brand-image {
    width: min(100px, 78%);
  }

  .hero-card__main {
    display: contents;
  }

  .hero-card__copy {
    display: block;
    min-width: 0;
    padding-top: 0;
  }

  .hero-card__title {
    margin-bottom: 0;
    color: #dfe6f3;
    font-size: 28px;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .hero-card__subtitle {
    margin-top: 14px;
    line-height: 1.45;
  }

  /* Same columns as the card: the pale info button sits under the logo, the
     bright main button under the text and starts at the text's left edge. */
  .hero-card__actions {
    grid-column: 1 / -1;
    display: grid;
    /* Equal halves: a narrower info column wrapped "Дорожная карта" to two lines. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
  }

  .hero-card__actions .hero-btn--try {
    grid-row: 1;
    grid-column: 1;
  }

  .hero-card__actions .hero-btn--download {
    grid-row: 1;
    grid-column: 2;
  }

  .hero-card .hero-btn {
    width: 100%;
    min-height: var(--control-h-card-touch);
    font-size: var(--fs-xs);
    font-weight: 500;
  }

  .hero-card__subtitle {
    max-width: none;
    font-size: var(--fs-md);
  }

  .intro-band p {
    font-size: var(--fs-md);
    line-height: 1.6;
  }

  .home-product-row__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-row__actions .standard-button {
    padding-inline: var(--s-3);
  }

  /* Product pages: same "logo | text" layout as on larger screens, only
     smaller; the actions run under both columns. */
  /* Closer to square on phones; the content sits in the middle. */
  .product-hero {
    min-height: clamp(280px, 74vw, 340px);
  }

  /* Same column as the cards below (max 480px, centred), so left edges line up. */
  .product-hero-content {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  .product-hero__inner {
    padding: 36px 0;
  }

  .product-hero-content {
    grid-template-columns: clamp(66px, 19vw, 88px) minmax(0, 1fr);
    grid-template-areas:
      "brand meta"
      "brand title"
      "brand subtitle"
      "actions actions";
    align-items: center;
    gap: 0 clamp(14px, 4vw, 22px);
    text-align: left;
  }

  .product-hero-content__copy { display: contents; }
  .product-hero-content__brand { grid-area: brand; }
  .product-hero-content__meta { grid-area: meta; }
  .product-hero-content__title { grid-area: title; }
  .product-hero-content__subtitle { grid-area: subtitle; }

  .product-hero-content__brand .brand-logo {
    width: 100%;
    max-height: clamp(66px, 19vw, 88px);
    object-fit: contain;
  }
  .product-hero-content__brand .brand-logo--hexa { max-height: clamp(46px, 13.4vw, 62px); }

  .product-hero-content__meta {
    justify-content: flex-start;
    margin-bottom: 6px;
  }

  .product-hero-content__title {
    font-size: clamp(21px, 5.6vw, 28px);
    line-height: 1.12;
  }

  .product-hero-content__subtitle {
    margin: 6px 0 0;
    color: rgba(236, 243, 255, 0.74);
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.4;
  }

  .product-hero-content__actions {
    grid-area: actions;
    width: 100%;
    margin-top: 30px;
    max-width: none;
    /* Pavel: on phones the buttons follow the columns above them — the short pale one under the
       logo, Download starting flush with the left edge of the product name. Never two equal halves. */
    grid-template-columns: subgrid;
  }
  .product-hero-content__actions .hero-btn--download { order: 2; }
  .product-hero-content__actions .hero-btn:not(.hero-btn--download) { padding-left: 4px; padding-right: 4px; white-space: nowrap; }

  .product-hero-content__actions .hero-btn {
    min-height: var(--control-h);
    font-size: var(--fs-sm);
  }

  /* Product intro under the hero: a notch smaller on phones. */
  .information-band .text-section-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .information-band .text-body-large {
    font-size: var(--fs-md);
    line-height: 1.6;
  }

  /* Catalogue right under the tab strip: no big empty gap. */
  .product-catalog {
    padding-top: 24px;
  }


  .category-tabs {
    max-width: 100%;
  }


  html.product-category-docked .tab-picker-wrap.is-picker {
    margin-left: 40px;
  }

  html.product-category-docked .category-tabs {
    margin-left: 0;
  }

  html.product-category-docked .tab-picker-wrap.is-icons .category-tabs {
    margin-left: 28px;
  }

  .category-tab {
    min-height: var(--control-h-touch);
  }


  .version-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .standard-steps-grid {
    grid-template-columns: 1fr;
  }

  /* Inner pages */

  .news-filter,
  .roadmap-tab {
    min-height: var(--control-h-touch);
  }

  .about-value-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tool-update-card {
    padding: var(--s-4) var(--s-4) var(--s-4) 20px;
  }

  .stage3-video-backdrop {
    padding: var(--s-3);
  }

  .hd-installer-modal {
    height: min(600px, calc(100dvh - 18px));
    min-height: 0;
  }

  .hd-installer-modal__brand { top: 116px; width: 170px; }
  .hd-installer-modal__brand img { height: 150px; }
  .hd-installer-modal__wave-box { top: 70px; height: 280px; }
  .hd-installer-modal__copy { right: var(--s-5); bottom: 132px; left: var(--s-5); font-size: var(--fs-13); }
  .hd-installer-modal__agreement { right: calc(var(--s-5) + 48px); bottom: 84px; left: var(--s-5); font-size: var(--fs-13); }
  .hd-installer-modal__next { right: 20px; bottom: 20px; width: 145px; }
}

/* 16 Personal account: a profile page --------------------------------------
   Wide brand cover, the avatar overlapping it on the left, name and e-mail,
   counters, tabs. Licenses are membership-style cards in product colours. */
.page-account {
  background: #f7f9fd;
}

.profile-cover {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--navy-900);
}

.profile-head {
  position: relative;
  z-index: 2;
}

.profile-head__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px clamp(20px, 2.6vw, 32px);
}

/* Avatar: half on the cover, half on the page. */
.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-top: -56px;
  align-self: start;
  border-radius: 50%;
  background: linear-gradient(145deg, #5a86ff, #2f4f9c);
  box-shadow: 0 16px 34px -20px rgba(20, 30, 50, 0.45);   /* no thick white ring (Pavel) */
  color: #f4f7ff;
}

.profile-avatar__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar__initials {
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-avatar__guest {
  display: none;
  width: 44%;
  height: 44%;
  opacity: 0.9;
}

.account[data-state="guest"] .profile-avatar,
.account[data-state="loading"] .profile-avatar {
  background: #1f2a3e;
}

.account[data-state="guest"] .profile-avatar__guest,
.account[data-state="loading"] .profile-avatar__guest {
  display: block;
}

.account[data-state="guest"] .profile-avatar__initials,
.account[data-state="guest"] .profile-avatar__edit,
.account[data-state="loading"] .profile-avatar__edit,
.account.has-photo .profile-avatar__initials {
  display: none;
}

.profile-avatar__edit {
  position: absolute;
  right: 2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #f7f9fd, 0 6px 16px -6px rgba(20, 30, 50, 0.45);
  color: #3b4f6e;
  cursor: pointer;
  transition: color var(--t-base) var(--ease-soft), transform 420ms var(--ease-soft);
}

.profile-avatar__edit:hover {
  color: #4f7dff;
  transform: scale(1.04);
}

.profile-id {
  min-width: 0;
  padding-bottom: 6px;
}

.profile-id .text-eyebrow {
  display: block;
  margin: 14px 0 6px;
}

/* Eyebrow line: "Account" and, in preview, a muted note on the same line. */
.profile-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 14px 0 6px;
}

.profile-eyebrow .text-eyebrow {
  margin: 0;
}

/* Sign out: quiet, sits on the name line (phone: under the e-mail). */
.profile-actions {
  align-self: start;
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-actions .account-btn:not(.account-btn--primary) {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.profile-actions .account-btn:not(.account-btn--primary):hover {
  border-color: rgba(68, 91, 133, 0.22);
  color: var(--ink);
}

.profile-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta {
  margin-top: 8px;
  color: var(--text);
  font-size: var(--fs-md);
}

.profile-error {
  margin-top: 8px;
  color: #b2566a;
  font-size: var(--fs-13);
}

.profile-actions {
  display: flex;
  padding-bottom: 8px;
}

.profile-actions > span {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions > .account-user-only,
.account[data-state="user"] .profile-actions > .account-guest-only,
.account[data-state="loading"] .profile-actions > .account-guest-only {
  display: none;
}

.account[data-state="user"] .profile-actions > .account-user-only {
  display: flex;
}

/* States */
.account-panel {
  display: none;
}

.account[data-state="loading"] .account-panel--loading,
.account[data-state="guest"] .account-panel--guest,
.account[data-state="user"] .account-panel--user {
  display: block;
  animation: account-in 620ms var(--ease-soft) both;
}

@keyframes account-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.account-panel--loading {
  padding: 48px 0 96px;
  color: var(--text);
  font-size: var(--fs-md);
}

.account-panel--guest,
.account-panel--user {
  padding: clamp(32px, 4vw, 48px) 0 clamp(72px, 8vw, 112px);
}

.account-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 1.5px solid rgba(68, 91, 133, 0.2);
  border-top-color: #4568c9;
  border-radius: 50%;
  vertical-align: -2px;
  animation: account-spin 900ms linear infinite;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.account-note {
  margin-bottom: 24px;
  color: #8d9ab0;
  font-size: var(--fs-13);
}

.account-preview-note {
  color: #8d9ab0;
  font-size: var(--fs-13);
  font-weight: 400;
}

.account-preview-note::before {
  content: "·";
  margin: 0 8px;
}

/* Guest: what the account gives */
.account-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-top: 32px;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.account-benefit img {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.account-benefit strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.account-benefit p {
  margin-top: 6px;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* Buttons */
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h, 38px);
  padding: 0 18px;
  border: 1px solid rgba(68, 91, 133, 0.22);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-soft), border-color var(--t-base) var(--ease-soft), opacity var(--t-base) var(--ease-soft);
}

.account-btn:hover {
  border-color: rgba(68, 91, 133, 0.42);
}

.account-btn--primary {
  border-color: #4f7dff;
  background: #4f7dff;
  color: #fff;
}

.account-btn--primary:hover {
  border-color: #4370ee;
  background: #4370ee;
}

.account-btn--small {
  min-height: var(--control-h-compact, 32px);
  padding: 0 14px;
}

.account-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* Counters */
.profile-stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin: 0 0 28px;
}

.profile-stats dt {
  order: 2;
  color: var(--text);
  font-size: var(--fs-13);
}

.profile-stats div {
  display: flex;
  flex-direction: column;
}

.profile-stats dd {
  order: 1;
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Tabs: underline. Hairline under the row; active = ink with a 2px line. */
.profile-tabs {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tab {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0 0 14px;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
  transition: color var(--t-base) var(--ease-soft);
}

.profile-tab::before {
  content: none;
}

.profile-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms var(--ease-soft);
}

.profile-tab:hover {
  color: var(--ink);
}

.profile-tab.is-active {
  color: var(--ink);
}

.profile-tab.is-active::after {
  transform: scaleX(1);
}

.profile-panel {
  display: none;
}

.profile-panel.is-active {
  display: block;
  animation: account-in 520ms var(--ease-soft) both;
}

/* Licenses: membership cards */
.license-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.license-card {
  --tone: 111, 150, 255;
  --bar: #8bb0fe;
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--tone), 0.32), transparent 58%),
    linear-gradient(155deg, #24345f, #151e36);
  box-shadow: 0 24px 50px -30px rgba(20, 30, 60, 0.7);
  color: #e9f0ff;
}

.license-card--max {
  --tone: 113, 200, 244;
  --bar: #71c8f4;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(var(--tone), 0.26), transparent 58%),
    linear-gradient(155deg, #1b3a46, #111d26);
}

.license-card__bg {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 230px;
  height: 230px;
  opacity: 0.07;
  pointer-events: none;
}

.license-card__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.license-card__mark {
  width: 38px;
  height: 38px;
}

.license-card__title strong {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.25;
}

.license-card__title span {
  color: rgba(214, 226, 250, 0.66);
  font-size: var(--fs-sm);
}

.license-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-13);
  font-weight: 600;
}

.license-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa7bc;
}

.license-status--active::before {
  background: #5fd39b;
  box-shadow: 0 0 0 3px rgba(95, 211, 155, 0.18);
}

.license-status--trial::before {
  background: var(--bar);
  box-shadow: 0 0 0 3px rgba(var(--tone), 0.2);
}

.license-card__until span,
.license-card__seats-head span:first-child {
  display: block;
  color: rgba(214, 226, 250, 0.56);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.license-card__until strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.license-card__seats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.license-card__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.license-card__bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--bar);
}

.license-card__key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.07);
}

.license-card__key code {
  overflow: hidden;
  color: rgba(233, 240, 255, 0.86);
  font: 500 var(--fs-sm) / 1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-card__copy,
.license-card__actions a {
  color: var(--bar);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-base) var(--ease-soft);
}

.license-card__copy:hover,
.license-card__actions a:hover {
  color: #fff;
}

.license-card__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

/* Your products: hairline rows, mark | name and facts | links */
.installer-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.installer-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.installer-tile__mark {
  width: 40px;
  height: 40px;
}

.installer-tile__text strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.installer-tile__text span {
  color: #7d8aa1;
  font-size: var(--fs-13);
}

/* Orders */
.account-orders {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-order {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 100px 80px;
  align-items: center;
  gap: 6px 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
  color: var(--text);
  font-size: var(--fs-md);
}

.account-order__item {
  color: var(--ink);
  font-weight: 600;
}

.account-order__amount {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.account-order .text-link,
.account-order__none {
  justify-self: end;
  min-height: 0;
}

.account-empty {
  max-width: 560px;
  padding: 8px 0;
}

.account-empty .text-eyebrow {
  display: block;
  margin-bottom: 10px;
}

.account-empty .text-body {
  margin: 0;
}

/* Profile: a two-column list with hairlines */
.account-profile-list {
  max-width: 720px;
  margin: 0;
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.account-profile-list > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.account-profile-list dt {
  margin: 0;
  color: #7d8aa1;
  font-size: var(--fs-md);
  font-weight: 400;
}

.account-profile-list dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .account-profile-list > div {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }
}

/* The person's photo in the header and the menu */
.nav-user__icon img.is-photo,
.nav-account__icon.is-photo {
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .profile-head__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }

  .profile-actions {
    margin-top: 0;
    padding: 16px 0 0;
  }

  /* Phone: the quiet sign-out sits flush with the text, not inset by its padding. */
  .profile-actions .account-btn:not(.account-btn--primary) {
    padding-inline: 0;
  }

  .account-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .installer-tile {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .installer-tile .installer-tile__links {
    grid-column: 2;
    justify-content: flex-start;
  }

  .profile-cover {
    height: 150px;
  }

  .account-order {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-order__item {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* 18 Cultures -------------------------------------------------------------
   Chinese and Arabic use the system's own fonts (Inter has no CJK / Arabic);
   Arabic pages run right-to-left, Arabic letters are never letter-spaced; the
   live plugin window keeps its own left-to-right layout. */
html:lang(zh-Hans) {
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Inter", system-ui, sans-serif;
}

html:lang(ar) {
  --font: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", "Tahoma", "Inter", system-ui, sans-serif;
}

:root:lang(ar) body * {
  letter-spacing: 0;
}

[dir="rtl"] .hdw,
[dir="rtl"] .anatomy__shot {
  direction: ltr;
}

/* Mixed-language text (English module names inside an Arabic page) takes the
   direction of its own words, so "Views & Sheets" stays in order. */
[dir="rtl"] .video-preview-card__title,
[dir="rtl"] .balanced-title__line,
[dir="rtl"] .related-tool__name,
[dir="rtl"] .instruction-sibling,
[dir="rtl"] .tool-card__title {
  unicode-bidi: plaintext;
}

[dir="rtl"] .nav-lang__list {
  right: auto;
  left: -10px;
}

[dir="rtl"] .text-link,
[dir="rtl"] .news-row__content,
[dir="rtl"] .anatomy__row-head {
  text-align: right;
}

/* Tool name explanation on non-English pages: "Door Creator (генератор дверей)". */
.tool-hint {
  color: #8d9ab0;
  font-size: 0.88em;
  font-weight: 400;
}

.instruction-intro__hint {
  margin-top: 6px;
  color: rgba(207, 219, 242, 0.62);
  font-size: var(--fs-lg);
}

/* 19 Legal pages ------------------------------------------------------------ */
.legal-page {
  padding: var(--section-y) 0;
  background: #f7f9fd;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  align-self: start;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  margin: 14px 0 0;
  padding: 0;
  border-left: 1px solid rgba(68, 91, 133, 0.14);
  list-style: none;
}

.legal-toc a {
  display: block;
  padding: 6px 0 6px 16px;
  color: var(--text);
  font-size: var(--fs-sm);
  transition: color var(--t-base) var(--ease-soft);
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-section {
  padding: 0 0 32px;
  scroll-margin-top: calc(var(--header-h) + var(--s-6));
}

.legal-section + .legal-section {
  padding-top: 32px;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.legal-section h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.legal-section p {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.legal-section p + p {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

/* Small badges hold line icons, not letters. */
.contact-card__symbol .line-icon,
.standard-step__number .line-icon {
  width: 20px;
  height: 20px;
}

/* Short pages: the footer stays at the bottom of the window. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body > main.page {
  flex: 1 0 auto;
}

/* 20 Documentation hub --------------------------------------------------------- */
.docs-start__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.docs-start__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04), 0 18px 40px -30px rgba(20, 30, 50, 0.35);
}

.docs-start__mark {
  width: 24px;
  height: 24px;
}

.docs-start__card h3 {
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 600;
}

.docs-start__meta {
  color: #7d8aa1;
  font-size: var(--fs-13);
}

.docs-start__steps {
  display: grid;
  gap: 8px;
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.docs-start__steps li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: var(--fs-md);
  counter-increment: docs-step;
}

.docs-start__steps li::before {
  content: counter(docs-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 125, 255, 0.1);
  color: #3f63c8;
  font-size: 11px;
  font-weight: 700;
}

.docs-start__card .text-link {
  margin-top: auto;
}

.docs-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 calc(-1 * var(--gutter)) 28px;
  padding: 14px var(--gutter);
  background: rgba(227, 232, 242, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.docs-search {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  height: var(--control-h, 38px);
  padding: 0 14px;
  border: 1px solid rgba(68, 91, 133, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #7d8aa1;
  transition: border-color var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease-soft);
}

.docs-search:focus-within {
  border-color: rgba(79, 125, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(79, 125, 255, 0.12);
}

.docs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-md);
}

.docs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-chip {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5b6d94;
  font-size: var(--fs-13);
  font-weight: 600;
  transition: background-color var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft);
}

.docs-chip:hover {
  color: var(--ink);
}

.docs-chip.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.08);
}

.docs-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-top: 12px;
  color: var(--text);
  font-size: var(--fs-13);
}

.docs-status[hidden] {
  display: none;
}

.docs-status__reset {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(68, 91, 133, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-13);
  font-weight: 600;
}

.docs-status__reset:hover {
  border-color: rgba(79, 125, 255, 0.55);
}

.docs-empty {
  padding: 24px 0;
  color: var(--text);
}

/* Phone: the product chips scroll sideways in one row instead of stacking under the search. */
@media (max-width: 760px) {
  .docs-toolbar {
    gap: 10px;
  }

  .docs-search {
    flex-basis: 100%;
    max-width: none;
  }

  .docs-chips {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .docs-chips::-webkit-scrollbar {
    display: none;
  }

  .docs-chips .docs-chip {
    flex: 0 0 auto;
  }
}

.docs-product {
  scroll-margin-top: calc(var(--header-h) + 80px);
}

.docs-product + .docs-product {
  margin-top: clamp(48px, 6vw, 72px);
}

.docs-product__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.docs-product__head img {
  width: 36px;
  height: 36px;
  --mark-fill: 0.8;
}

.docs-product__head h2 {
  color: var(--ink);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.docs-module {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.docs-module__title {
  padding-top: 10px;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 600;
}

.docs-module__title a:hover {
  color: #2f55c4;
}

.docs-module__tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 4px 16px;
}

.docs-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background-color 320ms var(--ease-soft);
}

.docs-tool:hover {
  background: rgba(255, 255, 255, 0.75);
}

.docs-tool__icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
}

.docs-tool__name {
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
}

.docs-tool__text {
  grid-column: 2 / -1;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text);
  font-size: var(--fs-13);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.docs-tool__badge {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(79, 125, 255, 0.1);
  color: #3f63c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.docs-module[hidden],
.docs-product[hidden],
.docs-tool[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .docs-module {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-module__title {
    padding-top: 0;
  }
}

/* Account overview */
.account-block + .account-block,
.account-block + .account-overview__grid {
  margin-top: clamp(32px, 4vw, 48px);
}

.account-block > .text-eyebrow {
  display: block;
  margin-bottom: 16px;
}

.installer-tile__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.installer-tile__links a {
  color: #3f63c8;
  font-size: var(--fs-13);
  font-weight: 600;
  transition: color var(--t-base) var(--ease-soft);
}

.installer-tile__links a:hover {
  color: var(--ink);
}


.account-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.account-news,
.account-help {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-news li a {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid rgba(68, 91, 133, 0.12);
}

.account-news li:last-child a {
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

.account-news__date {
  color: #8d9ab0;
  font-size: var(--fs-13);
}

.account-news__title {
  color: var(--ink);
  font-weight: 600;
  transition: color var(--t-base) var(--ease-soft);
}

.account-news a:hover .account-news__title {
  color: #2f55c4;
}

.account-news + .text-link {
  margin-top: 14px;
}

.account-help li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 500;
  transition: color var(--t-base) var(--ease-soft);
}

.account-help li a .line-icon {
  color: #6f86b5;
}

.account-help li a:hover {
  color: #2f55c4;
}

.account-hexa-note {
  margin-top: 22px;
  color: var(--text);
  font-size: var(--fs-md);
}

.account-block--langs {
  margin-top: 28px;
}

.account-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-lang {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(68, 91, 133, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-13);
  transition: border-color var(--t-base) var(--ease-soft);
}

.account-lang:hover {
  border-color: rgba(68, 91, 133, 0.4);
}

html:lang(en) .account-lang[data-lang="en"],
html:lang(ru) .account-lang[data-lang="ru"],
html:lang(fr) .account-lang[data-lang="fr"],
html:lang(es) .account-lang[data-lang="es"],
html:lang(zh-Hans) .account-lang[data-lang="zh"],
html:lang(ar) .account-lang[data-lang="ar"],
html:lang(de) .account-lang[data-lang="de"],
html:lang(nl) .account-lang[data-lang="nl"],
html:lang(pl) .account-lang[data-lang="pl"] {
  border-color: #4f7dff;
  color: #2f55c4;
  font-weight: 600;
}

@media (max-width: 760px) {
  .account-overview__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.account-overview__grid > .account-block {
  margin-top: 0;
}

/* Roadmap: released stage, module progress, update date */
.roadmap-stage--done .roadmap-stage__node {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 45%, #f7f9fd);
}

.roadmap-stage--done::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: calc(-1 * clamp(16px, 2vw, 28px) - 8px);
  border-top: 1.5px solid color-mix(in srgb, var(--tone) 55%, #f7f9fd);
}

.roadmap-stage--done .roadmap-stage__when strong {
  color: color-mix(in srgb, var(--tone) 70%, #5b6d94);
}

.roadmap-stage--done .roadmap-checklist li {
  color: var(--text);
}

.roadmap-stage--done .roadmap-checklist li strong {
  color: var(--ink);
  font-weight: 600;
}

.roadmap-stage--done .roadmap-checklist li::before {
  border-color: color-mix(in srgb, var(--tone) 55%, #f7f9fd);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
    color-mix(in srgb, var(--tone) 55%, #f7f9fd);
}

.roadmap-progress {
  display: block;
  width: 100%;
  max-width: 240px;
  margin-top: 14px;
}

.roadmap-progress__bar {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(68, 91, 133, 0.12);
}

.roadmap-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--tone);
}

.roadmap-foot__updated {
  color: #8d9ab0;
  font-size: var(--fs-13);
}

@media (max-width: 900px) {
  .roadmap-stage--done::before {
    top: 8px;
    bottom: -36px;
    left: -28px;
    right: auto;
    border-top: 0;
    border-left: 1.5px solid color-mix(in srgb, var(--tone) 55%, #f7f9fd);
  }

}

/* Wide windows (real renders of large tools): the window takes the full
   width, the explanations sit below it in two columns. */
.anatomy--wide {
  grid-template-columns: minmax(0, 1fr);
}

.anatomy--wide .anatomy__figure {
  position: relative;
  top: auto;
}

.anatomy--wide .anatomy__list {
  columns: 2;
  column-gap: clamp(32px, 5vw, 72px);
  margin-top: 0;
  border-bottom: 0;
}

.anatomy--wide .anatomy__row {
  break-inside: avoid;
}

.anatomy--wide .anatomy__row:last-child {
  border-bottom: 1px solid rgba(68, 91, 133, 0.12);
}

@media (max-width: 760px) {
  .anatomy--wide .anatomy__list {
    columns: 1;
  }
}

/* Live mockup of a tool window (public/mockups/<id>/, own state and theme
   switches): a framed page at full width, explanations below in two columns. */
.anatomy__mockup {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(68, 91, 133, 0.16);
  border-radius: 12px;
  background: #1e2229;
}

.anatomy__mockup iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* 21 Labels in any language ------------------------------------------------
   Buttons never let text out: a long label wraps onto a second balanced line
   and the button grows; English labels that fit stay on one line as before. */
.hero-btn,
.standard-button,
.account-btn,
.docs-chip,
.profile-tab {
  height: auto;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-btn,
.standard-button,
.account-btn {
  padding-top: 7px;
  padding-bottom: 7px;
}

/* Product marks on light surfaces: one dark tone (the coloured marks are made
   for dark backgrounds). Coloured marks stay on dark tiles and covers. */
.docs-start__mark,
.docs-product__head img,
.installer-tile__mark,
.news-platform-link .brand-symbol,
.roadmap-summary__mark,
.account-benefit img {
  filter: grayscale(1) brightness(0.42) contrast(1.15);
}

/* Product marks: equal optical size. Each mark is drawn in its own square box (the layout box never
   changes). --mark-fill = wanted glyph height as a share of the box (set per context; default 0.65
   = a ~18 px glyph in a 24 px box, next to a 16 px name). --mark-scale = fill / measured glyph
   height of that Symbol.svg (tight bbox, share of the square box). --mark-off = how far the glyph
   centre sits above (+) / below (-) the box centre, so the translate keeps it centred.
   --mark-weight = density correction on top of equal height: thin-lined marks (Max 25 % ink,
   Revit 23 %) are drawn a little larger, the solid Hexa (52 % ink) a little smaller, so the four
   read as one weight. */
.brand-mark {
  flex: none;
  object-fit: contain;
  transform: translateY(calc(var(--mark-off, 0) * var(--mark-scale, 1) * 100%)) scale(var(--mark-scale, 1));
  transform-origin: 50% 50%;
}

.brand-mark--revit {
  --mark-off: 0.09375;
  --mark-scale: calc(var(--mark-fill, 0.74) / 0.8125 * var(--mark-weight, 1.05));
}

.brand-mark--max {
  --mark-off: 0.0625;
  --mark-scale: calc(var(--mark-fill, 0.74) / 0.875 * var(--mark-weight, 1.14));
}

.brand-mark--hexa {
  --mark-off: 0;
  --mark-scale: calc(var(--mark-fill, 0.74) / 1 * var(--mark-weight, 0.9));
}

.brand-mark--site {
  --mark-off: -0.0390625;
  --mark-scale: calc(var(--mark-fill, 0.74) / 0.859375 * var(--mark-weight, 1));
}

/* Mark and name on one line - no lone icon row above the title. */
.docs-start__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.docs-start__head .docs-start__mark {
  /* Next to a 22px card title the glyph is the title's full size. */
  flex: none;
  width: 32px;
  height: 32px;
  --mark-fill: 0.78;
}

.docs-start__head h3 {
  line-height: 1.25;
}

.docs-start__head .docs-start__meta {
  margin-top: 2px;
}

.account-benefit {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.account-benefit img {
  width: 32px;
  height: 32px;
  margin: 0;
  --mark-fill: 0.8;
}

/* System fonts for Chinese and Arabic have taller glyph boxes: give card
   titles a little more line height so no line leaves its box. */
html:lang(zh-Hans) .video-preview-card__title,
html:lang(ar) .video-preview-card__title {
  line-height: 1.3;
}

/* Account: the site language as a plain drop-down (signed-in users only). */
.account-lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(68, 91, 133, 0.22);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6l3 3 3-3' fill='none' stroke='%23445b85' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 12px no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease-soft);
}
.account-lang-select:hover { border-color: rgba(68, 91, 133, 0.42); }
.account-lang-select:focus-visible { outline: 2px solid rgba(79, 125, 255, 0.45); outline-offset: 2px; }
[dir="rtl"] .account-lang-select { padding: 0 14px 0 40px; background-position: left 14px center; }

/* 23 Download window by Pavel's mockup "Instal Licenze" (450 x 680) -----------------
   The window keeps the mockup proportions and every inner size is in cqw (1cqw = 4.5px at full size),
   so it scales as a whole on phones. Background lines = his static vector (assets/brand/Installer BG.svg);
   the company logo is the animated element (hd-live.js). */
.hd-installer-modal {
  container-type: inline-size;
  width: min(450px, 100%, calc((100dvh - 28px) * 450 / 680));
  height: auto;
  min-height: 0;
  aspect-ratio: 450 / 680;
  border: 1px solid #000;
  border-radius: 10px;
  background: #1e2638;
  color: #7fb1fd;
}
.hd-installer-modal__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  /* revealed as a soft wave running across (hd-live.js moves the mask) */
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  -webkit-mask-size: 340% 100%; mask-size: 340% 100%;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
}
.hd-installer-modal__bg.is-waiting { -webkit-mask-position: 100% 0; mask-position: 100% 0; transition: none; }
.hd-installer-modal__bg.is-revealing { transition: -webkit-mask-position 1900ms cubic-bezier(0.22, 1, 0.36, 1), mask-position 1900ms cubic-bezier(0.22, 1, 0.36, 1); }
.hd-installer-modal__mark, .hd-installer-modal__wave-box { display: none; }
.hd-installer-modal__close {
  position: absolute; top: 3.1cqw; right: 3.1cqw; width: 6.6cqw; height: 6.6cqw;   /* equal margins above and to the right */
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 1.4cqw; background: none;
  color: #866767; font-size: 8cqw; font-weight: 300; line-height: 1;
  transition: color var(--t-base) var(--ease-soft);
}
.hd-installer-modal__close:hover { color: #b98a8a; background: none; }
/* logo box 192 units (was 172): the mark is 15 % larger around the same centre, the wordmark keeps its size and place */
.hd-installer-modal__brand { position: absolute; top: 33.33cqw; left: 28.67cqw; width: 42.67cqw; display: block; text-align: center; transform: none; }
.hd-installer-modal__brand img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; opacity: 1; }
.hd-installer-modal__site { margin-top: -0.12cqw; color: #7fb1fd; font-size: 2.45cqw; font-weight: 400; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.hd-installer-modal__copy {
  position: absolute; top: 104.9cqw; right: 7.33cqw; bottom: auto; left: 7.33cqw; margin: 0;
  color: #7fb1fd; font-size: 3.44cqw; font-weight: 300; line-height: 4.22cqw;
}
.hd-installer-modal__agreement {
  /* one row with the button: same bottom and height, everything centred on the button's middle line */
  position: absolute; right: auto; bottom: 6.22cqw; left: 7.2cqw; width: 44.6cqw; height: 10.67cqw;
  display: flex; align-items: center; gap: 2.2cqw;
  color: #7fb1fd; font-size: 3.33cqw; font-weight: 300; line-height: 3.8cqw; cursor: pointer; text-wrap: pretty;
}
/* longer languages: the agreement stays within three lines beside the button */
.hd-installer-modal__agreement input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 4.22cqw; height: 4.22cqw; margin: 0;
  border: 1px solid #7396dd; border-radius: 0.78cqw;
  background: #141924 center / 100% 100% no-repeat;
  cursor: pointer;
}
.hd-installer-modal__agreement input:hover { border-color: #9db8ee; }
.hd-installer-modal__agreement input:checked {
  border-color: #7396dd; background-color: #141924;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Crect x='4.5' y='4.5' width='10' height='10' rx='2' fill='%237396DD'/%3E%3C/svg%3E");
}
.hd-installer-modal__next {
  position: absolute; right: 5.89cqw; bottom: 6.22cqw; width: 41.33cqw; height: 10.67cqw;
  border: 1px solid #7fb1fd; border-radius: 2.56cqw; background: #253352;
  color: #7fb1fd; font-size: 3.56cqw; font-weight: 700;
  transition: opacity var(--t-base) var(--ease-soft), border-color var(--t-base) var(--ease-soft);
}
.hd-installer-modal__next:disabled { opacity: 0.5; cursor: default; }
.hd-installer-modal--hexa .hd-installer-modal__next, .hd-installer-modal--max .hd-installer-modal__next { border-color: #7fb1fd; color: #7fb1fd; }

/* Clean stage for the logo drawing (thin lines): the background lines wait and come in softly at the end. */
.product-hero .hero__canvas, .page-about .shared-wave23-canvas { transition: opacity 4600ms cubic-bezier(0.6, 0, 0.4, 1); filter: blur(0.8px); }
html.hd-intro .product-hero .hero__canvas, html.hd-intro .page-about .shared-wave23-canvas,
html[data-hd-intro="run"]:not(.hd-waves-in) .product-hero .hero__canvas, html[data-hd-intro="run"]:not(.hd-waves-in) .page-about .shared-wave23-canvas { opacity: 0; transition: none; }

/* Compact site (Pavel 2026-10-10): short menu, product tiles on the home page, one-row footer. */
.nav-item--link .nav-link { text-decoration: none; }
.nav-item--link .nav-link:hover,
.nav-item--link .nav-link:focus-visible { color: var(--on-dark); }
@media (min-width: 761px) { .nav-panel.nav-panel--links { display: none; } }
/* Compact menu list (Pavel 2026-10-11): one clean row of titles under the bar, no descriptions, no picture. */
@media (min-width: 761px) {
  .nav-panel--compact { display: block; padding: 14px 0 16px; }
  .nav-panel--compact .nav-panel-main { display: flex; justify-content: center; gap: var(--s-6); }
  .nav-panel--compact .nav-panel-item { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; margin: 0; padding: 0 14px; }
  .nav-panel--compact .nav-panel-item-icon:empty:not([class*="nav-icon-"]) { display: none; }
}
@media (max-width: 760px) { .nav-panel.nav-panel--compact { display: none; } }
/* A plain menu link has no icon: its label takes the whole row and never wraps. */
.nav-panel-item--plain .nav-panel-item-text { grid-column: 1 / -1; white-space: nowrap; }
/* Home hero cards (Pavel 2026-10-10): a vector download icon on the Download button; layout unchanged. */
.hero-btn--get::after,
.hero-btn.js-download-action::after { /* every Download button on the site carries the icon; it follows the word: right in left-to-right scripts, left in Arabic */
  content: "";
  flex: none; /* the button is a flex row with its own gap: the icon must not shrink */
  width: 1.2em;
  height: 1.2em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8M4.75 7.5 8 10.75 11.25 7.5M3 13.5h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8M4.75 7.5 8 10.75 11.25 7.5M3 13.5h10'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Phone, home hero cards: the buttons follow the card's own two columns (logo | text): pale Download under the logo, bright Details as wide as the text. */
@media (max-width: 760px) {
  .home-hero .hero-card__actions { grid-template-columns: subgrid; }
  /* The narrow logo column: tighter insets so "icon + word" stays on one line in every language. */
  .home-hero .hero-btn--get { padding-inline: 6px; gap: 5px; }
}
/* Smallest phones: the longest words (Télécharger, Downloaden) need the whole button, the icon steps aside. */
@media (max-width: 340px) {
  .home-hero .hero-btn--get::after { display: none; }
}

/* Account, simple layout (Pavel 2026-10-11): photo, name, e-mail and plan live in the dark header;
   numbers and tabs sit below on the white page. */
.page-account .profile-cover { height: auto; }
.page-account .profile-head { padding: 52px 0 48px; }
.page-account .profile-head__inner { align-items: center; }
.page-account .profile-avatar { width: 148px; height: 148px; margin-top: 0; align-self: center; overflow: hidden; background: #2f4f9c; box-shadow: 0 0 0 1px rgba(170, 194, 232, 0.28); }
.page-account .profile-avatar__photo[hidden] { display: none; }
.page-account .profile-avatar__initials { font-size: 52px; }
/* Change photo: the whole circle is the button; a dark band with a camera rises along the bottom chord. */
.page-account .profile-avatar__edit { inset: 0; width: 100%; height: 100%; border-radius: 50%; background: transparent; box-shadow: none; color: #fff; }
.page-account .profile-avatar__edit:hover { color: #fff; transform: none; }
.profile-avatar__band { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; height: 30%; background: rgba(12, 18, 32, 0.66); opacity: 0; transform: translateY(100%); transition: opacity 260ms var(--ease-soft), transform 320ms var(--ease-soft); }
.profile-avatar__edit:hover .profile-avatar__band,
.profile-avatar__edit:focus-within .profile-avatar__band { opacity: 1; transform: none; }
@media (hover: none) { .profile-avatar__band { opacity: 1; transform: none; } }
.page-account .profile-id { padding-bottom: 0; }
.page-account .profile-eyebrow { margin-top: 0; }
.page-account .profile-name { color: var(--on-dark); font-size: clamp(28px, 3vw, 38px); }
.page-account .profile-meta { color: rgba(214, 226, 250, 0.78); }
.profile-plan { display: none; margin-top: 12px; color: rgba(214, 226, 250, 0.62); font-size: var(--fs-13); }
.account[data-state="user"] .profile-plan { display: flex; align-items: baseline; gap: 8px; }
.profile-plan strong { color: var(--on-dark); font-size: var(--fs-md); font-weight: 600; }
.page-account .profile-actions { align-self: end; margin-top: 0; padding-bottom: 0; }
.page-account .profile-actions .account-btn:not(.account-btn--primary) { color: rgba(214, 226, 250, 0.82); }
.page-account .profile-actions .account-btn:not(.account-btn--primary):hover { border-color: rgba(170, 194, 232, 0.4); color: var(--on-dark); }
.page-account .profile-stats { flex-wrap: wrap; margin: 0 0 30px; }
@media (max-width: 760px) {
  .page-account .profile-head { padding: 30px 0 28px; }
  .page-account .profile-head__inner { grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; }
  .page-account .profile-avatar { width: 96px; height: 96px; }
  .page-account .profile-avatar__initials { font-size: 34px; }
  .page-account .profile-name { font-size: 24px; white-space: normal; }
  .page-account .profile-actions { grid-column: 1 / -1; padding-top: 14px; }
  .page-account .profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
  .page-account .profile-stats dd { font-size: 22px; }
}

/* Account: only the header is dark. Licence cards are light, compact and calm; the product mark
   stays as a one-colour ghost. No tabs: sections follow each other. */
.account[data-state="user"] .profile-eyebrow { display: none; }
.page-account .account-block > .text-eyebrow { display: block; margin-bottom: 14px; }
.page-account .account-block + .account-block { margin-top: 40px; }
.page-account .profile-stats { gap: 0; margin: 0 0 40px; border-bottom: 1px solid rgba(68, 91, 133, 0.12); }
.page-account .profile-stats div { flex: 0 1 auto; padding: 0 clamp(22px, 3.4vw, 44px) 22px 0; }
.page-account .profile-stats dd { font-size: 22px; }
.page-account .license-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.page-account .license-card { --bar: #5479ea; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; padding: 18px 20px; border: 1px solid rgba(68, 91, 133, 0.16); border-radius: 12px; background: #fff; box-shadow: none; color: var(--ink); }
.page-account .license-card--max { --bar: #2b8ba6; background: #fff; }
.page-account .license-card__head,
.page-account .license-card__key,
.page-account .license-card__actions { grid-column: 1 / -1; }
.page-account .license-card__mark,
.page-account .license-card__bg { filter: brightness(0); }
.page-account .license-card__mark { opacity: 0.72; }
.page-account .license-card__bg { right: -30px; bottom: -40px; width: 170px; height: 170px; opacity: 0.045; }
.page-account .license-card__title span,
.page-account .license-status { color: var(--text); }
.page-account .license-card__until span,
.page-account .license-card__seats-head span:first-child { color: #7d8aa1; }
.page-account .license-card__until strong { font-size: 17px; }
.page-account .license-card__seats-head { margin-bottom: 9px; }
.page-account .license-card__bar { background: rgba(68, 91, 133, 0.14); }
.page-account .license-card__key { padding: 8px 12px; background: #f3f6fb; }
.page-account .license-card__key code { color: var(--ink); }
.page-account .license-card__copy:hover,
.page-account .license-card__actions a:hover { color: var(--ink); }
.account-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-account .account-hexa-note { margin-top: 16px; }
.nav-initials { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2f4f9c; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.nav-initials[hidden], .nav-user__icon img[hidden], .nav-account__icon[hidden] { display: none; }
@media (max-width: 760px) {
  .page-account .profile-stats { gap: 0; }
  .page-account .profile-stats div { padding: 0 12px 18px 0; }
}

/* Account header, third pass (Pavel 2026-10-11): a smaller calm circle on the left, exactly as tall
   as the name + e-mail + plan block; language above Sign out on the right; no big numbers. */
.page-account { --av: 104px; }
.page-account .profile-head { padding: 44px 0 40px; }
.page-account .profile-avatar { width: var(--av); height: var(--av); background: #3a4a6c; box-shadow: 0 0 0 1px rgba(170, 194, 232, 0.3); }
.page-account .profile-avatar__initials { font-size: 36px; font-weight: 500; color: #dfe8fb; }
.account[data-state="user"] .profile-id { display: flex; flex-direction: column; justify-content: space-between; min-height: var(--av); }
.page-account .profile-name { margin: 0; font-size: clamp(26px, 2.5vw, 32px); line-height: 1.15; }
.page-account .profile-meta { margin: 0; }
.account[data-state="user"] .profile-plan { align-items: center; gap: 8px; margin: 0; color: rgba(214, 226, 250, 0.82); }
.profile-plan__icon { display: grid; place-items: center; width: 16px; height: 16px; }
.profile-plan strong { font-size: var(--fs-sm); font-weight: 600; }
.page-account .profile-actions { align-self: center; }
.account[data-state="user"] .profile-actions > .account-user-only { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; min-height: var(--av); }
.page-account .profile-actions .account-lang-select { min-width: 0; width: 100%; height: 34px; padding: 0 34px 0 12px; border-color: rgba(170, 194, 232, 0.24); background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6l3 3 3-3' fill='none' stroke='%23c9d6f2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); color: rgba(214, 226, 250, 0.86); font-size: var(--fs-13); }
.page-account .profile-actions .account-lang-select:hover { border-color: rgba(170, 194, 232, 0.44); }
.page-account .profile-actions .account-lang-select option { background: #fff; color: #1b2333; }
[dir="rtl"] .page-account .profile-actions .account-lang-select { padding: 0 12px 0 34px; }
.account-count { margin-inline-start: 6px; color: #9aa7bc; font-weight: 500; }
.page-account .account-hexa-note { margin-top: 36px; }
.account-photo-remove { display: none; margin-inline-start: 14px; padding: 0; border: 0; background: none; color: #7d8aa1; font: inherit; cursor: pointer; }
.account-photo-remove:hover { color: var(--ink); }
.account.has-photo .account-photo-remove { display: inline; }
/* Licence card: bigger mark level with the two title lines; mark and ghost in the site's blue-grey. */
.page-account .license-card__head { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; }
.page-account .license-card__mark,
.page-account .license-card__bg { display: block; filter: none; background: #54709b; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.page-account .license-card__mark { width: 44px; height: 44px; opacity: 1; }
.page-account .license-card__bg { opacity: 0.07; }
.page-account .license-card__title strong { font-size: 17px; line-height: 22px; }
.page-account .license-card__title span { display: block; line-height: 20px; }
.page-account .license-card__until strong { margin-top: 3px; font-size: 15px; font-weight: 600; }
.nav-initials { background: #54709b; }
@media (max-width: 760px) {
  .page-account { --av: 84px; }
  .page-account .profile-head { padding: 26px 0 24px; }
  .page-account .profile-avatar { width: var(--av); height: var(--av); }
  .page-account .profile-avatar__initials { font-size: 29px; }
  .page-account .profile-name { font-size: 22px; }
  .account[data-state="user"] .profile-actions > .account-user-only { flex-direction: row; min-height: 0; width: 100%; gap: 10px; }
  .page-account .profile-actions .account-lang-select { flex: 1 1 auto; width: auto; height: 38px; }
}
.page-account .profile-actions .js-account-signout { flex: none; white-space: nowrap; }
/* Download window while no installer is published: only the message and Close. */
.hd-installer-modal--pending .hd-installer-modal__agreement { display: none; }
/* Guest invitation is a sentence, not a name: let it wrap instead of cutting it with dots. */
.account[data-state="guest"] .profile-name,
.account[data-state="loading"] .profile-name { overflow: visible; white-space: normal; text-overflow: clip; }
.license-card__left { display: block; margin-top: 2px; color: #7d8aa1; font-size: var(--fs-13); font-style: normal; }
/* Documentation (Pavel 2026-10-11): no empty column on the left - the group name sits above its
   tools, the tools take the whole width and their icons are large. */
.page-docs .docs-module { display: block; padding: 26px 0 18px; }
.page-docs .docs-module__title { padding: 0 12px 10px; color: #7d8aa1; font-size: var(--fs-13); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.page-docs .docs-module__tools { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 20px; }
.page-docs .docs-tool { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; min-height: 68px; }
.page-docs .docs-tool__icon { width: 48px; height: 48px; }
.page-docs .docs-tool__name { align-self: end; }
.page-docs .docs-tool__text { align-self: start; }
.page-docs .docs-tool__name:only-of-type, .page-docs .docs-tool__icon + .docs-tool__name:last-child { grid-row: 1 / span 2; align-self: center; }
/* First steps: the card opens the product page. */
a.docs-start__card { color: inherit; text-decoration: none; transition: box-shadow 320ms var(--ease-soft), transform 320ms var(--ease-soft); }
a.docs-start__card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20, 30, 50, 0.05), 0 22px 44px -28px rgba(20, 30, 50, 0.45); }

/* Roadmap boards and the Hexa catalogue structure (Pavel 2026-10-12): sections -> cards -> rows.
   Tool icons are drawn 1:1 at their own size (16 / 24 / 19 px) on whole pixels; stage4.js sets
   whole-pixel column widths. */
.page-roadmap .roadmap-page, .product-catalog--board { background: #eef1f6; }
.product-catalog--board { padding-top: 16px; }
.hr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 29px; margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 16px; }
.hr-leg { display: inline-flex; align-items: center; gap: 8px; height: 17px; line-height: 17px; } .hr-leg b { color: var(--ink); font-weight: 600; margin-right: -4px; }
.hr-leg--note { margin-left: auto; } .hr-stages { display: flex; flex-wrap: wrap; gap: 8px 16px; flex: 1 1 100%; } .hr-leg--cap { color: var(--ink); font-weight: 600; }
.hr-m { flex: none; display: block; } .hr-m--done { color: #62998a; } .hr-m--work { color: #6f89d3; } .hr-m--later { color: #b3bfd3; }
.hr-board { column-gap: 16px; }
.hr-card { break-inside: avoid; box-sizing: border-box; margin: 0 0 16px; border: 1px solid rgba(52, 68, 95, 0.3); border-radius: 4px; background: #fff; overflow: hidden; }
.hr-head { display: flex; align-items: flex-start; gap: 8px; box-sizing: border-box; min-height: 37px; padding: 9px 12px 9px 11px; } .hr-head .hr-m { margin-top: 3px; }
.hr-head h3 { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 19px; letter-spacing: 0; }
.hr-sect { margin-top: 16px; } .hr-sect + .hr-sect { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(52, 68, 95, 0.14); }
.hr-sh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 29px; margin-bottom: 16px; }
.hr-sh h2 { margin: 0 8px 0 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: 0; }
.hr-sp { display: inline-flex; align-items: center; gap: 8px; height: 16px; margin-top: 1px; margin-left: auto; color: #5b6b86; font-size: 12px; line-height: 16px; } .hr-sp .hr-bar { flex: none; width: 160px; }
.hr-sec { flex: none; color: var(--ink); } .hr-head h2 { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 20px; letter-spacing: 0; }
.hr-tag { flex: none; box-sizing: border-box; height: 13px; padding: 0 0 0 5px; overflow: hidden; border-radius: 3px; color: #fff; font-size: 9.63px; font-weight: 700; line-height: 13px; letter-spacing: 0.5px; white-space: nowrap; text-transform: uppercase; }
.hr-st { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 17px; font-size: 12px; font-weight: 600; line-height: 17px; white-space: nowrap; }
.hr-st--done { color: #4c8474; } .hr-st--work { color: #5a76c6; } .hr-st--later { color: #7d8aa1; }
.hr-prog { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 29px; padding: 0 12px; border-top: 1px solid rgba(52, 68, 95, 0.14); background: #dbe2ee; color: #5b6b86; font-size: 12px; line-height: 16px; }
.hr-bar { flex: 1 1 auto; display: flex; height: 6px; overflow: hidden; border-radius: 3px; background: #c3cddd; } .hr-bar i { background: #62998a; } .hr-bar b { background: #6f89d3; }
.hr-num { flex: none; width: 52px; text-align: right; font-variant-numeric: tabular-nums; } .hr-sp .hr-num { width: 64px; }
.hr-list { margin: 0; padding: 4px 0; list-style: none; border-top: 1px solid rgba(52, 68, 95, 0.14); }
.hr-row { display: flex; align-items: center; gap: 8px; height: 27px; padding: 0 12px; color: var(--ink); font-size: 13px; line-height: 16px; }
.hr-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-ic { flex: none; color: #4b5d7c; } .hr-row--later { color: #7d8aa1; } .hr-row i { flex: none; color: #8f9bb0; font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
.hr-list--ic .hr-row { align-items: flex-start; height: auto; min-height: 27px; padding: 4px 12px 4px 11px; box-sizing: border-box; } .hr-list--ic .hr-row span { margin-top: 1px; white-space: normal; overflow: visible; } .hr-list--ic .hr-row i { margin-top: 1px; } .hr-list--ic .hr-row .hr-m { margin-top: 3px; } .hr-row--later .hr-ic { color: #a3afc4; }
@media (max-width: 1023px) { .hr-board { column-gap: 12px; } .hr-card { margin-bottom: 12px; } }
@media (max-width: 600px) { .hr-board { column-gap: 8px; } .hr-card { margin-bottom: 8px; } .hr-leg--note { display: none; } .hr-leg--cap { flex: 1 1 100%; } .hr-sp { flex: 1 1 100%; margin-left: 0; } .hr-sp .hr-bar { flex: 1 1 auto; width: auto; } }
.hr-wrap { margin-top: 16px; } .hr-wrap .hr-head { padding-left: 12px; }
.hr-ti { flex: none; display: block; width: 16px; height: 16px; }
.hr-t16 .hr-row .hr-ti { margin-top: 1px; } .hr-t16 .hr-head .hr-ti { margin-top: 2px; }
.hr-t24 .hr-ti { width: 24px; height: 24px; }
.hr-t24 .hr-row { height: 32px; } .hr-t24 .hr-row .hr-m { margin-top: 1px; }
.hr-t24 .hr-head { min-height: 40px; padding-top: 8px; padding-bottom: 8px; } .hr-t24 .hr-head h3 { margin-top: 3px; } .hr-t24 .hr-head .hr-m { margin-top: 6px; }
.hr-t19 .hr-ti { width: 19px; height: 19px; color: #436199; }
.hr-sect:first-of-type { margin-top: 0; } .hr-sect[hidden] { display: none; }

/* ===== Hexa Family Library page (accepted design) ===== */
/* softer hero: slate blue from the Hexa sign */
.hero.product-hero.product-hero--hexa-soft { background: linear-gradient(115deg, #35466f 0%, #425583 48%, #2f3f66 100%); }
.hero.product-hero.product-hero--hexa-soft .hero__bg { background: radial-gradient(140% 78% at 50% 0%, #4f6496 0%, rgba(79, 100, 150, 0.5) 40%, rgba(79, 100, 150, 0) 75%); background-color: transparent; }
.hero.product-hero.product-hero--hexa-soft .hero__mask { background: linear-gradient(90deg, #35466f 0%, rgba(53, 70, 111, 0.4) 29%, rgba(53, 70, 111, 0) 50%, rgba(53, 70, 111, 0.4) 71%, #35466f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.category-navigation-band.category-navigation-band--hexa { background: #33436b; border-top-color: rgba(214, 226, 250, 0.16); }
.product-hero--hexa-soft .product-hero-content--hexa .hero-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(214, 226, 250, 0.46); color: #eef3ff; }
.product-hero--hexa-soft .product-hero-content--hexa .hero-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(214, 226, 250, 0.6); }
.product-hero--hexa-soft .product-hero-content--hexa .product-hero-content__meta { color: rgba(214, 226, 250, 0.72); }
/* hero with a single quiet glass button */
.product-hero--hexa-soft .product-hero-content--hexa .product-hero-content__actions { display: block; max-width: 212px; }
.product-hero--hexa-soft .product-hero-content--hexa .product-hero-content__actions .hero-btn { width: 100%; min-height: var(--control-h); font-size: 13px; font-weight: 500; white-space: nowrap; }
@media (max-width: 760px) { .product-hero--hexa-soft .product-hero-content.product-hero-content--hexa .product-hero-content__actions { grid-column: 2; max-width: 212px; } }
/* sections band: the site's own, icons only */
.category-navigation-band--hexa .category-tabs { gap: 4px; }
.category-navigation-band--hexa .category-tab { width: 45px; padding: 0; justify-content: center; }

/* controls strip (phone) under the dark band, cards on the site's paper */
.hx-tools { background: #e3e8f1; border-bottom: 1px solid rgba(52, 68, 95, 0.14); color: var(--ink); }
.hx-tools__in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 12px; }
@media (min-width: 761px) { .hx-tools__in { gap: 8px 16px; } }
.hx-lib { box-sizing: border-box; min-height: calc(100vh - 98px); padding: 16px 0 var(--section-y); background: #eef1f6; color: var(--ink); }
.hx-lib button, .hx-tools button { font: inherit; cursor: pointer; }
.hx-ic { flex: none; display: block; }
.hx-side .hx-ic { color: #5371ac; }
/* quiet separate buttons: filters on the left, sort list on the right */
.hx-filters { display: flex; gap: 4px; }
.hx-btn {
  display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid rgba(52, 68, 95, 0.22); border-radius: var(--r-btn);
  background: #fff; color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.hx-btn:hover { border-color: rgba(52, 68, 95, 0.38); color: var(--ink); }
.hx-btn[aria-pressed="true"] { border-color: rgba(52, 68, 95, 0.4); background: #dbe2ee; color: #324a73; font-weight: 600; }
.hx-btn:focus-visible, .hx-menu button:focus-visible, .hx-side button:focus-visible, .hx-clear:focus-visible { outline: 2px solid #5479ea; outline-offset: 1px; }
.hx-btn svg { width: 12px; height: 12px; color: var(--muted); }
.hx-favbtn { flex: none; width: 116px; padding: 0 8px 0 12px; gap: 8px; justify-content: flex-start; }
.hx-favbtn span { flex: 1 1 auto; text-align: left; }
@media (min-width: 601px) { .hx-sort { width: 176px; } }
@media (max-width: 760px) { .hx-favbtn { width: 28px; padding: 0; justify-content: center; } .hx-favbtn span { display: none; } .hx-btn.hx-favbtn svg { margin-right: 1px; } }
.hx-btn.hx-favbtn svg { order: 1; flex: none; width: 19px; height: 19px; margin-bottom: 1px; color: #8494b3; }
.hx-btn.hx-favbtn[aria-pressed="true"] svg { color: #c0919a; }
.hx-sort { position: relative; margin-left: auto; }
.hx-sort .hx-btn { width: 100%; } .hx-sort .hx-btn span { flex: 1 1 auto; text-align: left; }
.hx-menu {
  position: absolute; top: 32px; right: 0; z-index: 5; min-width: 100%; padding: 3px; border: 1px solid rgba(52, 68, 95, 0.22); border-radius: var(--r-btn);
  background: #fff; box-shadow: 0 8px 24px rgba(25, 38, 65, 0.12);
}
.hx-menu[hidden] { display: none; }
.hx-menu button { display: block; width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.hx-menu button:hover { background: rgba(29, 43, 71, 0.06); }
.hx-menu button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.hx-side button {
  border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.hx-side button:hover { color: var(--ink); }
.hx-side button[aria-pressed="true"] { background: #dbe2ee; color: #324a73; font-weight: 600; }
.hx-tools__in .hx-search { order: 0; }
@media (max-width: 600px) {
  .hx-tools__in .hx-search { flex: 1 1 calc(100% - 32px); max-width: none; }
  .hx-tools__in { gap: 8px 4px; } .hx-tools__in .hx-sort { flex: 1 1 0; margin-left: 0; }
  .hx-tools__in .hx-favbtn { order: 1; } .hx-tools__in .hx-filters { order: 2; } .hx-tools__in .hx-sort { order: 3; }
}
@media (min-width: 761px) { .hx-tools__in .hx-search { flex: 0 0 200px; } }
.hx-cols { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 16px; align-items: start; }
.hx-left, .hx-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hx-search {
  flex: 1 1 120px; min-width: 120px; max-width: 280px; display: flex; align-items: center; height: 28px; padding: 0 0 0 12px; border: 1px solid rgba(52, 68, 95, 0.22);
  border-radius: var(--r-btn); background: #fff; color: var(--muted);
}
.hx-search:focus-within { border-color: #5479ea; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.hx-search input::placeholder { color: var(--muted); }
.hx-search svg { width: 14px; height: 14px; display: block; }
.hx-glass, .hx-clear { flex: none; width: 26px; height: 26px; display: grid; place-items: center; }
.hx-clear { padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.hx-clear:hover { color: var(--ink); }
.hx-clear[hidden], .hx-glass[hidden] { display: none; }
.hx-side { display: flex; flex-direction: column; gap: 0; padding: 3px; border: 1px solid rgba(52, 68, 95, 0.3); border-radius: var(--r-btn); background: #fff; }
.hx-group { display: flex; flex-direction: column; }
.hx-side button { display: flex; align-items: center; gap: 8px; width: 100%; height: 29px; padding: 0 7px; text-align: left; }
.hx-side button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hx-side button i { color: var(--muted); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.hx-side button:hover { background: rgba(29, 43, 71, 0.06); }
.hx-side button[aria-pressed="true"]:hover { background: #dbe2ee; }
.hx-side .hx-allrow, .hx-side .hx-fold { color: var(--ink); font-weight: 600; }
.hx-side .hx-fold { height: 33px; }
.hx-side .hx-back { color: var(--muted); }
.hx-side .hx-line { height: 1px; margin: 4px 0; background: rgba(52, 68, 95, 0.14); }
.hx-side .hx-m3 { margin: 0 3px; }
.hx-side .hx-kind { position: relative; padding-left: 27px; }
.hx-side .hx-kind::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 1px; background: rgba(52, 68, 95, 0.2); }
.hx-side button[data-v]:not(.hx-fold), .hx-side .hx-kind { align-items: flex-start; height: auto; min-height: 29px; padding-top: 4px; padding-bottom: 4px; line-height: 16px; }
.hx-side .hx-kind { min-height: 25px; padding-top: 3px; padding-bottom: 3px; }
  .hx-side button[data-v]:not(.hx-fold) span, .hx-side .hx-kind span { margin-top: 1px; white-space: normal; overflow: visible; } .hx-side button[data-v]:not(.hx-fold) i, .hx-side .hx-kind i { margin-top: 1px; }
.hx-side .hx-up, .hx-side .hx-line--m { display: none; }
.hx-chev { flex: none; width: 12px; height: 12px; margin-top: 1px; color: var(--muted); }
.hx-back .hx-chev { margin-left: 6px; margin-right: 7px; }
.page-hexa-library .hd-intro-logo { filter: saturate(0.3) brightness(1.28); }
@media (min-width: 761px) {
  .hx-tools { display: none; }
  .hx-left { position: sticky; top: var(--hx-top, 64px); display: flex; flex-direction: column; max-height: calc(100vh - var(--hx-top, 64px) - 16px); }
  .hx-ctl { flex: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .hx-ctl .hx-search { flex: none; width: 232px; max-width: none; }
  .hx-ctl .hx-filters button { flex: 1 1 0; min-width: 0; padding: 0; justify-content: center; }
  .hx-ctl .hx-sort { width: 232px; margin: 0; }
  .hx-ctl .hx-favbtn { width: 232px; }
  .hx-left .hx-side { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(52, 68, 95, 0.3) transparent; }
  .hx-side .hx-group { flex: none; }
}
@media (max-width: 760px) { .hx-filters button { padding: 0; justify-content: center; width: 48px; } .hx-filters button:first-child { width: 108px; } }
/* cards */
.hx-grid { display: grid; gap: 16px 16px; margin: 0; padding: 0; list-style: none; }
.hx-card {
  /* picture, name and category line share the rows of the whole line of cards */
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(52, 68, 95, 0.3); border-radius: 4px;
  background: #dbe2ee; box-shadow: 0 1px 2px rgba(25, 38, 65, 0.04); cursor: pointer; outline: none; transition: box-shadow 220ms var(--ease);
}
.hx-card > * { min-width: 0; }
/* hover lifts the card by a soft even shadow only: no growth, no shift */
.hx-card:hover, .hx-card:focus-visible { z-index: 1; box-shadow: 0 2px 4px rgba(25, 38, 65, 0.05), 0 8px 20px rgba(25, 38, 65, 0.1); }
.hx-card:focus-visible { outline: 2px solid #5479ea; outline-offset: 1px; }
.hx-head { display: flex; align-items: flex-start; gap: 8px; height: 36px; padding: 0 12px; }
.hx-head svg { flex: none; margin-top: 6px; color: var(--text); }
.hx-cap { min-width: 0; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 16px; }
.hx-cap b { color: #324a73; font-weight: 600; }
.hx-cap small { color: var(--muted); font-size: 11px; font-weight: 500; }
.hx-cap small::before { content: " · "; white-space: pre; }
.hx-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.hx-media img { width: 100%; height: 100%; padding: 16px; object-fit: contain; }
.hx-media .hx-noimg { position: absolute; left: calc(50% - 10px); top: calc(50% - 10px); left: round(down, calc(50% - 9.5px), 1px); top: round(down, calc(50% - 9.5px), 1px); color: #c5cfdf; }
.hx-dl {
  position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 3px; background: #6f89d3; color: #fff; transition: background-color 200ms var(--ease);
}
.hx-dl { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 0 4px; overflow: hidden; z-index: 2; font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap;
  transition: width 240ms var(--ease), background-color 200ms var(--ease); }
.hx-dl:hover, .hx-dl:focus-visible { width: var(--hx-dlw, 76px); background: #5f7bcb; }
.hx-dl svg { flex: none; width: 10px; height: 10px; }
.hx-dl span { opacity: 0; transition: opacity 160ms var(--ease); } .hx-dl:hover span, .hx-dl:focus-visible span { opacity: 1; transition-delay: 80ms; }
@media (prefers-reduced-motion: reduce) { .hx-dl, .hx-dl span { transition: none; } }
.hx-fav {
  position: absolute; top: 1px; right: 2px; width: 27px; height: 27px; display: grid; place-items: center; padding: 0;
  border: 0; background: transparent; color: #9aa9c3; transition: color 200ms var(--ease);
}
.hx-fav:hover { color: #324a73; }
.hx-fav[aria-pressed="true"] { color: #c0919a; }
.hx-fav svg { width: 19px; height: 19px; }
.hx-tag { position: absolute; bottom: 8px; box-sizing: border-box; height: 13px; padding: 0 0 0 5px; overflow: hidden; border-radius: 3px; color: #fff; font-size: 9.63px; font-weight: 700; line-height: 13px; letter-spacing: 0.5px; white-space: nowrap; text-transform: uppercase; }
.hx-tag--pro { right: 8px; background: #6f89d3; } .hx-tag--beta { right: 8px; background: #a8905f; } .hx-tag--new { left: 8px; background: #62998a; }
.hx-name { margin: 0; padding: 12px 12px 6px; border-top: 1px solid rgba(52, 68, 95, 0.14); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 18px; }
.hx-empty { margin: 48px 0; color: var(--muted); font-size: 13px; text-align: center; }
/* details */
.hx-dlg { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-modal); overflow: hidden; }
.hx-dlg::backdrop { background: rgba(10, 16, 30, 0.62); backdrop-filter: blur(6px); }
.hx-dlg[open] { animation: hx-in 320ms var(--ease) both; }
@keyframes hx-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hx-dlg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: calc(100vh - 32px); }
.hx-dlg__media { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #e8edf5; }
.hx-dlg__pic { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r-md); background: #fff; overflow: hidden; }
.hx-dlg__pic img { width: 100%; height: 100%; object-fit: contain; }
.hx-thumbs { display: flex; gap: 4px; }
.hx-thumbs button { width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--r-sm); background: #fff; overflow: hidden; opacity: 0.55; transition: opacity 200ms var(--ease); }
.hx-thumbs button[aria-pressed="true"], .hx-thumbs button:hover { opacity: 1; }
.hx-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.hx-dlg__info { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 56px 24px 24px; overflow-y: auto; }
.hx-dlg__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: var(--ls-title); }
.hx-dlg__sub { margin: 4px 0 0; color: var(--text); font-size: 12px; }
.hx-dlg__sub b { margin-left: 8px; color: var(--ink); font-weight: 600; }
.hx-dlg__short { margin: 8px 0 0; color: var(--text); font-size: 13px; line-height: 1.5; }
.hx-dlg__actions { display: flex; gap: 4px; margin-top: 16px; }
.hx-dlg__actions .standard-button--primary { flex: 1; }
.hx-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 16px 0 0; font-size: 13px; }
.hx-facts dt { color: var(--muted); }
.hx-facts dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-h { margin: 16px 0 4px; color: var(--eyebrow); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hx-full { margin: 0; color: var(--text); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.hx-nav { position: absolute; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-btn); background: transparent; color: #6b7c99; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.hx-nav:hover { background: rgba(29, 43, 71, 0.07); color: var(--ink); }
.hx-nav svg { width: 16px; height: 16px; }
.hx-nav--prev { left: 16px; } .hx-nav--next { left: 52px; } .hx-nav--close { right: 12px; }
.hx-pos { position: absolute; top: 20px; left: 96px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hx-cols { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .hx-left, .hx-right { display: contents; }
  .hx-search { order: 1; } .hx-side { order: 3; } .hx-gridwrap { order: 4; }
  /* phone: one framed list, a head row with its icon and a strict two-column grid under it */
  .hx-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .hx-group { display: contents; }
  .hx-side .hx-back, .hx-side .hx-line { display: none; }
  .hx-side[data-all] .hx-line { display: block; grid-column: 1 / -1; }
  .hx-side .hx-allrow, .hx-side .hx-fold, .hx-side .hx-cur, .hx-side .hx-line--m { grid-column: 1 / -1; }
  .hx-side .hx-line--m { display: block; }
  .hx-side[data-cat] .hx-fold, .hx-side[data-cat] .hx-line--f, .hx-side[data-cat] button[data-v]:not(.hx-cur) { display: none; }
  .hx-side button[data-v].hx-cur, .hx-side button[data-v].hx-cur[aria-pressed] { height: 33px; min-height: 33px; padding-top: 6px; padding-bottom: 6px; color: var(--ink); font-weight: 600; }
  .hx-side button[data-v].hx-cur[aria-pressed="false"] { background: transparent; }
  .hx-side .hx-cur .hx-up { display: block; margin: 4px 0 0 3px; }
  .hx-tools__in { padding-bottom: 8px; } .hx-lib { padding-top: 8px; }
  .hx-side .hx-kind { padding-left: 7px; } .hx-side .hx-kind::before { display: none; }
}
@media (max-width: 760px) {
  .hx-dlg__grid { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .hx-dlg__info { padding: 56px 16px 24px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .hx-dlg[open] { animation: none; } }
/* link to the page with every folder and kind, under the side list */
.hx-btn.hx-allbtn { flex: none; justify-content: space-between; text-decoration: none; }
.hx-btn.hx-allbtn .hx-chev { margin-top: 0; }
/* phone: the band above already shows the chosen section and «all», so the list keeps only folders and kinds */
@media (max-width: 760px) { .hx-btn.hx-allbtn, .hx-side[data-all], .hx-side .hx-fold, .hx-side .hx-line--f { display: none; } }
/* nothing blinks: rows and cards fade, an opened folder unfolds, the list changes height softly */
.hx-side button { transition: background-color 200ms var(--ease), color 200ms var(--ease), opacity 140ms linear; }
.hx-side .hx-line { transition: opacity 140ms linear; }
.hx-side.is-swap button, .hx-side.is-swap .hx-line { opacity: 0; }
.hx-grid { transition: opacity 240ms var(--ease); }
.hx-grid.is-out { opacity: 0; transition-duration: 120ms; }
.hx-kinds { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 260ms var(--ease), visibility 0s linear 260ms; }
.hx-kinds.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.hx-kinds__in { min-height: 0; overflow: hidden; }
@media (max-width: 760px) { .hx-kinds { display: none; } .hx-kinds.is-open, .hx-kinds__in { display: contents; } }
@media (prefers-reduced-motion: reduce) { .hx-side button, .hx-side .hx-line, .hx-grid, .hx-kinds { transition: none; } }
/* 601-760: search, filters, sort and the heart always share one row */
@media (min-width: 601px) and (max-width: 760px) { .hx-tools__in { flex-wrap: nowrap; } .hx-tools__in .hx-search { flex: 1 1 0; min-width: 0; max-width: none; } .hx-tools__in .hx-sort { margin-left: 0; } }
/* card text (Pavel 2026-10-12): Tahoma, compact, written in full: folder on one line, kind under it.
   Only the family name is bold; the icon is centred on its caption */
.hx-name, .hx-cap { font-family: Tahoma, Verdana, "Segoe UI", sans-serif; }
.hx-name { padding: 6px 10px 4px; font-size: 12px; font-weight: 700; line-height: 14px; }
.hx-head { align-items: center; height: auto; min-height: 24px; padding: 0 10px 6px; box-sizing: content-box; }
.hx-head svg { margin-top: 0; }
.hx-cap { margin-top: 0; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; line-height: 14px; }
.hx-cap b, .hx-cap small { display: block; font-weight: 400; }
.hx-cap small::before { content: none; }
/* cards: clearer frame, the shadow is the same on every side, the gap (12 / 8 / 6, set in hexa-library.js fit) shrinks with the window */
.hx-grid { gap: 12px; }
.hx-card { border-color: rgba(52, 68, 95, 0.46); box-shadow: 0 0 5px rgba(25, 38, 65, 0.1); }
.hx-card:hover, .hx-card:focus-visible { box-shadow: 0 0 16px rgba(25, 38, 65, 0.22); }
/* download button: while it is folded its word is not in the page at all (no clipped text); it fades in as the button opens */
.hx-dl span { display: none; transition: opacity 160ms var(--ease), display 160ms allow-discrete; }
.hx-dl:hover span, .hx-dl:focus-visible span { display: inline; }
@starting-style { .hx-dl:hover span, .hx-dl:focus-visible span { opacity: 0; } }
/* the page with every section, folder and kind */
.hx-road { padding: 24px 0 var(--section-y); background: #eef1f6; color: var(--ink); }
.hr-wrap--struct .hr-head { background: #dbe2ee; }
