@font-face {
  font-family: Trebuchet;
  src: url("fonts/trebuc.ttf") format("truetype");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Trebuchet;
  src: url("fonts/trebucbd.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f15a22;
  --orange-dark: #d44c1b;
  --ink: #161616;
  --muted: #5c6570;
  --faint: #8b919a;
  --line: #e6e6e6;
  --cream: #fff6ee;
  --card: #ffffff;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(40, 20, 10, 0.06);
  --sans: Trebuchet, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: #1c1916;
  background: #f6f3ee;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  background: rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  flex-wrap: nowrap;
}
.brand { margin-right: auto; flex: 0 0 auto; }
.brand img { display: block; height: auto; width: auto; max-height: 30px; max-width: 100%; object-fit: contain; }
.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-links a,
.header-links button {
  border: 0;
  background: none;
  padding: 0;
  color: #3c3833;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-links a:hover,
.header-links button:hover,
.header-links a[aria-current="page"] { color: var(--orange); }
.header-quote { border-radius: 6px; padding: 11px 16px; flex: 0 0 auto; }
.header-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.text-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  background: #fff;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: none; }
.btn-orange { background: var(--orange); color: #fff; }
a.btn.header-quote {
  border-radius: 0;
  padding: 11px 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  background: #e24e16;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
a.btn.header-quote:hover { background: #c94310; }
a.btn.header-account {
  border-radius: 0;
  padding: 11px 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: #f6f3ee;
  flex: 0 0 auto;
  background: #1c1916;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
a.btn.header-account:hover { color: #fff; background: #322e29; }
a.btn.header-account[data-signed-in] { display: none; }
html.is-signed-in a.btn.header-account[data-signed-out] { display: none; }
html.is-signed-in a.btn.header-account[data-signed-in] { display: inline-flex; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-black { background: #111; color: #fff; }
.btn-black:hover { background: #2a2a2a; }
.btn-outline { border-color: #e4e4e4; background: #fff; color: #222; }
.btn-outline:hover { background: #fafafa; }
.btn-block { width: 100%; margin-top: 12px; }
.btn:focus-visible, .chip:focus-visible, .dropzone:focus-visible, a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 56px 0 48px;
  background: #f4efe8;
}
.hero-copy { animation: rise 0.7s ease both; }
.quote-card { animation: rise 0.75s 0.1s ease both; }
.materials-band {
  background: #eef3f5;
  padding: 26px 0;
}
.material-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  margin: 0;
  padding: 0 24px;
}
.material-line a {
  color: #8d8882;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px;
  line-height: 1;
  transition: color 0.2s ease;
}
.material-line a + a { border-left: 1px solid #d5dde2; }
.material-line a:hover { color: var(--orange); }
.industries { padding: 56px 0; background: #f7f4ef; }
.industries h2,
.why h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.industry-grid article {
  background: #fff;
  border: 1px solid #e6e2db;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease;
}
.industry-grid article.is-in:hover,
.why-grid article.is-in:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(40, 20, 10, 0.08);
}
.industry-grid img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.55s ease; }
.industry-grid article:hover img { transform: scale(1.04); }
.industry-grid h3 { font-size: 18px; margin: 16px 20px 8px; }
.industry-grid p { margin: 0 20px 20px; color: var(--muted); font-size: 14.5px; }
.why { padding: 56px 0 72px; background: #f3f6f4; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid article {
  background: #fff;
  border: 1px solid #e6e2db;
  border-radius: 16px;
  padding: 18px 20px;
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.industry-grid article:nth-child(2),
.why-grid article:nth-child(2) { transition-delay: 0.08s; }
.why-grid article:nth-child(3) { transition-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .quote-card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .industry-grid article.is-in:hover, .why-grid article.is-in:hover, .industry-grid article:hover img { transform: none; }
}
.why-grid h3 { font-size: 16px; margin: 0 0 8px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 540px; }
.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-logo { display: block; width: min(100%, 420px); height: auto; margin: 0 0 22px; }
h1 {
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1 span { color: var(--orange); }
.lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 34ch;
}
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.fine { margin-top: 22px; color: var(--faint); font-size: 13.5px; }

.quote-card {
  background: #fff4ec;
  border: 1px solid #f15a22;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #f15a22, 0 0 22px rgba(241, 90, 34, 0.28);
  padding: 24px;
}
.quote-card h2 { font-size: 16px; font-weight: 700; }
.quote-lead { color: var(--muted); font-size: 14px; margin: 8px 0 16px; line-height: 1.45; }
.dropzone {
  border: 1.5px dashed #d5d5d5;
  border-radius: 12px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: var(--muted);
  background: #fff;
  padding: 24px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
#dropzone { cursor: pointer; }
#dropzone:hover,
#dropzone.is-hot,
#dropzone.is-over {
  border: 2px solid #f15a22;
  background: #fff1e8;
  box-shadow: 0 0 0 4px rgba(241, 90, 34, 0.22);
}
#dropzone:hover .drop-title,
#dropzone.is-hot .drop-title,
#dropzone.is-over .drop-title { color: #f15a22; }
.drop-title { color: var(--ink); font-weight: 750; font-size: 16px; }
.drop-formats { font-size: 13px; color: var(--faint); }
.linkish {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0 0;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 14px;
}
#quote-config { display: none; }
#quote-config.is-on { display: block; }
#quote-empty.is-hidden { display: none; }

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.file-name { font-weight: 700; word-break: break-word; }
.file-meta, .hint { color: var(--faint); font-size: 13px; }
.field, .dims label, .field-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
input[type="number"], input[type="email"], input[type="text"], input[type="password"], input[type="search"], input[type="tel"], select {
  width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 500;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field-row label { margin-top: 0; }
.solidity input[type="range"] { width: 100%; padding: 0; }
.segment {
  display: flex;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.segment button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: #444;
  white-space: nowrap;
}
.segment button[aria-pressed="true"] { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#part-fill { position: relative; overflow: visible; }
#part-fill button { position: relative; padding: 8px 6px; font-size: 11.5px; }
#part-fill button[data-tip]:not([data-tip=""]):hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}
.units, #fill-toggle { margin-top: 4px; }
fieldset { margin-top: 14px; }
.mesh-readout dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.mesh-readout dt { font-size: 12px; color: var(--faint); }
.mesh-readout dd { margin: 0; font-weight: 650; font-size: 14px; }
.result {
  margin-top: 16px;
  background: var(--cream);
  border-radius: 12px;
  padding: 16px;
}
.result-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0; }
.result-detail { font-weight: 650; }
.result-meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.form-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }

.materials { padding: 24px 0 88px; border-top: 1px solid #f2f2f2; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.materials-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.materials-toolbar input { width: min(280px, 100%); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 650;
  font-size: 13px;
}
.chip.is-on { background: #111; color: #fff; border-color: #111; }
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.material-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.material-card.is-selected { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.material-card h3 { font-size: 18px; letter-spacing: -0.02em; }
.polymer { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.blurb { color: var(--muted); font-size: 14px; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.stats span { display: block; color: var(--faint); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.stats strong { font-size: 14px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--cream); color: #9a4a22; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650; }
.note { font-size: 13px; color: var(--muted); }
.material-card .btn { margin-top: 6px; }
.empty-note { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 28px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare caption { text-align: left; color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.compare th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.compare tr.is-hidden { display: none; }

main { flex: 1; }
main:has(.hero) { display: flex; flex-direction: column; }
.site-footer {
  margin-top: auto;
  background: #f3efe8;
  border-top: 1px solid rgba(28, 25, 22, 0.08);
  padding: 44px 0 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  align-items: start;
  column-gap: 48px;
}
.footer-logo { display: block; height: auto; width: auto; max-height: 28px; max-width: 100%; object-fit: contain; margin: 0 0 6px; }
.footer-brand p { margin: 0; }
.footer-brand a { color: #1c1916; font-weight: 650; text-decoration: none; }
.footer-brand a:hover { color: var(--orange); }
.footer-inner p { color: #6b645c; font-size: 14px; line-height: 1.45; }
.footer-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8176;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-nav a { color: #1c1916; font-size: 14px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--orange); }
.usa { height: 56px; width: auto; }
.view-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.view-spin {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(82, 82, 91, 0.18);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: view-spin-rotate 0.7s linear infinite;
}
@keyframes view-spin-rotate { to { transform: rotate(360deg); } }

dialog {
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 20px;
  width: min(440px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(20, 12, 8, 0.35); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-x { border: 0; background: none; font-size: 24px; line-height: 1; padding: 0 4px; }
.quote-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.quote-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.quote-list strong { display: block; }
.quote-list span { color: var(--muted); font-size: 13px; }

.quote-body { min-height: 100vh; background: #fafafa; color: #18181b; }
.quote-body.has-part .jm-page { padding: 28px 16px 28px; }
.quote-body.has-part .jm-card { padding: 12px; }
.quote-body.has-part .opt-bar { min-height: 44px; padding: 8px 12px; }
.jm-page { padding: 24px 16px 48px; }
.jm-shell { width: min(1120px, 100%); margin: 0 auto; }
.jm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: stretch; }
.jm-left { display: flex; flex-direction: column; min-height: 0; }
.jm-viewer { flex: 0 0 auto; align-self: stretch; width: 100%; overflow: hidden; min-height: 0; display: flex; flex-direction: column; border-color: #e24e16; box-shadow: 0 18px 40px rgba(226, 78, 22, 0.08); background: #fff1e6; }
.jm-viewer .stage { flex: 1; height: auto; min-height: 0; }
.jm-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.jm-card { background: #fff; border: 1px solid #e4e4e7; border-radius: 16px; padding: 16px; }
.jm-card.jm-viewer { background: #fff4ec; }
.jm-title { font-size: 14px; font-weight: 700; }
.jm-sub { margin-top: 4px; font-size: 12px; color: #52525b; }
.jm-upload { margin-top: 16px; background: #fafafa; border: 1px solid #e4e4e7; border-radius: 12px; padding: 16px; }
.jm-drop {
  margin-top: 12px;
  min-height: 96px;
  border: 2px dashed #e4e4e7;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.jm-drop:hover, .jm-drop.is-over { border-color: #18181b; background: #fafafa; }
.jm-drop-title { font-size: 14px; font-weight: 700; }
.jm-viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jm-viewer-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.part-switch { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; font-weight: 700; }
.part-switch select {
  height: 44px;
  max-width: 220px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-weight: 600;
}
.jm-viewer-actions .part-remove {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  font-size: 15px;
  font-weight: 700;
}
.jm-viewer .stage { flex: 1; height: auto; min-height: 0; margin-top: 12px; border: 1px solid #e4e4e7; border-radius: 12px; overflow: hidden; }
.jm-add {
  margin: 0;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #18181b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.jm-add:hover { background: #27272a; }
.jm-field-wide { grid-column: 1 / -1; }
#certs-card { border-color: #eab308; box-shadow: 0 0 0 1px #eab308, 0 0 22px rgba(234, 179, 8, 0.45); background: #fffbeb; }
.order-certs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.jm-price-label { margin: 12px 0 0; font-size: 12px; font-weight: 700; color: #71717a; letter-spacing: 0.04em; text-transform: uppercase; }
.jm-part-price { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.jm-side .jm-total { margin-top: 2px; margin-bottom: 4px; }
.jm-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.jm-each { margin: 8px 0 4px; font-size: 16px; font-weight: 700; color: #52525b; }
.jm-parts { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4e4e7; }
.jm-save-row { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.jm-save-row #price-saved { font-size: 13px; font-weight: 700; color: #0f7a3a; }
.jm-save-row #price-original { font-size: 13px; font-weight: 700; color: #71717a; text-decoration: line-through; }
.jm-part { margin-top: 10px; font-size: 14px; font-weight: 700; }
.part-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#parts-card { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb, 0 0 22px rgba(37, 99, 235, 0.28); background: #f3f7ff; }
#result { border-color: #0f7a3a; box-shadow: 0 0 0 1px #0f7a3a, 0 0 22px rgba(15, 122, 58, 0.28); background: #f3faf5; }
.part-pick { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.part-pick label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.part-pick select { height: 36px; width: 100%; border: 1px solid #2563eb; border-radius: 8px; padding: 0 8px; font-weight: 500; background: #fff; }
.picker-trigger {
  height: 36px;
  width: 100%;
  text-align: left;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  padding: 0 10px;
}
#picker-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
#picker-dialog[open] { display: flex; flex-direction: column; }
#compliance-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
#compliance-dialog[open] { display: flex; flex-direction: column; }
#compliance-dialog::backdrop, #picker-dialog::backdrop { background: rgba(20, 12, 8, 0.45); }
.compliance-body { overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.compliance-file { margin: 0; font-weight: 700; }
.compliance-body h3 { margin: 0; font-size: 18px; }
.compliance-body p { margin: 0; color: #3f3f46; font-size: 14px; line-height: 1.45; }
.compliance-body a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
#compliance-dialog .picker-head h2 { font-size: 20px; line-height: 1.3; }
.compliance-options { display: flex; flex-direction: column; gap: 10px; }
.compliance-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #18181b;
}
.compliance-option::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #a1a1aa;
  border-radius: 50%;
  background: #fff;
}
.compliance-option[aria-pressed="true"] {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}
.compliance-option[aria-pressed="true"]::before {
  border-color: #2563eb;
  box-shadow: inset 0 0 0 4px #2563eb;
}
#compliance-dialog .picker-foot .btn-outline { min-width: 96px; }
.picker-head, .picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.picker-head { border-bottom: 1px solid #e4e4e7; }
.picker-head h2 { font-size: 18px; }
.picker-foot { justify-content: flex-end; border-top: 1px solid #e4e4e7; }
.picker-foot .jm-continue { width: auto; min-width: 120px; margin: 0; }
.picker-list { overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 18px; }
.picker-section { display: flex; flex-direction: column; gap: 16px; }
.picker-band { display: flex; flex-direction: column; gap: 8px; }
.picker-use { margin: 0; font-size: 13px; font-weight: 700; color: #18181b; }
.picker-grid, .picker-list:not(.is-materials) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) {
  .picker-grid, .picker-list:not(.is-materials) { grid-template-columns: 1fr 1fr; }
}
.picker-group { margin: 0; font-size: 13px; font-weight: 700; color: #3f3f46; letter-spacing: 0.04em; text-transform: uppercase; }
.picker-choice {
  text-align: left;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font-weight: 700;
}
.picker-choice.is-selected { border-color: #f15a22; background: #fff1e8; box-shadow: 0 0 0 1px #f15a22; }
.part-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.part-options label, .part-options .wide, .part-options .part-infill { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.field-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }
.field-head a, .infill-note a { color: var(--orange); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.part-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.infill-note { margin: 0; font-size: 12px; font-weight: 650; color: #52525b; }
.opt-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.opt-bar .segment { margin-left: auto; flex: 1; }
.opt-bar label { display: flex; align-items: center; gap: 14px; flex: 1; margin: 0; cursor: pointer; }
.info-tip {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 1px solid #2563eb;
  border-radius: 50%;
  background: #fff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  position: relative;
  flex: none;
}
.info-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 240px;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 4;
  pointer-events: none;
}
.part-row {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}
.part-row.is-active { border-color: #f15a22; background: #fff1e8; }
.part-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.part-row small { font-weight: 700; color: #3f3f46; flex: none; }
.part-remove {
  border: 0;
  background: none;
  color: #71717a;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
}
.jm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.jm-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.jm-field select, .jm-field input {
  height: 40px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 500;
  background: #fff;
}
.jm-field .segment { margin-top: 0; }
.jm-total { margin-top: 16px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.jm-continue {
  margin-top: 16px;
  height: 44px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #18181b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.jm-continue:hover { background: #27272a; }
.jm-textbtn {
  margin-top: 10px;
  border: 0;
  background: none;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-panel .price { font-size: 56px; line-height: 1; }
.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  height: calc(100vh - 74px);
}
.stage { position: relative; background: linear-gradient(180deg, #f7f4f0 0%, #e7e2db 100%); min-height: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(236, 234, 230, 0.92);
}
.stage-empty.is-hidden { display: none; }
.stage-loading {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
  text-align: center;
}
.stage:has(.stage-empty:not(.is-hidden)) .stage-note { display: none; }
.stage-empty .dropzone { width: min(460px, 100%); background: #fff; }
.stage-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  color: #5c6570;
  font-size: 13px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 6px 10px;
}
.quote-panel {
  background: #fff;
  border-left: 1px solid #eee;
  overflow: auto;
  padding: 28px 24px 36px;
}
.quote-panel h1 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; word-break: break-word; }
.quote-panel .price { font-size: 56px; line-height: 1; }
.quote-panel .result { margin-top: 22px; padding: 20px; }
.analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 16px 0 0;
}
.analysis dt { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.analysis dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.analysis .wide { grid-column: 1 / -1; }

.info-page { padding: 36px 0 64px; }
.info-page h1 { margin: 8px 0 12px; font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; }
.info-page h2 { margin: 36px 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.info-page h3 { margin: 0 0 6px; font-size: 16px; }
.info-page .wrap > h3 { margin: 28px 0 0; font-size: 18px; }
.info-page p, .info-page li { color: #3f3f46; font-size: 15px; line-height: 1.5; }
.info-lead { margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.info-grid.infill-row { grid-template-columns: repeat(4, 1fr); }
.infill-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.infill-head .info-kicker { margin: 0; }
.infill-swatch { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; object-fit: contain; }
.info-card, .info-block {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 16px 18px;
}
.info-card p, .info-block p { margin: 0; }
.info-card p + p { margin-top: 8px; }
.info-page .info-card a { color: var(--orange); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.guide-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.guide-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 8px 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 16px 22px;
}
.guide-card img { width: 100%; height: auto; display: block; }
.guide-card h3 { margin: 0 0 8px; }
.guide-card p { margin: 0; }
.guide-card p + p { margin-top: 8px; }
.info-refs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; font-weight: 650; }
.info-refs a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.info-kicker { margin: 0 0 6px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.info-block { margin-top: 14px; }
.info-page .table-wrap { margin-top: 14px; }
.info-page .compare { background: #fff; border-radius: 16px; }
.info-page .compare th, .info-page .compare td { white-space: normal; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 40px 0 40px; }
  .hero { padding: 40px 0; }
  .material-line { padding: 0 12px; }
  .industries { padding: 32px 0 0; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-grid img { height: 200px; }
  .why { padding: 40px 0 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .material-line a { padding: 0 12px; letter-spacing: 0.08em; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .lede { max-width: none; }
  .header-inner { flex-wrap: wrap; gap: 14px 18px; min-height: 56px; padding: 12px 0; }
  .header-links { gap: 16px; flex-wrap: wrap; }
  .field-row.three { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; justify-content: space-evenly; gap: 28px 48px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); align-items: start; gap: 28px 48px; }
  .viewer-layout { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; }
  .jm-grid { grid-template-columns: 1fr; }
  .jm-side { position: static; }
  .jm-fields { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid.infill-row { grid-template-columns: repeat(4, 1fr); }
  .guide-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(1160px, calc(100% - 28px)); }
  .header-inner { flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 0; padding: 10px 0 6px; }
  .brand { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 108px); margin-right: 0; }
  .brand img { max-height: 30px; }
  .header-account { order: 2; margin-left: auto; padding: 10px 12px; }
  .header-quote { order: 3; flex: 1 0 100%; padding: 12px 14px; }
  .header-links {
    order: 4;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-links::-webkit-scrollbar { display: none; }
  .header-links a, .header-links button { padding: 10px 4px; font-size: 12px; letter-spacing: 0.04em; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-links { grid-template-columns: 1fr 1fr; width: 100%; column-gap: 16px; }
  input, select, textarea { font-size: 16px; }
  .jm-viewer .stage { min-height: 280px; height: min(46vh, 420px); }
  .jm-viewer-head { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .jm-viewer-actions { flex: 1 1 auto; }
  .jm-add { min-height: 44px; }
  .opt-bar { flex-wrap: wrap; height: auto; align-items: stretch; gap: 8px; }
  .opt-bar label { flex: 1 1 100%; }
  .opt-bar .segment { margin-left: 0; flex: 1 1 100%; }
  .part-options { grid-template-columns: 1fr; }
  #picker-dialog, #compliance-dialog, #auth-dialog, #shipping-dialog, #order-dialog {
    width: min(760px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
  }
}
html { scroll-padding-top: 84px; }
.info-card:target { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }

:is(#picker-dialog, #compliance-dialog, #auth-dialog, #account-dialog, #order-dialog, #shipping-dialog) {
  border-radius: 0;
  border-top: 3px solid var(--orange);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
dialog :is(.picker-head, .dialog-head) h2 { text-transform: uppercase; letter-spacing: 0.02em; }
dialog :is(.btn, input, select, .compliance-option, .quote-list li) { border-radius: 0; }
dialog .jm-continue {
  border-radius: 0;
  background: #1c1916;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
dialog .jm-continue:hover { background: #322e29; }
dialog .btn-orange {
  background: #e24e16;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
dialog .btn-orange:hover { background: #c94310; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; font-size: 11px; line-height: 1.4; }
.secure-note svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: #0f7a3a; stroke-width: 1.6; stroke-linejoin: round; }

.secure-note a { color: #0f7a3a; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.secure-note a:hover { text-decoration: underline; text-underline-offset: 2px; }

.order-progress { display: block; width: 100%; height: 8px; margin: 14px 0 4px; accent-color: var(--orange); }
#order-dialog { width: min(460px, calc(100% - 32px)); }

#shipping-dialog { width: min(560px, calc(100% - 32px)); }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ship-grid .field { margin-top: 12px; }
.ship-grid .ship-wide { grid-column: 1 / -1; }
.ship-grid textarea { width: 100%; font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid #d5cdc2; border-radius: 0; resize: vertical; }
#shipping-dialog .btn-block { margin-top: 18px; }
@media (max-width: 560px) { .ship-grid { grid-template-columns: 1fr; } }
