@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunito-sans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunito-sans-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PrintPrice3D: slicer-app vernacular. Cool grey #F4F6F8, ink #1D2433, PETG teal #0F9D9A, filament colors for layers.
   One memorable element: the cost drawn as a stack of printed layers. */
:root {
  --bg: #F4F6F8; --surface: #FFFFFF; --ink: #1D2433; --muted: #5A6375; --line: #DCE1E7;
  --accent: #0B7471; --accent-ink: #FFFFFF;
  --l1: #0F9D9A; --l2: #F2A33A; --l3: #5B6CF0; --l4: #E2557A; --l5: #8BC34A; --l6: #9AA3B2;
  --font-display: 'Chakra Petch', system-ui, sans-serif; --font-body: 'Nunito Sans', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #161A22; --surface: #1E232D; --ink: #E7EAF0; --muted: #A2AABA; --line: #2E3543; --accent: #3CC9C5; --accent-ink: #0B1A1A; }
}
body { background: var(--bg); color: var(--ink); }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.logo b { color: var(--accent); }
nav.top a[aria-current="page"] { color: var(--accent); font-weight: 700; }
h1, h2 { font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.02; }
h2 { font-size: 27px; margin-top: 44px; }
.tool h2.sub, .tool h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--muted); margin: 22px 0 8px; }
.lede { color: var(--muted); max-width: 60ch; }
a { color: var(--accent); }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.tool select, .tool input, .tool textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.stat { background: transparent; padding: 0; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.stat.hero { background: transparent; color: var(--ink); }
.stat.hero .v { color: var(--accent); font-size: 46px; }
.stat.hero .k { color: var(--muted); opacity: 1; }
/* The layer stack */
.layers { display: grid; gap: 3px; margin: 14px 0 6px; max-width: 560px; }
.layer { display: flex; align-items: center; gap: 12px; min-height: 18px; }
.layer-bar { flex: none; max-width: 62%; }
.layer-bar { height: 100%; min-height: 18px; border-radius: 3px; background: var(--c); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 5px); }
.layer-k { font-size: 14px; color: var(--muted); white-space: nowrap; }
.layer-k b { color: var(--ink); font-weight: 700; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; }
table.gcode td { font-size: 14px; }
details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }

@media (max-width: 560px) {
  table.temps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table.temps, table.temps tbody, table.temps tr, table.temps td { display: block; width: auto; }
  table.temps tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.temps td { border: 0; padding: 2px 0; }
  table.temps td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}

/* Voice: stacked layer lines down the side, like the print itself. */
.hello { border-left: 0; padding-left: 18px; background: repeating-linear-gradient(to bottom, var(--accent) 0 3px, transparent 3px 6px) left / 6px 100% no-repeat; }

/* G-code viewer */
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drop p { margin: 0; }
.drop.over { border-color: var(--accent); background: rgba(11, 116, 113, .06); }
.drop input[type=file] { width: auto; border: 0; padding: 0; background: none; }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface, #fff); }
.v-grid figcaption { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.v-grid canvas { width: 100%; aspect-ratio: 1 / 1; display: block; }
.v-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.v-controls input[type=range] { flex: 1; }
.gfill input[type=file] { width: auto; border: 0; padding: 0; background: none; font-size: 13px; }
@media (max-width: 720px) { .v-grid { grid-template-columns: 1fr; } }
.viewer input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; }
.viewer input[type=range] { border: 0; padding: 0; min-height: 0; height: 28px; background: none; box-shadow: none; }
.viewer .check { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
