/* =============================================
   Magic Key LP - Comprehensive UX Overhaul
   Mobile-first approach with fluid typography
   ============================================= */

/* --- Global Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Scroll-based Fade-in Animation --- */
@keyframes p-magic-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-magic-animate {
  opacity: 0;
}

.p-magic-animate--visible {
  animation: p-magic-fadeInUp 0.6s ease-out forwards;
}

/* Staggered delays for list items */
.p-magic-animate--delay-1 { animation-delay: 0.1s; }
.p-magic-animate--delay-2 { animation-delay: 0.2s; }
.p-magic-animate--delay-3 { animation-delay: 0.3s; }
.p-magic-animate--delay-4 { animation-delay: 0.4s; }

/* --- CTA Pulse Animation --- */
@keyframes p-magic-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(245, 166, 35, 0.7), 0 0 0 8px rgba(245, 166, 35, 0.15);
  }
  100% {
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  }
}

@keyframes p-magic-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}


/* =============================================
   FV CTA Button
   ============================================= */

.p-magic-fv__cta {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #F5A623 0%, #FFC75D 100%);
  color: #fff;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  animation: p-magic-pulse 2s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 2;
  min-height: 44px;
  text-align: center;
}

.p-magic-fv__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.p-magic-fv__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
}


/* =============================================
   FV Trust Badges (Social Proof)
   ============================================= */

.p-magic-fv__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.p-magic-fv__trust__item {
  font-size: 13px;
  font-weight: 700;
  color: #312F56;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .p-magic-fv__trust {
    gap: 16px 32px;
    margin-top: 24px;
  }
  .p-magic-fv__trust__item {
    font-size: 15px;
  }
}


/* =============================================
   Numbers Section (Social Proof Stats)
   ============================================= */

#p-magic-body .p-magic-numbers {
  background: linear-gradient(135deg, #312F56 0%, #4a4680 100%);
  padding: 40px 0;
  position: relative;
}

#p-magic-body .p-magic-numbers__title {
  color: #fff;
  line-height: 1.5;
  font-size: clamp(20px, 5vw, 28px);
}

#p-magic-body .p-magic-numbers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

#p-magic-body .p-magic-numbers__item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

#p-magic-body .p-magic-numbers__item:hover {
  transform: translateY(-2px);
}

#p-magic-body .p-magic-numbers__value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  color: #FFC75D;
  line-height: 1.1;
}

#p-magic-body .p-magic-numbers__value small {
  font-size: 0.5em;
  color: #FFC75D;
}

#p-magic-body .p-magic-numbers__label {
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-numbers {
    padding: 56px 0;
  }
  #p-magic-body .p-magic-numbers__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
  #p-magic-body .p-magic-numbers__item {
    padding: 28px 16px;
  }
}


/* =============================================
   Midway CTA Banners
   ============================================= */

.p-magic-cta-banner {
  background: linear-gradient(135deg, #E85D4A 0%, #EC6364 50%, #c94442 100%);
  padding: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.p-magic-cta-banner::before,
.p-magic-cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.p-magic-cta-banner::before {
  width: 200px;
  height: 200px;
  top: -80px;
  left: -60px;
}

.p-magic-cta-banner::after {
  width: 150px;
  height: 150px;
  bottom: -60px;
  right: -40px;
}

.p-magic-cta-banner__urgency {
  display: inline-block;
  color: #FFC75D;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.p-magic-cta-banner__text {
  color: #fff;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.p-magic-cta-banner__link {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #F5A623 0%, #FFC75D 100%);
  color: #fff;
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  animation: p-magic-pulse 2s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
  position: relative;
  z-index: 1;
}

.p-magic-cta-banner__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

.p-magic-cta-banner__link:active {
  transform: translateY(0);
}

.p-magic-cta-banner__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.p-magic-cta-banner__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.p-magic-cta-banner__badge {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .p-magic-cta-banner {
    padding: 44px 0;
  }
  .p-magic-cta-banner__link {
    padding: 18px 52px;
  }
  .p-magic-cta-banner__sub {
    font-size: 13px;
  }
  .p-magic-cta-banner__badge {
    font-size: 13px;
  }
}


/* =============================================
   Sticky Mobile CTA
   ============================================= */

.p-magic-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 8px 16px 12px;
  background: rgba(49, 47, 86, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.p-magic-sticky-cta__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #FFC75D;
  margin-bottom: 4px;
}

.p-magic-sticky-cta__link {
  display: block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #F5A623 0%, #FFC75D 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  min-height: 44px;
  animation: p-magic-pulse 2.5s infinite;
}

.p-magic-sticky-cta__link:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .p-magic-sticky-cta {
    display: none;
  }
  .p-magic-fv__cta {
    font-size: 20px;
    padding: 20px 48px;
  }
}

/* Bottom padding for sticky CTA on mobile */
@media (max-width: 767px) {
  .p-magic-footer {
    padding-bottom: 72px;
  }
}


/* =============================================
   Problem Section — Refined & Sophisticated
   ============================================= */

#p-magic-body .p-magic-problem {
  background: linear-gradient(180deg, #faf8f7 0%, #f5f0ed 50%, #faf8f7 100%);
  padding: 48px 0;
  position: relative;
}

#p-magic-body .p-magic-problem__title {
  color: #EC6364;
  line-height: 1.4;
  font-size: clamp(22px, 5.5vw, 32px);
}

#p-magic-body .p-magic-problem__subtitle {
  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 3.8vw, 20px);
  margin-top: 16px;
  color: #312F56;
}

#p-magic-body .p-magic-problem__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#p-magic-body .p-magic-problem__item {
  background-color: #fff;
  border-radius: 16px;
  border: none;
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-problem__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Icon inside a soft colored circle */
#p-magic-body .p-magic-problem__icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0;
  width: 52px;
  height: 52px;
  background: rgba(236, 99, 100, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#p-magic-body .p-magic-problem__item-content {
  flex: 1;
}

#p-magic-body .p-magic-problem__text {
  font-weight: 700;
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.5;
  color: #1a1a2e;
}

#p-magic-body .p-magic-problem__quote {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}

/* Decorative quotation mark */
#p-magic-body .p-magic-problem__quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 20px;
  color: rgba(236, 99, 100, 0.3);
  font-style: normal;
  font-weight: 700;
}

#p-magic-body .p-magic-problem__detail {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.7;
}

#p-magic-body .p-magic-problem__cause {
  margin-top: 36px;
  text-align: center;
}

#p-magic-body .p-magic-problem__cause__title {
  font-weight: 900;
  font-size: clamp(16px, 4vw, 24px);
  color: #EC6364;
  line-height: 1.5;
}

#p-magic-body .p-magic-problem__cause__text {
  margin-top: 14px;
  font-size: clamp(13px, 3.3vw, 16px);
  line-height: 1.8;
  color: #312F56;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-problem {
    padding: 80px 0;
  }
  #p-magic-body .p-magic-problem__subtitle {
    margin-top: 24px;
  }
  #p-magic-body .p-magic-problem__list {
    flex-direction: row;
    gap: 20px;
    margin-top: 36px;
  }
  #p-magic-body .p-magic-problem__item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    align-items: center;
  }
  #p-magic-body .p-magic-problem__icon {
    font-size: 26px;
    width: 60px;
    height: 60px;
    margin-top: 0;
  }
  #p-magic-body .p-magic-problem__quote {
    font-size: 13px;
    padding-left: 0;
    text-align: center;
  }
  #p-magic-body .p-magic-problem__quote::before {
    position: static;
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
  }
}


/* =============================================
   Method Section (2 Pillars) — Elegant Redesign
   ============================================= */

#p-magic-body .p-magic-method {
  background: linear-gradient(135deg, #EC6364 0%, #d44b4c 100%);
  padding: 48px 0;
  position: relative;
}

#p-magic-body .p-magic-method__title {
  color: #fff;
  line-height: 1.4;
  font-size: clamp(22px, 5.5vw, 32px);
}

#p-magic-body .p-magic-method__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#p-magic-body .p-magic-method__item {
  background-color: #fff;
  border-radius: 20px;
  border: none;
  border-left: 4px solid #ec6364;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-method__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.12);
}

/* Watermark-style number — more elegant */
#p-magic-body .p-magic-method__number {
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(236, 99, 100, 0.04);
  line-height: 1;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

#p-magic-body .p-magic-method__item__number-label {
  display: inline-block;
  background: linear-gradient(135deg, #EC6364, #d44b4c);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 20px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

#p-magic-body .p-magic-method__item__title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  color: #1a1a2e;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

#p-magic-body .p-magic-method__item__subtitle {
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  color: #EC6364;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

#p-magic-body .p-magic-method__item__text {
  font-size: clamp(13px, 3.3vw, 15px);
  line-height: 1.9;
  color: #444;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

#p-magic-body .p-magic-method__benefits {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* Checkmarks in small colored circles */
#p-magic-body .p-magic-method__benefit {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  background: rgba(236, 99, 100, 0.06);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s;
}

#p-magic-body .p-magic-method__benefit:hover {
  background: rgba(236, 99, 100, 0.12);
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-method {
    padding: 80px 0;
  }
  #p-magic-body .p-magic-method__list {
    flex-direction: row;
    gap: 28px;
    margin-top: 48px;
  }
  #p-magic-body .p-magic-method__item {
    flex: 1;
    padding: 36px 32px;
  }
  #p-magic-body .p-magic-method__number {
    font-size: 160px;
    top: -20px;
    right: 12px;
  }
}


/* =============================================
   Support Section — Softer & More Elegant
   ============================================= */

#p-magic-body .p-magic-support {
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
  padding: 48px 0;
  position: relative;
}

#p-magic-body .p-magic-support__title {
  color: #312F56;
  line-height: 1.4;
  font-size: clamp(20px, 5vw, 32px);
}

#p-magic-body .p-magic-support__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#p-magic-body .p-magic-support__item {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 0;
}

/* Wall box — softer warning-style design */
#p-magic-body .p-magic-support__wall {
  background-color: #FFF3E0;
  border: none;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-support__wall__number {
  display: inline-block;
  background: rgba(236, 99, 100, 0.12);
  color: #ec6364;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  line-height: 1.4;
}

#p-magic-body .p-magic-support__wall__text {
  font-size: 12px;
  font-weight: 700;
  color: #5a5a6e;
  margin-top: 8px;
  line-height: 1.5;
}

/* Arrow — elegant gradient chevron */
#p-magic-body .p-magic-support__arrow {
  width: 28px;
  height: 28px;
  border: none;
  border-left: none;
  border-top: none;
  border-bottom: none;
  margin: 0 8px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#p-magic-body .p-magic-support__arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #ec6364;
  border-bottom: 2.5px solid #ec6364;
  transform: rotate(-45deg);
}

/* Solution card — clean elevated card */
#p-magic-body .p-magic-support__solution {
  background-color: #fff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 20px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-support__solution:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Icon in colored circle */
#p-magic-body .p-magic-support__solution__icon {
  font-size: 18px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(49, 47, 86, 0.06);
  border-radius: 50%;
}

#p-magic-body .p-magic-support__solution__title {
  font-size: clamp(13px, 3.3vw, 18px);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
}

#p-magic-body .p-magic-support__solution__text {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  margin-top: 8px;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-support {
    padding: 80px 0;
  }
  #p-magic-body .p-magic-support__list {
    gap: 32px;
    margin-top: 48px;
  }
  #p-magic-body .p-magic-support__item {
    grid-template-columns: 240px auto 1fr;
  }
  #p-magic-body .p-magic-support__wall {
    padding: 24px 20px;
    border-radius: 16px;
  }
  #p-magic-body .p-magic-support__wall__number {
    font-size: 12px;
    padding: 5px 16px;
  }
  #p-magic-body .p-magic-support__wall__text {
    font-size: 14px;
    margin-top: 10px;
  }
  #p-magic-body .p-magic-support__arrow {
    width: 36px;
    height: 36px;
    margin: 0 20px;
  }
  #p-magic-body .p-magic-support__arrow::before {
    width: 12px;
    height: 12px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }
  #p-magic-body .p-magic-support__solution {
    padding: 32px;
  }
  #p-magic-body .p-magic-support__solution__icon {
    font-size: 22px;
    width: 52px;
    height: 52px;
  }
  #p-magic-body .p-magic-support__solution__title {
    font-size: 20px;
  }
  #p-magic-body .p-magic-support__solution__text {
    font-size: 15px;
    margin-top: 12px;
  }
}


/* =============================================
   Roadmap Section
   ============================================= */

#p-magic-body .p-magic-roadmap {
  background: linear-gradient(135deg, #312F56 0%, #1e1c3a 100%);
  padding: 48px 0;
  position: relative;
}

#p-magic-body .p-magic-roadmap__title {
  color: #fff;
  line-height: 1.4;
  font-size: clamp(20px, 5vw, 32px);
}

#p-magic-body .p-magic-roadmap__intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 3.3vw, 16px);
  line-height: 1.8;
  margin-top: 16px;
}

#p-magic-body .p-magic-roadmap__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Vertical timeline connector line */
#p-magic-body .p-magic-roadmap__list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #FFC75D 0%, #EC6364 50%, #F5A623 100%);
  border-radius: 3px;
  z-index: 0;
  opacity: 0.3;
}

#p-magic-body .p-magic-roadmap__item {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

#p-magic-body .p-magic-roadmap__item:hover {
  transform: translateY(-2px);
}

#p-magic-body .p-magic-roadmap__item__header {
  padding: 12px 20px;
  text-align: center;
}

#p-magic-body .p-magic-roadmap__item--beginner .p-magic-roadmap__item__header {
  background: linear-gradient(135deg, #FFC75D 0%, #f0b840 100%);
}

#p-magic-body .p-magic-roadmap__item--intermediate .p-magic-roadmap__item__header {
  background: linear-gradient(135deg, #EC6364 0%, #d44b4c 100%);
}

#p-magic-body .p-magic-roadmap__item--returnee .p-magic-roadmap__item__header {
  background: linear-gradient(135deg, #F5A623 0%, #e09018 100%);
}

#p-magic-body .p-magic-roadmap__item__label {
  font-weight: 900;
  font-size: clamp(14px, 3.5vw, 18px);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#p-magic-body .p-magic-roadmap__item__body {
  padding: 16px 20px 20px;
  text-align: center;
}

#p-magic-body .p-magic-roadmap__item__example {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

#p-magic-body .p-magic-roadmap__item__start {
  font-size: clamp(13px, 3.3vw, 15px);
  font-weight: 700;
  color: #312F56;
  margin-top: 6px;
  line-height: 1.5;
}

#p-magic-body .p-magic-roadmap__item__arrow {
  font-size: 18px;
  color: #EC6364;
  margin: 8px 0;
  font-weight: 900;
}

#p-magic-body .p-magic-roadmap__item__goal {
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  color: #312F56;
  line-height: 1.5;
  background: linear-gradient(135deg, #FFF1EC 0%, #fff 100%);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 4px;
}

#p-magic-body .p-magic-roadmap__item__goal strong {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 900;
  color: #EC6364;
}

#p-magic-body .p-magic-roadmap__note {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.8;
  margin-top: 28px;
}

#p-magic-body .p-magic-roadmap__cta-text {
  text-align: center;
  margin-top: 20px;
}

#p-magic-body .p-magic-roadmap__cta-link {
  display: inline-block;
  color: #FFC75D;
  font-weight: 700;
  font-size: clamp(14px, 3.5vw, 16px);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #FFC75D;
  border-radius: 30px;
  transition: all 0.3s ease;
  min-height: 44px;
  line-height: 1.6;
}

#p-magic-body .p-magic-roadmap__cta-link:hover {
  background-color: #FFC75D;
  color: #312F56;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-roadmap {
    padding: 72px 0;
  }
  #p-magic-body .p-magic-roadmap__intro {
    margin-top: 20px;
  }
  #p-magic-body .p-magic-roadmap__list {
    flex-direction: row;
    gap: 24px;
    margin-top: 40px;
  }
  /* Horizontal timeline connector on desktop */
  #p-magic-body .p-magic-roadmap__list::before {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, #FFC75D 0%, #EC6364 50%, #F5A623 100%);
  }
  #p-magic-body .p-magic-roadmap__item {
    flex: 1;
  }
  #p-magic-body .p-magic-roadmap__item__body {
    padding: 20px 24px 28px;
  }
  #p-magic-body .p-magic-roadmap__note {
    margin-top: 36px;
  }
}


/* =============================================
   Events Section
   ============================================= */

#p-magic-body .p-magic-events {
  background: linear-gradient(180deg, #FFF1EC 0%, #fff 50%, #FFF1EC 100%);
  padding: 48px 0;
  position: relative;
}

#p-magic-body .p-magic-events__title {
  color: #312F56;
  font-size: clamp(20px, 5vw, 32px);
}

#p-magic-body .p-magic-events__label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin-top: 4px;
}

#p-magic-body .p-magic-events__intro {
  text-align: center;
  font-size: clamp(13px, 3.3vw, 16px);
  line-height: 1.8;
  color: #312F56;
  margin-top: 16px;
}

/* Mobile: 2x2 grid instead of horizontal scroll */
#p-magic-body .p-magic-events__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#p-magic-body .p-magic-events__item {
  background-color: #fff;
  border-radius: 14px;
  border: 2px solid #FFC75D;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(255, 199, 93, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#p-magic-body .p-magic-events__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 199, 93, 0.2);
}

#p-magic-body .p-magic-events__icon {
  font-size: 28px;
}

#p-magic-body .p-magic-events__item__title {
  font-size: clamp(13px, 3.3vw, 17px);
  font-weight: 900;
  color: #312F56;
  margin-top: 6px;
  line-height: 1.3;
}

#p-magic-body .p-magic-events__item__text {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin-top: 4px;
}

#p-magic-body .p-magic-events__note {
  text-align: center;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.8;
  color: #312F56;
  margin-top: 20px;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-events {
    padding: 72px 0;
  }
  #p-magic-body .p-magic-events__intro {
    margin-top: 20px;
  }
  #p-magic-body .p-magic-events__list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
  }
  #p-magic-body .p-magic-events__item {
    padding: 24px 20px;
  }
  #p-magic-body .p-magic-events__icon {
    font-size: 36px;
  }
  #p-magic-body .p-magic-events__item__title {
    font-size: 18px;
  }
  #p-magic-body .p-magic-events__item__text {
    font-size: 14px;
    margin-top: 8px;
  }
  #p-magic-body .p-magic-events__note {
    margin-top: 28px;
  }
}


/* =============================================
   Pricing Table - Equal Width Columns (4 cols)
   ============================================= */

#p-magic-body .p-magic-plan__table {
  width: 100%;
  max-width: 900px;
  table-layout: fixed;
  border-collapse: separate;
}

#p-magic-body .p-magic-plan__table__heading th {
  width: 25%;
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.4;
}

#p-magic-body .p-magic-plan__table__heading th:first-child {
  width: 25%;
}

#p-magic-body .p-magic-plan__table td {
  width: 25%;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

#p-magic-body .p-magic-plan__table td:first-child {
  width: 25%;
  text-align: left;
  font-weight: 700;
}

#p-magic-body .p-magic-plan__table td:nth-child(2),
#p-magic-body .p-magic-plan__table td:nth-child(3),
#p-magic-body .p-magic-plan__table td:last-child {
  width: 25%;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-plan__table {
    max-width: 1100px;
    font-size: 15px;
  }
  #p-magic-body .p-magic-plan__table__heading th {
    padding: 14px 16px;
    font-size: 15px;
  }
  #p-magic-body .p-magic-plan__table td {
    padding: 12px 16px;
    font-size: 15px;
  }
}


/* =============================================
   Pricing Notes
   ============================================= */

#p-magic-body .p-magic-plan__notes {
  margin-top: 16px;
  text-align: center;
}

#p-magic-body .p-magic-plan__note {
  font-size: 13px;
  color: #312F56;
  line-height: 1.8;
}


/* =============================================
   Footer - Fix invisible text (no bg image)
   ============================================= */

#p-magic-body .p-magic-footer {
  background-color: #312F56;
  background-image: none;
}

#p-magic-body .p-magic-footer__title {
  color: #FFF1EC;
}

#p-magic-body .p-magic-footer__item__title {
  color: #FFF1EC;
  border-bottom-color: rgba(255, 241, 236, 0.3);
}

#p-magic-body .p-magic-footer__link,
#p-magic-body .p-magic-footer__last-item__link {
  color: #FFF1EC;
}

#p-magic-body .footer__copy {
  color: rgba(255, 241, 236, 0.7);
}

#p-magic-body .p-magic-footer__button__tel,
#p-magic-body .p-magic-footer__button__time {
  color: #312F56;
}


/* =============================================
   General Touch Target Enforcement
   ============================================= */

a, button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Prevent the above from breaking inline links in text */
p a, li a, span a, td a,
.p-magic-faq__link,
.p-magic-flow__item__link,
.p-magic-footer__link,
.p-magic-footer__last-item__link,
.p-magic-header__nav__sub-link,
.p-magic-header__nav__link {
  min-height: auto;
  display: inline;
}

/* Ensure nav links and buttons in header remain flex */
.p-magic-header__button__link,
.p-magic-common-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}


/* =============================================
   Hover/Active States for Interactive Elements
   ============================================= */

.p-magic-problem__item,
.p-magic-method__item,
.p-magic-support__solution,
.p-magic-roadmap__item,
.p-magic-events__item,
.p-magic-numbers__item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state for touch devices */
@media (hover: none) {
  .p-magic-problem__item:active,
  .p-magic-method__item:active,
  .p-magic-events__item:active {
    transform: scale(0.98);
  }
}


/* =============================================
   Fixed Header Banner
   ============================================= */

/* Body padding for fixed header */
#p-magic-body {
  padding-top: 106px;
}

.p-magic-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.p-magic-header-fixed__top-bar {
  background-color: #ec6364;
  text-align: center;
  padding: 6px 16px;
}

.p-magic-header-fixed__top-text {
  color: #fff;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.p-magic-header-fixed__main-bar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.p-magic-header-fixed__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}

.p-magic-header-fixed__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #312F56;
  min-height: auto;
}

.p-magic-header-fixed__logo-icon {
  font-size: 24px;
  color: #ec6364;
}

.p-magic-header-fixed__logo-text {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: #312F56;
}

.p-magic-header-fixed__nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-magic-header-fixed__nav-item {
  position: relative;
}

.p-magic-header-fixed__nav-item--trial {
  position: relative;
}

.p-magic-header-fixed__bubble {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F5A623 0%, #FFC75D 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}

.p-magic-header-fixed__bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #FFC75D;
}

.p-magic-header-fixed__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #312F56;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
  cursor: pointer;
  min-height: auto;
}

.p-magic-header-fixed__nav-link i {
  font-size: 18px;
}

.p-magic-header-fixed__nav-link:hover {
  background-color: #FFF1EC;
}

.p-magic-header-fixed__menu-toggle {
  cursor: pointer;
}

@media (min-width: 768px) {
  #p-magic-body {
    padding-top: 110px;
  }

  .p-magic-header-fixed__inner {
    padding: 12px 24px;
  }

  .p-magic-header-fixed__nav-list {
    gap: 8px;
  }

  .p-magic-header-fixed__nav-link {
    font-size: 12px;
    padding: 8px 16px;
  }

  .p-magic-header-fixed__bubble {
    font-size: 11px;
    padding: 4px 12px;
    top: -32px;
  }
}


/* --- Hide old drawer menu by default (inside new fixed header) --- */
#p-magic-body .p-magic-header-fixed .p-magic-header__menu {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #312F56;
  z-index: 999;
  flex-direction: column;
  padding: 80px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}

#p-magic-body .p-magic-header-fixed .p-magic-header__menu.is-active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

/* Body padding for fixed header */
#p-magic-body {
  padding-top: 106px;
}

/* =============================================
   About Intro Section
   ============================================= */

#p-magic-body .p-magic-about-intro {
  background-color: #fff;
  padding: 40px 0;
}

#p-magic-body .p-magic-about-intro__text {
  text-align: center;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 2;
  color: #312F56;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-about-intro {
    padding: 56px 0;
  }
}


/* =============================================
   9 Reasons Section — Apple/Stripe-inspired
   ============================================= */

#p-magic-body .p-magic-reasons {
  background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
  padding: 48px 0;
}

#p-magic-body .p-magic-reasons__title {
  color: #312F56;
  font-size: clamp(22px, 5.5vw, 32px);
  line-height: 1.4;
}

#p-magic-body .p-magic-reasons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
  counter-reset: reason-counter;
}

#p-magic-body .p-magic-reasons__card {
  background-color: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: none;
  border-left: 3px solid transparent;
  position: relative;
  counter-increment: reason-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Number badge in top-left corner */
#p-magic-body .p-magic-reasons__card::before {
  content: counter(reason-counter, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.45;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}

#p-magic-body .p-magic-reasons__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Color variants — left accent bar + number color */
#p-magic-body .p-magic-reasons__card--red {
  border-left-color: #ec6364;
}
#p-magic-body .p-magic-reasons__card--red::before {
  color: #ec6364;
}

#p-magic-body .p-magic-reasons__card--blue {
  border-left-color: #4a90e2;
}
#p-magic-body .p-magic-reasons__card--blue::before {
  color: #4a90e2;
}

#p-magic-body .p-magic-reasons__card--orange {
  border-left-color: #f39c12;
}
#p-magic-body .p-magic-reasons__card--orange::before {
  color: #f39c12;
}

#p-magic-body .p-magic-reasons__card--green {
  border-left-color: #38a87c;
}
#p-magic-body .p-magic-reasons__card--green::before {
  color: #38a87c;
}

/* Icon inside a soft colored circle */
#p-magic-body .p-magic-reasons__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-top: 12px;
  flex-shrink: 0;
}

#p-magic-body .p-magic-reasons__card--red .p-magic-reasons__icon {
  background: rgba(236, 99, 100, 0.1);
  color: #ec6364;
}

#p-magic-body .p-magic-reasons__card--blue .p-magic-reasons__icon {
  background: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
}

#p-magic-body .p-magic-reasons__card--orange .p-magic-reasons__icon {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

#p-magic-body .p-magic-reasons__card--green .p-magic-reasons__icon {
  background: rgba(56, 168, 124, 0.1);
  color: #38a87c;
}

#p-magic-body .p-magic-reasons__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.5;
  margin-bottom: 0;
}

#p-magic-body .p-magic-reasons__link {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  display: inline;
  min-height: auto;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-end;
  margin-top: auto;
}

#p-magic-body .p-magic-reasons__link:hover {
  color: #ec6364;
  opacity: 1;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-reasons {
    padding: 80px 0;
  }

  #p-magic-body .p-magic-reasons__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
  }

  #p-magic-body .p-magic-reasons__icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  #p-magic-body .p-magic-reasons__card {
    padding: 32px 28px 28px;
  }
}


/* =============================================
   Learning Path Section — Premium Card Redesign
   ============================================= */

#p-magic-body .p-magic-learning-path {
  background: linear-gradient(135deg, #312F56 0%, #1e1c3a 100%);
  padding: 48px 0;
}

#p-magic-body .p-magic-learning-path__title {
  color: #fff;
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.4;
}

#p-magic-body .p-magic-learning-path__subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.6;
  margin-top: 12px;
}

#p-magic-body .p-magic-learning-path__intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 3.3vw, 16px);
  line-height: 1.8;
  margin-top: 8px;
  font-weight: 700;
}

#p-magic-body .p-magic-learning-path__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

#p-magic-body .p-magic-learning-path__card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-learning-path__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.18);
}

/* Header — small pill/tag label instead of full-width gradient bar */
#p-magic-body .p-magic-learning-path__card-header {
  padding: 24px 28px 0;
  text-align: left;
  background: none !important;
}

#p-magic-body .p-magic-learning-path__card-header--green {
  background: none !important;
}

#p-magic-body .p-magic-learning-path__card-header--blue {
  background: none !important;
}

#p-magic-body .p-magic-learning-path__card-header--purple {
  background: none !important;
}

/* Level label as a pill tag */
#p-magic-body .p-magic-learning-path__card-level {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: none;
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

/* Color variants for level pills */
#p-magic-body .p-magic-learning-path__card-header--green .p-magic-learning-path__card-level {
  background: linear-gradient(135deg, #38a87c 0%, #2d8f6a 100%);
}

#p-magic-body .p-magic-learning-path__card-header--blue .p-magic-learning-path__card-level {
  background: linear-gradient(135deg, #4a90e2 0%, #3b7fd4 100%);
}

#p-magic-body .p-magic-learning-path__card-header--purple .p-magic-learning-path__card-level {
  background: linear-gradient(135deg, #8e6bb5 0%, #7654a3 100%);
}

#p-magic-body .p-magic-learning-path__card-body {
  padding: 20px 28px 28px;
}

/* Profile section — light gray rounded box */
#p-magic-body .p-magic-learning-path__card-profile {
  font-size: clamp(14px, 3.5vw, 15px);
  color: #312F56;
  line-height: 1.5;
  margin-bottom: 16px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 12px;
}

/* Goal steps — vertical timeline with colored dots */
#p-magic-body .p-magic-learning-path__card-goals {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 20px;
  margin-bottom: 16px;
  position: relative;
}

/* Vertical timeline connecting line */
#p-magic-body .p-magic-learning-path__card-goals::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #ec6364 0%, #f5a623 100%);
  border-radius: 2px;
  opacity: 0.3;
}

#p-magic-body .p-magic-learning-path__card-goals-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Goal steps flow — styled as timeline */
#p-magic-body .p-magic-learning-path__card-goals-flow {
  font-size: clamp(12px, 3vw, 14px);
  color: #555;
  line-height: 2;
  position: relative;
}

/* Total duration as highlighted pill badge */
#p-magic-body .p-magic-learning-path__card-goals-total {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
  display: inline-block;
  background: linear-gradient(135deg, #ec6364 0%, #d44b4c 100%);
  padding: 5px 16px;
  border-radius: 20px;
}

/* Materials — clean list with subtle left border accent */
#p-magic-body .p-magic-learning-path__card-materials {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 3px solid rgba(74, 144, 226, 0.2);
}

#p-magic-body .p-magic-learning-path__card-materials-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#p-magic-body .p-magic-learning-path__card-materials p {
  font-size: clamp(12px, 3vw, 14px);
  color: #555;
  line-height: 1.7;
}

/* Point section — warm yellow box with star feel */
#p-magic-body .p-magic-learning-path__card-point {
  background: #FFF8E1;
  border-radius: 12px;
  padding: 14px 16px;
  border-left: none;
  border: 1px solid rgba(245, 166, 35, 0.15);
}

#p-magic-body .p-magic-learning-path__card-point p {
  font-size: clamp(12px, 3vw, 14px);
  color: #312F56;
  line-height: 1.7;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-learning-path {
    padding: 80px 0;
  }

  #p-magic-body .p-magic-learning-path__cards {
    flex-direction: row;
    gap: 24px;
    margin-top: 48px;
  }

  #p-magic-body .p-magic-learning-path__card {
    flex: 1;
  }

  #p-magic-body .p-magic-learning-path__card-header {
    padding: 28px 32px 0;
  }

  #p-magic-body .p-magic-learning-path__card-body {
    padding: 24px 32px 32px;
  }
}


/* =============================================
   User Voice / Testimonials — Polished Redesign
   ============================================= */

#p-magic-body .p-magic-user-voice {
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  padding: 48px 0;
}

#p-magic-body .p-magic-user-voice__title {
  color: #312F56;
  font-size: clamp(20px, 5vw, 32px);
  line-height: 1.4;
}

#p-magic-body .p-magic-user-voice__subtitle {
  text-align: center;
  font-size: clamp(13px, 3.3vw, 16px);
  color: #888;
  line-height: 1.8;
  margin-top: 12px;
}

#p-magic-body .p-magic-user-voice__slider-wrap {
  margin-top: 32px;
}

#p-magic-body .p-magic-user-voice__slider {
  list-style: none;
  margin: 0;
  padding: 0;
}

#p-magic-body .p-magic-user-voice__card {
  background-color: #fff;
  border-radius: 20px;
  padding: 0;
  margin: 0 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  border: none;
  min-height: 240px;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle gradient strip at the very top of the card */
#p-magic-body .p-magic-user-voice__card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ec6364 0%, #f5a623 50%, #ec6364 100%);
  flex-shrink: 0;
}

#p-magic-body .p-magic-user-voice__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 24px 24px 0;
}

/* Grade badge — refined lighter tag */
#p-magic-body .p-magic-user-voice__card-grade {
  display: inline-block;
  background: rgba(236, 99, 100, 0.1);
  color: #ec6364;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

/* Prior experience — subtle gray tag */
#p-magic-body .p-magic-user-voice__card-exp {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
}

#p-magic-body .p-magic-user-voice__card-ratings {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding: 0 24px;
}

#p-magic-body .p-magic-user-voice__card-rating {
  font-size: 13px;
  font-weight: 700;
  color: #F5A623;
  white-space: nowrap;
  letter-spacing: 1px;
}

/* Comment text — larger with decorative quote mark */
#p-magic-body .p-magic-user-voice__card-text {
  font-size: 15px;
  line-height: 1.8;
  color: #312F56;
  flex: 1;
  padding: 0 24px 24px;
  position: relative;
}

/* Subtle large decorative quote mark */
#p-magic-body .p-magic-user-voice__card-text::before {
  content: '\201C';
  font-size: 48px;
  font-weight: 700;
  color: rgba(236, 99, 100, 0.1);
  position: absolute;
  top: -12px;
  left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}

#p-magic-body .p-magic-user-voice__cta {
  text-align: center;
  margin-top: 32px;
}

/* Slick slider overrides — refined dots */
#p-magic-body .p-magic-user-voice .slick-dots {
  margin-top: 24px;
  text-align: center;
  list-style: none;
  padding: 0;
}

#p-magic-body .p-magic-user-voice .slick-dots li {
  display: inline-block;
  margin: 0 4px;
}

#p-magic-body .p-magic-user-voice .slick-dots li button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  font-size: 0;
  padding: 0;
  cursor: pointer;
  min-height: auto;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#p-magic-body .p-magic-user-voice .slick-dots li.slick-active button {
  background: #ec6364;
  width: 24px;
  border-radius: 4px;
}

/* Arrow buttons — cleaner */
#p-magic-body .p-magic-user-voice .slick-prev,
#p-magic-body .p-magic-user-voice .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  font-size: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  transition: all 0.2s;
}

#p-magic-body .p-magic-user-voice .slick-prev:hover,
#p-magic-body .p-magic-user-voice .slick-next:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #ddd;
}

#p-magic-body .p-magic-user-voice .slick-prev {
  left: -8px;
}

#p-magic-body .p-magic-user-voice .slick-next {
  right: -8px;
}

#p-magic-body .p-magic-user-voice .slick-prev::before {
  content: '\2039';
  font-size: 24px;
  color: #312F56;
}

#p-magic-body .p-magic-user-voice .slick-next::before {
  content: '\203A';
  font-size: 24px;
  color: #312F56;
}

@media (min-width: 768px) {
  #p-magic-body .p-magic-user-voice {
    padding: 80px 0;
  }

  #p-magic-body .p-magic-user-voice__slider-wrap {
    margin-top: 40px;
  }

  #p-magic-body .p-magic-user-voice__card {
    margin: 0 12px;
    min-height: 280px;
  }

  #p-magic-body .p-magic-user-voice__card-header {
    padding: 28px 28px 0;
  }

  #p-magic-body .p-magic-user-voice__card-ratings {
    padding: 0 28px;
  }

  #p-magic-body .p-magic-user-voice__card-text {
    padding: 0 28px 28px;
  }

  #p-magic-body .p-magic-user-voice .slick-prev {
    left: -20px;
  }

  #p-magic-body .p-magic-user-voice .slick-next {
    right: -20px;
  }
}


/* =============================================
   Message Section - Subtitle Addition
   ============================================= */

#p-magic-body .p-magic-message__subtitle {
  text-align: center;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  color: #ec6364;
  margin-top: 12px;
  line-height: 1.5;
}
