/* KDigital — component styles */

/* ===== Product card ===== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(0.16,1,0.3,1), border-color .3s, box-shadow .3s;
  min-height: 520px;
}
.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(500px 250px at 100% 0%, rgba(130,78,249,0.14), transparent 70%);
  opacity: 0; transition: opacity .4s;
  z-index: -1;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(130,78,249,0.35); }
.product-card:hover::before { opacity: 1; }
.product-card.featured { border-color: rgba(167,77,206,0.35); background: linear-gradient(165deg, rgba(167,77,206,0.08), rgba(130,78,249,0.04) 60%, rgba(255,255,255,0.01)); }
.product-card.featured::before { opacity: 1; }
.product-card__glow {
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
}
.product-card__header { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.product-card__title {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.product-card__desc { color: var(--text-mute); font-size: 15px; line-height: 1.55; }
.product-card__bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.product-card__bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-mute);
}
.product-card__bullets .tick {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-2);
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.product-card__foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}
.product-card__price-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.product-card__price {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.product-card__price span { font-size: 14px; color: var(--text-mute); font-weight: 500; margin-left: 6px; }
.product-card__meta { text-align: right; font-size: 13px; color: var(--text-mute); }
.product-card__cta { margin-top: 8px; color: var(--primary-2); font-weight: 600; font-family: var(--ff-display); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.products-grid .product-card.featured { grid-column: span 3; flex-direction: row; min-height: 0; }
.products-grid .product-card.featured .product-card__body { flex: 1; }
@media (max-width: 1000px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .products-grid .product-card.featured { grid-column: span 2; flex-direction: column; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid .product-card.featured { grid-column: span 1; }
}

/* ===== Speaker card ===== */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.speaker-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.speaker-card:hover { transform: translateY(-4px); border-color: rgba(130,78,249,0.3); }
.speaker-card__avatar { aspect-ratio: 4/5; position: relative; }
.speaker-card__placeholder { position: absolute; inset: 0; border-radius: 0; border: none; }
.speaker-card[data-accent="yd"] .speaker-card__placeholder { background:
  repeating-linear-gradient(135deg, rgba(255,217,18,0.12) 0 10px, transparent 10px 22px),
  linear-gradient(180deg, rgba(255,217,18,0.2), rgba(130,78,249,0.1));
}
.speaker-card__body { padding: 20px; }
.speaker-card__role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 6px; font-weight: 600; }
.speaker-card__name { font-size: 22px; margin-bottom: 12px; }
.speaker-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Carousel ===== */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 24px;
  margin: 0 -4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute;
  top: 40%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(20,7,50,0.9);
  border: 1px solid var(--brand-line-strong);
  color: white;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn:hover { background: var(--primary); border-color: var(--primary); }
.carousel__btn--prev { left: -24px; }
.carousel__btn--next { right: -24px; }
.carousel__foot { display: flex; justify-content: center; margin-top: 24px; }

.case-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(130,78,249,0.35); }
.case-card__cover { aspect-ratio: 4/3; border-radius: 0; border: none; border-bottom: 1px solid var(--brand-line); }
.case-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.case-card__meta { margin-bottom: 8px; }
.case-card__result {
  font-size: 34px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--primary-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.case-card__result span { font-size: 14px; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); font-weight: 500; margin-left: 4px; }
.case-card__period { font-size: 13px; color: var(--text-mute); }
.case-card__name { font-size: 15px; font-weight: 600; margin-top: 6px; }
.case-card__name span { color: var(--text-mute); font-weight: 500; }
.case-card__from { font-size: 13px; color: var(--text-dim); }

/* ===== Stat ===== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { padding: 8px 0; }
.stat__value {
  font-size: clamp(40px, 5vw, 64px);
  background: linear-gradient(135deg, #fff 40%, var(--primary-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 0.95;
}
.stat__value span { font-size: 0.5em; color: var(--primary-2); -webkit-text-fill-color: var(--primary-2); margin-left: 2px; }
.stat__label { font-size: 14px; color: var(--text-mute); margin-top: 10px; max-width: 22ch; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--brand-line-strong); }
.faq-item.open { border-color: rgba(130,78,249,0.3); background: rgba(130,78,249,0.04); }
.faq-item__q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-display); font-weight: 600; font-size: 17px;
}
.faq-item__toggle { color: var(--primary-2); font-size: 24px; font-weight: 300; }
.faq-item__a { color: var(--text-mute); font-size: 15px; line-height: 1.6; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--brand-line); }

/* ===== Common bits ===== */
.kicker {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(167,77,206,0.12);
  border: 1px solid rgba(167,77,206,0.25);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 13px;
  color: #E4B8F6;
  letter-spacing: 0.02em;
}
.kicker .pulse { width: 7px; height: 7px; border-radius: 50%; background: #E4B8F6; box-shadow: 0 0 0 0 rgba(228,184,246,0.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228,184,246,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(228,184,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,184,246,0); }
}

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: rgba(20,7,50,0.96);
  border: 1px solid var(--brand-line-strong);
  border-radius: 20px;
  padding: 16px;
  width: 280px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: none;
}
.tweaks.on { display: block; }
.tweaks h5 { font-family: var(--ff-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; color: var(--primary-2); }
.tweaks-row { margin-bottom: 12px; }
.tweaks-row label { font-size: 12px; color: var(--text-mute); display: block; margin-bottom: 6px; }
.tweaks-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-opt {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--brand-line);
  font-size: 12px;
  color: var(--text-mute);
  cursor: pointer;
  font-family: var(--ff-body);
}
.tweaks-opt.active { background: var(--primary); color: white; border-color: var(--primary); }
