/*
  The Fresh Noice sample bar: sits above every sample site, says it's a sample, and holds
  the Starter / Pro switch. Black and white, like freshnoice.com, so it never reads as
  part of the business's own site.
*/
.fn-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 16px;
  background: #000;
  color: #fff;
  font: 500 13px/1.3 "Helvetica Neue", Arial, system-ui, sans-serif;
  letter-spacing: 0;
}
.fn-bar a { color: inherit; }
.fn-bar__label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fn-bar__tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.fn-bar__by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }
.fn-bar__by a { text-decoration: underline; text-underline-offset: 3px; }
.fn-bar__switch {
  margin-left: auto;
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.fn-bar__switch a, .fn-bar__switch .is-soon {
  display: inline-block;
  border-radius: 99px;
  padding: 7px 12px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.fn-bar__switch a span, .fn-bar__switch .is-soon span { font-weight: 400; opacity: 0.7; }
.fn-bar__switch a:hover { background: rgba(255, 255, 255, 0.12); }
.fn-bar__switch a[aria-current="page"] { background: #fff; color: #000; }
.fn-bar__switch .is-soon { opacity: 0.45; cursor: default; }
.fn-bar__switch a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fn-bar__what { flex: none; opacity: 0.7; }
@media (max-width: 720px) {
  .fn-bar__what, .fn-bar__by { display: none; }
  .fn-bar__switch a, .fn-bar__switch .is-soon { padding: 7px 10px; }
}

/* the first-visit pointer to the switch */
.fn-hint {
  position: absolute;
  top: calc(100% + 12px);
  right: 12px;
  z-index: 1002;
  width: min(330px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: 400 14px/1.45 "Helvetica Neue", Arial, system-ui, sans-serif;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.fn-hint::before { content: ""; position: absolute; top: -7px; right: 60px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.fn-hint.is-in { opacity: 1; transform: none; }
.fn-hint.is-out { opacity: 0; }
.fn-hint p { margin: 0; }
.fn-hint button { margin-top: 10px; padding: 7px 14px; border: 0; border-radius: 99px; background: #000; color: #fff; font: 600 13px/1 "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.fn-bar__switch.is-pointed { animation: fn-pulse 1.8s ease-out infinite; }
@keyframes fn-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .fn-bar__switch.is-pointed { animation: none; box-shadow: 0 0 0 2px #fff; } .fn-hint { transition: none; } }

/* the note that says what just changed */
.fn-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1001;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font: 500 14px/1.4 "Helvetica Neue", Arial, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.fn-note.is-on { opacity: 1; transform: translate(-50%, 0); }
/* clear the sites' thumb-reach call dock on phones */
@media (max-width: 899px) { .fn-note { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }


/* scroll reveals, only when motion is allowed (sample.js sets .fn-anim) */
html.fn-anim [data-reveal] { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0s); }
html.fn-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* the sample footer line every site carries */
.fn-foot {
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #000;
  color: rgba(255, 255, 255, 0.75);
  font: 400 13px/1.5 "Helvetica Neue", Arial, system-ui, sans-serif;
  text-align: center;
}
.fn-foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .fn-note { transition: none; }
}
html[data-plan="pro"] .fn-hint::before { right: 128px; }
@media (max-width: 720px) { html[data-plan="pro"] .fn-hint::before { right: 112px; } .fn-hint::before { right: 40px; } }
