
:root {
  color-scheme: light;
  --bg: oklch(97% 0.012 238);
  --surface: oklch(99% 0.006 238);
  --surface-soft: oklch(95% 0.014 238);
  --surface-raised: oklch(100% 0.004 238);
  --ink: oklch(23% 0.018 245);
  --muted: oklch(47% 0.022 247);
  --line: oklch(83% 0.018 245);
  --line-strong: oklch(68% 0.024 245);
  --primary: oklch(52% 0.18 255);
  --primary-strong: oklch(45% 0.18 255);
  --primary-soft: oklch(92% 0.045 255);
  --accent: oklch(70% 0.13 74);
  --accent-soft: oklch(94% 0.045 74);
  --ok: oklch(55% 0.11 160);
  --danger: oklch(56% 0.17 31);
  --shadow: 0 18px 42px oklch(23% 0.018 245 / 0.10);
  --focus: 0 0 0 3px oklch(52% 0.18 255 / 0.20);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(18% 0.016 245);
  --surface: oklch(22% 0.018 245);
  --surface-soft: oklch(27% 0.021 245);
  --surface-raised: oklch(25% 0.019 245);
  --ink: oklch(93% 0.010 238);
  --muted: oklch(73% 0.018 245);
  --line: oklch(38% 0.024 245);
  --line-strong: oklch(52% 0.032 245);
  --primary: oklch(70% 0.15 255);
  --primary-strong: oklch(77% 0.13 255);
  --primary-soft: oklch(30% 0.055 255);
  --accent: oklch(78% 0.12 74);
  --accent-soft: oklch(31% 0.045 74);
  --ok: oklch(72% 0.11 160);
  --danger: oklch(72% 0.14 31);
  --shadow: 0 20px 46px oklch(10% 0.014 245 / 0.36);
  --focus: 0 0 0 3px oklch(70% 0.15 255 / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, oklch(100% 0.004 238 / 0.42), transparent 360px),
    var(--bg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, oklch(27% 0.025 245 / 0.65), transparent 380px),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow-x: auto;
  background: oklch(99% 0.006 238 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
}

:root[data-theme="dark"] .site-header {
  background: oklch(20% 0.018 245 / 0.92);
}

.header-track {
  width: max-content;
  min-width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft));
  color: var(--primary-strong);
  font-size: 13px;
  letter-spacing: 0;
}

.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a,
.site-footer a,
.language-switch a,
.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav a:hover,
.site-footer a:hover,
.language-switch a:hover,
.inline-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.compare-count {
  display: inline-flex;
  min-width: 1.35rem;
  min-height: 1.35rem;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary);
  color: oklch(99% 0.006 238);
  font-size: 12px;
  line-height: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  position: relative;
  font-size: 15px;
}

.language-switch summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 12px;
}

.language-switch[open] summary::after {
  content: "▴";
}

.language-switch div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

input,
button,
.button,
.store-link,
.compare-toggle {
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
}

input {
  min-width: 280px;
  min-height: 40px;
  padding: 0 12px;
}

button,
.button,
.store-link,
.compare-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
.button:hover,
.store-link:hover,
.compare-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px oklch(23% 0.018 245 / 0.10);
}

button:focus-visible,
.button:focus-visible,
.store-link:focus-visible,
.compare-toggle:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.button.primary,
.buy-now {
  border-color: var(--primary);
  background: var(--primary);
  color: oklch(99% 0.006 238);
  font-weight: 750;
}

.button.primary:hover,
.buy-now:hover {
  background: var(--primary-strong);
}

.compare-toggle {
  background: var(--surface);
  color: var(--primary-strong);
  font-weight: 700;
}

.compare-toggle[data-active="true"] {
  border-color: var(--ok);
  background: oklch(90% 0.045 160);
  color: oklch(30% 0.07 160);
}

:root[data-theme="dark"] .compare-toggle[data-active="true"] {
  background: oklch(31% 0.055 160);
  color: oklch(86% 0.07 160);
}

.theme-toggle {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 19px;
}

.page-shell {
  min-height: 70vh;
}

.hero,
.detail-hero {
  width: min(100% - 28px, 1280px);
  margin-inline: auto;
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.page-title,
.section-band,
.text-page,
.detail-page {
  width: min(100% - 28px, 1280px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font: 800 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  line-height: 1.18;
  font-weight: 780;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 760;
}

.hero-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.hero-actions,
.fact-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions .inline-link,
.card-actions .compare-toggle {
  flex: 1 1 120px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: center;
}

.card-actions .inline-link {
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
}

.card-actions .compare-toggle {
  color: var(--primary-strong);
}

.hero-actions {
  margin-top: 22px;
}

.hero-panel,
.machine-card,
.detail-block,
.catalog-card,
.compare-table-wrap {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  min-height: 420px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow: hidden;
}

.hero-panel strong {
  display: block;
  color: var(--primary-strong);
  font-size: 2.55rem;
  line-height: 0.95;
  font-weight: 850;
}

.hero-panel span {
  color: var(--muted);
}

.hero-note {
  align-self: start;
}

.printer-figure {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 8px;
}

.printer-figure img {
  width: 88%;
  margin-inline: auto;
}

.section-band {
  margin-top: 34px;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px oklch(23% 0.018 245 / 0.14);
}

.catalog-card span,
.catalog-card small {
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-card h3 {
  margin-top: 10px;
}

.catalog-card p {
  color: var(--muted);
}

.card-media {
  display: block;
  margin-bottom: 14px;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: var(--surface-raised);
}

.page-title,
.text-page {
  padding-top: 32px;
}

.large-search {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.large-search input {
  flex: 1;
}

.detail-page {
  width: 100%;
}

.detail-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.detail-hero > div:first-child {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
}

.detail-hero .machine-card {
  order: 1;
}

.machine-card {
  min-height: 440px;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
}

.machine-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.machine-card figcaption {
  justify-self: stretch;
  align-self: end;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.fact-row {
  margin-top: 18px;
}

.fact-row + .button,
.fact-row + .buy-now {
  margin-top: 16px;
}

.fact-row span,
.pill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.9rem;
}

.detail-grid,
.commerce-sources {
  width: min(100% - 28px, 1280px);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-block {
  padding: 20px;
}

.detail-block h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-block h3 {
  margin-top: 18px;
}

.spec-list {
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list div:nth-child(odd) {
  background: linear-gradient(90deg, var(--surface-soft), transparent);
}

.spec-list dt {
  color: var(--muted);
  font-weight: 650;
}

.spec-list dd {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.check-list,
.clean-list,
.pill-list,
.source-list,
.sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.clean-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiet {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.mini-list a:hover {
  border-color: var(--primary);
}

.mini-list span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-list small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.mini-thumb {
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 6px;
  border-radius: 7px;
  background: var(--surface-raised);
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-commerce h3 {
  margin-top: 22px;
}

.detail-commerce .source-list {
  margin-top: 8px;
}

.store-link {
  min-height: 40px;
  color: var(--primary-strong);
  font-weight: 700;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list a {
  color: var(--primary-strong);
}

.compare-shell {
  overflow-x: auto;
}

.compare-table-wrap {
  min-width: 720px;
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--primary-soft);
  color: var(--ink);
}

.compare-table tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

.compare-table .is-diff td,
.compare-table .is-diff th {
  background: var(--accent-soft);
}

.compare-model-link {
  display: grid;
  gap: 5px;
}

.compare-model-link span {
  color: var(--muted);
  font-size: 0.8rem;
}

.compare-model-link small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.compare-model-thumb {
  width: 128px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  margin-bottom: 4px;
  border-radius: 7px;
  background: var(--surface);
}

.compare-page-selection {
  margin-top: 18px;
}

.compare-page-selection[hidden] {
  display: none;
}

.compare-page-selection .compare-tray-inner {
  width: 100%;
  margin-inline: 0;
}

.compare-buy-section {
  margin-bottom: 8px;
}

.compare-buy-heading {
  margin-bottom: 16px;
}

.compare-buy-intro {
  margin: 8px 0 0;
  color: var(--muted);
}

.compare-buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.compare-buy-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compare-buy-copy span,
.compare-buy-copy p {
  color: var(--muted);
}

.compare-buy-copy h3 {
  margin: 6px 0 10px;
}

.compare-buy-card .store-link {
  flex: 1 1 180px;
}

.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.compare-tray {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 40;
}

.compare-tray-inner {
  width: min(100%, 980px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.compare-tray-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-list,
.compare-tray-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-pill {
  min-height: 34px;
  padding: 0 10px;
  border-color: var(--line);
  background: var(--surface-soft);
}

.compare-pill small {
  margin-left: 8px;
  color: var(--danger);
  font-size: 1rem;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  width: min(100% - 28px, 1280px);
  margin-inline: auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-grid p {
  margin: 0;
}

@media (max-width: 920px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero,
  .detail-hero,
  .detail-grid,
  .commerce-sources {
    grid-template-columns: 1fr;
  }

  .detail-hero > div:first-child,
  .detail-hero .machine-card {
    order: initial;
    min-height: auto;
  }

  .machine-card,
  .hero-panel {
    min-height: 340px;
  }

  .compare-tray-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 560px) {
  .header-track {
    padding-inline: 14px;
  }

  input {
    min-width: 210px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .large-search {
    display: grid;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-block,
  .machine-card {
    padding: 16px;
  }
}
