/* style.css */
:root {
  color-scheme: dark;
  --bg: #0d121a;
  --bg-soft: #151d28;
  --panel: #18222f;
  --panel-bright: #202d3c;
  --panel-hover: #223143;
  --text: #eff5f7;
  --muted: #9caebe;
  --line: #2b3a4a;
  --line-bright: #3b5065;
  --accent: #92e8a2;
  --accent-ink: #102416;
  --blue: #75ccff;
  --blue-soft: rgba(117, 204, 255, .13);
  --gold: #ffdb76;
  --shadow: 0 22px 55px rgba(0, 0, 0, .25);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, .16);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f8;
  --bg-soft: #e9f0f3;
  --panel: #ffffff;
  --panel-bright: #f7fbfc;
  --panel-hover: #f2f8fa;
  --text: #16212b;
  --muted: #627283;
  --line: #d6e1e6;
  --line-bright: #b7cbd5;
  --accent: #42ad61;
  --accent-ink: #f7fff8;
  --blue: #087fbd;
  --blue-soft: rgba(8, 127, 189, .1);
  --gold: #a86d00;
  --shadow: 0 22px 55px rgba(29, 54, 66, .11);
  --shadow-soft: 0 10px 26px rgba(29, 54, 66, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -4%, rgba(100, 207, 255, .12), transparent 25rem),
    radial-gradient(circle at 2% 17%, rgba(128, 231, 156, .08), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, #142333) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: -.01em;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(117, 204, 255, .45);
  outline-offset: 3px;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 45%), var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 7px 16px rgba(92, 222, 130, .18);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.6px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.08;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -.5px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: color .18s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: var(--text); }

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); }

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow-soft);
  font-size: 20px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button:hover {
  border-color: var(--line-bright);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 495px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  padding: 64px 0 88px;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 11px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: .97;
}

.hero h1 span {
  color: var(--blue);
  text-shadow: 0 0 30px rgba(117, 204, 255, .1);
}

.lead {
  max-width: 610px;
  margin: 25px 0 31px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 830;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button.primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, #9aeea8, var(--accent));
  box-shadow: 0 10px 20px rgba(83, 207, 116, .16);
}

.button.primary:hover {
  box-shadow: 0 14px 24px rgba(83, 207, 116, .24);
  transform: translateY(-2px);
}

.button.quiet {
  border-color: var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 45%, transparent);
}

.button.quiet:hover {
  border-color: var(--line-bright);
  background: var(--panel);
  transform: translateY(-1px);
}

.print-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 40%),
    linear-gradient(145deg, var(--panel-bright), var(--panel));
  box-shadow: var(--shadow);
}

.print-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.print-card::after {
  position: absolute;
  right: -82px;
  bottom: -86px;
  width: 178px;
  height: 178px;
  content: "";
  border: 24px solid rgba(143, 229, 155, .1);
  border-radius: 50%;
  pointer-events: none;
}

.print-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(143, 229, 155, .13), 0 0 13px rgba(143, 229, 155, .45);
}

.print-card h2 {
  margin: 16px 0 19px;
  font-size: 24px;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 25%, rgba(117, 204, 255, .25), transparent 30%),
    linear-gradient(135deg, rgba(143, 229, 155, .17), rgba(21, 30, 40, .65));
}

.image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent 15%, rgba(255,255,255,.06) 15.5%, transparent 16%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.035) 19px 20px);
  pointer-events: none;
}

.image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.image-frame.image-loaded img { opacity: 1; }

.image-frame figcaption {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  left: 10px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}

.printer-image {
  height: 132px;
  margin-bottom: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,.04);
}

.profile-grid div {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.profile-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.profile-grid div:nth-last-child(-n + 2) { border-bottom: 0; }

.profile-grid small,
.profile-grid strong { display: block; }

.profile-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.profile-grid strong {
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: -.02em;
}

.print-card > p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  scroll-margin-top: 18px;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 31px;
}

.section-heading.compact { margin-bottom: 23px; }

.section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 840;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.section-intro {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.check-item {
  position: relative;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--panel-bright), var(--panel));
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.check-item:hover {
  border-color: var(--line-bright);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.check-item input {
  position: absolute;
  opacity: 0;
}

.fake-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--muted);
  border-radius: 8px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.check-item input:checked + .fake-check {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.04);
}

.check-item input:checked + .fake-check::after {
  content: "✓";
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 950;
}

.check-item strong,
.check-item small { display: block; }

.check-item strong {
  font-size: 14px;
  line-height: 1.24;
}

.check-item small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.progress-line {
  margin: 17px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.materials-visual-row,
.tuning-intro,
.notes-layout {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) 1fr;
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
}

.materials-visual-row p,
.tuning-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.materials-visual-row strong,
.tuning-intro strong { color: var(--text); }

.spools-image,
.calibration-image {
  height: 128px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}

.filter {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 790;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.filter:hover {
  border-color: var(--line-bright);
  color: var(--text);
}

.filter.active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 5px 13px rgba(83, 207, 116, .15);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.material-card {
  min-height: 169px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(145deg, var(--panel-bright), var(--panel));
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.material-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.material-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 9px 22px rgba(83, 207, 116, .08);
}

.material-swatch {
  width: 31px;
  height: 9px;
  display: block;
  margin-bottom: 20px;
  border-radius: 99px;
  background: var(--swatch);
  box-shadow: 0 0 12px color-mix(in srgb, var(--swatch) 50%, transparent);
}

.material-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.material-card-heading strong {
  font-size: 20px;
  letter-spacing: -.045em;
}

.saved-star {
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}

.material-subtitle {
  min-height: 41px;
  display: block;
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.material-meta {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 780;
}

.detail-section {
  padding-top: 58px;
  border-top: 0;
}

.favorite-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  font-size: 13px;
  font-weight: 790;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.favorite-button:hover {
  border-color: var(--gold);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.favorite-button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.favorite-button span {
  font-size: 18px;
  vertical-align: -1px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}

.feature-panel,
.setting-table,
.detail-columns article,
.tune-card,
.issue-detail,
.calculator-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.feature-panel {
  padding: 26px;
  background:
    radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 12rem),
    var(--panel);
}

.large-swatch {
  width: 52px;
  height: 11px;
  display: block;
  margin-bottom: 21px;
  border-radius: 99px;
  background: var(--swatch);
  box-shadow: 0 0 15px color-mix(in srgb, var(--swatch) 45%, transparent);
}

.detail-subtitle {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 790;
}

.feature-panel p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.setting-table { padding: 8px 21px; }

.setting-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.setting-table div:last-child { border-bottom: 0; }
.setting-table span { color: var(--muted); }
.setting-table strong {
  font-size: 13px;
  text-align: right;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.detail-columns article { padding: 21px; }

.detail-columns h3 {
  margin: 0 0 11px;
  font-size: 15px;
  letter-spacing: -.02em;
}

.detail-columns ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 13px;
}

.detail-columns li + li { margin-top: 6px; }

.detail-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tune-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.tune-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tune-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 3px;
  content: "";
  border-radius: 0 0 0 99px;
  background: var(--accent);
}

.tune-card:hover {
  border-color: var(--line-bright);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.step {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .11em;
}

.tune-card h3 {
  margin: 15px 0 9px;
  font-size: 17px;
  letter-spacing: -.035em;
}

.tune-card p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tune-card small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 770;
  line-height: 1.3;
}

.trouble-layout {
  display: grid;
  grid-template-columns: minmax(230px, .5fr) 1fr;
  gap: 14px;
}

.issue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.issue {
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel);
  text-align: left;
  font-size: 13px;
  font-weight: 770;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.issue:hover {
  border-color: var(--line-bright);
  color: var(--text);
  transform: translateX(2px);
}

.issue.active {
  border-color: var(--blue);
  color: var(--text);
  background: linear-gradient(90deg, var(--blue-soft), var(--panel-bright));
}

.issue-detail {
  padding: 27px;
  background:
    radial-gradient(circle at 100% 0%, var(--blue-soft), transparent 13rem),
    var(--panel);
}

.issue-detail h3 {
  margin: 0 0 10px;
  font-size: 25px;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.issue-detail > p:not(.eyebrow) {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.issue-detail ol {
  margin: 0;
  padding-left: 22px;
}

.issue-detail li {
  padding-left: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.issue-detail li + li { margin-top: 10px; }

.issue-detail li::marker {
  color: var(--accent);
  font-weight: 900;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calculator-card {
  display: grid;
  gap: 14px;
  padding: 23px;
  background: linear-gradient(145deg, var(--panel-bright), var(--panel));
}

.calculator-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 770;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

select:hover,
input:hover,
textarea:hover { border-color: var(--line-bright); }

select,
input {
  min-height: 46px;
  padding: 9px 12px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(116, 202, 255, .16);
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 91% 12%, rgba(143, 229, 155, .18), transparent 12rem),
    linear-gradient(145deg, var(--panel-bright), var(--panel));
}

.result-card output {
  display: block;
  margin: 3px 0 11px;
  color: var(--accent);
  font-size: clamp(52px, 7vw, 78px);
  font-weight: 930;
  letter-spacing: -.09em;
  line-height: .95;
  text-shadow: 0 8px 28px rgba(83, 207, 116, .14);
}

.result-card > p:not(.eyebrow) {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.result-note {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-soft);
  font-size: 12px;
}

.result-note strong { color: var(--blue); }

.result-note span {
  color: var(--muted);
  line-height: 1.45;
}

.notes-section { padding-bottom: 72px; }

textarea {
  min-height: 136px;
  padding: 15px;
  resize: vertical;
  line-height: 1.5;
}

.notes-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.finished-image {
  min-height: 156px;
  height: 100%;
}

footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer strong {
  color: var(--text);
  letter-spacing: -.02em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 47px;
  }

  .print-card { max-width: 560px; }
  .checklist { grid-template-columns: repeat(3, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .tune-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 91px; }

  .topbar,
  main,
  footer { width: min(100% - 24px, 1180px); }

  .topbar { height: 68px; }
  .brand { min-width: 0; }
  .brand small { display: none; }

  .desktop-nav {
    position: fixed;
    z-index: 30;
    right: 8px;
    bottom: 8px;
    left: 8px;
    height: 63px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--panel) 93%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .desktop-nav a {
    min-width: 0;
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    line-height: 1.1;
    text-align: center;
  }

  .desktop-nav a::after { display: none; }

  .desktop-nav a:active,
  .desktop-nav a:focus-visible { color: var(--accent); }

  .hero {
    min-height: 0;
    gap: 32px;
    padding: 38px 0 60px;
  }

  .hero h1 { font-size: clamp(38px, 12vw, 54px); }

  .lead {
    margin: 19px 0 26px;
    font-size: 15px;
  }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }

  .section { padding: 61px 0; }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-intro { margin-top: 12px; }

  .section-heading.compact {
    display: flex;
    align-items: center;
  }

  .checklist {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .check-item {
    min-height: 82px;
    flex-direction: row;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
  }

  .fake-check { flex: 0 0 auto; }
  .check-item small { margin-top: 4px; }

  .materials-visual-row,
  .tuning-intro,
  .notes-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spools-image,
  .calibration-image { height: 150px; }

  .finished-image {
    min-height: 145px;
    height: 145px;
  }

  .material-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .material-card {
    min-height: 153px;
    padding: 15px;
  }

  .material-card-heading strong { font-size: 18px; }

  .detail-section { padding-top: 34px; }

  .detail-layout,
  .detail-columns,
  .trouble-layout,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .detail-columns { gap: 9px; }

  .favorite-button {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .favorite-button span { font-size: 22px; }

  .tune-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .tune-card { padding: 19px; }

  .issue-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .issue {
    min-width: 158px;
    flex: 0 0 auto;
  }

  .issue:hover { transform: none; }
  .issue-detail { padding: 21px; }

  .calculator-card,
  .result-card { padding: 19px; }

  .result-card { min-height: 252px; }

  footer {
    display: block;
    padding-bottom: 18px;
  }

  footer span {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 360px) {
  .desktop-nav a { font-size: 9px; }
  .material-grid { grid-template-columns: 1fr; }
  .print-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
