/* PROTOTYPE — Pie Agent feedback (fb-*): the /prototype/feedback page and the landing's feedback row.
   Tokens come from .a-root (landing/a-base.css); the page shell is the Docs one (docs/docs-a.css). */

/* ── page: hero score, spotlight, running rows, the wall (the page shell is pages/page-a.css) ── */
.fb-h1 { font-size: clamp(42px, 5.4vw, 78px) !important; max-width: 13ch; }
.fb-hero .a-kicker { margin: 0 0 14px; }
.fb-score { display: inline-flex; align-items: center; gap: 16px; margin-top: 24px; padding: 12px 20px 12px 16px; border-radius: var(--pa-r-l); background: var(--pa-float-bg); border: var(--pa-bw) solid var(--pa-line); box-shadow: var(--pa-shadow-float); text-shadow: none; }
.fb-score[hidden] { display: none; }
.fb-score > b { font: 800 46px/1 "Inter Tight", var(--pa-font-ui); letter-spacing: -.03em; color: var(--pa-ink); }
.fb-score > span { display: grid; gap: 4px; }
.fb-score small { font: var(--pa-fs-sm) var(--pa-font-mono); color: var(--pa-ink-3); }
.fb-score small i { font-style: normal; color: var(--pa-ink); }
.fb-stars--lg { font-size: 20px; letter-spacing: 3px; }
.fb-first { margin: 22px 0 0; padding: 12px 16px; border-left: 3px solid var(--pa-link); font-size: var(--pa-fs-md); color: var(--pa-ink-2); max-width: 46ch; }

.fb-body { padding-top: 72px; display: grid; gap: 88px; }
.fb-skel { height: 160px; border-radius: var(--pa-r-l); background: linear-gradient(90deg, var(--pa-tint-1), var(--pa-tint-2), var(--pa-tint-1)) 0 0 / 200% 100%; animation: pa-shim 1.6s linear infinite; }

.fb-spot { position: relative; padding: 84px 64px 40px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(70% 120% at 0% 0%, color-mix(in oklch, var(--pa-accent) 22%, transparent), transparent 60%), var(--pa-float-bg); }
.fb-spot[hidden] { display: none; }
.fb-spot-q { position: absolute; left: 40px; top: -26px; font: 800 180px/1 "Inter Tight", Georgia, serif; color: color-mix(in oklch, var(--pa-link) 40%, transparent); pointer-events: none; }
.fb-spot-item { margin: 0; position: relative; display: grid; gap: 22px; animation: p-in var(--pa-dur-3) var(--pa-ease); }
.fb-spot-item blockquote { margin: 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.38; letter-spacing: -.015em; font-weight: 500; color: var(--pa-ink); max-width: 34ch; overflow-wrap: anywhere; }
.fb-spot-item figcaption { display: flex; align-items: center; gap: 14px; }
.fb-spot-item figcaption .fb-av { width: 52px; height: 52px; font-size: 20px; }
.fb-spot-item figcaption span { display: grid; gap: 2px; }
.fb-spot-item figcaption b { font-size: 17px; color: var(--pa-ink); }
.fb-spot-item figcaption small { font-size: var(--pa-fs); color: var(--pa-ink-3); }
.fb-spot-n { margin-left: auto; font: normal var(--pa-fs-xs) var(--pa-font-mono); color: var(--pa-ink-3); }
.fb-spot-nav { position: absolute; right: 28px; top: 28px; display: flex; gap: 6px; }
.fb-spot-nav[hidden] { display: none; }
.fb-spot-nav button { width: 38px; height: 38px; border-radius: var(--pa-r-s); border: var(--pa-bw) solid var(--pa-line); background: var(--pa-tint-1); color: var(--pa-ink-2); cursor: pointer; font-size: 16px; }
.fb-spot-nav button:hover { color: var(--pa-ink); background: var(--pa-tint-2); }

/* 2 rows running opposite ways, the edges fade out; hover stops them */
.fb-marq { display: grid; gap: 14px; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.fb-marq[hidden] { display: none; }
.fb-marq-track { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: fb-marq var(--dur, 48s) linear infinite; }
.fb-marq-row.rev .fb-marq-track { animation-direction: reverse; }
.fb-marq:hover .fb-marq-track { animation-play-state: paused; }
@keyframes fb-marq { to { transform: translateX(-50%); } }
.fb-card.is-compact { width: 340px; flex: none; align-content: space-between; }
.fb-card.is-compact .fb-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }

.fb-all-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.fb-all-head h2 { margin-bottom: 0 !important; }
.fb-filter[hidden] { display: none; }
.fb-wall { columns: 3 300px; column-gap: 14px; }
.fb-wall > * { break-inside: avoid; margin-bottom: 14px; }

/* outro: the form, the bot waving on the left */
.fb-outro .p-outro-in > * { max-width: 500px; }
.fb-outro .fb-form { width: min(500px, 100%); text-align: left; text-shadow: none; }

/* a card: stars, the words, who said it */
.fb-card { padding: 20px; border-radius: var(--pa-r-l); display: grid; gap: 14px; }
.fb-card.is-featured { border-color: color-mix(in oklch, var(--pa-link) 45%, transparent); }
.fb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fb-stars { color: var(--pa-st-attention); letter-spacing: 2px; font-size: 15px; }
.fb-stars i { font-style: normal; color: var(--pa-tint-3); }
.fb-card time { font: var(--pa-fs-xs) var(--pa-font-mono); color: var(--pa-ink-3); }
.fb-tag { font: normal 600 10.5px var(--pa-font-mono); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--pa-r-pill); background: var(--pa-accent-tint); color: var(--pa-link); }
.fb-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--pa-ink); overflow-wrap: anywhere; }
.fb-card footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: var(--pa-bw) solid var(--pa-line); }
.fb-card footer span { display: grid; gap: 1px; min-width: 0; }
.fb-card footer b { font-size: var(--pa-fs-md); color: var(--pa-ink); font-weight: 600; }
.fb-card footer small { font-size: var(--pa-fs-sm); color: var(--pa-ink-3); }
.fb-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--pa-canvas), 0 0 0 3px color-mix(in oklch, var(--pa-link) 50%, transparent); }
.fb-av--i { display: grid; place-items: center; background: linear-gradient(140deg, var(--pa-link), var(--pa-accent)); color: var(--pa-on-accent); font: 700 16px var(--pa-font-ui); }
.fb-empty { padding: 28px; border-radius: var(--pa-r-l); display: grid; justify-items: start; gap: 12px; }
.fb-empty img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.fb-empty p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--pa-ink-2); max-width: 40ch; }

/* the form */
.fb-form { padding: 22px; border-radius: var(--pa-r-l); display: grid; gap: 14px; }
.fb-form h2 { margin: 0 !important; font-size: 26px !important; letter-spacing: -.02em; color: var(--pa-ink); }
.fb-form .a-kicker { margin: 0 0 -8px; }
.fb-form-p { margin: -6px 0 2px; font-size: var(--pa-fs); line-height: 1.5; color: var(--pa-ink-3); }
.fb-form label { display: grid; gap: 6px; }
.fb-lbl { display: flex; justify-content: space-between; gap: 8px; font: 600 var(--pa-fs-xs) var(--pa-font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--pa-ink-3); }
.fb-lbl i { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.fb-form input[type="text"], .fb-form input[type="email"], .fb-form textarea { width: 100%; padding: 11px 13px; border-radius: var(--pa-r-m); border: var(--pa-bw) solid var(--pa-line-strong); background: var(--pa-canvas); color: var(--pa-ink); font: var(--pa-fs-md) var(--pa-font-ui); outline: 0; resize: vertical; }
.fb-form input:focus, .fb-form textarea:focus { border-color: var(--pa-link); box-shadow: var(--pa-focus); }
.fb-who { display: flex; align-items: center; gap: 14px; }
.fb-pick { all: unset; cursor: pointer; width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, var(--pa-link), var(--pa-accent)); color: var(--pa-on-accent); font: 700 22px var(--pa-font-ui); box-shadow: 0 0 0 2px var(--pa-canvas), 0 0 0 3px color-mix(in oklch, var(--pa-link) 50%, transparent); }
.fb-pick img { width: 100%; height: 100%; object-fit: cover; }
.fb-pick:focus-visible { outline: 2px solid var(--pa-link); outline-offset: 4px; }
.fb-who > div { display: grid; gap: 6px; }
.fb-pick-acts { display: flex; gap: 12px; }
.fb-link { all: unset; cursor: pointer; font-size: var(--pa-fs); color: var(--pa-link); }
.fb-link:hover { text-decoration: underline; }
.fb-pick-x { color: var(--pa-ink-3); }
.fb-pick:not(.has) ~ div .fb-pick-x { display: none; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fb-row > div { display: grid; gap: 6px; align-content: start; }
.fb-plan { display: flex; gap: 4px; padding: 3px; border-radius: var(--pa-r-m); background: var(--pa-tint-1); border: var(--pa-bw) solid var(--pa-line); width: fit-content; }
.fb-plan label { display: block; cursor: pointer; }
.fb-plan input { position: absolute; opacity: 0; pointer-events: none; }
.fb-plan span { display: block; padding: 6px 14px; border-radius: var(--pa-r-s); font-size: var(--pa-fs); color: var(--pa-ink-2); }
.fb-plan input:checked + span { background: var(--pa-accent); color: var(--pa-on-accent); }
.fb-plan input:focus-visible + span { box-shadow: var(--pa-focus); }
.fb-rate { display: flex; gap: 2px; }
.fb-rate button { all: unset; cursor: pointer; font-size: 22px; line-height: 1; color: var(--pa-tint-3); padding: 2px; transition: color var(--pa-dur-1), transform var(--pa-dur-1); }
.fb-rate button.on { color: var(--pa-st-attention); }
.fb-rate button:hover { transform: scale(1.15); }
.fb-rate button:focus-visible { outline: 2px solid var(--pa-link); border-radius: 4px; }
.fb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-form button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.fb-msg { margin: 0; min-height: 1.4em; font-size: var(--pa-fs); line-height: 1.45; color: var(--pa-ink-2); }
.fb-msg[data-k="ok"] { color: var(--pa-st-done); } .fb-msg[data-k="bad"] { color: var(--pa-st-error); }

/* landing section (MoreA.astro): bot + score, the running rows, the 2 links */
.mo-fb-sec { padding-bottom: 72px; overflow: hidden; }
.mo-fb-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.mo-fb-who { display: flex; align-items: center; gap: 18px; }
.mo-fb-bot { border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 32%, #fff 0%, #f4f6f9 60%, #e3e8ef 100%); box-shadow: 0 0 0 1px var(--pa-line-strong), 0 18px 40px -16px rgba(0, 0, 0, .6); animation: mo-bob 4s ease-in-out infinite; }
/* the bot's ring: a teal arc running round it (the status ring of the Pie panel, big) + a slow sonar pulse */
.mo-fb-ava { position: relative; width: 72px; height: 72px; flex: none; display: grid; place-items: center; animation: mo-bob 4s ease-in-out infinite; }
.mo-fb-ava .mo-fb-bot { width: 60px; height: 60px; position: relative; z-index: 1; animation: none; }   /* the wrapper bobs, so ring and bot move together */
.mo-fb-ava::before { content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 35%, color-mix(in oklch, var(--pa-link) 40%, transparent) 60%, var(--pa-link) 92%, #bff7f5 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 6px color-mix(in oklch, var(--pa-link) 70%, transparent)); animation: pa-spin 2.8s linear infinite; }
.mo-fb-ava::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid color-mix(in oklch, var(--pa-link) 60%, transparent); animation: mo-fb-sonar 2.8s var(--pa-ease) infinite; }
@keyframes mo-fb-sonar { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.mo-fb-who h2 { margin: 6px 0 0 !important; }
.mo-fb-score { display: flex; align-items: center; gap: 14px; }
.mo-fb-score[hidden] { display: none; }
.mo-fb-score > b { font: 800 44px/1 "Inter Tight", var(--pa-font-ui); letter-spacing: -.03em; color: var(--pa-ink); }
.mo-fb-score > span { display: grid; gap: 4px; }
.mo-fb-score small { font: var(--pa-fs-sm) var(--pa-font-mono); color: var(--pa-ink-3); }
.mo-fb-foot { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
/* nothing approved yet: Pie's questions run instead, each one opens the form */
.fb-ask { width: 300px; flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--pa-r-l); text-decoration: none; transition: border-color var(--pa-dur-2) var(--pa-ease); }
.fb-ask:hover { border-color: color-mix(in oklch, var(--pa-link) 50%, transparent); }
.fb-ask img { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; }
.fb-ask span { display: grid; gap: 3px; }
.fb-ask b { font-size: 16px; font-weight: 600; color: var(--pa-ink); }
.fb-ask small { font: var(--pa-fs-xs) var(--pa-font-mono); color: var(--pa-link); }

@media (max-width: 860px) {
  .fb-body { padding-top: 48px; gap: 64px; }
  .fb-spot { padding: 44px 20px 24px; border-radius: var(--pa-r-l); }
  .fb-spot-q { left: 12px; top: -10px; font-size: 120px; }
  .fb-spot-nav { position: static; margin-top: 18px; }
  .fb-spot-n { display: none; }
  .fb-card.is-compact { width: 280px; }
  .fb-wall { columns: 1; }
  .fb-row { grid-template-columns: minmax(0, 1fr); }
  .fb-score > b, .mo-fb-score > b { font-size: 36px; }
  .mo-fb-ava { width: 58px; height: 58px; } .mo-fb-ava .mo-fb-bot { width: 48px; height: 48px; }
  .fb-ask { width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .fb-skel, .fb-marq-track, .mo-fb-bot, .mo-fb-ava, .mo-fb-ava::before, .mo-fb-ava::after { animation: none; } .fb-marq { overflow-x: auto; } }
