/* tool-request.css — "tell us what tool you need" banner + bottom-right popup.
 *
 * Brand tokens are read from the page with the Omo palette as fallback, so this
 * renders identically on pages that define the tokens and on the generated
 * listing pages that do not.
 */

/* ── Top banner ──────────────────────────────────────────────────────────── */
.omo-ask-banner {
  position: relative;
  z-index: 45;
  background: var(--pine, #17352C);
  color: #F2F6F1;
}

.omo-ask-banner[hidden] { display: none; }

.omo-ask-banner-inner {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 0;
  text-align: center;
}

.omo-ask-banner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  text-wrap: pretty;
}

.omo-ask-banner strong { color: var(--mint, #BDEFD4); font-weight: 700; }

.omo-ask-banner-cta {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  /* White on the brand orange is 2.83:1, below the 4.5:1 AA minimum. #A84325 is
     the deepened orange this repo already uses for white-on-orange chips
     (sell.html badge, billing.html method chip) — 4.98:1, same brand family. */
  background: #A84325;
  color: #fff;
  font: 700 13.5px/1 var(--body, "DM Sans", Inter, system-ui, sans-serif);
  cursor: pointer;
  white-space: nowrap;
}

.omo-ask-banner-cta:hover { filter: brightness(.96); }

.omo-ask-banner-close {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 246, 241, .72);
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.omo-ask-banner-close:hover { background: rgba(242, 246, 241, .12); color: #fff; }

@media (max-width: 760px) {
  .omo-ask-banner-inner {
    flex-direction: column;
    gap: 9px;
    padding: 12px 34px;
  }
  .omo-ask-banner p { font-size: 13.5px; }
}

/* ── Bottom-right launcher ───────────────────────────────────────────────── */
.omo-ask-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--pine, #17352C);
  color: #F2F6F1;
  font: 700 14.5px/1 var(--body, "DM Sans", Inter, system-ui, sans-serif);
  box-shadow: 0 8px 24px rgba(23, 53, 44, .28);
  cursor: pointer;
}

.omo-ask-fab:hover { filter: brightness(1.08); }
.omo-ask-fab[hidden] { display: none; }
.omo-ask-fab-emoji { font-size: 17px; }

/* ── Popup panel ─────────────────────────────────────────────────────────── */
.omo-ask-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 61;
  width: min(374px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--rule, #D9E2DC);
  border-radius: 16px 16px 4px 16px;
  background: var(--surface, #FFFFFF);
  color: var(--pine, #17352C);
  box-shadow: 0 18px 48px rgba(23, 53, 44, .22);
}

.omo-ask-panel[hidden] { display: none; }

.omo-ask-panel h2 {
  margin: 0 0 8px;
  padding-right: 28px;
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.omo-ask-panel-intro {
  margin: 0 0 15px;
  color: var(--moss, #556158);
  font-size: 14px;
  line-height: 1.5;
}

.omo-ask-panel-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule, #D9E2DC);
  border-radius: 9px;
  background: var(--canvas, #F2F6F1);
  color: var(--pine, #17352C);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.omo-ask-panel-close:hover { background: #fff; }

.omo-ask-field { display: block; margin-bottom: 11px; }

.omo-ask-field span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
}

.omo-ask-panel input,
.omo-ask-panel textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--rule, #D9E2DC);
  border-radius: 10px;
  background: #fff;
  color: var(--pine, #17352C);
  font: inherit;
  font-size: 14.5px;
}

.omo-ask-panel textarea { min-height: 92px; resize: vertical; }

.omo-ask-panel input:focus,
.omo-ask-panel textarea:focus {
  outline: none;
  border-color: var(--orange, #FF6B3D);
}

.omo-ask-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  border: 0;
  border-radius: 999px;
  background: #A84325;  /* see the banner CTA note: 4.98:1 with white text */
  color: #fff;
  font: 700 15px/1 var(--body, "DM Sans", Inter, system-ui, sans-serif);
  cursor: pointer;
}

.omo-ask-submit:hover:not(:disabled) { filter: brightness(.96); }
.omo-ask-submit:disabled { opacity: .66; cursor: wait; }

.omo-ask-note {
  margin: 10px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pine, #17352C);
}

/* #8c2e16 on white is 6.4:1; the muted token would fail AA at this size. */
.omo-ask-note[data-state="error"] { color: #8c2e16; }
.omo-ask-note[data-state="sending"] { color: var(--moss, #556158); }

.omo-ask-mailto {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--moss, #556158);
}

.omo-ask-mailto a { color: var(--pine, #17352C); font-weight: 700; }

@media (max-width: 520px) {
  .omo-ask-fab { right: 14px; bottom: 14px; }
  .omo-ask-panel { right: 14px; bottom: 14px; width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: no-preference) {
  .omo-ask-panel { animation: omo-ask-in .16s ease-out; }
  @keyframes omo-ask-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Inline "ask us to build it" link-button ─────────────────────────────────
   Used inside running copy (the empty-search state), so it has to read as part
   of the sentence, not as a second competing button. Underlined text in the
   brand orange, keyboard focusable like any control. */
.feed-empty-request {
  padding: 0;
  border: 0;
  background: none;
  color: #A84325;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.feed-empty-request:hover { color: var(--pine, #17352C); }

.feed-empty-request:focus-visible {
  outline: 3px solid rgba(255, 107, 61, .34);
  outline-offset: 2px;
  border-radius: 3px;
}

/* omo-ask-fab-clearance: the launcher is position:fixed at the bottom-right,
   so at the end of a page it sat on top of the last footer links (Privacy,
   Support). Reserve room under the page so the footer can scroll clear. */
body:has(.omo-ask-fab:not([hidden])) { padding-bottom: 84px; }
