/* ===== Frontcache pricing & services ===== */

/* Page hero */
.fc-hero {
  background: var(--hero-bg);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-light);
}

.fc-hero .container { text-align: center; }

.fc-hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.fc-hero-sub {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.fc-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Proof strip */
.fc-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 2.75rem auto 0;
}

.fc-proof-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
}

.fc-proof-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue-800);
  line-height: 1.2;
}

.fc-proof-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ===== Tier cards ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tier-card--featured {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.tier-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.3rem;
}

.tier-audience {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 3.2em;
  margin-bottom: 1rem;
}

.tier-price {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.1rem;
}

.tier-amount {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--blue-800);
  letter-spacing: -0.02em;
}

.tier-unit { font-size: 0.9rem; color: var(--text-muted); margin-left: 0.2rem; }

/* A tier with no published price puts its CTA in the price slot instead. */
.tier-price .btn + .tier-note { margin-top: 0.6rem; }

.tier-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.tier-inherits {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.tier-features {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.tier-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.72rem;
  height: 0.72rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6A9E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.tier-cta { margin-top: auto; }

/* ===== Services ===== */
.services-offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.offer-card--flagship {
  grid-column: 1 / -1;
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 55%);
  box-shadow: var(--shadow-md);
}

.offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.offer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-900);
}

.offer-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-800);
  white-space: nowrap;
}

.offer-price small { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }

.offer-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.offer-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.offer-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-400);
}

.offer-flag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.6rem;
}

.offer-cta { margin-top: auto; }

/* ===== Value / ROI ===== */
.value-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.value-text .section-title { text-align: left; }
.value-text .section-label { display: block; }
.value-text p { color: var(--text-secondary); margin-bottom: 1rem; }

.value-math {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.value-math h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}

.value-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  padding: 0.45rem 0;
  color: var(--text-secondary);
}

.value-row span:last-child { color: var(--text-primary); font-weight: 500; white-space: nowrap; }

.value-row--total {
  border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-weight: 600;
  color: var(--blue-900);
  font-size: 1.02rem;
}

.value-row--total span:last-child { color: var(--blue-800); font-weight: 600; }

.value-fineprint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
}

/* ===== Free / open core ===== */
.free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.free-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.free-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.85rem;
}

.free-card ul { list-style: none; display: grid; gap: 0.5rem; }

.free-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.free-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-400);
}

.free-note {
  text-align: center;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 0.92rem;
}

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.4rem;
}

.faq-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== Bottom CTA ===== */
.fc-cta { text-align: center; }
.fc-cta .contact-title { margin-bottom: 0.75rem; }
.fc-cta .contact-sub { margin: 0 auto 1.75rem; max-width: 620px; }
.fc-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-light {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
}

.btn-light:hover { background: var(--blue-50); border-color: var(--blue-50); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1040px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .tier-audience { min-height: 0; }
}

@media (max-width: 900px) {
  .value-layout { grid-template-columns: 1fr; gap: 2rem; }
  .value-text .section-title { text-align: left; }
}

@media (max-width: 700px) {
  .tier-grid { grid-template-columns: 1fr; }
  .services-offers { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: 1fr; }
  .fc-proof { grid-template-columns: 1fr; }
}
