:root {
  --product: #e0871f;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button,
summary {
  touch-action: manipulation;
}

svg {
  display: block;
  height: 20px;
  width: 20px;
  stroke-width: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.site-header__inner,
main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bark-logo__module {
  color: var(--product);
}

.bark-theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 34px);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.bark-theme-switch button {
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.bark-theme-switch button:hover,
.bark-theme-switch button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.bark-theme-switch svg {
  width: 17px;
  height: 17px;
}

main {
  padding: 56px 0 72px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 72px;
  min-height: min(620px, calc(100dvh - 130px));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.14;
}

h1 {
  max-width: 680px;
  font-size: 48px;
  font-weight: 700;
}

h2 {
  font-size: 30px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--ink2);
  font-size: 19px;
}

.ready-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.ready-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink2);
}

.ready-list svg {
  flex: none;
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}

.button--secondary {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.connection-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-up);
}

.connection-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.connection-preview__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.connection-preview__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}

.connection-preview__status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.connection-preview__body {
  padding: 26px 24px 22px;
}

.connection-preview__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.connection-preview__body > strong {
  display: block;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 20px;
}

.connection-preview dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.connection-preview dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.connection-preview dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.connection-preview dt,
.connection-preview dd {
  margin: 0;
}

.connection-preview dt {
  color: var(--muted);
  font-size: 13px;
}

.connection-preview dd {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.connection-preview > p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--warn-soft);
  color: var(--ink2);
  font-size: 13px;
}

.connection-preview > p svg {
  flex: none;
  color: var(--warn);
}

.guide,
.help {
  padding-top: 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.platform-tabs button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}

.platform-tabs button[aria-selected="true"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.platform-panel {
  padding-top: 12px;
}

.platform-panel[hidden] {
  display: none;
}

.instruction-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.instruction-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.instruction-step__number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.instruction-step p {
  margin: 8px 0 0;
  color: var(--ink2);
  font-size: 15px;
}

code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field);
  padding: 1px 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
}

.platform-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.platform-action div {
  display: grid;
  gap: 3px;
}

.platform-action span {
  color: var(--muted);
  font-size: 13px;
}

.official-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.official-note svg {
  flex: none;
  color: var(--accent);
}

.section-heading--simple {
  align-items: start;
}

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

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

.issue-list details:first-child {
  border-top: 0;
}

.issue-list summary {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.issue-list summary::-webkit-details-marker {
  display: none;
}

.issue-list summary > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.issue-list summary > span svg {
  color: var(--accent);
}

.issue-list summary > svg {
  flex: none;
  color: var(--muted);
  transition: transform 160ms ease;
}

.issue-list details[open] summary > svg {
  transform: rotate(180deg);
}

.issue-list details > div {
  padding: 0 32px 20px;
}

.issue-list details p {
  max-width: 820px;
  margin: 0;
  color: var(--ink2);
}

.support-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
}

.support-note > svg {
  color: var(--accent);
}

.support-note h3 {
  margin-bottom: 6px;
}

.support-note p {
  margin: 0;
  color: var(--ink2);
}

.site-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--logo-font);
}

@media (max-width: 820px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  h1 {
    font-size: 40px;
  }

  .connection-preview {
    max-width: 580px;
  }
}

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

  .site-header__inner,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header__inner {
    min-height: 62px;
  }

  .bark-logo__subtitle {
    display: none;
  }

  .bark-theme-switch {
    grid-template-columns: repeat(3, 30px);
  }

  .bark-theme-switch button {
    width: 30px;
    height: 30px;
  }

  main {
    padding-top: 32px;
  }

  .intro {
    gap: 32px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .lead {
    font-size: 17px;
  }

  .button--primary {
    width: 100%;
  }

  .connection-preview__top,
  .connection-preview__body {
    padding-inline: 16px;
  }

  .connection-preview dl div {
    gap: 14px;
  }

  .guide,
  .help {
    padding-top: 56px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .platform-tabs {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .instruction-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .instruction-step__number {
    width: 32px;
    height: 32px;
  }

  .platform-action {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .platform-action .button {
    width: 100%;
  }

  .issue-list summary {
    gap: 12px;
    font-size: 15px;
  }

  .issue-list details > div {
    padding-left: 0;
  }

  .support-note {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 0;
  }

  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

