/* BandTrigger product page.
   Every rule is scoped under .bt so the page can sit inside an existing site
   without touching its styles. Colours and type live in the tokens below. */

@font-face { font-family: "BT Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BT Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BT Plex Condensed"; src: url("../fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "BT Plex Condensed"; src: url("../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BT Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

.bt {
  /* palette */
  --bt-paper: #edf0f2;   /* page */
  --bt-ink: #14171b;     /* text, primary button */
  --bt-slate: #4b5560;   /* secondary text */
  --bt-rule: #cdd3d9;    /* dividers, outlines */
  --bt-panel: #121417;   /* the plug-in's own background, around screenshots */
  --bt-panel-2: #1d2126;

  /* the plug-in's eight band colours, used only where they mean a band */
  --bt-band-1: #f2a23a; --bt-band-2: #4fb3e8; --bt-band-3: #6fd08c; --bt-band-4: #e86f9a;
  --bt-band-5: #a98bf0; --bt-band-6: #4fd1c5; --bt-band-7: #f07a5a; --bt-band-8: #e8d45a;

  /* type */
  --bt-sans: "BT Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bt-display: "BT Plex Condensed", "Arial Narrow", system-ui, sans-serif;
  --bt-mono: "BT Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --bt-max: 1120px;
  --bt-gutter: clamp(16px, 4vw, 40px);
  --bt-measure: 62ch;

  background: var(--bt-paper);
  color: var(--bt-ink);
  font-family: var(--bt-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bt *, .bt *::before, .bt *::after { box-sizing: border-box; }
.bt img { display: block; max-width: 100%; height: auto; }

.bt .bt-wrap { max-width: var(--bt-max); margin: 0 auto; padding: 0 var(--bt-gutter); }

/* --- type ---------------------------------------------------------------- */
.bt h1, .bt h2, .bt h3 { font-family: var(--bt-display); font-weight: 600; margin: 0; color: var(--bt-ink); }
.bt h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 12ch; }
.bt h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.bt h3 { font-size: 1.375rem; line-height: 1.25; }
.bt p { margin: 0; max-width: var(--bt-measure); }
.bt p + p { margin-top: 0.9em; }
.bt .bt-lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.5; color: var(--bt-ink); }
.bt .bt-quiet { color: var(--bt-slate); }
.bt code, .bt .bt-mono { font-family: var(--bt-mono); font-size: 0.92em; }
.bt strong { font-weight: 600; }

.bt a { color: var(--bt-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.bt a:hover { text-decoration-thickness: 2px; }
.bt a:focus-visible, .bt .bt-button:focus-visible { outline: 3px solid var(--bt-ink); outline-offset: 3px; border-radius: 4px; }

/* --- header -------------------------------------------------------------- */
.bt .bt-header { padding: 22px 0; border-bottom: 1px solid var(--bt-rule); }
.bt .bt-header .bt-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.bt .bt-wordmark { font-family: var(--bt-display); font-weight: 600; font-size: 1.375rem; letter-spacing: 0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bt .bt-wordmark svg { flex: none; }
.bt .bt-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 0.9375rem; }
.bt .bt-nav a { text-decoration: none; color: var(--bt-slate); padding: 6px 0; }
.bt .bt-nav a:hover { color: var(--bt-ink); text-decoration: underline; }

/* --- hero ---------------------------------------------------------------- */
.bt .bt-hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.bt .bt-hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.bt .bt-hero-text .bt-lede { margin-top: 0; }
.bt .bt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.bt .bt-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--bt-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 8px; border: 1.5px solid var(--bt-ink);
}
.bt .bt-button-primary { background: var(--bt-ink); color: var(--bt-paper); }
.bt .bt-button-primary:hover { background: #2a2f36; border-color: #2a2f36; }
.bt .bt-button-secondary { background: transparent; color: var(--bt-ink); }
.bt .bt-button-secondary:hover { background: rgba(20, 23, 27, 0.06); }
.bt .bt-button svg { flex: none; }

.bt .bt-specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 28px 0 0; font-size: 0.9375rem; }
.bt .bt-specs dt { color: var(--bt-slate); }
.bt .bt-specs dd { margin: 0; }

.bt .bt-shot { margin: clamp(40px, 6vw, 64px) 0 0; }
.bt .bt-shot img { border-radius: 14px; background: var(--bt-panel); width: 100%; }
.bt .bt-shot figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--bt-slate); }

/* The eight bands as a strip: the page's signature, straight from the plug-in. */
.bt .bt-strip { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.bt .bt-strip li { font-size: 0.8125rem; color: var(--bt-slate); line-height: 1.3; }
.bt .bt-strip li::before { content: ""; display: block; height: 6px; border-radius: 3px; margin-bottom: 8px; background: var(--c); }

/* --- sections ------------------------------------------------------------ */
.bt .bt-section { padding: clamp(64px, 9vw, 112px) 0 0; }
.bt .bt-section > .bt-wrap > h2 { margin-bottom: 20px; }
.bt .bt-section-intro { margin-bottom: clamp(32px, 5vw, 56px); }

.bt .bt-feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 56px; align-items: start; padding: 36px 0; border-top: 1px solid var(--bt-rule); }
.bt .bt-feature h3 { margin-bottom: 12px; }
.bt .bt-feature figure { margin: 0; }
.bt .bt-feature figure img { border-radius: 10px; background: var(--bt-panel); width: 100%; }

.bt .bt-notes { border-collapse: collapse; margin-top: 20px; font-size: 0.9375rem; }
.bt .bt-notes th, .bt .bt-notes td { text-align: left; padding: 5px 20px 5px 0; font-weight: 400; }
.bt .bt-notes thead th { color: var(--bt-slate); font-size: 0.8125rem; border-bottom: 1px solid var(--bt-rule); }
.bt .bt-notes tbody th { display: flex; align-items: center; gap: 10px; }
.bt .bt-notes tbody th::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.bt .bt-notes td.bt-note { font-family: var(--bt-mono); font-weight: 500; font-size: 0.875rem; }
.bt .bt-notes .bt-off { color: var(--bt-slate); }

/* --- install steps (a real sequence, so they're numbered) ----------------- */
.bt .bt-steps { list-style: none; margin: 0; padding: 0; counter-reset: bt-step; max-width: 760px; }
.bt .bt-steps > li { counter-increment: bt-step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-top: 1px solid var(--bt-rule); }
.bt .bt-steps > li::before {
  content: counter(bt-step);
  font-family: var(--bt-display); font-weight: 600; font-size: 1.125rem;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--bt-ink);
  display: grid; place-items: center; line-height: 1;
}
.bt .bt-steps h3 { font-size: 1.1875rem; margin: 4px 0 6px; }
.bt .bt-steps p { color: var(--bt-ink); }
.bt .bt-steps .bt-button { margin-top: 14px; }
.bt .bt-path { font-weight: 600; }

.bt .bt-aside { margin-top: 28px; max-width: 760px; padding: 18px 20px; border: 1px solid var(--bt-rule); border-radius: 10px; font-size: 0.9375rem; }
.bt .bt-aside h3 { font-size: 1.0625rem; margin-bottom: 6px; font-family: var(--bt-sans); }

/* --- Live routing diagram ------------------------------------------------- */
.bt .bt-routing { display: flex; align-items: stretch; gap: 0; margin: 8px 0 40px; max-width: 860px; }
.bt .bt-track { flex: 1 1 0; background: var(--bt-panel); color: #e6e8ea; border-radius: 10px; padding: 16px; min-width: 0; }
.bt .bt-track-name { font-family: var(--bt-display); font-weight: 600; font-size: 1.125rem; color: #fff; }
.bt .bt-track-kind { font-size: 0.8125rem; color: #9aa3ae; }
.bt .bt-device { margin-top: 14px; background: var(--bt-panel-2); border: 1px solid #2c3036; border-radius: 6px; padding: 10px 12px; font-size: 0.875rem; }
.bt .bt-device strong { color: #fff; }
.bt .bt-device .bt-mini-strip { display: flex; gap: 3px; margin-top: 8px; }
.bt .bt-device .bt-mini-strip span { flex: 1; height: 4px; border-radius: 2px; background: var(--c); }
.bt .bt-setting { margin-top: 10px; font-size: 0.8125rem; color: #9aa3ae; }
.bt .bt-setting b { color: #e6e8ea; font-weight: 600; }
.bt .bt-flow { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.8125rem; color: var(--bt-slate); text-align: center; }
.bt .bt-flow svg { width: 100%; height: 16px; }

.bt .bt-daws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 36px; max-width: 900px; }
.bt .bt-daws div { padding: 16px 0; border-top: 1px solid var(--bt-rule); }
.bt .bt-daws h3 { font-family: var(--bt-sans); font-size: 1rem; margin-bottom: 4px; }
.bt .bt-daws p { font-size: 0.9375rem; color: var(--bt-slate); }

/* --- source -------------------------------------------------------------- */
.bt .bt-source { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: start; }

/* --- footer -------------------------------------------------------------- */
.bt .bt-footer { margin-top: clamp(64px, 9vw, 112px); padding: 28px 0 40px; border-top: 1px solid var(--bt-rule); font-size: 0.875rem; color: var(--bt-slate); }
.bt .bt-footer .bt-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.bt .bt-footer a { color: var(--bt-slate); }

/* --- narrow screens ------------------------------------------------------ */
@media (max-width: 860px) {
  .bt .bt-hero-text, .bt .bt-feature, .bt .bt-source { grid-template-columns: minmax(0, 1fr); }
  .bt .bt-routing { flex-direction: column; }
  .bt .bt-flow { flex-basis: auto; padding: 8px 0; }
  .bt .bt-flow svg { width: 44px; height: 16px; transform: rotate(90deg); margin: 12px 0; }
  .bt .bt-daws { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bt .bt-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
  .bt .bt-button { width: 100%; justify-content: center; }
  .bt .bt-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bt * { scroll-behavior: auto !important; }
}
