/* Postbeat landing — atmosphere + motion (Tailwind via CDN) */

:root {
  --pb-teal: #14b8a6;
  --pb-teal-dim: rgba(20, 184, 166, 0.12);
  --pb-ig-start: #f58529;
  --pb-ig-mid: #dd2a7b;
  --pb-ig-end: #8134af;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #14b8a6;
  color: #020617;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Soft aurora + grain */
.pb-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(244, 114, 182, 0.08), transparent 45%);
}

.pb-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pb-grid-soft {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent);
}

/* Marquee — social “energy” strip */
.pb-marquee {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.pb-marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: pb-marquee 32s linear infinite;
}
.pb-marquee:hover .pb-marquee-track {
  animation-play-state: paused;
}

@keyframes pb-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Float cards */
.pb-float {
  animation: pb-float 6s ease-in-out infinite;
}
.pb-float-slow {
  animation: pb-float 8s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes pb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Instagram-style ring */
.pb-ig-ring {
  padding: 3px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--pb-ig-start), var(--pb-ig-mid), var(--pb-ig-end));
  box-shadow: 0 0 40px -10px rgba(221, 42, 123, 0.35);
}

.pb-ig-inner {
  border-radius: 1.5rem;
  background: #020617;
  overflow: hidden;
}

/* Bento card hover */
.pb-bento-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.35s ease;
}
.pb-bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.08);
}

/* FAQ details */
.pb-details summary {
  list-style: none;
}
.pb-details summary::-webkit-details-marker {
  display: none;
}

.pb-details-chevron {
  transition: transform 0.2s ease;
}
.pb-details[open] .pb-details-chevron {
  transform: rotate(180deg);
}

.pb-input:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}

/* —— Pipeline deck (horizontal track; transform + flex widths from JS) —— */
.pb-deck-viewport {
  position: relative;
  min-height: 28rem;
}

@media (min-width: 1024px) {
  .pb-deck-viewport {
    min-height: 22rem;
  }
}

.pb-deck-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: calc(100% * 5);
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.pb-deck-slide {
  flex: 0 0 20%;
  min-width: 0;
  box-sizing: border-box;
}

.pb-deck--rm .pb-deck-toolbar {
  display: none;
}

.pb-deck--rm .pb-deck-viewport {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-height: 0;
  overflow: visible;
}

.pb-deck--rm .pb-deck-track {
  flex-direction: column;
  width: 100% !important;
  gap: 3rem;
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

.pb-deck--rm .pb-deck-slide {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100%;
}

/* Step 1 typewriter */
.pb-tw-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgb(45, 212, 191);
  width: 0;
  max-width: 100%;
  box-sizing: border-box;
  animation: pb_tw_type 16s steps(56, end) infinite, pb_tw_caret 0.85s step-end infinite;
}

@keyframes pb_tw_type {
  0%,
  6% {
    width: 0;
  }
  38% {
    width: min(56ch, 100%);
  }
  62% {
    width: min(56ch, 100%);
  }
  70%,
  100% {
    width: 0;
  }
}

@keyframes pb_tw_caret {
  0%,
  50% {
    border-right-color: rgb(45, 212, 191);
  }
  51%,
  100% {
    border-right-color: transparent;
  }
}

.pb-tw-cta {
  opacity: 0.5;
  animation: pb_tw_cta 16s ease-in-out infinite;
}

@keyframes pb_tw_cta {
  0%,
  32% {
    opacity: 0.45;
  }
  40%,
  68% {
    opacity: 1;
  }
  76%,
  100% {
    opacity: 0.45;
  }
}

.pb-gen-tile {
  animation: pb_gen_shimmer 2.4s ease-in-out infinite;
}

@keyframes pb_gen_shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* “Replaces” stack */
.pb-stack-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.75rem 1rem;
}

.pb-stack-x {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.pb-stack-x::before,
.pb-stack-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 2px;
  border-radius: 1px;
  background: rgba(252, 165, 165, 0.95);
  transform-origin: center;
}

.pb-stack-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.pb-stack-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pb-stack-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #f1f5f9;
}

.pb-stack-note {
  margin-left: auto;
  max-width: 58%;
  text-align: right;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .pb-deck-track {
    transition: none !important;
  }
  .pb-marquee-track {
    animation: none;
  }
  .pb-float,
  .pb-float-slow {
    animation: none;
  }
  .pb-gen-tile {
    animation: none;
  }
  .pb-tw-type {
    animation: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    border-right: none;
  }
  .pb-tw-placeholder {
    opacity: 0;
  }
  .pb-tw-cta {
    animation: none;
    opacity: 1;
  }
}

/* Legal pages — markdown body */
.pb-legal-body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.pb-legal-body h1,
.pb-legal-body h2,
.pb-legal-body h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.pb-legal-body h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pb-legal-body h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.pb-legal-body h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.pb-legal-body p {
  margin-bottom: 1rem;
}

.pb-legal-body ul,
.pb-legal-body ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 0.5rem;
}

.pb-legal-body li {
  margin-bottom: 0.35rem;
}

.pb-legal-body strong {
  font-weight: 600;
  color: #e2e8f0;
}

.pb-legal-body a {
  color: #2dd4bf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pb-legal-body a:hover {
  color: #5eead4;
}

.pb-legal-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pb-legal-body blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(45, 212, 191, 0.45);
  color: #94a3b8;
}
