/* ==========================================================================
   DAQ Instruments — site stylesheet
   Palette follows ni.com: a single vivid green accent (#00B586) on a near-black
   ink, white surfaces and a lot of white space.
   ========================================================================== */

/* ------------------------------------------------------------- 1. tokens */

:root {
  --brand: #00b586;
  --brand-600: #009b73;
  --brand-700: #00805f;
  --brand-800: #055c46;
  --brand-050: #e8f8f3;
  --brand-025: #f3fbf9;

  --ink: #0b0f0e;
  --ink-2: #1b2422;
  --body: #4b5654;
  --muted: #6d7a77;
  --line: #e2e9e7;
  --line-2: #eff4f2;

  --surface: #ffffff;
  --surface-alt: #f6f9f8;
  --surface-sink: #0e1513;
  --accent: #e8a33d;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 15, 14, 0.06), 0 1px 3px rgba(11, 15, 14, 0.04);
  --shadow-md: 0 10px 28px -14px rgba(11, 15, 14, 0.22), 0 2px 6px rgba(11, 15, 14, 0.05);
  --shadow-lg: 0 28px 64px -32px rgba(11, 15, 14, 0.32);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 74px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- 2. base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 650;
}

p {
  margin: 0;
}

a {
  color: var(--brand-700);
  text-decoration: none;
}

a:hover {
  color: var(--brand-600);
}

img,
svg {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--brand-050);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------- 3. typography */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.sec-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.sec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head__title {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem);
}

.sec-head__lead {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
}

.page-head {
  max-width: 820px;
}

.page-head__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
}

.page-head__lead {
  margin-top: 16px;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.14rem);
  color: var(--muted);
}

/* -------------------------------------------------------------- 4. buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: var(--brand-025);
}

.btn--quiet {
  background: var(--surface-alt);
  color: var(--ink-2);
  border-color: var(--line);
}

.btn--quiet:hover {
  background: var(--brand-050);
  border-color: var(--brand);
  color: var(--brand-700);
}

.btn--invert {
  background: #fff;
  color: var(--ink);
}

.btn--invert:hover {
  background: #fff;
  color: var(--brand-700);
}

.btn--outline-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-invert:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.center-cta {
  margin-top: 40px;
  text-align: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--brand-700);
}

.link-arrow svg {
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

.pill--brand {
  background: var(--brand-050);
  color: var(--brand-700);
  border-color: rgba(0, 181, 134, 0.25);
}

.pill--accent {
  background: #fdf3e3;
  color: #9a6411;
  border-color: #f3ddb8;
}

.pill--muted {
  background: var(--surface-alt);
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 5. logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  flex-shrink: 0;
}

.logo__mark {
  flex-shrink: 0;
}

.logo__text {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__text strong {
  font-weight: 750;
}

/* --------------------------------------------------------------- 6. header */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar__note {
  color: rgba(255, 255, 255, 0.62);
}

.topbar__links {
  display: flex;
  gap: 20px;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.topbar__links a:hover {
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header.is-stuck {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.nav {
  margin-right: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
}

.nav__link:hover,
.nav__link.is-current {
  background: var(--brand-025);
  color: var(--brand-700);
}

.nav__chev {
  transition: transform 0.18s var(--ease);
}

.nav__toggle[aria-expanded="true"] .nav__chev {
  transform: rotate(180deg);
}

.nav__item--menu {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(560px, 84vw);
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.menu__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px;
}

.menu__all {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--brand-025);
}

.menu__all-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.menu__all-text {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu__list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.menu__list a:hover {
  background: var(--surface-alt);
}

.menu__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.menu__tier {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.hamburger__bars {
  display: block;
  width: 20px;
}

.hamburger__bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.hamburger__bars i + i {
  margin-top: 5px;
}

/* --------------------------------------------------------------- 7. drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 14, 0.45);
  backdrop-filter: blur(2px);
  animation: fade 0.2s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: slide-in 0.24s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.drawer__close:hover {
  background: var(--surface-alt);
}

.drawer__nav {
  padding: 12px 12px 0;
  flex: 1;
}

.drawer__nav a,
.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.drawer__nav a:hover,
.drawer__toggle:hover {
  background: var(--surface-alt);
}

.drawer__sub {
  padding: 2px 0 8px 12px;
  border-left: 2px solid var(--line);
  margin-left: 12px;
}

.drawer__sub a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--body);
  padding: 10px 12px;
}

.drawer__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.drawer__foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.drawer__lang,
.drawer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- 8. hero */

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(1100px 460px at 82% -8%, var(--brand-050) 0%, transparent 62%),
    radial-gradient(700px 320px at 4% 12%, #f2f7f6 0%, transparent 60%),
    var(--surface);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid rgba(0, 181, 134, 0.22);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
}

.hero__lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.15rem);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__note svg {
  color: var(--brand);
}

.hero__art {
  position: relative;
}

.art {
  width: 100%;
  height: auto;
  display: block;
}

.art--hero {
  filter: drop-shadow(0 24px 48px rgba(11, 15, 14, 0.12));
}

.art--sm {
  max-height: 150px;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.float-chip svg {
  color: var(--brand);
}

.float-chip--a {
  top: 6%;
  left: -2%;
  animation: bob 7s ease-in-out infinite;
}

.float-chip--b {
  top: 44%;
  right: -3%;
  animation: bob 8s ease-in-out infinite 0.6s;
}

.float-chip--c {
  bottom: 4%;
  left: 10%;
  animation: bob 9s ease-in-out infinite 1.2s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 26px 22px;
  background: var(--surface);
}

.stat__value {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ------------------------------------------------------------- 9. sections */

.section {
  padding: 84px 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section--tight {
  padding: 48px 0 24px;
}

.section--flush-top {
  padding-top: 32px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--series {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.grid--apps {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------------------------------------------------------------- 10. cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.card:hover {
  border-color: rgba(0, 181, 134, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.series-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.series-card__art {
  padding: 18px 24px 0;
  background: linear-gradient(180deg, var(--brand-025), transparent 88%);
}

.series-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 24px 24px;
}

.series-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.series-card__tier {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.series-card__title {
  font-size: 1.24rem;
}

.series-card__title a {
  color: var(--ink);
}

.series-card__title a:hover {
  color: var(--brand-700);
}

/* Make the whole card clickable without nesting interactive elements. */
.series-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.series-card {
  position: relative;
}

.series-card__foot .link-arrow,
.series-card__foot .series-card__count {
  position: relative;
  z-index: 1;
}

.series-card__text {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

.series-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.series-card__specs li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--ink-2);
}

.series-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.series-card__count {
  font-size: 0.84rem;
  color: var(--muted);
}

.app-card {
  padding: 26px 26px 24px;
}

.app-card__icon,
.feature__icon,
.dl-group__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand-700);
  margin-bottom: 16px;
}

.app-card__title {
  font-size: 1.14rem;
}

.app-card__signal {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.app-card__text {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--muted);
}

.tick-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.tick-list li {
  display: flex;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.tick-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.tick-list--loose {
  gap: 12px;
}

.app-card__models {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.app-card__models-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-050);
  border: 1px solid rgba(0, 181, 134, 0.24);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-700);
}

.chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mini-card {
  padding: 24px;
}

.mini-card__tier {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.mini-card__title {
  margin: 8px 0 10px;
  font-size: 1.1rem;
}

.mini-card__title a {
  color: var(--ink);
}

.mini-card__title a:hover {
  color: var(--brand-700);
}

.mini-card__text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- 11. why */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 40px;
}

.features--4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature__icon {
  margin-bottom: 14px;
}

.feature__title {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 0.94rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- 12. steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}

.step__title {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.92rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- 13. tables */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.table-hint {
  display: none;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.table {
  font-size: 0.9rem;
  min-width: 720px;
}

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

.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td,
.table tbody tr:hover th {
  background: var(--brand-025);
}

.table--spec th[scope="row"] {
  width: 260px;
  font-weight: 550;
  color: var(--ink-2);
}

.table--spec td {
  color: var(--body);
}

.cell-model {
  min-width: 210px;
}

.model-name {
  display: block;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.model-blurb {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.cell-series {
  color: var(--muted);
  white-space: nowrap;
}

.cell-action {
  text-align: right;
  white-space: nowrap;
}

.cell-check {
  width: 46px;
  padding-right: 0;
}

.group-row th {
  position: static;
  background: var(--brand-025);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.group-row a {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}

.group-row__tier {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.table-empty {
  margin-top: 20px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* checkbox + switch ------------------------------------------------------- */

.checkbox {
  display: inline-flex;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox span {
  width: 18px;
  height: 18px;
  border: 1.6px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transition: all 0.15s var(--ease);
}

.checkbox input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.6 4.6L19 7'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.checkbox input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__box {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #d8e0de;
  transition: background 0.18s var(--ease);
  flex-shrink: 0;
}

.switch__box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease);
}

.switch input:checked + .switch__box {
  background: var(--brand);
}

.switch input:checked + .switch__box::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch__box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- 14. filters */

.filters {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  margin-bottom: 24px;
}

.filters__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 18px;
}

.filters__title svg {
  color: var(--brand);
}

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

.field {
  display: block;
}

.field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field__control {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7a77' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
}

.field__control:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-050);
}

.filters__checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filters__checks .btn {
  margin-left: auto;
}

.filters__count {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.filters__count strong {
  color: var(--ink);
}

/* ------------------------------------------------------------- 15. compare */

.compare {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare__empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

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

.cmp-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cmp-col__head {
  padding: 16px 18px;
  background: var(--brand-025);
  border-bottom: 1px solid var(--line);
}

.cmp-col__name {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.cmp-col__series {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.cmp-col__series a {
  color: var(--muted);
  text-decoration: underline;
}

.cmp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.88rem;
}

.cmp-row:last-of-type {
  border-bottom: 0;
}

.cmp-row__k {
  color: var(--muted);
}

.cmp-row__v {
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
}

.cmp-col__foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.compare__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.compare__count {
  font-size: 0.88rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- 16. wizard */

.wizard {
  padding: 30px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-025), var(--surface) 62%);
  box-shadow: var(--shadow-sm);
}

.wizard__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.wizard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
}

.wizard__title {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.44rem);
  margin-right: auto;
}

.wizard__restart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.wizard__restart:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.wizard__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.wizard__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.wizard__bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.wizard__q {
  font-size: 1.16rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 18px;
}

.wizard__opts {
  display: grid;
  gap: 10px;
}

.wizard__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.96rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.wizard__opt:hover {
  border-color: var(--brand);
  background: var(--brand-025);
  transform: translateX(2px);
}

.wizard__opt span.wizard__bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid var(--line);
  flex-shrink: 0;
  position: relative;
}

.wizard__opt:hover span.wizard__bullet {
  border-color: var(--brand);
}

.wizard__opt:hover span.wizard__bullet::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.wizard__result-lead {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.wizard__card {
  padding: 20px;
  border: 1px solid rgba(0, 181, 134, 0.35);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.wizard__card-name {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.wizard__card-series {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 2px 0 12px;
}

.wizard__card-specs {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--body);
  margin-bottom: 16px;
}

.wizard__card-specs b {
  color: var(--ink-2);
  font-weight: 600;
}

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

/* -------------------------------------------------------------- 17. detail */

.crumbs {
  padding: 20px 0 0;
  font-size: 0.84rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand-700);
}

.detail-hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 400px at 78% 0%, var(--brand-050) 0%, transparent 60%),
    var(--surface);
}

.detail-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-hero__tier {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.detail-hero__title {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  letter-spacing: -0.03em;
}

.detail-hero__lead {
  margin-top: 18px;
  max-width: 36em;
  font-size: 1.06rem;
  color: var(--muted);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.spec-chips li {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}

.detail-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.spec-groups {
  display: grid;
  gap: 12px;
}

.spec-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.spec-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.spec-group__head::-webkit-details-marker {
  display: none;
}

.spec-group__head:hover {
  background: var(--brand-025);
}

.spec-group[open] .spec-group__head {
  border-bottom: 1px solid var(--line);
}

.spec-group__chev {
  color: var(--muted);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.spec-group[open] .spec-group__chev {
  transform: rotate(180deg);
}

.spec-group .table-wrap {
  border: 0;
  border-radius: 0;
}

.spec-note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.spec-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand);
}

.usecase-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.usecase-list li {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.94rem;
  color: var(--ink-2);
}

.usecase-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.split--narrow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split__text {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.panel__title {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.panel__text {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.signal-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.signal-list li {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  background: var(--surface);
}

.signal-list__k {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.signal-list__v {
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* ---- product view gallery ---- */

/* auto-fit so the grid still fills the row when a view is omitted or a series
   supplies photographs for only some of the three views. */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.shot-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.shot-card:hover {
  border-color: rgba(0, 181, 134, 0.4);
  box-shadow: var(--shadow-md);
}

.shot-card .shot,
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: linear-gradient(180deg, var(--brand-025), transparent 88%);
}

.shot-card figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--muted);
}

/* The hero uses the same drawing at a larger size. */
.shot--photo {
  border-radius: var(--radius-lg);
}

/* ----------------------------------------------------------- 18. downloads */

.dl-group {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.dl-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.dl-group__head {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.dl-group__title {
  font-size: 1.34rem;
}

.dl-group__lead {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 62em;
}

.table--files {
  min-width: 640px;
}

.cell-file {
  min-width: 280px;
}

.file__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.94rem;
}

.file__desc {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.sw-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sw {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
}

.sw__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-700);
  flex-shrink: 0;
}

.sw__body {
  flex: 1;
  min-width: 0;
}

.sw__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.sw__detail {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.sw__size {
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

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

.file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-050);
  color: var(--brand-700);
  flex-shrink: 0;
}

.file__body {
  flex: 1;
  min-width: 0;
}

.file__meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ------------------------------------------------------------- 19. cta band */

.cta-band {
  padding: 68px 0;
  background: linear-gradient(115deg, var(--brand-800), var(--brand-600) 55%, var(--brand));
  color: #fff;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band__title {
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.cta-band__text {
  margin-top: 12px;
  max-width: 46em;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- 20. footer */

.footer {
  padding: 64px 0 0;
  background: var(--surface-sink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  color: var(--brand);
}

.footer__logo .logo__text {
  color: #fff;
}

.footer__text {
  margin-top: 18px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.6);
}

.footer__note {
  margin-top: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer__head {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer__list {
  display: grid;
  gap: 11px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.68);
}

.footer__list a:hover {
  color: var(--brand);
}

.footer__list--contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer__list--contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.footer__list--contact a {
  color: rgba(255, 255, 255, 0.76);
}

.footer__bottom {
  padding: 26px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.62);
}

.footer__legal {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.38);
  max-width: 92em;
}

/* --------------------------------------------------------- 21. floating UI */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  border-color: var(--brand);
  color: var(--brand-700);
}

.to-top__icon {
  transform: rotate(180deg);
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-cta__btn--primary {
  background: var(--brand);
  color: #fff;
}

.mobile-cta__btn--primary:hover {
  color: #fff;
}

/* -------------------------------------------------------- 22. root pages */

.page--root {
  background:
    radial-gradient(900px 500px at 50% -10%, var(--brand-050), transparent 65%),
    var(--surface-alt);
  min-height: 100vh;
}

.root-pick {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.root-pick__card {
  width: 100%;
  max-width: 460px;
  padding: 46px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.root-pick__card--wide {
  max-width: 620px;
}

.root-pick__mark {
  display: inline-block;
  color: var(--brand);
}

.root-pick__code {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 10px;
}

.root-pick__brand {
  margin-top: 18px;
  font-size: 1.5rem;
  display: grid;
  gap: 4px;
}

.root-pick__brand span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

.root-pick__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.root-pick__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.root-pick__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.root-pick__links {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- 23. 404 page */

.nf {
  max-width: 640px;
  padding: 40px 0 60px;
}

.nf__code {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.nf__title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.nf__text {
  margin-top: 14px;
  color: var(--muted);
}

.nf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.nf__links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-2);
}

.nf__links a:hover {
  border-color: var(--brand);
  background: var(--brand-025);
  color: var(--brand-700);
}

/* --------------------------------------------------------- 24. responsive */

@media (max-width: 1080px) {
  .nav,
  .header__cta {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .header__actions {
    margin-left: auto;
  }

  .hero__inner,
  .detail-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__art,
  .detail-hero__art {
    max-width: 560px;
  }

  .split,
  .split--narrow {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
  }

  .section {
    padding: 60px 0;
  }

  .section--tight {
    padding: 32px 0 16px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .shot-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topbar__note {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
    gap: 24px;
  }

  .table-hint {
    display: block;
  }

  /* Compare table: drop the redundant series column and pin the identity cols. */
  .table--spec-compare .cell-series {
    display: none;
  }

  .table--spec-compare .cell-check {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--surface);
  }

  .table--spec-compare .cell-model {
    position: sticky;
    left: 46px;
    z-index: 3;
    background: var(--surface);
    min-width: 140px;
    box-shadow: 1px 0 0 var(--line);
  }

  .table--spec-compare tbody tr:hover .cell-check,
  .table--spec-compare tbody tr:hover .cell-model {
    background: var(--brand-025);
  }

  /* Files table: stack rows into cards. */
  .table--files {
    min-width: 0;
  }

  .table--files thead {
    display: none;
  }

  .table--files tr {
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .table--files tr:last-child {
    border-bottom: 0;
  }

  .table--files th,
  .table--files td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    border: 0;
  }

  .table--files th[scope="row"] {
    display: block;
    padding-bottom: 10px;
  }

  .table--files td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .table--files .cell-action {
    justify-content: flex-end;
    padding-top: 12px;
  }

  .table--files .cell-action::before {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  .to-top {
    bottom: 78px;
  }

  .filters__checks .btn {
    margin-left: 0;
  }

  .wizard {
    padding: 24px 20px 26px;
  }

  .compare__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .section {
    padding: 48px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .hero__cta .btn,
  .detail-hero__cta .btn {
    flex: 1 1 auto;
  }

  .float-chip {
    font-size: 0.74rem;
    padding: 6px 11px;
  }

  .float-chip--a {
    left: 0;
  }

  .float-chip--b {
    right: 0;
  }

  .float-chip--c {
    left: 4%;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .stat {
    padding: 20px 18px;
  }

  .grid,
  .features,
  .steps {
    gap: 16px;
  }

  .card:hover {
    transform: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer {
    padding-top: 48px;
  }

  body {
    padding-bottom: 62px;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .app-card,
  .mini-card,
  .panel,
  .wizard__card {
    padding: 20px;
  }

  .file {
    flex-wrap: wrap;
  }

  .sw {
    flex-wrap: wrap;
  }

  .sw__size {
    margin-left: auto;
  }

  .dl-group__head {
    gap: 14px;
  }

  .root-pick__card {
    padding: 34px 24px;
  }
}

/* ------------------------------------------------- 25. motion & print */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .float-chip {
    animation: none;
  }
}

@media print {
  .topbar,
  .header,
  .drawer,
  .footer,
  .mobile-cta,
  .to-top,
  .cta-band,
  .filters,
  .wizard {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
  }

  .table-wrap {
    overflow: visible;
    border-color: #999;
  }

  .spec-group {
    border-color: #999;
  }

  .spec-group .table-wrap {
    display: block !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
