/* Conversion kit: ticker, welcome popup, brand showcase.
   Palette comes from tokens below; the site overrides them via parts/cta-data.php ['theme']. */
:root {
  --ck-brand: var(--color-primary, #0f7a3d);
  --ck-panel: linear-gradient(120deg, #07130d 0%, #0b3a22 70%, #0f7a3d 100%);
  --ck-panel-solid: #07130d;
  --ck-on-panel: #ffffff;
  --ck-on-panel-soft: rgba(255, 255, 255, 0.82);
  --ck-accent: var(--color-accent, #22c55e);
  --ck-cta-bg: var(--cta-bg, linear-gradient(135deg, #34d399, #16a34a));
  --ck-cta-bg-hover: var(--cta-bg-hover, linear-gradient(135deg, #16a34a, #0f7a3d));
  --ck-cta-text: var(--cta-text, #052e16);
  --ck-glow: rgba(34, 197, 94, 0.4);
  --ck-glow-strong: rgba(34, 197, 94, 0.75);
  --ck-on-surface: var(--color-text, #0b0f0d);
  --ck-bonus: #0f7a3d;
  --ck-muted: rgba(13, 31, 21, 0.55);
  --ck-chip: #e4f1e9;
  --ck-chip-text: #0d1f15;
  --ck-note-bg: #f5faf7;
  --ck-ticker-h: 34px;
  --ck-radius: 18px;
}

/* ---------- ticker ---------- */
.ck-ticker { position: relative; z-index: 301; height: var(--ck-ticker-h); overflow: hidden; background: var(--ck-panel-solid); color: var(--ck-on-panel); font-size: 13px; line-height: var(--ck-ticker-h); white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ck-ticker__track { display: inline-flex; width: max-content; animation: ck-run 55s linear infinite; }
.ck-ticker:hover .ck-ticker__track { animation-play-state: paused; }
.ck-ticker__group { display: inline-flex; flex-shrink: 0; }
.ck-ticker__item { display: inline-flex; align-items: center; gap: 6px; padding: 0 26px 0 0; color: var(--ck-on-panel); text-decoration: none; }
.ck-ticker__item::before { content: ""; width: 7px; height: 7px; margin-right: 12px; background: var(--ck-accent); transform: rotate(45deg); flex: 0 0 auto; }
.ck-ticker__item b { color: var(--ck-accent); font-weight: 800; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.04em; }
.ck-ticker__item:hover { text-decoration: underline; }
@keyframes ck-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .ck-ticker { font-size: 12px; }
  .ck-ticker__item b { font-size: 10.5px; }
}

/* ---------- popup ---------- */
.ck-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 20, 15, 0); backdrop-filter: blur(0); transition: background 0.35s ease, backdrop-filter 0.35s ease; }
.ck-popup[hidden] { display: none; }
.ck-popup.is-open { background: rgba(7, 20, 15, 0.72); backdrop-filter: blur(4px); }
.ck-popup__card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 28px 24px; text-align: center; color: var(--ck-on-panel); border-radius: 22px; background: radial-gradient(420px 220px at 50% -10%, color-mix(in srgb, var(--ck-accent) 28%, transparent), transparent 70%), var(--ck-panel); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateY(26px) scale(0.86); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.ck-popup.is-open .ck-popup__card { opacity: 1; transform: none; }
.ck-popup__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background 0.2s; }
.ck-popup__close:hover { background: rgba(255, 255, 255, 0.28); }
.ck-popup__badge { width: 112px; height: 112px; margin: -6px auto 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--ck-cta-bg); color: var(--ck-cta-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ck-accent) 22%, transparent), 0 10px 30px var(--ck-glow); animation: ck-float 3s ease-in-out infinite; }
.ck-popup__badge span { font-size: 34px; font-weight: 900; line-height: 1; }
.ck-popup__badge small { margin-top: 4px; font-size: 14px; font-weight: 800; }
.ck-popup__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ck-accent); }
.ck-popup__title { margin: 0 0 10px; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ck-on-panel); }
.ck-popup__text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ck-on-panel-soft); }
.ck-popup__facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ck-popup__facts li { padding: 6px 10px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.ck-popup__facts strong { color: var(--ck-accent); }
.ck-popup__cta { display: block; padding: 15px 20px; border-radius: 999px; background: var(--ck-cta-bg); color: var(--ck-cta-text); font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px var(--ck-glow); animation: ck-pulse 2.2s ease-in-out infinite; transition: transform 0.2s ease; }
.ck-popup__cta:hover { transform: translateY(-2px); background: var(--ck-cta-bg-hover); }
.ck-popup__note { margin: 12px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }
html.ck-lock { overflow: hidden; }
@keyframes ck-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes ck-pulse { 0%, 100% { box-shadow: 0 6px 18px var(--ck-glow); } 50% { box-shadow: 0 6px 26px var(--ck-glow-strong); } }
@media (max-width: 480px) {
  .ck-popup { padding: 12px; }
  .ck-popup__card { padding: 30px 18px 20px; }
  .ck-popup__title { font-size: 21px; }
  .ck-popup__badge { width: 96px; height: 96px; }
  .ck-popup__badge span { font-size: 29px; }
}

/* ---------- brand showcase (after hero) ---------- */
.ck-sc { margin: 18px 0 8px; }
.ck-sc__wrap { margin: 0 20px; }
.ck-sc__box { border-radius: var(--ck-radius); background: var(--ck-panel); padding: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.ck-sc__head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--ck-on-panel); }
.ck-sc__head svg { width: 26px; height: 26px; color: var(--ck-accent); flex: 0 0 auto; }
.ck-sc__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--ck-on-panel); }
.ck-sc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ck-cols, 5), minmax(0, 1fr)); gap: 12px; }
.ck-sc__card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; color: var(--ck-on-surface); text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ck-sc__card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); }
.ck-sc__rank { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--ck-chip); color: var(--ck-chip-text); }
.ck-sc__rank--1 { background: var(--ck-cta-bg); color: var(--ck-cta-text); }
.ck-sc__logo { display: grid; place-items: center; height: 64px; padding: 6px 10px; border-radius: 10px; background: var(--ck-note-bg); }
.ck-sc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ck-sc__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: center; }
.ck-sc__bonus { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ck-bonus); overflow-wrap: anywhere; }
.ck-sc__note { font-size: 11.5px; line-height: 1.3; color: var(--ck-muted); }
.ck-sc__btn { display: block; padding: 11px 10px; border-radius: 999px; text-align: center; background: var(--ck-cta-bg); color: var(--ck-cta-text); font-size: 13.5px; font-weight: 800; box-shadow: 0 4px 14px var(--ck-glow); animation: ck-pulse 2.4s ease-in-out infinite; }
.ck-sc__card:hover .ck-sc__btn { background: var(--ck-cta-bg-hover); }
.ck-sc__legal { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--ck-on-panel-soft); }
@media (max-width: 1100px) {
  .ck-sc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ck-sc__wrap { margin: 0 16px; }
  .ck-sc__list { grid-template-columns: 1fr; gap: 10px; }
  .ck-sc__card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px 10px 38px; }
  .ck-sc__rank { top: 50%; left: 10px; transform: translateY(-50%); }
  .ck-sc__logo { height: 48px; padding: 4px 8px; }
  .ck-sc__info { text-align: left; }
  .ck-sc__btn { padding: 10px 16px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .ck-sc { margin: 12px 0 6px; }
  .ck-sc__wrap { margin: 0 12px; }
  .ck-sc__box { padding: 12px; border-radius: 14px; }
  .ck-sc__title { font-size: 16px; }
  .ck-sc__card { grid-template-columns: 76px minmax(0, 1fr); row-gap: 10px; padding: 10px 10px 10px 36px; }
  .ck-sc__logo { height: 42px; }
  .ck-sc__bonus { font-size: 13px; }
  .ck-sc__btn { grid-column: 1 / -1; padding: 13px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-popup, .ck-popup__card { transition: none; }
  .ck-popup__badge, .ck-popup__cta, .ck-sc__btn { animation: none; }
  .ck-ticker { overflow-x: auto; }
  .ck-ticker__track { animation: none; }
}

/* site wiring */
@media (min-width: 901px) { .side-panel { top: calc(var(--header-height) + var(--ck-tk, 34px)); } }
