@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito+Sans:wght@500;600;700;800;900&display=swap");

:root {
  --brand-primary: #ff4ccf;
  --brand-secondary: #25d9f5;
  --brand-dark: #21164f;
  --midnight: #0c0a2d;
  --ink: #21164f;
  --paper: #fbfaff;
  --font-display: "omnes-pro", "Omnes", "Fredoka", Arial, sans-serif;
  --font-body: "omnes-pro", "Omnes", "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-weight: 700; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.loadingMessage, .loadError { min-height: 100vh; display: grid; place-items: center; font-weight: 900; }
.skipLink { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 999px; background: white; transform: translateY(-180%); transition: transform .2s ease; }
.skipLink:focus { transform: translateY(0); }

.brandNameNoBreak {
  white-space: nowrap;
}

.brandHeader {
  position: absolute;
  z-index: 20;
  top: 0; left: 50%;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 40px;
  width: min(calc(100% - 72px), 1440px);
  height: 126px;
  color: white;
  transform: translateX(-50%);
}
.logoLink { width: 245px; filter: drop-shadow(0 12px 24px #08051f66); }
.logoLink picture, .logoLink img, .heroPicture { display: block; width: 100%; }
.brandHeader nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 46px); }
.brandHeader nav a, .backButton { font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.brandHeader nav a { padding: 10px 0; }
.backButton { padding: 12px 18px; border: 1px solid #ffffff55; border-radius: 999px; background: #ffffff12; }

.brandHero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
  min-height: 900px;
  padding: 150px max(36px, calc((100vw - 1760px) / 2)) 80px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 76% 44%, color-mix(in srgb, var(--brand-primary) 32%, transparent), transparent 30%),
    radial-gradient(circle at 52% 60%, color-mix(in srgb, var(--brand-secondary) 20%, transparent), transparent 36%),
    linear-gradient(132deg, #090827, var(--brand-dark) 58%, #102760);
}
.brandStars { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle,#fff 0 1px,transparent 2px),radial-gradient(circle,var(--brand-secondary) 0 1px,transparent 2px); background-size: 89px 93px,143px 151px; }
.heroCopy, .heroArtwork { position: relative; z-index: 2; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--brand-secondary); font-size: .76rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.collab { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 700; }
.collab span { padding: 0 8px; color: var(--brand-primary); }
.brandHero h1 { max-width: 570px; margin: 0; font-family: var(--font-display); font-size: clamp(3.7rem, 5.2vw, 5.6rem); line-height: .88; letter-spacing: -.05em; }
.heroIntro { max-width: 560px; margin: 25px 0; color: #ece9ff; font-size: 1.02rem; line-height: 1.58; }
.primaryButton { display: inline-flex; align-items: center; gap: 28px; padding: 15px 18px 15px 22px; border: 2px solid white; border-radius: 999px; color: var(--brand-dark); background: white; box-shadow: 0 0 0 6px color-mix(in srgb,var(--brand-primary) 58%,transparent); font-weight: 900; text-decoration: none; }
.primaryButton span { display: grid; width: 30px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: white; background: var(--brand-primary); }
.heroArtwork { min-width: 0; }
.heroArtwork img { position: relative; z-index: 2; width: 110%; max-width: none; max-height: 740px; margin: auto auto auto -5%; object-fit: contain; filter: drop-shadow(0 35px 45px #07051f77); }
.imageGlow { position: absolute; inset: 20% 8%; border-radius: 50%; background: var(--brand-primary); filter: blur(100px); opacity: .28; }
.temporaryFlag { position: absolute; z-index: 4; right: 5%; bottom: 3%; padding: 9px 12px; border: 1px solid #ffffff55; border-radius: 999px; background: #0d0a2faa; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.pageSection { padding: 110px max(36px, calc((100vw - 1320px) / 2)); }
.sectionIntro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 70px; margin-bottom: 54px; }
.sectionIntro h2, .howHeading h2, .moreRanges h2 { margin: 0; font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .94; letter-spacing: -.04em; }
.sectionIntro > p { margin: 0; color: #655b7c; font-size: 1.75rem; line-height: 1.75; }
.characterSection .sectionIntro { grid-template-columns: minmax(0,1fr) max-content; gap: clamp(28px,3vw,52px); }
.characterSection .sectionIntro > p { font-family: var(--font-display); font-size: clamp(1.55rem,2.15vw,2.15rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.productGrid, .videoGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.productCard { padding: 16px 16px 26px; border: 1px solid #e9e4f2; border-radius: 28px; background: white; box-shadow: 0 22px 55px #25165a12; }
.productImage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 19px;
  color: inherit;
  background: linear-gradient(145deg,var(--brand-primary),var(--brand-secondary));
  font: inherit;
  appearance: none;
}
.productImage:not(:disabled) { cursor: pointer; }
.productImage:focus-visible { outline: 4px solid var(--brand-secondary); outline-offset: 4px; }
.productArtwork { position: absolute; inset: 0; display: block; transition: opacity .35s ease, transform .45s ease; }
.productArtwork img { width: 100%; height: 100%; object-fit: cover; }
.productArtworkDefault { opacity: 1; transform: scale(1); }
.productArtworkHover { opacity: 0; transform: scale(1.035); }
.productImage.isSwapped .productArtworkDefault { opacity: 0; transform: scale(1.035); }
.productImage.isSwapped .productArtworkHover { opacity: 1; transform: scale(1); }
.productNumber { position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; width: 46px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: white; background: #160d46cc; font-weight: 900; }
.productCard > p { margin: 20px 6px 5px; color: var(--brand-primary); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.productBuildLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
}
.productBuildLink span { color: var(--brand-primary); font-size: 1.35rem; transition: transform .2s ease; }
.productBuildLink:hover { color: var(--brand-primary); }
.productBuildLink:hover span { transform: translateY(3px); }
.productBuildLink:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 5px; border-radius: 3px; }

@media (hover: hover) and (pointer: fine) {
  .productCard.hasAlternate:hover .productArtworkDefault { opacity: 0; transform: scale(1.035); }
  .productCard.hasAlternate:hover .productArtworkHover { opacity: 1; transform: scale(1); }
}

.videosSection {
  padding: clamp(105px,7vw,140px) max(36px,calc((100vw - 1500px)/2)) clamp(115px,8vw,150px);
  color: white;
  background: linear-gradient(135deg,#0a092e,var(--brand-dark));
}
.videosSection .sectionIntro { display: block; margin-bottom: clamp(52px,5vw,76px); }
.videosSection .sectionIntro h2 { max-width: 1450px; font-size: clamp(4rem,5.8vw,6.4rem); }
.sectionIntro.light > p { color: #d5cdef; }
.videoGrid { align-items: stretch; gap: clamp(30px,3.4vw,58px); }
.videoCard { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #ffffff22; border-radius: 34px; background: #ffffff0c; box-shadow: 0 28px 70px #05031f55; scroll-margin-top: 24px; }
.videoCard:target { outline: 3px solid var(--brand-secondary); outline-offset: 5px; }
.videoMedia { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #05041b; }
.videoMedia video { width: 100%; height: 100%; object-fit: contain; background: #05041b; }
.videoPlaceholder { display: grid; place-items: center; align-content: center; gap: 12px; isolation: isolate; }
.videoPosterButton { position: absolute; z-index: 2; inset: 0; display: grid; width: 100%; height: 100%; place-items: center; align-content: center; gap: 12px; overflow: hidden; padding: 0; border: 0; color: white; background: #05041b; font: inherit; cursor: pointer; isolation: isolate; }
.videoPosterButton[hidden] { display: none; }
.videoPosterButton:focus-visible { outline: 4px solid var(--brand-secondary); outline-offset: -8px; }
.videoPosterArtwork, .videoPlaceholderArtwork { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.videoPosterArtwork img, .videoPlaceholderArtwork img { width: 100%; height: 100%; object-fit: cover; }
.videoPlaceholderShade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0b092c66,#0b092cdd); }
.videoPlaceholder > span:last-child, .videoPosterLabel { font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.playIcon { display: grid; width: 66px; aspect-ratio: 1; place-items: center; padding-left: 4px; border: 2px solid white; border-radius: 50%; color: var(--brand-dark); background: white; box-shadow: 0 0 0 8px color-mix(in srgb,var(--brand-primary) 42%,transparent); font-size: 1.2rem; }
.videoText { flex: 1; min-height: 176px; padding: 30px 32px 34px; background: color-mix(in srgb,var(--brand-primary) 24%,transparent); }
.videoText span { color: var(--brand-secondary); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.videoText h3 { min-height: 2.2em; margin: 9px 0 12px; font-family: var(--font-display); font-size: clamp(1.65rem,2vw,2rem); line-height: 1.08; }
.videoText p { margin: 0; color: #cfc7e5; }

.howSection { display: block; }
.howHeading { margin-bottom: clamp(44px,5vw,72px); text-align: center; }
.howHeading h2 { max-width: 1280px; margin-inline: auto; font-size: clamp(3.8rem,6.5vw,6.5rem); }
.howLayout { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(520px,1.15fr); gap: clamp(44px,6vw,90px); align-items: start; }
.howMedia { min-width: 0; }
.howMedia .kicker { margin-bottom: 18px; }
.howPicture { display: block; overflow: hidden; border-radius: 28px; background: color-mix(in srgb,var(--brand-primary) 18%,white); box-shadow: 0 24px 60px #25165a18; }
.howPicture img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 22px; min-height: 108px; padding: 24px; border: 1px solid #e8e1f1; border-radius: 24px; background: white; }
.steps > li > span { display: grid; width: 58px; aspect-ratio: 1; place-items: center; border-radius: 18px; color: white; background: var(--brand-primary); font-family: var(--font-display); font-weight: 700; }
body[data-ip="care-bears"] .steps > li > span { background: #de3f8f; }
.steps .stepStatement { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.08rem,1.35vw,1.35rem); font-weight: 800; line-height: 1.3; }

.moreRanges { padding: 105px max(36px, calc((100vw - 1320px) / 2)); text-align: center; color: white; background: linear-gradient(130deg,var(--brand-dark),#141057); }
.moreRanges nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 42px; }
.rangePill { padding: 12px 18px; border: 1px solid #ffffff44; border-radius: 999px; background: #ffffff0c; font-weight: 900; text-decoration: none; }
.rangePill:hover, .rangePill.active { color: var(--brand-dark); background: white; }

@media (max-width: 900px) {
  .brandHeader { grid-template-columns: 180px 1fr; width: calc(100% - 36px); height: 104px; }
  .brandHeader nav { display: none; }
  .logoLink { width: 180px; }
  .backButton { justify-self: end; }
  .brandHero { grid-template-columns: 1fr; min-height: auto; padding: 136px 28px 70px; text-align: center; }
  .heroCopy { display: flex; flex-direction: column; align-items: center; }
  .brandHero h1 { font-size: clamp(3.4rem,11.5vw,5.2rem); }
  .heroArtwork img { width: 100%; max-width: 100%; max-height: 560px; margin-inline: auto; }
  .sectionIntro, .howLayout { grid-template-columns: 1fr; gap: 28px; }
  .characterSection .sectionIntro { grid-template-columns: 1fr; }
  .characterSection .sectionIntro > p { font-size: clamp(.68rem,3.45vw,1.35rem); line-height: 1.3; white-space: nowrap; }
  .productGrid, .videoGrid { grid-template-columns: 1fr; }
  .productImage { aspect-ratio: 16/11; }
  .pageSection { padding: 82px 24px; }
  .videosSection { padding: 86px 24px 100px; }
  .videosSection .sectionIntro { margin-bottom: 38px; }
  .videosSection .sectionIntro h2 { font-size: clamp(3.1rem,11vw,5rem); }
  .videoGrid { width: min(100%,580px); margin-inline: auto; gap: 30px; }
  .howHeading { margin-bottom: 36px; }
  .howMedia { width: min(100%,580px); margin-inline: auto; }
  .howMedia .kicker { text-align: center; }
}
@media (max-width: 520px) {
  .brandHeader { grid-template-columns: 145px 1fr; }
  .logoLink { width: 145px; }
  .backButton { padding: 10px 12px; font-size: .78rem; }
  .brandHero { padding-inline: 20px; }
  .brandHero h1 { font-size: clamp(3rem,14.5vw,4.5rem); }
  .heroIntro { font-size: .95rem; }
  .sectionIntro h2, .howHeading h2, .moreRanges h2 { font-size: clamp(2.8rem,14vw,4rem); }
  .videosSection .sectionIntro h2 { font-size: clamp(3rem,14vw,4.2rem); }
  .videoText { min-height: 0; padding: 24px 24px 28px; }
  .videoText h3 { min-height: 0; }
  .steps li { grid-template-columns: 52px 1fr; gap: 15px; min-height: 90px; padding: 18px; }
  .steps > li > span { width: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
