/* ==========================================================================
   Morphor, morphor.io
   Design language ported from echon6.com, extended with a light theme.
   Vanilla CSS. No build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme tokens
   The dark palette is echon6.com verbatim (#080808 / #fff). The light palette
   mirrors it so every rule below can be written once against the tokens.
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f6f6;
  --bg-solid: #f6f6f6;
  --fg: #080808;
  --muted: rgba(8, 8, 8, 0.55);
  --faint: rgba(8, 8, 8, 0.38);
  --line: rgba(8, 8, 8, 0.12);
  --line-soft: rgba(8, 8, 8, 0.08);
  --surface: rgba(8, 8, 8, 0.035);
  --surface-hover: rgba(8, 8, 8, 0.07);
  --nav-bg: rgba(246, 246, 246, 0.88);
  --nav-link: rgba(8, 8, 8, 0.55);
  --drop-bg: rgba(246, 246, 246, 0.97);
  --invert-bg: #080808;
  --invert-fg: #f6f6f6;
  --accent: #ff3b3b;
  --hero-art: url("/images/bg_light.jpg");
  --hero-veil: rgba(255, 255, 255, 0.35);
  /* Same colour as --bg-solid at zero alpha. A gradient that starts from plain
     `transparent` fades through grey, because `transparent` is rgba(0,0,0,0). */
  --bg-fade: rgba(246, 246, 246, 0);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  --logo-invert: 1; /* white SVG logos need inverting on a light ground */
  --dealer-invert: 0;
  color-scheme: light;

  /* Type scale. One size per role, used by every page, so a page title is the
     same size on the home page, a product page and the firmware installer. */
  --type-h1: clamp(2.4rem, 6vw, 3.7rem); /* page title */
  --type-lead: clamp(1.75rem, 4.5vw, 2.5rem); /* section lead */
  --type-h2: clamp(1.3rem, 2.5vw, 1.6rem); /* block heading */
  --type-sub: clamp(1.05rem, 2.2vw, 1.5rem); /* subtitle under a title */
}

:root[data-theme="dark"] {
  --bg: #080808;
  --bg-solid: #080808;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.07);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(8, 8, 8, 0.88);
  --nav-link: rgba(255, 255, 255, 0.55);
  --drop-bg: rgba(8, 8, 8, 0.97);
  --invert-bg: #ffffff;
  --invert-fg: #080808;
  --hero-art: url("/images/bg_dark.jpg");
  --hero-veil: rgba(0, 0, 0, 0.45);
  --bg-fade: rgba(8, 8, 8, 0);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --logo-invert: 0;
  --dealer-invert: 1;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Neue Haas Grotesk Display", "NeueHaasDisplay", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  text-align: center;
  padding-top: 2.75rem; /* clears the fixed nav */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:target {
  scroll-margin-top: 3.25rem;
}

h1 {
  font-size: var(--type-h1);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
}

h2 {
  font-size: var(--type-sub);
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

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

li {
  font-weight: 100;
}

img {
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem auto;
  max-width: 100%;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Top navigation, echon6.com nav tokenized
   -------------------------------------------------------------------------- */

#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  font-family: inherit;
}

#site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 2.75rem;
}

#nav-brand {
  position: absolute;
  left: 1.5rem;
  display: flex;
  align-items: center;
  font-size: 1.02rem; /* 1.2x the nav link scale, so the mark reads first */
  letter-spacing: 0.02em;
  color: var(--fg);
  white-space: nowrap;
}

#nav-brand b {
  font-weight: 900;
}

#nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#nav-links > li {
  position: relative;
}

#nav-links > li > a,
#nav-links > li > button.nav-parent {
  display: block;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-link);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

#nav-links > li > a:hover,
#nav-links > li > a.current,
#nav-links > li > button.nav-parent:hover,
#nav-links > li.drop-open > button.nav-parent {
  color: var(--fg);
}

button.nav-parent::after {
  content: " ▾";
  font-size: 0.6rem;
  opacity: 0.6;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--drop-bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 13rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

.drop-open > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nav-link);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-dropdown li a:hover {
  color: var(--fg);
}

/* Right-hand cluster: contact + theme switch */
#nav-end {
  margin-left: auto;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nav-link);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s;
  font-family: inherit;
}

#theme-toggle:hover {
  color: var(--fg);
}

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  position: absolute;
  right: 1.5rem;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-link);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

#site-nav.open #nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#site-nav.open #nav-toggle span:nth-child(2) {
  opacity: 0;
}
#site-nav.open #nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  #nav-toggle {
    display: flex;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    top: 2.75rem;
    left: 0;
    right: 0;
    /* Opaque, not the translucent desktop dropdown: the sheet covers the hero
       and page text would otherwise ghost through behind the links. */
    background: var(--bg-solid);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem 1.5rem 1rem;
    max-height: calc(100vh - 2.75rem);
    overflow-y: auto;
  }

  #site-nav.open #nav-links {
    display: flex;
  }

  #nav-end {
    margin-left: 0;
  }

  #nav-links > li > a,
  #nav-links > li > button.nav-parent {
    font-size: 0.8rem;
    padding: 0.55rem 0.5rem;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-dropdown li a {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: var(--faint);
  }
}

@media (max-width: 480px) {
  #nav-brand {
    font-size: 0.78rem;
  }
}

/* --------------------------------------------------------------------------
   4. Hero, echon6 treatment using the Morphor brush artwork
   -------------------------------------------------------------------------- */

.hero-section {
  position: relative;
  width: 100vw;
  height: auto;
  background-image: var(--hero-art);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding-block: clamp(3rem, 13vh, 10rem);
  overflow: clip;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

/* The artwork stays clear for most of the section, then dissolves into the page
   over a long, soft ramp. It reaches full opacity at 96% rather than 100%: a
   ramp that is still slightly transparent where the section clips leaves a
   visible edge, because the artwork stops abruptly instead of having already
   faded out. */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-fade) 58%,
    var(--bg-solid) 96%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 77vw;
}

.hero-content h1 {
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: var(--type-sub);
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Home page: the wordmark stands in for the page title. The artwork is white,
   so it flips on the light theme like every other logo on the site. */
.hero-logo {
  margin: 0;
  line-height: 0;
}

.hero-logo img {
  width: clamp(15rem, 42vw, 30rem);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: invert(var(--logo-invert));
}

/* Compact hero for interior pages: artwork strip, no full-bleed image */
.hero-section.hero-compact {
  padding-block: clamp(2rem, 6vh, 4.5rem);
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

img.hero {
  width: 100%;
  max-width: 100vw;
  margin: 1.5rem auto;
  display: block;
  filter: drop-shadow(15px 15px 15px rgba(0, 0, 0, 0.6));
}

/* --------------------------------------------------------------------------
   5. Sections and prose
   -------------------------------------------------------------------------- */

.feature-text {
  max-width: 75%;
  margin: 3rem auto 6.5rem;
  text-align: center;
}

.feature-text.tight {
  margin-bottom: 3.5rem;
}

/* Medium, as on echon6.com. This needs the 500 face to be loaded: without it
   the browser falls back to Roman 400 and the lead reads far too light next to
   the Bold h1. See css/fonts.css. */
.text-lead {
  font-size: var(--type-lead);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1.35rem;
  line-height: 1.1;
}

.text-body {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 auto;
  max-width: 70%;
}

.text-body + .text-body {
  margin-top: 1rem;
}

.highlight {
  color: var(--fg);
  font-weight: 500;
  opacity: 1;
}

.muted {
  color: var(--fg);
  font-weight: 400;
  opacity: 0.6;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}

a.text-link {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

a.text-link:hover {
  border-bottom-color: var(--fg);
}

@media (max-width: 768px) {
  .feature-text {
    max-width: none;
    padding: 0 1.5rem;
    margin: 2rem auto 3.5rem;
  }

  .text-body {
    max-width: none;
  }

}

/* Long-form pages: about, policies. Left-aligned inside a centred column. */
.prose {
  max-width: 46em;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.prose h1 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.prose h2 {
  font-size: var(--type-h2);
  font-weight: 500;
  color: var(--fg);
  opacity: 1;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--fg);
  margin: 2rem 0 0.6rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
}

.prose li {
  font-weight: 400;
  margin-bottom: 0.45rem;
}

.prose strong,
.prose b {
  color: var(--fg);
  font-weight: 500;
}

.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

.prose a:hover {
  border-bottom-color: var(--fg);
}

.prose video,
.prose img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
}

/* Name and link lists (team, hall of fame, friends). Rule-separated rows in
   flowing columns, in place of bullets. */
/* ul.name-list, not .name-list: it has to out-specify the .prose ul indent
   so the rows line up with the heading above them. */
ul.name-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  column-gap: 2.5rem;
}

.name-list li {
  margin: 0;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--fg);
  font-weight: 400;
  font-size: 1rem;
}

.name-list.linked li a {
  border-bottom: 0;
  display: block;
  color: var(--fg);
  transition: color 0.2s;
}

.name-list.linked li a::after {
  content: " ↗";
  color: var(--faint);
  font-size: 0.85em;
}

.name-list.linked li a:hover {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin: 0.3rem 0.3rem 0.3rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
  background: var(--surface-hover);
  border-color: var(--fg);
}

.button.primary {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

.button.primary:hover {
  opacity: 0.85;
  background: var(--invert-bg);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.prose .button-row {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   7. Product grid
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}

.product-card:hover {
  background: var(--surface);
  border-color: var(--line-soft);
  transform: translateY(-3px);
}

.product-card .shot {
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.product-card .shot img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
}

.product-card .product-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card .product-subtitle {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.35;
}

.product-card .product-meta {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}

.product-card.discontinued .shot img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.tag-discontinued {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.15rem 0.45rem;
}

/* Featured (ECHON 6) tile */
.feature-product {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.feature-product img {
  width: 88%;
  max-width: 900px;
  margin: 2rem auto 0;
  display: block;
  transition: transform 0.4s;
}

.feature-product a:hover img {
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   8. Product detail
   -------------------------------------------------------------------------- */

.product-detail {
  max-width: 1240px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  /* The photo needs less room than the copy: the feature list runs in two
     columns and long entries wrap badly in a narrow track. */
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 3rem;
  align-items: start;
  text-align: left;
}

.product-gallery {
  position: sticky;
  top: 5rem;
}

.product-main-image {
  width: 100%;
  height: 480px;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.product-thumbs button {
  width: 68px;
  height: 68px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs button:hover {
  border-color: var(--line);
}

.product-thumbs button.selected {
  border-color: var(--fg);
}

.product-info h1 {
  font-size: var(--type-h1);
  margin-bottom: 0.35rem;
}

.product-info .subtitle {
  font-size: var(--type-sub);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2rem;
}

.product-info .description {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.product-info .description b {
  color: var(--fg);
  font-weight: 500;
}

.product-info .description p + p {
  margin-top: 1rem;
}

.section-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}

.feature-list li {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.35rem 0;
  break-inside: avoid;
}

.feature-list li::before {
  content: "—";
  color: var(--faint);
  margin-right: 0.6rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}

.spec-table th {
  font-weight: 400;
  color: var(--muted);
  width: 45%;
}

.spec-table td {
  color: var(--fg);
  font-weight: 400;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 1px solid var(--line-soft);
}

.product-footnote {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .product-main-image {
    height: 380px;
  }

  .feature-list {
    columns: 1;
  }
}

/* --------------------------------------------------------------------------
   9. Accordions (changelog / FAQ)
   -------------------------------------------------------------------------- */

.accordion {
  list-style: none;
}

.accordion > li {
  border-bottom: 1px solid var(--line-soft);
}

.accordion-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--fg);
  text-align: left;
}

.accordion-head .caret {
  display: inline-block;
  transition: transform 0.25s;
  color: var(--faint);
  flex: none;
}

.accordion-head[aria-expanded="true"] .caret {
  transform: rotate(90deg);
}

.accordion-body {
  display: none;
  padding: 0 0 1rem 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.accordion-body.open {
  display: block;
}

.accordion-body h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 1rem 0 0.35rem;
}

.accordion-body ul {
  margin-left: 1.1rem;
}

.accordion-body li {
  font-weight: 400;
  padding: 0.15rem 0;
}

/* --------------------------------------------------------------------------
   10. Media embeds
   -------------------------------------------------------------------------- */

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  max-width: 1200px;
  margin: 2rem auto 5rem;
  padding: 0 1.5rem;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: 3px;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.3s;
}

.video-grid iframe:hover {
  filter: grayscale(0%);
}

.embed-frame iframe {
  width: 100%;
  border: none;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   11. Dealers, echon6 "Where to buy" grid
   -------------------------------------------------------------------------- */

.dealer-region {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 3.5rem 0 1.75rem;
  font-weight: 500;
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
  gap: 2.5em 2em;
  align-items: center;
  justify-items: center;
  max-width: 60em;
  margin: 0 auto;
}

.dealer-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.dealer-grid a:hover {
  background: var(--surface);
}

img.dealer {
  display: inline-block;
  width: auto;
  height: auto;
  min-height: 5em;
  max-width: min(12em, 100%);
  object-fit: contain;
  vertical-align: middle;
}

.dealer-name {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.dealer-grid a:hover .dealer-name {
  color: var(--fg);
}

/* Logos supplied as white artwork need flipping on the light theme,
   and vice-versa. Flagged per dealer in dealers.json. */
img.dealer.invert-on-light {
  filter: invert(var(--logo-invert));
}

img.dealer.invert-on-dark {
  filter: invert(var(--dealer-invert));
}

@media (max-width: 48em) {
  .dealer-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* --------------------------------------------------------------------------
   12. News
   -------------------------------------------------------------------------- */

.news-list {
  max-width: 46em;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  text-align: left;
}

.news-post {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-post-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.news-post-title {
  font-size: var(--type-h2);
  font-weight: 500;
  opacity: 1;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.news-post-content {
  color: var(--muted);
  line-height: 1.6;
}

.news-post-content a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

/* Greyscale until hovered, as in the About gallery and the video grid. */
.news-post-content img,
.news-post-content iframe {
  max-width: 100%;
  margin: 1rem 0.5rem 0.5rem 0;
  border-radius: 3px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.news-post-content img:hover,
.news-post-content iframe:hover {
  filter: grayscale(0%);
}

.news-post-content iframe {
  width: min(560px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
}

/* --------------------------------------------------------------------------
   13. Gallery (about page)
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}

.gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.015);
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: zoom-out;
}

#lightbox.open {
  display: block;
}

#lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}

#lightbox .caption {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.9rem;
}

#lightbox .close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   14. Tabs (spec panes), echon6
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.tab {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  border: 0;
  border-radius: 0;
  color: var(--fg);
  background-color: transparent;
}

.tab:hover {
  background-color: var(--surface-hover);
}

.tab.active {
  background-color: var(--invert-bg);
  color: var(--invert-fg);
}

.tab-content {
  display: none;
  text-align: left;
  margin: 1.5rem auto 0;
  max-width: 700px;
  list-style: none;
  padding: 0 2em;
}

.tab-content.active {
  display: block;
}

.tab-content li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.tab-content li:last-child {
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   15. Firmware installer
   -------------------------------------------------------------------------- */

.firmware-wrap {
  max-width: 46em;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  text-align: left;
  color: var(--muted);
  line-height: 1.6;
}

.firmware-wrap h1 {
  text-align: center;
  font-size: var(--type-h1);
  margin-bottom: 0.5rem;
}

.firmware-wrap .fw-sub {
  text-align: center;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 3rem;
}

.firmware-wrap b,
.firmware-wrap strong {
  color: var(--fg);
  font-weight: 500;
}

.instruction-list {
  margin-left: 1.2rem;
}

.instruction-list li {
  line-height: 1.5;
  margin-bottom: 1em;
  padding-left: 10px;
  font-weight: 400;
}

.instruction-list img {
  display: block;
  margin-top: 1rem;
  border-radius: 3px;
  box-shadow: var(--shadow);
  max-width: 320px;
}

.led {
  padding: 1px 6px 3px;
  border-radius: 2px;
  color: #fff;
  font-weight: 500;
}

.led.green {
  background: #1e7d32;
}

.led.orange {
  background: #c26a00;
}

#connectandflash {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 500;
  background: var(--invert-bg);
  color: var(--invert-fg);
  border: 1px solid var(--invert-bg);
  border-radius: 2px;
  cursor: pointer;
}

#connectandflash:hover {
  opacity: 0.85;
}

.fw-action {
  text-align: center;
  margin: 2.5rem 0;
}

#downloadLog {
  margin: 1.5rem 0;
  text-align: center;
}

#downloadLog progress {
  width: min(420px, 100%);
  height: 6px;
}

#status {
  display: block;
  text-align: center;
  color: var(--fg);
  font-size: 0.95rem;
  min-height: 1.4em;
}

.quick-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
}

.quick-tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background-color: var(--invert-bg);
  color: var(--invert-fg);
  text-align: center;
  border-radius: 3px;
  padding: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.4;
  position: absolute;
  z-index: 10;
  top: 135%;
  left: 50%;
  margin-left: -125px;
  transition: opacity 0.15s;
  box-shadow: var(--shadow);
}

.quick-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

ul.breadcrumb {
  list-style: none;
  margin: 0.5rem 0 1rem 1.5rem;
}

ul.breadcrumb li {
  position: relative;
  padding-left: 20px;
  font-weight: 400;
  font-size: 0.92rem;
}

ul.breadcrumb li::before {
  content: "\2794";
  position: absolute;
  left: 0;
  color: var(--faint);
}

.browser-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.browser-list > li {
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.browser-list strong {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   16. Contact / support blocks
   -------------------------------------------------------------------------- */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1160px; /* wide enough for four cards, so a fourth is not orphaned */
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  text-align: left;
}

.card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.75rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.card:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card p.card-product {
  color: var(--fg);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.card .card-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}

.card .card-link:hover {
  border-bottom-color: var(--fg);
}

/* Postal address: a small centred block, one line per element. */
.postal {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   17. Brand mark and footer, echon6 footer tokenized
   -------------------------------------------------------------------------- */

.corner-logo {
  width: 25%;
  min-width: 260px;
  opacity: 0.8;
  margin: 3rem auto 0;
  display: block;
  filter: invert(var(--logo-invert));
}

.icon-mark {
  width: 10%;
  min-width: 130px;
  margin: 3rem auto;
  display: block;
  filter: invert(var(--logo-invert));
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg);
  opacity: 0.6;
  max-width: 85%;
  margin: 4rem auto 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-left,
.footer-right {
  white-space: nowrap;
}

.footer-center ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-center li {
  font-weight: 400;
}

.footer-center img {
  height: 1em;
  width: auto;
  vertical-align: middle;
  filter: invert(var(--logo-invert));
  opacity: 0.9;
}

.footer-legal {
  max-width: 85%;
  margin: 0 auto 2.5rem;
  font-size: 0.7rem;
  color: var(--faint);
}

.footer-legal ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal li {
  font-weight: 400;
}

.footer-legal a:hover {
  color: var(--fg);
}

@media (max-width: 860px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-left,
  .footer-right {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */

.center {
  text-align: center;
}

.stack-sm {
  margin-bottom: 1.5rem;
}

.stack-lg {
  margin-bottom: 5rem;
}

.hidden {
  display: none !important;
}

.load-more {
  display: block;
  margin: 2rem auto 5rem;
}

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

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

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
