/* For Pets Like Blue: Amazon price finder (/price-finder/).
   Every class is prefixed pf- so nothing here touches site.css or brand.css.
   Load order on the page: site.css, this file, brand.css.
   Motion only ever animates from a hidden start inside @keyframes, so with reduced
   motion (site.css turns animation off) everything is simply visible. */
.pf {
  --pf-ink: #231c15;
  --pf-ink-2: #5b4f43;
  --pf-paper: #fbf6ee;
  --pf-cream: #f3eadc;
  --pf-line: #eadfcd;
  --pf-clay: #c4532a;
  --pf-clay-deep: #9e3f1d;
  --pf-blue: #4f86c6;
  --pf-blue-deep: #2f5f9e;
  --pf-butter: #f3c65a;
  --pf-lab: #efdcb4;
  --pf-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --pf-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: var(--pf-sans);
  color: var(--pf-ink);
}
.pf-in { position: relative; width: min(760px, calc(100% - 2.25rem)); margin: 0 auto; }

/* Soft colour drifting behind the tool. Decorative only. */
.pf-glow { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; }
.pf-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.pf-glow i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -140px; background: var(--pf-butter); animation: pf-drift 16s var(--pf-ease) infinite alternate; }
.pf-glow i:nth-child(2) { width: 380px; height: 380px; right: -110px; top: 40px; background: #bcd6f2; animation: pf-drift 19s var(--pf-ease) infinite alternate-reverse; }
.pf-glow i:nth-child(3) { width: 300px; height: 300px; left: 38%; top: 330px; background: #f6c9b3; opacity: 0.4; animation: pf-drift 23s var(--pf-ease) infinite alternate; }
@keyframes pf-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(46px, 34px, 0) scale(1.14); }
}

.pf-hero { padding: 2.6rem 0 1.4rem; text-align: center; }
.pf-hero > .pf-in > * { animation: pf-up 0.7s var(--pf-ease) both; }
.pf-hero > .pf-in > *:nth-child(2) { animation-delay: 0.06s; }
.pf-hero > .pf-in > *:nth-child(3) { animation-delay: 0.12s; }
.pf-hero > .pf-in > *:nth-child(4) { animation-delay: 0.18s; }
.pf-hero > .pf-in > *:nth-child(5) { animation-delay: 0.26s; }
.pf-hero > .pf-in > *:nth-child(n + 6) { animation-delay: 0.34s; }
@keyframes pf-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Blue's photo, so the tool is plainly this site's. */
.pf-blue { position: relative; width: 104px; height: 104px; margin: 0 auto 1.1rem; }
.pf-blue img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 14px 34px -14px rgba(35, 28, 21, 0.5); }
.pf-blue::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed var(--pf-clay); opacity: 0.55; animation: pf-spin 26s linear infinite; }
.pf-blue span { position: absolute; right: -8px; bottom: 2px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pf-clay); color: #fff; border: 3px solid #fff; animation: pf-bob 3.2s ease-in-out infinite; }
.pf-blue svg { width: 18px; height: 18px; display: block; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-bob { 50% { transform: translateY(-5px) rotate(-8deg); } }

.pf-pill { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; padding: 0.4rem 0.95rem; border-radius: 999px; background: #fff; border: 1px solid var(--pf-line); font: 700 0.76rem/1.3 var(--pf-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--pf-clay-deep); }
.pf-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-clay); animation: pf-pulse 2.2s ease-out infinite; }
@keyframes pf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 83, 42, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(196, 83, 42, 0); }
}
.pf h1 { font: 560 clamp(2.05rem, 6.4vw, 3.5rem)/1.06 var(--pf-serif); letter-spacing: -0.02em; margin: 0 0 0.9rem; color: var(--pf-ink); }
.pf h1 em { display: block; font-style: italic; font-weight: 500; color: var(--pf-clay); }
.pf-lead { margin: 0 auto 1.6rem; max-width: 56ch; font-size: 1.1rem; line-height: 1.6; color: var(--pf-ink-2); }

/* The tool */
.pf-form { margin: 0; }
.pf-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 1.1rem; background: #fff; border: 2px solid var(--pf-ink); border-radius: 999px; box-shadow: 0 18px 44px -22px rgba(35, 28, 21, 0.55), 0 0 0 6px rgba(243, 198, 90, 0.28); transition: box-shadow 0.25s, border-color 0.25s; }
.pf-bar:focus-within { border-color: var(--pf-clay); box-shadow: 0 18px 44px -22px rgba(35, 28, 21, 0.55), 0 0 0 6px rgba(243, 198, 90, 0.6); }
.pf-bar svg { flex: none; width: 22px; height: 22px; color: var(--pf-ink-2); }
.pf-bar input { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; background: transparent; color: var(--pf-ink); font: 500 1.08rem var(--pf-sans); outline: none; -webkit-appearance: none; appearance: none; }
.pf-bar input::placeholder { color: #8a7d6f; font-weight: 400; }
.pf-bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pf-go { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 52px; padding: 0 1.35rem; border: 0; border-radius: 999px; background: var(--pf-clay); color: #fff; font: 700 1.02rem var(--pf-sans); cursor: pointer; transition: background 0.2s, transform 0.2s var(--pf-ease); }
.pf-go span, .pf-amz span { display: inline-block; transition: transform 0.25s var(--pf-ease); }
.pf-go:active { transform: scale(0.97); }

.pf-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 1.15rem 0 0; font-size: 1rem; color: var(--pf-ink-2); }
.pf-label { font-weight: 700; color: var(--pf-ink); margin-right: 0.15rem; }
.pf-label small { font-weight: 500; font-size: 0.9rem; color: var(--pf-ink-2); margin-left: 0.2rem; }
.pf-opt { position: relative; display: inline-flex; }
.pf-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pf-opt span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem; border: 1.5px solid var(--pf-line); border-radius: 999px; background: #fff; color: var(--pf-ink); font-weight: 600; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--pf-ease); }
.pf-opt input:checked + span { background: var(--pf-ink); border-color: var(--pf-ink); color: #fff; transform: translateY(-1px); }
.pf-opt input:focus-visible + span { outline: 3px solid var(--pf-butter); outline-offset: 3px; }
.pf-money { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0 0.85rem; background: #fff; border: 1.5px solid var(--pf-line); border-radius: 999px; transition: border-color 0.2s, box-shadow 0.2s; }
.pf-money:focus-within { border-color: var(--pf-clay); box-shadow: 0 0 0 3px rgba(243, 198, 90, 0.5); }
.pf-money b { font-weight: 600; color: var(--pf-ink-2); }
.pf-money input { width: 5rem; min-height: 48px; border: 0; background: transparent; color: var(--pf-ink); font: 500 1.05rem var(--pf-sans); padding: 0; outline: none; -moz-appearance: textfield; appearance: textfield; }
.pf-money input::placeholder { color: #8a7d6f; font-weight: 400; }
.pf-money input::-webkit-outer-spin-button,
.pf-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-hint { margin: 0.75rem 0 0; font-size: 0.94rem; color: var(--pf-ink-2); }
.pf-error { margin: 1rem 0 0; color: #a3261a; font-weight: 600; }

/* The link, once it is ready */
.pf-result { margin: 1.5rem auto 0; padding: 1.5rem 1.25rem 1.3rem; background: #fff; border: 2px solid var(--pf-ink); border-radius: 26px; box-shadow: 0 22px 50px -26px rgba(35, 28, 21, 0.6); }
.pf-result.pf-pop { animation: pf-pop 0.5s var(--pf-ease) both; }
@keyframes pf-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.pf-kicker { margin: 0 0 0.45rem; font: 700 0.76rem/1.3 var(--pf-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-clay-deep); }
.pf-query { margin: 0 0 1.1rem; font-size: 1.14rem; line-height: 1.5; color: var(--pf-ink-2); overflow-wrap: anywhere; }
.pf-query b { color: var(--pf-ink); }
.pf-amz { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; padding: 0 1.9rem; border-radius: 999px; background: var(--pf-butter); border: 2px solid var(--pf-ink); color: var(--pf-ink); font: 700 1.1rem var(--pf-sans); text-decoration: none; box-shadow: 0 6px 0 var(--pf-ink); transition: transform 0.15s, box-shadow 0.15s, background 0.2s; }
.pf-amz:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pf-ink); color: var(--pf-ink); }
.pf-fine { margin: 1rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--pf-ink-2); }

.pf-ex { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin: 1.6rem 0 0; }
.pf-ex > span { font: 700 0.76rem/1.3 var(--pf-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-ink-2); margin-right: 0.15rem; }
.pf-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem; border: 1.5px solid var(--pf-line); border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--pf-ink); font-weight: 600; font-size: 0.98rem; text-decoration: none; animation: pf-up 0.45s var(--pf-ease) both; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--pf-ease); }
.pf-chip:active { border-color: var(--pf-clay); background: #fff; color: var(--pf-ink); }

/* How it works */
.pf-steps { list-style: none; display: grid; gap: 0.9rem; margin: 2.6rem auto 0; padding: 0; width: min(980px, calc(100% - 2.25rem)); counter-reset: pf; }
.pf-steps li { counter-increment: pf; position: relative; padding: 1.15rem 1.2rem 1.2rem 4.1rem; background: #fff; border: 1px solid var(--pf-line); border-radius: 22px; text-align: left; }
.pf-steps li::before { content: counter(pf); position: absolute; left: 1.1rem; top: 1.05rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--pf-lab); font: 600 1.15rem var(--pf-serif); color: var(--pf-ink); }
.pf-steps strong { display: block; font: 600 1.14rem/1.3 var(--pf-serif); }
.pf-steps span { display: block; margin-top: 0.2rem; font-size: 0.98rem; line-height: 1.5; color: var(--pf-ink-2); }

.pf-how { width: min(980px, calc(100% - 2.25rem)); margin: 1.6rem auto 0; padding: 1.5rem 1.4rem; background: var(--pf-cream); border-radius: 22px; }
.pf-how h2 { margin: 0 0 0.6rem; font: 560 1.45rem/1.2 var(--pf-serif); }
.pf-how ul { margin: 0; padding-left: 1.2rem; }
.pf-how li { margin: 0.35rem 0; font-size: 1rem; line-height: 1.55; color: var(--pf-ink-2); max-width: 78ch; }
.pf-how .fplb-disclose { margin-top: 1rem; background: #fff; }

.pf-more { width: min(980px, calc(100% - 2.25rem)); margin: 1.6rem auto 0; display: grid; gap: 0.8rem; }
.pf-more a { display: block; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--pf-line); border-radius: 18px; color: var(--pf-ink); font-weight: 700; text-decoration: none; transition: transform 0.2s var(--pf-ease), border-color 0.2s; }
.pf-more small { display: block; margin-top: 0.15rem; font-weight: 500; font-size: 0.92rem; color: var(--pf-ink-2); }

@media (hover: hover) {
  .pf-go:hover { background: var(--pf-clay-deep); }
  .pf-go:hover span { transform: translateX(4px); }
  .pf-opt:hover input:not(:checked) + span { border-color: var(--pf-ink); }
  .pf-chip:hover { border-color: var(--pf-ink); background: #fff; color: var(--pf-ink); transform: translateY(-2px); }
  .pf-amz:hover { background: #f7d277; color: var(--pf-ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--pf-ink); }
  .pf-amz:hover span { transform: translate(3px, -3px); }
  .pf-more a:hover { transform: translateY(-3px); border-color: var(--pf-ink); color: var(--pf-ink); }
}
@media (min-width: 760px) {
  .pf-hero { padding-top: 3.4rem; }
  .pf-steps, .pf-more { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .pf-bar { flex-wrap: wrap; border-radius: 26px; padding: 0.45rem; }
  .pf-bar svg { margin-left: 0.6rem; }
  .pf-bar input { flex: 1 1 60%; }
  .pf-go { flex: 1 1 100%; justify-content: center; }
  .pf-label { flex: 1 1 100%; margin: 0; }
  .pf-amz { width: 100%; }
}
