@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800;900&display=swap');

/* ===== Ensure Mouse Cursor is 100% Visible on Popup ===== */
.cpop-overlay,
.cpop-overlay *,
.cpop-dialog,
.cpop-dialog *,
body.has-custom-cursor .cpop-overlay,
body.has-custom-cursor .cpop-overlay * {
  cursor: default !important;
}

.cpop-overlay a,
.cpop-overlay a *,
.cpop-overlay button,
.cpop-overlay button *,
.cpop-overlay [role="button"],
.cpop-overlay .cpop-ltr,
body.has-custom-cursor .cpop-overlay a,
body.has-custom-cursor .cpop-overlay a *,
body.has-custom-cursor .cpop-overlay button,
body.has-custom-cursor .cpop-overlay button *,
body.has-custom-cursor .cpop-overlay .cpop-ltr {
  cursor: pointer !important;
}

body.cpop-active .custom-cursor,
body.cpop-active .cursor-glow {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ===== Campaign Popup Overlay & Dialog ===== */
.cpop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(11, 26, 74, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-family: "Archivo", system-ui, Arial, sans-serif;
  color: #0b1a4a;
  animation: cpopFadeIn 0.22s ease-out;
}

@keyframes cpopFadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.cpop-overlay * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cpop-dialog {
  position: relative;
  width: 96%;
  max-width: 1240px;
  max-height: 94vh;
  max-height: 94dvh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(245, 196, 0, 0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Focus outline */
.cpop-dialog:focus-visible,
.cpop-dialog *:focus-visible {
  outline: 3px solid #f5c400;
  outline-offset: 2px;
}

/* ===== Sticky Top Bar ===== */
.cpop-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0b1a4a;
  color: #ffffff;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px solid rgba(245, 196, 0, 0.35);
}

.cpop-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cpop-bar__brand {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cpop-bar__brand:hover {
  color: #f5c400;
}

.cpop-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language toggle */
.cpop-lang {
  display: inline-flex;
  border: 2px solid #f5c400;
  border-radius: 999px;
  overflow: hidden;
}

.cpop-lang button {
  background: transparent;
  color: #ffffff;
  border: 0;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.cpop-lang button[aria-pressed="true"] {
  background: #f5c400;
  color: #0b1a4a;
}

/* Top X button */
.cpop-x-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cpop-x-btn:hover {
  background: #f5c400;
  color: #0b1a4a;
  border-color: #f5c400;
  transform: scale(1.06);
}

/* ===== Inner Content Wrap ===== */
.cpop-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ===== Hero Section (Wide 2-column) ===== */
.cpop-hero {
  background: #0b1a4a;
  color: #ffffff;
  padding: 32px 0 38px;
}

.cpop-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.cpop-hero small {
  color: #f5c400;
  font-weight: 800;
  font-size: 0.95rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.cpop-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 10px 0 14px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.cpop-hero h1 span {
  color: #1f9d4a;
  background: #ffffff;
  padding: 0 0.18em;
  border-radius: 6px;
}

.cpop-hero p.cpop-tag {
  font-size: 1.2rem;
  max-width: 38ch;
  line-height: 1.45;
  color: #e5ebff;
}

.cpop-hero p.cpop-tag b {
  color: #f5c400;
}

.cpop-hero__cta {
  display: inline-block;
  margin-top: 22px;
  background: #f5c400;
  color: #0b1a4a;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.cpop-hero__cta:hover {
  background: #ffe04a;
  transform: translateY(-1px);
}

.cpop-hero__poster {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  border-radius: 14px;
  border: 3px solid #f5c400;
  display: block;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

/* ===== Three Words Stripe ===== */
.cpop-three {
  background: #f5c400;
  color: #0b1a4a;
  padding: 16px 0;
}

.cpop-three ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 900;
  font-size: 1.35rem;
}

/* ===== Sections shared ===== */
.cpop-section {
  padding: 36px 0;
}

.cpop-section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 8px;
}

.cpop-lead {
  max-width: 68ch;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* ===== 8 Points / Promises Grid (Wide on desktop) ===== */
.cpop-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cpop-point {
  background: #eef1fa;
  border-left: 6px solid #1f9d4a;
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  scroll-margin-top: 80px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cpop-point h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0b1a4a;
}

.cpop-point b {
  display: block;
  color: #1f9d4a;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.cpop-point p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.cpop-point.on {
  background: #fff7d1;
  border-color: #f5c400;
  box-shadow: 0 0 0 3px #f5c400;
}

/* ===== SUCCESS Letter Trail ===== */
.cpop-trail {
  background: #0b1a4a;
  color: #ffffff;
}

.cpop-trail .cpop-lead {
  color: #dfe5ff;
}

.cpop-letters {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  position: relative;
  margin-bottom: 22px;
}

.cpop-ltr {
  background: #13266b;
  color: #ffffff;
  border: 3px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1;
  padding: 12px 0;
  transition: all 0.15s ease;
}

.cpop-ltr:hover {
  border-color: #f5c400;
}

.cpop-ltr[aria-pressed="true"] {
  background: #f5c400;
  color: #0b1a4a;
  border-color: #ffffff;
}

.cpop-stage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.cpop-sticker {
  background: #f5c400;
  color: #0b1a4a;
  border-radius: 14px;
  padding: 22px;
  transform: rotate(-1deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.cpop-sticker .cpop-sticker__n {
  font-weight: 800;
  opacity: 0.8;
  font-size: 0.9rem;
}

.cpop-sticker .cpop-sticker__q {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 6px 0 14px;
}

.cpop-sticker .cpop-sticker__arrow {
  display: inline-block;
  background: #0b1a4a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.cpop-reveal {
  background: #13266b;
  border: 3px dashed #f5c400;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cpop-reveal .cpop-reveal__lab {
  color: #f5c400;
  font-weight: 800;
  font-size: 0.9rem;
}

.cpop-reveal .cpop-reveal__a {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
}

.cpop-reveal .cpop-reveal__p {
  color: #dfe5ff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cpop-reveal .cpop-reveal__link,
.cpop-next {
  align-self: flex-start;
  background: #f5c400;
  color: #0b1a4a;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s;
}

.cpop-reveal .cpop-reveal__link:hover,
.cpop-next:hover {
  background: #ffe04a;
}

.cpop-next {
  margin-top: 14px;
}

.cpop-answer {
  margin-top: 24px;
  padding: 18px 20px;
  border: 3px solid #f5c400;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.cpop-answer span {
  color: #f5c400;
}

/* ===== Motto Section ===== */
.cpop-motto {
  text-align: center;
  background: #ffffff;
  padding: 34px 0;
}

.cpop-motto p.cpop-motto__big {
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  max-width: 28ch;
  margin: 0 auto;
  color: #0b1a4a;
}

.cpop-motto p.cpop-motto__big em {
  font-style: normal;
  color: #1f9d4a;
}

.cpop-motto p.cpop-motto__so {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #334155;
}

/* ===== Sticky Footer Actions ===== */
.cpop-footer-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  background: #0b1a4a;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 2px solid rgba(245, 196, 0, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.cpop-footer-bar__plan {
  color: #f5c400;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cpop-footer-bar__plan:hover {
  color: #ffffff;
}

.cpop-close-btn {
  width: 100%;
  max-width: 680px;
  background: #f5c400;
  color: #0b1a4a;
  border: 0;
  border-radius: 12px;
  padding: 16px 26px;
  font-weight: 900;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s;
}

.cpop-close-btn:hover {
  background: #ffe04a;
  transform: translateY(-1px);
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 860px) {
  .cpop-overlay {
    padding: 0;
  }
  .cpop-dialog {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .cpop-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .cpop-hero p.cpop-tag {
    margin: 0 auto;
  }
  .cpop-hero__poster {
    max-width: 260px;
  }
  .cpop-three ul {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 1.15rem;
  }
  .cpop-stage {
    grid-template-columns: 1fr;
  }
  .cpop-letters {
    gap: 6px;
  }
  .cpop-ltr {
    font-size: 1.4rem;
    padding: 10px 0;
  }
  .cpop-bar {
    padding: 10px 16px;
  }
  .cpop-wrap {
    padding: 0 16px;
  }
}
