/* ==========================================
   RocketToons credit packs page (credits/)
   Figma "RocketToons Credit Packs v6 (dark band + cards)" (1156:128), 1920 x 2876.
   Plain CSS, no build step.

   The sky header scales with the screen: --s = min(1px, 100cqw / 1920) is one
   Figma px. The pack cards keep their Figma size (270 x 880, Channel 304 x 954)
   and wrap onto more rows on narrower screens; one column on phones.
   Buy buttons: put each pack's JVZoo link in its href (see the comments).
   ========================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #f3f4f8;
  color: #14161c;
  font-family: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }


/* ============ HEADER: sky, hills, clouds, cartoon cards ============ */
.cp-hero {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  /* the sky gradient runs over 2292px starting 830px above the header */
  background: linear-gradient(180deg, #190096 0%, #1612a8 16%, #1533c9 32%, #0b5df0 50%, #3a8cff 68%, #a6cbff 85%, rgba(255, 255, 255, 0) 100%) 0 calc(-830 * 100cqw / 1920) / 100% calc(2292 * 100cqw / 1920) no-repeat, #f3f4f8;
}
.cp-hero > * { --s: min(1px, 100cqw / 1920); }
.cp-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.cp-hero__hills { position: absolute; max-width: none; height: auto; }
.cp-hero__hills--far { left: calc(-620 * 100cqw / 1920); width: calc(2400 * 100cqw / 1920) !important; top: calc(404.4 * var(--s)); width: calc(2400 * var(--s)); opacity: 0.45; }
.cp-hero__hills--near { left: 0; top: calc(484.3 * var(--s)); width: 100%; }
.cp-hero__cloud { position: absolute; max-width: none; object-fit: cover; }
.cp-hero__cloud--left { left: 0; top: calc(155 * var(--s)); width: calc(324 * var(--s)); height: calc(267 * var(--s)); }
.cp-hero__cloud--right { right: 0; top: calc(508 * var(--s)); width: calc(361 * var(--s)); height: calc(267 * var(--s)); }
.cp-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(590 * var(--s));
  height: calc(160 * var(--s));
  background: linear-gradient(180deg, rgba(243, 244, 248, 0), #f3f4f8);
}

/* cartoon cards: an oval mask (centre x 960, y 15.5) fades out the ones furthest out */
.cp-thumbs {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(calc(50cqw + 50 * var(--s)) calc(389.81 * var(--s)) at 50% calc(15.5 * var(--s)), #000 80.4%, transparent 100%);
          mask-image: radial-gradient(calc(50cqw + 50 * var(--s)) calc(389.81 * var(--s)) at 50% calc(15.5 * var(--s)), #000 80.4%, transparent 100%);
}
.cp-thumb {
  position: absolute;
  left: calc(var(--x) * var(--s));
  top: calc(var(--y) * var(--s));
  width: calc(158 * var(--s));
  height: calc(158 * var(--s));
  padding: calc(6.15 * var(--s));
  border: calc(1.5 * var(--s)) solid rgba(255, 255, 255, 0.95);
  border-radius: calc(30 * var(--s));
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 calc(14 * var(--s)) calc(30 * var(--s)) rgba(10, 51, 153, 0.22);
}
.cp-thumb--r { left: auto; right: calc(var(--r) * var(--s)); }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(24 * var(--s)); }

.cp-hero__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(750 * var(--s));
  padding: calc(44 * var(--s)) 16px calc(190 * var(--s));
  color: #fff;
  text-align: center;
}
.cp-hero__logo {
  width: max(150px, calc(200 * var(--s)));
  height: auto;
  filter: drop-shadow(0 calc(2.857 * var(--s)) calc(5.357 * var(--s)) rgba(0, 0, 0, 0.35));
}
.cp-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(10 * var(--s));
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(8, 20, 64, 0.35);
}
.cp-hero__title-1 {
  font-size: max(40px, calc(104 * var(--s)));
  line-height: 1.27;
  letter-spacing: -0.035em;
}
.cp-hero__title-2 {
  margin-top: calc(-22 * var(--s));
  font-family: "Rancho", cursive;
  font-weight: 400;
  font-size: max(34px, calc(84 * var(--s)));
  line-height: 1.25;
}
.cp-hero__sub {
  margin-top: calc(15 * var(--s));
  color: rgba(255, 255, 255, 0.85);
  font-size: max(16px, calc(22 * var(--s)));
  line-height: 1.27;
  text-shadow: 0 2px 16px rgba(8, 20, 64, 0.35);
}


/* ============ PACK CARDS ============
   Desktop & laptop (1024px and up): always ONE row of five. The row is a size container
   and every card is one too: card sizes use --u, one Figma px of that card
   (100cqw / 270, or / 304 for Channel), so each card is a scaled copy of the Figma card
   at any width. Small text has a floor, and the card grows taller if it ever needs to.
   Phones & tablets (below 1024px): a compact card per pack (see the end of this section). */
.cp-packs {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 270fr 270fr 304fr 270fr 270fr;
  align-items: stretch;
  gap: 1.24%;
  width: min(1456px, 100% - 32px);
  margin: max(-190px, calc(-190 * 100vw / 1920)) auto 0;
}
.cp-pack {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(11, 20, 64, 0.1);
  text-align: center;
}
.cp-pack--first { border: 1.5px dashed rgba(39, 71, 245, 0.35); }
.cp-pack--popular {
  margin: calc(-37 * 100cqw / 1456) 0; /* Channel is 74 Figma px taller, centred on the row */
  border: 3px solid #5bc8ff;
  box-shadow: 0 20px 60px rgba(11, 20, 64, 0.22);
}
.cp-pack__in {
  --u: calc(100cqw / 270);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: calc(877 * var(--u));
  padding: calc(21 * var(--u)) calc(20.5 * var(--u)) calc(34 * var(--u));
}
.cp-pack--popular .cp-pack__in {
  --u: calc(100cqw / 298);
  min-height: calc(948 * var(--u));
  padding: calc(46 * var(--u)) calc(16 * var(--u)) calc(34 * var(--u));
}
.cp-pack__badge {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: -23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(200px, 90%);
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(90deg, #5bc8ff, #2747f5);
  box-shadow: 0 6px 10px rgba(39, 71, 245, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.cp-pack__visual { width: 100%; height: auto; border-radius: calc(18 * var(--u)); }
.cp-pack__name {
  margin-top: calc(24 * var(--u));
  color: rgba(20, 22, 28, 0.6);
  font-size: max(10px, calc(14 * var(--u)));
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: 0.16em;
}
.cp-pack--first .cp-pack__name { color: #2747f5; }
.cp-pack__credits {
  margin-top: calc(16 * var(--u));
  font-size: calc(56 * var(--u));
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.cp-pack--popular .cp-pack__credits { font-size: calc(68 * var(--u)); line-height: 1.19; }
.cp-pack__unit {
  color: rgba(20, 22, 28, 0.55);
  font-size: max(10px, calc(14 * var(--u)));
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: 0.16em;
}
.cp-pack__price {
  position: relative;
  margin-top: calc(30 * var(--u));
  padding-left: 0.28em;
  font-size: calc(60 * var(--u));
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.cp-pack--popular .cp-pack__price { font-size: calc(68 * var(--u)); }
.cp-pack__price sup {
  position: absolute;
  left: 0;
  top: 0.13em;
  font-size: 0.4em;
  font-weight: 700;
  line-height: 1.27;
  letter-spacing: 0;
}
.cp-pack__once {
  margin-top: calc(6 * var(--u));
  color: rgba(20, 22, 28, 0.5);
  font-size: max(11px, calc(15 * var(--u)));
  font-weight: 500;
  line-height: 1.27;
}
.cp-pack__for {
  margin-top: calc(15 * var(--u));
  padding: 0.55em 1.15em;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.05);
  color: rgba(20, 22, 28, 0.75);
  font-size: max(11px, calc(14 * var(--u)));
  font-weight: 600;
  line-height: 1.3;
}
.cp-pack--popular .cp-pack__for { background: rgba(39, 71, 245, 0.1); color: #2747f5; }
.cp-pack__list {
  display: grid;
  gap: 0.93em;
  width: 100%;
  margin-top: calc(28 * var(--u));
  padding: calc(25 * var(--u)) calc(4 * var(--u)) 0 calc(6 * var(--u));
  border-top: 1px solid rgba(20, 22, 28, 0.08);
  font-size: max(12px, calc(15 * var(--u)));
  text-align: left;
}
.cp-pack__list li {
  position: relative;
  min-height: 1.47em;
  padding: 0.07em 0 0 2.13em;
  color: rgba(20, 22, 28, 0.82);
  font-weight: 500;
  line-height: 1.35;
}
.cp-pack__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.47em;
  height: 1.47em;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 3 4.5 8.5 2 6' stroke='%2316C784' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% / 55% no-repeat,
    rgba(22, 199, 132, 0.14);
}
.cp-pack__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: max(40px, calc(56 * var(--u)));
  margin-top: auto;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  background: #14161c;
  color: #fff;
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.cp-pack__buy:hover { transform: translateY(-1px); filter: brightness(1.15); }
.cp-pack--first .cp-pack__buy { background: #2747f5; }
.cp-pack--popular .cp-pack__buy {
  background: linear-gradient(90deg, #ffd666, #ffa21f);
  box-shadow: 0 6px 10px rgba(255, 162, 31, 0.4);
  color: #1a1306;
}
.cp-pack--popular .cp-pack__buy:hover { filter: brightness(1.05); }
.cp-pack__secure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.5em;
  margin-top: calc(14 * var(--u));
  color: rgba(20, 22, 28, 0.45);
  font-size: max(10px, calc(12 * var(--u)));
  font-weight: 500;
  line-height: 1.35;
}
.cp-pack__secure img { width: 1em; height: 1em; }
.cp-pack__secure a { color: inherit; text-decoration: none; }
.cp-pack__secure a:hover { text-decoration: underline; }

/* phones: one compact card per pack, no pictures, the essentials only */
@media (max-width: 1023px) {
  .cp-packs {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: min(520px, 100% - 32px);
    margin-top: -96px;
  }
  .cp-pack { border-radius: 22px; }
  .cp-pack--popular { margin: 10px 0 0; }
  .cp-pack__badge { top: -17px; height: 32px; font-size: 12px; width: auto; padding: 0 14px; }
  .cp-pack__in,
  .cp-pack--popular .cp-pack__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name    price"
      "credits price"
      "for     once"
      "list    list"
      "buy     buy"
      "secure  secure";
    align-items: center;
    column-gap: 12px;
    min-height: 0;
    padding: 18px 18px 14px;
    text-align: left;
  }
  .cp-pack--popular .cp-pack__in { padding-top: 22px; }
  .cp-pack__visual, .cp-pack__unit, .cp-pack__common { display: none; }
  .cp-pack__name { grid-area: name; margin: 0; font-size: 12px; }
  .cp-pack__credits,
  .cp-pack--popular .cp-pack__credits { grid-area: credits; margin: 2px 0 0; font-size: 30px; line-height: 1.15; }
  .cp-pack__credits::after { content: " credits"; color: rgba(20, 22, 28, 0.55); font-size: 14px; font-weight: 600; letter-spacing: 0; }
  .cp-pack__price,
  .cp-pack--popular .cp-pack__price { grid-area: price; align-self: end; justify-self: end; margin: 0; font-size: 40px; line-height: 1.05; }
  .cp-pack__once { grid-area: once; justify-self: end; margin: 0; font-size: 12px; }
  .cp-pack__for { grid-area: for; justify-self: start; margin-top: 8px; padding: 4px 10px; font-size: 12px; }
  .cp-pack__list {
    grid-area: list;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 14px;
    padding: 12px 0 0;
    font-size: 13px;
  }
  .cp-pack__list li { padding-left: 1.75em; }
  .cp-pack__list li::before { width: 1.3em; height: 1.3em; top: 0.05em; }
  .cp-pack__buy { grid-area: buy; min-height: 48px; margin-top: 14px; font-size: 15px; }
  .cp-pack__secure { grid-area: secure; margin-top: 8px; font-size: 11px; }
}


/* ============ NOTE, ELITE NUDGE, POLICY ============ */
.cp-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 16px 70px;
}
.cp-note {
  max-width: 1100px;
  color: rgba(20, 22, 28, 0.6);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}
.cp-note b { color: #14161c; font-weight: 700; }
.cp-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 900px);
  min-height: 58px;
  margin-top: 36px;
  padding: 10px 24px;
  border-radius: 29px;
  background: rgba(39, 71, 245, 0.08);
  color: rgba(20, 22, 28, 0.85);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.cp-nudge img { flex: none; width: 18px; height: 18px; }

.cp-policy {
  width: min(100%, 1200px);
  margin-top: 70px;
  padding: 55px 97px 65px 63px;
  border: 1px solid rgba(20, 22, 28, 0.07);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 15px rgba(11, 20, 64, 0.05);
  scroll-margin-top: 24px;
}
.cp-policy__title { font-size: 40px; font-weight: 700; line-height: 1.27; }
.cp-policy__sub { margin-top: 5px; color: rgba(20, 22, 28, 0.55); font-size: 18px; line-height: 1.27; }
.cp-policy__list { display: grid; gap: 18px; margin-top: 35px; }
.cp-policy__list li {
  position: relative;
  padding-left: 32px;
  color: rgba(20, 22, 28, 0.75);
  font-size: 18px;
  line-height: 1.6;
}
.cp-policy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, #5bc8ff, #2747f5);
}
.cp-policy__list b { color: #14161c; font-weight: 700; }


/* ============ TERMS & DISCLOSURES (dark band) ============ */
.cp-terms {
  padding: 48px 16px 60px;
  background: #05060a;
  color: #fff;
  text-align: center;
}
.cp-terms__title { font-size: 22px; font-weight: 700; line-height: 1.27; }
.cp-terms__box {
  width: min(100%, 1440px);
  margin: 24px auto 0;
  padding: 23px 60px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.6;
}


/* ============ PHONES & TABLETS ============ */
@media (max-width: 1023px) {
  .cp-hero__in { padding: 28px 16px 150px; }
  .cp-hero__title { margin-top: 18px; }
  .cp-hero__title-1 { font-size: min(64px, 11cqw); line-height: 1.1; }
  .cp-hero__title-2 { margin-top: 6px; font-size: min(52px, 9.4cqw); line-height: 1.1; }
  .cp-hero__sub { width: min(100%, 520px); margin-top: 14px; font-size: 16px; line-height: 1.45; }
  .cp-thumbs { display: none; }
  .cp-info { padding-top: 48px; }
  .cp-policy { margin-top: 48px; padding: 32px 22px 36px; border-radius: 22px; }
  .cp-policy__title { font-size: 30px; }
  .cp-policy__sub { font-size: 16px; }
  .cp-policy__list { gap: 14px; margin-top: 24px; }
  .cp-policy__list li { padding-left: 24px; font-size: 16px; }
  .cp-policy__list li::before { top: 7px; width: 10px; height: 10px; }
  .cp-terms { padding: 40px 16px 44px; }
  .cp-terms__box { padding: 18px 20px; font-size: 15px; }
  .cp-nudge { border-radius: 22px; padding: 14px 18px; text-align: left; justify-content: flex-start; }
}
/* phones & tablets: a plain sky (no hills or cards behind the copy) */
@media (max-width: 1023px) {
  .cp-hero { background: linear-gradient(180deg, #1612a8 0%, #1533c9 22%, #0b5df0 48%, #3a8cff 68%, #a6cbff 84%, #f3f4f8 100%); }
  .cp-hero__hills, .cp-hero__cloud, .cp-hero__fade { display: none; }
}

/* JVZoo button pixels: loaded, never seen */
.jvz-pixels { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.jvz-pixels a, .jvz-pixels img { display: block; width: 1px; height: 1px; }

/* "See terms" in the muted note under the packs */
.cp-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.cp-note a:hover { color: #14161c; }

/* ============ HOW THE PACKS COMPARE (Higgsfield) ============ */
.cp-compare {
  width: min(100%, 1200px);
  margin-top: 70px;
  padding: 55px 63px 50px;
  border-radius: 28px;
  background: linear-gradient(180deg, #121a4a, #05060a);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(11, 20, 64, 0.18);
}
.cp-compare b { color: #fff; font-weight: 700; }
.cp-compare__title { color: #fff; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.cp-compare__lead { margin-top: 18px; font-size: 19px; line-height: 1.6; }
.cp-compare__list { display: grid; gap: 14px; margin-top: 28px; }
.cp-compare__list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 17px;
  line-height: 1.55;
}
.cp-compare__list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, #5bc8ff, #2747f5);
}
.cp-compare__close {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 214, 102, 0.16), rgba(255, 162, 31, 0.1));
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
}
.cp-compare__close b { color: #ffd666; }
.cp-compare__fine { margin-top: 14px; color: rgba(255, 255, 255, 0.45); font-size: 13px; }
@media (max-width: 1023px) {
  .cp-compare { margin-top: 48px; padding: 32px 20px 30px; border-radius: 22px; }
  .cp-compare__title { font-size: 30px; }
  .cp-compare__lead { font-size: 16px; }
  .cp-compare__list li { padding: 14px 16px 14px 38px; font-size: 15px; }
  .cp-compare__list li::before { left: 16px; top: 21px; width: 10px; height: 10px; }
  .cp-compare__close { font-size: 16px; }
}
