:root {
  --maker-red: #7e1417;
  --maker-red-deep: #5d0c10;
  --maker-red-soft: #f6eaeb;
  --ink: #1b1919;
  --muted: #716b6b;
  --paper: #fffdfc;
  --paper-warm: #f8f3f2;
  --line: #e9dfde;
  --line-strong: #d9cbca;
  --success: #39705a;
  --shadow: 0 22px 70px rgba(61, 20, 22, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, label, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 20, 23, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 20, 23, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 58%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.nav-logo img { display: block; width: auto; height: 42px; }

.nav-menu,
.nav-primary,
.nav-actions,
.lang-switcher {
  display: flex;
  align-items: center;
}

.nav-menu {
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
}

.nav-primary,
.nav-actions { gap: 20px; }

.nav-menu a {
  color: #444;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, transform .2s ease;
}

.nav-primary a:hover { color: var(--maker-red); }
.nav-primary a.active { color: var(--maker-red); }
.nav-primary a { position: relative; }
.nav-primary a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--maker-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s ease;
}
.nav-primary a:hover::after,
.nav-primary a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--maker-red);
  box-shadow: 0 8px 20px rgba(126, 20, 23, .18);
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-beta {
  position: relative;
  top: -.42em;
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: .82;
}

.lang-switcher {
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(126, 20, 23, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}
.lang-switcher > span { color: #aaa; font-size: 11px; }
.lang-btn {
  padding: 4px 6px;
  border-radius: 999px;
  color: #8b8585 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .08em;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.lang-btn:hover { color: var(--maker-red) !important; transform: translateY(-1px); }
.lang-btn.active { color: #fff !important; background: var(--maker-red); }

main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 70px;
  padding: 78px 4px 44px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--maker-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 23px;
  flex: 0 0 23px;
  height: 1px;
  background: var(--maker-red);
}

.eyebrow > [data-i18n] { width: auto; height: auto; background: transparent; }

.intro h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Krona One", sans-serif;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.intro h1 em {
  color: var(--maker-red);
  font-style: normal;
}

.intro-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.intro-proof {
  display: flex;
  padding-bottom: 7px;
}

.intro-proof div {
  min-width: 112px;
  padding: 3px 19px;
  border-left: 1px solid var(--line-strong);
}

.intro-proof strong,
.intro-proof span { display: block; }

.intro-proof strong {
  margin-bottom: 6px;
  color: var(--maker-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.intro-proof span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.quote-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.88fr);
  min-height: 730px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.viewer-panel,
.settings-panel { min-width: 0; }

.viewer-panel {
  display: grid;
  grid-template-rows: auto minmax(470px, 1fr) auto;
  padding: 30px;
}

.settings-panel {
  position: relative;
  padding: 30px 32px 32px;
  border-left: 1px solid var(--line);
  background: rgba(248, 243, 242, 0.76);
}

.panel-heading {
  min-height: 53px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-heading > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.panel-heading h2 {
  margin: -2px 0 3px;
  font-family: "Krona One", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-heading p + p { margin-top: 3px; }

.step-index {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid var(--maker-red);
  border-radius: 50%;
  color: var(--maker-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.format-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-button {
  padding: 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.viewport {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 52% 42%, rgba(126, 20, 23, 0.07), transparent 32%),
    #f6f2f1;
}

.viewport.dragging {
  border-color: var(--maker-red);
  box-shadow: inset 0 0 0 2px rgba(126, 20, 23, 0.12);
}

.viewport::before,
.viewport::after,
.viewport-lines::before,
.viewport-lines::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  pointer-events: none;
  border-color: rgba(126, 20, 23, 0.45);
}

.viewport::before { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.viewport::after { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.viewport-lines::before { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.viewport-lines::after { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }

#modelCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

#modelCanvas.has-model { cursor: grab; }
#modelCanvas.model-dragging { cursor: grabbing; }

.empty-state,
.viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.empty-state[hidden],
.viewer-loading[hidden],
.viewport-toolbar[hidden],
.dimension-chip[hidden] { display: none; }

.upload-glyph {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(126, 20, 23, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 38px rgba(78, 32, 34, 0.08);
}

.upload-glyph svg {
  width: 56px;
  fill: none;
  stroke: var(--maker-red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.upload-glyph .arrow { stroke-width: 1.6; }

.empty-state h3,
.viewer-loading strong {
  margin: 0 0 7px;
  font-family: "Krona One", sans-serif;
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state small,
.viewer-loading small {
  margin-top: 13px;
  color: #918a8a;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.button-light {
  min-height: 42px;
  border-color: var(--line-strong);
  background: #fff;
}

.button-primary {
  color: #fff;
  background: var(--maker-red);
  box-shadow: 0 12px 28px rgba(126, 20, 23, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--maker-red-deep);
  box-shadow: 0 15px 34px rgba(126, 20, 23, 0.24);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.button-email {
  border-color: var(--maker-red);
  color: var(--maker-red);
  background: #fff;
}

.button-email:hover:not(:disabled) { background: var(--maker-red-soft); }

.viewport-toolbar {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
}

.viewport-toolbar button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.viewport-toolbar button:hover { background: var(--maker-red-soft); }
.viewport-toolbar svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.dimension-chip {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  background: rgba(27, 25, 25, 0.84);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.plate-chip,
.position-chip,
.layout-hint {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  background: rgba(27, 25, 25, 0.84);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.plate-chip { bottom: 18px; left: 18px; padding: 8px 11px; }
.position-chip { right: 18px; bottom: 18px; padding: 8px 11px; }
.layout-hint {
  top: 20px;
  left: 20px;
  max-width: min(280px, calc(100% - 130px));
  padding: 7px 11px;
  color: var(--maker-red);
  background: rgba(255, 255, 255, .9);
  border-color: var(--line);
  white-space: normal;
}

.spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--maker-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.drop-strip {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.drop-strip:hover { border-color: var(--maker-red); }
.file-icon {
  width: 35px;
  height: 35px;
  display: grid;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 7px;
  color: var(--maker-red);
  background: var(--maker-red-soft);
  font-size: 19px;
}
.file-copy { min-width: 0; flex: 1; }
.file-copy strong,
.file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy strong { font-size: 13px; }
.file-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.file-action {
  color: var(--maker-red);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#quoteForm { display: block; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled { opacity: 0.55; }
.field-group { margin-bottom: 24px; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.field-label label { font-size: 13px; font-weight: 600; }
.unit-label { color: var(--muted); font-size: 10px; }
.help {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  cursor: help;
}
.help::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 10;
  right: -5px;
  bottom: calc(100% + 9px);
  width: 210px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.help:hover::after,
.help:focus::after { opacity: 1; transform: none; }

.segment-control {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.segment-control input { position: absolute; opacity: 0; pointer-events: none; }
.segment-control label {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  cursor: pointer;
}
.segment-control input:checked + label {
  border-color: var(--maker-red);
  color: #fff;
  background: var(--maker-red);
  box-shadow: 0 6px 15px rgba(126, 20, 23, 0.16);
}
.segment-control input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.scale-labels,
.range-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #a39c9c;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stepper {
  height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.stepper button,
.stepper input { min-width: 0; border: 0; background: transparent; text-align: center; }
.stepper button { color: var(--maker-red); font-size: 15px; cursor: pointer; }
.stepper button:hover { background: var(--maker-red-soft); }
.stepper input {
  width: 100%;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button { appearance: none; }
.wall-control { display: flex; align-items: center; gap: 10px; }
.wall-control .stepper { width: 145px; }
.wall-control > span { color: var(--muted); font-size: 10px; }

.field-label output {
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--maker-red);
  background: var(--maker-red-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-align: center;
}

.range {
  width: 100%;
  height: 3px;
  margin: 10px 0 3px;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(to right, var(--maker-red) var(--range-progress, 15%), #ded4d3 var(--range-progress, 15%));
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--maker-red);
  box-shadow: 0 0 0 1px var(--maker-red), 0 3px 8px rgba(126,20,23,.22);
}
.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--maker-red);
  box-shadow: 0 0 0 1px var(--maker-red);
}
.range-marks { font-size: 8px; letter-spacing: 0; text-transform: none; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--maker-red);
  transform: translateY(-60%);
  pointer-events: none;
}
select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  appearance: none;
}
select:focus { border-color: var(--maker-red); }

.estimate-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 0 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.68);
}
.estimate-note svg { width: 19px; flex: 0 0 19px; fill: none; stroke: var(--maker-red); stroke-width: 1.5; }
.estimate-note p { margin: 0; }
.estimate-note strong,
.estimate-note span { display: block; }
.estimate-note strong { font-size: 11px; }
.estimate-note span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.quote-button { width: 100%; justify-content: space-between; padding-left: 17px; }
.button-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--maker-red);
  background: #fff;
}
.form-error {
  margin: 9px 0 0;
  color: var(--maker-red);
  font-size: 11px;
  line-height: 1.5;
}

.job-card,
.result-card { animation: rise-in .42s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }

.job-card {
  position: relative;
  min-height: 505px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.job-card .eyebrow { margin-bottom: 28px; }
.job-card h3 {
  margin: 0 0 10px;
  font-family: "Krona One", sans-serif;
  font-size: 20px;
}
.job-card > p:not(.eyebrow) { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.queue-number { margin: 34px 0 28px; }
.queue-number small,
.queue-number strong { display: block; }
.queue-number small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.queue-number strong { margin-top: 4px; color: var(--maker-red); font-family: "Krona One", sans-serif; font-size: 38px; }
.queue-number strong.processing-mark { font-size: 22px; letter-spacing: .16em; }
.progress-track { width: min(260px, 80%); height: 3px; overflow: hidden; border-radius: 10px; background: var(--line-strong); }
.progress-track span { display: block; width: 28%; height: 100%; border-radius: inherit; background: var(--maker-red); transition: width .5s ease; animation: waiting-pulse 1.6s ease-in-out infinite alternate; }
@keyframes waiting-pulse { to { opacity: .55; } }
.job-filename { max-width: 300px; margin-top: 13px; overflow: hidden; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-orbit { position: absolute; inset: 30px 0 auto; height: 190px; pointer-events: none; opacity: .18; }
.job-orbit::before,
.job-orbit::after { content: ""; position: absolute; top: 50%; left: 50%; border: 1px solid var(--maker-red); border-radius: 50%; transform: translate(-50%,-50%); }
.job-orbit::before { width: 170px; height: 70px; transform: translate(-50%,-50%) rotate(18deg); }
.job-orbit::after { width: 110px; height: 110px; }
.job-orbit span { position: absolute; top: 47%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--maker-red); animation: orbit 3s linear infinite; transform-origin: -80px 7px; }
@keyframes orbit { to { transform: rotate(360deg); } }

.result-heading { display: flex; align-items: center; gap: 12px; margin: 5px 0 22px; }
.result-check { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); }
.result-heading small { color: var(--success); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.result-heading h3 { margin: 2px 0 0; font-family: "Krona One", sans-serif; font-size: 16px; }
.result-total { padding: 20px; border-radius: 10px; color: #fff; background: var(--maker-red); }
.result-total span,
.result-total strong,
.result-total small { display: block; }
.result-total span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .72; }
.result-total strong { margin: 5px 0 2px; font-family: "Krona One", sans-serif; font-size: 29px; letter-spacing: -.04em; }
.result-total small { font-size: 9px; opacity: .68; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 13px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.result-stats > div { padding: 14px; background: #fff; }
.result-stats span,
.result-stats strong { display: block; }
.result-stats span { color: var(--muted); font-size: 10px; }
.result-stats strong { margin-top: 3px; font-family: "JetBrains Mono", monospace; font-size: 15px; }
.quote-disclaimer { margin: 14px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.result-card > .button { width: 100%; margin-top: 7px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 35px 0 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row article { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 20px; }
.trust-row article + article { border-left: 1px solid var(--line); }
.trust-row article > span { color: var(--maker-red); font-size: 19px; }
.trust-row strong,
.trust-row p { display: block; margin: 0; }
.trust-row strong { font-size: 12px; }
.trust-row p { margin-top: 3px; color: var(--muted); font-size: 10px; }

.footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  color: #555;
  background: #fafafa;
}

.footer::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(126, 20, 23, .045), transparent);
}

.footer-inner {
  position: relative;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 22px;
  display: grid;
  grid-template-columns: 1.05fr .55fr 1.45fr .8fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-home { display: inline-flex; align-items: center; justify-content: center; }
.footer-logo { display: block; width: auto; max-width: 220px; height: 76px; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: #444; font-size: 13px; line-height: 1.7; }

.footer-socials { display: flex; gap: 12px; margin-top: 15px; }
.footer-socials a {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.footer-socials a:hover { border-color: rgba(126, 20, 23, .45); box-shadow: 0 8px 18px rgba(126, 20, 23, .12); transform: translateY(-2px); }
.footer-socials img { display: block; width: 17px; height: 17px; }

.footer-column { min-width: 0; }
.footer-title { margin-bottom: 12px; color: #000; font-size: 14px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a,
.footer-policy-link { color: #333; font-size: 13px; line-height: 1.5; transition: color .2s ease, transform .2s ease; }
.footer-links a:hover,
.footer-policy-link:hover,
.footer-contact-item a:hover { color: var(--maker-red); }
.footer-links a:hover { transform: translateX(4px); }

.footer-location-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; column-gap: 30px; row-gap: 15px; }
.footer-contact-item { display: grid; gap: 2px; margin: 0; color: #555; font-size: 12px; line-height: 1.55; }
.footer-contact-item strong { color: #222; font-size: 12px; font-weight: 600; }
.footer-contact-item span { font-size: 11px; line-height: 1.55; }

.footer-origin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; align-self: center; text-align: center; }
.footer-country { color: #333; font-size: 13px; white-space: nowrap; }
.footer-bbi-logo { display: block; width: auto; max-width: 88px; height: 56px; }

.footer-bottom {
  position: relative;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: #555;
  font-size: 12px;
}
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-policy-link { color: #555; font-size: 12px; }

[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro-proof { display: none; }
  .quote-shell { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr); }
  .viewer-panel { padding: 22px; }
  .settings-panel { padding: 22px; }
}

@media (max-width: 768px) {
  .nav-container { align-items: flex-start; }
  .nav-menu { gap: 14px; }
  .nav-primary { gap: 13px; }
  .nav-actions { gap: 12px; }
  .quote-shell { display: block; }
  .settings-panel { border-top: 1px solid var(--line); border-left: 0; }
  .viewer-panel { grid-template-rows: auto 470px auto; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row article { justify-content: flex-start; padding-left: 28px; }
  .trust-row article + article { border-top: 1px solid var(--line); border-left: 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-location-column { grid-column: 1; }
  .footer-origin { grid-column: 2; }
}

@media (max-width: 768px) {
  .nav-container { flex-direction: column; padding: 10px 16px 12px; }
  .nav-menu { width: 100%; flex-direction: column; justify-content: center; gap: 12px; }
  .nav-primary,
  .nav-actions { justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
}

@media (max-width: 520px) {
  main { width: min(100% - 24px, 1280px); }
  .nav-logo img { height: 34px; }
  .nav-primary,
  .nav-actions { justify-content: center; flex-wrap: wrap; gap: 10px 15px; }
  .nav-menu a { font-size: 12px; }
  .nav-cta { padding: 8px 12px; }
  .intro { padding: 48px 2px 30px; }
  .intro h1 { font-size: clamp(2.1rem, 11vw, 3rem); line-height: 1.15; }
  .intro-lead { font-size: 15px; }
  .quote-shell { border-radius: 12px; }
  .viewer-panel,
  .settings-panel { padding: 17px; }
  .viewer-panel { grid-template-rows: auto 380px auto; }
  .viewport { min-height: 380px; }
  .dimension-chip { bottom: 55px; }
  .plate-chip { bottom: 14px; left: 12px; }
  .position-chip { right: 12px; bottom: 14px; }
  .layout-hint { top: 14px; left: 14px; max-width: calc(100% - 110px); }
  .settings-grid { gap: 8px; }
  .stepper { grid-template-columns: 29px 1fr 29px; }
  .empty-state { padding: 24px; }
  .upload-glyph { width: 78px; height: 78px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 20px; }
  .footer-column,
  .footer-location-column { grid-column: auto; align-items: center; text-align: center; }
  .footer-links { align-items: center; }
  .footer-contact-details { grid-template-columns: 1fr; text-align: center; }
  .footer-contact-item { text-align: center; }
  .footer-origin { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .format-badge { padding: 6px 8px; font-size: 9px; letter-spacing: .06em; }
  .settings-grid { grid-template-columns: 1fr; }
  .viewer-panel { grid-template-rows: auto 350px auto; }
  .viewport { min-height: 350px; }
  .plate-chip,
  .position-chip { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Shared mini MAKERSPACE site chrome. Keep this frame aligned with minimakerspace.id. */
:root {
  --chrome-frame-max: 1440px;
  --chrome-gutter: clamp(20px, 4vw, 72px);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  width: 100%;
  max-width: var(--chrome-frame-max);
  min-height: 62px;
  padding: 10px var(--chrome-gutter);
}

.nav-logo { gap: 10px; }
.nav-logo img { height: 42px; }

.nav-menu { gap: 18px; }
.nav-primary,
.nav-actions { gap: 20px; }

.nav-menu a,
.nav-menu .nav-button {
  color: #444;
  font-size: 13px;
  font-weight: 600;
}

.nav-menu a:hover,
.nav-primary a.active { color: var(--maker-red); }

.nav-menu .nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--maker-red);
  box-shadow: 0 8px 20px rgba(126, 20, 23, 0.18);
}

.nav-menu .nav-cta:hover { color: #fff; }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(126, 20, 23, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.lang-switcher > span { color: #aaa; font-size: 11px; }

.lang-btn {
  padding: 4px 6px;
  border-radius: 999px;
  color: #777 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
}

.lang-btn:hover { color: var(--maker-red) !important; }
.lang-btn.active { color: #fff !important; background: var(--maker-red); }

.footer {
  margin-top: 56px;
  border-top-color: var(--line);
  background: #fafafa;
}

.footer-inner {
  width: 100%;
  max-width: var(--chrome-frame-max);
  padding: 22px var(--chrome-gutter) 20px;
  grid-template-columns: 1.05fr 0.55fr 1.45fr 1fr;
  gap: 28px;
}

.footer-brand { align-items: center; text-align: center; }
.footer-logo { height: 88px; max-width: 240px; }
.footer-brand p { color: #444; font-size: 14px; line-height: 1.7; }
.footer-socials { gap: 12px; margin-top: 16px; }
.footer-socials a { border-color: rgba(126, 20, 23, 0.16); background: #fff; }
.footer-socials img { width: 17px; height: 17px; }
.footer-title { margin-bottom: 12px; color: #000; font-size: 14px; font-weight: 600; }
.footer-links { gap: 10px; }
.footer-links a { color: #333; font-size: 14px; }
.footer-contact-item { color: #555; font-size: 12px; line-height: 1.6; }
.footer-contact-item strong { color: #222; font-size: 12px; font-weight: 600; }
.footer-contact-item span { font-size: 11px; line-height: 1.55; }
.footer-country { color: #333; font-size: 13px; }
.footer-bottom {
  width: 100%;
  max-width: var(--chrome-frame-max);
  padding: 14px var(--chrome-gutter) 20px;
  color: #555;
  font-size: 13px;
}
.footer-policy-link { color: #555; font-size: 12px; padding: 4px 6px; }

@media (max-width: 768px) {
  :root { --chrome-gutter: 16px; }
  .nav-container { padding: 10px var(--chrome-gutter) 12px; }
  .nav-menu a,
  .nav-menu .nav-button { font-size: 12px; }
  .lang-btn,
  .lang-btn.active { font-size: 12px !important; font-weight: 600 !important; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px var(--chrome-gutter) 18px; }
  .footer-location-column { grid-column: 1; align-items: flex-start; text-align: left; }
  .footer-origin { grid-column: 2; }
}

@media (min-width: 1100px) {
  .footer-inner { column-gap: clamp(28px, 4vw, 64px); }
}

@media (max-width: 520px) {
  .nav-logo img { height: 34px; }
  .nav-menu .nav-cta { padding: 8px 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-column,
  .footer-location-column { text-align: center; align-items: center; }
  .footer-location-column,
  .footer-origin { grid-column: auto; }
  .footer-contact-details { grid-template-columns: 1fr; }
  .footer-links { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
