/* ============================================
   CARDS & LAYOUT COMPONENTS
   ============================================ */

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--light-grey);
  border: none;
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 22px;
  font-weight: 700; /* Better visual hierarchy - weight (Wix tip #2) */
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 4px; /* Better spacing */
}

.card p {
  color: var(--dark-grey);
  line-height: 1.7; /* Improved readability */
  font-size: 16px; /* Minimum 16pt (Wix tip #3) */
}

.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Better spacing for readability */
  color: var(--dark-grey);
  font-size: 16px; /* Minimum 16pt (Wix tip #3) */
  line-height: 1.7; /* Improved readability */
}

.card ul li::before {
  content: "•";
  color: var(--yellow);
  margin-right: 8px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.card:hover ul li::before {
  transform: scale(1.3);
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill-list li {
  background: var(--light-grey);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.pill-list li:hover {
  background-color: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

.about-panel {
  background: var(--light-grey);
  border-radius: 20px;
  border: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.about-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-panel:hover {
  transform: translateY(-4px);
}

.about-panel:hover::before {
  transform: scaleX(1);
}

.about-panel h3 {
  color: var(--black);
}

.about-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--dark-grey);
}

.about-panel ul li::before {
  content: "•";
  color: var(--yellow);
  margin-right: 8px;
}

.about-panel .about-note {
  color: var(--dark-grey);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.timeline-step {
  background: var(--light-grey);
  border-radius: 14px;
  padding: 20px;
  border: none;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step:hover {
  transform: translateY(-3px);
}

.timeline-step:hover::before {
  transform: scaleX(1);
}

.timeline-step span {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  opacity: 0.7;
}

.timeline-step h4 {
  margin: 12px 0 8px;
  color: var(--black);
}

.timeline-step p {
  color: var(--dark-grey);
}

/* Audience Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.audience-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--light-grey);
  border: none;
  font-weight: 600;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audience-card:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 214, 38, 0.03);
}

.audience-card:hover::before {
  transform: scaleX(1);
}

/* Pricing */
.pricing {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--light-grey);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-grey);
  transition: 
    padding-left 0.3s ease,
    border-left 0.3s ease;
  padding-left: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.pricing-row:hover {
  padding-left: 12px;
  border-left-color: var(--yellow);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row strong {
  font-size: 18px;
}

/* CTA */
.cta {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
}

.cta p {
  margin: 16px auto 32px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--light-grey);
  border-radius: 18px;
  padding: 24px;
  border: none;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card p {
  margin-bottom: 8px;
  color: var(--dark-grey);
}

.contact-card h3 {
  color: var(--black);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card,
  .timeline-step,
  .audience-card,
  .contact-card,
  .about-panel,
  .pill-list li,
  .pricing-row {
    transition: none;
  }
  
  .card:hover,
  .timeline-step:hover,
  .audience-card:hover,
  .contact-card:hover,
  .about-panel:hover,
  .pill-list li:hover,
  .pricing-row:hover {
    transform: none;
  }
  
  .card::before,
  .timeline-step::before,
  .audience-card::before,
  .contact-card::before,
  .about-panel::before {
    transition: none;
  }
}

@media (max-width: 768px) {
  .cta {
    padding: 40px 24px;
  }
}
