:root {
  color-scheme: dark;
  --page: #0b111b;
  --panel: #141d2b;
  --surface: #0e1623;
  --line: #2b394b;
  --ink: #f0f5fb;
  --muted: #a6b6c9;
  --accent: #5cebd2;
  --material: #5cebd2;
  --electricity: #6ba5ff;
  --machine: #9f8cff;
  --labor: #edb578;
  --failure: #ef89a5;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 5; padding: 12px; background: var(--page); }
.skip:focus { top: 12px; }
.topbar { border-bottom: 1px solid #243042; background: #0e1622; position: relative; z-index: 2; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 0; align-items: center; font-size: 1.48rem; font-weight: 760; letter-spacing: -.065em; }
.brand > span:last-child { color: var(--accent); }
.brand-icon { width: 28px; height: 26px; margin-right: 11px; display: inline-grid; place-items: center; position: relative; }
.brand-icon i { width: 17px; height: 17px; border: 1.5px solid var(--accent); transform: rotate(45deg) skew(-7deg, -7deg) scaleY(.78); position: absolute; top: 2px; border-radius: 3px; }
.brand-icon i:nth-child(1) { top: 9px; opacity: .45; }
.brand-icon i:nth-child(2) { top: 5px; opacity: .7; }
.brand-icon i:nth-child(3) { background: #123238; }
nav { display: flex; align-items: center; gap: 5px; font-size: .91rem; color: var(--muted); font-weight: 600; }
nav a { border-radius: 7px; padding: 9px 13px; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
nav .nav-active { color: var(--accent); background: #18313a; }
.hero { position: relative; overflow: hidden; background: #0f1a2a; border-bottom: 1px solid #253448; }
.hero-inner { min-height: 316px; position: relative; display: flex; align-items: center; isolation: isolate; }
.hero-art {
  position: absolute;
  inset: 0 -2px 0 39%;
  z-index: -1;
  background: #0f1a2a url("./printing.webp") center 59% / cover no-repeat;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f1a2a, #0f1a2a00 33%), linear-gradient(0deg, #0f1a2a75, transparent 27%);
}
.hero-content { padding-block: 41px 48px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font: 650 .75rem/1.3 ui-monospace, monospace; letter-spacing: .13em; margin-bottom: 19px; }
.eyebrow span { width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: .99; letter-spacing: -.064em; font-weight: 780; }
h1 span { color: var(--accent); }
.hero-description { margin-top: 21px; color: #c2d0e0; font-size: 1.08rem; line-height: 1.55; max-width: 420px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 22px; padding-block: 30px 36px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; box-shadow: 0 14px 34px #03070e35; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 1.43rem; letter-spacing: -.033em; line-height: 1.15; }
.panel-heading p { color: var(--muted); margin-top: 7px; font-size: .91rem; }
.button { border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 13px; font-size: .89rem; font-weight: 680; }
.subtle { color: #d7e3f2; border-color: #3b4a5e; background: #1b2737; white-space: nowrap; }
.subtle:hover { background: #253447; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 0 0 24px; }
legend { display: flex; gap: 9px; align-items: center; padding: 0; margin-bottom: 12px; font-weight: 670; font-size: 1rem; }
.legend-icon { display: inline-block; width: 15px; height: 15px; color: var(--accent); position: relative; vertical-align: middle; }
.filament-icon { border: 1.5px solid; border-radius: 50%; }
.filament-icon::after { content: ''; position: absolute; inset: 3px; border: 1px solid; border-radius: 50%; }
.time-icon { border: 1.5px solid; border-radius: 50%; }
.time-icon::after { content: ''; position: absolute; left: 5px; bottom: 5px; width: 4px; height: 4px; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.price-icon { border: 1.5px solid; border-radius: 3px 5px 5px 3px; }
.price-icon::after { content: ''; position: absolute; inset: 4px auto auto 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fields label { display: block; min-width: 0; font-weight: 570; font-size: .875rem; color: #ced9e7; }
.optional { font-size: .75rem; color: var(--muted); font-weight: 420; }
.input-wrap { margin-top: 7px; display: flex; align-items: center; background: var(--surface); border: 1px solid #36445a; border-radius: 7px; min-height: 44px; color: var(--muted); }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #5cebd226; }
.input-wrap:has(input:user-invalid) { border-color: #ff9f9f; }
.input-wrap input { color: var(--ink); appearance: textfield; flex: 1; background: transparent; border: 0; outline: none; min-width: 0; width: 100%; padding: 10px; font-size: 1rem; font-weight: 580; }
.input-wrap input::-webkit-inner-spin-button, .input-wrap input::-webkit-outer-spin-button { appearance: none; }
.input-wrap input::placeholder { font-size: .8rem; color: #94a6bb; font-weight: 400; }
.input-wrap > span { font: 500 .78rem/1 ui-monospace, monospace; padding-right: 10px; white-space: nowrap; }
.advanced { border-block: 1px solid var(--line); margin-bottom: 22px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); }
.advanced summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 610; color: #c4d2e3; }
.advanced .fields { margin-bottom: 18px; }
.pricing-fields { margin-bottom: 0; }
.input-error { margin-top: 14px; color: #ffb0ae; font-size: .88rem; }
.currency { font: 650 .76rem/1 ui-monospace, monospace; letter-spacing: .08em; border: 1px solid #3a4d62; border-radius: 6px; padding: 7px 8px; color: #b6c6d7; }
.estimate .panel-heading { margin-bottom: 16px; }
.quote-total { padding: 15px 17px; background: #102b33; border: 1px solid #23505a; border-radius: 10px; }
.quote-total p { font-size: .875rem; font-weight: 600; color: #b5e8e2; }
.quote-total output { color: var(--accent); font-size: clamp(1.8rem, 3.9vw, 3.15rem); line-height: 1.13; font-weight: 760; letter-spacing: -.058em; display: block; font-variant-numeric: tabular-nums; margin-block: 4px; overflow-wrap: anywhere; }
.quote-total .quote-subtitle { color: #b2cbd3; font-size: .84rem; font-weight: 470; }
.breakdown-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-block: 17px 10px; }
.breakdown-heading h3 { font-size: .94rem; }
.breakdown-heading span { font-size: .8rem; color: var(--muted); }
.cost-bar { display: flex; height: 6px; overflow: hidden; border-radius: 5px; margin-bottom: 11px; background: var(--line); }
.cost-bar i { flex: 0 0 0; }
.breakdown > div, .totals > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .88rem; line-height: 1.45; padding-block: 3px; }
.breakdown dt { color: #c1cfdf; }
.breakdown i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; background: var(--material); }
.cost-bar i:nth-child(1) { background: var(--material); }
.cost-bar i:nth-child(2), .breakdown > div:nth-child(2) i { background: var(--electricity); }
.cost-bar i:nth-child(3), .breakdown > div:nth-child(3) i { background: var(--machine); }
.cost-bar i:nth-child(4), .breakdown > div:nth-child(4) i { background: var(--labor); }
.cost-bar i:nth-child(5), .breakdown > div:nth-child(5) i { background: var(--failure); }
dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.totals { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 9px; font-weight: 620; }
.totals > div:last-child dd { color: var(--accent); }
.primary { background: var(--accent); color: #082320; }
.primary:hover:not(:disabled) { background: #8ff4e1; }
.print-button { width: 100%; margin-top: 15px; min-height: 42px; }
.print-icon { width: 14px; height: 10px; display: inline-block; border: 1.5px solid; border-radius: 2px; position: relative; }
.print-icon::before, .print-icon::after { content: ''; position: absolute; width: 8px; height: 5px; left: 2px; border: 1px solid; background: var(--accent); }
.print-icon::before { bottom: 6px; }
.print-icon::after { top: 5px; }
.fine-print { margin-top: 8px; text-align: center; color: var(--muted); font-size: .79rem; }
.guide-shell { border-top: 1px solid var(--line); padding-block: 32px 48px; }
.guide h2 { font-size: 1.63rem; letter-spacing: -.035em; }
.guide h3 { font-size: 1.02rem; margin-bottom: 8px; }
.guide p { color: var(--muted); line-height: 1.6; }
.guide-intro > p { margin-top: 8px; max-width: 690px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 21px 27px; }
.guide-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 0; font-weight: 600; }
.faq details p { margin-bottom: 13px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px 28px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 1.16rem; }
.footer p { color: var(--muted); font-size: .85rem; }
.print-sheet { display: none; }
@media (max-width: 950px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 15px; }
  .panel { padding: 18px; }
  .fields { gap: 10px; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 22px 28px; }
  .hero-inner { min-height: 275px; }
  .hero-art { inset-inline-start: 24%; opacity: .56; }
  .hero-content { padding-block: 38px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 58px; gap: 5px; }
  nav a { padding-inline: 8px; font-size: .84rem; }
  .hero-inner { min-height: 247px; }
  .hero-art { inset-inline-start: 14%; opacity: .42; }
  .hero-description { max-width: 300px; font-size: .98rem; }
  .panel { padding: 15px; }
  .fields, .guide-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .order-fields > :last-child { grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .footer p { text-align: right; }
}
@media (max-width: 340px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .brand-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
@media print {
  @page { margin: 18mm; }
  :root { color-scheme: light; background: white; color: black; }
  body > :not(.print-sheet) { display: none; }
  .print-sheet:not(.quote-invalid) { display: block; color: #17212c; font-size: 11pt; }
  .print-sheet h2 { font-size: 25pt; margin: 9pt 0 11pt; letter-spacing: -.02em; }
  .print-sheet p { margin-block: 7pt; overflow-wrap: anywhere; }
  .print-brand { font-weight: 700; font-size: 13pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin-block: 18pt; }
  .print-sheet th, .print-sheet td { text-align: right; padding: 8pt 4pt; border-bottom: 1px solid #777; }
  .print-sheet th:first-child, .print-sheet td:first-child { text-align: left; }
}
