/* GMS TOOL concept catalogue; scoped to the products landing page. */
.products-hub .hub-hero {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(28px,4vw,60px);
  align-items: center;
  padding-top: 52px;
  padding-bottom: 46px;
}
.products-hub .hub-hero-copy { min-width: 0; }
.products-hub .hub-meta { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--color-text-muted); }
.products-hub .hub-status { border: 1px solid #85342e; border-radius: 5px; padding: 5px 10px; color: #ee9a90; background: #c7342412; }
.products-hub .hub-hero h1 { margin: 22px 0 12px; font: 600 clamp(3rem,5vw,4.8rem)/1.05 'Outfit',sans-serif; letter-spacing: -.045em; color: #f1f3f5; }
.products-hub .hub-hero h1 > span { color: #ec4d3e; }
.products-hub .hub-tagline { font-size: clamp(1.2rem,1.65vw,1.5rem); line-height: 1.65; color: #e6e9ec; margin-bottom: 16px; }
.products-hub .hub-intro { font-size: 1rem; line-height: 1.85; color: var(--color-text-muted); max-width: 48ch; }
.products-hub .hub-hero .hero-actions { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.products-hub .hub-hero .hero-btn { font-size: .85rem; padding: 14px 20px; min-height: 48px; }
.products-hub .hub-text-link { font-size: .85rem; color: #d8dcdf; text-decoration: underline; text-underline-offset: 5px; }
.products-hub .hub-text-link:hover { color: #f28173; }
.products-hub .hub-concept { min-width: 0; margin: 0; }
.products-hub .hub-concept-image { overflow: hidden; border: 1px solid #383f47; border-radius: var(--glass-card-radius); background: #0b1014; box-shadow: 0 16px 50px #0005; }
.products-hub .hub-concept img { display: block; width: 100%; height: auto; }
.products-hub .hub-concept figcaption { margin-top: 12px; color: var(--color-text-muted); font-size: .75rem; line-height: 1.7; }
.products-hub .hub-text-link:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.products-hub .hub-section { padding-top: 34px; padding-bottom: 34px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.products-hub .hub-section-head { margin-bottom: 26px; }
.products-hub .hub-section-head h2 { font: 400 clamp(1.4rem,2.3vw,1.9rem)/1.5 var(--font-heading); color: #f0f2f4; margin: 0 0 10px; }
.products-hub .hub-section-head p { max-width: 80ch; font-size: .9375rem; line-height: 1.8; color: var(--color-text-muted); }
.products-hub .hub-modules .hub-section-head { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 20px 40px; }
.products-hub .hub-section-head .hub-testing-notice { margin: 0; max-width: 52ch; color: #ee9a90; font-size: .875rem; line-height: 1.8; }
.products-hub .hub-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.products-hub .hub-module { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #30353d; border-radius: var(--glass-card-radius); background: #11161c; }
.products-hub .hub-module-primary { background: linear-gradient(135deg,#b92c2012,transparent 70%),#11161c; }
.products-hub .hub-module-top { display: flex; align-items: center; justify-content: flex-end; }
.products-hub .hub-module-number { color: #75808b; font: 400 .8rem/1.5 var(--font-mono); }
.products-hub .hub-module h3 { font: 600 1.25rem/1.5 var(--font-body); color: #f1f3f5; margin: 0 0 10px; }
.products-hub .hub-module p { margin: 0 0 22px; font-size: .9rem; line-height: 1.85; color: #a7b1bb; }
.products-hub .hub-module-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid #ffffff0b; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: .72rem; color: #909ba7; }
.products-hub .hub-module-bottom > span:last-child { color: #d99186; }

/* Plain modules keep their existing content order in compact landscape frames. */
.products-hub .hub-module:not(.hub-module--photo) { position: relative; aspect-ratio: 3 / 2; padding: 16px; }
.products-hub .hub-module:not(.hub-module--photo) .hub-module-top { position: absolute; top: 12px; right: 16px; margin: 0; }
.products-hub .hub-module:not(.hub-module--photo) h3 { margin-bottom: 6px; padding-right: 28px; }
.products-hub .hub-module:not(.hub-module--photo) p { margin-bottom: 10px; line-height: 1.6; }
.products-hub .hub-module:not(.hub-module--photo) .hub-module-bottom { padding-top: 8px; }
.products-hub .hub-module:not(.hub-module--photo) .hub-details-link { min-height: 44px; margin-top: 10px; }


/* Approved on-photo layout for the three current product screenshots. */
.products-hub .hub-module.hub-module--photo { align-self: start; padding: 0; overflow: hidden; }
.products-hub .hub-module-photo-media { position: relative; overflow: hidden; isolation: isolate; }
.products-hub .hub-module-photo-image { position: relative; z-index: 0; display: block; width: 100%; height: auto; }
.products-hub .hub-module-photo-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,#090c100d 12%,#090c1061 52%,#090c10a6 68%,#090c10eb); pointer-events: none; }
.products-hub .hub-module-photo-media .hub-module-top { position: absolute; inset: 12px 12px auto; z-index: 2; margin: 0; pointer-events: none; }
.products-hub .hub-module-photo-overlay { position: absolute; inset: auto 14px 14px; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: end; gap: 12px; text-shadow: 0 1px 3px #0009; }
.products-hub .hub-module-photo-copy { min-width: 0; }
.products-hub .hub-module-photo-copy h3 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.2; }
.products-hub .hub-module-photo-copy p { margin: 0 0 8px; color: #c5cdd4; font-size: .8125rem; line-height: 1.45; }
.products-hub .hub-module-photo-categories { display: block; color: #c5cdd4; font-size: .65rem; line-height: 1.4; }
.products-hub .hub-module-photo-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.products-hub .hub-module-photo-actions > span { color: #d99186; font-size: .72rem; line-height: 1.5; }
.products-hub .hub-module-photo-actions .hub-details-link { align-self: flex-end; min-height: 44px; margin: 0; padding: 8px 10px; gap: 8px; font-size: .8125rem; border-color: #30353d; }

@media (hover: hover) and (pointer: fine) {
  .products-hub .hub-module--photo:hover { border-color: #88372e; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .products-hub .hub-module.hub-module--photo,
  .products-hub .hub-module-photo-actions .hub-details-link { transition: border-color .3s cubic-bezier(.4,0,.2,1); }
  .products-hub .hub-module-photo-image { transform: scale(1); transition: transform .3s cubic-bezier(.4,0,.2,1); }
  .products-hub .hub-module--photo:hover .hub-module-photo-image { transform: scale(1.05); }
}

.products-hub .hub-workflows { border-top: 1px solid #ffffff0c; margin-top: 22px; }
.products-hub .hub-workflow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.products-hub .hub-workflow { min-width: 0; border-left: 2px solid #68312d; padding: 0 0 0 22px; }
.products-hub .hub-workflow img { width: 34px; height: 34px; margin-bottom: 14px; }
.products-hub .hub-workflow h3 { font-size: 1rem; line-height: 1.6; font-weight: 500; color: #e2e6ea; margin: 0 0 10px; }
.products-hub .hub-workflow p { font-size: .875rem; line-height: 1.85; color: var(--color-text-muted); margin: 0; }
@media (max-width: 1050px) {
  .products-hub .hub-hero { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 28px; }
  .products-hub .hub-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .products-hub .hub-workflow-grid { gap: 20px; }
}
@media (max-width: 800px) {
  .products-hub .hub-modules .hub-section-head { grid-template-columns: 1fr; gap: 14px; }
  .products-hub .hub-hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 24px; gap: 30px; }
  .products-hub .hub-intro { max-width: 65ch; }
  .products-hub .hub-concept { width: 100%; }
  .products-hub .hub-workflow-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 540px) {
  .products-hub .hub-hero h1 { font-size: 3.15rem; }
  .products-hub .hub-tagline { font-size: 1.15rem; }
  .products-hub .hub-intro { font-size: .9375rem; }
  .products-hub .hub-module-grid { grid-template-columns: 1fr; gap: 14px; }
  .products-hub .hub-module { padding: 20px; }
  .products-hub .hub-section { padding-top: 24px; padding-bottom: 24px; }
}

/* Keep compact plain cards readable at narrow phone widths. */
@media (max-width: 360px) {
  .products-hub .hub-module:not(.hub-module--photo) { padding: 10px; }
  .products-hub .hub-module:not(.hub-module--photo) .hub-module-top { top: 10px; right: 10px; }
  .products-hub .hub-module:not(.hub-module--photo) h3 { margin-bottom: 4px; font-size: 17px; line-height: 1.2; }
  .products-hub .hub-module:not(.hub-module--photo) p { margin-bottom: 4px; font-size: 13px; line-height: 1.4; }
  .products-hub .hub-module:not(.hub-module--photo) .hub-module-bottom { padding-top: 4px; gap: 4px 8px; font-size: .65rem; line-height: 1.35; }
  .products-hub .hub-module:not(.hub-module--photo) .hub-module-bottom > span:last-child { font-size: .72rem; }
  .products-hub .hub-module:not(.hub-module--photo) .hub-details-link { min-height: 44px; margin-top: 6px; padding: 8px 10px; font-size: .8125rem; }
}

/* Refined detail layout is shared by the approved product pages that opt in. */
.products-hub.tool-detail-refined .tool-detail-hero-grid {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: clamp(28px,3vw,44px); align-items: center;
}
.products-hub.tool-detail-refined .tool-detail-hero-copy { min-width: 0; align-self: start; }
.products-hub.tool-detail-refined .tool-detail-availability {
  max-width: 56ch; margin: 18px 0 0; color: #ee9a90; font-size: .8125rem; line-height: 1.8;
}
.products-hub.tool-detail-refined .tool-page-hero { padding-bottom: 46px; }
.products-hub.tool-detail-refined .tool-page-actions .hero-btn {
  min-height: 48px; padding: 14px 20px; font-size: .85rem;
}
.products-hub.tool-detail-refined .tool-page-content {
  column-gap: 44px; scroll-margin-top: calc(var(--nav-height) + 24px);
}
.products-hub.tool-detail-refined .tool-detail-feature-copy h3 {
  margin: 0 0 6px; color: #e2e6ea; font: 400 1rem/1.6 var(--font-heading);
}
.products-hub.tool-detail-refined .tool-detail-feature-copy p { margin: 0; }
@media (max-width: 900px) {
  .products-hub.tool-detail-refined .tool-detail-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .products-hub.tool-detail-refined .tool-page-hero { padding-bottom: 34px; }
}

/* Individual tools and their shared release history. */
.products-hub .hub-details-link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 44px; margin-top: 18px; padding: 10px 16px;
  border: 1px solid #804139; border-radius: var(--glass-control-radius); background: #b9362614;
  color: #f2c0b7; font-family: inherit; font-size: .875rem; line-height: 1.6; text-decoration: none;
}
.products-hub .hub-details-link:hover:not(:disabled) { border-color: #db6455; background: #b936262b; color: #fff; }
.products-hub .hub-details-link:disabled { opacity: .5; cursor: not-allowed; }
.products-hub .hub-details-link:focus-visible,
.products-hub .tool-breadcrumb a:focus-visible,
.products-hub .tool-update-meta a:focus-visible,
.products-hub .tool-updates-filter select:focus-visible { outline: 2px solid #ff8b7c; outline-offset: 4px; }
.products-hub .tool-page-hero { padding-top: 28px; padding-bottom: 34px; }
.products-hub .tool-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; color: #8e9ba8; font-size: .8125rem; }
.products-hub .tool-breadcrumb a { color: #c8cfd6; }
.products-hub .tool-page-title-row { display: flex; align-items: center; gap: 24px; }
.products-hub .tool-page-title-row > img { flex: 0 0 72px; width: 72px; height: 72px; }
.products-hub .tool-page-title-row > div { min-width: 0; }
.products-hub .tool-page-title-row .hub-meta { flex-wrap: wrap; gap: 8px 16px; }
.products-hub .tool-page-title-row h1 { margin: 10px 0 0; font: 600 clamp(2rem,4vw,3.5rem)/1.15 'Outfit',sans-serif; letter-spacing: -.035em; color: #f1f3f5; }
.products-hub .tool-page-title-row h1 em { color: var(--red-bright); font-style: normal; }
.products-hub .tool-page-title-row h1 .tool-page-title-detail { display: block; margin-top: 10px; font-size: clamp(1rem,1.6vw,1.25rem); font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.products-hub .tool-page-intro { max-width: 76ch; margin: 24px 0 0; font-size: 1.0625rem; line-height: 1.85; color: #b4bec8; }
.products-hub .tool-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 22px; }
.products-hub .tool-page-content { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); gap: 28px; padding-bottom: 34px; scroll-margin-top: 24px; }
.products-hub .tool-page-functions h2,
.products-hub .tool-updates h2 { margin: 0 0 18px; font: 400 clamp(1.4rem,2.3vw,1.9rem)/1.5 var(--font-heading); color: #eff2f4; }
.products-hub .tool-feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: tool-feature; }
.products-hub .tool-feature-list > li { min-width: 0; padding: 22px; border: 1px solid #2d343d; border-radius: var(--glass-card-radius); background: #11161c; color: #b5c0cb; font-size: .9375rem; line-height: 1.85; counter-increment: tool-feature; }
.products-hub .tool-feature-list > li::before { content: counter(tool-feature,decimal-leading-zero); display: block; margin-bottom: 12px; font: 400 .8rem/1.5 var(--font-mono); color: #eb7668; }
/* Unordered capabilities reuse the existing cards across the full content width. */
.products-hub .tool-page-content.tool-page-capabilities { display: block; }
.products-hub .tool-feature-list.tool-feature-capabilities { counter-reset: none; }
.products-hub .tool-feature-list.tool-feature-capabilities > li { counter-increment: none; }
.products-hub .tool-feature-list.tool-feature-capabilities > li::before { content: none; }
/* W907: compact numbered markers connected vertically, without feature cards. */
.products-hub .tool-feature-list.tool-feature-rail { display: block; }
.products-hub .tool-feature-list.tool-feature-rail-compact { --tool-feature-row-min-height: 64px; --tool-feature-row-gap: 16px; }
.products-hub .tool-feature-list.tool-feature-rail > li {
  position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr);
  column-gap: 20px; align-items: start; min-height: var(--tool-feature-row-min-height,76px); padding: 0 0 var(--tool-feature-row-gap,28px);
  border: 0; border-radius: 0; background: none;
}
.products-hub .tool-feature-list.tool-feature-rail > li::before {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0;
  border: 1px solid #303840; border-radius: 9px; background: #151b21;
  color: #ef6558; font-size: 1rem; line-height: 1;
}
.products-hub .tool-feature-list.tool-feature-rail > li:not(:last-child)::after {
  content: ''; position: absolute; left: 21.5px; top: 52px; bottom: 8px;
  width: 1px; background: #2b333b; pointer-events: none;
}
.products-hub .tool-feature-list.tool-feature-rail > li > span {
  display: flex; align-items: center; min-height: 44px;
}
.products-hub .tool-feature-list.tool-feature-rail > li:last-child { min-height: 44px; padding-bottom: 0; }
.products-hub .tool-file-panel { align-self: start; padding: 26px; border: 1px solid #66332f; border-top: 2px solid #cb4436; border-radius: var(--glass-card-radius); background: linear-gradient(130deg,#b52c2012,transparent),#11161c; }
.products-hub .tool-file-panel h2 { margin: 0 0 18px; color: #dce3e9; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.products-hub .tool-file-format { margin: 0; font-size: 1.1rem; line-height: 1.8; color: #f1f3f5; }
.products-hub .tool-file-panel dl { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; padding-top: 18px; border-top: 1px solid #ffffff10; font-size: .875rem; }
.products-hub .tool-file-panel dt { color: #99a6b3; }
.products-hub .tool-file-panel dd { margin: 0; color: #e0e6ec; }
.products-hub .tool-file-panel .hero-btn { width: auto; min-height: 48px; padding: 13px 16px; font-size: .8125rem; text-align: center; }
.products-hub .tool-page-bottom { padding-top: 10px; padding-bottom: 42px; }
.products-hub .tool-updates { margin-top: 20px; border-top: 1px solid #ffffff10; }
.products-hub .tool-updates-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.products-hub .tool-updates-heading > div { min-width: 0; }
.products-hub .tool-updates-heading h2 { margin-bottom: 8px; }
.products-hub .tool-updates-heading p { max-width: 72ch; margin: 0; font-size: .9375rem; line-height: 1.8; color: #a7b3bf; }
.products-hub .tool-updates-filter { display: grid; gap: 7px; flex: 0 0 220px; font-size: .8125rem; color: #a7b3bf; }
.products-hub .tool-updates-filter select { width: 100%; min-height: 46px; border: 1px solid #424b56; border-radius: var(--glass-control-radius); padding: 10px 34px 10px 14px; color: #e2e7eb; background-color: #10161c; font: inherit; }
.products-hub .tool-updates-status { padding: 24px; margin: 0; border: 1px dashed #3c454f; border-radius: var(--glass-card-radius); background: #11161c80; color: #a9b5c0; font-size: .9375rem; line-height: 1.8; }
.products-hub .tool-updates-status[hidden],
.products-hub [data-updates-copy][hidden] { display: none; }
.products-hub .tool-update-list { display: grid; gap: 16px; }
.products-hub .tool-update { border: 1px solid #313b45; border-left: 3px solid #c94c3d; border-radius: var(--glass-card-radius); background: #11161c; padding: 24px; }
.products-hub .tool-update-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; font-size: .875rem; }
.products-hub .tool-update-meta a { color: #eff2f5; font: 500 1.125rem/1.5 var(--font-body); text-underline-offset: 4px; }
.products-hub .tool-update-meta > span { padding: 3px 8px; border: 1px solid #4c3a37; border-radius: 5px; color: #e7a292; }
.products-hub .tool-update-meta time { margin-left: auto; color: #a9b5c0; }
.products-hub .tool-update-changes { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.products-hub .tool-update-changes > li { display: flex; align-items: baseline; gap: 10px 16px; color: #b9c4ce; font-size: .9375rem; line-height: 1.8; }
.products-hub .tool-update-kind { flex: 0 0 auto; min-width: 104px; color: #98cfab; font-size: .8125rem; }
.products-hub .tool-update-kind[data-kind="improved"] { color: #e0b77e; }
.products-hub .tool-update-kind[data-kind="fixed"] { color: #b2bfce; }
@media (max-width: 900px) {
  .products-hub .tool-page-content { grid-template-columns: 1fr; }
  .products-hub .tool-file-panel { max-width: none; }
  .products-hub .tool-file-panel .hero-btn { width: auto; }
}
@media (max-width: 600px) {
  .products-hub .tool-page-title-row { gap: 16px; align-items: flex-start; }
  .products-hub .tool-page-title-row > img { flex-basis: 48px; width: 48px; height: 48px; }
  .products-hub .tool-page-title-row .hub-meta { font-size: .75rem; }
  .products-hub .tool-page-title-row h1 { font-size: 2rem; }
  .products-hub .tool-page-intro { font-size: 1rem; }
  .products-hub .tool-feature-list { grid-template-columns: 1fr; }
  .products-hub .tool-feature-list > li, .products-hub .tool-file-panel { padding: 20px; }
  .products-hub .tool-updates-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .products-hub .tool-updates-filter { flex-basis: auto; }
  .products-hub .tool-update, .products-hub .tool-updates-status { padding: 20px; }
  .products-hub .tool-update-meta time { flex: 1 0 100%; margin-left: 0; }
  .products-hub .tool-update-changes > li { flex-direction: column; gap: 3px; }
}


/* Supported ECU names grouped by brand within the existing numbered rail. */
.products-hub .tool-supported-ecu-list { display: grid; gap: 12px; margin: 12px 0 0; }
.products-hub .tool-supported-ecu-list > div { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: start; gap: 6px 24px; }
.products-hub .tool-supported-ecu-list dt { margin: 0; color: #c5cdd4; font-weight: 500; }
.products-hub .tool-supported-ecu-list dd { min-width: 0; margin: 0; }
@media (max-width: 600px) {
  .products-hub .tool-supported-ecu-list > div { grid-template-columns: minmax(0,1fr); }
}
