.industrial-hero {
  background: radial-gradient(ellipse at 97% 105%, #272b50, transparent 58%), var(--night);
  color: #fff;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center; gap: clamp(24px, 5.2vw, 88px);
  padding-block: clamp(52px, 5.5vw, 90px);
}
.hero-message h1 {
  max-width: 17ch; font-size: clamp(3.25rem, 4.7vw, 4.65rem);
  line-height: 1.04; letter-spacing: -.057em; font-weight: 690; text-wrap: balance;
}
.hero-message h1 em {display: block; font-style: normal; color: #adb5ff}
.hero-message p {
  max-width: 44ch; margin-top: 1.25rem; color: #d3d6e6;
  font-size: clamp(1rem, 1.38vw, 1.225rem); line-height: 1.55; text-wrap: pretty;
}
.hero-actions {display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.65rem}
.secondary-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1rem; border: 1px solid #666b84; border-radius: 7px;
  color: #f7f7ff; font-size: .9375rem; font-weight: 650;
}
.secondary-action:hover {background: #282b42}
.hero-actions :focus-visible {outline-color: #c0c5ff}

.hero-scan {
  min-width: 0; border: 1px solid #cbd1e4; border-radius: 15px; background: #fff;
  color: var(--page-ink); box-shadow: 0 20px 60px #01030c7a;
}
.scan-header {
  display: grid; gap: .65rem; padding: 1rem clamp(.85rem, 1.6vw, 1.45rem);
  border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--line); background: var(--slate);
}
.scan-header h2 {font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.2; font-weight: 675; letter-spacing: -.03em}
.scan-summary, .scan-finding, .part-meta, .signal-tags {display: flex; flex-wrap: wrap; align-items: center; gap: .3rem}
.scan-lines {padding: 0; margin: 0; list-style: none}
.scan-lines li + li {border-top: 1px solid #e8eaf3}
.scan-lines a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center; column-gap: .65rem; min-height: 61px;
  padding: .62rem clamp(.85rem, 1.6vw, 1.45rem);
}
.scan-lines li:last-child a {border-radius: 0 0 14px 14px}
.scan-lines a:hover, .scan-lines a:focus-visible {background: #f2f3ff}
.scan-lines a:focus-visible {outline-offset: -3px}
.scan-part {display: grid; justify-items: start; gap: .21rem}
.scan-part span {color: var(--muted); font-size: .75rem; line-height: 1.3}
.scan-arrow {color: var(--link); font-size: .95rem}

.audit-showcase, .how-section {padding-block: clamp(48px, 6vw, 88px); background: var(--slate)}
.showcase-title {display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.65rem}
.showcase-title h2, .problem h2 {
  font-size: clamp(2.1rem, 3.45vw, 3.15rem); line-height: 1.08; font-weight: 675;
  text-wrap: balance;
}
.showcase-title h2 {max-width: 22ch}
.showcase-title p, .problem > div > p {max-width: 52ch; color: var(--muted); font-size: 1rem; line-height: 1.6}
.demo, .audit-fallback {
  background: #fff; border: 1px solid #cdd3e5; border-radius: 14px; box-shadow: 0 10px 36px #181f4810;
}
.audit-fallback {padding: 1.5rem; line-height: 1.55}
.audit-fallback ul {margin-bottom: 0; padding-inline-start: 1.2rem}
.audit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(.85rem, 2vw, 1.55rem); border-bottom: 1px solid var(--line);
}
.audit-bar h3 {font-size: clamp(1.1rem, 1.6vw, 1.32rem); font-weight: 680; letter-spacing: -.025em}
.mode-switch {
  display: flex; min-width: 0; margin: 0; padding: 3px; border: 1px solid #dbe0ef;
  background: #eef0f8; border-radius: 8px;
}
.mode-switch label {position: relative; display: flex; flex: 1; cursor: pointer}
.mode-switch input {position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden}
.mode-switch span {
  display: grid; flex: 1; align-content: center; justify-content: center; min-height: 39px;
  padding: .45rem .85rem; border-radius: 5px; color: #424b63; line-height: 1.25;
  font-size: .8rem; font-weight: 650; text-align: center;
}
.mode-switch label:hover span {color: var(--link)}
.mode-switch input:checked + span {background: var(--link); color: #fff}
.mode-switch input:focus-visible + span {outline: 2px solid var(--action-blue); outline-offset: 2px}

.audit-body {display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr)}
.audit-table {min-width: 0}
.audit-table table {width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left}
.audit-table thead {background: var(--slate)}
.audit-table thead tr {height: 44px}
.audit-table tbody tr {height: 68px; cursor: pointer}
.audit-table thead th {font-size: .72rem; font-weight: 650; line-height: 1.25; color: #454e67}
.audit-table thead th:first-child {width: 31%}
.audit-table thead th:nth-child(2) {width: 8%}
.audit-table thead th:nth-child(3) {width: 21%}
.audit-table thead th:nth-child(4), .audit-table thead th:nth-child(5) {width: 20%}
.audit-table th, .audit-table td {
  padding: .35rem clamp(.35rem, .75vw, .7rem);
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
.audit-table tr > :first-child {padding-left: clamp(.65rem, 1.4vw, 1.25rem)}
.audit-table td {font-size: clamp(.72rem, .95vw, .875rem); color: #424b62; line-height: 1.4}
.audit-table tr > :nth-child(2) {text-align: center; font-variant-numeric: tabular-nums}
.audit-table td.audit-number {font-variant-numeric: tabular-nums; font-weight: 580; white-space: nowrap}
.audit-table tbody tr:hover {background: #f5f6fe}
.audit-table tr.is-selected {background: #eef0ff}
.audit-table tr.is-selected th {box-shadow: inset 3px 0 var(--action-blue)}
.part-select {display: flex; align-items: center; gap: .55rem; min-height: 42px; cursor: pointer; line-height: 1.28}
.part-select input {flex: none; width: .9rem; height: .9rem; margin: 0; accent-color: var(--link)}
.part-select b {display: block; margin-top: .19rem; color: var(--muted); font-size: .72rem; font-weight: 520}
.inspector {
  display: flex; flex-direction: column; gap: .5rem;
  min-width: 0; padding: .875rem; border-left: 1px solid var(--line);
  border-radius: 0 0 13px 0; background: #fafaff;
}
.inspector h4 {font-size: clamp(1.06rem, 1.45vw, 1.32rem); line-height: 1.2; letter-spacing: -.025em}
.part-meta {margin-top: .3rem}
.inspector h5 {font-size: .76rem; color: #4d5770}
.signal-tags {margin-top: .2rem}
.audit-metrics {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin: 0}
.audit-metrics > div {padding: .28rem}
.audit-metrics dt {margin-bottom: .13rem; color: #4d5770; font-size: .72rem; line-height: 1.2}
.audit-metrics dd {margin: 0; line-height: 1}
.audit-metrics .flag {padding-inline: .25rem; font-size: .68rem; font-variant-numeric: tabular-nums}
.audit-visual {
  display: grid; align-content: center; gap: .2rem;
  min-height: 98px; padding: .2rem .55rem; font-size: .72rem; line-height: 1.2;
}
.audit-visual-header, .quote-preview p {display: flex; align-items: center; justify-content: space-between; gap: .4rem}
.audit-visual-header {min-height: 18px}
.audit-visual-header .flag {padding: .1rem .38rem}
.audit-visual .chart-axis {font-size: .67rem}
.quote-preview {grid-template-rows: repeat(3, 22px); gap: .38rem}
.quote-preview p {color: var(--muted); border-top: 1px solid var(--line)}
.quote-preview p span:first-child {font-weight: 600}
.compare-quotes {padding: 0; border: 0; background: transparent; color: var(--link); font-weight: 680}
.compare-quotes:hover {text-decoration: underline; text-underline-offset: 2px}
.audit-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem;
  padding-top: .45rem; margin-top: auto; border-top: 1px solid var(--line);
}
.audit-next strong {font-size: .77rem; font-weight: 620; color: #303851}

.problem {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 6vw, 90px); align-items: center; padding-block: clamp(55px, 7vw, 108px);
}
.problem h2 {max-width: 23ch}
.problem > div > p {margin-top: 1rem}
.cabinet {position: relative; align-self: stretch; min-height: 390px; margin: 0; overflow: hidden; border-radius: 13px; background: #202735}
.cabinet img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.blind-spots {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.35rem 0 0}
.blind-spots li {display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55rem; border-top: 1px solid var(--line); padding-top: .85rem}
.blind-icon {display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 6px; background: var(--slate-blue); color: var(--link)}
.blind-icon svg {width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round}
.blind-spots h3, .how-steps h3 {font-size: 1rem; line-height: 1.3; letter-spacing: -.02em}
.blind-spots p, .how-steps p {margin-top: .32rem; color: var(--muted); font-size: .85rem; line-height: 1.5}
.how-section {border-block: 1px solid #e8ebf4}
.how-steps {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0}
.how-steps li {padding: clamp(1rem, 2vw, 1.65rem); background: #fff; border: 1px solid var(--line); border-radius: 10px}
.how-steps li > span {
  display: inline-block; margin-bottom: .8rem; padding: .32rem .55rem; border-radius: 5px;
  background: #ebedff; color: var(--link); font-size: .78rem; font-weight: 650;
}
.how-steps h3 {font-size: 1.15rem}
.how-steps p {font-size: .95rem}

@media (max-width: 950px) {
  .audit-body {grid-template-columns: minmax(0, 1fr)}
  .inspector {border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 13px 13px}
}
@media (min-width: 761px) and (max-width: 1120px) {
  .hero-actions a {padding-inline: .8rem; font-size: .875rem}
}
@media (max-width: 760px) {
  .hero-inner, .problem, .showcase-title {grid-template-columns: minmax(0, 1fr)}
  .hero-inner {gap: 1.6rem; padding-block: 2.4rem 1.9rem}
  .hero-message h1 {font-size: clamp(2.45rem, 8.8vw, 4rem)}
  .hero-message p {margin-top: .86rem}
  .hero-actions {margin-top: 1.2rem}
  .hero-scan {max-width: 620px}
  .showcase-title {gap: .7rem; margin-bottom: 1.2rem}
  .problem > div {grid-row: 1}
  .cabinet {min-height: 0; aspect-ratio: 4 / 3}
  .how-steps {grid-template-columns: minmax(0, 1fr); gap: .65rem}
}
@media (max-width: 540px) {
  .hero-actions {display: grid; grid-template-columns: 1.15fr 1fr}
  .hero-actions a {font-size: .83rem; padding-inline: .65rem; text-align: center; text-wrap: balance}
  .scan-lines a {column-gap: .38rem; min-height: 63px}
  .scan-part code {font-size: .71rem}
  .scan-finding .flag {font-size: .66rem}
  .audit-bar {align-items: stretch; flex-direction: column; gap: .8rem}
  .audit-table thead th:first-child {width: 51%}
  .audit-table thead th:nth-child(2) {width: 13%}
  .audit-table thead th:nth-child(3) {width: 36%}
  .audit-table tr > :nth-child(n+4) {display: none}
  .blind-spots {grid-template-columns: minmax(0, 1fr); gap: .65rem}
}
@media (forced-colors: active) {
  .mode-switch input:checked + span {outline: 2px solid SelectedItem}
}
