/* platform.css - One Platform / READi Platform */

#readi {
  background: #ffffff;
  padding: 80px 16px;
}

@media (min-width: 640px) {
  #readi {
    padding: 80px 24px;
  }
}

.platform-container {
  max-width: 1380px;
  margin: 0 auto;
}

/* Header */
.platform-header {
  text-align: center;
  margin-bottom: 48px;
}

.platform-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.platform-label-line {
  width: 32px;
  height: 3px;
  border-radius: 9999px;
  background-color: var(--blue-600);
  margin: 0 auto 16px;
}

.platform-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .platform-heading {
    font-size: 48px;
  }
}

.platform-heading .accent {
  color: var(--emerald-500);
}

.platform-subtext {
  color: var(--slate-500);
  font-size: 16px;
  max-width: 672px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .platform-subtext {
    font-size: 18px;
  }
}

/* Desktop card layout */
.platform-desktop {
  display: none;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .platform-desktop {
    display: flex;
  }
}

/* Platform card */
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  min-height: 360px;
  flex-grow: 1;
  transition: flex-grow 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.06);
}

.platform-card.hovered {
  flex-grow: 1.95;
  box-shadow: 0 8px 40px -4px rgba(67, 97, 238, 0.12), 0 2px 12px -2px rgba(0, 0, 0, 0.06);
}

/* Top gradient stripe */
.platform-card-stripe {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}

.platform-card-stripe.blue-indigo {
  background: linear-gradient(90deg, #2563EB, #4F46E5);
}

.platform-card-stripe.emerald-teal {
  background: linear-gradient(90deg, #10B981, #14B8A6);
}

/* Dot grid decoration */
.platform-card-dots {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 176px;
  height: 176px;
  background-image: radial-gradient(circle, #93C5FD 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at bottom right, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at bottom right, black 30%, transparent 70%);
  pointer-events: none;
}

/* Card content */
.platform-card-content {
  padding: 24px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}

.platform-card-icon i {
  width: 24px;
  height: 24px;
}

.platform-card-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-400);
}

.platform-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 4px;
}

.platform-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-500);
  margin-bottom: 12px;
}

.platform-card-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald-500);
  margin-bottom: 12px;
}

.platform-card-desc {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.platform-card-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Expandable content */
.platform-card-expanded {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease 0.12s, transform 0.28s ease 0.12s;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.platform-card.hovered .platform-card-expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 2000px;
}

.platform-card.hovered .platform-card-desc.clamped {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Capabilities section */
.expanded-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 8px;
  margin-top: 4px;
}

.expanded-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.expanded-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--slate-600);
  line-height: 1.5;
}

.expanded-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 4px;
}

.expanded-bullet-dot.emerald {
  background-color: var(--emerald-500);
}

/* Steps */
.expanded-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.expanded-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.expanded-step-num {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--blue-600);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expanded-step-text {
  display: flex;
  flex-direction: column;
}

.expanded-step-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-800);
}

.expanded-step-desc {
  font-size: 11px;
  color: var(--slate-500);
}

/* Features (card 2) */
.expanded-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.expanded-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.expanded-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.expanded-feature-text {
  font-size: 11px;
  color: var(--slate-600);
  line-height: 1.5;
  padding-top: 4px;
}

/* Footer button */
.platform-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.platform-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--blue-600);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.platform-explore-btn:hover {
  background-color: var(--blue-700);
}

/* Mobile layout */
.platform-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .platform-mobile {
    display: none;
  }
}

.platform-mobile-card {
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.06);
}

.platform-mobile-card .platform-card-title {
  font-size: 18px;
}

.platform-mobile-card .platform-card-desc {
  font-size: 14px;
}

.platform-mobile-card .platform-card-expanded {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  max-height: none;
  overflow: visible;
}

.platform-mobile-card .expanded-bullet-item {
  font-size: 14px;
}
