/* Quenyx landing enhancements – uses same CSS variables as main theme */
.ps-enhance {
  --ps-bg: hsl(var(--background));
  --ps-card: hsl(var(--card));
  --ps-foreground: hsl(var(--foreground));
  --ps-primary: hsl(var(--primary));
  --ps-muted: hsl(var(--muted-foreground));
  --ps-border: hsl(var(--border));
  font-family: inherit;
  color: var(--ps-foreground);
}

/* Services section */
.ps-services {
  padding: 3rem 0 4rem;
  background: var(--ps-bg);
}
.ps-services .ps-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.ps-services .ps-subtitle {
  text-align: center;
  color: var(--ps-muted);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.ps-services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  .ps-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ps-services-grid { grid-template-columns: repeat(3, 1fr); }
}
.ps-service-card {
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ps-service-card:hover {
  border-color: var(--ps-primary);
  box-shadow: 0 0 24px hsl(var(--primary) / 0.15);
}
.ps-service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.ps-service-card p {
  font-size: 0.875rem;
  color: var(--ps-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.ps-service-card a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ps-primary);
  text-decoration: none;
}
.ps-service-card a:hover { text-decoration: underline; }

/* Social proof */
.ps-social-proof {
  padding: 2rem 1.5rem;
  text-align: center;
  background: hsl(var(--card) / 0.5);
  border-top: 1px solid var(--ps-border);
  border-bottom: 1px solid var(--ps-border);
}
.ps-social-proof .ps-tagline {
  font-size: 1rem;
  color: var(--ps-muted);
  margin: 0 0 1rem;
}
.ps-social-proof .ps-quotes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.ps-social-proof .ps-quote {
  font-size: 0.875rem;
  color: var(--ps-foreground);
  font-style: italic;
}

/* Why Quenyx comparison */
.ps-why {
  padding: 3rem 1.5rem 4rem;
  background: var(--ps-bg);
}
.ps-why .ps-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}
.ps-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.ps-why-card {
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.ps-why-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.ps-why-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--ps-muted);
  line-height: 1.6;
}

/* Pricing section */
.ps-pricing {
  padding: 3rem 1.5rem 4rem;
  background: hsl(var(--card) / 0.3);
}
.ps-pricing .ps-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.ps-pricing .ps-subtitle {
  text-align: center;
  color: var(--ps-muted);
  margin-bottom: 1.5rem;
}
.ps-pricing .ps-cta-wrap {
  text-align: center;
}
.ps-pricing .ps-cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--ps-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: opacity 0.2s;
}
.ps-pricing .ps-cta-btn:hover { opacity: 0.9; }

/* Sticky CTA bar */
.ps-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: hsl(var(--card) / 0.98);
  border-top: 1px solid var(--ps-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.ps-sticky-cta.ps-visible {
  transform: translateY(0);
}
.ps-sticky-cta span {
  font-size: 0.875rem;
  color: var(--ps-muted);
}
.ps-sticky-cta a {
  padding: 0.5rem 1rem;
  background: var(--ps-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
}
.ps-sticky-cta a:hover { opacity: 0.9; }

/* Language switcher (top-right, default English) */
.ps-lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: hsl(var(--card) / 0.95);
  border: 1px solid var(--ps-border);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
[dir="rtl"] .ps-lang-switcher { right: auto; left: 1rem; }
.ps-lang-switcher button {
  background: none;
  border: none;
  color: var(--ps-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: inherit;
  font-family: inherit;
}
.ps-lang-switcher button:hover { color: var(--ps-foreground); }
.ps-lang-switcher button[aria-pressed="true"],
.ps-lang-switcher button[aria-selected="true"] { color: var(--ps-primary); font-weight: 600; }
.ps-lang-sep { color: var(--ps-border); user-select: none; }
.ps-lang-switcher #ps-lang-icon { display: flex; align-items: center; justify-content: center; padding: 0.25rem; color: var(--ps-muted); }
.ps-lang-switcher #ps-lang-icon:hover { color: var(--ps-foreground); }
.ps-lang-switcher #ps-lang-icon svg { display: block; }
.ps-lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 0.25rem; padding: 0.25rem; background: hsl(var(--card) / 0.98); border: 1px solid var(--ps-border); border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: none; flex-direction: column; gap: 0; min-width: 8rem; z-index: 1001; }
.ps-lang-switcher { position: fixed; }
.ps-lang-switcher .ps-lang-dropdown.ps-lang-open { display: flex; }
[dir="rtl"] .ps-lang-dropdown { right: auto; left: 0; }
@media (max-width: 480px) {
  .ps-lang-switcher { top: 0.5rem; right: 0.5rem; font-size: 0.75rem; padding: 0.25rem 0.35rem; }
  [dir="rtl"] .ps-lang-switcher { right: auto; left: 0.5rem; }
}

/* Reserve space so header nav + Get Early Access don't sit under fixed lang switcher */
body.ps-has-lang header { padding-right: 11rem !important; }
[dir="rtl"] body.ps-has-lang header { padding-right: 0 !important; padding-left: 11rem !important; }
@media (max-width: 768px) { body.ps-has-lang header { padding-right: 8rem !important; } [dir="rtl"] body.ps-has-lang header { padding-left: 8rem !important; } }

/* Get Early Access button – space from language switcher */
.ps-early-access-btn { margin-right: 0.5rem !important; }
[dir="rtl"] .ps-early-access-btn { margin-right: 0 !important; margin-left: 0.5rem !important; }

/* Form extras (request type, company size, preferred contact) */
.ps-form-extras {
  margin-bottom: 1.25rem;
}
.ps-form-extras label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--ps-foreground);
}
.ps-form-extras select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--input));
  border: 1px solid var(--ps-border);
  border-radius: 0.5rem;
  color: var(--ps-foreground);
  font-size: 0.875rem;
}
.ps-form-extras .ps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .ps-form-extras .ps-row { grid-template-columns: 1fr; }
}

/* ========== Professional layout: consistent spacing (1.5rem / 2rem / 3rem) ========== */
.ps-section { padding: 2rem 1.25rem; }
@media (min-width: 768px) { .ps-section { padding: 3rem 1.5rem; } }

/* Trust bar – under hero */
.ps-trust-bar {
  padding: 1.25rem 1.25rem;
  background: hsl(var(--card) / 0.6);
  border-bottom: 1px solid var(--ps-border);
}
.ps-trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.ps-trust-bar .ps-tagline {
  font-size: 0.875rem;
  color: var(--ps-muted);
  margin: 0;
}
.ps-trust-bar .ps-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.ps-trust-bar .ps-badge {
  font-size: 0.75rem;
  color: var(--ps-muted);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ps-border);
  border-radius: 0.375rem;
  background: var(--ps-card);
}

/* Value prop – 3 horizontal cards (one card style) */
.ps-value-prop { padding: 2.5rem 1.25rem; background: var(--ps-bg); }
@media (min-width: 768px) { .ps-value-prop { padding: 3rem 1.5rem; } }
.ps-value-prop .ps-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; color: var(--ps-foreground); }
.ps-value-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 640px) { .ps-value-cards { grid-template-columns: repeat(3, 1fr); } }
.ps-value-card {
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ps-value-card:hover { border-color: var(--ps-primary); box-shadow: 0 0 20px hsl(var(--primary) / 0.12); }
.ps-value-card .ps-icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--ps-primary); }
.ps-value-card h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }
.ps-value-card p { font-size: 0.875rem; color: var(--ps-muted); margin: 0 0 1rem; line-height: 1.4; }
.ps-value-card a { font-size: 0.875rem; font-weight: 500; color: var(--ps-primary); text-decoration: none; }
.ps-value-card a:hover { text-decoration: underline; }

/* How it works – 3 steps */
.ps-steps-wrap { padding: 2.5rem 1.25rem; background: hsl(var(--card) / 0.3); }
@media (min-width: 768px) { .ps-steps-wrap { padding: 3rem 1.5rem; } }
.ps-steps-wrap .ps-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.ps-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 640px) { .ps-steps { grid-template-columns: repeat(3, 1fr); } }
.ps-step {
  text-align: center;
  padding: 1rem;
}
.ps-step .ps-step-num { width: 2.25rem; height: 2.25rem; margin: 0 auto 0.75rem; border-radius: 50%; background: var(--ps-primary); color: hsl(var(--primary-foreground)); font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ps-step h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.375rem; }
.ps-step p { font-size: 0.875rem; color: var(--ps-muted); margin: 0; line-height: 1.4; }

/* Product modules – grouped, horizontal scroll */
.ps-product-modules { padding: 2.5rem 1.25rem; background: var(--ps-bg); width: 100%; box-sizing: border-box; max-width: 1200px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .ps-product-modules { padding: 3rem 1.5rem; } }
.ps-product-modules-title-wrap { width: 100%; display: flex; justify-content: center; margin-bottom: 1.5rem; }
.ps-product-modules .ps-title { display: block; width: 100%; max-width: 100%; font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0; }
.ps-product-group { margin-bottom: 2rem; width: 100%; text-align: center; }
.ps-product-group:last-child { margin-bottom: 0; }
.ps-product-group-title { width: 100%; text-align: center; margin: 0 0 1rem; }
.ps-product-group h4 { font-size: 1rem; font-weight: 600; margin: 0 auto 1rem; padding: 0; width: 100%; text-align: center; display: block; }
.ps-product-group .ps-product-scroll { justify-content: center; }
.ps-product-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ps-product-scroll::-webkit-scrollbar { height: 6px; }
.ps-product-scroll::-webkit-scrollbar-track { background: hsl(var(--card)); border-radius: 3px; }
.ps-product-scroll::-webkit-scrollbar-thumb { background: var(--ps-border); border-radius: 3px; }
.ps-product-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.ps-product-card:hover { border-color: var(--ps-primary); }
.ps-product-card .ps-icon { font-size: 1.25rem; color: var(--ps-primary); margin-bottom: 0.5rem; }
.ps-product-card h5 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 0.375rem; }
.ps-product-card p { font-size: 0.8125rem; color: var(--ps-muted); margin: 0; line-height: 1.4; }
@media (max-width: 480px) { .ps-product-card { flex: 0 0 220px; } }

/* Why Quenyx – alternating text / graphic */
.ps-why-alt { padding: 2.5rem 1.25rem; background: var(--ps-bg); }
@media (min-width: 768px) { .ps-why-alt { padding: 3rem 1.5rem; } }
.ps-why-alt .ps-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.ps-why-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}
.ps-why-row:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .ps-why-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ps-why-row.ps-reverse { direction: rtl; }
  .ps-why-row.ps-reverse > * { direction: ltr; text-align: left; }
}
.ps-why-row h4 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
.ps-why-row p { font-size: 0.875rem; color: var(--ps-muted); margin: 0; line-height: 1.5; }
.ps-why-row .ps-graphic { min-height: 80px; background: hsl(var(--card) / 0.8); border: 1px solid var(--ps-border); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--ps-muted); font-size: 0.875rem; }

/* Final CTA strip */
.ps-cta-strip {
  padding: 2rem 1.25rem;
  background: var(--ps-primary);
  color: hsl(var(--primary-foreground));
  text-align: center;
}
.ps-cta-strip .ps-cta-headline { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.ps-cta-strip .ps-cta-btn-wrap { margin: 0; }
.ps-cta-strip a.ps-cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--primary-foreground));
  color: var(--ps-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: opacity 0.2s;
}
.ps-cta-strip a.ps-cta-btn:hover { opacity: 0.9; }
@media (min-width: 768px) { .ps-cta-strip { padding: 2.5rem 1.5rem; } .ps-cta-strip .ps-cta-headline { font-size: 1.5rem; } }

/* Mobile: tighten section padding and titles */
@media (max-width: 639px) {
  .ps-services { padding: 2rem 0 2.5rem; }
  .ps-services .ps-title { font-size: 1.375rem; }
  .ps-why .ps-title { font-size: 1.375rem; }
  .ps-why-grid { grid-template-columns: 1fr; }
  .ps-pricing { padding: 2rem 1.25rem 2.5rem; }
  .ps-pricing .ps-title { font-size: 1.375rem; }
  .ps-social-proof { padding: 1.5rem 1rem; }
  .ps-social-proof .ps-quote { font-size: 0.8125rem; }
}

/* ========== Laptop / Desktop (1024px+) – align with mobile, fix desktop layout ========== */
@media (min-width: 1024px) {
  .ps-trust-bar-inner { max-width: 1200px; padding: 0 1.5rem; }
  .ps-value-prop { padding: 3.5rem 2rem; }
  .ps-value-cards { max-width: 1100px; padding: 0 1rem; }
  .ps-steps-wrap { padding: 3.5rem 2rem; }
  .ps-steps { max-width: 900px; }
  .ps-product-modules { max-width: 1200px; padding: 3.5rem 2rem; width: 100%; }
  .ps-product-group .ps-product-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
  }
  .ps-product-card { flex: none; width: auto; min-width: 0; scroll-snap-align: unset; }
  .ps-why-alt { padding: 3.5rem 2rem; }
  .ps-why-row { max-width: 1000px; }
  .ps-services { padding: 3.5rem 2rem 4rem; }
  .ps-services-grid { padding: 0 1.5rem; }
  .ps-pricing { padding: 3.5rem 2rem 4rem; }
  .ps-social-proof { padding: 2.5rem 2rem; }
  .ps-cta-strip { padding: 3rem 2rem; }
  .ps-cta-strip .ps-cta-headline { font-size: 1.5rem; }
}

/* Laptop: header space for lang switcher (avoid overlap) */
@media (min-width: 1024px) {
  body.ps-has-lang header { padding-right: 12rem !important; }
  [dir="rtl"] body.ps-has-lang header { padding-left: 12rem !important; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  body.ps-has-lang header { padding-right: 10rem !important; }
  [dir="rtl"] body.ps-has-lang header { padding-left: 10rem !important; }
}

/* Large desktop (1280px+): contain width so content doesn’t stretch too far */
@media (min-width: 1280px) {
  .ps-product-modules,
  .ps-value-prop .ps-value-cards,
  .ps-steps-wrap .ps-steps { max-width: 1200px; margin-left: auto; margin-right: auto; }
}

/* Prevent horizontal scroll on all viewports */
.ps-enhance { max-width: 100%; }
body { overflow-x: hidden; }
