:root {
  --ink: #18211d;
  --muted: #5c675e;
  --line: #d6ddd4;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --green: #2f6f4e;
  --green-dark: #22382c;
  --clay: #9b4a36;
  --sand: #d3ad68;
  --steel: #5e7f91;
  --warning: #a13c2f;
  --cad-left-panel-width: 0px;
  --brand-dark: #07090c;
  --brand-panel: #111820;
  --brand-panel-2: #0b1118;
  --brand-gold: #dcae58;
  --brand-gold-light: #f0c878;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,.55) 45% 55%, transparent 55%),
    linear-gradient(var(--sand), #b88548);
  border: 2px solid #6e5433;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  gap: 40px;
  align-items: center;
  padding: 52px 48px 36px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.start-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.start-scenario {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(33, 45, 39, 0.08);
}

.start-scenario.primary {
  background: #245f43;
  color: #ffffff;
  border-color: #245f43;
}

.start-scenario span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 78, 0.12);
  color: #245f43;
  font-size: 13px;
  font-weight: 800;
}

.start-scenario.primary span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.start-scenario b {
  font-size: 18px;
  line-height: 1.12;
}

.start-scenario small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.start-scenario.primary small {
  color: rgba(255, 255, 255, 0.78);
}

.start-scenario-panel {
  padding: 0 48px 48px;
}

.scenario-module {
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(35, 45, 40, 0.08);
}

.scenario-module h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.scenario-module p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.1;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: white;
}

.ghost-button {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-visual {
  min-height: 460px;
  position: relative;
  background: linear-gradient(150deg, #e6ece8, #f8f6ed);
  border: 1px solid var(--line);
  overflow: hidden;
}

.visual-house {
  position: absolute;
  inset: auto 9% 52px 8%;
  height: 320px;
}

.visual-roof {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8px;
  height: 130px;
  background: var(--clay);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.12);
}

.visual-wall {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 48px;
  height: 150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sand);
  border: 5px solid #6e5433;
}

.visual-wall span {
  border-right: 2px solid rgba(110, 84, 51, .45);
}

.visual-wall span:last-child {
  border-right: 0;
}

.visual-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 22px;
  height: 28px;
  background: rgba(34, 56, 44, .18);
  transform: skewX(-18deg);
}

.hero-badge {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 150px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}

.hero-badge b {
  display: block;
  font-size: 34px;
}

.hero-badge span {
  color: var(--muted);
  font-size: 12px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits div {
  min-height: 96px;
  padding: 16px 44px;
  background: white;
  display: grid;
  align-content: center;
}

.benefits b,
.benefits span {
  display: block;
}

.benefits b {
  font-size: 24px;
  line-height: 1.12;
  font-weight: 900;
}

.benefits span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.2;
}

.section {
  padding: 54px 48px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.template-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.template-card.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

.template-image {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #dfe8e3;
}

.template-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-body {
  padding: 16px;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 290px minmax(420px, 1fr) 310px;
  gap: 16px;
  padding: 48px;
  background: #eef2ed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block-layout-module {
  display: none;
}

.cad-first-app .block-layout-module {
  display: grid;
}

.cad-first-app .topbar,
.cad-first-app .hero,
.cad-first-app .benefits,
.cad-first-app #templates,
.cad-first-app #lead {
  display: none;
}

.cad-first-app main {
  min-height: 100vh;
}

.cad-first-app .workspace {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.cad-first-app .controls-panel,
.cad-first-app .result-panel {
  display: none;
}

.cad-first-app .viewer-shell {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}

.cad-first-app .viewer-tabs {
  display: none;
}

.cad-first-app .three-view.hidden,
.cad-first-app .facade-view.hidden,
.cad-first-app .plan-view.hidden {
  display: none;
}

.cad-first-app .three-view:not(.hidden),
.cad-first-app .facade-view:not(.hidden),
.cad-first-app .plan-view:not(.hidden) {
  display: block;
  height: 100vh;
}

.cad-start-overlay {
  position: absolute;
  z-index: 8;
  left: calc(var(--cad-left-panel-width) + 20px);
  top: 144px;
  display: grid;
  gap: 8px;
  width: 290px;
  padding: 12px;
  border: 1px solid #b8c2bb;
  border-radius: 8px;
  background: rgba(246, 247, 244, .98);
  box-shadow: 0 14px 32px rgba(24, 33, 29, .16);
}

.cad-start-overlay b {
  color: #18211d;
  font-size: 15px;
}

.cad-start-overlay span {
  color: #536058;
  font-size: 12px;
  line-height: 1.35;
}

.cad-start-overlay button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: #2f6f4e;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.workspace:has(#planView:not(.hidden)) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.workspace:has(#planView:not(.hidden)) .controls-panel,
.workspace:has(#planView:not(.hidden)) .result-panel {
  display: none;
}

.workspace:has(#planView:not(.hidden)) .viewer-shell {
  border: 0;
  border-radius: 0;
}

.panel,
.viewer-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 18px;
}

.panel-title {
  margin-bottom: 16px;
}

.controls-panel label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.errors {
  min-height: 20px;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.35;
}

.auto-apply {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auto-apply input {
  width: auto;
  min-height: auto;
}

.roof-visibility {
  margin-top: -4px;
}

.apply-button {
  width: 100%;
  margin-bottom: 12px;
}

.tech-note {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #d9dfd6;
  border-radius: 6px;
  background: #f7f8f4;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.openings-form,
.exact-settings {
  margin: 18px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.plan-sheet-tool {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  cursor: default;
}

.plan-sheet-tool:active {
  cursor: default;
}

.tool-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f4;
  color: var(--green-dark);
  font-weight: 900;
}

.plan-tool.active .tool-icon {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.16);
  color: white;
}

.exact-settings {
  color: var(--muted);
}

.exact-settings summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.exact-grid {
  margin-top: 10px;
}

.exact-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

.form-subtitle {
  margin-bottom: 10px;
  font-weight: 800;
}

.opening-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.opening-grid label {
  margin-bottom: 0;
}

.opening-offset {
  grid-column: 1 / -1;
}

.opening-add {
  width: 100%;
  margin: 10px 0;
}

.openings-list {
  display: grid;
  gap: 8px;
}

.opening-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f4;
  color: var(--muted);
  font-size: 12px;
}

.opening-row button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d7aaa4;
  border-radius: 6px;
  background: #fff7f5;
  color: #b53a2d;
  cursor: pointer;
  font-weight: 800;
}

.viewer-shell {
  min-height: 620px;
  overflow: hidden;
}

.viewer-tabs {
  height: 52px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.plan-tool {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-tool.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.tab-button {
  min-width: 78px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.three-view,
.plan-view,
.facade-view {
  height: 568px;
  background: linear-gradient(160deg, #dfe8e3, #f9f8f0);
}

.three-view {
  position: relative;
}

.three-cad-controls {
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.three-cad-controls button {
  min-height: 34px;
  border: 1px solid #b9c4bd;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #26342d;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.plan-view {
  position: relative;
}

.cad-workspace {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #dfe4e2;
}

.cad-menu-bar {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 0;
  height: 36px;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(240, 200, 120, 0.22);
  background: #07090c;
  color: #f7f1df;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.cad-app-title,
.cad-menu-actions {
  display: flex;
  align-items: center;
}

.cad-app-title {
  gap: 10px;
  min-width: 0;
}

.cad-app-title b {
  font-size: 13px;
  white-space: nowrap;
}

.cad-app-title span,
.cad-app-status {
  color: rgba(240, 200, 120, 0.72);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cad-app-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cad-menu-actions {
  gap: 6px;
}

.cad-menu-action {
  min-height: 22px;
  border: 1px solid #34414c;
  border-radius: 4px;
  background: #111820;
  color: #f7f1df;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.cad-menu-action.primary {
  border-color: #f0c878;
  background: linear-gradient(135deg, #f0c878, #dcae58);
  color: #07090c;
}

.cad-menu-action.danger {
  border-color: #b35345;
  color: #ffd8d2;
  background: #291816;
}

.cad-layer-mode {
  min-width: 58px;
  border-color: #35424d;
  background: #111820;
  color: #f7f1df;
}

.cad-layer-mode.active {
  border-color: #f0c878;
  background: rgba(240, 200, 120, 0.16);
  color: #f0c878;
}

.cad-home-action {
  border-color: #f0c878;
  color: #f0c878;
  background: #111820;
}

.cad-topbar {
  position: absolute;
  z-index: 5;
  left: var(--cad-left-panel-width);
  right: 0;
  top: 36px;
  height: 56px;
  display: grid;
  grid-template-columns: max-content minmax(174px, 220px) minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(240, 200, 120, 0.18);
  background: #111820;
  box-shadow: 0 8px 18px rgba(7, 9, 12, .28);
  overflow: hidden;
}

.cad-info-box {
  background: #0b1118;
}

.cad-build-panel {
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  align-self: stretch;
  padding: 3px;
  border: 1px solid #2a3540;
  border-radius: 6px;
  background: #0b1118;
  min-width: 0;
}

.cad-mode-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cad-mode {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #b9c4bd;
  border-radius: 6px;
  background: #fff;
  color: #26342d;
  font-weight: 900;
  cursor: pointer;
}

.cad-mode.active {
  border-color: #2f6f4e;
  background: #2f6f4e;
  color: #fff;
}

.cad-quick-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(64px, 92px)) max-content;
  gap: 5px;
  justify-content: end;
  align-items: end;
  align-content: center;
  min-width: 0;
}

.cad-quick-controls label,
.cad-material-control {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 92px;
  color: #f0c878;
  font-size: 11px;
  font-weight: 900;
}

.cad-quick-controls label {
  max-width: 92px;
}

.cad-material-control > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 3px;
}

.cad-length-control.hidden {
  display: none;
}

.cad-length-control input {
  border-color: #9fb4c7;
  background: #f8fbff;
  color: #182a3d;
  font-weight: 900;
}

.cad-topbar .cad-secondary-control {
  display: none;
}

.cad-quick-controls input,
.cad-quick-controls select {
  min-height: 26px;
  min-width: 0;
  width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
}

.cad-apply-thickness {
  min-height: 26px;
  align-self: end;
  padding: 4px 0;
  border: 1px solid #f0c878;
  border-radius: 6px;
  background: #f0c878;
  color: #07090c;
  font-size: 11px;
  font-weight: 900;
}

.cad-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-self: end;
  align-self: end;
  padding-top: 0;
}

.cad-zoom-controls button {
  min-width: 26px;
  height: 26px;
  border: 1px solid #3a4652;
  border-radius: 6px;
  background: #0b1118;
  color: #f0c878;
  cursor: pointer;
  font-weight: 900;
}

.cad-zoom-controls span {
  min-width: 34px;
  color: #f7f1df;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.cad-info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  padding: 4px 7px;
  border: 1px solid #2a3540;
  border-radius: 6px;
  background: #0b1118;
  overflow: hidden;
}

.cad-info-panel b {
  grid-column: 1;
  align-self: end;
  color: #f7f1df;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cad-info-panel span {
  grid-column: 1;
  align-self: start;
  color: rgba(247, 241, 223, 0.64);
  font-size: 10px;
  font-weight: 800;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cadToolSize {
  display: none;
}

.cad-close-contour {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 28px;
  border: 1px solid #f0c878;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0c878, #dcae58);
  color: #07090c;
  padding: 0 9px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.cad-close-contour:disabled {
  border-color: #35424d;
  background: #18222d;
  color: #6f7880;
  cursor: not-allowed;
}

.cad-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 4px;
}

.cad-methods button {
  min-height: 24px;
  border: 1px solid #c4cec8;
  border-radius: 5px;
  background: #fff;
  color: #2c3932;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.cad-methods button.active {
  border-color: #2f6f4e;
  background: #e4eee8;
  color: #214732;
}

.cad-toolbar {
  position: static;
  z-index: auto;
  width: auto;
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.cad-toolbar-title {
  display: none;
}

.cad-tool {
  width: 58px;
  min-height: 38px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid #2a3540;
  border-radius: 6px;
  background: linear-gradient(#18232e, #111820);
  color: #f7f1df;
  padding: 4px 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(24, 33, 29, .08), 0 1px 2px rgba(24, 33, 29, .08);
}

.cad-tool.active {
  border-color: #f0c878;
  background: linear-gradient(#f0c878, #dcae58);
  color: #07090c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14);
}

.cad-tool.danger {
  border-color: #d1b9b3;
  color: #8d3328;
}

.cad-tool-label {
  line-height: 1.1;
}

.cad-tool small {
  display: none;
  color: #69756e;
  font-size: 10px;
  font-weight: 800;
}

.cad-tool.active small {
  color: rgba(255, 255, 255, .76);
}

.cad-canvas {
  position: absolute;
  inset: 92px 0 32px var(--cad-left-panel-width);
  background: #fbfbf7;
}

.cad-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.cad-canvas svg.is-panning {
  cursor: default;
}

.cad-inspector {
  display: none;
}

@media (max-width: 1100px) {
  .cad-topbar {
    height: 116px;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: minmax(40px, auto) minmax(58px, auto);
    align-items: stretch;
  }

  .cad-build-panel {
    min-width: max-content;
  }

  .cad-info-panel {
    min-height: 40px;
    grid-template-rows: auto;
    align-items: center;
    padding: 4px 8px;
  }

  .cad-info-panel span {
    display: none;
  }

  .cad-close-contour {
    grid-row: 1;
  }

  .cad-quick-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(48px, 1fr)) max-content;
    justify-content: stretch;
    align-content: end;
  }

  .cad-quick-controls label,
  .cad-material-control {
    max-width: none;
    font-size: 10px;
  }

  .cad-zoom-controls {
    justify-self: end;
  }

  .cad-canvas {
    inset: 152px 0 32px var(--cad-left-panel-width);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .three-view,
  .plan-view,
  .facade-view {
    height: calc(100vh - 2px);
    min-height: 360px;
  }

  .cad-menu-bar {
    height: 36px;
    grid-template-columns: minmax(112px, auto) minmax(0, 1fr) auto;
    padding: 3px 6px;
  }

  .cad-app-title {
    gap: 6px;
    font-size: 11px;
  }

  .cad-app-status {
    display: none;
  }

  .cad-menu-actions {
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cad-menu-actions::-webkit-scrollbar {
    display: none;
  }

  .cad-menu-action {
    min-height: 24px;
    padding: 0 7px;
    font-size: 10px;
  }

  .cad-topbar {
    top: 36px;
    height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 210px);
    grid-template-rows: 42px 46px;
    align-items: center;
    gap: 4px 6px;
    padding: 4px 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(24, 33, 29, .08);
  }

  .cad-build-panel {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    padding: 3px;
  }

  .cad-toolbar {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .cad-toolbar::-webkit-scrollbar {
    display: none;
  }

  .cad-tool {
    flex: 0 0 58px;
    width: 58px;
    min-height: 34px;
    font-size: 10px;
  }

  .cad-info-panel {
    grid-column: 2;
    grid-row: 1;
    height: 42px;
    grid-template-columns: minmax(72px, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    padding: 4px 6px;
  }

  .cad-info-panel span {
    display: none;
  }

  .cad-close-contour {
    grid-row: 1;
    min-height: 32px;
    padding: 0 8px;
  }

  .cad-quick-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: end;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .cad-quick-controls::-webkit-scrollbar {
    display: none;
  }

  .cad-quick-controls label,
  .cad-material-control {
    flex: 0 0 76px;
    width: 76px;
    max-width: 76px;
    font-size: 10px;
  }

  .cad-quick-controls input,
  .cad-quick-controls select {
    min-height: 30px;
    padding: 4px 6px;
  }

  .cad-apply-thickness {
    min-height: 30px;
  }

  .cad-zoom-controls {
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #cfd8d2;
  }

  .cad-zoom-controls button {
    min-width: 34px;
    height: 30px;
  }

  .cad-zoom-controls span {
    min-width: 38px;
  }

  .cad-canvas {
    inset: 132px 0 28px 0;
  }

  .cad-status-bar {
    height: 28px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    padding: 0 8px;
    font-size: 11px;
  }

  #cadModeStatus {
    display: none;
  }

  #cadSnapStatus {
    justify-self: end;
  }

  .engineering-summary {
    display: none;
  }
}

.cad-navigator {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #d0d9d4;
}

.cad-navigator b {
  color: #18211d;
  font-size: 13px;
}

.cad-navigator button,
.cad-properties-tabs button {
  min-height: 30px;
  border: 1px solid #c4cec8;
  border-radius: 5px;
  background: #fff;
  color: #2c3932;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.cad-navigator button {
  padding: 0 8px;
  width: 100%;
}

.cad-navigator button.active,
.cad-properties-tabs button.active {
  border-color: #2f6f4e;
  background: #e4eee8;
  color: #214732;
}

.cad-properties-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.cad-properties-tabs button {
  text-align: center;
}

.cad-inspector-title {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.cad-inspector-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cad-inspector-title b {
  color: #18211d;
  font-size: 16px;
}

.cad-inspector label {
  display: grid;
  gap: 4px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cad-inspector input,
.cad-inspector select {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
}

.cad-inspector-action {
  width: 100%;
  min-height: 34px;
  margin: -2px 0 8px;
  border: 1px solid #2f6f4e;
  border-radius: 6px;
  background: #2f7d54;
  color: #fff;
  font-weight: 900;
}

.cad-inspector p {
  margin: 10px 0 0;
  color: #4f5d55;
  font-size: 12px;
  line-height: 1.4;
}

.cad-status-bar {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid #b8c2bb;
  background: #27332d;
  color: #f4f7f2;
  font-size: 12px;
  font-weight: 800;
}

.cad-hidden-controls {
  display: none;
}

.plan-sheet-tools {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 12px;
  width: min(920px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(560px, 1.35fr);
  gap: 10px;
  align-items: stretch;
  pointer-events: auto;
}

.plan-sheet-palette,
.plan-mode-controls {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(24, 33, 29, .12);
}

.plan-sheet-palette {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-mode-controls {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.plan-mode-controls label,
.opening-editor label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.opening-editor label.hidden {
  display: none;
}

.plan-mode-controls input,
.plan-mode-controls select,
.opening-editor input,
.opening-editor select {
  min-height: 36px;
  padding: 7px 9px;
}

.opening-editor {
  position: absolute;
  z-index: 4;
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(24, 33, 29, .16);
}

.opening-properties-editor {
  left: calc(var(--cad-left-panel-width) + 14px);
  right: 14px;
  bottom: 44px;
  top: auto;
  width: auto;
  max-width: none;
  grid-template-columns: minmax(190px, 1.2fr) repeat(5, minmax(104px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 8px;
  border-color: #aebdb9;
  background: rgba(255,255,255,.98);
}

.plan-view:has(#openingEditor:not(.hidden)) .cad-canvas {
  inset: 92px 0 150px var(--cad-left-panel-width);
}

.opening-properties-editor .opening-editor-head {
  grid-column: auto;
  align-self: stretch;
  padding: 0 8px 0 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.opening-properties-editor label {
  gap: 3px;
  font-size: 11px;
}

.opening-properties-editor input,
.opening-properties-editor select {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 16px;
}

@media (max-width: 1100px) {
  .plan-view:has(#openingEditor:not(.hidden)) .cad-canvas {
    inset: 152px 0 150px var(--cad-left-panel-width);
  }
}

.internal-wall-editor {
  width: min(360px, calc(100vw - 24px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  pointer-events: auto;
}

.internal-wall-control.selected {
  stroke: #1f6bd1;
}

.internal-wall-control [data-internal-wall-segment] {
  cursor: default;
}

.internal-wall-control.dragging [data-internal-wall-segment] {
  cursor: default;
}

.internal-wall-control.selected .internal-wall-selected-axis {
  stroke: #0b63ce;
  stroke-width: 4;
  stroke-dasharray: 8 4;
}

.internal-wall-control.dragging .internal-wall-selected-axis {
  stroke: #1f6bd1;
  stroke-width: 4;
}

.internal-wall-node {
  fill: #fbfaf5;
  stroke: #52615a;
  stroke-width: 1.5;
  cursor: default;
}

.internal-wall-node-halo {
  fill: rgba(31, 107, 209, .16);
  stroke: #0b63ce;
  stroke-width: 2.2;
  pointer-events: none;
}

.internal-wall-node-halo.dragging {
  fill: rgba(31, 107, 209, .24);
  stroke-width: 2.8;
}

.internal-wall-node.selected {
  fill: #ffffff;
  stroke: #0b63ce;
  stroke-width: 3;
}

.internal-wall-node.dragging {
  fill: #bfdbfe;
  stroke: #1f6bd1;
  cursor: default;
}

.dimension-tick {
  stroke: #18211d;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.cad-manual-dimension line {
  stroke: #1d2a25;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.cad-manual-dimension .manual-dimension-line {
  stroke: #1f6bd1;
  stroke-width: 1.6;
}

.cad-manual-dimension .manual-dimension-hit {
  stroke: transparent;
  stroke-width: 18;
  cursor: default;
}

.cad-manual-dimension .dimension-label-bg {
  fill: #fbfaf5;
  opacity: .96;
  stroke: #bfcbca;
  stroke-width: .8;
}

.cad-manual-dimension text {
  fill: #17231f;
  font-size: 12px;
  font-weight: 900;
}

.cad-manual-dimension.selected .manual-dimension-line,
.cad-manual-dimension.dragging .manual-dimension-line {
  stroke: #0b63ce;
  stroke-width: 2.4;
}

.cad-manual-dimension.dragging .manual-dimension-hit {
  cursor: default;
}

.cad-manual-dimension.draft {
  opacity: .72;
  stroke-dasharray: 6 4;
}

.engineering-summary {
  position: absolute;
  z-index: 3;
  left: calc(var(--cad-left-panel-width) + 12px);
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: min(640px, calc(100% - var(--cad-left-panel-width) - 24px));
  padding: 10px;
  border: 1px solid #bfcac3;
  border-radius: 8px;
  background: rgba(248, 249, 244, .96);
  box-shadow: 0 10px 24px rgba(24, 33, 29, .12);
  color: #24312b;
  font-size: 12px;
  pointer-events: none;
}

.engineering-summary b {
  flex-basis: 100%;
  font-size: 13px;
}

.engineering-summary span {
  padding: 5px 7px;
  border: 1px solid #d7dfda;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.engineering-summary .summary-warning {
  border-color: #d99166;
  background: #fff2e8;
  color: #8f351f;
}

.opening-editor-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 10px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.opening-editor-head b,
.opening-editor-head span {
  display: block;
}

.opening-editor-head b {
  color: var(--ink);
  font-size: 14px;
}

.opening-editor-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.plan-view.drop-ready {
  outline: 3px dashed var(--green);
  outline-offset: -12px;
  background: linear-gradient(160deg, #d8e7dd, #fbfaf5);
}

.three-view canvas {
  display: block;
}

.hidden {
  display: none;
}

svg {
  width: 100%;
  height: 100%;
}

.result-number {
  padding: 18px;
  background: #f0f5f1;
  border: 1px solid #d4e0d6;
  border-radius: 8px;
}

.result-number span,
.small-note {
  color: var(--muted);
}

.result-number b {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.result-list {
  margin: 18px 0;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
}

.result-list dd {
  margin: 0;
  font-weight: 800;
}

.small-note {
  font-size: 13px;
  line-height: 1.45;
}

.document-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 42px;
  padding: 56px 48px 72px;
}

.lead-section > div:first-child {
  max-width: 620px;
}

.lead-section p {
  color: var(--muted);
  line-height: 1.5;
}

.lead-form {
  display: grid;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.consent input {
  min-height: auto;
}

.lead-status {
  min-height: 20px;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero,
  .workspace,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .start-scenarios {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .template-grid,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --cad-left-panel-width: 0px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .section,
  .start-scenario-panel,
  .workspace,
  .lead-section {
    padding: 28px 16px;
  }

  h1 {
    font-size: 42px;
  }

  .template-grid,
  .benefits {
    grid-template-columns: 1fr;
  }

  .viewer-shell {
    min-height: 500px;
  }

  .three-view,
  .plan-view,
  .facade-view {
    height: 448px;
  }

  .cad-menu-bar {
    grid-template-columns: 1fr auto;
  }

  .cad-app-status {
    display: none;
  }

  .cad-topbar {
    left: var(--cad-left-panel-width);
    height: 174px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .cad-toolbar {
    width: auto;
    padding: 0;
  }

  .cad-tool {
    min-height: 28px;
    justify-items: center;
    text-align: center;
  }

  .cad-build-panel {
    grid-template-columns: max-content max-content;
    grid-template-rows: auto;
    align-items: center;
    justify-content: start;
  }

  .cad-navigator b {
    display: none;
  }

  .cad-navigator button {
    min-height: 28px;
    padding: 0 4px;
    font-size: 10px;
    text-align: center;
  }

  .cad-canvas {
    inset: 210px 0 32px var(--cad-left-panel-width);
  }

  .engineering-summary {
    left: calc(var(--cad-left-panel-width) + 10px);
    right: 10px;
    max-width: none;
  }

  .plan-sheet-tools {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    transform: none;
    grid-template-columns: 1fr;
  }

  .plan-sheet-palette,
  .plan-mode-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }

  .plan-sheet-tool {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
    text-align: center;
  }

  .opening-editor {
    left: 10px !important;
    right: 10px;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-view:has(#openingEditor:not(.hidden)) .cad-canvas {
    inset: 210px 0 188px var(--cad-left-panel-width);
  }

  .opening-properties-editor .opening-editor-head {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cad-topbar {
    top: 36px;
    height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 210px);
    grid-template-rows: 42px 46px;
    align-items: center;
    overflow: hidden;
  }

  .cad-build-panel {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
  }

  .cad-toolbar,
  .cad-quick-controls {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cad-quick-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cad-canvas {
    inset: 132px 0 28px 0;
  }

  .cad-status-bar {
    height: 28px;
    min-height: 28px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    padding: 0 8px;
    font-size: 11px;
    overflow: hidden;
  }

  #cadCursorStatus,
  #cadSnapStatus {
    white-space: nowrap;
  }

  #cadModeStatus {
    display: none;
  }

  #cadSnapStatus {
    justify-self: end;
  }

  .engineering-summary {
    display: none;
  }
}

body.force-cad-mobile-landscape.cad-first-app .three-view,
body.force-cad-mobile-landscape.cad-first-app .plan-view,
body.force-cad-mobile-landscape.cad-first-app .facade-view {
  height: calc(100vh - 2px);
  min-height: 360px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-menu-bar {
  height: 36px;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) auto;
  gap: 6px;
  padding: 3px 6px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-app-title {
  gap: 6px;
  font-size: 11px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-app-status {
  display: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-menu-actions {
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-menu-actions::-webkit-scrollbar {
  display: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-menu-action {
  min-height: 24px;
  padding: 0 7px;
  font-size: 10px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-topbar {
  left: 0;
  top: 36px;
  height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 210px);
  grid-template-rows: 42px 46px;
  align-items: center;
  gap: 4px 6px;
  padding: 4px 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(24, 33, 29, .08);
}

body.force-cad-mobile-landscape.cad-first-app .cad-build-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

body.force-cad-mobile-landscape.cad-first-app .cad-toolbar,
body.force-cad-mobile-landscape.cad-first-app .cad-quick-controls {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-toolbar::-webkit-scrollbar,
body.force-cad-mobile-landscape.cad-first-app .cad-quick-controls::-webkit-scrollbar {
  display: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-tool {
  flex: 0 0 58px;
  width: 58px;
  min-height: 34px;
  font-size: 10px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-info-panel {
  grid-column: 2;
  grid-row: 1;
  height: 42px;
  grid-template-columns: minmax(72px, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  padding: 4px 6px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-info-panel span {
  display: none;
}

body.force-cad-mobile-landscape.cad-first-app .cad-close-contour {
  grid-row: 1;
  min-height: 32px;
  padding: 0 8px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-quick-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(6, minmax(64px, 92px)) max-content;
  justify-content: start;
  align-items: end;
  align-content: center;
}

body.force-cad-mobile-landscape.cad-first-app .cad-quick-controls label,
body.force-cad-mobile-landscape.cad-first-app .cad-material-control {
  max-width: none;
  min-width: 82px;
  font-size: 10px;
}

body.force-cad-mobile-landscape.cad-first-app .cad-zoom-controls {
  justify-self: end;
}

body.force-cad-mobile-landscape.cad-first-app .cad-canvas {
  inset: 132px 0 28px 0;
}

body.force-cad-mobile-landscape.cad-first-app .cad-status-bar {
  height: 28px;
  min-height: 28px;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  padding: 0 8px;
  font-size: 11px;
  overflow: hidden;
}

body.force-cad-mobile-landscape.cad-first-app #cadCursorStatus,
body.force-cad-mobile-landscape.cad-first-app #cadSnapStatus {
  white-space: nowrap;
}

body.force-cad-mobile-landscape.cad-first-app #cadModeStatus,
body.force-cad-mobile-landscape.cad-first-app .engineering-summary {
  display: none;
}

body.force-cad-mobile-landscape.cad-first-app #cadSnapStatus {
  justify-self: end;
}

body.industrial-premium-landing {
  --landing-black: #050505;
  --landing-graphite: #111513;
  --landing-line: rgba(255, 255, 255, 0.16);
  --landing-gold: #f4b83f;
  --landing-gold-dark: #b97b1c;
  --landing-white: #ffffff;
  --landing-hero-background: url("/assets/landing/desktop_hero_immutable_background.png");
}

body.industrial-premium-landing:not(.cad-first-app) {
  background: #060807;
  overflow-x: hidden;
}

body.industrial-premium-landing:not(.cad-first-app) .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 74px;
  grid-template-columns: minmax(260px, 340px) 1fr max-content;
  gap: 24px;
  padding: 0 34px;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.industrial-premium-landing:not(.cad-first-app) .brand {
  gap: 13px;
}

body.industrial-premium-landing:not(.cad-first-app) .brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--landing-gold);
  border-radius: 8px;
  background: rgba(244, 184, 63, 0.1);
  color: var(--landing-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-text b {
  font-size: 22px;
  letter-spacing: 0;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

body.industrial-premium-landing:not(.cad-first-app) nav {
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-contacts {
  display: grid;
  gap: 5px;
  justify-items: end;
  font-size: 13px;
  font-weight: 800;
}

.landing-contacts a:first-child {
  color: #ffffff;
}

.landing-contacts a:last-child {
  color: var(--landing-gold);
}

body.industrial-premium-landing:not(.cad-first-app) .landing-hero {
  min-height: calc(100vh - 74px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(360px, 0.72fr);
  grid-template-rows: 1fr auto auto;
  gap: 18px 28px;
  align-items: end;
  padding: 72px 34px 0;
  overflow: hidden;
  color: #ffffff;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.12) 72%),
    var(--landing-hero-background) center / cover no-repeat;
}

.landing-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.92)),
    radial-gradient(circle at 72% 18%, rgba(244, 184, 63, 0.26), transparent 34%);
  pointer-events: none;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-hero-copy,
body.industrial-premium-landing:not(.cad-first-app) .landing-product-visual,
body.industrial-premium-landing:not(.cad-first-app) .landing-scenario-cards,
body.industrial-premium-landing:not(.cad-first-app) .landing-trust-strip {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-hero-copy {
  align-self: center;
  max-width: 720px;
}

.landing-chip {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd15a, #d49022);
  color: #080808;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-chip span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #080808;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-hero h1 {
  max-width: 660px;
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 68px;
  line-height: 0.98;
  text-transform: uppercase;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-hero h1::first-line {
  color: #ffffff;
}

body.industrial-premium-landing:not(.cad-first-app) .hero-text {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.42;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.landing-primary-cta,
.landing-secondary-cta {
  min-height: 64px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  font-weight: 900;
}

.landing-primary-cta b {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.18;
  white-space: normal;
}

.landing-primary-cta {
  min-width: min(100%, 460px);
  padding: 14px 22px;
  background: linear-gradient(135deg, #ffd45d, #e29925);
  color: #050505;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
}

.landing-secondary-cta {
  padding: 14px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.landing-currency {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.landing-arrow {
  margin-left: auto;
  font-size: 34px;
}

.landing-metrics {
  width: min(100%, 610px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
}

.landing-metrics div {
  min-height: 98px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  align-content: center;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.landing-metrics div:last-child {
  border-right: 0;
}

.landing-feature-icon {
  grid-row: span 2;
  align-self: center;
  color: var(--landing-gold);
  font-size: 30px;
}

.landing-metrics b {
  color: var(--landing-gold);
  font-size: 34px;
  line-height: 0.95;
}

.landing-metrics small {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-product-visual {
  align-self: end;
  min-height: 420px;
  border: 0;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 36px 42px rgba(0, 0, 0, 0.65));
}

.landing-product-visual img {
  width: min(104%, 760px);
  max-width: none;
  height: auto;
  display: block;
  margin: 0 0 -14px -36px;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-scenario-cards {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario {
  min-height: 118px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 11, 10, 0.82);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario.primary {
  border-color: rgba(244, 184, 63, 0.72);
  background: linear-gradient(135deg, rgba(244, 184, 63, 0.96), rgba(198, 128, 25, 0.96));
  color: #050505;
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario span {
  background: rgba(244, 184, 63, 0.13);
  color: var(--landing-gold);
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario.primary span {
  background: rgba(0, 0, 0, 0.12);
  color: #050505;
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario b {
  font-size: 17px;
  text-transform: uppercase;
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario small {
  color: rgba(255, 255, 255, 0.74);
}

body.industrial-premium-landing:not(.cad-first-app) .start-scenario.primary small {
  color: rgba(0, 0, 0, 0.68);
}

.landing-trust-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.82);
}

.landing-trust-strip div {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  gap: 2px 12px;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-trust-strip div:last-child {
  border-right: 0;
}

.landing-trust-strip span {
  grid-row: span 2;
  color: var(--landing-gold);
  font-size: 28px;
}

.landing-trust-strip b,
.landing-trust-strip small {
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
}

.landing-trust-strip small {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1040px) {
  body.industrial-premium-landing:not(.cad-first-app) .topbar {
    grid-template-columns: 1fr auto;
  }

  body.industrial-premium-landing:not(.cad-first-app) nav {
    display: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-hero {
    grid-template-columns: 1fr;
    padding: 52px 24px 0;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-product-visual {
    min-height: 0;
  }

  .landing-product-visual img {
    width: min(86vw, 620px);
    margin: -40px 0 -10px auto;
  }
}

@media (max-width: 720px) {
  body.industrial-premium-landing:not(.cad-first-app) .topbar {
    position: sticky;
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 18px;
  }

  .brand-text b {
    font-size: 22px;
  }

  .brand-text small,
  .landing-contacts {
    display: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-hero {
    min-height: calc(100vh - 84px);
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    padding: 78px 18px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.94)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12)),
      var(--landing-hero-background) center top / auto 56% no-repeat,
      #030303;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-hero-copy {
    width: 100%;
    max-width: calc(100vw - 36px);
    min-width: 0;
  }

  .landing-chip {
    margin-bottom: 22px;
    padding: 10px 18px;
    font-size: 13px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-hero h1 {
    max-width: 354px;
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 1.06;
  }

  body.industrial-premium-landing:not(.cad-first-app) .hero-text {
    max-width: 330px;
    font-size: 21px;
  }

  .landing-actions {
    width: 100%;
    margin-top: 24px;
  }

  .landing-primary-cta {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 76px;
    justify-content: flex-start;
    padding: 14px 18px;
    gap: 12px;
    font-size: 15px;
  }

  .landing-currency {
    flex: 0 0 42px;
  }

  .landing-arrow {
    display: none;
  }

  .landing-secondary-cta {
    display: none;
  }

  .landing-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    overflow: hidden;
  }

  .landing-metrics div {
    min-height: 88px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
  }

  .landing-feature-icon {
    grid-row: auto;
    font-size: 25px;
  }

  .landing-metrics b {
    font-size: 28px;
  }

  .landing-metrics small {
    font-size: 10px;
  }

  .landing-product-visual img {
    width: min(96vw, 520px);
    margin: -12px -28px -18px auto;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-scenario-cards {
    grid-template-columns: 1fr;
  }

  body.industrial-premium-landing:not(.cad-first-app) .start-scenario {
    min-height: 96px;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #080808;
  }

  body.industrial-premium-landing:not(.cad-first-app) .start-scenario::after {
    content: "→";
    font-size: 30px;
    font-weight: 900;
  }

  body.industrial-premium-landing:not(.cad-first-app) .start-scenario small {
    color: rgba(0, 0, 0, 0.68);
  }

  .landing-trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px -18px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
    border-right: 0;
  }

  .landing-trust-strip div {
    min-height: 74px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 3px;
  }

  .landing-trust-strip span {
    grid-row: auto;
    font-size: 24px;
  }

  .landing-trust-strip b,
  .landing-trust-strip small {
    font-size: 11px;
  }
}

/* Landing reference: lower compact hero with three start actions. */
body.industrial-premium-landing {
  --landing-ref-black: #07090c;
  --landing-ref-dark: #0b1118;
  --landing-ref-gold: #dcae58;
  --landing-ref-gold-2: #f0c878;
  --landing-ref-text: #ffffff;
  --landing-ref-muted: rgba(255, 255, 255, 0.72);
  --landing-ref-line: rgba(255, 255, 255, 0.14);
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-hero {
  position: relative;
  min-height: 820px;
  display: block;
  padding: 0;
  overflow: hidden;
  color: var(--landing-ref-text);
  background: #111111;
  border-bottom: 0;
}

.landing-reference-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--landing-hero-background) center / cover no-repeat;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.66) 36%, rgba(0, 0, 0, 0.14) 72%),
    radial-gradient(circle at 18% 44%, rgba(220, 174, 88, 0.18), transparent 36%);
  pointer-events: none;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 42%;
  background: linear-gradient(0deg, rgba(7, 9, 12, 0.94), rgba(7, 9, 12, 0));
  pointer-events: none;
}

.landing-reference-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 246px;
  padding: 26px 42px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.7), rgba(7, 9, 12, 0.18));
  border-bottom: 1px solid var(--landing-ref-line);
  backdrop-filter: blur(8px);
}

.landing-reference-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  color: #ffffff;
}

.landing-reference-logo {
  width: 48px;
  height: 48px;
  border: 2px solid var(--landing-ref-gold);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--landing-ref-gold-2);
  background: rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: 1000;
}

.landing-reference-brand-text {
  display: grid;
  gap: 5px;
  line-height: 1;
}

.landing-reference-brand-text b {
  color: #ffffff;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0;
}

.landing-reference-brand-text b span {
  color: var(--landing-ref-gold-2);
}

.landing-reference-brand-text small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-reference-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-reference-links a {
  white-space: nowrap;
}

.landing-reference-contact {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 0 0 auto;
}

.landing-reference-phone-block {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.landing-reference-phone {
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
  white-space: nowrap;
}

.landing-reference-email {
  color: var(--landing-ref-gold-2);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.landing-reference-nav-cta {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(240, 200, 120, 0.55);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1118;
  background: linear-gradient(135deg, var(--landing-ref-gold-2), var(--landing-ref-gold));
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 100px 42px 290px;
}

.landing-reference-content .kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 10px 15px;
  border: 1px solid rgba(220, 174, 88, 0.48);
  color: var(--landing-ref-gold-2);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: 106px;
  line-height: 0.93;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-reference-content h1 span {
  font-size: 0.62em;
  white-space: nowrap;
}

.landing-reference-content h1 .gold {
  color: var(--landing-ref-gold-2);
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content .hero-text {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--landing-ref-muted);
  font-size: 22px;
  line-height: 1.45;
}

.landing-reference-content .cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.landing-reference-content .primary,
.landing-reference-content .video {
  min-height: 56px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
}

.landing-reference-content .primary {
  padding: 0 24px;
  color: #0a0b0d;
  background: linear-gradient(135deg, var(--landing-ref-gold-2), var(--landing-ref-gold));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  text-transform: uppercase;
}

.landing-reference-content .video {
  gap: 11px;
  color: #ffffff;
}

.landing-reference-content .play {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--landing-ref-gold-2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions {
  position: absolute;
  z-index: 7;
  left: 42px;
  right: 42px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-action {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  align-content: center;
  gap: 12px;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(9, 14, 20, 0.72);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-action.primary-card {
  border-color: rgba(240, 200, 120, 0.6);
  color: #090a0c;
  background: linear-gradient(135deg, rgba(240, 200, 120, 0.98), rgba(220, 174, 88, 0.94));
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .start-scenario::after {
  content: none;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--landing-ref-gold-2);
  background: rgba(255, 255, 255, 0.09);
  font-size: 18px;
  font-weight: 1000;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .primary-card .big-icon {
  color: #090a0c;
  background: rgba(0, 0, 0, 0.08);
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-copy {
  display: grid;
  gap: 3px;
  align-items: center;
  justify-content: stretch;
  justify-items: start;
  min-width: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-title {
  display: block;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.2;
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .primary-card .big-desc {
  color: rgba(9, 10, 12, 0.7);
}

body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-arrow {
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
  color: currentColor;
  font-size: 30px;
  font-weight: 1000;
}

.landing-reference-features {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 28px 42px 134px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(7, 9, 12, 0.9), rgba(7, 9, 12, 0.18));
  pointer-events: none;
}

.landing-reference-features div {
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 3px 12px;
  align-content: center;
  padding: 0 20px;
  border-left: 1px solid var(--landing-ref-line);
}

.landing-reference-features div:first-child {
  border-left: 0;
}

.landing-reference-features .ico {
  grid-row: span 2;
  color: var(--landing-ref-gold-2);
  font-size: 24px;
  line-height: 1;
}

.landing-reference-features b {
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 1000;
  text-transform: uppercase;
}

.landing-reference-features small {
  min-width: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1680px) {
  .landing-reference-links {
    display: none;
  }
}

@media (max-width: 1260px) {
  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions {
    bottom: 32px;
    gap: 10px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-action {
    min-height: 74px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 10px 12px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-icon {
    width: 40px;
    height: 40px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-title {
    font-size: 14px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-desc {
    font-size: 11px;
  }

  .landing-reference-features {
    display: none;
  }
}

@media (max-width: 1100px) {
  .landing-reference-nav {
    padding: 22px 24px;
  }

  .landing-reference-links {
    display: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content {
    padding: 86px 24px 330px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content h1 {
    font-size: 83px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions {
    left: 24px;
    right: 24px;
    gap: 12px;
  }

  .landing-reference-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px 24px 134px;
  }

  .landing-reference-features div:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 900px) {
  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content {
    padding-bottom: 308px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions {
    left: 20px;
    right: 20px;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-action {
    min-height: 68px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 9px 12px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-title {
    font-size: 13px;
    line-height: 1.08;
    max-width: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-desc {
    font-size: 10.5px;
    line-height: 1.15;
  }
}

@media (max-width: 720px) {
  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-hero {
    min-height: 832px;
  }

  .landing-reference-bg {
    background-position: center top;
    background-size: auto 56%;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.94)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.12));
  }

  .landing-reference-nav {
    min-height: 78px;
    padding: 16px 18px;
  }

  .landing-reference-logo {
    width: 44px;
    height: 44px;
  }

  .landing-reference-brand {
    min-width: 0;
  }

  .landing-reference-brand-text b {
    font-size: 20px;
  }

  .landing-reference-contact {
    display: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content {
    width: 100%;
    max-width: none;
    padding: 74px 18px 300px;
  }

  .landing-reference-content .kicker {
    margin-bottom: 22px;
    padding: 9px 13px;
    font-size: 11px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content h1 {
    max-width: 352px;
    font-size: 55px;
    line-height: 1.02;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-content .hero-text {
    max-width: 340px;
    margin-top: 22px;
    font-size: 18px;
  }

  .landing-reference-content .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .landing-reference-content .primary {
    width: 100%;
    max-width: 350px;
    min-height: 58px;
    padding: 0 18px;
    font-size: 14px;
  }

  .landing-reference-content .video {
    min-height: 44px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions {
    left: 20px;
    right: 20px;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-action {
    min-height: 68px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    padding: 9px 12px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-icon {
    width: 40px;
    height: 40px;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-title {
    font-size: 13px;
    max-width: none;
  }

  body.industrial-premium-landing:not(.cad-first-app) .landing-reference-actions .big-desc {
    font-size: 10.5px;
  }

  .landing-reference-features {
    display: none;
  }
}
