/* CloudClaw v2 — Custom styles (everything else is Tailwind utilities) */

/* ── Telegram Mockup (landing hero) ── */

.tg-mockup {
  width: clamp(260px, 34vw, 340px);
  border-radius: 22px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: #eaf2fb;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tg-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(66, 165, 245, 0.14), transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(126, 87, 194, 0.10), transparent 58%),
    radial-gradient(circle at 30% 90%, rgba(38, 166, 154, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.tg-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.40) 1px, transparent 1.8px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.tg-mockup > * { position: relative; z-index: 1; }

.tg-msg {
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 92%;
  width: fit-content;
}

.tg-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 8px;
}

.tg-msg--user {
  align-self: flex-end;
  background: #2aabee;
  color: #fff;
  box-shadow: 0 14px 28px rgba(42, 171, 238, 0.20);
  border-bottom-right-radius: 8px;
}

/* ── Flow step connector lines ── */

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--color-stroke);
  z-index: 0;
}

/* ── Marquee animation ── */

.marquee {
  --gap: 10px;
}

.marquee-row {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-row--reverse { animation-direction: reverse; }
.marquee-row:nth-child(2) { animation-duration: 47s; }
.marquee-row:nth-child(3) { animation-duration: 52s; }

.marquee:hover .marquee-row { animation-play-state: paused; }

.marquee-track {
  display: flex;
  gap: var(--gap);
  flex-shrink: 0;
  min-width: max-content;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--gap) / 2))); }
}

/* ── Marquee chips ── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 12px;
  padding: 9px 14px;
  border: 1px solid var(--color-stroke);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Testimonial cards ── */

.testimonial-card {
  width: clamp(240px, 60vw, 360px);
  border-radius: 18px;
  border: 1px solid var(--color-stroke);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
  margin: 0;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 20%, rgba(242, 204, 143, 0.25), transparent 58%),
              radial-gradient(circle at 95% 10%, rgba(129, 178, 154, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

/* ── Checklist checkboxes ── */

.checklist-check {
  border-color: #bbb;
  background: white;
  cursor: pointer;
}

.checklist-check:hover {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.12);
}

/* ── OAuth step dividers ── */

#oauth-steps > div + div {
  border-top: 1px solid #e5e0d8;
  padding-top: 2rem;
}

/* ── Telegram step screenshots (Splide carousel) ── */

#tg-carousel {
  width: min(300px, 75vw);
  padding: 0 48px; /* room for arrows outside the track */
}

#tg-carousel img {
  width: 100%;
  border-radius: 12px;
}

#tg-carousel .splide__arrow--prev { left: 0; }
#tg-carousel .splide__arrow--next { right: 0; }

/* ── Onboarding step visibility ── */

[data-step] { display: none; }
[data-step].is-active { display: block; }

/* ── Spinner ── */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-stroke);
  border-top-color: var(--color-sky);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.7s linear infinite;
}

/* ── Background blobs ── */

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

/* ── Responsive overrides ── */

@media (max-width: 640px) {
  .flow-step:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation-duration: 80s; }
  .spinner { animation: spin 1.5s linear infinite; }
}
