:root {
  --bc-paper: #e8edeb;
  --bc-paper-muted: #dce3e0;
  --bc-surface: #f7f9f8;
  --bc-ink: #17201d;
  --bc-ink-soft: #50605a;
  --bc-line: rgba(23, 32, 29, 0.14);
  --bc-green: #168a43;
  --bc-green-dark: #12372b;
  --bc-green-soft: rgba(22, 138, 67, 0.1);
  --bc-coral: #c94d31;
  --bc-dark: #1d2321;
  --bc-white: #f7faf8;
  --bc-page: 1180px;
}

html {
  scroll-padding-top: 78px;
}

body.buds-install-page {
  min-width: 320px;
  overflow-x: clip;
  color: var(--bc-ink);
  background: var(--bc-paper);
  font-size: 16px;
}

.buds-install-page h1,
.buds-install-page h2,
.buds-install-page h3 {
  color: inherit;
  letter-spacing: 0;
}

.bc-shell {
  width: min(calc(100% - 48px), var(--bc-page));
  margin-inline: auto;
}

.bc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bc-line);
  background: rgba(232, 237, 235, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bc-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 32px), var(--bc-page));
  min-height: 62px;
  margin-inline: auto;
}

.bc-back,
.bc-brand,
.bc-header-link {
  color: var(--bc-ink);
  font-family: var(--ap-font-heading);
  font-size: 13px;
  font-weight: 650;
}

.bc-back,
.bc-brand {
  display: inline-flex;
  align-items: center;
}

.bc-back {
  justify-self: start;
  gap: 7px;
}

.bc-back svg {
  width: 17px;
  height: 17px;
}

.bc-brand {
  gap: 9px;
}

.bc-brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.bc-header-link {
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--bc-line);
  border-radius: 6px;
  background: var(--bc-surface);
}

.bc-back:hover,
.bc-brand:hover,
.bc-header-link:hover {
  color: var(--bc-green);
}

.bc-hero {
  color: var(--bc-white);
  background: var(--bc-green-dark);
}

.bc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 72px;
  padding-block: 66px 54px;
}

.bc-kicker,
.bc-section-heading > div > p,
.bc-runtime-kicker,
.bc-bridge-kicker {
  color: #91d8aa;
  font-family: var(--ap-font-heading);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bc-hero h1 {
  margin-top: 14px;
  color: #fff;
  font-size: 64px;
  line-height: 1;
}

.bc-offer {
  margin-top: 12px;
  color: #c8d8d1;
  font-family: var(--ap-font-display);
  font-size: 25px;
}

.bc-lead {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(247, 250, 248, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--ap-font-heading);
  font-size: 13px;
  font-weight: 700;
}

.bc-button-primary {
  color: #fff;
  background: var(--bc-coral);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.bc-button-primary:hover {
  color: #fff;
  background: #a93b25;
}

.bc-button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.bc-button-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.bc-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bc-hero-facts div {
  padding: 14px 12px 14px 0;
}

.bc-hero-facts div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.bc-hero-facts dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.bc-hero-facts dd {
  margin: 5px 0 0;
  color: #fff;
  font-family: var(--ap-font-heading);
  font-size: 14px;
  font-weight: 720;
}

.bc-hero-media {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.bc-device-frame {
  width: 270px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #f3f6f7;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

.bc-device-frame img {
  width: 100%;
  height: auto;
}

.buds-android-page .bc-device-frame {
  width: 282px;
}

.bc-hero-media figcaption {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.bc-band {
  padding-block: 72px;
  background: var(--bc-paper);
}

.bc-band-muted {
  background: var(--bc-paper-muted);
}

.bc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.bc-section-heading h2,
.bc-runtime h2,
.bc-bridge-grid h2 {
  margin-top: 8px;
  font-size: 38px;
  line-height: 1.12;
}

.bc-section-heading > p {
  max-width: 520px;
  color: var(--bc-ink-soft);
  line-height: 1.8;
}

.bc-requirements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bc-requirement {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--bc-line);
  border-radius: 8px;
  background: var(--bc-surface);
}

.bc-requirement > span {
  color: var(--bc-green);
  font-family: var(--ap-font-mono);
  font-size: 10px;
  font-weight: 750;
}

.bc-requirement h3 {
  margin-top: 38px;
  font-size: 22px;
}

.bc-requirement p {
  margin-top: 12px;
  color: var(--bc-ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.bc-install-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
}

.bc-install-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  border-top: 1px solid var(--bc-line);
}

.bc-install-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--bc-line);
  color: var(--bc-ink-soft);
  font-family: var(--ap-font-heading);
  font-size: 13px;
}

.bc-install-nav a:hover {
  color: var(--bc-green);
}

.bc-steps {
  min-width: 0;
  border-top: 1px solid var(--bc-line);
}

.bc-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding-block: 30px;
  border-bottom: 1px solid var(--bc-line);
}

.bc-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #fff;
  background: var(--bc-green-dark);
  font-family: var(--ap-font-mono);
  font-size: 12px;
  font-weight: 750;
}

.bc-step h3 {
  font-size: 26px;
}

.bc-step p {
  margin-top: 12px;
  color: var(--bc-ink-soft);
  line-height: 1.85;
}

.bc-step pre,
.bc-bridge-grid pre {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #eaf2ee;
  background: var(--bc-dark);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bc-step code,
.bc-bridge-grid code {
  color: inherit;
  background: transparent;
}

.bc-step p code {
  color: #0e6330;
  background: var(--bc-green-soft);
}

.bc-step p a {
  color: #0e6330;
  font-weight: 700;
}

.bc-step p a:hover {
  color: var(--bc-coral);
}

.bc-runtime {
  padding-block: 66px;
  color: var(--bc-white);
  background: var(--bc-dark);
}

.bc-runtime-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.bc-runtime h2 {
  color: #fff;
}

.bc-runtime-grid > div > p:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.85;
}

.bc-runtime-list {
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bc-runtime-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-block: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bc-runtime-list span {
  color: #91d8aa;
  font-family: var(--ap-font-mono);
  font-size: 12px;
}

.bc-runtime-list p {
  color: rgba(255, 255, 255, 0.72);
}

.bc-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--bc-line);
}

.bc-support-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.bc-support-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bc-support-table th,
.bc-support-table td {
  padding: 17px 14px;
  border-bottom: 1px solid var(--bc-line);
  text-align: left;
  vertical-align: middle;
}

.bc-support-table th {
  color: var(--bc-ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.bc-support-table td {
  font-size: 14px;
}

.bc-support-table th:first-child,
.bc-support-table td:first-child {
  padding-left: 0;
  font-weight: 700;
}

.bc-status {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.bc-status-ready {
  color: #0d6b32;
  border-color: rgba(22, 138, 67, 0.28);
  background: rgba(22, 138, 67, 0.08);
}

.bc-status-path {
  color: #73541c;
  border-color: rgba(160, 116, 38, 0.3);
  background: rgba(160, 116, 38, 0.08);
}

.bc-status-locked {
  color: #724b43;
  border-color: rgba(142, 80, 66, 0.28);
  background: rgba(142, 80, 66, 0.08);
}

.bc-trouble-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
}

.bc-section-heading-compact {
  display: block;
  margin: 0;
}

.bc-trouble-list {
  border-top: 1px solid var(--bc-line);
}

.bc-trouble-list details {
  border-bottom: 1px solid var(--bc-line);
}

.bc-trouble-list summary {
  padding: 18px 34px 18px 0;
  color: var(--bc-ink);
  cursor: pointer;
  font-family: var(--ap-font-heading);
  font-size: 15px;
  font-weight: 700;
}

.bc-trouble-list details p {
  max-width: 720px;
  padding: 0 34px 20px 0;
  color: var(--bc-ink-soft);
  line-height: 1.85;
}

.bc-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.bc-bridge-grid > div:first-child > p:not(.bc-bridge-kicker) {
  margin-top: 18px;
  color: var(--bc-ink-soft);
  line-height: 1.85;
}

.bc-security-note {
  padding: 24px;
  border-left: 3px solid var(--bc-green);
  background: var(--bc-surface);
}

.bc-security-note h3 {
  font-size: 23px;
}

.bc-security-note p {
  margin-top: 12px;
  color: var(--bc-ink-soft);
  line-height: 1.8;
}

.bc-security-note a {
  display: inline-block;
  margin-top: 18px;
  color: var(--bc-green);
  font-weight: 700;
}

.bc-footer {
  padding-block: 30px;
  color: rgba(255, 255, 255, 0.62);
  background: #121715;
}

.bc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bc-footer p {
  font-size: 12px;
}

.bc-footer-inner > div {
  display: flex;
  gap: 18px;
}

.bc-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

@media (max-width: 980px) {
  .bc-hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .bc-hero-facts,
  .bc-requirements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-hero-facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .bc-hero-facts div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .bc-install-layout,
  .bc-runtime-grid,
  .bc-trouble-layout,
  .bc-bridge-grid {
    grid-template-columns: 1fr;
  }

  .bc-install-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 0;
    padding-bottom: 4px;
  }

  .bc-install-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid var(--bc-line);
    border-radius: 5px;
    background: var(--bc-surface);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .bc-shell {
    width: min(calc(100% - 28px), var(--bc-page));
  }

  .bc-header-inner {
    width: calc(100% - 24px);
    min-height: 58px;
  }

  .bc-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px 36px;
  }

  .bc-hero h1 {
    font-size: 44px;
  }

  .bc-offer {
    font-size: 21px;
  }

  .bc-lead {
    font-size: 15px;
  }

  .bc-device-frame {
    width: 230px;
    max-height: 320px;
    border-width: 5px;
    border-radius: 26px;
  }

  .buds-android-page .bc-device-frame {
    width: 230px;
  }

  .bc-band {
    padding-block: 52px;
  }

  .bc-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
  }

  .bc-section-heading h2,
  .bc-runtime h2,
  .bc-bridge-grid h2 {
    font-size: 30px;
  }

  .bc-requirement {
    min-height: 190px;
  }

  .bc-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding-block: 24px;
  }

  .bc-step-number {
    width: 38px;
    height: 38px;
  }

  .bc-step h3 {
    font-size: 22px;
  }

  .bc-step p {
    font-size: 14px;
  }

  .bc-runtime {
    padding-block: 52px;
  }

  .bc-security-note {
    padding: 20px;
  }

  .bc-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .bc-header-inner {
    grid-template-columns: 1fr auto;
  }

  .bc-brand {
    display: none;
  }

  .bc-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .bc-button {
    width: 100%;
  }

  .bc-actions .bc-button-secondary,
  .bc-offer,
  .bc-hero-facts,
  .bc-hero-media figcaption {
    display: none;
  }

  .bc-hero-grid {
    gap: 20px;
    padding-block: 24px 18px;
  }

  .bc-hero h1 {
    margin-top: 10px;
    font-size: 42px;
  }

  .bc-lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.72;
  }

  .bc-requirements {
    grid-template-columns: 1fr;
  }

  .bc-device-frame {
    width: 100%;
    height: 118px;
    max-height: none;
    border-width: 4px;
    border-radius: 8px;
  }

  .buds-android-page .bc-device-frame {
    width: 100%;
  }

  .bc-device-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }

  .bc-requirement {
    min-height: 0;
  }

  .bc-requirement h3 {
    margin-top: 24px;
  }

  .bc-support-table {
    min-width: 660px;
  }
}
