#before-buy, .checkout-board-picker {
  --board-ink: #a6ebe3;
  --board-fill: rgba(73, 171, 164, .085);
  --board-line: rgba(125, 197, 194, .27);
  --board-input: #0e1a21;
  --booking-accent: #cac9ff;
  --booking-ink: #1c1942;
}

[data-theme="relay"] :is(#before-buy, .checkout-board-picker) {
  --board-ink: #165855;
  --board-input: #fff;
  --board-line: rgba(30, 105, 101, .36);
  --booking-accent: #44389f;
  --booking-ink: #fff;
}

.hardware-band,
.discord-band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 6vw, 104px);
  scroll-margin-top: 85px;
}

.hardware-band { z-index: 1; padding-block: 8px clamp(48px, 6vw, 92px); }
.hardware-band::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 -1% auto;
  height: clamp(420px, calc(300px + 15.5vw), 530px);
  transform: translateY(-17%);
  /* MSI MAG B650 TOMAHAWK WIFI product photography, used as a decorative backdrop. */
  background: url('assets/msi-b650.webp') 25% 4px / auto calc(100% - 8px) no-repeat;
  opacity: .24; filter: grayscale(1);
  -webkit-mask-image: radial-gradient(ellipse 57% 70% at 30% 41%, #000, transparent 91%);
  mask-image: radial-gradient(ellipse 57% 70% at 30% 41%, #000, transparent 91%);
}
[data-theme="relay"] .hardware-band::before { opacity: .12; }
.discord-band { padding-block: clamp(46px, 6vw, 88px) 0; }
.discord-band::before {
  position: absolute;
  inset: 3% -1% -6%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 79% 66%, rgba(106, 96, 226, .19), transparent 65%);
}
.discord-band::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 76%, transparent);
}

.hardware-intro { min-width: 0; align-self: start; }
.board-drawing {
  display: block;
  width: clamp(155px, 16vw, 225px);
  height: auto;
  margin: -16px 0 7px -9px;
  color: var(--board-ink);
}
.board-pcb { fill: var(--board-fill); stroke-width: 1.7; }
.board-part { stroke-width: 1.35; }
.board-traces { opacity: .44; stroke-width: .9; }
.board-mounts { opacity: .8; }
.discord-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 17px; border-radius: 13px; background: #e0e3ff; }
.discord-mark img { width: 27px; height: auto; }

#before-buy h2 {
  max-width: 15em;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.hardware-intro > p,
.discord-invite > p {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}
html:lang(en) .discord-invite > p { max-width: none; text-wrap: balance; }
.model-help { max-width: 54ch; margin-top: 14px; }
.model-help button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 40px;
  color: var(--board-ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: start;
  font-size: .875rem;
  font-weight: 650;
}
.model-help button::before {
  content: "+";
  font-size: 1.15rem;
  font-weight: 500;
  flex: 0 0 .7em;
}
.model-help button:is(:hover, :focus-visible) { color: var(--fg); }
.model-help button[aria-expanded="true"]::before { content: "−"; }
.model-help ol { margin: 0; padding-inline-start: 1.6em; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.model-help li + li { margin-top: 3px; }
.model-help kbd, .model-help code, .model-help strong { color: var(--fg); }
.model-help button[aria-expanded="false"] + ol { visibility: hidden; }

.board-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: clamp(20px, 3.4vw, 44px);
  border: 1px solid var(--board-line);
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0%, var(--board-fill), transparent 74%),
    linear-gradient(120deg, var(--board-fill), transparent);
}
.board-finder > label { margin-bottom: 12px; font-weight: 700; }
.board-query {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 5px 5px 15px;
  border: 1px solid var(--board-line);
  border-radius: 11px;
  background: var(--board-input);
}
.board-query .ui-icon { color: var(--board-ink); }
.board-query input {
  width: 0;
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--fg);
  background: transparent;
  font-size: 1rem;
}
.board-query input::placeholder { color: var(--muted); opacity: 1; }
.board-query .button {
  padding-inline: clamp(13px, 1.8vw, 25px);
  border-radius: 7px;
  background: var(--board-ink);
  color: var(--board-input);
}
.board-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin: 9px 0 12px; }
.board-examples > span { margin-right: 3px; color: var(--muted); font-size: .8125rem; }
.board-examples button {
  min-height: 36px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--board-fill);
  color: var(--board-ink);
  font-size: .8125rem;
  font-weight: 650;
}
.board-examples button:hover { border-color: var(--board-line); }
.board-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.board-combo { position: relative; min-width: 0; }
.board-query { transition: border-color .17s, box-shadow .17s; }
.board-query:has(input:focus-visible):not(:has(button:hover)) { border-color: var(--board-ink); box-shadow: 0 0 0 3px var(--board-line); }
.board-popup {
  position: absolute; z-index: 4; inset: calc(100% + 5px) 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--board-line); border-radius: 11px;
  color: var(--fg); background: var(--board-input);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .27);
}
.board-popup.above { inset: auto 0 calc(100% + 5px); }
.board-hint { margin: 0; padding: 9px 13px; color: var(--muted); font-size: .81rem; }
.board-results {
  position: relative; min-height: 0; max-height: min(216px, 34vh); overflow-y: auto;
  overscroll-behavior: contain; list-style: none; margin: 0; padding: 4px;
  border-top: 1px solid var(--board-line);
}
.board-results li {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  min-height: 44px; padding: 7px 10px; cursor: pointer; border-radius: 6px; font-size: .87rem;
}
.board-results li:hover, .board-results [aria-selected="true"] { background: var(--raised); }
.board-results [aria-selected="true"] { box-shadow: inset 2px 0 var(--board-ink); }
.board-results strong { overflow-wrap: anywhere; }
.board-results .service-tag { color: var(--board-ink); white-space: nowrap; font-size: .78rem; }
.board-verdict {
  --pass: #8ee5ca; --fail: #ffb296;
  --pass-wash: rgba(77, 190, 157, .09); --fail-wash: rgba(232, 128, 89, .12);
  container-type: inline-size;
  margin-top: 8px;
}
[data-theme="relay"] .board-verdict {
  --pass: #166954; --fail: #973f29;
  --pass-wash: #e5f3ec; --fail-wash: #faeae2;
}
.board-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px;
  padding: 17px 15px; border-block: 1px solid var(--board-line);
  background: linear-gradient(90deg, var(--board-input) 38%, transparent),
    repeating-linear-gradient(135deg, transparent 0 9px, var(--board-fill) 9px 10px), var(--board-input);
}
.board-caption { margin: 0 0 5px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.board-verdict h3 { margin: 0; font-size: 1.12rem; line-height: 1.26; overflow-wrap: anywhere; text-wrap: balance; }
.board-gauge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--pass) 0 var(--supported-angle), var(--fail) 0);
}
.board-gauge b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--board-input); font: 700 .94rem/1 ui-monospace, monospace;
}
.board-verdict ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.board-verdict li {
  --state: var(--pass); --wash: var(--pass-wash);
  display: grid; align-content: start; justify-items: start; gap: 7px; min-width: 0;
  padding: 12px 10px; border: 1px solid var(--board-line); border-radius: 10px;
  background: linear-gradient(135deg, var(--wash), transparent 90%), var(--board-input);
}
.board-verdict li[data-supported="false"] { --state: var(--fail); --wash: var(--fail-wash); border-color: color-mix(in srgb, var(--fail) 45%, transparent); }
.board-verdict li svg { width: 32px; height: 32px; fill: none; stroke: var(--state); color: var(--state); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.board-verdict .button-purchase { justify-self: stretch; margin-top: 4px; min-height: 36px; padding: 6px 10px; font-size: .84rem; }
.board-verdict li b { font-size: .92rem; }
.board-status { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; }
.board-why { padding: 2px 5px; border: 1px solid var(--board-line); border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; cursor: pointer; }
.board-why:is(:hover,:focus-visible) { color: var(--fg); background: var(--raised); }
.board-verdict li strong { display: inline-flex; align-items: center; gap: 5px; color: var(--state); font-size: .77rem; }
.board-verdict li strong::before { content: ''; width: 8px; height: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.board-verdict li[data-supported="false"] strong::before { width: 9px; height: 2px; border: 0; background: currentColor; transform: none; }
@container (max-width: 26rem) {
  .board-verdict ul { grid-template-columns: 1fr; gap: 5px; }
  .board-verdict li { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 3px 9px; padding: 9px 10px; }
  .board-verdict li svg { grid-area: 1 / 1 / 3 / 2; }
  .board-verdict li b, .board-verdict .board-status { grid-column: 2; }
  .board-verdict .button-purchase { grid-area: 1 / 3 / 3 / 4; margin: 0; min-height: 42px; }
}

.discord-booking { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 23px; }
.discord-booking .button {
  gap: 10px;
  min-height: 49px;
  padding-inline: 20px;
  border-radius: 9px;
  color: var(--booking-ink);
  background: var(--booking-accent);
}
.discord-rate { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: .875rem; }
.discord-rate strong { color: var(--fg); font-size: 1.35rem; letter-spacing: .035em; font-variant-numeric: tabular-nums; }
.discord-screen-book {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  border: 0; background: transparent; cursor: pointer; border-radius: inherit;
}
.discord-screen {
  position: relative;
  container-type: inline-size; min-width: 0; overflow: hidden; border: 1px solid #434757; border-radius: 14px;
  font-family: system-ui, sans-serif;
  background: #191b25; color: #f0eff8; box-shadow: 0 18px 48px -28px #080918;
}
@media (hover: hover) {
  .discord-screen:has(.discord-screen-book:hover) {
    border-color: var(--booking-accent);
    outline: 1px solid var(--booking-accent);
  }
}
.discord-screen-book:focus-visible { outline: none; }
.discord-screen:has(.discord-screen-book:focus-visible) {
  border-color: var(--booking-accent);
  outline: 2px solid var(--booking-accent);
  outline-offset: 2px;
}
.discord-screen figcaption, .call-deck { display: flex; gap: 12px; align-items: center; padding: 10px 13px; }
.discord-screen figcaption { background: #272937; border-bottom: 1px solid #373a48; font: 600 .8rem/1.3 var(--font); }
.call-platform, .call-person, .stream-label, .call-controls { display: inline-flex; align-items: center; gap: 6px; }
.call-platform img { width: 20px; height: 16px; filter: brightness(0) invert(1); }
.call-title { border-inline-start: 1px solid #555868; padding-inline-start: 12px; color: #c6c6d5; }
.call-window-marks { margin-inline-start: auto; color: #a2a3b1; font: 13px/1 Arial,sans-serif; }
.call-workspace { display: grid; grid-template-columns: minmax(66px,.8fr) minmax(0,3.4fr) minmax(70px,.85fr); }
.call-channels, .call-members { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 14px 8px; background: #232531; color: #d1d2e0; font-size: .68rem; }
.call-channels > strong { color: #fff; font-size: .7rem; }
.call-channels small, .call-members > small { color: #a9abbd; font-size: .59rem; letter-spacing: .045em; text-transform: uppercase; }
.call-channels small { margin-top: 5px; }
.call-channels b { color: #898ca1; margin-right: 1px; }
.channel-current { padding: 4px; margin-inline: -4px; border-radius: 4px; background: #3a3952; color: #f7f7ff; }
.channel-current svg { width: 12px; height: 12px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.3; }
.channel-speaker { display: flex; align-items: center; gap: 4px; margin-left: 4px; padding-left: 4px; border-left: 1px solid #484a5a; font-size: .6rem; }
.channel-speaker i { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; color: #fff; background: #505573; font: 600 8px/1 sans-serif; }
.channel-speaker:last-child i { background: #6b4564; }
.call-stage { min-width: 0; align-self: center; padding: 9px 7px; }
.shared-screen { position: relative; border-radius: 5px; overflow: hidden; }
.stream-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding-top: 6px; color: #b9bbcc; font-size: .64rem; }
.stream-footer strong { color: #ececf5; }
.member-row { display: flex; align-items: center; gap: 4px; line-height: 1.2; }
.member-row small { display: block; color: #a7aabd; font-size: .6rem; margin-top: 2px; }
.member-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; font: 600 .65rem/1 Arial,sans-serif; }
.host-icon { background: #505573; box-shadow: 0 0 0 1px #77d4b9; }
.guest-icon { background: #6b4564; }
.call-connected { display: inline-flex; gap: 6px; align-items: center; color: #9de4bc; font-size: .7rem; }
.call-connected i { width: 6px; height: 6px; border-radius: 50%; background: #76d99f; }
.call-deck { border-top: 1px solid #363846; }
@container (max-width: 425px) {
  .call-workspace { grid-template-columns: 54px minmax(0,1fr) 48px; }
  .call-channels, .call-members { padding: 8px 4px; gap: 5px; font-size: .55rem; }
  .call-channels > strong, .call-channels small, .call-members > small { font-size: .49rem; }
  .member-row { flex-direction: column; text-align: center; }
  .member-row small { display: none; }
  .call-stage { padding: 4px; }
  .channel-speaker { display: none; }
  .stream-label { font-size: .58rem; }
}
.shared-screen > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.stream-hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shared-screen > img, .stream-hud { transform: scale(1.35); transform-origin: 45.3% 50%; }
.stream-label { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 5px; background: #12141de8; color: #fff; font-size: .72rem; }
.stream-label i { width: 7px; height: 7px; border-radius: 50%; background: #ff646e; }
.call-deck { flex-wrap: wrap; gap: 8px; }
.call-person { color: #e9eaf1; font-size: .75rem; font-weight: 600; }
.call-person i, .call-controls i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; }
.call-person i { background: #47586b; color: #fff; font: 700 12px/1 Arial,sans-serif; }
.call-person:first-child i { background: #333b64; box-shadow: 0 0 0 1.5px #7dcbae; }
.call-controls { margin-inline-start: auto; gap: 5px; }
.call-controls i { background: #343746; }
.call-controls .hangup { width: 36px; border-radius: 14px; background: #ad3844; }
.call-deck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 781px) and (max-width: 1199px) {
  html:lang(en) .discord-band { grid-template-columns: minmax(min(32rem, 65%), 1fr) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 780px) {
  .hardware-band::before {
    inset: 0 0 auto; height: clamp(215px, 58vw, 295px); transform: none;
    background-position: 78% 4px; background-size: auto calc(100% - 4px);
    -webkit-mask-image: linear-gradient(#000 14%, transparent min(80%, 410px));
    mask-image: linear-gradient(#000 14%, transparent min(80%, 410px));
  }
  .hardware-band, .discord-band { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hardware-intro > p, .discord-invite > p { max-width: 60ch; }
  .discord-screen { width: min(100%, 550px); }
  .board-drawing { width: 155px; margin-bottom: 0; }
  .discord-mark { margin-bottom: 13px; }
}

@media (max-width: 440px) {
  .board-finder { padding: 17px 14px; border-radius: 15px; }
  .board-query { gap: 7px; padding-inline-start: 9px; }
  .board-query .button { padding-inline: 12px; }
  .board-examples button { min-height: 40px; }
  .discord-screen figcaption, .call-deck { padding: 8px; }
}
