/* Nordic _library — floating widgets (copy into client css/) */
/* Depends on client tokens: --accent, --accent-ink, --muted, --line, --radius, --ease (optional) */

.fab-stack {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: inherit;
}

.fab img {
  width: 28px;
  height: 28px;
}

.fab--tg { background: #2aabee; }
.fab--max { background: #7b61ff; }
.fab--max img { width: 26px; height: 26px; }

.phone-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 55;
  transform: translateY(-50%);
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  visibility: visible;
}

.phone-rail.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(120%);
  pointer-events: none;
}

.phone-rail__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  padding: 1.35rem 0.7rem;
  border-radius: 14px 0 0 14px;
  background: var(--accent, #1a4d3e);
  color: var(--accent-ink, #fff);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  white-space: nowrap;
}

.phone-rail__btn:hover {
  color: var(--accent-ink, #fff);
  filter: brightness(1.08);
}

.phone-rail__btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 70%
  );
  transform: skewX(-18deg);
  animation: nb-phone-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nb-phone-shine {
  0%, 55% { left: -60%; opacity: 0; }
  60% { opacity: 1; }
  85%, 100% { left: 140%; opacity: 0; }
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 640px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius, 2px);
  border: 1px solid var(--line, #ddd9d2);
  background: rgba(26, 28, 30, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-bar.is-out {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cookie-bar p {
  margin: 0 0 0.9rem;
  color: #c8c9cb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-bar a {
  color: var(--accent, #8fd4b8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-bar .btn--small {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.policy-page {
  padding: 2.5rem 0 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.policy-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.policy-page .policy-meta {
  margin: 0 0 2rem;
  color: var(--muted, #5a5f66);
  font-size: 0.9rem;
}

.policy-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--accent, #1a4d3e);
}

.policy-page p,
.policy-page li {
  color: var(--muted, #5a5f66);
  margin: 0 0 0.85rem;
}

@media (max-width: 720px) {
  .phone-rail__btn {
    font-size: 0.82rem;
    padding: 1rem 0.55rem;
  }
  .fab-stack {
    right: 0.85rem;
    bottom: 0.85rem;
  }
  .fab {
    width: 48px;
    height: 48px;
  }
  .cookie-bar {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    margin-right: 4.5rem;
  }
}

.splash-cursor {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.splash-cursor canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
