/* Brilliant Applicant — wizard-first homepage (brilliantapplicant.com only).
   Scoped under body.ba-home so nothing leaks to other pages or sites. */

body.ba-home {
  background: #faf9f6;
  color: #171717;
  padding-bottom: 0;
}

.ba-host {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

/* ---------- header ---------- */
body.ba-home .site-header.ba-hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}
.ba-hdr .ba-bar {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ba-hdr .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.ba-hdr .brand img { width: 64px; height: auto; display: block; }
.ba-hdr .brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.ba-hdr-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ba-hdr-nav button,
.ba-hdr-nav a {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: #171717;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.ba-hdr-nav button:hover,
.ba-hdr-nav a:hover { background: #f1ede6; }
.ba-hdr-nav .ba-lang { color: #6b625b; }
.ba-hdr-nav a.ba-enter {
  background: #c2410c;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}
.ba-hdr-nav a.ba-enter:hover { background: #a83a0a; }
.ba-hdr-nav .ba-menu-btn { display: inline-flex; font-size: 16px; }
.ba-mobile-menu {
  display: none;
  border-top: 1px solid #ececec;
  padding: 8px 24px 14px;
}
.ba-mobile-menu[hidden] { display: none; }
.ba-mobile-menu a,
.ba-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 6px;
  color: #171717;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- first screen ---------- */
.ba-lede { padding: 52px 0 8px; }
.ba-h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.ba-h1 .ba-line { display: block; }
.ba-h1 .ba-accent { color: #c2410c; }
.ba-sub {
  margin: 18px 0 0;
  /* 29.11 owner round: no 640px cap — the lede text aligns with the choices cards
     and the success-story banner (full column width). */
  font-size: 17px;
  line-height: 1.6;
  color: #4b4642;
}
.ba-pick {
  margin: 22px 0 12px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: #c2410c;
}
.ba-pick + .ba-choices { margin-top: 0; }
.ba-choices {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ba-choice {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e6ddd2;
  border-radius: 16px;
  padding: 22px 22px 20px;
  cursor: pointer;
  font-family: inherit;
  color: #171717;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ba-choice:hover {
  border-color: #c2410c;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.10);
  transform: translateY(-1px);
}
.ba-choice:disabled { cursor: default; }
.ba-choice:disabled:hover {
  border-color: #e6ddd2;
  box-shadow: none;
  transform: none;
}
.ba-choice .ba-choice-t { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #171717; }
.ba-choice .ba-choice-d { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: #5c534c; }
.ba-choice .ba-choice-go {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #d9cfc2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-choice .ba-choice-go::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8a8074;
  border-bottom: 2px solid #8a8074;
  transform: rotate(45deg) translate(-1px, -1px);
}
.ba-proof {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px 16px;
  /* 29.11 owner round: full column width (no 640px cap) so the one-line proof text
     fits next to the button on desktop (needs ~824-833px vs 872px available). */
  font-size: 14.5px;
  color: #4b4642;
}
.ba-proof img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ba-proof strong { color: #171717; }
.ba-proof button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #c2410c;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}
.ba-more { margin-top: 26px; }
.ba-expand-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: #4b4642;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.ba-expand-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #8a8074;
  border-bottom: 2px solid #8a8074;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.ba-expand-btn[aria-expanded="true"]::before { transform: rotate(-135deg); }
.ba-expand-panel { margin-top: 10px; }
.ba-how-inline {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #4b4642;
}
.ba-how-inline li + li { margin-top: 6px; }

/* ---------- stage chrome ---------- */
.ba-stage-wrap { padding-top: 26px; }
.ba-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: #8a8074;
}
.ba-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
.ba-step::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d9cfc2;
  background: #fff;
  flex: none;
}
.ba-step.is-current { color: #171717; font-weight: 650; }
.ba-step.is-current::before { border-color: #c2410c; background: #c2410c; box-shadow: inset 0 0 0 3px #fff; }
.ba-step.is-done::before { border-color: #c2410c; background: #c2410c; position: relative; }
.ba-step.is-done::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  text-align: center;
  line-height: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.ba-step-sep { width: 16px; height: 1px; background: #d9cfc2; }
.ba-step-back {
  margin-left: auto;
  border: 1px solid #d9cfc2;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  color: #4b4642;
}
.ba-step-back:hover { border-color: #171717; color: #171717; }
.ba-step-so {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #8a8074;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 4px;
}
.ba-startover-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.ba-startover-row[hidden] { display: none; }
.ba-startover-row .ba-primary,
.ba-startover-row .ba-quiet { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.ba-status { margin-top: 18px; min-height: 1.2em; font-size: 13.5px; color: #8a8074; }

/* ---------- stage content ---------- */
.ba-stage { animation: ba-fade 0.22s ease; }
@keyframes ba-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-stage { animation: none; }
}
.ba-stage h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.4vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.ba-stage h2:focus { outline: none; }
.ba-lead { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: #5c534c; }
.ba-block { margin: 22px 0; }
.ba-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ba-label.small { font-weight: 400; color: #6b625b; }
.ba-field { display: block; margin-bottom: 4px; }
.ba-input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #d9cfc2;
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: #171717;
}
.ba-input:focus { outline: 2px solid #c2410c; outline-offset: 1px; border-color: #c2410c; }
.ba-input.small { width: auto; min-height: 42px; padding: 8px 12px; }
.ba-help { margin-top: 8px; font-size: 13.5px; color: #8a8074; }
.ba-reqnote { margin: 8px 0 0; font-size: 13px; color: #8a8074; }
.ba-reqnote b { color: #c2410c; font-weight: 650; }
.ba-chip-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px dashed #d9cfc2;
  color: #5c534c;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.ba-chip-add:hover { border-color: #c2410c; color: #c2410c; }
.ba-note {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #8a8074;
  background: #fff;
  border: 1px solid #ececec;
  border-left: 3px solid #e6ddd2;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.55;
}
.ba-note.accent { border-left-color: #c2410c; color: #5c534c; }
.ba-mute { font-size: 13px; color: #8a8074; margin: 8px 0 0; }

/* chips */
.ba-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ba-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 14px;
}
.ba-chip-x {
  border: 0;
  background: #ffedd5;
  color: #9a3412;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ba-chip-x:hover { background: #fdba74; }

/* choice cards (counts, sizes, automation, packs) */
.ba-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ba-cards.size { grid-template-columns: repeat(3, 1fr); }
.ba-cards.two { grid-template-columns: 1fr 1fr; }
.ba-card {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1.5px solid #e6ddd2;
  border-radius: 14px;
  min-height: 64px;
  padding: 14px 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  color: #171717;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ba-card .ba-card-sub { display: block; font-size: 12.5px; font-weight: 400; color: #8a8074; margin-top: 3px; }
.ba-card-t { display: block; }
.ba-card.is-text { font-weight: 450; font-size: 14.5px; line-height: 1.45; min-height: 58px; }
.ba-card:hover { border-color: #c2410c; }
.ba-card.is-selected { border-color: #c2410c; background: #fff7ed; }
.ba-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c2410c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.ba-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #c2410c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.ba-card.is-selected .ba-badge { background: #fff; color: #c2410c; border: 1px solid #c2410c; }

/* actions */
.ba-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ba-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #c2410c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 12px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.ba-primary:hover { filter: brightness(1.06); }
.ba-primary:active { transform: translateY(1px); }
.ba-primary:disabled { opacity: 0.6; cursor: default; }
.ba-primary.small { min-height: 42px; font-size: 14.5px; padding: 10px 18px; }
.ba-quiet {
  border: 1px solid #d9cfc2;
  background: #fff;
  border-radius: 10px;
  color: #4b4642;
  font-family: inherit;
  font-size: 14.5px;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
}
.ba-quiet:hover { border-color: #171717; color: #171717; }
.ba-secondary {
  border: 1px solid #d9cfc2;
  background: #fff;
  color: #171717;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
}
.ba-secondary:hover { border-color: #c2410c; color: #c2410c; }
.ba-secondary.small { min-height: 36px; font-size: 13.5px; padding: 6px 12px; }
.ba-secondary:disabled { opacity: 0.6; cursor: default; }
.ba-link {
  border: 0;
  background: transparent;
  color: #c2410c;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}
a.ba-link { text-decoration: underline; }
a.ba-newtab { display: block; margin: 0 0 14px; }

/* send (automation) block */
.ba-send-extra { margin-top: 12px; }
.ba-send-extra .ba-field { display: flex; align-items: center; gap: 10px; }
.ba-send-extra .ba-label { margin-bottom: 0; }

/* summary */
.ba-summary {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 6px 18px;
  margin-bottom: 16px;
}
.ba-sum-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f3efe9;
  font-size: 14.5px;
}
.ba-sum-row:last-child { border-bottom: 0; }
.ba-sum-k { color: #8a8074; }
.ba-sum-v { color: #171717; font-weight: 500; overflow-wrap: anywhere; }
.ba-rulebox {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b4642;
}
.ba-rulebox p { margin: 4px 0; }
.ba-rulebox.is-ok { border-color: #bbf7d0; background: #f7fdf9; }

/* packages */
.ba-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 10px;
}
.ba-pack {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e6ddd2;
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #171717;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ba-pack:hover { border-color: #c2410c; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
.ba-pack.is-selected { border-color: #c2410c; box-shadow: 0 0 0 1px #c2410c inset; }
.ba-pack.is-selected::before {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c2410c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.ba-pack-count { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1; color: #c2410c; }
.ba-pack-count::after { content: " 📄"; font-size: 13px; }
.ba-pack-label { font-size: 12.5px; color: #5c534c; line-height: 1.3; }
.ba-pack-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 16px; font-weight: 700; color: #c2410c; }
.ba-pack-price s { font-size: 13.5px; font-weight: 400; color: #a8a29e; }
.ba-pack-price b {
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
.ba-pack-price small { font-size: 11.5px; font-weight: 400; color: #8a8074; }
.ba-pack-price em.ba-pack-free { font-style: normal; color: #15803d; font-size: 17px; }
.ba-pack-bonus { font-size: 12.5px; color: #15803d; line-height: 1.4; }
.ba-pack-tag { font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 3px 9px; align-self: flex-start; }
.ba-pack-tag.is-blue { background: #eff6ff; color: #1d4ed8; }
.ba-pack-tag.is-green { background: #f0fdf4; color: #15803d; }
.ba-pack-tag.is-red { background: #fef2f2; color: #b91c1c; }

/* checkout (stage 4) */
.ba-checkout {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 22px;
}
.ba-checkout .ba-sel { margin: 0 0 14px; font-size: 14.5px; font-weight: 700; }
.ba-checkout .ba-label { font-size: 14.5px; }
.ba-checkout .ba-input { max-width: 460px; }
.ba-checkout .ba-help { margin: 6px 0 16px; }
.ba-result { margin-top: 16px; }
/* 30.11 owner: green WhatsApp bubble used with the unknown-payment message */
.ba-wa-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.ba-wa-btn:hover { background: #1ebe5b; color: #fff; }
/* .ba-result a targets any link in result boxes with the rust color — keep the
   WhatsApp bubble white on green at higher specificity. */
.ba-result .ba-wa-btn { color: #fff; text-decoration: none; }
.ba-result .ba-wa-btn:hover { color: #fff; background: #1ebe5b; }
.ba-wa-btn .ba-ic-wa { margin-right: 7px; }
.ba-result p { margin: 0; font-size: 15px; line-height: 1.55; }
.ba-result.is-ok { color: #15803d; }
.ba-result.is-err { color: #b3261e; }
.ba-result a { color: #c2410c; font-weight: 600; }

/* order result */
.ba-codebox {
  background: #fff;
  border: 1.5px dashed #c2410c;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 15px;
}
.ba-codebox b { font-size: 20px; letter-spacing: 0.06em; }

/* ---------- overlay ---------- */
dialog.ba-overlay {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  z-index: 60; /* above the sticky page header (z 40): the close button must never be covered */
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: #171717;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}
dialog.ba-overlay::backdrop { background: rgba(23, 23, 23, 0.46); }
.ba-overlay-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #ececec;
}
/* 30.11 owner: the title row is removed — the menu items occupy that row */
.ba-overlay-head h2 { display: none; }
.ba-overlay-arrow {
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  color: #b3aca3;
  font-size: 20px;
  line-height: 1;
}
.ba-overlay-x {
  border: 1px solid #ececec;
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 17px;
  cursor: pointer;
  color: #4b4642;
  line-height: 1;
  flex: none;
}
.ba-overlay-x:hover { border-color: #171717; color: #171717; }
.ba-overlay-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ba-overlay-tabs::-webkit-scrollbar { display: none; }
.ba-tab {
  flex: none;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: #5c534c;
  cursor: pointer;
}
.ba-tab:hover { border-color: #d9cfc2; }
.ba-tab.is-active { background: #171717; color: #fff; }
.ba-overlay-body {
  padding: 20px 22px 26px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  font-size: 14.5px;
  line-height: 1.6;
}
.ba-how { margin: 0 0 14px; padding-left: 22px; font-size: 15.5px; line-height: 1.7; color: #292524; }
.ba-how li + li { margin-top: 8px; }
.ba-overlay-body .ba-packs { grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; max-width: 760px; }
.ba-overlay-body .ba-lead { margin-bottom: 14px; }
.ba-sample { max-width: 340px; border-radius: 14px; border: 1px solid #ececec; display: block; margin: 0 auto 12px; }
.ba-video { width: 100%; max-width: 560px; border-radius: 14px; display: block; margin: 0 auto; }
.ba-yt { position: relative; padding-top: 56.3%; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: #000; }
.ba-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ba-story { border: 1px solid #ececec; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.ba-story-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ba-story-name { margin: 0 0 6px; font-weight: 700; font-size: 15.5px; }
.ba-story-head .ba-story-name { margin: 0; }
.ba-story-head .ba-mute { margin: 2px 0 0; }
.ba-story-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 18%; flex: 0 0 auto; background: #f3f4f6; }
.ba-story-lead { color: #4b4642; }
.ba-story-full p + p { margin-top: 8px; }
.ba-story-follow { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece7e1; }
.ba-story-follow-label { margin: 0 0 8px; font-weight: 700; font-size: 13.5px; color: #c2410c; }
.ba-story-follow-label time { font-weight: 500; color: #6b6560; }
.ba-facts { margin: 12px 0 10px; padding-left: 18px; font-size: 13.5px; color: #5c534c; }
.ba-faq { border-bottom: 1px solid #f3efe9; padding: 10px 0; }

/* 29.11 owner round: keep the centered card look on phones, but anchor it to the
   VISIBLE viewport instead of the full 100vh layout one. 100vh - 100dvh = the mobile
   browser bar height, so top lands ~10px below the bar; max-height keeps the whole
   card (title, tabs, close) on screen; the body scrolls inside. v=9 bottom sheet was
   rejected by the owner — reverted to this. */
@media (max-width: 760px) {
  dialog.ba-overlay[open] {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    top: 16px;
    bottom: 16px;
    left: auto;
    right: auto;
    margin: auto;
    max-height: calc(100vh - 48px);
    top: calc(100vh - 100dvh + 10px);
    max-height: calc(100dvh - 26px);
  }
  .ba-overlay-head { flex: none; }
  .ba-overlay-body { flex: 1 1 auto; min-height: 0; max-height: none; }
  .ba-overlay-x { width: 44px; height: 44px; font-size: 20px; } /* generous touch target */
}
.ba-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.ba-faq p { margin: 8px 0 0; color: #5c534c; }
.ba-overlay-body .ba-actions { margin-top: 16px; }

/* login overlay */
dialog.ba-login {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
dialog.ba-login::backdrop { background: rgba(23, 23, 23, 0.46); }
.ba-login-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.ba-login-head h2 { margin: 0; font-size: 18px; }
.ba-login-note { padding: 4px 18px 12px; font-size: 13.5px; color: #8a8074; margin: 0; }
.ba-login-frame { border-top: 1px solid #ececec; }
.ba-login-frame iframe { width: 100%; height: calc(100vh - 220px); min-height: 420px; border: 0; display: block; }
.ba-login-newtab { display: block; text-align: center; padding: 10px; font-size: 13.5px; color: #c2410c; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .ba-host { padding: 0 16px 64px; }
  .ba-lede { padding-top: 30px; }
  .ba-choices { grid-template-columns: 1fr; }
  .ba-cards, .ba-cards.size { grid-template-columns: 1fr 1fr; }
  .ba-cards.three { grid-template-columns: 1fr 1fr 1fr; }
  .ba-packs { grid-template-columns: 1fr 1fr; }
  .ba-overlay-body .ba-packs { grid-template-columns: 1fr; }
  .ba-sum-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .ba-hdr-nav .ba-hide-mobile { display: none; }
  .ba-hdr-nav .ba-menu-btn { display: inline-flex; }
  .ba-mobile-menu { display: block; }
  .ba-mobile-menu[hidden] { display: none; }
  .ba-progress { gap: 6px; font-size: 12.5px; }
  .ba-step-sep { width: 8px; }
}
@media (max-width: 460px) {
  .ba-packs { grid-template-columns: 1fr; }
  .ba-cards.three { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ba-card { padding: 12px 6px; font-size: 14.5px; }
}

/* ---- 25.11 owner round: how3 block, footnotes, sample img, login iframe, WA icon ---- */
.ba-sample { width: auto; height: auto; }
.ba-how3 { display: flex; gap: 28px; align-items: flex-start; }
.ba-how3-item { display: flex; align-items: flex-start; gap: 14px; }
.ba-how3-ic { flex: 0 0 44px; width: 44px; height: 44px; display: block; }
.ba-how3-ic svg { width: 44px; height: 44px; display: block; }
.ba-how3-t { font-size: 15px; line-height: 1.55; color: #292524; padding-top: 2px; }
.ba-foot { font-size: 12.5px; line-height: 1.5; color: #8a8074; margin-top: 2px; }
.ba-ic-wa { width: 18px; height: 18px; fill: currentColor; display: inline-block; vertical-align: -3px; margin-right: 7px; }
.ba-login-iframe { width: 100%; min-height: 540px; border: 1px solid #e6ddd2; border-radius: 12px; background: #fff; }
@media (max-width: 760px) {
  .ba-how3 { flex-direction: column; gap: 18px; }
}

/* ---- 26.11 owner round: YouTube-style video buttons ---- */
.ba-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: #ff0000;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.ba-yt-btn:hover { filter: brightness(1.1); }
.ba-yt-btn:active { transform: translateY(1px); }
.ba-yt-btn .ba-yt-ic { display: inline-flex; }
.ba-yt-btn .ba-yt-ic svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* Login entry points (top bar uses .ba-enter; footer link) */
.site-footer .footer-login {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 18px;
  padding: 10px 2px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  color: #c2410c;
}
.site-footer .footer-login:hover { text-decoration: underline; }
.site-footer .footer-cookies {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 18px;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.15;
  color: #5c534c;
  cursor: pointer;
  white-space: nowrap;
}
.site-footer .footer-cookies:hover { color: #171717; }
