/* ReelPilot V1 — responsive overrides */

*, *::before, *::after { box-sizing: border-box; }

/* ReelPilot design baseline — from ReelPilot.dc.html helmet */
.pp-body button,
.pp-page button {
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
}

.pp-page input,
.pp-page textarea,
.pp-page select {
  border-radius: 8px;
}

/* CTAs exported as <a> tags (no global button styles apply) */
.pp-page a[style*="background:#"],
.pp-page a[style*="background:transparent"][style*="border:"],
.pp-page a[style*="background: rgba"],
.pp-nav-actions a[style*="background:#"],
footer a[style*="background:#"],
.pp-post-content a[style*="background:#"] {
  border-radius: 8px;
}

@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.35} }

.pp-body {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff;
  color: #374151;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  --pp-nav-height: 72px;
}

.pp-page-shell {
  padding-top: var(--pp-nav-height);
}

.pp-page {
  overflow-x: hidden;
  min-height: 100vh;
  background: #ffffff;
  color: #374151;
}

/* Light-surface typography — templates still carry dark-theme inline colors */
.pp-page h1[style*="color:#F0F4FF"],
.pp-page h2[style*="color:#F0F4FF"],
.pp-page h3[style*="color:#F0F4FF"],
.pp-page h4[style*="color:#F0F4FF"] {
  color: #0B1020 !important;
}

/* Keep light headings inside dark bands, cards, and footer */
.pp-page section[style*="background:#0D1B42"] h1,
.pp-page section[style*="background:#0D1B42"] h2,
.pp-page section[style*="background:#0D1B42"] h3,
.pp-page section[style*="background:#2563EB"] h1,
.pp-page section[style*="background:#2563EB"] h2,
.pp-page section[style*="background:#2563EB"] h3,
.pp-page div[style*="background:#0D1B42"] h1,
.pp-page div[style*="background:#0D1B42"] h2,
.pp-page div[style*="background:#0D1B42"] h3,
.pp-page [style*="background:#0F1729"] h1,
.pp-page [style*="background:#0F1729"] h2,
.pp-page [style*="background:#0F1729"] h3,
.pp-page [style*="background:#090E1B"] h1,
.pp-page [style*="background:#090E1B"] h2,
.pp-page [style*="background:#090E1B"] h3,
footer h1,
footer h2,
footer h3 {
  color: #F0F4FF !important;
}

/* Light-surface body copy, labels, and subheadings */
.pp-page p[style*="color:#8B9CC8"],
.pp-page span[style*="color:#8B9CC8"],
.pp-page div[style*="color:#8B9CC8"],
.pp-page li[style*="color:#8B9CC8"] {
  color: #4B5563 !important;
}

.pp-page p[style*="color:#C8D0E8"],
.pp-page span[style*="color:#C8D0E8"],
.pp-page div[style*="color:#C8D0E8"],
.pp-page li[style*="color:#C8D0E8"] {
  color: #374151 !important;
}

.pp-page p[style*="color:#4A5580"],
.pp-page span[style*="color:#4A5580"],
.pp-page div[style*="color:#4A5580"] {
  color: #6B7280 !important;
}

.pp-page div[style*="color:#F0F4FF"],
.pp-page span[style*="color:#F0F4FF"],
.pp-page .faq-question[style*="color:#F0F4FF"] {
  color: #0B1020 !important;
}

.pp-page a[style*="color:#8B9CC8"]:not([style*="background:#2563EB"]):not([style*="background:#FFFFFF"]) {
  color: #2563EB !important;
}

.pp-page a[style*="color:#C8D0E8"][style*="background:transparent"] {
  color: #2563EB !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

.pp-page .pp-post-content[style*="color:#C8D0E8"] {
  color: #4B5563 !important;
}

/* Preserve dark-theme text inside dark bands, cards, pricing tiles, and footer */
.pp-page section[style*="background:#0D1B42"] [style*="color:#8B9CC8"],
.pp-page section[style*="background:#2563EB"] [style*="color:#8B9CC8"],
.pp-page [style*="background:#0D1B42"] [style*="color:#8B9CC8"],
.pp-page [style*="background:#0F1729"] [style*="color:#8B9CC8"],
.pp-page [style*="background:#090E1B"] [style*="color:#8B9CC8"],
.pp-page footer [style*="color:#8B9CC8"] {
  color: #8B9CC8 !important;
}

.pp-page section[style*="background:#0D1B42"] [style*="color:#C8D0E8"],
.pp-page section[style*="background:#2563EB"] [style*="color:#C8D0E8"],
.pp-page [style*="background:#0D1B42"] [style*="color:#C8D0E8"],
.pp-page [style*="background:#0F1729"] [style*="color:#C8D0E8"],
.pp-page [style*="background:#090E1B"] [style*="color:#C8D0E8"],
.pp-page footer [style*="color:#C8D0E8"] {
  color: #C8D0E8 !important;
}

.pp-page [style*="background:#0F1729"] [style*="color:#4A5580"],
.pp-page footer [style*="color:#4A5580"] {
  color: #4A5580 !important;
}

.pp-page section[style*="background:#0D1B42"] [style*="color:#F0F4FF"],
.pp-page section[style*="background:#2563EB"] [style*="color:#F0F4FF"],
.pp-page [style*="background:#0D1B42"] [style*="color:#F0F4FF"],
.pp-page [style*="background:#0F1729"] [style*="color:#F0F4FF"],
.pp-page [style*="background:#090E1B"] [style*="color:#F0F4FF"],
.pp-page [style*="background:#2563EB"] [style*="color:#F0F4FF"],
.pp-page footer [style*="color:#F0F4FF"] {
  color: #F0F4FF !important;
}

.pp-page input,
.pp-page textarea,
.pp-page select {
  font-family: 'Inter', sans-serif;
  outline: none;
}

.pp-page input::placeholder,
.pp-page textarea::placeholder {
  color: rgba(139, 156, 200, 0.45);
}

.pp-page a { transition: opacity 0.15s ease, color 0.15s ease; }
.pp-page a:hover { opacity: 0.85; }

.pp-nav {
  font-family: Inter, sans-serif;
}

.pp-nav-inner {
  padding: 0 clamp(16px, 4vw, 40px) !important;
}

.pp-nav a:hover {
  color: #F0F4FF !important;
  opacity: 1;
}

.pp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.pp-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(140px, 32vw);
  object-fit: contain;
}

.pp-logo-img--footer {
  height: 32px;
  max-width: 140px;
}

.pp-nav-link {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #8B9CC8;
  text-decoration: none;
  white-space: nowrap;
}

.pp-nav-link--active {
  color: #F0F4FF;
  font-weight: 600;
}

.pp-nav-cta {
  background: #2563EB;
  color: #F0F4FF !important;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.pp-nav-cta--mobile {
  display: block;
  text-align: center;
  margin-top: 12px;
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.18); }
  50% { transform: scaleY(1); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.pp-page summary { list-style: none; }
.pp-page summary::-webkit-details-marker { display: none; }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s ease, padding-bottom 0.3s ease; opacity: 0; }
.faq-header { cursor: pointer; user-select: none; }
.faq-header:hover .faq-question { color: #2563EB !important; }

/* Mobile nav */
.pp-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pp-nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #0B1020;
}

.pp-nav-mobile {
  display: none;
  background: rgba(11, 16, 32, 0.98);
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  padding: 16px clamp(16px, 4vw, 40px) 24px;
  flex-direction: column;
  gap: 4px;
}

.pp-nav-mobile.pp-nav-mobile--open {
  display: flex;
}

.pp-nav-mobile .pp-nav-link {
  font-size: 16px;
  padding: 12px 8px;
  border-radius: 8px;
}

body.pp-nav-open { overflow: hidden; }

/* Contact Form 7 */
.pp-cf7-wrap .wpcf7-form-control-wrap { display: block; width: 100%; }
.pp-cf7-wrap input[type="text"],
.pp-cf7-wrap input[type="email"],
.pp-cf7-wrap input[type="tel"],
.pp-cf7-wrap textarea,
.pp-cf7-wrap select {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: #0B1020;
  background: #fff;
  font-family: 'Inter', sans-serif;
}
.pp-cf7-wrap input:focus,
.pp-cf7-wrap textarea:focus,
.pp-cf7-wrap select:focus {
  outline: none;
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.pp-cf7-wrap textarea { resize: vertical; min-height: 140px; }
.pp-cf7-wrap label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.pp-cf7-wrap .wpcf7-form p { margin-bottom: 18px; }
.pp-cf7-wrap input[type="submit"],
.pp-cf7-wrap .wpcf7-submit {
  background: #2563EB;
  color: #F0F4FF;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: auto;
}
.pp-cf7-wrap .wpcf7-response-output {
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  margin: 16px 0 0;
  color: #4B5563;
}

/* Blog single */
.pp-blog-post {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.pp-blog-post__body,
.pp-blog-post .pp-post-content {
  max-width: 100%;
}

.pp-blog-post img,
.pp-blog-post video,
.pp-blog-post iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .pp-blog-post-section,
  .pp-page section[style*="padding:120px 40px"],
  .pp-page section[style*="padding:60px 40px"] {
    padding-left: clamp(16px, 4vw, 40px) !important;
    padding-right: clamp(16px, 4vw, 40px) !important;
  }
}

/* Blog single content */
.pp-post-content h2,
.pp-post-content h3 {
  font-family: 'Sora', sans-serif;
  color: #0B1020;
  letter-spacing: -0.5px;
}
.pp-post-content p,
.pp-post-content li {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #4B5563;
  line-height: 1.8;
}

/* Home hero — index.php only */
.pp-home-hero__art-img,
.pp-home-hero__video-img,
.pp-feature-image__img,
.pp-design-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-home-hero__phone {
  max-width: 100%;
}

@media (max-width: 960px) {
  .pp-home-hero__phone {
    width: min(72vw, 280px) !important;
  }
}

/* Content-at-scale video carousel */
.pp-content-scale__copy {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.pp-content-scale__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pp-content-scale__carousel {
  width: 100%;
  max-width: none;
  padding: 0 clamp(16px, 4vw, 40px);
}

.pp-content-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 12px 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.pp-content-carousel__viewport {
  grid-column: 2;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 18px;
  outline: none;
  width: 100%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pp-content-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.pp-content-carousel__track {
  display: flex;
  gap: 18px;
  padding: 8px 4px 12px;
}

.pp-content-carousel__slide {
  flex: 0 0 var(--pp-carousel-slide-width, 280px);
  width: var(--pp-carousel-slide-width, 280px);
  scroll-snap-align: start;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
  transform: scale(0.96);
}

.pp-content-carousel__slide.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pp-content-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.pp-content-carousel__phone {
  background: #0C1525;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.pp-content-carousel__slide.is-active .pp-content-carousel__phone,
.pp-content-carousel__slide.is-visible .pp-content-carousel__phone {
  border-color: #2563EB;
  box-shadow: 0 28px 72px rgba(37, 99, 235, 0.22), 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.pp-content-carousel__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0C1525;
  overflow: hidden;
}

.pp-content-carousel__screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #1D4ED8);
  z-index: 1;
}

.pp-content-carousel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0C1525;
}

.pp-content-carousel__bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #090E1B;
}

.pp-content-carousel__bar span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.28);
}

.pp-content-carousel__bar span:last-child {
  width: 68%;
  height: 3px;
  background: rgba(37, 99, 235, 0.14);
}

.pp-content-carousel__btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 41, 0.92);
  color: #F0F4FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  padding: 0;
}

.pp-content-carousel__btn:hover {
  background: #2563EB;
  border-color: #2563EB;
}

.pp-content-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pp-content-carousel__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pp-content-carousel__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(139, 156, 200, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pp-content-carousel__dot.is-active {
  background: #2563EB;
  transform: scale(1.15);
}

@media (max-width: 960px) {
  .pp-content-scale-section {
    padding-top: clamp(72px, 12vw, 120px) !important;
    padding-bottom: clamp(72px, 12vw, 120px) !important;
  }

  .pp-content-scale__copy {
    margin-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .pp-content-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .pp-content-carousel__viewport {
    flex: 1 1 100%;
    order: 1;
  }

  .pp-content-carousel__btn--prev,
  .pp-content-carousel__btn--next {
    order: 2;
  }

  .pp-content-carousel__dots {
    flex: 1 1 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-content-carousel__viewport {
    scroll-behavior: auto;
  }

  .pp-content-carousel__slide {
    transition: none;
  }
}

.pp-pod-player__btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #6D28D9;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s ease;
}

.pp-pod-player__btn--lg {
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}

.pp-pod-player__btn:hover {
  opacity: 0.88;
}

.pp-pod-player__icon--pause {
  display: none;
}

.pp-pod-player--playing .pp-pod-player__icon--play {
  display: none;
}

.pp-pod-player--playing .pp-pod-player__icon--pause {
  display: block;
}

.pp-pod-player__waves > div {
  animation-play-state: paused;
}

.pp-pod-player--playing .pp-pod-player__waves > div {
  animation-play-state: running;
}

@media (max-width: 960px) {
  .pp-home-hero {
    padding-top: clamp(48px, 10vw, 88px) !important;
    padding-bottom: clamp(56px, 10vw, 104px) !important;
    padding-left: clamp(16px, 4vw, 40px) !important;
    padding-right: clamp(16px, 4vw, 40px) !important;
  }

  .pp-home-hero__grid {
    flex-direction: column !important;
    gap: clamp(40px, 8vw, 72px) !important;
  }

  .pp-home-hero__visual {
    order: -1;
  }

  .pp-home-hero__headline {
    font-size: clamp(32px, 8vw, 56px) !important;
    letter-spacing: -1.5px !important;
  }

  .pp-home-hero__content p[style*="max-width:510px"] {
    max-width: 100% !important;
  }

  .pp-home-hero__card {
    width: min(304px, 100%) !important;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .pp-home-hero__cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .pp-home-hero__cta-row a {
    text-align: center !important;
  }

  .pp-home-hero__blob {
    opacity: 0.5;
  }
}

/* Home image banner — index.php only */
.pp-home-image__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(109, 40, 217, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  object-fit: cover;
  aspect-ratio: 1200 / 640;
  background: linear-gradient(135deg, #EDE9FE 0%, #F3F4F6 100%);
}

@media (max-width: 640px) {
  .pp-home-image {
    padding-bottom: 40px !important;
  }

  .pp-home-image__img {
    border-radius: 16px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1100px) {
  .pp-nav-links--desktop,
  .pp-nav-actions--desktop { display: none !important; }
  .pp-nav-toggle { display: flex; flex-shrink: 0; margin-left: auto; }
}

@media (min-width: 1101px) {
  .pp-nav-toggle { display: none !important; }
  .pp-nav-mobile { display: none !important; }
  .pp-nav-cta--mobile { display: none !important; }
}

@media (max-width: 960px) {

  .pp-page section[style*="grid-template-columns:1.15fr"],
  .pp-page section[style*="grid-template-columns:1fr 1fr"],
  .pp-page section[style*="grid-template-columns:repeat(3"],
  .pp-page div[style*="grid-template-columns:1fr 1fr"],
  .pp-page div[style*="grid-template-columns:repeat(3"],
  .pp-page div[style*="grid-template-columns:2fr"],
  .pp-footer-grid {
    grid-template-columns: 1fr !important;
  }

  .pp-page section[style*="padding:80px"],
  .pp-page section[style*="padding:88px"],
  .pp-page section[style*="padding:64px"] {
    padding-left: clamp(16px, 4vw, 40px) !important;
    padding-right: clamp(16px, 4vw, 40px) !important;
  }

  .pp-page h1[style*="font-size:56px"],
  .pp-page h1[style*="font-size:52px"] {
    font-size: clamp(32px, 8vw, 52px) !important;
    letter-spacing: -1.5px !important;
  }

  .pp-page h2[style*="font-size:44px"],
  .pp-page h2[style*="font-size:38px"],
  .pp-page h2[style*="font-size:36px"] {
    font-size: clamp(28px, 6vw, 44px) !important;
  }

  .pp-page h3[style*="font-size:36px"] {
    font-size: clamp(26px, 5vw, 36px) !important;
  }

  .pp-page section[style*="grid-template-columns:1.15fr 0.85fr"] > div:last-child {
    order: -1;
  }
}

@media (max-width: 640px) {
  .pp-footer-grid { gap: 32px !important; }

  .pp-page div[style*="display:flex"][style*="gap:16px"][style*="justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .pp-page div[style*="display:flex"][style*="gap:16px"][style*="justify-content:center"] > a {
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-page *, .pp-page *::before, .pp-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
