.home-guide {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.home-guide__toggle {
  min-width: 148px;
  padding: 14px 18px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .98), rgba(29, 78, 216, .96));
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, .28);
}

.home-guide__toggle:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(30, 64, 175, .98));
}

.home-guide__toggle-label {
  display: block;
  font-size: calc(14px + var(--size-bump));
  font-weight: 700;
}

.home-guide__toggle-sub {
  display: block;
  margin-top: 3px;
  font-size: calc(11px + var(--size-bump));
  opacity: .88;
}

.home-guide__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(390px, calc(100vw - 34px));
  max-height: min(72vh, 720px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(37, 99, 235, .12), transparent 45%),
    radial-gradient(120% 120% at 0% 100%, rgba(14, 165, 233, .08), transparent 48%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 28px 55px rgba(2, 6, 23, .18);
  backdrop-filter: blur(18px);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.home-guide.is-open .home-guide__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.home-guide__panel-inner {
  padding: 20px;
}

.home-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-guide__eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: calc(11px + var(--size-bump));
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-guide__title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 28px);
}

.home-guide__lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: calc(13px + var(--size-bump));
  line-height: 1.7;
}

.home-guide__close {
  flex: 0 0 auto;
}

.home-guide__status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .05);
  color: var(--muted);
  font-size: calc(12px + var(--size-bump));
}

.home-guide__status strong {
  color: var(--text);
}

.home-guide__question-area {
  margin-top: 18px;
}

.home-guide__question {
  margin: 0;
  font-size: calc(18px + var(--size-bump));
  line-height: 1.55;
}

.home-guide__helper {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: calc(13px + var(--size-bump));
  line-height: 1.7;
}

.home-guide__choices {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.home-guide__choice {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, .12);
  background: rgba(255, 255, 255, .92);
}

.home-guide__choice:hover {
  border-color: rgba(37, 99, 235, .26);
}

.home-guide__choice-title {
  display: block;
  font-size: calc(14px + var(--size-bump));
  font-weight: 700;
}

.home-guide__choice-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(12px + var(--size-bump));
  line-height: 1.6;
}

.home-guide__answer-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-guide__pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .09);
  color: #1d4ed8;
  font-size: calc(11px + var(--size-bump));
  font-weight: 700;
}

.home-guide__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-guide__actions .btn[disabled] {
  opacity: .45;
  cursor: default;
  transform: none;
}

.home-guide__result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, .12);
  background: rgba(255, 255, 255, .92);
}

.home-guide__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  font-size: calc(11px + var(--size-bump));
  font-weight: 700;
}

.home-guide__result-title {
  margin: 14px 0 8px;
  font-size: calc(20px + var(--size-bump));
  line-height: 1.45;
}

.home-guide__result-copy {
  margin: 0;
  color: var(--muted);
  font-size: calc(13px + var(--size-bump));
  line-height: 1.8;
}

.home-guide__result-links {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.home-guide__result-links .btn {
  width: 100%;
}

.home-guide__result-links .btn.is-secondary {
  background: rgba(241, 245, 249, .9);
}

.home-guide__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: calc(12px + var(--size-bump));
  line-height: 1.7;
}

@media (max-width: 720px) {
  .home-guide {
    right: 14px;
    left: 14px;
    bottom: 14px;
    align-items: stretch;
  }

  .home-guide__toggle {
    width: 100%;
  }

  .home-guide__panel {
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(68vh, 640px);
  }

  .home-guide__panel-inner {
    padding: 18px;
  }
}
