/* ==========================================================
   Expecto — design tokens + landing interactions + legacy
   ========================================================== */

:root {
  --ink:#0B0E14;
  --elev1:#10141D;
  --elev2:#161B27;
  --elev3:#1D2230;
  --fg1:#F5F7FB;
  --fg2:#B7BECD;
  --fg3:#7B8395;
  --fg4:#515869;
  --bgreen:#4ADE80;
  --bturq:#7DE2D1;
  --bpink:#F3A6D1;
  --borange:#FF8A3D;
  --grad:linear-gradient(95deg,#4ADE80 0%,#7DE2D1 52%,#F3A6D1 100%);
  --grad-pay:linear-gradient(95deg,#4ADE80 0%,#7DE2D1 40%,#F3A6D1 75%,#FF8A3D 100%);
  --hair:rgba(255,255,255,0.08);
  --hair-strong:rgba(255,255,255,0.14);
  --glow:0 10px 30px -8px rgba(125,226,209,0.55),0 4px 14px -4px rgba(243,166,209,0.35);
  --ease:cubic-bezier(0.2,0.8,0.2,1);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "cv11", "ss01", "tnum"; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bturq);
  outline-offset: 3px;
  /* Don't force a border-radius here — modern browsers already wrap the outline
     around each element's own border-radius. Overriding it flattened the
     style-card's 20px corners on hover/click. */
}

.caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}

[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* ---------- Material icons (legacy pages) ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Glass card (legacy) ---------- */
.glass-card {
  background: rgba(22, 27, 39, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ---------- Scrollbars ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Details / summary ---------- */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* ---------- Sidebar (legal pages) ---------- */
.sidebar-link.active {
  background: rgba(125, 226, 209, 0.08);
  color: var(--bturq);
}

/* ---------- Brand gradient ---------- */
.brand-gradient {
  background: linear-gradient(95deg, #4ADE80 0%, #7DE2D1 52%, #F3A6D1 100%);
}
.brand-gradient-text {
  background: linear-gradient(95deg, #4ADE80 0%, #7DE2D1 52%, #F3A6D1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Legacy hero gradients ---------- */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 222, 128, 0.08) 0%, rgba(125, 226, 209, 0.04) 30%, transparent 60%);
}
.hero-gradient-center {
  background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.06) 0%, rgba(243, 166, 209, 0.03) 30%, transparent 50%);
}

/* ==========================================================
   CURSOR SPOTLIGHT (landing only)
   ========================================================== */
#spotlight {
  background: radial-gradient(400px 400px at var(--mx, 50%) var(--my, 50%),
    rgba(125,226,209,0.14), rgba(243,166,209,0.06) 40%, transparent 70%);
  mix-blend-mode: screen;
}

/* ==========================================================
   LOGO SPARKLES
   ========================================================== */
.sparkle-layer {
  position: absolute; inset: -8px;
  pointer-events: none;
}
.sparkle-layer::before,
.sparkle-layer::after {
  content: "";
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--bturq);
  box-shadow: 0 0 8px 1px rgba(125,226,209,0.8);
  opacity: 0;
  animation: sparkle 3.6s var(--ease) infinite;
}
.sparkle-layer::before { top: 4px; left: -6px; animation-delay: 0s; }
.sparkle-layer::after  { bottom: 2px; right: -4px; background: var(--bpink); box-shadow: 0 0 8px 1px rgba(243,166,209,0.8); animation-delay: 1.6s; }
@keyframes sparkle {
  0%,100% { opacity: 0; transform: translate(0,0) scale(0.6); }
  30% { opacity: 1; transform: translate(-3px,-4px) scale(1); }
  70% { opacity: 1; transform: translate(4px,3px) scale(1.1); }
}

/* ==========================================================
   HERO AURORA
   ========================================================== */
.aurora-wrap {
  position: absolute; inset: -10%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.8;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-1 {
  top: -5%; left: 10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(74,222,128,0.55), transparent 65%);
}
.aurora-2 {
  top: 20%; right: 5%;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(125,226,209,0.55), transparent 65%);
}
.aurora-3 {
  bottom: -10%; left: 30%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(243,166,209,0.45), transparent 65%);
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* ==========================================================
   PHONE MOCKUP
   ========================================================== */
.phone-wrap { position: relative; width: 320px; height: 640px; }
.phone {
  position: relative;
  width: 320px; height: 640px;
  background: linear-gradient(160deg, #1E222E, #0B0E14);
  border-radius: 48px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 40px 80px -20px rgba(0,0,0,0.8),
    0 20px 50px -10px rgba(125,226,209,0.15);
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #07090F;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 0;
  font-size: 13px; font-weight: 600;
  color: var(--fg1);
  height: 48px;
}
.battery {
  display: inline-block;
  width: 22px; height: 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  position: relative;
  margin-left: 2px;
}
.battery::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.battery i {
  display: block;
  width: 75%; height: 100%;
  background: currentColor;
  border-radius: 1px;
}
.phone-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px 12px;
}
.phone-credits {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; font-weight: 700;
  font-feature-settings: "tnum";
}
.phone-art {
  position: relative;
  flex: 1;
  margin: 0 14px 14px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}
.phone-art-label {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; font-weight: 700;
  color: white;
  z-index: 4;
}
.morph {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.morph.is-on { opacity: 1; }
.morph-1 { background:
  radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,220,180,0.85), transparent 70%),
  linear-gradient(160deg,#7C3AED 0%,#EC4899 50%,#F59E0B 100%); }
.morph-2 { background:
  radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,240,220,0.9), transparent 70%),
  linear-gradient(170deg,#FB923C 0%,#F472B6 55%,#A855F7 100%); }
.morph-3 { background:
  radial-gradient(ellipse 60% 70% at 50% 40%, rgba(200,240,255,0.75), transparent 70%),
  linear-gradient(150deg,#06B6D4 0%,#4ADE80 50%,#22D3EE 100%); }
.morph-4 { background:
  radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,200,220,0.75), transparent 70%),
  linear-gradient(180deg,#0F172A 0%,#64748B 60%,#1E293B 100%); }

.shimmer-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.14) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: shimmer 5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.phone-cast {
  padding: 0 14px 16px;
  display: flex; justify-content: center;
}
.phone-cast-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: var(--glow);
  border: 0;
  cursor: pointer;
}
.phone-glow {
  position: absolute;
  inset: 20% -20% -20% -20%;
  background: radial-gradient(closest-side, rgba(125,226,209,0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.8;
}
.phone-chip {
  position: absolute;
  padding: 8px 14px;
  background: rgba(22,27,39,0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  z-index: 10;
  white-space: nowrap;
}
.phone-chip .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.phone-chip-1 { top: 60px; left: -60px; animation: float1 6s ease-in-out infinite; }
.phone-chip-2 { top: 260px; right: -70px; animation: float2 7s ease-in-out infinite; }
.phone-chip-3 { bottom: 120px; left: -50px; animation: float3 5.5s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-10px) rotate(-4deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotate(3deg)} 50%{transform:translateY(-12px) rotate(5deg)} }
@keyframes float3 { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(8px) rotate(-5deg)} }

/* ==========================================================
   STATS
   ========================================================== */
.stat {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
}
.stat + .stat { border-inline-start: 1px solid var(--hair); }
@media (max-width: 768px) {
  .stat:nth-child(2n+1) { border-inline-start: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--hair); }
}
.stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-feature-settings: "tnum";
  line-height: 1;
}
.stat-plus {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat-label {
  flex-basis: 100%;
  margin-top: 8px;
  color: var(--fg3);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================
   STYLE CARDS
   ========================================================== */
.style-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  will-change: transform;
  /* Outer halo on the element itself so the shadow follows the rounded corners
     cleanly. (Attaching it to ::after with preserve-3d + overflow:hidden on the
     parent produced a boxy rectangle in some browsers.) */
}
.style-card:hover {
  box-shadow: 0 0 40px -5px rgba(125,226,209,0.35);
}
.style-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
  transition: box-shadow 300ms var(--ease);
}
.style-card:hover::after {
  box-shadow: inset 0 0 0 1.5px rgba(125,226,209,0.6);
}
.style-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.82) 100%);
}
.style-card .glare {
  position: absolute; inset: 0;
  background: radial-gradient(200px 200px at var(--gx,50%) var(--gy,50%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.style-card:hover .glare { opacity: 1; }
.style-card .label {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
  color: white;
}
.style-card .label-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.style-card .label-credits {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.style-card .prompt {
  position: absolute;
  left: 14px; right: 14px; top: 14px;
  padding: 10px 12px;
  background: rgba(11,14,20,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms, transform 260ms;
  z-index: 3;
}
.style-card:hover .prompt { opacity: 1; transform: translateY(0); }
.style-card .new-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--borange);
  color: var(--ink);
  z-index: 4;
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.step-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--ink);
  border: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.step-card:hover { transform: translateY(-3px); border-color: rgba(125,226,209,0.3); }
.step-illo {
  position: relative;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(125,226,209,0.08), rgba(243,166,209,0.06));
  border: 1px solid var(--hair);
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.step-n {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg1); }
.step-body { font-size: 15px; line-height: 1.55; color: var(--fg2); }

.illo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 140px; }
.illo-tile { aspect-ratio: 3/4; border-radius: 10px; position: relative; }
.illo-tile-active {
  box-shadow: 0 0 0 2px var(--bturq), 0 0 20px -3px rgba(125,226,209,0.6);
  animation: pickPulse 2s ease-in-out infinite;
}
@keyframes pickPulse {
  0%,100% { box-shadow: 0 0 0 2px var(--bturq), 0 0 20px -3px rgba(125,226,209,0.6); }
  50% { box-shadow: 0 0 0 2px var(--bpink), 0 0 24px -3px rgba(243,166,209,0.7); }
}
.illo-upload { position: relative; width: 140px; height: 140px; }
.illo-photo, .illo-photo-back {
  position: absolute;
  width: 90px; height: 110px;
  border-radius: 14px;
  background: linear-gradient(160deg,#FB923C,#F472B6);
  border: 2px solid rgba(255,255,255,0.12);
}
.illo-photo-back {
  top: 8px; left: 8px;
  background: linear-gradient(160deg,#7C3AED,#22D3EE);
  transform: rotate(-8deg);
  opacity: 0.6;
}
.illo-photo { top: 18px; left: 28px; transform: rotate(4deg); animation: photoBob 4s ease-in-out infinite; }
@keyframes photoBob {
  0%,100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-5px); }
}
.illo-scan {
  position: absolute;
  top: 18px; left: 28px;
  width: 90px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--bturq), transparent);
  box-shadow: 0 0 12px var(--bturq);
  animation: scanLine 2.4s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes scanLine {
  0%,100% { transform: translateY(0); opacity: 0; }
  10%,90% { opacity: 1; }
  50% { transform: translateY(100px); }
}
.illo-portrait {
  position: relative; width: 120px; height: 140px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg,#7C3AED,#EC4899);
}
.illo-portrait-bg {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 35%, rgba(255,220,180,0.7), transparent 70%);
}
.illo-portrait-head {
  position: absolute; left: 50%; top: 48%;
  width: 60px; height: 60px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #F5D4BD, #A8826A);
  box-shadow: 0 10px 20px -4px rgba(0,0,0,0.4);
}
.illo-portrait::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  width: 80px; height: 60px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: #1E293B;
}
.illo-sparkles { position: absolute; inset: 0; pointer-events: none; }
.illo-sparkles i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--bturq);
  box-shadow: 0 0 10px 2px var(--bturq);
  animation: sp 2.6s ease-in-out infinite;
}
.illo-sparkles i:nth-child(1) { top: 20%; left: 18%; animation-delay: 0s; }
.illo-sparkles i:nth-child(2) { top: 35%; right: 12%; background: var(--bpink); box-shadow: 0 0 10px 2px var(--bpink); animation-delay: 0.6s; }
.illo-sparkles i:nth-child(3) { bottom: 30%; left: 14%; background: var(--bgreen); box-shadow: 0 0 10px 2px var(--bgreen); animation-delay: 1.2s; }
.illo-sparkles i:nth-child(4) { bottom: 15%; right: 24%; animation-delay: 1.8s; }
@keyframes sp {
  0%,100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================
   BEFORE / AFTER
   ========================================================== */
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  user-select: none;
  touch-action: pan-y;
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-before {
  background: #1a1512 center/cover no-repeat;
}
.ba-after {
  clip-path: inset(0 0 0 50%);
  background: #111 center/cover no-repeat;
}
.ba-label {
  position: absolute; top: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(11,14,20,0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: white;
  z-index: 3;
}
.ba-label-left { left: 16px; }
.ba-label-right { right: 16px; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}
.ba-handle-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5), 0 0 0 3px rgba(11,14,20,0.3);
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform 200ms var(--ease);
}
.ba-handle-knob:hover { transform: translate(-50%,-50%) scale(1.08); }
.ba-handle-knob { touch-action: none; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  z-index: 10; margin: 0;
  pointer-events: none;
}
.ba-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--elev1);
  color: var(--fg2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.ba-chip:hover { border-color: var(--hair-strong); color: var(--fg1); }
.ba-chip.is-on {
  background: var(--grad);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(125,226,209,0.4);
}
/* Variants are now set inline via JS (real Storage URLs) */

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee-fade {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-row {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  /* Animation driven by Tailwind .animate-marquee / .animate-marquee-reverse /
     .animate-marquee-slow classes — keyframes also defined in styles.css below
     as a fallback so the animation runs even if styles-tw.css loads late. */
}
.marquee-item {
  flex: 0 0 auto;
  width: 170px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.marquee-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
  pointer-events: none;
}
.marquee-item span {
  position: absolute;
  left: 10px; bottom: 10px;
  color: white;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}
/* Fallback keyframes — tripled content strip, so seam is at 1/3 */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.333%, 0, 0); }
}
@keyframes marquee-reverse {
  0% { transform: translate3d(-33.333%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
/* Animation shorthands also live here so rows still scroll if styles-tw.css
   hasn't finished loading or its .animate-marquee class is blocked. */
.animate-marquee { animation: marquee 60s linear infinite; }
.animate-marquee-reverse { animation: marquee-reverse 75s linear infinite; }
.animate-marquee-slow { animation: marquee 90s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .animate-marquee,
  .animate-marquee-reverse,
  .animate-marquee-slow { animation: none; }
}

/* ==========================================================
   FEATURES BENTO
   ========================================================== */
.feature {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--elev1);
  border: 1px solid var(--hair);
  overflow: hidden;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}
.feature:hover { border-color: rgba(125,226,209,0.25); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(125,226,209,0.1);
  border: 1px solid rgba(125,226,209,0.2);
  display: grid; place-items: center;
  color: var(--bturq);
  margin-bottom: 18px;
}
.feature-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg1); margin-bottom: 6px; }
.feature-body { font-size: 14px; line-height: 1.55; color: var(--fg2); }
.feature-hero { display: grid; grid-template-rows: 1fr auto; padding: 0; gap: 0; }
.feature-art {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(160deg, rgba(125,226,209,0.06), rgba(243,166,209,0.04));
}
.feature-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.fs-card {
  position: absolute;
  width: 110px; aspect-ratio: 3/4;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  transition: transform 500ms var(--ease);
}
.fs-1 { background: linear-gradient(160deg,#7C3AED,#EC4899); transform: rotate(-14deg) translateX(-70px); }
.fs-2 { background: linear-gradient(160deg,#FB923C,#F472B6); transform: rotate(-4deg) translateX(-20px); z-index: 2; }
.fs-3 { background: linear-gradient(160deg,#22D3EE,#4ADE80); transform: rotate(6deg) translateX(30px); z-index: 3; }
.fs-4 { background: linear-gradient(160deg,#F59E0B,#EF4444); transform: rotate(16deg) translateX(80px); }
.feature-hero:hover .fs-1 { transform: rotate(-18deg) translateX(-90px) translateY(-8px); }
.feature-hero:hover .fs-2 { transform: rotate(-6deg) translateX(-30px) translateY(-14px); }
.feature-hero:hover .fs-3 { transform: rotate(8deg) translateX(40px) translateY(-14px); }
.feature-hero:hover .fs-4 { transform: rotate(20deg) translateX(100px) translateY(-8px); }
.feature-meta { padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.feature-num {
  font-size: 56px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  font-feature-settings: "tnum";
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--elev1);
  overflow: hidden;
  transition: border-color 200ms;
}
.faq:hover { border-color: var(--hair-strong); }
.faq[open] { border-color: rgba(125,226,209,0.3); }
.faq summary {
  list-style: none;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px; font-weight: 600;
  color: var(--fg1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute;
  background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease);
}
.faq-ico::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-ico::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq[open] .faq-ico::after { transform: rotate(90deg); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--fg2);
  font-size: 15px; line-height: 1.6;
  max-width: 620px;
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.final-cta {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(135deg,#4ADE80 0%,#7DE2D1 40%,#F3A6D1 75%,#FF8A3D 110%);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(125,226,209,0.4);
}
.final-cta-bg { position: absolute; inset: 0; opacity: 0.9; filter: blur(30px); }
.final-cta-blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.fb1 { top:-20%; left: -5%; width: 50%; height: 120%; background: radial-gradient(circle, rgba(74,222,128,0.6), transparent 60%); animation: cblob 14s ease-in-out infinite; }
.fb2 { top:-10%; right:-10%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(243,166,209,0.6), transparent 60%); animation: cblob 18s ease-in-out infinite reverse; }
.fb3 { bottom:-30%; left: 30%; width: 50%; height: 100%; background: radial-gradient(circle, rgba(255,138,61,0.5), transparent 60%); animation: cblob 20s ease-in-out infinite; }
@keyframes cblob {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8%,-4%) scale(1.1); }
}
.final-cta h2 { color: var(--ink); }
.final-cta p { color: rgba(11,14,20,0.7); }

/* ==========================================================
   APPLE CTA hover
   ========================================================== */
.apple-cta { transition: transform 200ms var(--ease), filter 200ms var(--ease); }
.apple-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.apple-cta:active { transform: translateY(0) scale(0.98); }
.appstore-pill:hover { filter: brightness(1.08); }

/* ==========================================================
   REVEAL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
