/* Meet Mr Frank on the website (04 CARE-13; Figma Website W·F4 panel, W·F4m phone, W·F5 button, W·F6 nudge).
   An explainer, not a chat (user, 19 Nov 2026). Tokens from base.css only (07). */
.askf { position: fixed; right: 32px; bottom: 32px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: inherit; }
.askf .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Button (Figma W·F5) */
.askf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); font: 500 16px/20px inherit; font-family: inherit; box-shadow: 0 6px 24px rgba(0,0,0,.12); cursor: pointer; }
.askf-tag { background: var(--gulf-wash); color: var(--info); border-radius: 999px; padding: 1px 6px; font-size: 11px; line-height: 16px; font-weight: 500; }
.askf.is-open .askf-btn { display: none; }

/* Nudge (Figma W·F6): beside the button, never over the page's content column on desktop */
.askf-nudge { display: flex; gap: 12px; align-items: flex-start; width: 320px; padding: 16px 12px 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: 0 6px 24px rgba(0,0,0,.12); animation: askf-in .24s cubic-bezier(.2,.8,.2,1); }
.askf-nudge[hidden], .askf-panel[hidden] { display: none; }
.askf-nudge__body { all: unset; flex: 1; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.askf-nudge__t { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--foreground); }
.askf-nudge__s { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.askf-x { all: unset; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px 0 0; border-radius: 999px; color: var(--muted-foreground); cursor: pointer; flex: none; }
.askf-x:focus-visible, .askf-btn:focus-visible, .askf-chip:focus-visible, .askf-send:focus-visible, .askf-nudge__body:focus-visible { outline: 2px solid var(--ring, var(--info)); outline-offset: 2px; }

/* Panel (Figma W·F4): 380 wide, up to 600 tall on desktop (the body scrolls), full screen on a phone (W·F4m) */
.askf-panel { width: 380px; height: min(600px, calc(100dvh - 64px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.12); overflow: hidden; animation: askf-in .24s cubic-bezier(.2,.8,.2,1); }
.askf-hd { display: flex; align-items: center; gap: 10px; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--border); }
/* Avatar: a generated portrait (07 §8), never a real person, always with "AI" beside or on it (CARE-6) */
.askf-av { width: 36px; height: 36px; border-radius: 999px; background: var(--mist) url("../assets/brand/mr-frank-ai-avatar.jpg") center / cover no-repeat; position: relative; flex: none; }
.askf-av--sm { width: 28px; height: 28px; }
.askf-av--lg { width: 40px; height: 40px; }
.askf-av__tag { position: absolute; right: -4px; bottom: -2px; padding: 0 4px; border-radius: 999px; background: var(--foreground); color: var(--paper); border: 2px solid var(--card); font-size: 9px; line-height: 12px; font-weight: 500; letter-spacing: .02em; }
.askf-hd__t { flex: 1; display: flex; flex-direction: column; }
.askf-hd__n { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--foreground); }
.askf-hd__s { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.askf-hd .askf-x { color: var(--muted-foreground); margin: 0; }
.askf-log { flex: 1; overflow-y: auto; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
.askf-m { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 22px; }
.askf-m--f { background: var(--band); color: var(--foreground); }
.askf-sec { display: flex; flex-direction: column; gap: 8px; }
.askf-sec__t { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.askf-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.askf-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--foreground); }
.askf-ticks svg { flex: none; margin-top: 2px; color: var(--foreground); }
.askf-ticks--do svg { color: var(--primary); }
.askf-qs { display: flex; flex-direction: column; }
.askf-q + .askf-q { border-top: 1px solid var(--border-subtle, var(--border)); }
.askf-q summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--foreground); cursor: pointer; border-radius: 4px; }
.askf-q summary::-webkit-details-marker { display: none; }
.askf-q summary::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: linear-gradient(currentColor 0 0) center / 14px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 14px no-repeat; mask: linear-gradient(#000 0 0) center / 14px 2px no-repeat, linear-gradient(#000 0 0) center / 2px 14px no-repeat; }
.askf-q[open] summary::after { -webkit-mask: linear-gradient(currentColor 0 0) center / 14px 2px no-repeat; mask: linear-gradient(#000 0 0) center / 14px 2px no-repeat; }
.askf-q summary:focus-visible { outline: 2px solid var(--ring, var(--info)); outline-offset: 2px; }
.askf-q p { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.askf-su[hidden] { display: none; }
.askf-go { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 13px 16px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); text-align: center; font-size: 16px; line-height: 22px; font-weight: 500; cursor: pointer; }
.askf-go[hidden] { display: none; }
.askf-go:focus-visible { outline: 2px solid var(--ring, var(--info)); outline-offset: 2px; }
.askf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* "Get started": the address step and the home it found (CARE-18) */
.askf-card { display: flex; flex-direction: column; gap: 8px; align-self: stretch; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.askf-card__t { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.askf-card__b { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.askf-card__row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border-subtle, var(--border)); font-size: 14px; line-height: 20px; }
.askf-card__v { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-weight: 500; }
.askf-card__s { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted-foreground); }
.askf-card .askf-chips { padding-top: 4px; }
a.askf-chip { text-decoration: none; }
.askf-card .askf-addr { margin: 0; }
.askf-card .askf-addr input { font-size: 16px; } /* no zoom on phones (X-134) */
.askf-chip { all: unset; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); cursor: pointer; }
.askf-ft { border-top: 1px solid var(--border); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.askf-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; background: var(--card); }
.askf-in input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; line-height: 22px; color: var(--foreground); min-width: 0; }
.askf-send { all: unset; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--info); color: var(--primary-foreground, #fff); cursor: pointer; flex: none; }
.askf-fine { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted-foreground); }
.askf-fine a { color: var(--info); text-decoration: underline; }

@media (hover: hover) and (pointer: fine) {
  .askf-btn:hover { border-color: var(--foreground); }
  .askf-chip:hover { border-color: var(--foreground); }
  .askf-x:hover { background: var(--band); }
  .askf-go:hover { background: var(--primary-hover, var(--primary)); }
}
@media (max-width: 640px) {
  .askf { right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); left: 16px; }
  .askf-nudge { width: 100%; box-sizing: border-box; }
  .askf.is-open { inset: 0; }
  .askf-panel { position: fixed; inset: 0; width: auto; height: 100dvh; border: 0; border-radius: 0; }
  .askf-hd { padding-top: calc(16px + env(safe-area-inset-top)); }
  .askf-ft { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@keyframes askf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .askf-nudge, .askf-panel { animation: none; } }
