/* ===================================================================
   3babees — Help / FAQ / Aids guide
   Transparent, interactive — phone + desktop (desktop-first polish)
   =================================================================== */

.babees-shell-help .babees-shell-main {
  width: min(1120px, 100%);
}

.babees-app > .babees-help-page.is-embed {
  margin: 36px 0 8px;
  padding: 28px 4px 8px;
  border-top: 1px solid rgba(160, 180, 255, 0.14);
}

.babees-help-page {
  position: relative;
  color: var(--bb-text, #f7f8ff);
  padding: 4px 0 28px;
}

.babees-help-hero {
  text-align: center;
  margin: 6px 0 34px;
  padding: 0 4px;
}

.babees-help-page.is-embed .babees-help-hero {
  margin-bottom: 28px;
}

.babees-help-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.92);
}

.babees-help-brand {
  margin: 0 0 12px;
  font-family: "Outfit", var(--bb-font, "Cairo", sans-serif);
  font-size: clamp(1.85rem, 6.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  background: linear-gradient(115deg, #fff 12%, #93c5fd 55%, #7dd3fc 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block !important;
}

.babees-help-lead {
  margin: 0 auto 18px;
  max-width: 40rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  color: rgba(200, 210, 245, 0.78);
}

.babees-help-jump {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.babees-help-jump a {
  color: rgba(186, 210, 255, 0.95);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.babees-help-jump a:hover,
.babees-help-jump a:focus-visible {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.9);
  outline: none;
  transform: translateY(-1px);
}

.babees-help-full-link {
  color: #7dd3fc !important;
  border-bottom-color: rgba(56, 189, 248, 0.55) !important;
}

.babees-help-section {
  margin: 0 0 42px;
  scroll-margin-top: 84px;
}

.babees-help-section-head {
  margin: 0 0 18px;
  text-align: center;
}

.babees-help-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  display: block !important;
}

.babees-help-section-head p {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(190, 205, 235, 0.72);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.6;
}

.babees-help-grid {
  display: block;
}

/* ---------- FAQ accordion (no filled cards) ---------- */
.babees-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.babees-faq-item {
  border: 0;
  border-bottom: 1px solid rgba(160, 180, 255, 0.16);
  background: transparent;
  padding: 0;
}

.babees-faq-item:first-child {
  border-top: 1px solid rgba(160, 180, 255, 0.16);
}

.babees-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 4px;
  font: inherit;
  user-select: none;
  transition: color 0.2s;
}

.babees-faq-item summary::-webkit-details-marker { display: none; }

.babees-faq-q {
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(245, 248, 255, 0.96);
  text-align: start;
}

.babees-faq-chev {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(160, 180, 255, 0.28);
  transition: transform 0.28s ease, border-color 0.2s, background 0.2s;
}

.babees-faq-chev::before,
.babees-faq-chev::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 1.5px;
  background: rgba(210, 220, 255, 0.9);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.babees-faq-chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s, transform 0.28s ease;
}

.babees-faq-item[open] .babees-faq-chev {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.babees-faq-item[open] .babees-faq-chev::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.babees-faq-item summary:hover .babees-faq-q,
.babees-faq-item summary:focus-visible .babees-faq-q {
  color: #fff;
}

.babees-faq-item summary:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.babees-faq-a {
  padding: 0 4px 18px;
}

.babees-faq-a p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.75;
  color: rgba(190, 205, 235, 0.82);
  animation: babees-faq-in 0.28s ease;
}

@keyframes babees-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Aid cards — transparent, interactive ---------- */
.babees-aids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 760px) {
  .babees-aids {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

.babees-aid {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 4px;
  margin: 0;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid rgba(160, 180, 255, 0.14);
  border-radius: 0;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform 0.25s ease;
  outline: none;
}

.babees-aid:nth-child(-n+2) {
  border-top: 1px solid rgba(160, 180, 255, 0.14);
}

@media (max-width: 759px) {
  .babees-aid:first-child {
    border-top: 1px solid rgba(160, 180, 255, 0.14);
  }
  .babees-aid:nth-child(2) {
    border-top: 0;
  }
}

.babees-aid-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #7dd3fc;
  transition: transform 0.3s ease, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.babees-aid-icon .bb-i {
  width: 24px;
  height: 24px;
}

.babees-aid-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.babees-aid-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline !important;
}

.babees-aid-chip {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(125, 211, 252, 0.95);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
  background: transparent;
}

.babees-aid-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
  color: rgba(190, 205, 235, 0.82);
}

.babees-aid-steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.28s ease;
}

.babees-aid.is-open .babees-aid-steps,
.babees-aid:focus-within .babees-aid-steps {
  max-height: 240px;
  opacity: 1;
  transform: none;
}

.babees-aid-steps li {
  position: relative;
  padding-inline-start: 16px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(210, 220, 245, 0.78);
}

.babees-aid-steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.babees-aid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(160, 180, 220, 0.72);
}

.babees-aid:hover,
.babees-aid:focus-visible,
.babees-aid.is-open {
  transform: translateY(-2px);
}

.babees-aid:hover .babees-aid-icon,
.babees-aid:focus-visible .babees-aid-icon,
.babees-aid.is-open .babees-aid-icon {
  transform: scale(1.06) rotate(-3deg);
  border-color: rgba(56, 189, 248, 0.7);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.babees-aid:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 6px;
}

/* ---------- Desktop / computer layouts ---------- */
@media (min-width: 980px) {
  .babees-help-page.is-embed {
    margin-top: 48px;
    padding-top: 40px;
  }

  .babees-help-page.is-embed .babees-help-brand {
    font-size: clamp(2.2rem, 3.2vw, 2.85rem);
  }

  .babees-help-page.is-embed .babees-help-lead {
    font-size: 1.02rem;
    max-width: 46rem;
  }

  /* Side-by-side FAQ + aids on large screens (main page + /help) */
  .babees-help-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    column-gap: 56px;
    align-items: start;
  }

  .babees-help-section {
    margin-bottom: 0;
  }

  .babees-help-section-head {
    text-align: start;
  }

  .babees-help-section-head p {
    margin: 0;
  }

  .babees-faq {
    max-width: none;
    margin: 0;
  }

  .babees-faq-item summary {
    padding: 18px 6px;
  }

  .babees-faq-q {
    font-size: 1.05rem;
  }

  .babees-faq-a p {
    font-size: 0.95rem;
    max-width: 38rem;
  }

  .babees-aids {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .babees-aid {
    padding: 22px 6px;
    grid-template-columns: 56px 1fr;
  }

  .babees-aid:nth-child(-n+2) {
    border-top: 0;
  }

  .babees-aid:first-child {
    border-top: 1px solid rgba(160, 180, 255, 0.14);
  }

  .babees-aid-icon {
    width: 56px;
    height: 56px;
  }

  .babees-aid-name {
    font-size: 1.12rem;
  }

  .babees-aid-desc {
    font-size: 0.92rem;
  }
}

@media (min-width: 1200px) {
  .babees-help-grid {
    column-gap: 72px;
  }

  .babees-help-page.is-standalone .babees-aids,
  .babees-shell-help .babees-aids {
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }

  .babees-help-page.is-standalone .babees-aid:nth-child(-n+2),
  .babees-shell-help .babees-aid:nth-child(-n+2) {
    border-top: 1px solid rgba(160, 180, 255, 0.14);
  }
}

@media (min-width: 1360px) {
  .babees-app > .babees-help-page.is-embed .babees-aids {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .babees-app > .babees-help-page.is-embed .babees-aid:nth-child(-n+2) {
    border-top: 1px solid rgba(160, 180, 255, 0.14);
  }
}

@media (hover: hover) and (min-width: 980px) {
  .babees-aid:hover .babees-aid-steps {
    max-height: 240px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .babees-app > .babees-help-page.is-embed {
    margin-top: 28px;
    padding-top: 22px;
  }

  .babees-help-hero { margin-bottom: 26px; }
  .babees-help-lead { font-size: 0.88rem; }
  .babees-help-section { margin-bottom: 32px; }
  .babees-faq-item summary { padding: 14px 2px; }
  .babees-faq-q { font-size: 0.94rem; }
  .babees-aid {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 16px 2px;
  }
  .babees-aid-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .babees-aid-icon .bb-i { width: 20px; height: 20px; }
  .babees-aid-name { font-size: 1rem; }
  .babees-aid-desc { font-size: 0.86rem; }
}

/* Light theme */
html[data-theme="light"] .babees-app > .babees-help-page.is-embed {
  border-top-color: rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="light"] .babees-help-kicker {
  color: #0284c7 !important;
}

html[data-theme="light"] .babees-help-brand {
  background: linear-gradient(115deg, #0b1220 8%, #1d4ed8 48%, #0ea5e9 92%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-theme="light"] .babees-help-lead,
html[data-theme="light"] .babees-help-section-head p,
html[data-theme="light"] .babees-faq-a p,
html[data-theme="light"] .babees-aid-desc,
html[data-theme="light"] .babees-aid-steps li,
html[data-theme="light"] .babees-aid-meta {
  color: #475569 !important;
}

html[data-theme="light"] .babees-help-section-head h2,
html[data-theme="light"] .babees-faq-q,
html[data-theme="light"] .babees-aid-name {
  color: #0b1220 !important;
}

html[data-theme="light"] .babees-help-jump a {
  color: #1d4ed8 !important;
  border-bottom-color: rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="light"] .babees-help-full-link {
  color: #0369a1 !important;
}

html[data-theme="light"] .babees-faq-item,
html[data-theme="light"] .babees-faq-item:first-child,
html[data-theme="light"] .babees-aid,
html[data-theme="light"] .babees-aid:nth-child(-n+2),
html[data-theme="light"] .babees-aid:first-child {
  border-color: rgba(37, 99, 235, 0.14) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .babees-faq-chev {
  border-color: rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="light"] .babees-faq-chev::before,
html[data-theme="light"] .babees-faq-chev::after {
  background: #334155 !important;
}

html[data-theme="light"] .babees-aid-icon {
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: #2563eb !important;
  background: transparent !important;
}

html[data-theme="light"] .babees-aid-chip {
  color: #0369a1 !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  background: transparent !important;
}

html[data-theme="light"] .babees-aid:hover .babees-aid-icon,
html[data-theme="light"] .babees-aid:focus-visible .babees-aid-icon,
html[data-theme="light"] .babees-aid.is-open .babees-aid-icon {
  color: #0b1220 !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] .babees-aid-steps li::before {
  background: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
