:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #171717;
  --module: #242424;
  --control: #1a1a1a;
  --control-hover: #2e2e2e;
  --ink: #ebebeb;
  --muted: #9e9e9e;
  --line: #333333;
  --line-strong: #4d4d4d;
  --blue: #0aa1f5;
  --blue-strong: #0788d8;
  --blue-soft: rgba(10, 161, 245, 0.16);
  --amber: #f5a524;
  --red: #e34d64;
  --success: #1fc58a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 52px rgba(0, 0, 0, 0.42);
  --page-width: min(1180px, calc(100vw - 48px));
  --mobile-page-width: min(100vw - 24px, 720px);
  --section-gap: 22px;
  --page-stack-gap: clamp(30px, 3.4vw, 42px);
  --content-card-gap: clamp(18px, 2.2vw, 30px);
  --card-gap: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

.shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.installer-shell {
  width: var(--page-width);
  padding: clamp(28px, 5vw, 56px) 0 32px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.installer-panel {
  border-color: rgba(10, 161, 245, 0.28);
  background: #151515;
}

.compact-panel {
  max-width: 720px;
  margin: 0 auto;
}

.mast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.mast-copy {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.browser-badge {
  flex: 0 0 auto;
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--module);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  width: min(340px, 100%);
}

.target,
.mode {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.mode {
  grid-template-columns: 1fr;
  min-height: 58px;
  padding: 10px 12px;
  background: var(--control);
}

.target img {
  width: 132px;
  height: 94px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--control);
}

.target-copy {
  display: grid;
  gap: 7px;
  padding-right: 76px;
}

.target:hover,
.mode:hover {
  background: var(--control-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.target.selected,
.mode.selected {
  border-color: var(--blue);
  background: #102033;
  box-shadow: inset 0 0 0 1px rgba(10, 161, 245, 0.46);
}

.target:not(.selected) {
  border-color: var(--line);
  background: #202020;
  box-shadow: none;
}

.target.selected::after {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(10, 161, 245, 0.5);
  border-radius: 999px;
  background: rgba(10, 161, 245, 0.16);
  color: var(--blue);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  content: "Selected";
}

.target-name,
.mode-name {
  font-size: 1rem;
  font-weight: 850;
}

.mode-name {
  font-size: 0.92rem;
}

.target-board,
.target-version,
.mode-detail {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.target-learn {
  width: fit-content;
  font-size: 0.84rem;
  font-weight: 850;
}

.install-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  align-items: center;
  gap: 18px;
  margin-top: var(--section-gap);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  border-color: rgba(10, 161, 245, 0.24);
}

.install-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.install-copy strong {
  font-size: 1.38rem;
}

#selectedPath {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-copy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.board-warning {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(245, 165, 36, 0.48);
  border-radius: 6px;
  background: rgba(245, 165, 36, 0.1);
  color: #ffd38a;
  padding: 7px 9px;
  font-size: 0.86rem;
  font-weight: 750;
}

.install-action {
  display: grid;
  grid-template-columns: minmax(360px, auto) minmax(210px, auto);
  align-items: stretch;
  justify-content: end;
  gap: var(--card-gap);
}

.mode-panel,
.flash-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.flash-panel {
  min-width: 210px;
}

.mode-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.flash-panel esp-web-install-button,
.flash-panel .primary-button {
  width: 100%;
}

.primary-button {
  min-height: 46px;
  min-width: 180px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--blue-strong);
}

.primary-button.disabled,
.primary-button:disabled {
  background: #4a4a4a;
  color: #c9c9c9;
  cursor: not-allowed;
}

.status-list {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.status-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.dot {
  margin-top: 4px;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #a5aca8;
}

.dot.ok {
  background: var(--success);
}

.dot.warn {
  background: var(--amber);
}

.dot.bad {
  background: var(--red);
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 26px;
  padding: 24px 4px 0;
  color: var(--muted);
}

.installer-pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: var(--page-stack-gap);
  border: 1px solid rgba(10, 161, 245, 0.38);
  border-radius: 8px;
  background: #102033;
  padding: clamp(20px, 3vw, 28px);
}

.installer-pricing h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.installer-pricing p,
.installer-price-card small {
  color: #c9d4df;
  line-height: 1.55;
}

.installer-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
}

.installer-price-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.installer-price-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.installer-price-card strong {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.installer-price-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.details h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.file-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.file-list code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control);
  padding: 11px 12px;
  color: var(--blue);
}

.installer-modal[hidden] {
  display: none;
}

.installer-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.installer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.installer-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 32px));
  height: min(88vh, 920px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(10, 161, 245, 0.38);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.installer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: #151515;
  padding: 18px 22px;
}

.installer-modal-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.installer-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-close {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--control);
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--blue);
}

.installer-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  border: 0;
  background: var(--bg);
  overflow: auto;
}

.embedded-installer body {
  background: transparent;
}

.embedded-installer,
.embedded-installer body {
  overflow: auto;
}

.embedded-installer .site-nav,
.embedded-installer .details {
  display: none;
}

.embedded-installer .installer-shell {
  width: 100%;
  padding: 0;
}

.embedded-installer .installer-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.embedded-installer .notice-band {
  margin-top: var(--section-gap);
}

.embedded-installer .site-footer {
  margin-top: var(--section-gap);
  padding-bottom: 18px;
}

.notice-band {
  margin-top: var(--page-stack-gap);
  border: 1px solid rgba(245, 165, 36, 0.55);
  border-radius: 8px;
  background: rgba(245, 165, 36, 0.1);
  padding: 16px 18px;
}

.notice-band h2 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.notice-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice-band.warning {
  border-color: rgba(245, 165, 36, 0.72);
  background: rgba(245, 165, 36, 0.13);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 22px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--card-gap);
}

.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--ink);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(16px);
}

.brand-mark {
  color: var(--ink);
  font-weight: 900;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 800;
}

.landing-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 760px);
  padding: clamp(92px, 12vw, 150px) max(24px, calc((100vw - 1180px) / 2)) clamp(40px, 7vw, 84px);
  overflow: hidden;
  isolation: isolate;
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.76) 42%, rgba(15, 15, 15, 0.22) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 15, 15, 0) 34%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 44%;
}

.trimix-hero .hero-photo {
  object-position: 64% 50%;
}

.hero-copy {
  width: min(650px, 100%);
  min-width: 0;
}

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 26px;
  color: #d6d6d6;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-actions,
.preview-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--card-gap);
  min-width: 0;
}

.section-actions {
  margin-top: 18px;
}

.link-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 850;
  text-align: center;
}

.link-button {
  color: white;
}

.link-button:hover {
  color: white;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.disabled-link {
  opacity: 0.58;
  pointer-events: none;
}

.info-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(10, 161, 245, 0.38);
  border-radius: 999px;
  background: rgba(10, 161, 245, 0.1);
  color: var(--ink);
  padding: 8px 13px;
  font-size: 0.92rem;
  font-weight: 800;
}

.feature-strip,
.glance-section,
.cost-section,
.release-section,
.split-section,
.shopping-section,
.wiring-section,
.case-section,
.photo-band,
.build-section,
.install-band,
.trimix-preview,
main > .notice-band {
  width: var(--page-width);
  margin: 0 auto;
}

main > .cost-section,
main > .glance-section,
main > .release-section,
main > .wiring-section,
main > .install-band,
main > .trimix-preview,
main > .notice-band {
  margin-top: var(--page-stack-gap);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  transform: translateY(-18px);
}

.feature-strip div {
  display: grid;
  gap: 7px;
  min-height: 136px;
  padding: 20px;
  background: var(--panel);
}

.feature-strip strong {
  color: var(--ink);
  font-size: 1rem;
}

.feature-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.glance-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

.release-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
  align-items: stretch;
  gap: var(--content-card-gap);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(10, 161, 245, 0.42);
  border-radius: 8px;
  background: #102033;
  box-shadow: inset 0 0 0 1px rgba(10, 161, 245, 0.14);
}

.release-copy h2,
.waitlist-form h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.release-copy p,
.waitlist-form p {
  color: #c9d4df;
  line-height: 1.6;
}

.waitlist-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: clamp(18px, 3vw, 24px);
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--control);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.waitlist-form input:focus {
  outline: 2px solid rgba(10, 161, 245, 0.62);
  outline-offset: 2px;
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: #d6d6d6;
  font-weight: 650;
  line-height: 1.45;
}

.consent-row input {
  margin-top: 4px;
}

.signup-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-status {
  min-height: 22px;
  margin: 0;
  font-size: 0.92rem;
}

.waitlist-status[data-state="success"] {
  color: #9cf1cc;
}

.waitlist-status[data-state="error"] {
  color: #ffb3bf;
}

.waitlist-status[data-state="pending"] {
  color: #d9ecff;
}

.release-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.glance-card,
.tool-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.glance-card span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.glance-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.32;
}

.cost-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr) minmax(260px, 0.44fr);
  align-items: stretch;
  gap: var(--content-card-gap);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(10, 161, 245, 0.42);
  border-radius: 8px;
  background: #102033;
  box-shadow: inset 0 0 0 1px rgba(10, 161, 245, 0.14);
}

.cost-copy h2,
.cost-note strong {
  margin-bottom: 10px;
  color: var(--ink);
}

.cost-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.06;
}

.cost-copy p,
.cost-note p,
.price-card p {
  color: #c9d4df;
  line-height: 1.6;
}

.cost-note,
.price-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.price-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.price-card strong {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.price-card > span:last-of-type {
  color: var(--muted);
  font-weight: 750;
}

.split-section,
.case-section,
.install-band,
.trimix-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(54px, 8vw, 92px) 0;
}

.reverse-section .section-copy {
  order: 2;
}

.reverse-section .single-photo {
  order: 1;
}

.section-copy h2,
.section-heading h2,
.case-section h2,
.photo-band h2,
.install-band h2,
.trimix-preview h2,
.info-panel h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.06;
}

.section-copy p,
.section-heading p,
.case-section p,
.photo-band p:not(.eyebrow),
.install-band p,
.trimix-preview p,
.info-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.55;
}

.plain-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.image-pair {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--card-gap);
  align-items: end;
}

.image-pair img,
.single-photo,
.case-section img,
.webui-screenshot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--module);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-pair img:first-child {
  aspect-ratio: 4 / 5;
}

.image-pair img:last-child {
  aspect-ratio: 3 / 4;
}

.trimix-image-pair img:first-child {
  object-position: 50% 42%;
}

.trimix-image-pair img:last-child {
  object-position: 50% 30%;
}

.trimix-workflow-photos .trimix-image-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.trimix-workflow-photos .trimix-image-pair img {
  height: clamp(340px, 34vw, 460px);
  aspect-ratio: auto;
  object-fit: cover;
}

.single-photo {
  aspect-ratio: 4 / 5;
}

.palm-photo {
  object-position: 58% 50%;
}

.display-photo {
  aspect-ratio: 1 / 1.1;
  object-position: center;
}

.print-photo {
  aspect-ratio: 1.18 / 1;
  object-position: center;
}

.webui-screenshot {
  aspect-ratio: 1200 / 820;
  object-fit: cover;
  object-position: top left;
}

.shopping-section {
  padding: clamp(54px, 8vw, 90px) 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-top: var(--content-card-gap);
}

.tool-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.tool-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.parts-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.parts-table th,
.parts-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.parts-table th {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.parts-table td {
  color: var(--muted);
  line-height: 1.45;
}

.parts-table td:nth-child(1) {
  width: 92px;
  color: var(--ink);
  font-weight: 850;
}

.parts-table tr:last-child td {
  border-bottom: 0;
}

.wiring-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.wiring-section h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  line-height: 1.08;
}

.wiring-section p {
  color: var(--muted);
  line-height: 1.65;
}

.wiring-section img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
}

.case-section {
  align-items: stretch;
}

.case-section.text-only {
  grid-template-columns: 1fr;
}

.case-section > div,
.info-panel,
.install-band,
.trimix-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.case-section > div,
.info-panel {
  padding: clamp(22px, 4vw, 34px);
}

.case-section img {
  min-height: 360px;
  max-height: 560px;
  object-position: center;
}

.photo-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(40px, 7vw, 80px) 0;
}

.photo-band img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--module);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-band h2 {
  max-width: 720px;
}

.build-section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: build-step;
}

.step-list li {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 52px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  counter-increment: build-step;
}

.step-list li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--blue);
  color: white;
  content: counter(build-step);
  font-size: 0.86rem;
  font-weight: 900;
}

.step-list strong {
  color: var(--ink);
}

.step-list span {
  color: var(--muted);
  line-height: 1.5;
}

.install-band {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(24px, 4vw, 36px);
}

.trimix-preview {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  padding: clamp(18px, 3vw, 28px);
}

.trimix-preview-featured {
  border-color: rgba(10, 161, 245, 0.58);
  background: #102033;
  box-shadow:
    inset 0 0 0 1px rgba(10, 161, 245, 0.18),
    0 22px 52px rgba(0, 0, 0, 0.34);
}

.trimix-preview-photo {
  width: 100%;
  min-height: 220px;
  max-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: var(--module);
  object-fit: cover;
  object-position: center;
}

.trimix-preview-copy {
  display: grid;
  align-content: center;
}

.trimix-preview-featured .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.cross-promo-float {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2vw, 28px);
  z-index: 35;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  width: min(330px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(10, 161, 245, 0.42);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
  backdrop-filter: blur(14px);
}

.cross-promo-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.cross-promo-float:hover {
  border-color: rgba(10, 161, 245, 0.72);
}

.cross-promo-float img {
  width: 92px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--module);
  object-fit: cover;
}

.cross-promo-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding-right: 22px;
}

.cross-promo-copy span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cross-promo-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.16;
}

.cross-promo-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

.cross-promo-copy a {
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 850;
}

.cross-promo-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cross-promo-close:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.mini-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink);
}

.mini-steps li {
  padding-left: 4px;
  line-height: 1.45;
}

.code-block {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0a0a;
  padding: 16px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.info-panel {
  align-self: stretch;
}

.status-key {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-key div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 14px;
  background: var(--control);
}

.status-key dt {
  color: var(--ink);
  font-weight: 850;
}

.status-key dd {
  margin: 0;
  color: var(--muted);
}

.landing-footer {
  width: var(--page-width);
  margin: 40px auto 0;
  padding-bottom: 28px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 850;
}

.legal-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.legal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.legal-top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--card-gap);
}

.legal-top a {
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-doc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
}

.legal-doc h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
}

.legal-doc h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
}

.legal-doc h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-doc ul {
  padding-left: 20px;
}

.legal-doc table {
  width: 100%;
  margin: 14px 0 20px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc th,
.legal-doc td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.legal-doc hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-note {
  border: 1px solid var(--amber);
  border-radius: 8px;
  background: rgba(245, 165, 36, 0.12);
  padding: 12px 14px;
  color: var(--ink);
}

.legal-meta {
  margin-bottom: 24px;
  color: var(--muted);
}

.placeholder {
  color: var(--amber);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(680px, calc(100vw - 32px));
  border: 1px solid rgba(10, 161, 245, 0.36);
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.62);
}

.cookie-banner-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.cookie-banner h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 850;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner-actions .primary-button,
.cookie-banner-actions .secondary-button {
  min-width: 150px;
}

.privacy-preferences-button {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1040px);
    padding: 16px 0;
  }

  .mast,
  .install-surface,
  .details,
  .status-list,
  .installer-pricing,
  .installer-price-grid {
    grid-template-columns: 1fr;
  }

  .mast {
    display: grid;
  }

  .target-grid {
    grid-template-columns: 1fr;
  }

  .target-copy {
    padding-right: 0;
  }

  .target.selected::after {
    left: 12px;
    right: auto;
  }

  .install-action {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .mode-panel,
  .flash-panel {
    min-width: 0;
  }

  .mode-grid {
    width: 100%;
  }

  .primary-button,
  esp-web-install-button {
    min-width: 0;
    width: 100%;
  }

  .site-footer,
  .legal-top {
    display: grid;
  }

  .site-footer nav,
  .legal-top nav {
    justify-content: flex-start;
  }

  .site-nav {
    position: static;
    display: grid;
    min-height: 0;
    padding: 16px 20px;
  }

  .site-nav nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .landing-hero {
    min-height: 680px;
    padding: 70px 20px 34px;
  }

  .landing-hero::after {
    background:
      linear-gradient(0deg, rgba(15, 15, 15, 0.98) 0%, rgba(15, 15, 15, 0.72) 58%, rgba(15, 15, 15, 0.2) 100%),
      linear-gradient(90deg, rgba(15, 15, 15, 0.82), rgba(15, 15, 15, 0.16));
  }

  .hero-photo {
    object-position: 62% 42%;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .feature-strip,
  .glance-section,
  .cost-section,
  .release-section,
  .split-section,
  .shopping-section,
  .wiring-section,
  .case-section,
  .photo-band,
  .build-section,
  .install-band,
  .trimix-preview,
  main > .notice-band,
  .landing-footer {
    width: var(--mobile-page-width);
  }

  .feature-strip,
  .glance-section,
  .cost-section,
  .release-section,
  .split-section,
  .wiring-section,
  .case-section,
  .photo-band,
  .install-band,
  .trimix-preview,
  .tool-grid,
  .release-choice-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .reverse-section .section-copy,
  .reverse-section .single-photo {
    order: initial;
  }

  .feature-strip {
    transform: none;
    margin-top: 12px;
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .case-section img {
    min-height: 280px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .parts-table,
  .parts-table tbody,
  .parts-table tr {
    display: grid;
  }

  .parts-table {
    min-width: 0;
    gap: var(--card-gap);
    border-collapse: separate;
  }

  .parts-table thead {
    display: none;
  }

  .parts-table tbody {
    gap: var(--card-gap);
  }

  .parts-table tr {
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 14px;
  }

  .parts-table th,
  .parts-table td {
    display: block;
    border: 0;
    padding: 0;
  }

  .parts-table td:nth-child(1) {
    width: auto;
    color: var(--blue);
    font-size: 0.76rem;
    text-transform: uppercase;
  }

  .parts-table td:nth-child(2) {
    color: var(--ink);
    font-weight: 850;
  }

  .step-list li {
    min-height: 0;
  }

  .install-band .primary-button,
  .trimix-preview .secondary-button {
    width: 100%;
  }

  .cross-promo-float {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    grid-template-columns: 74px minmax(0, 1fr);
    transform: translateY(14px);
  }

  .cross-promo-float.is-visible {
    transform: translateY(0);
  }

  .cross-promo-float img {
    width: 74px;
    height: 82px;
  }

  .status-key div {
    grid-template-columns: 1fr;
  }

  .installer-modal {
    padding: 10px;
  }

  .installer-modal-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .installer-modal-header {
    display: grid;
    min-height: 0;
    padding: 14px;
  }

  .installer-modal-actions {
    justify-content: space-between;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .cookie-banner-content,
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
