/* =========================================================
   PictureNamer Homepage Update CSS
   File name:
     /assets/css/pn-site-homepage-update.css

   IMPORTANT:
     This file is a FULL REPLACEMENT for the previous
     pn-site-homepage-update.css file.

   What this file controls:
     1) Homepage hero background rotation
     2) Hero headline area
     3) Stacked download cards
     4) App Store / Google Play badge sizing
     5) Smaller top-right phone screenshot
     6) Original round gold 14-day Pro Trial badge
     7) Capture / Organize / Protect / Deliver strip
     8) Homepage problem cards
     9) Homepage feature cards
     10) Responsive/mobile behavior

   Notes:
     - Keep your main /assets/css/pn-site.css file.
     - Replace only /assets/css/pn-site-homepage-update.css.
     - Do not paste this below the old file content.
     - Do not keep duplicate old homepage CSS blocks.
   ========================================================= */


/* =========================================================
   1. HOME HERO WRAPPER
   ========================================================= */

.pn-home-hero {
  position: relative;
  min-height: clamp(620px, 88vh, 900px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    #52a4ff 0%,
    #1370d8 42%,
    #045db2 70%,
    #081626 100%
  );
}


/* =========================================================
   2. HERO BACKGROUND SLIDES
   These are the rotating background images.
   The images are declared in index.html, not here.
   ========================================================= */

.pn-home-hero-slides,
.pn-home-hero-slide,
.pn-home-hero-overlay {
  position: absolute;
  inset: 0;
}

.pn-home-hero-slide {
  opacity: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1.025);
  transition:
    opacity 1.15s ease-in-out,
    transform 7s ease-in-out;
}

.pn-home-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}


/* =========================================================
   3. HERO OVERLAY
   Keeps white text readable over all background images.
   ========================================================= */

.pn-home-hero-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(82, 164, 255, 0.28),
      transparent 25%
    ),
    linear-gradient(
      90deg,
      rgba(8, 22, 38, 0.94) 0%,
      rgba(8, 22, 38, 0.82) 34%,
      rgba(8, 22, 38, 0.42) 62%,
      rgba(8, 22, 38, 0.18) 100%
    );
}


/* =========================================================
   4. HERO INNER LAYOUT
   Left side = headline / CTA card.
   Right side = phone image.
   ========================================================= */

.pn-home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.58fr);
  gap: 28px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 64px;
}

.pn-home-hero-copy {
  max-width: 680px;
}

.pn-home-hero-copy h1 {
  font-size: clamp(42px, 5vw, 74px);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.pn-home-hero-copy h1 span {
  color: #bfe6ff;
}

.pn-home-hero-copy .pn-lead {
  max-width: 650px;
  font-size: clamp(18px, 1.55vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.pn-home-trust-line {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   5. STACKED DOWNLOAD CARD
   This preserves the double/layered card effect you liked.

   HTML structure expected:
     .pn-download-stack
       .pn-download-card-back
       .pn-download-card-front
   ========================================================= */

/* =========================================================
   5. STACKED DOWNLOAD CARD — GLASS FRAME VERSION
   - Back card is larger than the front card
   - Front card sits centered on top
   - Back card appears as a soft border/frame around it
   ========================================================= */

.pn-download-stack {
  position: relative;
  max-width: 560px;
  margin-top: 28px;

  /* creates room so the larger back card can show */
  padding: 8px;
}

/* BACK CARD — larger glass frame */
.pn-download-card-back {
  position: absolute;
  inset: 0;
  z-index: 1;

  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(82, 164, 255, 0.28), transparent 36%),
    radial-gradient(circle at 82% 78%, rgba(255, 211, 77, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,120,255,0.14));

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.20);

  backdrop-filter: blur(12px);
}

/* Hide old back-card text */
.pn-back-card-text {
  display: none !important;
}

/* FRONT CARD — centered inside the larger frame */
.pn-download-card-front {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;

  padding: 24px 28px;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(10, 30, 60, 0.92),
    rgba(0, 120, 255, 0.30)
  );

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 42px rgba(0,0,0,0.30);
}


/* =========================================================
   6. APP STORE / GOOGLE PLAY BADGES
   Make sure the image files exist:
     /images/app-store-badge.png
     /images/google-play-badge.png
   ========================================================= */

.pn-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pn-store-buttons img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.pn-store-buttons img:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}
.pn-store-buttons img {
  height: 48px;
}


/* =========================================================
   7. GOLD STAR RATING AREA
   This stays on the top/front stacked card.
   ========================================================= */

.pn-download-right {
  min-width: 132px;
  text-align: right;
}

.pn-stars {
  margin-bottom: 8px;
  color: #ffd34d;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.pn-rating {
  margin-top: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.pn-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}


/* =========================================================
   8. BACK CARD YELLOW TEXT
   This is the subtle status text on the lower/behind card.
   It is not styled as capsules/pills.
   ========================================================= */

.pn-back-card-text {
  position: absolute;
  color: #ffd34d;
  font-weight: 700;
  font-size: 13px;
}

.pn-back-card-text-1 { top: 14px; left: 18px; }
.pn-back-card-text-2 { top: 14px; right: 18px; }
.pn-back-card-text-3 { bottom: 14px; left: 18px; }
.pn-back-card-text-4 { bottom: 14px; right: 18px; }


/* =========================================================
   9. PHONE MOCKUP (FIXED TO FULL SCREEN / HERO WIDTH)
   - The phone was only moving inside the centered .pn-wrap area.
   - This forces the phone overlay to use the full viewport width.
   - Cards are not touched.
   - Starburst is not touched.
   ========================================================= */

.pn-home-hero-ui {
  position: absolute;

  /* Fill hero height */
  top: 0;
  bottom: 0;

  /* Force this overlay to span full browser width,
     even though it lives inside .pn-wrap / .pn-home-hero-inner */
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);

  z-index: 3;
  pointer-events: none;
}


/* 📱 PHONE MOCKUP — TRUE TOP/RIGHT SCREEN POSITION */
.pn-home-phone-card {
  position: absolute;

  /* Move from actual browser/hero edges now */
  top: clamp(48px, 8vh, 86px);
  right: clamp(34px, 3vw, 58px);

  /* Smaller phone */
  width: clamp(120px, 9vw, 155px);

  /* Keep your existing visual treatment */
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);

  z-index: 5;
  pointer-events: none;
}


.pn-home-phone-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}


/* MOBILE / TABLET SAFETY */
@media (max-width: 1100px) {
  .pn-home-hero-ui {
    display: none;
  }
}
/* =========================================================
   ✨ OPTIONAL MICRO-INTERACTION (SAFE)
   ========================================================= */

.pn-home-phone-card:hover {
  transform: translateY(-4px);
}


/* =========================================================
   📱 MOBILE BEHAVIOR (CLEAN FALLBACK)
   ========================================================= */

@media (max-width: 1100px) {

  /* 🔴 Hide floating phone to prevent layout break */
  .pn-home-hero-ui {
    display: none;
  }

  /* (Optional alternative instead of hiding)
     Uncomment if you want it shown below content:

  .pn-home-phone-card {
    position: relative;
    top: auto;
    right: auto;
    margin: 40px auto 20px auto;
    width: clamp(180px, 60vw, 280px);
    display: block;
  }

  */
}

/* =========================================================
   10. 14-DAY FREE PRO TRIAL BADGE
   Modern seal style: professional, compact, not cartoonish.
   ========================================================= */

.pn-home-trial-badge {
  position: absolute;
  right: clamp(30px, 3.2vw, 62px);
  bottom: clamp(48px, 7vh, 88px);
  z-index: 4;

  width: 156px;
  height: 156px;
  padding: 18px;

  display: grid;
  place-items: center;

  text-align: center;
  transform: rotate(-6deg);

  color: #073763;
  background:
    radial-gradient(circle at 32% 24%, #fff8bd 0%, #ffd85c 42%, #f4a900 100%);

  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -10px 18px rgba(120, 75, 0, 0.18);
}

.pn-home-trial-badge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(7, 55, 99, 0.42);
}

.pn-home-trial-badge::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      rgba(255,255,255,0.75) 8deg 10deg,
      transparent 10deg 18deg
    );
  z-index: -1;
}

.pn-home-trial-badge strong {
  display: block;
  font-size: 25px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.pn-home-trial-badge span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

/* =========================================================
   11. CAPTURE / ORGANIZE / PROTECT / DELIVER STRIP
   ========================================================= */

.pn-home-action-strip {
  background:
    linear-gradient(
      90deg,
      rgba(82, 164, 255, 0.18),
      rgba(19, 112, 216, 0.26),
      rgba(4, 93, 178, 0.22)
    ),
    rgba(8, 22, 38, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pn-home-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.pn-home-action-item {
  padding: 22px 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pn-home-action-item:last-child {
  border-right: 0;
}

.pn-home-action-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pn-home-action-item h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.pn-home-action-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}


/* =========================================================
   12. PROBLEM CARDS
   ========================================================= */

.pn-problem-card {
  position: relative;
  overflow: hidden;
  padding-top: 84px;
}

.pn-problem-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 110px;
  background: radial-gradient(
    circle,
    rgba(82, 164, 255, 0.2),
    transparent 64%
  );
  pointer-events: none;
}

.pn-problem-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(82, 164, 255, 0.34),
    rgba(19, 112, 216, 0.16)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pn-problem-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   13. FEATURE CARDS
   ========================================================= */

.pn-home-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.pn-home-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(82, 164, 255, 0.2),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
  pointer-events: none;
}

.pn-home-feature-card > * {
  position: relative;
  z-index: 1;
}

.pn-home-feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  font-size: 25px;
  background: linear-gradient(
    135deg,
    rgba(82, 164, 255, 0.38),
    rgba(4, 93, 178, 0.24)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
}


/* =========================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1100px) {
  .pn-home-hero-inner {
    grid-template-columns: 1fr;
  }

  .pn-home-hero-ui {
    display: none;
  }

  .pn-home-trial-badge {
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 760px) {
  .pn-topbar-inner {
    align-items: flex-start;
  }

  .pn-nav {
    gap: 12px;
  }

  .pn-home-hero {
    min-height: auto;
  }

  .pn-home-hero-slide {
    background-position: center right;
  }
  /* =========================================================
   HERO IMAGE FIX — LIFESTYLE ONLY (SAFE OVERRIDE)
   This ONLY affects the girl image.
   Does NOT change working trades image.
   ========================================================= */

.pn-home-hero-slide.hero-lifestyle2 {
  background-position: 72% center;
}

  .pn-home-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 22, 38, 0.9) 0%,
      rgba(8, 22, 38, 0.72) 48%,
      rgba(8, 22, 38, 0.92) 100%
    );
  }

  .pn-home-hero-inner {
    padding-top: 58px;
    padding-bottom: 112px;
  }

  .pn-home-hero-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .pn-download-stack {
    max-width: 100%;
    padding-right: 14px;
    padding-bottom: 16px;
  }

  .pn-download-card-front {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pn-download-right {
    text-align: left;
  }

  .pn-store-buttons img {
    height: 44px;
  }

  .pn-home-trial-badge {
    left: 22px;
    right: auto;
    bottom: 24px;
    width: 106px;
    height: 106px;
  }

  .pn-home-trial-badge strong {
    font-size: 18px;
  }

  .pn-home-trial-badge span {
    font-size: 13px;
  }

  .pn-home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pn-home-action-item:nth-child(2) {
    border-right: 0;
  }

  .pn-home-action-item:nth-child(1),
  .pn-home-action-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 430px) {
  .pn-store-buttons {
    align-items: stretch;
  }

  .pn-store-buttons a,
  .pn-store-buttons img {
    width: 100%;
    max-width: 220px;
  }

  .pn-home-action-grid {
    grid-template-columns: 1fr;
  }

  .pn-home-action-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pn-home-action-item:last-child {
    border-bottom: 0;
  }
}

/* =========================================================
   15. HOMEPAGE VIDEO FEATURE LINKS
   - Makes each “Everything You Need” card clickable.
   - Uses the shared YouTube placeholder link in index.html.
   ========================================================= */

.pn-video-feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.pn-video-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(82, 164, 255, 0.42);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.pn-watch-link {
  display: inline-flex;
  margin-top: 14px;
  color: #9fd0ff;
  font-size: 13px;
  font-weight: 800;
}

.pn-video-feature-card:hover .pn-watch-link {
  color: #ffffff;
}


/* =========================================================
   16. HOME FAQ / QUESTIONS ACCORDION
   - Plus/minus icon is CSS based.
   - JavaScript keeps only one item open at a time.
   - Answer layout supports a top-left image placeholder.
   ========================================================= */

.pn-home-accordion .pn-faq-item {
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.pn-home-accordion .pn-faq-item.active {
  border-color: rgba(82, 164, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.pn-home-accordion .pn-faq-q {
  position: relative;
  padding-right: 54px;
}

.pn-home-accordion .pn-faq-q::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(82, 164, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.pn-home-accordion .pn-faq-item.active .pn-faq-q::after {
  content: "−";
  background: rgba(255, 211, 77, 0.22);
  color: #ffd34d;
}

.pn-home-accordion . {
  display: none;
}

.pn-home-accordion .pn-faq-item.active .pn-faq-a {
  display: block;
}

.pn-faq-answer-inner {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 4px;
}

.pn-faq-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
/* =========================================================
   FAQ IMAGE (REMOVE GLOW / SHADOW)
   ========================================================= */

  !border-radius: 8px;       /* optional: keep soft edges */
  !background: transparent;  /* prevents white glow artifacts */
!}

/* =========================================================
   FAQ IMAGE — FULL CLEAN (NO BORDER / NO GLOW / NO BG)
   ========================================================= */

.pn-faq-a img {
  display: block;
  width: 64px;
  height: auto;

  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
  background: none !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 0; /* remove rounding if causing edge artifact */
}

.pn-faq-a {
  border: none !important;
  background: transparent !important;
}

/* =========================================================
   17. BOTTOM CTA STORE BUTTONS
   - Reuses the same store badge treatment as the hero card.
   ========================================================= */

.pn-store-buttons-center {
  justify-content: center;
  margin-top: 22px;
}

.pn-store-buttons-center img {
  height: 50px;
}

@media (max-width: 560px) {
  .
  nswer-inner {
    grid-template-columns: 1fr;
  }

  .pn-faq-thumb {
    width: 52px;
    height: 52px;
  }

  .pn-store-buttons-center img {
    height: 44px;
  }
}

/* =========================================================
   FAQ ACCORDION — MATCH HOMEPAGE
   ========================================================= */

.pn-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 18px;
  font-weight: 600;
}

.pn-faq-icon {
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.pn-faq-item.active .pn-faq-icon {
  transform: rotate(45deg); /* + becomes × */
}

/* CONTENT LAYOUT WITH IMAGE */
.pn-faq-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
}

.pn-faq-content img {
  width: 56px;
  height: auto;

  /* CLEAN LOGO (no glow/border) */
  border: none;
  box-shadow: none;
  filter: none;
  background: none;
}

/* ACCORDION ANIMATION */
.pn-faq-a {
  display: none;
}

.pn-faq-item.active .pn-faq-a {
  display: block;
}