/* Gift Reveal Guide / Reveal Finder v1 — homepage-only component */
.rf-launcher,
.rf-panel,
.rf-panel * {
  box-sizing: border-box;
}

.rf-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1250;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 230px;
  padding: 13px 18px;
  border: 1px solid rgba(112, 56, 255, .2);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple, #6f35ff), var(--pink, #f41b92));
  box-shadow: 0 18px 44px rgba(63, 35, 130, .28);
  font: 900 15px/1.15 Inter, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.rf-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(63, 35, 130, .34);
}

.rf-launcher:focus-visible,
.rf-panel button:focus-visible,
.rf-panel a:focus-visible {
  outline: 3px solid #ffcc58;
  outline-offset: 3px;
}

.rf-launcher-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.rf-launcher-icon img {
  display: block;
  width: 36px;
  height: 36px;
  max-width: none;
}

.rf-launcher-mobile-label {
  display: none;
}

.rf-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1300;
  display: flex;
  width: min(408px, calc(100vw - 48px));
  max-height: calc(100vh - 112px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(112, 56, 255, .18);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 23, 56, .25);
  font-family: Inter, sans-serif;
  color: var(--ink, #1f2a44);
}

.rf-panel[hidden],
.rf-launcher[hidden] {
  display: none !important;
}

.rf-panel-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 13px;
  border-bottom: 1px solid #ebe8f6;
  background: linear-gradient(135deg, #fbf9ff, #fff8fd);
}

.rf-header-copy {
  min-width: 0;
  text-align: center;
}

.rf-header-title {
  display: block;
  color: var(--navy, #0d1738);
  font-family: Sora, Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.rf-header-subtitle {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #67718a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e5e0f3;
  border-radius: 13px;
  color: #3f4660;
  background: #fff;
  font: 900 22px/1 Inter, sans-serif;
  cursor: pointer;
}

.rf-icon-button:hover {
  color: var(--purple, #6f35ff);
  border-color: rgba(111, 53, 255, .28);
  background: #f8f4ff;
}

.rf-back[hidden] {
  visibility: hidden;
  display: inline-grid !important;
}

.rf-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 22px 18px;
  scrollbar-width: thin;
  scrollbar-color: #cfc6ea transparent;
}

.rf-screen {
  animation: rf-fade-in .18s ease both;
}

.rf-progress {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #5f2ad7;
  background: #f1ebff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.rf-title {
  margin: 0;
  color: var(--navy, #0d1738);
  font-family: Sora, Inter, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.rf-copy,
.rf-helper {
  margin: 10px 0 0;
  color: #59647c;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.55;
}

.rf-helper {
  font-size: 13px;
}

.rf-welcome-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(111, 53, 255, .18);
  overflow: hidden;
}

.rf-welcome-mark img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
}

.rf-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.rf-primary,
.rf-secondary,
.rf-text-action,
.rf-choice,
.rf-faq-button {
  width: 100%;
  border: 0;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.rf-primary,
.rf-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 17px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.rf-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple, #6f35ff), var(--pink, #f41b92));
  box-shadow: 0 14px 28px rgba(111, 53, 255, .22);
}

.rf-primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.rf-secondary {
  border: 2px solid rgba(111, 53, 255, .16);
  color: var(--purple-dark, #5725d9);
  background: #fff;
}

.rf-secondary:hover {
  border-color: rgba(111, 53, 255, .3);
  background: #f8f4ff;
}

.rf-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  color: #5f2ad7;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rf-safety {
  margin: 18px 0 0;
  padding: 13px 14px;
  border: 1px solid #f1dba0;
  border-radius: 14px;
  color: #5d4a17;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.48;
}

.rf-choices {
  display: grid;
  gap: 10px;
  margin-top: 19px;
}

.rf-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 13px 14px 13px 16px;
  border: 1px solid #e4e0f0;
  border-radius: 15px;
  color: var(--navy, #0d1738);
  background: #fff;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.3;
  text-align: left;
}

.rf-choice:hover {
  border-color: rgba(111, 53, 255, .32);
  background: #fbf9ff;
}

.rf-choice[aria-checked="true"],
.rf-choice[aria-pressed="true"] {
  border-color: var(--purple, #6f35ff);
  background: #f4efff;
  box-shadow: 0 0 0 2px rgba(111, 53, 255, .09);
}

.rf-choice-label {
  display: block;
}

.rf-choice-desc {
  display: block;
  margin-top: 4px;
  color: #67718a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.rf-choice-indicator {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #c9c2dc;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.rf-choice[aria-checked="true"] .rf-choice-indicator,
.rf-choice[aria-pressed="true"] .rf-choice-indicator {
  border-color: var(--purple, #6f35ff);
  color: #fff;
  background: var(--purple, #6f35ff);
}

.rf-feature-actions {
  position: sticky;
  bottom: -18px;
  margin: 18px -22px -18px;
  padding: 13px 22px 18px;
  border-top: 1px solid #ebe8f6;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.rf-result-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(111, 53, 255, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, #faf7ff, #fff8fc);
  box-shadow: 0 14px 32px rgba(35, 24, 80, .07);
}

.rf-result-eyebrow {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #5f2ad7;
  background: #eee7ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rf-result-price {
  margin-top: 13px;
  color: var(--navy, #0d1738);
  font-family: Sora, Inter, sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.rf-result-price-note {
  display: block;
  margin-top: 5px;
  color: #68728a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.rf-feature-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rf-feature-list li {
  position: relative;
  padding-left: 24px;
  color: #35415b;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
}

.rf-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  background: #39b978;
  font-size: 10px;
  font-weight: 900;
}

.rf-reassurance {
  margin: 14px 0 0;
  color: #59647c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.48;
}

.rf-faq-group + .rf-faq-group {
  margin-top: 22px;
}

.rf-faq-heading {
  margin: 0 0 9px;
  color: #566078;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.rf-faq-list {
  display: grid;
  gap: 8px;
}

.rf-faq-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #e5e1ef;
  border-radius: 13px;
  color: #172344;
  background: #fff;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
  text-align: left;
}

.rf-faq-button::after {
  content: "›";
  color: var(--purple, #6f35ff);
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.rf-faq-button:hover {
  border-color: rgba(111, 53, 255, .3);
  background: #fbf9ff;
}

.rf-answer-card {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #e5e0f1;
  border-radius: 18px;
  background: #fbfaff;
}

.rf-answer-card p {
  margin: 0;
  color: #445069;
  font-size: 14px;
  font-weight: 590;
  line-height: 1.58;
}

.rf-answer-card p + p {
  margin-top: 11px;
}

.rf-support-link {
  color: #5f2ad7;
  font-weight: 850;
}

.rf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  border-top: 1px solid #ebe8f6;
  color: #707991;
  background: #fcfbff;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.rf-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.rf-footer-button {
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  color: #5f2ad7;
  background: transparent;
  font: 850 11px/1.2 Inter, sans-serif;
  cursor: pointer;
}

.rf-footer-button:hover {
  background: #f2edff;
}

body.rf-mobile-open {
  overflow: hidden;
}

@keyframes rf-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .rf-launcher {
    right: 12px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    min-height: 48px;
    max-width: calc(100vw - 24px);
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
  }

  .rf-launcher-desktop-label {
    display: none;
  }

  .rf-launcher-mobile-label {
    display: inline;
  }

  body.rf-mobile-open .homepage-mobile-sticky,
  body.rf-mobile-open .rf-launcher {
    display: none !important;
  }

  .rf-panel {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    border-radius: 24px;
  }

  .rf-panel-header {
    padding-top: 12px;
  }

  .rf-body {
    padding: 20px 18px 16px;
  }

  .rf-title {
    font-size: 24px;
  }

  .rf-feature-actions {
    bottom: -16px;
    margin: 18px -18px -16px;
    padding: 13px 18px calc(16px + env(safe-area-inset-bottom));
  }

  .rf-footer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .rf-panel {
    left: 5px;
    right: 5px;
    border-radius: 20px;
  }

  .rf-panel-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rf-icon-button {
    width: 40px;
    height: 40px;
  }

  .rf-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rf-title {
    font-size: 22px;
  }

  .rf-copy {
    font-size: 14px;
  }

  .rf-feature-actions {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-launcher,
  .rf-screen,
  .rf-primary {
    animation: none !important;
    transition: none !important;
  }
}
