:root {
  color-scheme: light;
  --ink: #10151b;
  --graphite: #18212b;
  --muted: #627080;
  --field: #f5f7f7;
  --white: #fff;
  --line: #d7e0e3;
  --green: #145d46;
  --green-dark: #0d3f31;
  --green-soft: #e6efe9;
  --copper: #b96f28;
  --blue: #315c76;
  --danger: #923c2c;
  --shadow: 0 18px 48px rgba(16, 21, 27, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 224, 227, .9);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
}

.site-header .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-width: 225px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--green-dark); }
.btn.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.secondary:hover { background: #eef2f2; }
.btn.dark { background: var(--ink); }
.btn.full { width: 100%; }

.page-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: 0; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}
h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; }
h3 { margin: 0; font-size: 21px; line-height: 1.2; }

.page-hero p {
  max-width: 800px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric { min-height: 92px; padding: 17px; background: var(--field); }
.metric strong { display: block; font-size: 21px; }
.metric span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { padding: 70px 0; }
.section.white { border-block: 1px solid var(--line); background: #fff; }
.section.dark { background: var(--graphite); color: #fff; }
.section.soft { background: var(--green-soft); }

.section-head {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p, .lead { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-head p, .dark .lead { color: #cbd6dc; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card p { margin: 10px 0 0; color: var(--muted); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
.card li { position: relative; margin: 8px 0; padding-left: 17px; }
.card li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--copper);
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(340px, 1.08fr);
  gap: 44px;
  align-items: start;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf2f1; color: var(--green-dark); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td strong { color: var(--ink); }

.check-list { display: grid; gap: 9px; margin-top: 22px; }
.check-item {
  padding: 13px 15px;
  border-left: 3px solid var(--green);
  background: #fff;
  color: var(--muted);
}

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

.step {
  min-height: 180px;
  padding: 20px;
  border-top: 4px solid var(--copper);
  background: #fff;
}
.step b { display: block; margin-bottom: 11px; color: var(--blue); font-size: 13px; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }

.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 0; border-bottom: 0; }
.form-section h2 { margin-bottom: 16px; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 13px; font-weight: 720; }
.field small { color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #c8d2d7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 93, 70, .1); }

.dropzone {
  padding: 22px;
  border: 1px dashed #9fadb5;
  border-radius: 8px;
  background: #f7f9f9;
  text-align: center;
}
.dropzone input { margin-top: 12px; padding: 8px; background: #fff; }
.file-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.model-viewer {
  overflow: hidden;
  border: 1px solid #34454d;
  border-radius: 8px;
  background: #10161b;
  color: #eaf1ee;
  box-shadow: 0 16px 36px rgba(11, 16, 22, .16);
}
.model-viewer[hidden] { display: none; }
.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #304047;
}
.viewer-head strong { display: block; overflow-wrap: anywhere; }
.viewer-kicker { display: block; margin-bottom: 2px; color: #91a9a0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.privacy-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #527466;
  border-radius: 5px;
  color: #b8d6ca;
  font-size: 11px;
  font-weight: 750;
}
.viewer-stage {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vw, 560px);
  background: #10161b;
}
.viewer-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 22, 27, .88);
  color: #dbe8e3;
  font-weight: 750;
}
.viewer-loading[hidden] { display: none; }
.viewer-axis {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
}
.viewer-axis span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.axis-x { background: #b65345; }
.axis-y { background: #3f8063; }
.axis-z { background: #3d6f8c; }
.viewer-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(5, 8, 10, .72);
  color: #aebdb7;
  font-size: 10px;
}
.viewer-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid #304047;
  border-bottom: 1px solid #304047;
}
.viewer-stats div { padding: 11px 13px; border-right: 1px solid #304047; }
.viewer-stats div:last-child { border-right: 0; }
.viewer-stats span { display: block; color: #91a59d; font-size: 10px; }
.viewer-stats strong { display: block; margin-top: 3px; font-size: 14px; }
.metric-good { color: #85d2a9; }
.metric-watch { color: #e7bd72; }
.metric-risk { color: #ed816d; }
.viewer-controls {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  padding: 16px;
}
.viewer-control-group { display: grid; align-content: start; gap: 7px; }
.viewer-control-group > span, .viewer-control-group > label { color: #91a59d; font-size: 11px; font-weight: 750; }
.viewer-control-group.compact { grid-template-columns: minmax(150px, 1fr) auto auto; align-items: end; }
.viewer-control-group.compact label { grid-column: 1 / -1; }
.viewer-control-group.color-control { grid-column: 1 / -1; }
.plate-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plate-custom[hidden] { display: none; }
.plate-custom label { color: #91a59d; font-size: 10px; }
.plate-custom input { min-height: 36px; margin-top: 4px; border-color: #43565d; background: #192228; color: #e7efec; }
.viewer-control-group select {
  min-height: 36px;
  border-color: #43565d;
  background: #192228;
  color: #e7efec;
}
.section-range { display: grid; gap: 5px; color: #91a59d; font-size: 10px; }
.section-range[hidden] { display: none; }
.section-range input { min-height: 24px; padding: 0; accent-color: #5d957d; }
.segmented, .viewer-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.segmented button, .viewer-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #405159;
  border-radius: 5px;
  background: #192228;
  color: #c5d2cd;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.segmented button:hover, .viewer-button:hover { border-color: #77958a; color: #fff; }
.segmented button.active, .viewer-button.primary { border-color: #5d957d; background: #285943; color: #fff; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch, .custom-color {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  border: 2px solid #43545b;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}
.color-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px #5d957d; }
.custom-color {
  overflow: hidden;
  border-style: dashed;
  background: conic-gradient(#d9644a, #d4a33e, #4e9b7d, #355f76, #9b5c9f, #d9644a);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.custom-color input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }
.viewer-insight {
  padding: 12px 16px;
  border-top: 1px solid #304047;
  background: #162027;
  color: #b8c8c2;
  font-size: 12px;
}
.mesh-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mesh-report-head h3 { margin-bottom: 4px; }
.mesh-report-head p { margin: 0; }
.mesh-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}
.mesh-report-grid div { padding: 11px; background: #fff; }
.mesh-report-grid span { display: block; color: var(--muted); font-size: 10px; }
.mesh-report-grid strong { display: block; margin-top: 3px; font-size: 14px; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
}
.choice input { width: 18px; min-height: 18px; margin-top: 2px; }

.sidebar { display: grid; gap: 12px; position: sticky; top: 92px; }
.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.side-card h3 { margin-bottom: 10px; font-size: 17px; }
.side-card p { margin: 0; color: var(--muted); }
.side-card a { color: var(--green-dark); font-weight: 720; }

.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--copper);
  background: #fff8eb;
  color: #6e542f;
}

.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 6px; }
.form-status.show { display: block; }
.form-status.success { background: #e4f1e7; color: var(--green-dark); }
.form-status.error { background: #f8e7e3; color: var(--danger); }

.faq { display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
summary { padding: 17px 19px; cursor: pointer; font-weight: 760; }
details p { margin: 0; padding: 0 19px 18px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact-card {
  min-height: 140px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
}
.contact-card span { display: block; color: #aebdca; font-size: 12px; }
.contact-card strong, .contact-card a { display: block; margin-top: 10px; color: #fff; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }

.site-footer { padding: 30px 0; background: #0b1016; color: #aebdca; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, .7fr); gap: 28px; }
.footer-grid strong { display: block; margin-bottom: 9px; color: #fff; }
.footer-grid a { display: block; margin: 6px 0; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }

.mobile-contact {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  min-height: 46px;
  padding: 0 16px;
  align-items: center;
  border-radius: 6px;
  background: #229ed9;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.hidden-honey { display: none !important; }

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

.tool-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tool-panel h3 { margin-bottom: 10px; font-size: 18px; }
.tool-panel p { margin: 0; color: var(--muted); }

.risk-list { display: grid; gap: 9px; margin-top: 14px; }
.risk-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.risk-badge {
  display: inline-flex;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.risk-badge.good { background: #e3f1e7; color: var(--green-dark); }
.risk-badge.watch { background: #fff0d4; color: #79520c; }
.risk-badge.risk { background: #f7e2dd; color: var(--danger); }
.risk-item strong { display: block; margin-bottom: 2px; }
.risk-item span { color: var(--muted); font-size: 13px; }

.comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.comparison-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}
.comparison-item.best { border-color: #8fb8a4; background: #eaf3ed; }
.comparison-item strong { display: block; font-size: 17px; }
.comparison-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.wizard-option {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.wizard-option:hover, .wizard-option.selected { border-color: var(--green); background: var(--green-soft); }
.wizard-option strong { display: block; }
.wizard-option span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe6e3;
}
.progress span { display: block; height: 100%; background: var(--green); transition: width .2s ease; }

.report-sheet {
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.report-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.report-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); }
.report-meta div { padding: 12px; background: #fff; }
.report-meta span { display: block; color: var(--muted); font-size: 11px; }
.report-meta strong { display: block; margin-top: 4px; }
.report-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-top: 40px; }
.signature { padding-top: 28px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 12px; }

.scenario-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.scenario-band:last-child { border-bottom: 0; }
.scenario-number { color: var(--copper); font-size: 36px; font-weight: 850; }
.scenario-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 15px; }
.scenario-data div { padding: 11px; background: #f2f5f4; }
.scenario-data span { display: block; color: var(--muted); font-size: 11px; }
.scenario-data strong { display: block; margin-top: 3px; }
.print-report-host { display: none; }

@media print {
  .site-header, .site-footer, .mobile-contact, .no-print { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .report-sheet { border: 0; box-shadow: none; padding: 0; }
  body.printing-report main { display: none !important; }
  body.printing-report .print-report-host { display: block !important; padding: 0; }
}

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .cards, .steps, .metrics, .contact-grid, .comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .split, .rfq-layout, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 680px) {
  .site-header .shell { min-height: 64px; }
  .brand { min-width: 0; }
  .brand-copy span { display: none; }
  .header-actions .btn.secondary { display: none; }
  .page-hero { padding: 50px 0 42px; }
  .section { padding: 52px 0; }
  .cards, .steps, .metrics, .contact-grid, .form-grid, .tool-grid, .wizard-options, .comparison, .scenario-data { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-panel { padding: 17px; }
  .footer-bottom { flex-direction: column; }
  .mobile-contact { display: inline-flex; }
  .risk-item, .scenario-band { grid-template-columns: 1fr; }
  .report-meta, .report-sign { grid-template-columns: 1fr; }
  .viewer-head { align-items: flex-start; flex-direction: column; }
  .viewer-stage { height: 390px; }
  .viewer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-stats div { border-bottom: 1px solid #304047; }
  .viewer-controls { grid-template-columns: 1fr; }
  .viewer-control-group.compact { grid-template-columns: 1fr; }
  .viewer-control-group.compact label { grid-column: auto; }
  .viewer-hint { display: none; }
  .plate-custom, .mesh-report-grid { grid-template-columns: 1fr; }
}

.project-file-list { display: grid; gap: 7px; margin-top: 10px; }
.project-file-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
.project-file-row > div { min-width: 0; }
.project-file-row strong, .project-file-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-row span { color: var(--muted); font-size: 12px; }
.project-file-row label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.project-file-row input { width: 100%; min-height: 38px; }
.project-submit textarea { width: 100%; resize: vertical; }
.privacy-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; color: var(--muted); font-size: 13px; }
.privacy-confirm input { flex: 0 0 auto; margin-top: 3px; }
.website-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 680px) {
  .project-file-row { grid-template-columns: 1fr; }
}
