/* =====================================================================
   Kopou v2 — Home 05 "Pricing & Measurement". Locked 29 Oct 2026 · v2 (centred graphics, CPL float, smaller logos, colour on hover).
   Upload to /wp-content/uploads/kopou-pricing/ as kopou-pricing-v2.css
   A Conicorn-style carousel of the four pricing models (CPI, CPA, CPL, CPC):
   one Mist card with a live glass graphic on the left and the copy on the
   right, round arrows either side, dashes below; then a small caption and
   the MMP logos (grey, colour on click/tap).
   Every rule is scoped under .kp-pricing. Load after kopou-batch-1-v3.css
   (which styles the eyebrow pill and the H2).
   ===================================================================== */

body .kp-pricing {
  --kp-carbon: #0F1417;
  --kp-ink: #2A2F38;
  --kp-grey: #6B7080;
  --kp-mist: #F4F3F8;
  --kp-mint: #53E6D4;
  --kp-purple: #6045F4;
  --kp-deep: #3218C4;
  --kp-ease: cubic-bezier(.2, .7, .2, 1);
  --kp-soft: cubic-bezier(.45, 0, .55, 1);
  --kp-fade: 220px;          /* Mist -> white blend at the top (mirror of 04) */
  --kp-card-w: 920px;
  --kp-card-h: 440px;
  --kp-tile: 420px;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 140px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: hidden;
  background: linear-gradient(180deg, var(--kp-mist) 0px, #FFFFFF var(--kp-fade)) !important;
  color: var(--kp-carbon);
  font-family: 'Quicksand', system-ui, sans-serif;
}

/* Header: pill + H2 come from the shared .kp-sec-head styles (Batch 1). */
body .kp-pricing .kp-sec-head { padding: 0 !important; min-height: 0; }
body .kp-pricing .kp-sec-head .kp-h2 span,
body .kp-pricing .kp-sec-head h2 span { color: var(--kp-purple); }

/* ---------------------------------------------------------------------
   Carousel container. Without JS (and in the Elementor editor) the four
   cards simply sit in a 2 x 2 grid of Mist cards so nothing is hidden.
   --------------------------------------------------------------------- */
body .kp-pricing .kp-pricing__carousel {
  box-sizing: border-box;
  width: 100%;
  max-width: 1012px;
  margin: 64px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: none !important;
}
body .kp-pricing .kp-pricing__card {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 32px !important;
  border-radius: 40px;
  background: var(--kp-mist) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  min-height: 0;
  color: var(--kp-carbon);
}
body .kp-pricing .kp-pricing__code {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--kp-purple);
  color: #FFFFFF;
  font-family: 'Switzer', 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
}
body .kp-pricing .kp-pricing__name {
  margin: 0;
  font-family: 'Switzer', 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--kp-carbon);
}
body .kp-pricing .kp-pricing__title {
  margin: 26px 0 0;
  font-family: 'Switzer', 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--kp-carbon);
  text-wrap: pretty;
}
body .kp-pricing .kp-pricing__fit-label {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--kp-deep);
}
body .kp-pricing .kp-pricing__fit {
  margin: 8px 0 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--kp-ink);
}
/* fallback layout (no JS / editor): name under the chip, fit block below */
body .kp-pricing .kp-pricing__name { margin-top: 10px; }
body .kp-pricing .kp-pricing__fit-label { margin-top: 24px; }

/* ---------------------------------------------------------------------
   JS-built carousel (.is-ready)
   --------------------------------------------------------------------- */
body .kp-pricing.is-ready .kp-pricing__carousel {
  display: block !important;
  max-width: none;
  width: auto;
}
.kp-pricing .kp-pr__stage { position: relative; width: var(--kp-card-w); margin: 0 auto; }
.kp-pricing .kp-pr__frame {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--kp-tile) minmax(0, 1fr);
  min-height: var(--kp-card-h);
  padding: 10px;
  border-radius: 64px;
  background: var(--kp-mist);
  touch-action: pan-y;
}
.kp-pricing .kp-pr__media {
  position: relative;
  min-height: calc(var(--kp-card-h) - 20px);
  border-radius: 54px;
  overflow: hidden;
  background: #F5F3F9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  isolation: isolate;
}
.kp-pricing .kp-pr__art {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s var(--kp-ease);
}
.kp-pricing .kp-pr__art.is-active { opacity: 1; }
.kp-pricing .kp-pr__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Copy: the four Elementor cards share one grid cell (so the area is as tall
   as the longest card); only the active one shows */
.kp-pricing .kp-pr__copy { display: grid; margin: 40px 46px 38px 48px; }
body .kp-pricing.is-ready .kp-pricing__card {
  grid-area: 1 / 1;
  min-width: 0;
  padding: 0 !important;
  border-radius: 0;
  background: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px);
  transition: opacity .45s var(--kp-ease), transform .55s var(--kp-ease), visibility 0s linear .55s;
}
body .kp-pricing.is-ready .kp-pr__copy[data-dir="-1"] .kp-pricing__card:not(.is-active) { transform: translateX(16px); }
body .kp-pricing.is-ready .kp-pricing__card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--kp-ease) .08s, transform .55s var(--kp-ease) .08s, visibility 0s;
}
.kp-pricing .kp-pr__mark { display: flex; align-items: center; gap: 12px; }
body .kp-pricing.is-ready .kp-pricing__name { margin-top: 0; }
.kp-pricing .kp-pr__fit {
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #E2E1E8;
}
body .kp-pricing.is-ready .kp-pr__fit .kp-pricing__fit-label { margin-top: 0; }
.kp-pricing .kp-pr__spacer { flex: 1 0 28px; }

/* Arrows: outside the card on desktop, beside the dashes on phone */
.kp-pricing .kp-pr__nav { display: flex; justify-content: center; margin-top: 14px; }
.kp-pricing .kp-pr__arrow {
  position: absolute;
  top: calc(var(--kp-card-h) / 2 - 24px);
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--kp-carbon);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s var(--kp-ease), transform .25s var(--kp-ease);
  -webkit-tap-highlight-color: transparent;
}
.kp-pricing .kp-pr__arrow svg { width: 18px; height: 18px; }
.kp-pricing .kp-pr__arrow--prev { left: -92px; }
.kp-pricing .kp-pr__arrow--next { right: -92px; }
@media (hover: hover) {
  .kp-pricing .kp-pr__arrow:hover { background: var(--kp-purple); transform: scale(1.06); }
}
.kp-pricing .kp-pr__arrow:active { transform: scale(.94); }
.kp-pricing .kp-pr__arrow:focus-visible,
.kp-pricing .kp-pr__dot:focus-visible { outline: 2px solid var(--kp-purple); outline-offset: 4px; }

.kp-pricing .kp-pr__dots { display: flex; }
.kp-pricing .kp-pr__dot {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.kp-pricing .kp-pr__dot span {
  display: block;
  width: 8px;
  height: 4px;
  border-radius: 999px;
  background: #D5D3DE;
  transition: width .4s var(--kp-ease), background-color .4s var(--kp-ease);
}
.kp-pricing .kp-pr__dot[aria-current="true"] span { width: 28px; background: var(--kp-purple); }

/* ---------------------------------------------------------------------
   Caption + MMP logos
   --------------------------------------------------------------------- */
body .kp-pricing .kp-pricing__caption {
  margin: 64px 0 0 !important;
  max-width: 560px;
  padding: 0 !important;
  text-align: center;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--kp-grey);
}
body .kp-pricing .kp-pricing__logos {
  box-sizing: border-box;
  margin: 36px 0 0 !important;
  padding: 0 !important;
  min-height: 44px;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  background: none !important;
}
.kp-pricing .kp-pr__slot { width: 172px; display: flex; justify-content: center; }
.kp-pricing .kp-pr__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kp-pricing .kp-pr__logo img {
  display: block;
  height: var(--hd);
  width: calc(var(--hd) * var(--asp));
  max-width: none;
  transition: opacity .3s var(--kp-ease);
}
.kp-pricing .kp-pr__logo .kp-pr__c { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.kp-pricing .kp-pr__logo[aria-pressed="true"] .kp-pr__g { opacity: 0; }
@media (hover: hover) {
  .kp-pricing .kp-pr__logo:hover .kp-pr__g { opacity: 0; }
  .kp-pricing .kp-pr__logo:hover .kp-pr__c { opacity: 1; }
}
.kp-pricing .kp-pr__logo[aria-pressed="true"] .kp-pr__c { opacity: 1; }
.kp-pricing .kp-pr__logo:focus-visible { outline: 2px solid var(--kp-purple); outline-offset: 6px; border-radius: 8px; }

/* ---------------------------------------------------------------------
   Graphic motion (only the active card's graphic moves, only while the
   section is on screen). One soft easing, slow loops.
   --------------------------------------------------------------------- */
@keyframes kpPrFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2%); } }
@keyframes kpPrFloatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4%); } }
@keyframes kpPrPress { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.9%); } }
@keyframes kpPrRipple { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: .5; } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes kpPrGlow { 0%, 100% { opacity: .25; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }
.kp-pricing .kp-pr-float { animation: kpPrFloat 6s var(--kp-soft) infinite; will-change: transform; }
.kp-pricing .kp-pr-float-soft { animation: kpPrFloatSoft 7.5s var(--kp-soft) infinite; will-change: transform; }
.kp-pricing .kp-pr-press { animation: kpPrPress 6s var(--kp-soft) infinite; will-change: transform; }
.kp-pricing .kp-pr-ripple { transform-box: fill-box; transform-origin: 50% 50%; animation: kpPrRipple 6s var(--kp-soft) infinite; }
.kp-pricing .kp-pr-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: kpPrGlow 4s var(--kp-soft) infinite; }
.kp-pricing .kp-pr__art:not(.is-on) *,
.kp-pricing:not(.is-live) .kp-pr__art * { animation-play-state: paused !important; }
/* CPA: the arc draws out from the bead each time the card opens */
.kp-pricing .kp-pr-arc {
  stroke-dashoffset: 418;
  opacity: 0;
  transition: stroke-dashoffset 3.2s cubic-bezier(.45, 0, .2, 1) .35s, opacity 1.2s var(--kp-soft) .35s;
}
.kp-pricing .kp-pr__art.is-on .kp-pr-arc { stroke-dashoffset: 0; opacity: 1; }

/* Reveal: rises in when the section enters (JS only, never in the editor) */
html.kp-js body .kp-pricing.is-ready > * { transition: opacity .9s var(--kp-ease), transform .9s var(--kp-ease); }
html.kp-js body .kp-pricing.is-ready:not(.is-in) > * { opacity: 0; transform: translateY(18px); }
html.kp-js body .kp-pricing.is-ready > *:nth-child(2) { transition-delay: .1s; }
html.kp-js body .kp-pricing.is-ready > *:nth-child(3) { transition-delay: .2s; }
html.kp-js body .kp-pricing.is-ready > *:nth-child(4) { transition-delay: .3s; }

/* ---------------------------------------------------------------------
   Tablet: arrows move below the card (no room at the sides)
   --------------------------------------------------------------------- */
@media (max-width: 1139px) {
  body .kp-pricing { --kp-card-w: min(920px, 100%); }
  .kp-pricing .kp-pr__stage { width: var(--kp-card-w); }
  .kp-pricing .kp-pr__nav { align-items: center; gap: 14px; margin-top: 16px; }
  .kp-pricing .kp-pr__arrow { position: static; flex: none; }
  .kp-pricing .kp-pr__arrow--prev { order: 0; }
  .kp-pricing .kp-pr__dots { order: 1; }
  .kp-pricing .kp-pr__arrow--next { order: 2; }
}
@media (max-width: 1023px) {
  body .kp-pricing { --kp-tile: 340px; --kp-card-h: 400px; }
  body .kp-pricing .kp-pricing__title { font-size: 28px; }
  .kp-pricing .kp-pr__copy { margin: 32px 32px 30px 36px; }
}

/* ---------------------------------------------------------------------
   Phone: stacked card (graphic on top), arrows + dashes below
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  body .kp-pricing {
    --kp-fade: 120px;
    padding: 88px 16px !important;
  }
  body .kp-pricing .kp-pricing__carousel { margin-top: 40px !important; grid-template-columns: minmax(0, 1fr); }
  body .kp-pricing .kp-pricing__card { padding: 24px !important; border-radius: 32px; }
  .kp-pricing .kp-pr__stage { width: 100%; max-width: 358px; }
  .kp-pricing .kp-pr__frame {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 8px;
    border-radius: 44px;
  }
  .kp-pricing .kp-pr__media { min-height: 250px; height: 250px; border-radius: 36px; }
  .kp-pricing .kp-pr__copy { margin: 24px 18px 22px; }
  .kp-pricing .kp-pr__mark { gap: 10px; }
  body .kp-pricing .kp-pricing__code { height: 28px; padding: 0 12px; font-size: 13px; }
  body .kp-pricing .kp-pricing__name { font-size: 16px; }
  body .kp-pricing .kp-pricing__title { margin-top: 16px; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
  .kp-pricing .kp-pr__fit { padding-top: 16px; }
  body .kp-pricing .kp-pricing__fit { margin-top: 6px; font-size: 16px; }
  .kp-pricing .kp-pr__arrow { width: 44px; height: 44px; }
  .kp-pricing .kp-pr__arrow svg { width: 16px; height: 16px; }
  .kp-pricing .kp-pr__dot { width: 32px; }
  .kp-pricing .kp-pr__dot[aria-current="true"] span { width: 24px; }
  body .kp-pricing .kp-pricing__caption { margin-top: 44px !important; max-width: 290px; font-size: 14px; }
  body .kp-pricing .kp-pricing__logos { margin-top: 28px !important; row-gap: 14px; max-width: 348px; }
  .kp-pricing .kp-pr__slot { width: 110px; }
  .kp-pricing .kp-pr__logo img { height: var(--hm); width: calc(var(--hm) * var(--asp)); }
}

@media (prefers-reduced-motion: reduce) {
  .kp-pricing .kp-pr-float, .kp-pricing .kp-pr-float-soft, .kp-pricing .kp-pr-press,
  .kp-pricing .kp-pr-ripple, .kp-pricing .kp-pr-glow { animation: none !important; }
  .kp-pricing .kp-pr-ripple { opacity: 0; }
  .kp-pricing .kp-pr-arc, .kp-pricing .kp-pr__art, body .kp-pricing.is-ready .kp-pricing__card { transition: none !important; }
  .kp-pricing .kp-pr-arc { stroke-dashoffset: 0; opacity: 1; }
  html.kp-js body .kp-pricing.is-ready:not(.is-in) > * { opacity: 1; transform: none; }
}
