@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: dark;
  --ink: #0b0a09;
  --navy: #150f0d;
  --panel: #1c1513;
  --panel-2: #241915;
  --line: #e7ac8338;
  --glass: #1e1512e8;
  --cyan: #e7ac83;
  --cyan-deep: #c98762;
  --mint: #f6ceac;
  --violet: #dfaa9c;
  --paper: #f6eee4;
  --mist: #c9c0b7;
  --faint: #b5a396;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --grad-panel: linear-gradient(150deg,#261915,#17110f);
  --glow-cyan: 0 0 0 1px #e7ac8338, 0 12px 36px #0006;
  --fs-h2: clamp(2.8rem, 6vw, 6rem);
  --fs-h1: clamp(4rem, 9vw, 9rem);
}
body { background: var(--ink); }
.tools-page :is(.btn-primary,.btn-violet):hover { box-shadow: 0 12px 32px #e7ac8350; }
.tools-page section[id] { scroll-margin-top: 5rem; }
.tools-page :is(h1,h2,h3) { font-weight: 400; }
.tools-page :is(h1,h2) { letter-spacing: -.05em; line-height: .95; }
.tools-page h3 { font-size: clamp(1.65rem, 2.4vw, 2.55rem); }
.subhead {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.15rem; flex-wrap: wrap;
  min-height: 4.7rem; padding: .8rem clamp(1.2rem,6vw,7rem);
  background: #0b0a09f5; border-bottom: 1px solid var(--line);
}
.subhead nav, .subfooter nav { display: flex; gap: clamp(.6rem,2vw,2rem); flex-wrap: wrap; }
.subhead a, .subfooter a { font-size: .86rem; }
a.subbrand { display: inline-flex; gap: .45rem; align-items: center; white-space: nowrap; font: 700 1.2rem/1 var(--font-body); letter-spacing: -.055em; }
.subbrand img { filter: grayscale(1) sepia(.55); }
.subbrand b, .subhead a:hover, .subfooter a:hover { color: var(--cyan); }
.subfooter { border-top: 1px solid var(--line); padding: 1.5rem clamp(1.2rem,6vw,7rem); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tools-intro { padding: clamp(4rem,10vw,9rem) 0; background: radial-gradient(ellipse at 80% 15%,#462619,#140e0c 58%,#0b0a09); }
.tools-intro em, .policy-page em { color: var(--cyan); font-weight: 400; }
.tools-intro .lead { max-width: 42ch; }
.tools-shortcuts { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
:is(.scanner,.pcb,.blueprint) .section-head {
  min-height: clamp(17rem, 31vw, 31rem);
  padding: clamp(1.25rem,4vw,3.5rem);
  display: grid; align-content: end; text-align: left;
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: linear-gradient(90deg,#130c07f5 4%,#130c07ce 50%,#130c0755),var(--editorial-image) center 46% / cover;
  color: var(--paper);
}
.scanner .section-head { --editorial-image: url("../assets/images/support-editorial.webp"); }
.pcb .section-head { --editorial-image: url("../assets/images/pc-editorial.webp"); }
.blueprint .section-head { --editorial-image: url("../assets/images/automation-editorial.webp"); }
:is(.scanner,.pcb,.blueprint) .section-head :is(.lead,.eyebrow) { color: #f7d9bf; }
:is(.scanner,.pcb,.blueprint) .section-head .lead { margin-inline: 0; }
.policy-page { min-height: 68vh; padding-block: clamp(4rem,8vw,8rem); max-width: 50rem; }
.policy-page h1 { font: 400 clamp(3.75rem,8vw,7rem)/.95 var(--font-display); color: var(--cyan); }
.policy-page h2 { font: 400 clamp(1.8rem,4vw,2.8rem)/1 var(--font-display); margin-top: 1.6em; }
.policy-page p { color: var(--mist); }
.policy-page a { color: var(--cyan); text-decoration: underline; }
@media(max-width: 760px) {
  .subhead nav { order: 3; width: 100%; justify-content: space-between; gap: .4rem; }
  .subhead nav a { font-size: clamp(.68rem,2.5vw,.86rem); }
  .tools-page section[id] { scroll-margin-top: 7rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.subfooter a, .policy-page a { overflow-wrap: anywhere; }
.subfooter nav { min-width: 0; }
.policy-page h1 { font-size: clamp(2.65rem, 8vw, 7rem); overflow-wrap: anywhere; }
