/* ===========================================================================
   Additions to the landing stylesheet.
   ---------------------------------------------------------------------------
   style.css is the landing page's own sheet and is left untouched, so the
   marketing page keeps rendering exactly as it did as a static file. Anything
   the application needs on top — flash messages, forms, the skip link — lives
   here, where it cannot cause a visual diff on a page that was already signed
   off.
   ======================================================================== */

/* ---------------------------------------------------------------------------
   Skip link
   Visible only once focused. A keyboard user should not have to tab through
   the whole navigation on every page to reach the content.
   ------------------------------------------------------------------------ */
.pix-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  color: #fff;
  background: #6d28d9;
  border-radius: 0 0 8px 0;
}
.pix-skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------------------
   Flash messages
   ------------------------------------------------------------------------ */
.pix-flash-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(560px, calc(100vw - 32px));
}

.pix-flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font: 500 14.5px/1.5 'Inter', system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
  border-left: 4px solid #6b7280;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .16);
  animation: pix-flash-in .3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes pix-flash-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

.pix-flash--success { border-left-color: #16a34a; }
.pix-flash--error   { border-left-color: #dc2626; }
.pix-flash--info    { border-left-color: #2563eb; }

.pix-flash__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #6b7280;
  border-radius: 999px;
}
.pix-flash--success .pix-flash__icon { background: #16a34a; }
.pix-flash--error   .pix-flash__icon { background: #dc2626; }
.pix-flash--info    .pix-flash__icon { background: #2563eb; }

.pix-flash__text { flex: 1; }

.pix-flash__close {
  flex: none;
  padding: 0 2px;
  font-size: 20px;
  line-height: 1;
  color: #9ca3af;
  background: none;
  border: 0;
  cursor: pointer;
}
.pix-flash__close:hover { color: #374151; }

@media (prefers-reduced-motion: reduce) {
  .pix-flash { animation: none; }
}
