/* ═══════════════════════════════════════════════════
   FlipToolz — styles.css  (full rewrite)
═══════════════════════════════════════════════════ */

/* ── Holo Card 3D tilt — typed custom properties ── */
@property --ratio-x {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --ratio-y {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ── Variables ── */
:root {
  --bg:       #0d0d0d;
  --dark:     #141414;
  --medium:   #1e1e1e;
  --card:     #1a1a1a;
  --border:   rgba(255,255,255,0.07);
  --text:     #eaeaea;
  --sub:      #a0a0a0;
  --cyan:     #63d7e6;
  --green:    #80ef80;
  --error:    #ff7675;
  --shadow-s: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-m: 0 8px 32px rgba(0,0,0,0.55);
  --shadow-l: 0 16px 48px rgba(0,0,0,0.65);
  --pad:      5rem;
  --max:      1200px;
  --fast:     0.2s ease;
  --med:      0.4s ease;
  --slow:     0.75s ease;
  --nav-bg:   rgba(13,13,13,0.0);
  --nav-glass:rgba(13,13,13,0.82);
  --trust-col:rgba(255,255,255,0.38);
}

[data-theme="light"] {
  --bg:       #f0f4f8;
  --dark:     #ffffff;
  --medium:   #e8edf3;
  --card:     #ffffff;
  --border:   rgba(0,0,0,0.09);
  --text:     #1a202c;
  --sub:      #5a6b7a;
  --cyan:     #0da5c0;
  --green:    #22c55e;
  --error:    #e53e3e;
  --shadow-s: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-m: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-l: 0 16px 48px rgba(0,0,0,0.13);
  --nav-glass:rgba(240,244,248,0.88);
  --trust-col:rgba(0,0,0,0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); line-height:1.6; overflow-x:hidden; transition: background 0.35s ease, color 0.35s ease; }
h1,h2,h3,h4 { color:var(--text); font-weight:600; letter-spacing:.02em; }
p { color:var(--sub); margin-bottom:1rem; }
a { color:var(--cyan); text-decoration:none; transition:color var(--fast); }
a:hover { color:var(--green); }
img { max-width:100%; }

/* ── Utility ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity var(--slow), transform var(--slow); }
.reveal.in-view { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position:relative;
  height:100vh;
  min-height:600px;
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
  background:var(--dark);
}
.hero-video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:.4;
  z-index:0;
  pointer-events:none;
}

/* ── NAV ── */
.nav {
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  display:flex;
  align-items:center;
  padding:1rem 2rem;
  transition:background .35s ease, backdrop-filter .35s ease, padding .35s ease, box-shadow .35s ease;
  border-bottom:1px solid transparent;
}
.nav.scrolled {
  background:var(--nav-glass);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid rgba(99,215,230,.14);
  padding:.65rem 2rem;
  box-shadow:0 4px 32px rgba(0,0,0,.32);
}
/* Nav: 3-column layout — logo left-of-center | gap | buttons right-of-center */
.nav-logo-col {
  /* Takes up left ~40% of nav space, pushing logo ~30% left of true center */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: auto;       /* pushes everything else to right */
  padding-left: clamp(1rem, 4vw, 4rem); /* responsive left inset — not edge-flush */
}
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--fast);
}
.logo-link:hover { opacity: 0.85; }
.nav .logo { height:56px; width:auto; display:block; }

.nav-spacer {
  /* Center gap — keeps logo and buttons off center */
  flex: 0 0 clamp(3rem, 8vw, 8rem);
}

.nav-cta-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;        /* pushes this column to right */
  padding-right: clamp(1rem, 4vw, 4rem); /* responsive right inset */
}
.nav-buttons { display:flex; align-items:center; gap:.75rem; }
.theme-toggle {
  background:none; border:none; cursor:pointer;
  padding:.45rem; margin-left:.5rem;
  color:rgba(255,255,255,.5);
  transition:color var(--fast);
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; flex-shrink:0;
}
.theme-toggle:hover { color:var(--cyan); }
[data-theme="light"] .theme-toggle { color:rgba(0,0,0,.4); }
[data-theme="light"] .theme-toggle:hover { color:var(--cyan); }

/* ── Hero content: true center ── */
.hero-content {
  position:relative;
  z-index:5;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex:1;
  padding:115px 1.5rem 2rem; /* nav height (80px) + 35px lower per request */
  width:100%;
  max-width:800px;
  margin:0 auto;
}
.hero-icon {
  width:120px; height:120px;
  display:block;
  margin:0 auto 1.25rem;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.15)) drop-shadow(0 8px 32px rgba(0,0,0,1)) drop-shadow(0 16px 48px rgba(0,0,0,1));
}
.hero-content h1 {
  font-size:clamp(2.5rem,4.5vw,3.75rem);
  margin-bottom:1.25rem;
  background:linear-gradient(270deg,#63d7e6 0%,#63d7e6 30%,#80ef80 60%,#63d7e6 100%);
  background-size:300% 300%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:gradShift 3.5s ease infinite;
}
@keyframes gradShift {
  0%   { background-position:0% 50%; }
  50%  { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}
.hero-subtext {
  max-width:600px;
  font-weight:300;
  color:var(--sub);
  min-height:3.5rem;
  line-height:1.7;
}
.typewriter-cursor {
  display:inline-block;
  width:2px; height:1em;
  background:var(--cyan);
  margin-left:1px;
  vertical-align:text-bottom;
  animation:twBlink .75s step-end infinite;
}
@keyframes twBlink { 0%,100%{opacity:1} 50%{opacity:0} }

.scroll-indicator {
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%);
  width:24px; height:36px;
  border:2px solid var(--cyan); border-radius:12px;
  display:flex; justify-content:center; align-items:center;
  z-index:5;
}
.scroll-indicator::after {
  content:''; width:4px; height:8px; border-radius:2px;
  background:var(--cyan); animation:scrollDot 1.5s infinite;
}
@keyframes scrollDot {
  0%{transform:translateY(-6px);opacity:1}
  50%{transform:translateY(6px);opacity:0}
  100%{transform:translateY(-6px);opacity:1}
}

/* ── BUTTONS ── */
.btn {
  display:inline-block; padding:.8rem 1.6rem;
  border-radius:.4rem; font-weight:500; cursor:pointer;
  position:relative; overflow:hidden;
  transition:transform var(--fast), box-shadow var(--fast);
  border:none; font-size:.95rem;
}
.btn-primary {
  background:linear-gradient(135deg,var(--cyan) 0%,var(--green) 100%);
  color:#0d0d0d;
}
.btn-secondary {
  background:transparent; color:var(--cyan);
  border:1px solid var(--cyan);
}
.btn-secondary:hover { background:var(--cyan); color:#0d0d0d; }

/* ── GLOWING CTA BUTTONS (special nav hover) ── */
.btn-glow {
  background:linear-gradient(135deg,var(--cyan),var(--green));
  color:#0d0d0d;
  transition:transform .2s ease, box-shadow .3s ease;
}
.btn-glow::before {
  content:'';
  position:absolute; inset:-2px;
  background:linear-gradient(135deg,var(--cyan),var(--green),var(--cyan));
  background-size:200% 200%;
  border-radius:.5rem;
  z-index:-1;
  opacity:0;
  animation:borderRotate 2s linear infinite;
  transition:opacity .3s ease;
}
.btn-glow:hover { transform:translateY(-2px) scale(1.03); box-shadow:0 0 24px rgba(99,215,230,.55),0 0 48px rgba(128,239,128,.2); }
.btn-glow:hover::before { opacity:1; }
@keyframes borderRotate { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* ripple */
.btn::after {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at var(--rx,50%) var(--ry,50%),rgba(255,255,255,.22) 0%,transparent 65%);
  opacity:0; transition:opacity .35s ease; pointer-events:none;
}
.btn:hover::after { opacity:1; }

/* ── Link Split Hover Effect ────────────────────── */
.link {
  position:relative;
  display:inline-block;
  padding:0;
  line-height:1em;
  margin:0;
}
.link--top {
  position:absolute;
  color:var(--cyan);
  top:0;
  display:inline-block;
  clip-path:polygon(0% 66%, 0% 0%, 100% 0%, 100% 40%);
  transition:transform .6s cubic-bezier(.16,1,.3,1) .25s, color .5s ease .22s;
}
.link--top:after {
  content:'';
  position:absolute;
  top:36%;
  left:0;
  width:100%;
  height:4%;
  background:#fff;
  transform:rotateZ(-2.2deg) scaleX(0%);
  transform-origin:right top;
  transition:transform .2s ease .22s;
}
.link--bottom {
  display:inline-block;
  clip-path:polygon(0% 65%, 100% 40%, 100% 110%, 0% 110%);
  color:var(--cyan);
  transition:color .5s ease .22s, background-position .2s ease .22s;
  text-decoration:none;
  background-size:200% 8%;
  background-position:left bottom;
  background-repeat:no-repeat;
  background-image:linear-gradient(to right, #fff 50%, transparent 50%);
}
.link--bottom:after {
  content:'';
  position:absolute;
  top:40%;
  left:0;
  width:100%;
  height:4%;
  background:#fff;
  transform:rotateZ(-2deg) scaleX(0%);
  transform-origin:right top;
  transition:transform .2s ease .22s;
}
.link:hover .link--top {
  color:#fff;
  transform:translateY(-0.5em) rotateZ(-3deg);
  transition:transform .5s cubic-bezier(.12,.8,.57,1) .42s, color .5s ease .22s;
}
.link:hover .link--bottom {
  color:#fff;
  background-position:100% bottom;
  transition:color .5s ease .2s, background-position .2s ease;
}
.link:hover .link--top:after {
  top:62%;
  transform-origin:left top;
  transform:rotateZ(-2.2deg) scaleX(100%);
}
.link:hover .link--bottom:after {
  top:65%;
  transform-origin:left top;
  transform:rotateZ(-2.1deg) scaleX(100%);
}

/* ═══════════════════════════════════════════════════
   TRUST BAR — perspective 3D carousel effect
═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   TRUST BAR — center-locked marquee
   Strategy: fixed-width centered viewport + CSS animation
   translateX(0) → translateX(-50%) scrolls exactly one
   set of logos. JS clones items to fill viewport width.
═══════════════════════════════════════════════════ */
.trust-bar {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: .7rem 0;
  overflow: hidden;
  position: relative;
}

/* The visible window — centered, fixed width, clips overflow */
.trust-viewport {
  width: min(900px, 90vw);   /* center column — never full screen width */
  margin: 0 auto;             /* horizontally centered */
  overflow: hidden;           /* HARD clip — logos cannot leave this box */
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.trust-viewport:active,
.trust-viewport.dragging { cursor: grabbing; }

/* Edge fade masks inside the viewport */
.trust-viewport::before,
.trust-viewport::after {
  content: '';
  position: absolute; top: 0; height: 100%;
  width: 80px; z-index: 2; pointer-events: none;
}
.trust-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--dark), transparent);
}
.trust-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--dark), transparent);
}

/* The scrolling track — JS will clone items to make it seamless */
.trust-track {
  display: flex;
  align-items: center;
  gap: 0;                     /* JS-managed spacing */
  white-space: nowrap;
  width: max-content;
  animation: trustMarquee 44s linear infinite;
  will-change: transform;
}
/* Pause only when cursor is inside the center viewport — not the full bar width */
.trust-viewport:hover .trust-track { animation-play-state: paused; }
.trust-viewport.dragging .trust-track { animation-play-state: paused; }

/* Animation moves exactly half the track width (one set of clones) */
@keyframes trustMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-item {
  display: inline-flex;
  align-items: center;
  padding: 0 1.2rem;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
  /* Default: grayscale + high brightness → uniform near-white on dark bg */
  filter: grayscale(1) brightness(2.2);
  transition: filter .3s ease, transform .3s ease;
}
.trust-item svg {
  display: block;
  /* Ensure SVGs scale with item height */
}
.trust-item:hover,
.trust-item:focus {
  /* Hover: remove grayscale → shows true brand colors */
  filter: grayscale(0) brightness(1);
  transform: scale(1.08);
}

.trust-sep {
  color: rgba(255,255,255,.18);
  font-size: .9rem;
  flex-shrink: 0;
  pointer-events: none;
  padding: 0 .2rem;
}

/* ═══════════════════════════════════════════════════
   SECTIONS — base
═══════════════════════════════════════════════════ */
section { padding:var(--pad) 1rem; }
section h2 { text-align:center; margin-bottom:3rem; font-size:2rem; }
.lb-section h2 { margin-bottom:.4rem; }

/* ═══════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════ */
.newsletter { background:var(--dark); padding:4rem 1rem; text-align:center; }
.newsletter-form { display:flex; justify-content:center; gap:1rem; max-width:500px; margin:1.5rem auto 0; flex-wrap:wrap; }
.newsletter-form input[type="email"] {
  flex:1; min-width:220px; padding:.8rem 1rem;
  border-radius:.4rem; border:1px solid var(--border);
  background:var(--medium); color:var(--text); font-size:1rem;
  transition:border-color var(--fast);
}
.newsletter-form input[type="email"]:focus { outline:none; border-color:var(--cyan); }
.newsletter-response { margin-top:1rem; font-weight:500; }

/* ═══════════════════════════════════════════════════
   METRICS
═══════════════════════════════════════════════════ */
.metrics {
  display:flex; justify-content:center;
  gap:2rem; flex-wrap:wrap;
  padding:3rem 1rem; background:var(--bg);
}
.metric {
  background:var(--dark); padding:2rem;
  border-radius:1rem; width:190px;
  text-align:center;
  /* Base: faint cyan border, subtle corner glow */
  border:1px solid rgba(99,215,230,.28);
  box-shadow:
    var(--shadow-s),
    inset 0 1px 0 rgba(99,215,230,.14),
    inset 0 -1px 0 rgba(99,215,230,.08),
    inset 1px 0 0 rgba(99,215,230,.08),
    inset -1px 0 0 rgba(99,215,230,.08);
  transition:transform var(--fast), box-shadow .35s ease, border-color .35s ease;
  cursor:default;
  position:relative;
  overflow:hidden;
}
/* Scan-line shimmer that travels across the top on hover */
.metric::before {
  content:'';
  position:absolute; top:0; left:-100%; width:100%; height:2px;
  background:linear-gradient(90deg,transparent 0%,rgba(99,215,230,.9) 40%,rgba(128,239,128,.7) 60%,transparent 100%);
  transition:left .55s ease;
  pointer-events:none;
}
.metric:hover::before { left:100%; }
/* Corner accent dots (pseudo after) */
.metric::after {
  content:'';
  position:absolute; inset:0;
  border-radius:1rem;
  background:
    radial-gradient(circle at 0% 0%,   rgba(99,215,230,.18) 0%, transparent 18%),
    radial-gradient(circle at 100% 0%,  rgba(99,215,230,.18) 0%, transparent 18%),
    radial-gradient(circle at 0% 100%,  rgba(99,215,230,.10) 0%, transparent 18%),
    radial-gradient(circle at 100% 100%,rgba(99,215,230,.10) 0%, transparent 18%);
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}
.metric:hover::after { opacity:1; }
.metric:hover {
  transform:translateY(-6px);
  border-color:rgba(99,215,230,.6);
  box-shadow:
    var(--shadow-m),
    /* Vivid cyan underglow — brighter per request */
    0 0 14px rgba(99,215,230,.95),
    0 0 32px rgba(99,215,230,.70),
    0 0 60px rgba(99,215,230,.45),
    0 0 90px rgba(99,215,230,.22),
    0 0 130px rgba(99,215,230,.10),
    inset 0 1px 0 rgba(99,215,230,.5);
}
.metric .number { font-size:2.6rem; font-weight:700; color:var(--cyan); }
.metric p { margin-top:.5rem; font-weight:400; color:var(--sub); margin-bottom:0; }

/* ═══════════════════════════════════════════════════
   PRICING — moved up, enhanced
═══════════════════════════════════════════════════ */
.pricing-section {
  padding:var(--pad) 1rem;
  background:var(--dark);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.pricing-bg-orbs { position:absolute; inset:0; pointer-events:none; z-index:0; }
.orb {
  position:absolute; border-radius:50%;
  filter:blur(80px); opacity:.12;
}
.orb1 { width:400px;height:400px;background:var(--cyan);top:-100px;left:-100px; animation:orbFloat 8s ease-in-out infinite; }
.orb2 { width:300px;height:300px;background:var(--green);bottom:-80px;right:-80px; animation:orbFloat 10s ease-in-out infinite reverse; }
.orb3 { width:250px;height:250px;background:var(--cyan);top:calc(50% - 125px);left:calc(50% - 125px); animation:orbFloat3 12s ease-in-out infinite 2s; }
@keyframes orbFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }
@keyframes orbFloat3 { 0%,100%{top:calc(50% - 125px)} 50%{top:calc(50% - 140px)} }
.pricing-section h2, .pricing-section > p { position:relative; z-index:1; }
.pricing-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:2rem; max-width:1280px; margin:3rem auto 0;
  position:relative; z-index:1;
}
.plan-card {
  background:var(--medium);
  padding:2.5rem 2rem;
  border-radius:1.2rem;
  box-shadow:var(--shadow-s);
  border-top:4px solid var(--cyan);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  position:relative; overflow:hidden;
  --ratio-x: 0;
  --ratio-y: 0;
  transform-style: preserve-3d;
  transition: transform 0.2s linear, box-shadow .3s ease;
  transform: perspective(800px) rotateY(calc(-20deg * var(--ratio-x))) rotateX(calc(20deg * var(--ratio-y)));
}
.plan-card:hover {
  box-shadow:var(--shadow-m), 0 0 60px rgba(99,215,230,.15);
}
/* Must beat .reveal.in-view specificity (0,2,0) so the 3D tilt transform
   is not overridden by "transform: translateY(0)" once cards scroll into view */
.plan-card.in-view {
  transform: perspective(800px) rotateY(calc(-20deg * var(--ratio-x))) rotateX(calc(20deg * var(--ratio-y)));
}
.plan-card::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,transparent 60%,rgba(99,215,230,.04) 100%);
  pointer-events:none;
}
.plan-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--cyan),var(--green),var(--cyan));
  background-size:200% 100%;
  opacity:0; transition:opacity .3s ease;
  animation:shimmer 2.5s linear infinite;
}
.plan-card:hover::after { opacity:1; }
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }
.plan-card-glow {
  position:absolute; top:-40px; left:50%; transform:translateX(-50%);
  width:200px; height:200px; border-radius:50%;
  background:var(--cyan); filter:blur(60px); opacity:0;
  transition:opacity .4s ease; pointer-events:none;
}
.plan-card:hover .plan-card-glow { opacity:.06; }
.plan-card.highlight {
  border-top:4px solid var(--green);
  background:linear-gradient(135deg,rgba(99,215,230,.08) 0%,rgba(128,239,128,.04) 100%);
  box-shadow:var(--shadow-m), 0 0 60px rgba(128,239,128,.1);
}
.plan-card.highlight:hover { box-shadow:var(--shadow-l), 0 0 80px rgba(128,239,128,.2); }
.plan-card.highlight .plan-card-glow { background:var(--green); }
.plan-badge {
  position:absolute; top:1rem; right:1rem;
  background:linear-gradient(135deg,var(--cyan),var(--green));
  color:#0d0d0d; font-size:.7rem; font-weight:700;
  padding:.25rem .65rem; border-radius:2rem;
  text-transform:uppercase; letter-spacing:.08em;
}
.plan-card h3 { font-size:1.5rem; margin-bottom:.5rem; color:var(--cyan); }
.plan-card.highlight h3 { color:var(--green); }
.plan-card .price { font-size:2.4rem; font-weight:700; margin-bottom:1.25rem; color:var(--text); }
.price-period { font-size:1rem; font-weight:400; color:var(--sub); }
.plan-features { list-style:none; text-align:left; margin:0 0 1.75rem; padding:0; color:var(--sub); font-size:.9rem; line-height:2; width:100%; }
.plan-features li::before { content:'\2713'; color:var(--cyan); margin-right:.55rem; font-weight:700; }
.plan-card.highlight .plan-features li::before { color:var(--green); }

/* ── Billing toggle ─────────────────────────────── */
.billing-toggle {
  display:flex; justify-content:center;
  margin:1.75rem auto 0;
  position:relative; z-index:1;
}
.billing-toggle-track {
  position:relative; display:inline-flex;
  background:var(--medium);
  border:1px solid rgba(99,215,230,.2);
  border-radius:3rem; padding:4px;
}
.billing-btn {
  position:relative; z-index:2;
  display:inline-flex; align-items:center; gap:.4rem;
  background:none; border:none;
  color:var(--sub); font-size:.88rem; font-weight:600;
  padding:.5rem 1.2rem; border-radius:3rem;
  cursor:pointer; transition:color .25s ease;
  white-space:nowrap; font-family:inherit;
}
.billing-btn.active { color:var(--text); }
.toggle-save-hint {
  background:linear-gradient(135deg,var(--cyan),var(--green));
  color:#0d0d0d; font-size:.6rem; font-weight:800;
  padding:.14rem .45rem; border-radius:2rem;
  text-transform:uppercase; letter-spacing:.07em;
}
.billing-slider {
  position:absolute; top:4px; left:4px;
  height:calc(100% - 8px);
  border-radius:3rem;
  background:linear-gradient(135deg,rgba(99,215,230,.14),rgba(128,239,128,.08));
  border:1px solid rgba(99,215,230,.28);
  transition:transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1);
  pointer-events:none; z-index:1;
}

/* ── Price billing sub-line ─────────────────────── */
.price-billing {
  font-size:.78rem; color:var(--sub);
  margin:-.6rem 0 .6rem; min-height:1.2em; line-height:1.4;
}

/* ── Savings badge (inline, near price) ─────────── */
.price-save-badge {
  display:inline-flex; align-items:center; gap:.3rem;
  background:linear-gradient(135deg,rgba(128,239,128,.16),rgba(99,215,230,.1));
  border:1px solid rgba(128,239,128,.32);
  color:var(--green); font-size:.74rem; font-weight:700;
  padding:.28rem .75rem; border-radius:2rem;
  margin-bottom:.9rem; letter-spacing:.04em;
}
.plan-card.highlight .price-save-badge {
  background:linear-gradient(135deg,rgba(128,239,128,.24),rgba(99,215,230,.14));
  border-color:rgba(128,239,128,.48);
  box-shadow:0 0 18px rgba(128,239,128,.18);
}

/* ── Yearly-only / monthly-only visibility ──────── */
.yearly-only { display:none; }
.pricing-grid[data-billing="yearly"] .yearly-only { display:revert; }
.pricing-grid[data-billing="yearly"] li.yearly-only { display:list-item; animation:featureFadeIn .35s ease both; }
.pricing-grid[data-billing="yearly"] .price-save-badge.yearly-only { display:inline-flex; animation:featureFadeIn .25s ease both; }
.pricing-grid[data-billing="yearly"] .monthly-only { display:none; }
/* yearly-note lives outside the grid, keyed off the section */
.pricing-section[data-billing="yearly"] .pricing-yearly-note { display:block; animation:featureFadeIn .3s ease both; }

@keyframes featureFadeIn {
  from { opacity:0; transform:translateY(5px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Fine-print note below cards ────────────────── */
.pricing-yearly-note {
  display:none;
  position:relative; z-index:1;
  font-size:.73rem; color:var(--sub); opacity:.65;
  margin:1.25rem auto 0; max-width:500px;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS — multi-layer parallax
═══════════════════════════════════════════════════ */
.how-it-works {
  position:relative;
  padding:var(--pad) 1rem;
  background:var(--bg);
  overflow:hidden;
  /* Cursor set here for airplane interactivity */
  cursor:crosshair;
}
/* Layer 0: neural canvas (deepest, in JS) */
.how-canvas {
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none; opacity:.35; z-index:0;
}
/* Layer 1: glowing orbs mid-depth */
.how-parallax-layer { position:absolute; inset:0; pointer-events:none; will-change:transform; }
.how-layer-mid { z-index:1; }
.how-orb {
  position:absolute; border-radius:50%;
  background:radial-gradient(circle,rgba(99,215,230,.35),transparent 70%);
  filter:blur(50px);
}
.how-orb1 { width:320px;height:320px;top:10%;left:5%; }
.how-orb2 { width:260px;height:260px;top:40%;right:8%; background:radial-gradient(circle,rgba(128,239,128,.2),transparent 70%); }
.how-orb3 { width:200px;height:200px;bottom:15%;left:35%; }
/* Layer 2: sharp accent lines (closest) */
.how-layer-front { z-index:2; }
.how-line {
  position:absolute; height:1px;
  background:linear-gradient(90deg,transparent,rgba(99,215,230,.4),transparent);
}
.how-line1 { width:60%;top:30%;left:20%; }
.how-line2 { width:40%;bottom:35%;left:30%; background:linear-gradient(90deg,transparent,rgba(128,239,128,.3),transparent); }
/* Content sits above all layers */
.how-content { position:relative; z-index:3; }
.how-it-works .steps { display:flex; gap:2rem; flex-wrap:wrap; justify-content:center; }
.how-it-works .step {
  background:rgba(20,20,20,.75); backdrop-filter:blur(8px);
  padding:2rem; border-radius:1rem; width:280px; text-align:center;
  border:1px solid var(--border);
  box-shadow:var(--shadow-s), 0 0 0 1px rgba(99,215,230,.06);
  transition:transform var(--fast), box-shadow var(--fast);
}
.how-it-works .step:hover { transform:translateY(-5px); box-shadow:var(--shadow-m), 0 0 30px rgba(99,215,230,.12); }
.step-icon { width:64px;height:64px;margin:0 auto 1rem;display:block; filter:brightness(1.6) drop-shadow(0 4px 6px rgba(0,0,0,.6)); }

/* ═══════════════════════════════════════════════════
   SEE THE DIFFERENCE — real photo slider
═══════════════════════════════════════════════════ */
.before-after-section { padding:var(--pad) 1rem; background:var(--dark); text-align:center; }
.ba-container { max-width:720px; margin:2.5rem auto 0; }
.ba-wrapper {
  position:relative; width:100%; aspect-ratio:3/2;
  border-radius:1rem; overflow:hidden; cursor:ew-resize;
  user-select:none; box-shadow:var(--shadow-l);
}
.ba-panel { position:absolute; inset:0; }
.ba-panel img { width:100%; height:100%; object-fit:cover; display:block; pointer-events:none; }
.ba-after { z-index:1; }
.ba-before { z-index:2; clip-path:inset(0 50% 0 0); }
.ba-mess-overlay {
  position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(80,0,120,.35),rgba(0,60,120,.25));
  mix-blend-mode:multiply;
  pointer-events:none;
}
.ba-corner-label {
  position:absolute; bottom:.75rem; left:.75rem;
  background:rgba(0,0,0,.65); color:#fff;
  font-size:.75rem; font-weight:600;
  padding:.3rem .65rem; border-radius:2rem;
  pointer-events:none;
}
.ba-label-after  { color:var(--cyan); border:1px solid rgba(99,215,230,.3); }
.ba-label-before { left:auto; right:.75rem; color:#ccc; border:1px solid rgba(255,255,255,.15); }
.ba-divider {
  position:absolute; top:0; left:50%; width:2px; height:100%;
  background:var(--cyan); box-shadow:0 0 14px rgba(99,215,230,.7);
  transform:translateX(-50%); z-index:10; pointer-events:none;
}
.ba-handle {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:44px; height:44px; border-radius:50%;
  background:var(--cyan); color:#0d0d0d;
  display:flex; align-items:center; justify-content:center; gap:2px;
  box-shadow:0 0 0 3px rgba(99,215,230,.3),0 4px 16px rgba(0,0,0,.4);
  z-index:11; pointer-events:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.ba-wrapper:active .ba-handle { transform:translate(-50%,-50%) scale(1.1); }
.ba-hint { margin-top:.85rem; font-size:.82rem; color:var(--sub); }

/* ═══════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════ */
.features { background:var(--bg); }
.features .feature-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:2rem; max-width:var(--max); margin:0 auto;
}
.feature-card {
  background:var(--dark); padding:2rem; border-radius:1rem;
  border-top:3px solid var(--cyan);
  transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  transform-style:preserve-3d;
  position:relative;
  overflow:hidden;
}
.feature-card::after {
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:60%; height:100%;
  background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.07) 50%,transparent 80%);
  transition:left 0.55s ease;
  pointer-events:none;
}
.feature-card:hover,
.feature-card:active {
  transform:translateY(-14px) scale(1.03);
  box-shadow:0 28px 56px rgba(0,0,0,.55), 0 0 0 1px rgba(99,215,230,.15);
}
.feature-card:hover::after,
.feature-card:active::after {
  left:150%;
}
.feature-card h3 { margin-bottom:.5rem; color:var(--cyan); }

/* ═══════════════════════════════════════════════════
   AI DEMO
═══════════════════════════════════════════════════ */
.demo-section { position:relative; background:var(--dark); padding:5rem 1rem; text-align:center; overflow:hidden; }
#neural-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:.5; z-index:0; }
.demo-inner { position:relative; z-index:2; max-width:800px; margin:0 auto; }
.demo-file-label {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.75rem 1.4rem; background:rgba(255,255,255,.07);
  color:var(--text); border-radius:.4rem; cursor:pointer;
  border:1px solid var(--border); transition:background var(--fast);
}
.demo-file-label:hover { background:rgba(255,255,255,.12); }
.demo-upload { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; align-items:center; margin-top:2rem; }
.demo-upload input[type="file"] { display:none; }
.demo-spinner { display:inline-block; width:14px;height:14px; border:2px solid rgba(20,20,20,.25); border-top-color:var(--dark); border-radius:50%; animation:spin .65s linear infinite; vertical-align:middle; margin-left:4px; }
@keyframes spin { to{transform:rotate(360deg)} }
.demo-images-preview { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; margin-top:1.5rem; }
.demo-images-preview img { width:100px;height:100px;object-fit:cover;border-radius:.5rem;box-shadow:var(--shadow-s); }
.demo-result { margin-top:1.5rem; text-align:left; }
.demo-result-grid { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.demo-result-row { background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:.6rem; padding:.85rem 1rem; display:flex; flex-direction:column; gap:.3rem; }
.demo-result-full { grid-column:1/-1; }
.demo-result-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--sub); font-weight:600; }
.demo-result-value { color:var(--text); font-size:.95rem; line-height:1.5; }
.demo-price { color:var(--green); font-size:1.3rem; font-weight:700; }
.demo-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.25rem; }
.demo-tag { background:rgba(99,215,230,.1); color:var(--cyan); border:1px solid rgba(99,215,230,.22); border-radius:2rem; padding:.2rem .7rem; font-size:.78rem; font-weight:500; }
.demo-disclaimer { margin-top:1rem; font-size:.78rem; color:var(--sub); text-align:center; }
@media(max-width:600px){ .demo-result-grid{grid-template-columns:1fr;} }

/* ═══════════════════════════════════════════════════
   UNDER THE HOOD
═══════════════════════════════════════════════════ */
.diagram-section { padding:var(--pad) 1rem; text-align:center; background:var(--bg); overflow:hidden; }
.diagram-container { position:relative;width:550px;height:260px;margin:3rem auto 0;perspective:1000px;cursor:none; }
.layer { position:absolute;width:270px;height:110px;border-radius:.85rem;background:linear-gradient(135deg,rgba(99,215,230,.22),rgba(128,239,128,.12));box-shadow:0 8px 20px rgba(0,0,0,.6);transform:rotateX(44deg) rotateZ(-30deg);transform-style:preserve-3d;display:flex;align-items:center;justify-content:flex-start;padding:.9rem;animation:layerFloat 6s ease-in-out infinite;transition:translate 0.12s ease; }
.layer img { width:52px;height:52px;margin-right:.6rem;filter:brightness(2) drop-shadow(0 3px 5px rgba(0,0,0,.6)); }
.layer-label h3 { font-size:.95rem;margin-bottom:.2rem;color:var(--cyan); }
.layer-label p { font-size:.78rem;color:var(--sub);margin-bottom:0; }
.layer-photos { top:140px;left:0px;animation-delay:0s; }
.layer-ai { top:70px;left:140px;animation-delay:1s; }
.layer-listing { top:0;left:280px;animation-delay:2s; }
@keyframes layerFloat { 0%,100%{transform:rotateX(44deg) rotateZ(-30deg) translateY(0)} 50%{transform:rotateX(44deg) rotateZ(-30deg) translateY(-16px)} }

/* ═══════════════════════════════════════════════════
   NEXT-LEVEL TOOLS — electric border + hover glow
═══════════════════════════════════════════════════ */
.advanced-section { padding:var(--pad) 1rem; background:var(--dark); text-align:center; position:relative; overflow:hidden; }
#neural-canvas-adv { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:.5; z-index:0; }
/* Lift content above neural canvas */
.advanced-section > h2,
.advanced-section > p,
.advanced-section > .advanced-grid { position:relative; z-index:1; }
.advanced-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; max-width:var(--max); margin:3rem auto 0; }

/* Electric border via pseudo-element animation */
.electric-border {
  position:relative;
  background:var(--medium);
  padding:2rem; border-radius:1rem;
  transition:transform var(--fast), box-shadow var(--fast);
}
.electric-border::before {
  content:'';
  position:absolute; inset:0;
  border-radius:1rem;
  padding:1.5px;
  background:linear-gradient(var(--angle,0deg),transparent 25%,rgba(99,215,230,.7) 50%,transparent 75%),
             linear-gradient(calc(var(--angle,0deg) + 180deg),transparent 25%,rgba(99,215,230,.5) 50%,transparent 75%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:destination-out;
  mask-composite:exclude;
  animation:electricSpin 4s linear infinite;
  pointer-events:none;
}
@property --angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes electricSpin { to { --angle:360deg; } }
.electric-border:hover {
  transform:translateY(-6px) scale(1.02);
  box-shadow:var(--shadow-m), 0 0 50px rgba(128,239,128,.18), 0 0 20px rgba(128,239,128,.08);
}
.advanced-icon { width:64px;height:64px;margin:0 auto;display:block;filter:invert(1); }
.advanced-card h3 { margin-top:1rem;margin-bottom:.5rem;color:var(--cyan); }
.advanced-card p { color:var(--sub);margin-bottom:0; }

/* ═══════════════════════════════════════════════════
   WHY CHOOSE — numbered list redesign (no cards)
═══════════════════════════════════════════════════ */
.why-choose-section { padding:var(--pad) 1rem; background:var(--bg); text-align:center; }
.why-intro { max-width:600px; margin:0 auto 3rem; }
.why-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0;
  max-width:900px;
  margin:0 auto;
  border-left:1px solid var(--border);
  border-top:1px solid var(--border);
}
.why-item {
  padding:2rem 2.5rem;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  display:flex; gap:1.5rem; align-items:flex-start;
  text-align:left;
  transition:background var(--fast);
  opacity:0; transform:translateX(-20px);
  transition:opacity .6s ease calc(var(--i)*0.07s), transform .6s ease calc(var(--i)*0.07s), background var(--fast);
}
.why-item.in-view { opacity:1; transform:translateX(0); }
.why-item:hover {
  background:rgba(99,215,230,.04);
  box-shadow:0 12px 32px rgba(0,0,0,.45);
  transform:translateY(-2px);
  transition:opacity .6s ease calc(var(--i)*0.07s), transform .2s ease, background var(--fast), box-shadow var(--fast);
}
.why-icon {
  flex-shrink:0;
  width:2.4rem; height:2.4rem;
}
.why-text h3 { font-size:1rem; margin-bottom:.3rem; color:var(--text); }
.why-text p  { font-size:.88rem; color:var(--sub); margin-bottom:0; }

/* ═══════════════════════════════════════════════════
   SPEED PIPELINE
═══════════════════════════════════════════════════ */
.speed-section { padding:var(--pad) 1rem; background:var(--dark); text-align:center; }
.speed-badge {
  display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--cyan);
  background:rgba(99,215,230,.08); border:1px solid rgba(99,215,230,.2);
  border-radius:2rem; padding:.3rem .9rem; margin-bottom:1.5rem;
}
.speed-subtext { color:var(--sub); max-width:480px; margin:.3rem auto .75rem; font-size:.95rem; line-height:1.6; }

/* Stage — ring center-aligned with pipeline */
.speed-stage {
  display:flex; align-items:center; justify-content:center;
  gap:3rem; max-width:720px; margin:0 auto; flex-wrap:wrap;
}

/* Ring */
.speed-ring-wrap { position:relative; flex-shrink:0; width:220px; }
.speed-svg { display:block; }
.speed-center {
  position:absolute; top:110px; left:110px;
  transform:translate(-50%,-50%);
  text-align:center; pointer-events:none;
}
.speed-num {
  display:block; font-size:3.2rem; font-weight:700; line-height:1;
  font-family:'Courier New',monospace; font-variant-numeric:tabular-nums;
  /* Top-lit gradient: bright white highlight → cyan → deep teal base */
  background:linear-gradient(175deg, #ffffff 0%, #9eeef7 20%, #63d7e6 50%, #2a8fa0 80%, #1a6070 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  /* Layered extrusion shadows — each step slightly darker, simulating 3D depth */
  filter:
    drop-shadow(0 1px 0 rgba(42,143,160,.9))
    drop-shadow(0 2px 0 rgba(30,105,120,.85))
    drop-shadow(0 3px 0 rgba(20,75,88,.8))
    drop-shadow(0 5px 12px rgba(0,0,0,.55))
    drop-shadow(0 0 22px rgba(99,215,230,.5));
}
.speed-unit {
  display:block; font-size:.72rem; color:var(--sub);
  text-transform:uppercase; letter-spacing:.12em; margin-top:.25rem;
}

/* Shared container — holds the height so the ring-wrap never shifts */
.speed-status-wrap {
  position:relative; width:220px; min-height:2.8rem; margin-top:.7rem;
}
/* Both status divs occupy the exact same slot — one fades out as the other fades in */
.speed-in-progress,
.speed-ready {
  position:absolute; top:0; left:0; width:220px;
}

/* "Ready to list!" — fades in at same position as in-progress */
.speed-ready {
  text-align:center;
  opacity:0; transform:translateY(8px);
  transition:opacity .5s cubic-bezier(.2,.8,.3,1), transform .5s cubic-bezier(.2,.8,.3,1);
  font-size:.88rem;
  display:flex; align-items:center; justify-content:center; min-height:2.8rem;
}
.speed-ready.sp-visible { opacity:1; transform:translateY(0); }
.sp-ready-icon { margin-right:.3rem; }
.sp-ready-label { font-family:'Courier New',monospace; color:#4ade80; font-weight:600; }

/* Milestone dots on ring path */
.sp-dot { fill:rgba(255,255,255,.1); transition:fill .35s ease; }

/* Pipeline log — fixed dimensions so layout never shifts as steps animate in */
.speed-pipeline {
  display:flex; flex-direction:column;
  width:330px; flex-shrink:0; text-align:left;
  min-height:290px;
}

/* ── Steps: start hidden, slide + fade in one by one ── */
.sp-step {
  display:flex; align-items:flex-start; gap:.6rem;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s cubic-bezier(.2,.8,.3,1), transform .5s cubic-bezier(.2,.8,.3,1);
}
.sp-step.sp-visible { opacity:1; transform:translateY(0); }

/* Node column */
.sp-node-col {
  display:flex; flex-direction:column; align-items:center;
  flex-shrink:0; width:22px; padding-top:7px;
}
.sp-node {
  width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:.72rem; font-weight:700; flex-shrink:0;
  border:1.5px solid rgba(255,255,255,.15);
  color:transparent;
  position:relative; z-index:1;
  transition:border-color .3s, background .3s, color .3s, box-shadow .3s;
}
.sp-connector {
  width:1.5px; flex:1; min-height:12px;
  background:rgba(255,255,255,.08);
  margin:2px 0; transition:background .5s;
}

/* Row */
.sp-content {
  display:flex; align-items:center; gap:.45rem;
  flex:1; padding:.2rem .4rem .2rem .1rem;
  border-radius:.4rem; min-height:36px;
  transition:background .3s;
}
.sp-icon  { font-size:.82rem; flex-shrink:0; opacity:.9; display:flex; align-items:center; }
.sp-icon-img { height:1.1em; width:auto; display:block; }
/* Label starts empty — JS scramble decode fills it */
.sp-label { font-size:.86rem; flex:1; font-family:'Courier New',monospace; transition:color .3s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sp-time  {
  font-size:.67rem; font-family:monospace; flex-shrink:0;
  color:transparent; padding:.1rem .3rem; border-radius:.25rem;
  transition:color .4s;
}

/* ── Active ── */
.sp-step.sp-active .sp-node {
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(99,215,230,.18), 0 0 10px rgba(99,215,230,.45);
  animation:spNodePulse 1.4s ease-in-out infinite;
}
.sp-step.sp-active .sp-label { color:#f0f0f0; font-weight:500; }
.sp-step.sp-active .sp-content {
  background:linear-gradient(90deg,
    transparent 0%, rgba(99,215,230,.06) 35%,
    rgba(99,215,230,.15) 50%,
    rgba(99,215,230,.06) 65%, transparent 100%);
  background-size:300% 100%;
  animation:spScan 1.9s ease-in-out infinite;
}

/* ── Done ── */
.sp-step.sp-done .sp-node {
  background:rgba(74,222,128,.14); border-color:#4ade80;
  color:#4ade80; box-shadow:0 0 7px rgba(74,222,128,.28); animation:none;
}
.sp-step.sp-done .sp-connector { background:rgba(74,222,128,.3); }
.sp-step.sp-done .sp-icon      { opacity:.55; }
.sp-step.sp-done .sp-label     { color:rgba(255,255,255,.38); font-family:inherit; font-weight:400; }
.sp-step.sp-done .sp-label.sp-bold { font-weight:700; }
.sp-step.sp-done .sp-time      { color:rgba(99,215,230,.5); }

/* Final "Ready to list!" — extra glow */
.sp-step.sp-done.sp-final .sp-node {
  background:rgba(74,222,128,.28);
  box-shadow:0 0 0 4px rgba(74,222,128,.12), 0 0 18px rgba(74,222,128,.5);
}
/* last step label intentionally NOT green — "Ready to list!" and tagline handle that */

/* Completion tagline */
.speed-complete {
  display:flex; align-items:center; justify-content:center;
  gap:.38rem; flex-wrap:wrap;
  margin-top:1.6rem; font-size:.85rem;
  opacity:0; transform:translateY(8px);
  transition:opacity .7s ease, transform .7s ease;
  pointer-events:none;
}
.speed-complete.sp-comp-visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.speed-complete span { color:rgba(255,255,255,.55); }
.speed-complete .sp-sep { color:rgba(99,215,230,.45); }
.speed-complete .sp-comp-cta { color:#4ade80; font-weight:600; }
.speed-complete .sp-comp-num { color:#63d7e6; font-weight:700; }
.speed-complete .sp-comp-cta .sp-comp-num { margin-right:.2em; }

/* In-progress indicator — shown while timer is running */
.speed-in-progress {
  text-align:center;
  opacity:0; transform:translateY(8px);
  transition:opacity .5s cubic-bezier(.2,.8,.3,1), transform .5s cubic-bezier(.2,.8,.3,1);
  font-size:.78rem; min-height:2.8rem;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.3rem;
}
.speed-in-progress.sp-visible { opacity:1; transform:translateY(0); }
.sp-ip-text { color:rgba(255,255,255,.65); }
.sp-dots { display:inline-flex; align-items:center; gap:3px; }
.sp-loading-dot {
  display:inline-block; width:5px; height:5px; border-radius:50%;
  animation:spDotBounce 1.4s ease-in-out infinite;
}
.sp-loading-dot-1 { animation-delay:0s; }
.sp-loading-dot-2 { animation-delay:.22s; }
.sp-loading-dot-3 { animation-delay:.44s; }
@keyframes spDotBounce {
  0%,100% { transform:translateY(0);    background:#63d7e6; }
  25%      { transform:translateY(-5px); background:#4ade80; }
  50%      { transform:translateY(0);    background:#a78bfa; }
  75%      { transform:translateY(-5px); background:#63d7e6; }
}

/* "Flipz Secret Formula" — light glare sweeps across the letters only, active state only */
.sp-step.sp-active.sp-secret .sp-label {
  background:linear-gradient(90deg,
    #f0f0f0 0%, #f0f0f0 30%,
    rgba(255,255,255,1) 50%,
    #f0f0f0 70%, #f0f0f0 100%);
  background-size:200% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:spGlareText 3.2s ease-in-out infinite;
}
@keyframes spGlareText {
  0%,20%   { background-position:150% center; }
  80%,100% { background-position:-50% center; }
}
/* Done state — same sweep but subtle: base dim white, glare lifts to soft white */
.sp-step.sp-done.sp-secret .sp-label {
  background:linear-gradient(90deg,
    rgba(255,255,255,.38) 0%, rgba(255,255,255,.38) 30%,
    rgba(255,255,255,.68) 50%,
    rgba(255,255,255,.38) 70%, rgba(255,255,255,.38) 100%);
  background-size:200% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:spGlareText 3.2s ease-in-out infinite;
  font-family:inherit; font-weight:600;
}

/* Running dot indicator in button */
.sp-running-dot {
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background:currentColor; vertical-align:middle;
  animation:spRunDot .7s ease-in-out infinite alternate;
}

/* Pipeline keyframes */
@keyframes spNodePulse {
  0%,100% { box-shadow:0 0 0 3px rgba(99,215,230,.18), 0 0 10px rgba(99,215,230,.45); }
  50%     { box-shadow:0 0 0 6px rgba(99,215,230,.06), 0 0 18px rgba(99,215,230,.65); }
}
@keyframes spScan {
  0%   { background-position:-100% center; }
  100% { background-position:200% center; }
}
@keyframes spNodeDone {
  0%   { transform:scale(0) rotate(-20deg); opacity:0; }
  60%  { transform:scale(1.3) rotate(6deg); }
  100% { transform:scale(1) rotate(0); opacity:1; }
}
@keyframes spRunDot {
  from { opacity:.3; transform:scale(.65) translateY(-1px); }
  to   { opacity:1;  transform:scale(1)   translateY(-1px); }
}

/* Button */
.speed-foot { margin-top:1.8rem; }
.speed-btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.65rem 1.75rem; border-radius:2rem;
  background:rgba(99,215,230,.09); border:1.5px solid rgba(99,215,230,.3);
  color:var(--cyan); font-size:.9rem; font-weight:600;
  cursor:pointer; transition:background .2s, box-shadow .2s;
}
.speed-btn:hover:not(:disabled) {
  background:rgba(99,215,230,.17);
  box-shadow:0 0 22px rgba(99,215,230,.2);
}
.speed-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════ */
.testimonials { background:var(--bg); }

/* ── Slider wrapper ── */
.testimonials-slider-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 3.5rem;
}

/* ── Swiper overrides ── */
.testimonials-swiper {
  overflow: hidden;
  padding-bottom: 3rem !important; /* space for dots */
}

.testimonial {
  height: auto;
  background: var(--dark);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 3px solid var(--cyan);
  transition: transform var(--fast), box-shadow var(--fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.testimonial p { flex: 1; margin: 0; line-height: 1.65; }
.t-stars { display:flex; align-items:center; gap:2px; margin-bottom:.75rem; flex-wrap:nowrap; }
.t-star { font-size:1rem; color:var(--cyan); line-height:1; }
.t-star-half { position:relative; display:inline-block; font-size:1rem; line-height:1; color:transparent; -webkit-text-stroke:1.2px var(--cyan); }
.t-star-half::before { content:'★'; position:absolute; left:0; top:0; width:50%; overflow:hidden; color:var(--cyan); -webkit-text-stroke:0; display:block; }
.t-rating-text { font-size:.78rem; color:var(--sub); margin-left:.35rem; white-space:nowrap; }
.t-footer { display:flex; align-items:center; gap:.65rem; margin-top:1rem; }
.t-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid rgba(99,215,230,.35); flex-shrink:0; }
.testimonial .author { font-weight:500; color:var(--cyan); margin:0; font-size:.82rem; }

/* ── Prev / Next arrow buttons ── */
.t-btn-prev,
.t-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.5rem)); /* offset for pagination */
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid rgba(99,215,230,.4);
  background: rgba(99,215,230,.08);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.t-btn-prev { left: 0; }
.t-btn-next { right: 0; }
.t-btn-prev:hover,
.t-btn-next:hover {
  background: rgba(99,215,230,.18);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(99,215,230,.35);
  transform: translateY(calc(-50% - 1.5rem)) scale(1.08);
}
.t-btn-prev:disabled,
.t-btn-next:disabled { opacity: .3; cursor: default; }

/* ── Pagination dots ── */
.testimonials-pagination {
  bottom: 0 !important;
}
.testimonials-pagination .swiper-pagination-bullet {
  background: rgba(99,215,230,.35);
  opacity: 1;
  transition: background .2s ease, transform .2s ease;
}
.testimonials-pagination .swiper-pagination-bullet-active {
  background: var(--cyan);
  transform: scale(1.3);
}

/* Mobile: single column */
@media(max-width:640px) {
  .testimonials-slider-wrap { padding: 0 2.5rem; }
}

/* ═══════════════════════════════════════════════════
   FAQ — centered, constrained width
═══════════════════════════════════════════════════ */
.faq { background:var(--dark); }
.faq h2 { text-align:center; margin-bottom:2.5rem; }
.faq-inner { max-width:1100px; margin:0 auto; }
.faq-cols { display:grid; grid-template-columns:1fr 1fr; gap:0 3rem; }
.faq .faq-item { margin-bottom:.75rem;border-bottom:1px solid var(--border);padding-bottom:.75rem; }
.faq input[type="checkbox"] { display:none; }
.faq label { display:block;font-weight:500;cursor:pointer;padding-right:2rem;position:relative;color:var(--text);font-size:.95rem;line-height:1.4; }
.faq label::after { content:'+';position:absolute;right:0;top:0;font-size:1.2rem;color:var(--cyan);transition:transform var(--fast); }
.faq input:checked + label::after { content:'−'; }
.faq .faq-content { max-height:0;overflow:hidden;color:var(--sub);font-size:.88rem;transition:max-height .4s ease; }
.faq input:checked ~ .faq-content { max-height:200px;margin-top:.4rem; }

/* ═══════════════════════════════════════════════════
   LISTING CARD BUILDER
═══════════════════════════════════════════════════ */
.lb-section {
  padding:var(--pad) 1rem;
  background:var(--dark);
  text-align:center;
}
.lb-ai-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(99,215,230,.1); border:1px solid rgba(99,215,230,.28);
  color:var(--cyan); font-size:.75rem; font-weight:700;
  letter-spacing:.08em; padding:.3rem .85rem; border-radius:2rem;
  margin-bottom:1rem;
}
.lb-selector {
  display:flex; gap:.65rem; justify-content:center;
  margin:0 0 .75rem; flex-wrap:wrap;
}
.lb-tab {
  display:flex; align-items:center; gap:.45rem;
  padding:.55rem 1.1rem; border-radius:.55rem;
  border:1.5px solid var(--border); background:var(--medium);
  color:var(--sub); cursor:pointer; font-size:.88rem; font-weight:500;
  transition:all var(--fast);
}
.lb-tab:hover { border-color:var(--cyan); color:var(--cyan); }
.lb-tab.active {
  border-color:var(--cyan); background:rgba(99,215,230,.09); color:var(--cyan);
}
.lb-card-wrap { max-width:980px; margin:1.6rem auto 0; }

.lb-ai-status {
  display:flex; align-items:center; gap:.55rem; justify-content:center;
  margin-top:.65rem; font-size:.82rem; color:var(--cyan); min-height:1.4rem;
  background:rgba(99,215,230,.06); border-radius:2rem; padding:.25rem 1.25rem;
  border:1px solid rgba(99,215,230,.28);
  width:fit-content; margin-left:auto; margin-right:auto;
}
.lb-ai-status.lb-status-pop { animation:lbStatusLetterSpacing .6s ease-out forwards; }
@keyframes lbStatusLetterSpacing {
  0%   { letter-spacing:normal; }
  20%  { letter-spacing:.04em; }
  100% { letter-spacing:normal; }
}

/* Dark mode toggle bar — sits at the bottom of the listing card */
.lb-dark-toggle-bar {
  display:flex; justify-content:flex-end; align-items:center;
  padding:.35rem .85rem;
  background:#f0f0f0; border-top:1px solid #ddd;
}
.lb-card.lb-dark .lb-dark-toggle-bar { background:#1c1c1c; border-color:#383838; }
.lb-mode-wrap {
  display:flex; align-items:center; gap:.45rem; cursor:pointer; user-select:none;
}
.lb-mode-label-txt { font-size:.72rem; color:#666; }
.lb-card.lb-dark .lb-mode-label-txt { color:#909090; }
.lb-mode-switch {
  position:relative; display:inline-block; width:34px; height:18px; flex-shrink:0;
}
.lb-mode-switch input { display:none; }
.lb-mode-thumb {
  position:absolute; inset:0; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
  transition:background .22s, border-color .22s;
}
.lb-mode-thumb::before {
  content:''; position:absolute; left:2px; top:50%;
  transform:translateY(-50%);
  width:13px; height:13px; border-radius:50%;
  background:var(--sub); transition:transform .22s, background .22s;
}
.lb-mode-switch input:checked + .lb-mode-thumb {
  background:rgba(99,215,230,.18); border-color:rgba(99,215,230,.5);
}
.lb-mode-switch input:checked + .lb-mode-thumb::before {
  transform:translateY(-50%) translateX(16px); background:var(--cyan);
}
.lb-ai-pulse {
  width:7px; height:7px; border-radius:50%; background:var(--cyan);
  flex-shrink:0;
  animation:lbPulse 1.1s ease-in-out infinite;
}
@keyframes lbPulse {
  0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.65)}
}

/* ── The white eBay-style card ── */
.lb-card {
  background:#fff; border-radius:.65rem; overflow:hidden;
  box-shadow:0 6px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07);
  text-align:left;
  opacity:0; transform:translateY(14px);
  transition:opacity .45s ease, transform .45s ease;
}
.lb-card.lb-visible { opacity:1; transform:translateY(0); }

/* eBay nav bar */
.lb-ebay-nav {
  background:#f7f7f7; border-bottom:1px solid #ddd;
  padding:.35rem 1rem; display:flex; align-items:center; gap:1.1rem;
}
.lb-ebay-logo-img {
  height:28px; width:auto; flex-shrink:0;
}
.lb-ebay-nav-links {
  display:flex; align-items:center; gap:.9rem; flex-wrap:nowrap; flex-shrink:0;
}
.lb-ebay-nav-links span {
  font-size:.72rem; color:#333; cursor:pointer; white-space:nowrap;
  transition:color .15s;
}
.lb-ebay-nav-links span:hover { color:#0064d2; text-decoration:underline; }
/* right cluster: Sell | Watchlist | My eBay + search — pushed to far right */
.lb-nav-right {
  margin-left:auto; display:flex; align-items:center; gap:.9rem; flex-shrink:0;
}
.lb-nav-right > span {
  font-size:.72rem; color:#333; cursor:pointer; white-space:nowrap; transition:color .15s;
}
.lb-nav-right > span:hover { color:#0064d2; text-decoration:underline; }
/* pill search box matching eBay's exact style */
.lb-ebay-search {
  display:flex; align-items:center; gap:.4rem;
  background:#fff; border:1.5px solid #111; border-radius:999px;
  padding:.3rem .75rem; cursor:text; flex-shrink:0; white-space:nowrap;
}
.lb-search-icon { flex-shrink:0; }
.lb-search-placeholder { font-size:.72rem; color:#767676; white-space:nowrap; }

/* Listing body — 2 columns */
.lb-body {
  display:grid; grid-template-columns:364px 1fr;
}

/* ── Image column ── */
.lb-image-area {
  padding:1rem; border-right:1px solid #e5e5e5; background:#fff;
}
.lb-main-img-wrap {
  position:relative; width:100%; aspect-ratio:4/3;
  background:#f5f5f5; border-radius:.35rem;
  overflow:hidden; margin-bottom:.65rem;
  border:1px solid #e5e5e5;
}
.lb-product-img {
  width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .55s ease;
}
.lb-product-img.lb-img-visible { opacity:1; }

/* Scan overlay */
.lb-scan-overlay {
  position:absolute; inset:0; pointer-events:none;
  opacity:1; transition:opacity .5s ease;
}
.lb-scan-overlay.lb-scan-done { opacity:0; }
/* Dual scan lines — start from center, one sweeps up, one sweeps down, looping */
.lb-scan-line-dn,
.lb-scan-line-up {
  position:absolute; top:50%; left:0; right:0;
  height:3px;
  background:linear-gradient(to right, transparent 0%, #63d7e6 25%, #80ef80 75%, transparent 100%);
  box-shadow:0 0 18px 5px rgba(99,215,230,.85), 0 0 38px 8px rgba(99,215,230,.3);
}
/* "Flipz Analyzing Image" label rides below the downward line */
.lb-scan-line-dn::after {
  content:'✦  Flipz Analyzing Image';
  position:absolute; top:6px; left:50%;
  transform:translateX(-50%);
  font-size:.59rem; font-weight:700; letter-spacing:.11em;
  color:#63d7e6; white-space:nowrap; text-transform:uppercase;
  text-shadow:0 0 10px rgba(99,215,230,1), 0 0 22px rgba(99,215,230,.65);
}
/* "Flipz Analyzing Image" label rides ABOVE the upward line */
.lb-scan-line-up::after {
  content:'✦  Flipz Analyzing Image';
  position:absolute; bottom:6px; left:50%;
  transform:translateX(-50%);
  font-size:.59rem; font-weight:700; letter-spacing:.11em;
  color:#63d7e6; white-space:nowrap; text-transform:uppercase;
  text-shadow:0 0 10px rgba(99,215,230,1), 0 0 22px rgba(99,215,230,.65);
}
@keyframes lbScanDn {
  0%,100% { top:50%; }
  50% { top:calc(100% - 3px); }
}
@keyframes lbScanUp {
  0%,100% { top:50%; }
  50% { top:0%; }
}

/* Corner brackets */
.lb-scan-corner {
  position:absolute; width:18px; height:18px;
  border-color:#63d7e6; border-style:solid;
}
.lb-scan-tl { top:8px; left:8px; border-width:2px 0 0 2px; }
.lb-scan-tr { top:8px; right:8px; border-width:2px 2px 0 0; }
.lb-scan-bl { bottom:8px; left:8px; border-width:0 0 2px 2px; }
.lb-scan-br { bottom:8px; right:8px; border-width:0 2px 2px 0; }

/* Thumbnails */
.lb-thumbnails { display:flex; gap:.45rem; flex-wrap:wrap; }
.lb-thumb {
  width:60px; height:60px; border-radius:.3rem;
  border:2px solid #e5e5e5; background:#f0f0f0;
  background-size:cover; background-position:center;
  cursor:pointer; opacity:0;
  transition:opacity .3s ease, border-color .2s;
  flex-shrink:0;
}
.lb-thumb.lb-thumb-active { border-color:#0064d2; }
.lb-thumb.lb-thumb-visible { opacity:1; }

/* Item specifics when placed inside the left image column */
.lb-image-area .lb-specifics {
  margin-top:.65rem; margin-bottom:0; width:100%;
}
.lb-image-area .lb-spec-row {
  grid-template-columns:100px 1fr;
}

/* ── Details column ── */
.lb-details {
  padding:1rem 1.25rem; color:#111; overflow:hidden;
  /* Pre-reserve full height so layout never reflows during animation */
  min-height:520px;
}
.lb-breadcrumb {
  font-size:.72rem; color:#0064d2;
  margin-bottom:.35rem; min-height:.9em;
  word-break:break-word;
}
.lb-title {
  font-size:1.05rem; font-weight:600; color:#111;
  line-height:1.35; margin:0 0 .4rem; min-height:1.5em;
}
.lb-cursor {
  display:inline-block; width:2px; height:1em;
  background:var(--cyan); margin-left:2px;
  animation:lbBlink .65s step-end infinite;
  vertical-align:text-bottom;
  border-radius:1px;
}
@keyframes lbBlink { 50%{opacity:0} }

.lb-meta-row {
  display:flex; align-items:center; gap:.9rem;
  margin-bottom:.25rem; flex-wrap:wrap;
}
/* Shipping row — sits between Condition and seller info, matching eBay layout */
.lb-shipping-row {
  display:flex; align-items:baseline; gap:.55rem;
  font-size:.8rem; margin-bottom:.3rem;
  opacity:0; transition:opacity .3s ease;
}
.lb-shipping-row.lb-show { opacity:1; }
.lb-ship-label { color:#111; font-weight:400; flex-shrink:0; }
.lb-ship-val   { color:#111; }
.lb-ship-green { color:#168f52; }
.lb-condition-wrap {
  font-size:.82rem; color:#333;
  opacity:0; transition:opacity .3s ease;
}
.lb-condition-wrap.lb-show { opacity:1; }
.lb-meta-label { font-weight:600; color:#555; }
.lb-condition-val { color:#0064d2; }
.lb-seller-info { font-size:.78rem; color:#555; display:flex; align-items:center; gap:.4rem; margin-bottom:.5rem; }
.lb-seller-avatar { width:26px; height:26px; border-radius:50%; object-fit:cover; flex-shrink:0; background:#111; padding:2px; box-sizing:border-box; }
.lb-sold-count { color:#767676; }

/* Price */
.lb-price-area {
  margin-bottom:.55rem;
  opacity:0; transition:opacity .35s ease;
}
.lb-price-area.lb-show { opacity:1; }
.lb-price-label {
  font-size:.75rem; color:#555; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em;
  display:block; margin-bottom:.15rem;
}
.lb-price-val {
  font-size:2rem; font-weight:700; color:#111;
  line-height:1; display:block;
}
.lb-price-sub { font-size:.78rem; color:#0064d2; margin-top:.2rem; cursor:pointer; }
.lb-price-sub:hover { text-decoration:underline; }

/* Item specifics */
.lb-specifics {
  background:#f7f7f7; border-radius:.35rem;
  overflow:hidden; margin-bottom:.85rem;
  border:1px solid #ebebeb;
}
.lb-spec-row {
  display:grid; grid-template-columns:130px 1fr;
  padding:.38rem .7rem; font-size:.8rem;
  border-bottom:1px solid #ebebeb;
  opacity:0; transform:translateX(-6px);
  transition:opacity .22s ease, transform .22s ease;
}
.lb-spec-row:last-child { border-bottom:none; }
.lb-spec-row.lb-show { opacity:1; transform:translateX(0); }
.lb-spec-key { color:#555; font-weight:600; }
.lb-spec-val { color:#111; }

/* Description */
.lb-desc-section { margin-bottom:.5rem; }
.lb-desc-label {
  font-size:.7rem; font-weight:700; color:#555;
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:.4rem;
}
.lb-desc-list { list-style:none; padding:0; margin:0; }
.lb-desc-list li {
  font-size:.84rem; color:#333; padding:.22rem 0 .22rem 1.2rem;
  position:relative;
  opacity:0; transform:translateY(4px);
  transition:opacity .22s ease, transform .22s ease;
}
.lb-desc-list li::before {
  content:'✓'; position:absolute; left:0;
  color:#5aaf55; font-weight:700; font-size:.8rem;
}
.lb-desc-list li.lb-show { opacity:1; transform:translateY(0); }

.lb-free-ship { color:#168f52; font-weight:400; }

/* CTA buttons — eBay pill style, single horizontal row */
.lb-cta {
  display:flex; gap:.5rem; align-items:center;
  opacity:0; transition:opacity .4s ease; flex-wrap:wrap;
  margin-top:.35rem;
}
.lb-cta.lb-show { opacity:1; }
.lb-list-btn {
  background:#0064d2; color:#fff;
  border:none; border-radius:999px;
  padding:.62rem 1.5rem; font-size:.88rem; font-weight:700;
  cursor:pointer; letter-spacing:.01em; white-space:nowrap;
  transition:background .2s, transform .15s, box-shadow .2s;
}
.lb-list-btn:hover { background:#004fa0; transform:translateY(-1px); }
.lb-list-btn.lb-glow {
  animation:lbGlow 1.6s ease-in-out infinite;
}
@keyframes lbGlow {
  0%,100%{box-shadow:0 0 0 0 rgba(0,100,210,.35)}
  50%{box-shadow:0 0 22px 7px rgba(0,100,210,.5)}
}
.lb-draft-btn, .lb-preview-btn {
  background:#fff; border:1.5px solid #333;
  color:#111; border-radius:999px;
  padding:.60rem 1.3rem; font-size:.86rem; font-weight:500;
  cursor:pointer; white-space:nowrap; transition:background .2s;
}
.lb-draft-btn:hover, .lb-preview-btn:hover { background:#f3f3f3; }

/* Flipz-is-writing badge — floats as a dark AI overlay above the listing */
.lb-flipz-writing {
  display:inline-flex; align-items:center; gap:.55rem;
  background:linear-gradient(135deg, rgba(4,10,20,.94), rgba(8,24,42,.94));
  border:1.5px solid rgba(99,215,230,.62);
  border-radius:.55rem;
  padding:.5rem 1.15rem .5rem .8rem;
  font-size:1.05rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:#63d7e6;
  text-shadow:0 0 18px rgba(99,215,230,1), 0 0 4px rgba(99,215,230,.6);
  box-shadow:0 0 28px rgba(99,215,230,.3), 0 5px 22px rgba(0,0,0,.6),
             inset 0 1px 0 rgba(255,255,255,.07);
  margin-bottom:.3rem;
  opacity:0; transition:opacity .35s ease;
  animation:lbBadgeFloat 2s ease-in-out infinite;
}
.lb-flipz-writing::before {
  content:''; display:inline-block; width:8px; height:8px; border-radius:50%;
  background:#63d7e6; box-shadow:0 0 9px 3px rgba(99,215,230,.75);
  animation:lbPulse 1s ease-in-out infinite; flex-shrink:0;
}
.lb-flipz-writing.lb-show { opacity:1; }
@keyframes lbBadgeFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-4px); box-shadow:0 0 38px rgba(99,215,230,.45), 0 10px 30px rgba(0,0,0,.65); }
}

/* Price + badge sit side by side */
.lb-price-badge-row {
  display:flex; align-items:flex-start; gap:1.1rem; flex-wrap:wrap;
}
.lb-price-badge-row .lb-flipz-writing { margin-top:.35rem; }

/* Confidence score — green bordered data card */
.lb-confidence {
  position:relative; border:1.5px solid rgba(90,175,85,.5);
  border-radius:.4rem; padding:.4rem .65rem .35rem;
  margin:.3rem 0 .5rem; overflow:hidden;
  width:fit-content; max-width:100%;
  opacity:0; transform:translateY(6px);
  transition:opacity .35s ease, transform .35s ease;
}
.lb-confidence.lb-show {
  opacity:1; transform:translateY(0);
  animation:lbConfGlow .85s ease-in-out 7 .35s;
}
@keyframes lbConfGlow {
  0%,100% { border-color:rgba(90,175,85,.45); box-shadow:none; }
  50% { border-color:rgba(90,175,85,.95); box-shadow:0 0 9px rgba(90,175,85,.45), 0 0 18px rgba(90,175,85,.2); }
}
.lb-confidence::before {
  content:''; position:absolute; top:0; left:0;
  height:2.5px;
  background:linear-gradient(to right, #5aaf55, #80ef80);
  width:0; transition:width 1.4s ease-out;
}
.lb-confidence.lb-conf-filled::before { width:100%; }
.lb-conf-row { display:flex; align-items:baseline; gap:.45rem; margin-bottom:.2rem; }
.lb-conf-check { color:#5aaf55; font-weight:700; font-size:.9rem; }
.lb-conf-pct { font-size:1.1rem; font-weight:800; color:#5aaf55; letter-spacing:-.01em; line-height:1; }
.lb-conf-label { font-size:.72rem; font-weight:600; color:#555; text-transform:uppercase; letter-spacing:.06em; }
.lb-conf-detail {
  font-size:.73rem; color:#555;
  opacity:0; transform:translateY(3px);
  transition:opacity .35s ease, transform .35s ease;
}
.lb-conf-detail.lb-show { opacity:1; transform:translateY(0); }

/* ── Dark Mode overrides for lb-card ── */
/* Tier 1 (darkest): #1c1c1c — navbar, footer/toggle bar            */
/* Tier 2 (mid):     #252525 — card background, image area           */
/* Tier 3 (lightest):#2e2e2e — specifics panel, thumbs, search, btns */
.lb-card.lb-dark { background:#252525; }
.lb-card.lb-dark .lb-ebay-nav { background:#1c1c1c; border-color:#383838; }
.lb-card.lb-dark .lb-ebay-nav-links span,
.lb-card.lb-dark .lb-nav-right > span { color:#b8b8b8; }
.lb-card.lb-dark .lb-ebay-search { background:#2e2e2e; border-color:#444444; }
.lb-card.lb-dark .lb-search-placeholder { color:#888888; }
.lb-card.lb-dark .lb-body { border-color:#383838; }
.lb-card.lb-dark .lb-image-area { background:#252525; border-color:#383838; }
.lb-card.lb-dark .lb-main-img-wrap { background:#2e2e2e; border-color:#383838; }
.lb-card.lb-dark .lb-thumb { border-color:#383838; background-color:#2e2e2e; }
.lb-card.lb-dark .lb-thumb.lb-thumb-active { border-color:#5a9ee8; }
.lb-card.lb-dark .lb-specifics { background:#2e2e2e; border-color:#383838; }
.lb-card.lb-dark .lb-spec-row { border-color:#3a3a3a; }
.lb-card.lb-dark .lb-spec-key { color:#909090; }
.lb-card.lb-dark .lb-spec-val { color:#e0e0e0; }
.lb-card.lb-dark .lb-details { color:#e0e0e0; }
.lb-card.lb-dark .lb-breadcrumb { color:#5a9ee8; }
.lb-card.lb-dark .lb-title { color:#f0f0f0; }
.lb-card.lb-dark .lb-meta-label { color:#909090; }
.lb-card.lb-dark .lb-condition-val { color:#5a9ee8; }
.lb-card.lb-dark .lb-seller-info { color:#909090; }
.lb-card.lb-dark .lb-sold-count { color:#6e6e6e; }
.lb-card.lb-dark .lb-ship-label { color:#e0e0e0; }
.lb-card.lb-dark .lb-ship-val   { color:#e0e0e0; }
.lb-card.lb-dark .lb-price-label { color:#909090; }
.lb-card.lb-dark .lb-price-val { color:#f0f0f0; }
.lb-card.lb-dark .lb-price-sub { color:#5a9ee8; }
.lb-card.lb-dark .lb-conf-label { color:#909090; }
.lb-card.lb-dark .lb-conf-detail { color:#909090; }
.lb-card.lb-dark .lb-desc-label { color:#909090; }
.lb-card.lb-dark .lb-desc-list li { color:#c8c8c8; }
.lb-card.lb-dark .lb-draft-btn,
.lb-card.lb-dark .lb-preview-btn {
  background:#2e2e2e; border-color:#444444; color:#e0e0e0;
}
.lb-card.lb-dark .lb-draft-btn:hover,
.lb-card.lb-dark .lb-preview-btn:hover { background:#383838; }

/* Spec value inline cursor */
.lb-spec-cursor {
  display:inline-block; width:1.5px; height:.8em;
  background:var(--cyan); margin-left:1px;
  vertical-align:text-bottom; border-radius:1px;
  animation:lbBlink .55s step-end infinite;
}

/* AI mouse cursor */
.lb-ai-cursor {
  position:fixed; pointer-events:none; z-index:9999;
  opacity:0; transition:opacity .3s ease;
  filter:drop-shadow(2px 3px 6px rgba(0,0,0,.75))
         drop-shadow(0 0 10px rgba(99,215,230,.45));
}
.lb-ai-cursor.lb-cursor-move {
  transition:opacity .3s ease, left .72s cubic-bezier(.25,.46,.45,.94), top .72s cubic-bezier(.25,.46,.45,.94);
}

/* Button pressed state (when AI cursor clicks) */
.lb-list-btn.lb-btn-press {
  background:#004fa0 !important;
  transform:translateY(1px) scale(0.96) !important;
  transition:none !important;
}

/* Progress steps */
.lb-progress {
  display:flex; justify-content:center; gap:.75rem;
  margin:.3rem 0 .3rem; flex-wrap:wrap;
  min-height:28px; align-items:center;
}
.lb-step {
  display:flex; align-items:center; gap:.3rem;
  font-size:13px; color:var(--sub);
  opacity:.35; transition:opacity .3s, color .3s, font-size .25s;
}
.lb-step.lb-step-active {
  opacity:1; font-size:16px;
  background:linear-gradient(90deg,#63d7e6 0%,#0e8fa0 45%,#63d7e6 100%);
  background-size:200% auto;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  animation:lbStepShimmer 1.8s linear infinite;
}
.lb-step.lb-step-done {
  opacity:1; color:var(--green);
  -webkit-text-fill-color:var(--green);
  background:none; animation:none; font-size:13px;
}
@keyframes lbStepShimmer {
  0%   { background-position:0% center; }
  100% { background-position:-200% center; }
}

/* ── Your Item upload panel ── */
.lb-tab-yours { border-color:rgba(99,215,230,.55) !important; }
.lb-tab-yours.active {
  background:rgba(99,215,230,.09) !important;
}

/* Panel sits between the progress steps and the card — compact strip */
.lb-upload-panel {
  display:none;           /* toggled by JS */
  flex-direction:column;
  align-items:center;
  gap:.7rem;
  padding:.85rem 1rem .9rem;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius:.65rem;
  margin-bottom:.6rem;
}

/* Single-row: [upload label] [thumbnail] */
.lb-upload-row {
  display:flex; align-items:center; gap:.75rem; justify-content:center;
  flex-wrap:wrap;
}

/* "Choose photo" label — clearly visible on dark background */
.lb-upload-btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem 1.1rem; border-radius:.55rem;
  border:1.5px solid rgba(99,215,230,.45); background:rgba(99,215,230,.06);
  color:var(--sub); cursor:pointer; font-size:.88rem; font-weight:500;
  transition:border-color var(--fast), color var(--fast), background var(--fast);
  user-select:none;
}
.lb-upload-btn:hover,
.lb-upload-btn.lb-upload-over {
  border-color:var(--cyan); color:var(--cyan);
  background:rgba(99,215,230,.12);
}

/* File input — truly hidden, zero size, no interaction */
#lb-upload-input {
  position:absolute; width:0; height:0; opacity:0; pointer-events:none;
}

/* Thumbnail preview — appears next to label after file chosen */
.lb-upload-thumb {
  display:none;
  width:44px; height:44px;
  border-radius:.45rem; object-fit:cover;
  border:1.5px solid var(--cyan);
  box-shadow:0 2px 10px rgba(0,0,0,.45);
}

/* Superscript tooltip icon after "here" */
.lb-info-tip {
  position:relative;
  display:inline-flex; align-items:center;
  vertical-align:super;
  font-size:.6em; margin-left:.25em;
  cursor:help; line-height:1;
}
.lb-info-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:13px; height:13px; border-radius:50%;
  background:rgba(99,215,230,.18); border:1px solid rgba(99,215,230,.45);
  color:var(--cyan); font-size:8px; font-weight:700; font-style:italic;
  transition:background .15s;
}
.lb-info-tip:hover .lb-info-icon { background:rgba(99,215,230,.32); }
.lb-info-tooltip {
  position:absolute; bottom:calc(100% + 7px); left:50%;
  transform:translateX(-50%);
  background:#111d22; border:1px solid rgba(99,215,230,.28);
  color:var(--sub); font-size:.78rem; font-weight:400; font-style:normal;
  white-space:nowrap; padding:.3rem .7rem; border-radius:.4rem;
  box-shadow:0 4px 18px rgba(0,0,0,.55);
  pointer-events:none; opacity:0; transition:opacity .18s;
  z-index:200;
}
.lb-info-tip:hover .lb-info-tooltip,
.lb-info-tip.lb-tip-open .lb-info-tooltip { opacity:1; }

/* "Analyze" CTA button — matches site's primary action style */
.lb-analyze-btn {
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.62rem 1.75rem; border-radius:.55rem;
  background:var(--cyan); color:#001218;
  border:none; cursor:pointer; font-size:.9rem; font-weight:700;
  letter-spacing:.02em;
  transition:background .18s, transform .12s, opacity .15s;
}
.lb-analyze-btn:not(:disabled):hover {
  background:#7ee8f5; transform:translateY(-1px);
}
.lb-analyze-btn:disabled { opacity:.38; cursor:not-allowed; }

.lb-analyze-spinner {
  display:none; flex-shrink:0;
  width:15px; height:15px;
  border:2px solid rgba(0,18,24,.25); border-top-color:#001218;
  border-radius:50%;
  animation:lbSpin .7s linear infinite;
}
@keyframes lbSpin { to { transform:rotate(360deg); } }

.lb-upload-error {
  display:none;
  color:#e05252; font-size:.83rem; font-weight:500;
  text-align:center; max-width:480px;
  background:rgba(224,82,82,.08); border:1px solid rgba(224,82,82,.22);
  border-radius:.45rem; padding:.5rem 1rem;
}

/* ── Responsive ── */
@media(max-width:900px) {
  .lb-body { grid-template-columns:300px 1fr; }
}
@media(max-width:720px) {
  .lb-body { grid-template-columns:1fr; }
  .lb-image-area { border-right:none; border-bottom:1px solid #e5e5e5; padding-bottom:.5rem; }
  .lb-image-area .lb-specifics { width:100%; }
  .lb-ebay-nav-links, .lb-nav-right { display:none; }
  .lb-main-img-wrap { max-width:100%; aspect-ratio:4/3; margin:0 0 .6rem; }
  .lb-flipz-writing { font-size:.8rem; padding:.4rem .9rem .4rem .65rem; }
  .lb-scan-line-dn::after, .lb-scan-line-up::after { font-size:.48rem; letter-spacing:.07em; }
  .lb-list-btn, .lb-draft-btn, .lb-preview-btn { flex:1 1 auto; text-align:center; justify-content:center; }
  .lb-details { min-height:unset; }
}
@media(max-width:480px) {
  .lb-card-wrap { padding:0 .25rem; }
  .lb-selector { gap:.4rem; }
  .lb-tab { font-size:.8rem; padding:.44rem .75rem; }
  .lb-progress { gap:.45rem; }
  .lb-step { font-size:12px; }
  .lb-price-val { font-size:1.65rem; }
  .lb-cta { gap:.4rem; }
  .lb-list-btn, .lb-draft-btn, .lb-preview-btn { padding:.58rem 1rem; font-size:.82rem; }
}

/* ═══════════════════════════════════════════════════
   FOOTER — full redesign
═══════════════════════════════════════════════════ */
.footer {
  background:var(--dark);
  border-top:1px solid var(--border);
}
.footer-top {
  display:flex; gap:3rem; flex-wrap:wrap;
  max-width:var(--max); margin:0 auto;
  padding:4rem 2rem 3rem;
  justify-content:space-between;
}
.footer-brand { max-width:280px; }
.footer-logo { height:55px; width:auto; margin-bottom:1rem; }
.footer-brand > p { font-size:.88rem; color:var(--text); margin-bottom:1.25rem; }
.brand-sep { color:var(--cyan); }
.footer-social { display:flex; gap:.75rem; }
.social-icon {
  width:36px; height:36px; border-radius:50%;
  background:var(--medium); color:var(--sub);
  display:flex; align-items:center; justify-content:center;
  transition:background var(--fast), color var(--fast), box-shadow var(--fast);
  border:1px solid var(--border);
}
.social-icon svg { width:16px; height:16px; }
.social-icon:hover { background:var(--cyan); color:#0d0d0d; box-shadow:0 0 20px rgba(99,215,230,.4); }
.footer-links { display:flex; gap:3rem; flex-wrap:wrap; }
.footer-col { display:flex; flex-direction:column; gap:.6rem; }
.footer-col h4 { font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color:var(--sub); margin-bottom:.4rem; font-weight:600; }
.footer-col a { font-size:.88rem; color:var(--sub); transition:color var(--fast); }
.footer-col a:hover { color:var(--cyan); }
.contact-btn {
  display:inline-flex; align-items:center;
  background:transparent; color:var(--cyan) !important;
  border:1px solid rgba(99,215,230,.3);
  border-radius:.3rem; padding:.3rem .75rem;
  font-size:.82rem; transition:background var(--fast), border-color var(--fast) !important;
  text-align:center;
}
.contact-btn:hover { background:rgba(99,215,230,.1) !important; border-color:var(--cyan) !important; }
.footer-divider {
  height:1px;
  background:linear-gradient(to right, transparent 0%, var(--cyan) 12%, var(--cyan) 88%, transparent 100%);
  max-width:var(--max); margin:0 auto;
  opacity:.65;
}
.footer-bottom {
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1rem;
  max-width:var(--max); margin:0 auto;
  padding:1.25rem 2rem;
  font-size:.82rem; color:var(--sub);
}
.footer-bottom p { margin-bottom:0; color:var(--sub); }
.footer-bottom p:last-of-type { text-align:center; }
.footer-bottom .back-to-top { justify-self:end; }
.back-to-top {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--medium); color:var(--sub);
  border:1px solid var(--border); border-radius:.5rem;
  width:2rem; height:2rem; padding:0; cursor:pointer;
  transition:background var(--fast), color var(--fast), box-shadow var(--fast);
}
.back-to-top:hover { background:var(--cyan); color:#0d0d0d; box-shadow:0 0 16px rgba(99,215,230,.3); }

/* ═══════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
═══════════════════════════════════════════════════ */
[data-theme="light"] .newsletter,
[data-theme="light"] .pricing-section,
[data-theme="light"] .advanced-section,
[data-theme="light"] .speed-section,
[data-theme="light"] .footer,
[data-theme="light"] .before-after-section,
[data-theme="light"] .demo-section { background:var(--dark); }
[data-theme="light"] .metrics,
[data-theme="light"] .features,
[data-theme="light"] .how-it-works,
[data-theme="light"] .diagram-section,
[data-theme="light"] .testimonials,
[data-theme="light"] .why-choose-section,
[data-theme="light"] .faq { background:var(--bg); }
[data-theme="light"] .how-it-works .step,
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial,
[data-theme="light"] .metric,
[data-theme="light"] .plan-card,
[data-theme="light"] .electric-border { background:var(--dark); }
[data-theme="light"] .trust-bar { background:var(--medium); }
[data-theme="light"] .trust-item { filter: grayscale(1) brightness(0.35); }
[data-theme="light"] .trust-item:hover { filter: grayscale(0) brightness(1); }
[data-theme="light"] .nav.scrolled { background:var(--nav-glass); }
[data-theme="light"] p { color:var(--sub); }
[data-theme="light"] h1,[data-theme="light"] h2,[data-theme="light"] h3,[data-theme="light"] h4 { color:var(--text); }
[data-theme="light"] .orb { opacity:.07; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media(max-width:768px) {
  .nav { padding:.75rem 1rem; }
  .nav.scrolled { padding:.55rem 1rem; }
  .nav .logo { height:40px; }
  .nav-logo-col { padding-left: 0.75rem; }
  .nav-cta-col  { padding-right: 0.75rem; }
  .nav-spacer   { flex: 0 0 0.5rem; }
  .nav-buttons a { padding:.55rem .75rem; font-size:.78rem; }
  .hero-icon { width:80px; height:80px; }
  .hero-content h1 { font-size:clamp(1.9rem,8vw,3rem); }
  .hero-subtext { font-size:.9rem; }
  .why-grid { grid-template-columns:1fr; }
  .why-item { padding:1.25rem 1.5rem; }
  .faq-cols { grid-template-columns:1fr; }
  .footer-top { flex-direction:column; gap:2rem; }
  .footer-links { gap:1.5rem; }
  .footer-bottom { grid-template-columns:1fr; justify-items:center; }
  .footer-bottom .back-to-top { justify-self:center; }
  .speed-svg { width:170px; height:170px; }
  .speed-num { font-size:2.4rem; }
  .speed-stage { gap:1.5rem; }
  .speed-pipeline { width:100%; max-width:320px; flex-shrink:1; }
  .pricing-grid { grid-template-columns:1fr; }
  /* Contain large orbs on mobile */
  .how-orb1 { width:200px; height:200px; }
  .how-orb2 { width:160px; height:160px; }
  .how-it-works .step { width:100%; max-width:340px; }
  /* Trust bar: ensure no bleed */
  .trust-bar { overflow:hidden; }
  /* Testimonials: single column */
  .testimonials .testimonial-grid { grid-template-columns:1fr; }
  /* Feature grid: 2 columns on tablet */
  .features .feature-grid { grid-template-columns:repeat(2,1fr); }
  /* Advanced grid: single column */
  .advanced-grid { grid-template-columns:1fr; }
  /* Footer links stack */
  .footer-links { flex-direction:column; }
  /* Demo result: single column */
  .demo-result-grid { grid-template-columns:1fr; }
  /* Diagram: scale down */
  .diagram-container { transform:scale(0.52); transform-origin:top center; }
}

@media(max-width:480px) {
  .features .feature-grid { grid-template-columns:1fr; }
  .nav-spacer { flex: 0 0 0; }
  .nav-buttons a { padding:.5rem .6rem; font-size:.75rem; }
  .nav .logo { height:36px; }
  .hero-content h1 { font-size:clamp(1.7rem,7vw,2.5rem); }
  .metric { width:160px; padding:1.5rem; }
  .metric .number { font-size:2rem; }
  .footer-col { min-width:0; width:100%; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════ */
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
}

/* ═══════════════════════════════════════════════════
   INTERACTIVE PARTICLE AIRPLANE (How It Works canvas)
═══════════════════════════════════════════════════ */
.airplane-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* toggled to auto in game mode via JS */
  z-index: 4;             /* above neural canvas + parallax layers */
}
/* Cursor restored for interactive children in How It Works */
.how-content, .how-it-works .step, .how-it-works h2 { cursor: auto; }

/* ═══════════════════════════════════════════════════
   HOW IT WORKS — Asteroids mini-game overlay
═══════════════════════════════════════════════════ */
.how-game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;         /* above airplane-canvas */
  pointer-events: none; /* container is pass-through; children opt-in */
}

/* ── Play button (visible in decorative mode) ── */
.how-game-play {
  display: none;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6,6,16,0.72);
  border: 1px solid rgba(99,215,230,0.45);
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.45rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  animation: hgPulse 2.6s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.how-game-play:hover,
.how-game-play:focus-visible {
  background: rgba(99,215,230,0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(99,215,230,0.35);
  outline: none;
}
@keyframes hgPulse {
  0%, 100% { opacity: 0.70; }
  50%       { opacity: 1.00; }
}
.how-game-decorative .how-game-play { display: block; }

/* ── HUD bar (score / lives / exit) ── */
.how-game-hud {
  display: none;
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  right: 0.75rem;
  align-items: center;
  gap: 0.75rem;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.how-game-playing  .how-game-hud,
.how-game-gameover .how-game-hud { display: flex; }
.hg-score {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(99,215,230,0.7);
}
.hg-lives {
  color: #f87171;
  text-shadow: 0 0 8px rgba(248,113,113,0.55);
  margin-left: auto;
  letter-spacing: 0.05em;
}
.hg-exit {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45);
  font-family: monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.55rem;
  border-radius: 0.25rem;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s, border-color 0.2s;
}
.hg-exit:hover { color: #fff; border-color: rgba(255,255,255,0.45); }

/* ── Mobile virtual controls ── */
.how-game-ctrl {
  display: none;
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
@media (pointer: coarse) {
  .how-game-playing .how-game-ctrl { display: flex; }
}
.hgc-group {
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
}
.hgc-right-grp {
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.hgc-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(6,6,16,0.72);
  border: 1px solid rgba(99,215,230,0.38);
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(4px);
  transition: background 0.1s, border-color 0.1s;
}
.hgc-btn:active { background: rgba(99,215,230,0.18); border-color: var(--cyan); }
.hgc-fire  { border-color: rgba(99,215,230,0.65); }
.hgc-hyper { border-color: rgba(160,99,230,0.65); color: #a063e6; }

/* ── Game-over panel ── */
.how-game-over {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(4,4,14,0.82);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.how-game-gameover .how-game-over { display: flex; }
.hgo-title {
  font-family: monospace;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(99,215,230,0.7);
  letter-spacing: 0.18em;
  animation: hgPulse 1.1s ease-in-out infinite;
}
.hgo-score {
  font-family: monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}
.hgo-btn {
  background: rgba(6,6,16,0.8);
  border: 1px solid rgba(99,215,230,0.5);
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.55rem 1.8rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.hgo-btn:hover { background: rgba(99,215,230,0.14); box-shadow: 0 0 16px rgba(99,215,230,0.38); }
.hgo-quit {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  margin-top: 0.1rem;
}
.hgo-quit:hover { border-color: rgba(255,255,255,0.38); color: rgba(255,255,255,0.8); box-shadow: none; }

/* Also make pricing section position:relative to contain the orbs */
#pricing-section { position: relative; overflow: visible; }
.pricing-bg-orbs { overflow: hidden; border-radius: 0; }

/* ═══════════════════════════════════════════════════
   PRICING ANIMATION — now lives in Under the Hood
═══════════════════════════════════════════════════ */
.pricing-anim-col {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.pricing-anim-canvas {
  width: 260px;
  height: 260px;
  display: block;
  border-radius: 50%;
}
.pricing-anim-label {
  text-align: center;
}
.pricing-anim-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99,215,230,.15), rgba(128,239,128,.1));
  border: 1px solid rgba(99,215,230,.3);
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .8rem;
  border-radius: 2rem;
  margin-bottom: .6rem;
}
.pricing-anim-label p {
  font-size: .82rem;
  color: var(--sub);
  max-width: 200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   UNDER THE HOOD — side-by-side layout
═══════════════════════════════════════════════════ */
.under-hood-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.under-hood-layout .diagram-container {
  margin: 0;
}

@media (max-width: 800px) {
  .under-hood-layout {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* ═══════════════════════════════════════════════════
   WAITLIST — Email Waitlist / App Download Gate
═══════════════════════════════════════════════════ */

@keyframes wlPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.6); }
}

@keyframes wlOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.08); }
  66%       { transform: translate(-25px, 25px) scale(.94); }
}

@keyframes wlTickFlip {
  0%   { opacity: 1; transform: rotateX(0deg); }
  50%  { opacity: 0; transform: rotateX(-90deg); }
  51%  { opacity: 0; transform: rotateX(90deg); }
  100% { opacity: 1; transform: rotateX(0deg); }
}

@keyframes wlGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(99,215,230,.15), 0 0 60px rgba(128,239,128,.08); }
  50%       { box-shadow: 0 0 50px rgba(99,215,230,.28), 0 0 90px rgba(128,239,128,.18); }
}

/* ── Layout ── */
.waitlist {
  position: relative;
  isolation: isolate;  /* scope all z-indices inside this stacking context */
  overflow: hidden;
  padding: 2.1rem var(--pad);
  background: var(--dark);
  text-align: center;
}

.waitlist-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── Background ambiance ── */
.wl-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.wl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: wlOrb 14s ease-in-out infinite;
}
.wl-orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,215,230,.18) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.wl-orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(128,239,128,.14) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -5s;
}
.wl-orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,215,230,.1) 0%, transparent 70%);
  top: 50%; right: 10%;
  transform: translateY(-50%);
  animation-delay: -9s;
}

.wl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Status badge ── */
.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(99,215,230,.08);
  border: 1px solid rgba(99,215,230,.25);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.wl-badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: wlPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Heading ── */
.wl-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

.wl-gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wl-sub {
  font-size: 1.05rem;
  color: var(--sub);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

.wl-sub strong { color: var(--text); }

.wl-highlight {
  color: var(--cyan);
  font-weight: 600;
}

/* ── Countdown timer ── */
.wl-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 1.6rem 2.2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  animation: wlGlow 5s ease-in-out infinite;
}

.wl-ticks-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Counter inside countdown box */
.wl-countdown .wl-counter-line {
  margin: 0;
  font-size: .88rem;
  color: var(--sub);
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: .75rem;
  width: 100%;
  text-align: center;
}

.wl-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 72px;
}

.wl-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: opacity .15s ease;
}

.wl-num.flip {
  animation: wlTickFlip .35s ease-in-out;
}

.wl-tick-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sub);
}

.wl-sep {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.2);
  line-height: 1;
  margin-bottom: 1.4rem;
}

/* ── Counter line ── */
.wl-counter-wrap { display: inline-flex; align-items: center; }

.wl-counter-num {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Email form ── */
.wl-form {
  width: 100%;
  max-width: 560px;
  /* backdrop-filter creates backdrop rendering layer, same mechanism as
     .wl-countdown that makes it render above grid cells. saturate(1) is
     an identity function — zero visual effect, but activates the layer. */
  backdrop-filter: saturate(1);
  -webkit-backdrop-filter: saturate(1);
}

.wl-input-row {
  display: flex;
  gap: .6rem;
  width: 100%;
}

.wl-input {
  flex: 1;
  min-width: 0;
  padding: .85rem 1.2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.wl-input::placeholder { color: var(--sub); }

.wl-input:focus {
  border-color: var(--cyan);
  background: rgba(99,215,230,.06);
  box-shadow: 0 0 0 3px rgba(99,215,230,.12);
}

.wl-btn {
  white-space: nowrap;
  padding: .85rem 1.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
}

.wl-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--fast);
}

.wl-btn:hover .wl-arrow { transform: translateX(3px); }

.wl-response {
  margin-top: .75rem;
  font-size: .9rem;
  min-height: 1.2em;
  text-align: left;
}

/* ── Neural grid — JS-driven opacity, NO CSS animation/transition.
   CSS animation on opacity triggers GPU compositor promotion even on
   plain divs, causing them to ignore z-index against regular paint
   elements. Direct element.style.opacity via rAF stays in the regular
   paint layer where CSS z-index is always respected. ── */
.wl-neural-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wl-cell {
  position: absolute;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  border: 1.3px solid rgba(99,215,230,.46);
  background: radial-gradient(circle at center, rgba(99,215,230,.11) 0%, transparent 68%);
  /* opacity controlled entirely by JS — no transition, no animation */
}

/* ── Success state ── */
@keyframes wlSuccessIn {
  0%   { opacity: 0; transform: scale(.72) translateY(24px); filter: blur(12px); }
  55%  { opacity: 1; transform: scale(1.04) translateY(-4px); filter: blur(0); }
  78%  { transform: scale(.98) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes wlSuccessIconBurst {
  0%   { opacity: 0; transform: scale(0) rotate(-200deg); }
  65%  { opacity: 1; transform: scale(1.18) rotate(12deg); }
  85%  { transform: scale(.94) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes wlSuccessChildIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(128,239,128,.06);
  border: 1px solid rgba(128,239,128,.2);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  will-change: transform, opacity;
}

.wl-success.is-visible {
  display: flex;
  animation: wlSuccessIn .65s cubic-bezier(.34,1.56,.64,1) both;
}

.wl-success.is-visible .wl-success-icon {
  animation: wlSuccessIconBurst .6s cubic-bezier(.34,1.56,.64,1) .18s both;
}

.wl-success.is-visible h3 {
  animation: wlSuccessChildIn .38s ease .35s both;
}

.wl-success.is-visible p {
  animation: wlSuccessChildIn .38s ease .44s both;
}

.wl-success.is-visible .wl-pdf-link {
  animation: wlSuccessChildIn .38s ease .53s both;
}

/* ── Confetti particle ── */
.wl-confetti {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

.wl-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,215,230,.2), rgba(128,239,128,.2));
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-success-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  stroke: var(--green);
}

.wl-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--green);
}

.wl-success p {
  font-size: .95rem;
  color: var(--sub);
  margin: 0;
  line-height: 1.5;
}

.wl-success p strong { color: var(--text); }

.wl-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #000;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: opacity var(--fast), transform var(--fast);
}

.wl-pdf-link:hover { opacity: .88; transform: translateY(-1px); }
.wl-pdf-link svg { width: 16px; height: 16px; }

/* ── Early Access Benefits box ── */
.wl-gift {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  text-align: left;
  backdrop-filter: saturate(1);
  -webkit-backdrop-filter: saturate(1);
}

.wl-gift-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.wl-gift-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,215,230,.15), rgba(128,239,128,.15));
  border: 1px solid rgba(99,215,230,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-gift-icon svg { width: 18px; height: 18px; color: var(--cyan); stroke: var(--cyan); }

.wl-gift-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Benefits 2-col grid ── */
.wl-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .5rem;
}

.wl-benefit-col { display: flex; flex-direction: column; }

.wl-benefit-item { display: flex; flex-direction: column; }

.wl-benefit-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  background: none;
  border: none;
  padding: .42rem .4rem;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background var(--fast);
}

.wl-benefit-row:hover { background: rgba(99,215,230,.07); }

.wl-benefit-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--cyan);
  display: flex;
  align-items: center;
}

.wl-benefit-icon svg { width: 14px; height: 14px; fill: var(--cyan); }

.wl-benefit-label {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.wl-benefit-chevron {
  font-size: .9rem;
  color: var(--cyan);
  opacity: .6;
  transition: transform .2s ease, opacity .2s ease;
  line-height: 1;
}

.wl-benefit-item.open .wl-benefit-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.wl-benefit-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .75rem;
  color: var(--sub);
  padding: 0 .4rem 0 2rem;
  line-height: 1.45;
  transition: max-height .25s ease, opacity .2s ease .04s, padding-bottom .25s ease;
}

.wl-benefit-item.open .wl-benefit-detail {
  max-height: 80px;
  opacity: 1;
  padding-bottom: .35rem;
}

@media (max-width: 520px) {
  .wl-benefits-grid { grid-template-columns: 1fr; }
  .wl-gift { max-width: 100%; }
}

/* ── Trust pills ── */
.wl-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  /* Backdrop layer — same mechanism as .wl-countdown */
  backdrop-filter: saturate(1);
  -webkit-backdrop-filter: saturate(1);
}

.wl-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .78rem;
  color: var(--sub);
  transition: border-color var(--fast), color var(--fast);
}

.wl-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: .7;
}

.wl-pill:hover {
  border-color: rgba(99,215,230,.3);
  color: var(--cyan);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .waitlist { padding: 1.5rem 1.5rem; }

  .wl-countdown {
    gap: .5rem;
    padding: 1.2rem 1.2rem;
  }

  .wl-tick { min-width: 56px; }

  .wl-input-row { flex-direction: column; }

  .wl-btn { width: 100%; justify-content: center; }

  .wl-gift { flex-wrap: wrap; }
  .wl-gift-tag { align-self: flex-start; }
}

@media (max-width: 480px) {
  .wl-countdown { gap: .3rem; padding: 1rem .75rem; }
  .wl-tick { min-width: 44px; }
  .wl-num { font-size: 1.6rem; }
  .wl-sep { font-size: 1.4rem; }
  .wl-trust { gap: .4rem; }
}

/* ── Light theme overrides ── */
[data-theme="light"] .waitlist { background: var(--dark); }
[data-theme="light"] .wl-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}
[data-theme="light"] .wl-input {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.15);
  color: var(--text);
}
[data-theme="light"] .wl-input:focus {
  background: rgba(13,165,192,.06);
}
