/* =====================================================
   ===== STRYV4 HOMEPAGE CARD · COLOURISER LAUNCH     =====
   ===== v1 · Tag: STR                                =====
   ===== file: card-colouriser-launch_STR.css         =====
   =====================================================
   Extracted verbatim from batch-01.css for the Postcard
   CPT. Every selector is scoped under .card-colouriser-launch.
   The matching block has been removed from batch-01.css so
   this never loads twice. */


/* CodeNumber 4.1 - Font face for "ColouRiser" wordmark */
@font-face {
  font-family: 'Artsy';
  src: url('/wp-content/themes/twentytwentyfive-child/fonts/Artsy.ttf') format('truetype');
  font-display: swap;
}

/* CodeNumber 4.2 - Custom property for the spinning border angle.
   Defined here so it's locally scoped to this card's pseudo elements. */
@property --cr-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* CodeNumber 4.3 - Card frame override.
   Black to match the ColouRiser app's --bg-deep. The double-class beats
   the core-canvas defaults per the homepage-cards spec. */
.hp-postcard-canvas.card-colouriser-launch {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e8ee;
  overflow: hidden;
}
.card-colouriser-launch .hp-postcard-content {
  position: relative;
  padding: 36px 48px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* CodeNumber 4.4 - Top layout: demo zone (left) + pitch zone (right) */
.card-colouriser-launch .cr-layout {
  flex: 1;
  display: flex;
  gap: 56px;
  align-items: center;
  min-height: 0;
}
.card-colouriser-launch .cr-demo-zone {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.card-colouriser-launch .cr-pitch-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* CodeNumber 4.5 - Demo zone: label, big gradient word, chips, hint */
.card-colouriser-launch .cr-demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6a6a78;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}
.card-colouriser-launch .cr-demo-stage {
  display: flex;
  align-items: center;
  min-height: 140px;
}
.card-colouriser-launch .cr-demo-word {
  font-family: 'Impact', 'Arial Black', 'Segoe UI', sans-serif;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(180deg, rgb(255,240,100), rgb(255,140,20), rgb(220,40,0));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  transition: opacity 240ms ease;
  filter: drop-shadow(0 0 10px rgba(255, 150, 40, 0.35));
}
.card-colouriser-launch .cr-demo-word[data-preset="phoenix"] {
  background-image: linear-gradient(180deg, rgb(255,240,100), rgb(255,140,20), rgb(220,40,0));
  filter: drop-shadow(0 0 10px rgba(255, 150, 40, 0.40));
}
.card-colouriser-launch .cr-demo-word[data-preset="royal"] {
  background-image: linear-gradient(180deg, rgb(200,160,240), rgb(100,40,180), rgb(40,10,80));
  filter: drop-shadow(0 0 10px rgba(140, 70, 220, 0.40));
}
.card-colouriser-launch .cr-demo-word[data-preset="matrix"] {
  background-image: linear-gradient(180deg, rgb(160,255,160), rgb(80,255,80), rgb(30,160,30));
  filter: drop-shadow(0 0 10px rgba(60, 220, 60, 0.45));
}
.card-colouriser-launch .cr-demo-word[data-preset="rainbow"] {
  background-image: linear-gradient(90deg,
    rgb(255,0,0), rgb(255,160,0), rgb(255,255,0),
    rgb(0,200,0), rgb(0,120,255), rgb(140,0,200));
  filter: drop-shadow(0 0 8px rgba(255, 100, 200, 0.30));
}

/* CodeNumber 4.6 - Chip row (gradient swatch buttons) */
.card-colouriser-launch .cr-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card-colouriser-launch .cr-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: var(--chip-grad, #444);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  transition: transform 160ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.card-colouriser-launch .cr-chip[data-preset="phoenix"] { --chip-grad: linear-gradient(180deg, rgb(255,240,100), rgb(255,140,20), rgb(220,40,0)); }
.card-colouriser-launch .cr-chip[data-preset="royal"]   { --chip-grad: linear-gradient(180deg, rgb(200,160,240), rgb(100,40,180), rgb(40,10,80)); }
.card-colouriser-launch .cr-chip[data-preset="matrix"]  { --chip-grad: linear-gradient(180deg, rgb(160,255,160), rgb(80,255,80), rgb(30,160,30)); }
.card-colouriser-launch .cr-chip[data-preset="rainbow"] { --chip-grad: linear-gradient(90deg, rgb(255,0,0), rgb(255,160,0), rgb(255,255,0), rgb(0,200,0), rgb(0,120,255), rgb(140,0,200)); }
.card-colouriser-launch .cr-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
}
.card-colouriser-launch .cr-chip.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 6px 24px rgba(255, 255, 255, 0.10);
}
.card-colouriser-launch .cr-demo-hint {
  font-size: 12px;
  color: #6a6a78;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* CodeNumber 4.7 - Logo wrapper with animated conic-gradient border.
   Adapted from coding2go's @property --angle technique. The two pseudos:
   ::before is blurred (halo), ::after is sharp (the actual ring).
   Both extend 3px beyond the wrapper via the padding+translate trick. */
.card-colouriser-launch .cr-logo-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 14px;
  display: inline-block;
}
.card-colouriser-launch .cr-logo-wrap::before,
.card-colouriser-launch .cr-logo-wrap::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: conic-gradient(
    from var(--cr-angle),
    #ff4545,
    #00ff99,
    #006aff,
    #ff0095,
    #ff4545
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 14px;
  animation: cr-spin 3s linear infinite;
}
.card-colouriser-launch .cr-logo-wrap::before {
  filter: blur(1.4rem);
  opacity: 0.55;
}
.card-colouriser-launch .cr-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  position: relative;
  z-index: 1;
}
@keyframes cr-spin {
  from { --cr-angle: 0deg; }
  to   { --cr-angle: 360deg; }
}

/* CodeNumber 4.8 - Wordmark "ColouRiser by Stryv4".
   Artsy font on "ColouRiser", animated brand gradient using the swirly-bg
   palette. " by Stryv4" stays in a quiet sans for contrast. */
.card-colouriser-launch .cr-wordmark {
  margin: 14px 0 4px;
  font-weight: 700;
  line-height: 1.1;
}
.card-colouriser-launch .cr-brand {
  font-family: 'Artsy', 'Segoe UI', sans-serif;
  font-size: 32px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg,
    rgb(108, 0, 162) 0%,
    rgb(221, 74, 255) 25%,
    rgb(100, 220, 255) 50%,
    rgb(18, 113, 255) 75%,
    rgb(108, 0, 162) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: cr-brand-pan 12s linear infinite;
}
.card-colouriser-launch .cr-by {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #9a9aa8;
  letter-spacing: 0.2px;
}
@keyframes cr-brand-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* CodeNumber 4.9 - Pitch body */
.card-colouriser-launch .cr-pitch-head,
.card-colouriser-launch .cr-features,
.card-colouriser-launch .cr-free {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.45;
}
.card-colouriser-launch .cr-pitch-head {
  font-size: 15px;
  font-weight: 600;
  color: #e8e8ee;
  margin-top: 2px;
}
.card-colouriser-launch .cr-features {
  font-size: 13px;
  color: #9a9aa8;
  max-width: 460px;
}
.card-colouriser-launch .cr-free {
  font-size: 12px;
  color: #6a6a78;
  letter-spacing: 0.3px;
}

/* CodeNumber 4.10 - CTA button */
.card-colouriser-launch .cr-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg,
    rgb(108, 0, 162),
    rgb(221, 74, 255),
    rgb(18, 113, 255));
  background-size: 200% 200%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.4px;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 6px 24px rgba(140, 100, 255, 0.30);
  transition: transform 180ms ease, box-shadow 200ms ease, background-position 600ms ease;
}
.card-colouriser-launch .cr-cta:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 10px 32px rgba(140, 100, 255, 0.45);
}
.card-colouriser-launch .cr-cta-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.card-colouriser-launch .cr-cta:hover .cr-cta-arrow {
  transform: translateX(3px);
}

/* CodeNumber 4.11 - Bottom slogan strip */
.card-colouriser-launch .cr-slogan {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-family: 'Artsy', 'Segoe UI', sans-serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.4px;
  color: #9a9aa8;
}
.card-colouriser-launch .cr-slogan-accent {
  background: linear-gradient(90deg,
    rgb(221, 74, 255),
    rgb(100, 220, 255),
    rgb(255, 200, 80));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  font-weight: 700;
}

/* CodeNumber 4.12 - Reduced motion: kill all the loops, keep the design */
@media (prefers-reduced-motion: reduce) {
  .card-colouriser-launch .cr-logo-wrap::before,
  .card-colouriser-launch .cr-logo-wrap::after,
  .card-colouriser-launch .cr-brand,
  .card-colouriser-launch .cr-cta,
  .card-colouriser-launch .cr-info-overlay,
  .card-colouriser-launch .cr-info-modal {
    animation: none !important;
    transition: none !important;
  }
}


/* CodeNumber 4.13 - Info button (bottom-left corner of card).
   Tertiary control - subtle by default, brighter on hover. */
.card-colouriser-launch .cr-info-btn {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #9a9aa8;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.card-colouriser-launch .cr-info-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #e8e8ee;
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.08);
}
.card-colouriser-launch .cr-info-btn:focus-visible {
  outline: 2px solid rgba(100, 220, 255, 0.7);
  outline-offset: 2px;
}

/* CodeNumber 4.14 - Info overlay (modal).
   Adapted from the WTA card's credits-button pattern: .active toggles
   visibility; backdrop click and × button both close it; Esc key too
   (handled in JS). */
.card-colouriser-launch .cr-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  z-index: 10;
}
.card-colouriser-launch .cr-info-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}
.card-colouriser-launch .cr-info-modal {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 28px 36px 24px;
  color: #e8e8ee;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.50);
  transform: translateY(8px);
  transition: transform 240ms ease;
}
.card-colouriser-launch .cr-info-overlay.active .cr-info-modal {
  transform: translateY(0);
}
.card-colouriser-launch .cr-info-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9a9aa8;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  transition: background 160ms ease, color 160ms ease;
}
.card-colouriser-launch .cr-info-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.card-colouriser-launch .cr-info-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}
.card-colouriser-launch .cr-info-body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #b6b6c0;
}
.card-colouriser-launch .cr-info-body p {
  margin: 0 0 10px;
}
.card-colouriser-launch .cr-info-meta {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.card-colouriser-launch .cr-info-meta-row {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  font-size: 12px;
}
.card-colouriser-launch .cr-info-meta-label {
  flex: 0 0 90px;
  color: #6a6a78;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 10.5px;
  padding-top: 2px;
}
.card-colouriser-launch .cr-info-meta-value {
  flex: 1;
  color: #d0d0d8;
}
.card-colouriser-launch .cr-info-meta-value a {
  color: rgb(100, 220, 255);
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 220, 255, 0.30);
  transition: border-color 160ms ease;
}
.card-colouriser-launch .cr-info-meta-value a:hover {
  border-bottom-color: rgba(100, 220, 255, 1);
}
.card-colouriser-launch .cr-info-tagline {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Artsy', 'Segoe UI', sans-serif;
  font-style: italic;
  font-size: 16px;
  text-align: center;
  color: #9a9aa8;
}
