/*
  PowerSense brand colors (web):
  - Portocaliu: #FF3B05
  - Albastru inchis: #080063
*/

.ps-landing,
.ps-landing * {
  box-sizing: border-box;
}

.ps-landing {
  /* Scope variables STRICT in landing, ca sa nu afecteze restul site-ului */
  --brand-orange: #ff3b05;
  --brand-blue: #080063;

  --bg-page: #f5f5f7;
  --bg-surface: #ffffff;
  --border-subtle: #e5e7eb;

  --text-main: #020617;

  /* A11Y: contraste mai bune (fix pentru Lighthouse "Low-contrast text") */
  --text-muted: #4b5563;
  --text-soft: #5b6472;

  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 8px 26px rgba(15, 23, 42, 0.06);

  /* Daca header-ul theme-ului este sticky si iti acopera ancorele */
  --ps-scroll-offset: 80px;

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

.ps-landing a {
  text-decoration: none;
  color: inherit;
}

.ps-landing a:focus-visible,
.ps-landing button:focus-visible,
.ps-landing input:focus-visible,
.ps-landing select:focus-visible,
.ps-landing textarea:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
}

/* WRAPPER (renamed din .shell -> .psl-shell) */
.ps-landing .psl-shell,
.ps-landing .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 40px);
}

@media (max-width: 720px) {
  .ps-landing .psl-shell,
  .ps-landing .shell {
    padding: 0 16px;
  }
}

/* Ajuta la scroll pe ancore cand exista header sticky */
.ps-landing section[id] {
  scroll-margin-top: var(--ps-scroll-offset);
}

/* SR-only focusable (renamed) */
.ps-landing .psl-sr-only-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ps-landing .psl-sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  z-index: 50;
}

/* SR-only (renamed) */
.ps-landing .psl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* SUBNAV */
.ps-landing-subnav {
  background: rgba(245, 245, 247, 0.96);
  border-bottom: 1px solid rgba(209, 213, 219, 0.85);
}

.ps-landing-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.ps-landing-nav {
  display: flex;
  gap: 14px;
  font-size: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ps-landing-nav::-webkit-scrollbar {
  display: none;
}

.ps-landing-nav a {
  white-space: nowrap;
}

.ps-landing-nav a:hover {
  color: var(--brand-blue);
}

.ps-landing-nav-cta {
  font-weight: 600;
  color: var(--brand-blue);
}

/* BUTOANE (renamed .btn -> .psl-btn) */
.ps-landing .psl-btn,
.ps-landing .btn {
  appearance: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    border-color 0.16s ease-out,
    color 0.16s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ps-landing .psl-btn--primary,
.ps-landing .btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), #ff7a3b);
  color: #fff;
  border-color: rgba(8, 0, 99, 0.8);
  box-shadow: 0 16px 40px rgba(8, 0, 99, 0.4);
}

.ps-landing .psl-btn--primary:hover,
.ps-landing .btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 55px rgba(8, 0, 99, 0.55);
}

.ps-landing .psl-btn--primary:focus-visible,
.ps-landing .btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(8, 0, 99, 0.35), 0 16px 40px rgba(8, 0, 99, 0.4);
}

.ps-landing .psl-btn--secondary,
.ps-landing .btn-secondary {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: rgba(148, 163, 184, 0.9);
}

.ps-landing .psl-btn--secondary:hover,
.ps-landing .btn-secondary:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.ps-landing .psl-btn--ghost,
.ps-landing .btn-ghost {
  background: transparent;
  color: #374151;
  border-color: transparent;
  padding: 10px 14px;
  text-transform: none;
  letter-spacing: 0;
}

.ps-landing .psl-btn--ghost:hover,
.ps-landing .btn-ghost:hover {
  color: var(--brand-orange);
}

/* Wrapper pentru shortcode CTA (ca sa il stilizezi fara .btn generic) */
.ps-landing .psl-offer-btn a,
.ps-landing .psl-offer-btn button,
.ps-landing .psl-offer-btn input[type="button"],
.ps-landing .psl-offer-btn input[type="submit"] {
  appearance: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(8, 0, 99, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    border-color 0.16s ease-out,
    color 0.16s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  background: linear-gradient(135deg, var(--brand-orange), #ff7a3b);
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 0, 99, 0.4);
  text-decoration: none;
}

.ps-landing .psl-offer-btn a:hover,
.ps-landing .psl-offer-btn button:hover,
.ps-landing .psl-offer-btn input[type="button"]:hover,
.ps-landing .psl-offer-btn input[type="submit"]:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 55px rgba(8, 0, 99, 0.55);
}

.ps-landing .psl-offer-btn a:focus-visible,
.ps-landing .psl-offer-btn button:focus-visible,
.ps-landing .psl-offer-btn input[type="button"]:focus-visible,
.ps-landing .psl-offer-btn input[type="submit"]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(8, 0, 99, 0.35), 0 16px 40px rgba(8, 0, 99, 0.4);
}

/* SECTIUNI */
.ps-landing main section {
  padding: 40px 0;
}

.ps-landing .section-light {
  background: var(--bg-page);
}

.ps-landing .section-dark {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.ps-landing .section-header {
  margin-bottom: 20px;
}

.ps-landing .section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.ps-landing .section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--brand-blue);
}

.ps-landing .section-description {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 780px;
}

/* HERO */
.ps-landing .hero {
  background: linear-gradient(to bottom, #ffffff, #f5f7ff 55%, #f5f5f7);
  border-bottom: 1px solid rgba(209, 213, 219, 0.85);
  padding-top: 32px;
  padding-bottom: 32px;
}

.ps-landing .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.ps-landing .hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin-bottom: 14px;
}

.ps-landing .hero-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.ps-landing .hero-title span {
  background: linear-gradient(to right, var(--brand-blue), var(--brand-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.ps-landing .hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 12px;
}

.ps-landing .hero-bullets {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 18px;
  padding-left: 18px;
}

.ps-landing .hero-bullets li {
  margin-bottom: 4px;
}

.ps-landing .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.ps-landing .hero-note {
  font-size: 11px;
  color: var(--text-soft);
}

.ps-landing .hero-note a {
  color: var(--brand-blue);
  opacity: 0.9;
  border-bottom: 1px dashed rgba(8, 0, 99, 0.18);
  padding-bottom: 1px;
}

.ps-landing .hero-note a:hover {
  border-bottom-color: var(--brand-orange);
  opacity: 1;
}

.ps-landing .hero-card {
  border-radius: var(--radius-xl);
  padding: 16px 16px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.ps-landing .hero-card-header {
  margin-bottom: 10px;
}

.ps-landing .hero-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.ps-landing .hero-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2ff;
  color: var(--brand-blue);
}

.ps-landing .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ps-landing .hero-metric {
  padding: 9px;
  border-radius: 12px;
  background: #f9fafb;
}

.ps-landing .hero-metric-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.ps-landing .hero-metric-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ps-landing .hero-card-footer {
  font-size: 12px;
  color: var(--text-muted);
}

/* GRIDURI (renamed) */
.ps-landing .psl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ps-landing .psl-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* CARD (renamed) */
.ps-landing .psl-card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  font-size: 13px;
  color: #4b5563;
}

.ps-landing .psl-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.ps-landing .psl-card small {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.ps-landing .psl-card-link {
  margin-top: 8px;
  font-size: 12px;
}

.ps-landing .psl-card-link a {
  color: var(--brand-blue);
  opacity: 0.85;
  border-bottom: 1px dashed rgba(8, 0, 99, 0.18);
  padding-bottom: 1px;
}

.ps-landing .psl-card-link a:hover {
  opacity: 1;
  border-bottom-color: var(--brand-orange);
}

/* SERVICII */
.ps-landing .service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.ps-landing .service-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-orange), var(--brand-blue));
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: 0 0 auto;
}

.ps-landing .service-list {
  padding-left: 16px;
  font-size: 12px;
  margin: 0;
}

.ps-landing .service-list li {
  margin-bottom: 4px;
}

/* FAQ (renamed) */
.ps-landing .psl-faq {
  border-radius: var(--radius-lg);
  padding: 16px 16px 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
  font-size: 13px;
  color: #4b5563;
}

.ps-landing .psl-faq__item {
  padding: 8px 0 10px;
  border-bottom: 1px solid #e5e7eb;
}

.ps-landing .psl-faq__item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.ps-landing .psl-faq__q {
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
  padding-right: 18px;
}

.ps-landing .psl-faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-soft);
}

.ps-landing .psl-faq__q[aria-expanded="true"]::after {
  content: "â";
}

.ps-landing .psl-faq__a {
  font-size: 13px;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  margin-top: 6px;
}

.ps-landing .psl-faq__a.is-open {
  max-height: 520px;
  opacity: 1;
}

/* CTA FINAL */
.ps-landing .cta-final {
  border-radius: var(--radius-xl);
  padding: 20px 18px 18px;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 16px 52px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.ps-landing .cta-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--brand-blue);
}

.ps-landing .cta-subtitle {
  font-size: 14px;
  color: #4b5563;
  max-width: 560px;
}

.ps-landing .cta-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* CONTACT WRAPPER */
.ps-landing .ps-contact-wrapper {
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  max-width: 860px;
  margin: 0 auto;
}

/* A11Y: configurator (widget) - contraste clare pentru toggle-uri */
.ps-landing .ps-btn-toggle.psl-btn,
.ps-landing .ps-btn-toggle.btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.9);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.ps-landing .ps-btn-toggle.psl-btn:hover,
.ps-landing .ps-btn-toggle.btn:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.ps-landing .ps-options-block {
  color: var(--text-main);
}

.ps-landing .ps-options-block p,
.ps-landing .ps-options-block small,
.ps-landing .ps-options-block li,
.ps-landing .ps-options-block label {
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .ps-landing .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-landing .psl-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-landing .psl-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-landing .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ps-landing .psl-grid-3,
  .ps-landing .psl-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-landing .hero-actions .psl-btn,
  .ps-landing .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ps-landing .hero-actions .psl-offer-btn a,
  .ps-landing .hero-actions .psl-offer-btn button,
  .ps-landing .hero-actions .psl-offer-btn input[type="button"],
  .ps-landing .hero-actions .psl-offer-btn input[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}

/* A11Y: touch targets mai bune doar pe dispozitive touch */
@media (pointer: coarse) {
  .ps-landing .psl-btn,
  .ps-landing .btn {
    min-height: 44px;
  }

  .ps-landing .ps-landing-nav a {
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
  }
}

/* A11Y: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ps-landing *,
  .ps-landing *::before,
  .ps-landing *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}