/*
 * Cards - Feature cards, pricing cards, plan cards, contact cards
 */

/* Base Card */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(26, 32, 44, 0.05);
}

/* Icon Grid Cards */
.icon-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  min-height: 260px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.icon-badge {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-red);
  color: var(--white);
  border: 1px solid rgba(219, 30, 54, 0.35);
  margin-bottom: 4px;
}

.icon-badge svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-grid .card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.icon-grid .card p {
  margin: 0;
  line-height: 1.6;
}

/* Feature Card */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(219, 30, 54, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-red);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--slate-800);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0;
}

.feature-card h3,
.plan-card h3,
.faq-card h3 {
  margin: 0 0 8px;
  color: var(--slate-800);
}

.feature-card p,
.plan-card p,
.faq-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--slate-700);
}

/* Use Case Card */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.use-case-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-200);
}

.use-case-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--slate-800);
}

.use-case-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.partner-card {
  background: var(--surface-light);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-card);
}

.partner-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  color: var(--deep-slate);
}

.partner-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.partner-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Position Cards (Careers) */
.positions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.position-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 32px;
  transition: box-shadow 0.2s ease;
}

.position-card:hover {
  box-shadow: var(--shadow-card);
}

.position-info {
  flex: 1;
}

.position-info h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.position-info h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.position-info h3 a:hover {
  color: var(--brand-red);
}

.position-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.position-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.position-category {
  color: var(--brand-red);
  font-weight: 500;
}

.position-salary {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.position-actions {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .position-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }

  .position-actions {
    width: 100%;
  }

  .position-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* Position Detail Page */
.position-meta-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.position-meta-hero span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.position-meta-hero span:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  opacity: 0.5;
}

.position-salary-hero {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
}

.position-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.position-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.position-description h2,
.position-description h3,
.position-description h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.position-description ul,
.position-description ol {
  margin: 16px 0;
  padding-left: 24px;
}

.position-description li {
  margin-bottom: 8px;
}

.position-description p {
  margin-bottom: 16px;
}

/* Contact Card */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(219, 30, 54, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand-red);
}

.contact-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--slate-800);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: 0 0 16px;
}

.contact-link {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--brand-red-dark);
}

/* Plan Card */
.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.plan-card > .button {
  margin-top: auto;
}

.plan-header {
  border-bottom: 1px solid rgba(26, 32, 44, 0.08);
  padding-bottom: 10px;
}

.plan-summary {
  margin: 6px 0 8px;
}

.plan-price {
  margin: 0;
  font-weight: 800;
  color: var(--brand-red);
  font-size: 1.8rem;
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-left: 4px;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--slate-700);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 22px rgba(219, 30, 54, 0.25);
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(219, 30, 54, 0.06) 0%, rgba(219, 30, 54, 0.02) 100%), #ffffff;
  border: 1px solid rgba(219, 30, 54, 0.3);
  box-shadow: 0 20px 40px rgba(219, 30, 54, 0.18);
}

.plan-card.featured .plan-price {
  color: var(--brand-red);
}

/* Pricing Card */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.pricing-grid .plan-card {
  position: relative;
  padding: 22px 20px 24px;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  border-color: var(--brand-red);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--brand-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 0 0 8px 8px;
}

.pricing-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-tier {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-800);
}

.pricing-tagline {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.pricing-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-50);
}

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

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features li.included svg {
  color: #38a169;
}

.pricing-features li.hourly svg {
  color: var(--slate-500);
}

.pricing-features li.hourly {
  color: var(--slate-500);
}

.pricing-features li strong {
  font-weight: 600;
  color: var(--slate-800);
}

/* Stat Card */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--slate-50);
  border: 1px solid rgba(26, 32, 44, 0.06);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

/* Dark background variants */
.section.alt-bg .feature-card,
.section.alt-bg .use-case-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.section.alt-bg .feature-card h3,
.section.alt-bg .use-case-card h3 {
  color: #ffffff;
}

.section.alt-bg .feature-card p,
.section.alt-bg .use-case-card p {
  color: rgba(255, 255, 255, 0.85);
}

.section.alt-bg .icon-badge {
  background: rgba(255, 255, 255, 0.15);
}

.section.alt-bg .icon-badge svg {
  stroke: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}
