/*
 * PAJ GPS — PDP Shared Stylesheet
 * Scoped under .paj-led-pdp so it cannot affect the rest of your theme.
 * Enqueue via functions.php:
 *   wp_enqueue_style( 'paj-pdp', get_stylesheet_directory_uri() . '/paj-pdp-shared.css' );
 */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700&family=Raleway:wght@400;500&display=swap");

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
.paj-led-pdp {
  --color-primary-100: #FEE1D6;
  --color-primary-300: #F87D3B;
  --color-primary-500: #F05123;
  --color-primary-600: #D94A1F;
  --color-primary-700: #B83D1A;
  --color-secondary-300: #40638C;
  --color-secondary-400: #2A4B73;
  --color-secondary-500: #1A2839;
  --color-secondary-600: #0F1D2D;
  --color-neutral-dark-500: #011013;
  --color-neutral-light-100: #F0F5FA;
  --color-neutral-light-200: #E2E8F0;
  --color-neutral-light-300: #CBD5E1;
  --color-neutral-light-400: #94A3B8;
  --color-neutral-light-500: #64748B;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-success-500: #124A36;
  --color-warning-500: #7A4C08;
  --color-error-500:   #731E17;
  --color-success-surface: #E6F4EC;
  --color-warning-surface: #FFF3DC;
  --color-error-surface:   #FDE7E5;
  --brand-midnight:   var(--color-secondary-500);
  --brand-dark-grey:  var(--color-neutral-dark-500);
  --brand-light-grey: var(--color-neutral-light-100);
  --brand-white:      var(--color-white);
  --brand-orange:     var(--color-primary-500);
  --text-heading:         var(--color-black);
  --text-heading-inverse: var(--color-white);
  --text-heading-accent:  var(--color-primary-500);
  --text-body:            var(--color-secondary-500);
  --text-body-subtle:     var(--color-neutral-light-500);
  --text-body-info:       var(--color-secondary-300);
  --text-body-inverse:    var(--color-white);
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;
  --shadow-1: 0px 4px 4px 0px rgba(0,0,0,0.25);
  --shadow-2: 0px 12px 32px 0px rgba(1,16,19,0.2);
  --font-sans:    "Roboto", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Montserrat", "Roboto", system-ui, sans-serif;
  --font-accent:  "Raleway", "Montserrat", sans-serif;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes pajPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: .85; }
}
@keyframes pajLed {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%       { opacity: .85; filter: brightness(1.25); }
}
@keyframes pajRain {
  0%   { transform: translateY(-20px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(360px); opacity: 0; }
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
.paj-led-pdp {
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: #fff; color: #1A2839;
  font-family: var(--font-sans);
}
.paj-led-pdp *, .paj-led-pdp *::before, .paj-led-pdp *::after { box-sizing: border-box; }
.paj-led-pdp h1, .paj-led-pdp h2, .paj-led-pdp h3, .paj-led-pdp h4 {
  font-family: var(--font-sans); color: var(--text-body);
  letter-spacing: -0.5px; margin: 0;
}
.paj-led-pdp p      { margin: 0; }
.paj-led-pdp button { font-family: var(--font-sans); }
.paj-led-pdp a      { color: inherit; }

/* ── Chip ──────────────────────────────────────────────────────────────────── */
.paj-chip         { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.paj-chip-neutral { background: #E2E8F0; color: #1A2839; }
.paj-chip-dark    { background: #1A2839; color: #fff; }
.paj-chip-orange  { background: #FEE1D6; color: #B83D1A; }
.paj-chip-success { background: #E6F4EC; color: #124A36; }
.paj-chip-warning { background: #FFF3DC; color: #7A4C08; }
.paj-chip-error   { background: #FDE7E5; color: #731E17; }
.paj-chip-outline { background: transparent; color: #1A2839; border: 1px solid #CBD5E1; }

/* ── Button ────────────────────────────────────────────────────────────────── */
.paj-btn          { font-family: var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; transition: background 120ms, color 120ms, transform 80ms; border: none; text-decoration: none; white-space: nowrap; }
.paj-btn-lg       { font-size: 16px; font-weight: 500; padding: 14px 22px; line-height: 1; min-height: 48px; }
.paj-btn-sm       { font-size: 14px; font-weight: 500; padding: 10px 14px; line-height: 1; min-height: 36px; }
.paj-btn-primary  { background: #F87D3B; color: #1A2839; }
.paj-btn-primary:hover { background: #F05123; }
.paj-btn-dark     { background: #1A2839; color: #fff; }
.paj-btn-light    { background: #fff; color: #1A2839; border: 1px solid #CBD5E1; }
.paj-btn-full     { width: 100%; }

/* ── Gallery ───────────────────────────────────────────────────────────────── */
.paj-gallery-wrap              { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.paj-gallery-thumbs            { display: flex; flex-direction: column; gap: 10px; }
.paj-gallery-thumb             { border: 2px solid #E2E8F0; border-radius: 12px; padding: 0; overflow: hidden; width: 88px; height: 88px; background: #fff; cursor: pointer; }
.paj-gallery-thumb.active      { border-color: #1A2839; }
.paj-gallery-main              { position: relative; border-radius: 16px; border: 1px solid #E2E8F0; background: #fff; overflow: hidden; aspect-ratio: 1/1; }
.paj-gallery-dots              { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.paj-gallery-dot               { height: 6px; width: 6px; border-radius: 999px; background: #CBD5E1; transition: all 200ms; }
.paj-gallery-dot.active        { background: #1A2839; width: 22px; }
.paj-gallery-arrow             { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid #CBD5E1; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.paj-gallery-arrow:disabled    { background: rgba(255,255,255,.5); cursor: default; opacity: .5; }
.paj-gallery-arrow-prev        { left: 12px; }
.paj-gallery-arrow-next        { right: 12px; }
.paj-gallery-mobile-strip      { display: none; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.paj-gallery-mobile-thumb      { border: 2px solid #E2E8F0; border-radius: 8px; padding: 0; overflow: hidden; width: 64px; height: 64px; flex-shrink: 0; background: #fff; cursor: pointer; }
.paj-gallery-mobile-thumb.active { border-color: #1A2839; }

/* ── USP Strip ─────────────────────────────────────────────────────────────── */
.paj-usp-strip { background: #1A2839; color: #fff; }
.paj-usp-grid  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.paj-usp-item  { display: flex; align-items: center; gap: 12px; }
.paj-usp-icon  { width: 40px; height: 40px; border-radius: 10px; background: rgba(248,125,59,.15); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Phone Mock ────────────────────────────────────────────────────────────── */
.paj-phone-mock   { width: 180px; aspect-ratio: 9/19; background: #011013; border-radius: 28px; padding: 8px; border: 3px solid #1A2839; box-shadow: 0 30px 60px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.paj-phone-screen { flex: 1; background: #000; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; }
.paj-phone-notch  { width: 50px; height: 4px; background: #1A2839; border-radius: 999px; margin: 0 auto 10px; }

/* ── Comparison ────────────────────────────────────────────────────────────── */
.paj-comp-tab-bar   { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.paj-comp-tab       { background: transparent; color: #fff; border: none; cursor: pointer; border-radius: 8px; padding: 10px 18px; font-weight: 600; font-size: 14px; font-family: var(--font-sans); }
.paj-comp-tab.active { background: #F87D3B; color: #1A2839; }

/* ── Plans ─────────────────────────────────────────────────────────────────── */
.paj-plan-card        { background: #fff; color: #1A2839; border: 1px solid #CBD5E1; border-radius: 20px; padding: 24px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 14px; position: relative; transition: all 200ms; width: 100%; }
.paj-plan-card.active { background: #1A2839; color: #fff; border-color: #1A2839; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.paj-faq-item   { border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 10px; }
.paj-faq-btn    { width: 100%; background: transparent; border: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font-family: inherit; }
.paj-faq-answer { padding: 0 20px 20px; font-size: 14px; line-height: 1.6; color: #40638C; display: none; }
.paj-faq-answer.open { display: block; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .paj-usp-grid       { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .paj-gallery-wrap   { display: block; }
  .paj-gallery-mobile-strip { display: flex; }
  .paj-gallery-arrow  { display: inline-flex; }
  .paj-comp-tab-bar   { width: 100%; }
  .paj-comp-tab       { flex: 1; }
}
