/* BSuite storefront. Palette from the apps' live CSS: graphite #161d27, honey #f5b82e, paper #f6f3ec. */
:root {
  --graphite: #161d27;
  --honey: #f5b82e;
  --paper: #f6f3ec;

  --bg: var(--paper);
  --surface: #fffdf8;
  --ink: var(--graphite);
  --muted: #5a626d;
  --line: #e3ddd0;
  --accent-ink: #8a5a00;          /* honey-derived text that passes contrast on paper */
  --btn-bg: var(--graphite);
  --btn-ink: var(--paper);
  --btn-hover: #2a3442;
  --off-bg: transparent;
  --off-ink: #7a818a;
  --off-line: #d6cfbf;
  --shadow: 0 1px 0 rgba(22, 29, 39, .04), 0 6px 20px -12px rgba(22, 29, 39, .18);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--graphite);
    --surface: #1d2531;
    --ink: #eeeae1;
    --muted: #a3aab3;
    --line: #2c3644;
    --accent-ink: var(--honey);
    --btn-bg: var(--honey);
    --btn-ink: var(--graphite);
    --btn-hover: #ffc94f;
    --off-ink: #7f8792;
    --off-line: #354152;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark {
  font: 700 1.5rem/1 var(--serif);
  letter-spacing: -.01em;
}
.wordmark span { font-weight: 400; }
.badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--graphite);
}
.maker { color: var(--muted); font-size: .9rem; }

/* Hero */
.hero { padding: 40px 0 28px; max-width: 44rem; }
.hero h1 {
  font: 600 clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem)/1.15 var(--serif);
  letter-spacing: -.015em;
}
.lede { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.invite {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--honey);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: .95rem;
}

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 14px; }
.mark { width: 56px; height: 56px; flex: none; }
.name { font: 600 1.45rem/1.2 var(--serif); }
.replaces { font-size: .85rem; color: var(--muted); }
.desc { font-size: 1rem; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta dt {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.tag {
  display: inline-block;
  vertical-align: 1px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 1px 6px;
  border: 1px dashed var(--off-line);
  border-radius: 4px;
  color: var(--muted);
}

.news h4 {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.changes { padding-left: 0; list-style: none; }
.changes li { position: relative; padding-left: 16px; }
.changes li + li { margin-top: 4px; }
.changes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--honey);
}
.changes li.empty { color: var(--muted); font-style: italic; }
.changes li.empty::before { background: var(--off-line); }

.downloads {
  margin-top: auto;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 420px) {
  .downloads { grid-template-columns: 1fr 1fr; }
  .downloads > .btn:nth-child(3) { grid-column: 1 / -1; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 600 .95rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
}
.btn { gap: .5em; }
.btn .icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}
.btn .icon-mac { margin-top: -.12em; }   /* Apple glyph sits low in its box; lift to the cap line */
a.btn:hover { background: var(--btn-hover); }
a.btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
.btn:disabled {
  background: var(--off-bg);
  color: var(--off-ink);
  border: 1px dashed var(--off-line);
  cursor: not-allowed;
  font-weight: 500;
}

.status-msg {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

/* Testers */
.testers {
  margin-top: 40px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.testers h2 { font: 600 1.4rem/1.2 var(--serif); }
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--honey);
  color: var(--graphite);
  font: 700 .9rem/1 var(--sans);
}
.step-title { display: block; color: var(--ink); font-weight: 600; }
.report { margin-top: 20px; font-size: .95rem; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
