/* ============================================================
   Dexon Sync — supplementary CSS
   Replaces framer-motion continuous + hover animations.
   ============================================================ */

/* lock scrolling while the preloader plays */
html.pl-lock, html.pl-lock body { overflow: hidden; }

/* ---------- continuous animations ---------- */
@keyframes ds-marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ds-marquee-x { animation: ds-marquee-x 30s linear infinite; will-change: transform; }

@keyframes ds-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ds-spin-4  { animation: ds-spin 4s linear infinite; }
.ds-spin-20 { animation: ds-spin 20s linear infinite; }
.ds-spin-30 { animation: ds-spin 30s linear infinite; }

@keyframes ds-float {
  0%   { transform: translateY(-20px) rotate(0deg); }
  50%  { transform: translateY(20px) rotate(45deg); }
  100% { transform: translateY(-20px) rotate(0deg); }
}
.ds-float { animation: ds-float 4s ease-in-out infinite; }

@keyframes ds-nudge-x { 0% { transform: translateX(0); } 50% { transform: translateX(5px); } 100% { transform: translateX(0); } }
.ds-nudge-x { display: inline-block; animation: ds-nudge-x 1.5s infinite; }

/* ---------- nav logo hover (rotate box, morph to circle) ---------- */
nav a[href="index.html"] .relative.w-10.h-10 {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
nav a[href="index.html"]:hover .relative.w-10.h-10 { transform: rotate(90deg); }
nav a[href="index.html"] .absolute.inset-0.border-2 { transition: border-radius 0.3s ease; }
nav a[href="index.html"]:hover .absolute.inset-0.border-2 { border-radius: 50%; }
nav a[href="index.html"]:hover .flex.items-center.gap-2 { transform: scale(1.02); }
nav a[href="index.html"] .flex.items-center.gap-2 { transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }

/* ---------- desktop nav link underline + number ---------- */
nav .group.relative.px-5 .absolute.bottom-2 {
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
nav .group.relative.px-5:hover .absolute.bottom-2 { transform: scaleX(1); }
nav .group.relative.px-5 .absolute.-top-1 {
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
nav .group.relative.px-5:hover .absolute.-top-1 { opacity: 1 !important; transform: translateY(0); color: hsl(var(--accent)); }
nav .group.relative.px-5 .block.text-sm { transition: transform 0.2s ease; }
nav .group.relative.px-5:hover .block.text-sm { transform: translateY(-2px); }

/* keep active-link underline visible */
nav .group.relative.px-5 .absolute.bottom-2.is-active { transform: scaleX(1); }

/* ---------- CTA fill: accent layer slides up on hover ---------- */
a.relative.overflow-hidden .absolute.inset-0.bg-accent,
.group a .absolute.inset-0.bg-accent {
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
a.relative.overflow-hidden:hover .absolute.inset-0.bg-accent,
.group a:hover .absolute.inset-0.bg-accent { transform: translateY(0); }

/* arrow chip rotates on hover */
a:hover .rounded-full.bg-background\/20,
a:hover .rounded-full.bg-accent-foreground\/20,
a:hover .rounded-full.bg-black\/10 {
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.rounded-full.bg-background\/20, .rounded-full.bg-accent-foreground\/20, .rounded-full.bg-black\/10 {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- work / project card hover ---------- */
.group img.object-cover { transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.group:hover img.object-cover { transform: scale(1.05); }

/* ---------- service card hover: icon spin-grow, title shift, underline ---------- */
.group:hover .w-14.h-14 { transform: rotate(360deg) scale(1.1); }
.w-14.h-14 { transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.group:hover h3.font-syne.font-bold.text-xl { transform: translateX(5px); }
h3.font-syne.font-bold.text-xl { transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease; }
.group .absolute.bottom-0.left-0.right-0.h-0\.5.bg-accent {
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.group:hover .absolute.bottom-0.left-0.right-0.h-0\.5.bg-accent { transform: scaleX(1); }

/* ---------- hamburger morph (mobile + tablet buttons) ---------- */
nav button[aria-label="Toggle menu"] span,
nav button[aria-label="Open menu"] span,
nav button[aria-label="Close menu"] span {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease, width 0.3s ease;
}
nav button.is-open .flex.flex-col.gap-1\.5 span:nth-child(1) { transform: rotate(45deg) translateY(5px) translateX(3px); }
nav button.is-open .flex.flex-col.gap-1\.5 span:nth-child(2) { opacity: 0; }
nav button.is-open .flex.flex-col.gap-1\.5 span:nth-child(3) { transform: rotate(-45deg) translateY(-5px) translateX(3px); }

nav button.is-open .relative.w-5.h-5 span:nth-child(1) { transform: translateY(5px) rotate(45deg); width: 100% !important; }
nav button.is-open .relative.w-5.h-5 span:nth-child(2) { opacity: 0; transform: translateX(10px); }
nav button.is-open .relative.w-5.h-5 span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 100% !important; }
nav button.is-open .absolute.inset-0.rounded-full.border { transform: scale(1.1); border-color: hsl(var(--accent)); }
nav button .absolute.inset-0.rounded-full.border { transition: transform 0.3s ease, border-color 0.3s ease; }
nav button.is-open .absolute.inset-1.rounded-full { transform: rotate(180deg); }
nav button .absolute.inset-1.rounded-full { transition: transform 0.5s ease; }

/* mobile menu CTA arrow */
.mm-arrow { transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
a:hover .mm-arrow { transform: rotate(45deg); }

/* ---------- toasts ---------- */
.ds-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 360px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  font-size: 0.875rem;
}
.ds-toast strong { font-weight: 600; }
.ds-toast span { color: hsl(var(--muted-foreground)); }
.ds-toast--error { border-color: hsl(var(--destructive)); }
.ds-toast--error strong { color: hsl(var(--destructive)); }

/* form error text */
.ds-err { color: #ef4444; }

/* card deck stage children default hidden until JS inits */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ============================================================
   SUBSCRIPTION PAGE
   ============================================================ */

/* tailwind utilities not present in the original compiled CSS */
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.bottom-3 { bottom: 0.75rem; }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.text-foreground\/90 { color: hsl(var(--foreground) / 0.9); }
@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:gap-16 { gap: 4rem; }
}

/* green availability dot */
.sub-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: sub-pulse 2s ease-out infinite;
}
@keyframes sub-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* hero mockup marquee cards */
.sub-marquee { will-change: transform; }
.sub-mock {
  width: 300px; height: 200px; flex: 0 0 auto;
}
@media (min-width: 768px) {
  .sub-mock { width: 380px; height: 250px; }
}
.sub-marquee:hover { animation-play-state: paused; }

/* comparison table */
.sub-table { min-width: 760px; overflow: hidden; }
.sub-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  border-bottom: 1px solid hsl(var(--border));
}
.sub-row:last-child { border-bottom: none; }
.sub-row > div { padding: 1.25rem 1.5rem; color: hsl(var(--muted-foreground)); }
.sub-row > div:first-child { color: hsl(var(--foreground)); }
.sub-row--head > div {
  font-family: Syne, sans-serif; font-weight: 700;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.3);
}
.sub-row .sub-col-hl {
  background: hsl(var(--accent) / 0.08);
  border-left: 1px solid hsl(var(--accent) / 0.4);
  color: hsl(var(--foreground));
}
.sub-row--head .sub-col-hl { color: hsl(var(--accent)); background: hsl(var(--accent) / 0.12); }

/* FAQ accordion */
.sub-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.sub-acc-item.is-open .sub-acc-chev { transform: rotate(180deg); }
.sub-acc-btn:hover span { color: hsl(var(--accent)); transition: color 0.3s ease; }

/* sticky mobile CTA bar */
.sub-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: hsl(var(--background) / 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid hsl(var(--border));
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.sub-sticky--hidden { transform: translateY(110%); }
@media (min-width: 768px) { .sub-sticky { display: none; } }
/* keep page content clear of the bar on mobile */
@media (max-width: 767px) {
  body:has(.sub-sticky) footer { padding-bottom: 72px; }
}
