/* BYOS landing (/byos) — .src/homes/byos.php.
   Loaded with a plain <link> from the page body: $dashboard_styles is keyed by dashboard id
   and never fires for an anonymous visitor ($dashboard == 0), so it cannot be used here.
   Everything is .by-* scoped so it cannot leak into the shared chrome. */

.by-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.by-section {
  padding: 4.5rem 0;
}

.by-bg-alt {
  background: #f8f9fb;
}

/* ── hero ─────────────────────────────────────────────────────────────────── */

.by-hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(160deg, #111827 0%, #1f2937 60%, #312e81 100%);
  color: #fff;
  text-align: center;
}

.by-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* rgba(255,255,255,.82) on the #1f2937 mid-stop is 11.4:1 — the hero gradient is dark
     enough at every stop that this clears AAA, unlike a .6 alpha which would not. */
  color: rgba(255, 255, 255, .82);
}

.by-hero-title {
  margin: 0 auto 1rem;
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
}

.by-hero-sub {
  margin: 0 auto 2rem;
  max-width: 62ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
}

.by-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ── buttons ──────────────────────────────────────────────────────────────── */

.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.by-btn-primary {
  /* #4338ca on white text = 8.6:1. */
  background: #4338ca;
  color: #fff;
}

.by-btn-primary:hover,
.by-btn-primary:focus {
  background: #3730a3;
  color: #fff;
  text-decoration: none;
}

.by-btn-ghost {
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

.by-btn-ghost:hover,
.by-btn-ghost:focus {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
}

/* Visible keyboard focus on both variants — the dark hero would otherwise swallow the UA
   ring on .by-btn-primary. */
.by-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* ── value props ──────────────────────────────────────────────────────────── */

.by-props {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.by-prop-title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.by-prop-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  /* #4b5563 on #fff = 7.6:1, and on the #f8f9fb alt background = 7.3:1. */
  color: #4b5563;
}

/* Decorative leading icon (aria-hidden) on the /player/ door's statements. geticon() emits an
   SVG that inherits currentColor, so tint it via color on this wrapper rather than fill. */
.by-prop-icon {
  display: block;
  margin-bottom: .6rem;
  color: #4338ca;
  font-size: 1.35rem;
  line-height: 1;
}

.by-prop-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* ── section heads ────────────────────────────────────────────────────────── */

.by-section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #111827;
}

/* ── steps ────────────────────────────────────────────────────────────────── */

/* Explicit breakpoints rather than auto-fit: there are exactly FOUR steps, and auto-fit with
   a 280px minimum resolves to three columns on a 1280px desktop, orphaning step 4 on its own
   row. 1 / 2 / 4 keeps the sequence readable at every width and never leaves a single item
   stranded. */
.by-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .by-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .by-steps { grid-template-columns: repeat(4, 1fr); }
}

.by-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.by-step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #4338ca;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.by-step-title {
  margin: .2rem 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.by-step-body {
  margin: 0;
  font-size: .97rem;
  line-height: 1.6;
  color: #4b5563;
}

/* ── review note ──────────────────────────────────────────────────────────── */

.by-note {
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #4338ca;
  border-radius: 10px;
  background: #fff;
}

.by-note-title {
  margin: 0 0 .75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.by-note-body {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

.by-link {
  font-weight: 600;
  color: #4338ca;
}

/* ── faq ──────────────────────────────────────────────────────────────────── */

.by-faq {
  display: grid;
  gap: .75rem;
}

.by-faq-item {
  padding: 1.1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.by-faq-q {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 650;
  color: #111827;
}

.by-faq-q:focus-visible {
  outline: 3px solid #4338ca;
  outline-offset: 3px;
}

.by-faq-a {
  margin: .75rem 0 0;
  font-size: .98rem;
  line-height: 1.65;
  color: #4b5563;
}

/* ── closing cta ──────────────────────────────────────────────────────────── */

.by-cta {
  text-align: center;
}

.by-cta .by-section-title {
  margin-bottom: .75rem;
}

.by-cta-body {
  margin: 0 auto 2rem;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4b5563;
}

@media (max-width: 575.98px) {
  .by-section { padding: 3rem 0; }
  .by-hero { padding: 3.5rem 0 2.75rem; }
  .by-hero-cta .by-btn { width: 100%; }
}
