/* Base Styles */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  padding: 40px 20px;
}

/* Header */
.header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.badge {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.header h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Layout Grid */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.2);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

/* Card Header & Price */
.card-header h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.card-header .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  min-height: 40px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Features List */
.features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.features li {
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: #334155;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Buttons */
.btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}
