/* ================================================================
   MyCarChecklist — Feature & Monetisation CSS v3
   ================================================================ */

/* ---- PRICING / RUNNING COSTS ---------------------------------- */
.pricing-analysis { padding: 0.5rem 0; }

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #f0f5ff;
  border-radius: 10px;
  border: 1px solid #c7d9f8;
  margin-bottom: 1.25rem;
}

.price-value { font-size: 1.8rem; font-weight: 800; color: #1a56ff; line-height: 1; }
.price-label { font-size: 0.75rem; color: #475569; font-weight: 500; margin-top: 0.2rem; }

.price-bar {
  position: relative;
  height: 16px;
  background: #f0f5ff;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}

/* ---- LOCKED CARD ---------------------------------------------- */
.premium-locked {
  position: relative;
  overflow: hidden;
}

.premium-locked::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to bottom, transparent, var(--bg-card, #ffffff) 75%);
  pointer-events: none;
  z-index: 1;
}

.premium-lock-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 1.25rem 1rem 1.1rem;
  background: var(--bg-card, #ffffff);
}

.premium-lock-cta p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: #475569;
}

.btn-unlock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #1a56ff, #0f3acc);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,86,255,0.4);
  letter-spacing: 0.01em;
}

.btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,255,0.5);
}

/* ---- EMAIL GATE MODAL ----------------------------------------- */
.gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.gate-modal {
  background: #ffffff;
  border: 1px solid rgba(26,86,255,0.2);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(15,23,42,0.45), 0 0 40px rgba(26,86,255,0.1);
  animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}

.gate-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: #f0f5ff;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.gate-close:hover { background: #e8f0fe; color: #0f172a; }

.gate-icon {
  width: 52px; height: 52px;
  background: rgba(26,86,255,0.06);
  border: 1px solid rgba(26,86,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.gate-modal h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.5rem;
}

.gate-modal > p {
  text-align: center;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.gate-features {
  list-style: none;
  padding: 0; margin: 0 0 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.gate-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.5rem 0.75rem;
  background: #f8faff;
  border-radius: 8px;
}

.gate-features li .check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.gate-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #f8faff;
  border: 1px solid #e8f0fe;
  border-radius: 10px;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.gate-input::placeholder { color: #94a3b8; }
.gate-input:focus { outline: none; border-color: #1a56ff; background: rgba(26,86,255,0.04); }
.gate-input.error { border-color: #ef4444; }

.gate-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #1a56ff, #0f3acc);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,86,255,0.4);
  letter-spacing: 0.01em;
}

.gate-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,86,255,0.5); }
.gate-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.gate-disclaimer {
  margin-top: 0.75rem !important;
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  text-align: center;
}

/* ---- PDF UPSELL BANNER ---------------------------------------- */
.pdf-upsell-banner {
  background: linear-gradient(135deg, rgba(26,86,255,0.06), rgba(26,86,255,0.04));
  border: 1px solid rgba(26,86,255,0.2);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pdf-upsell-banner .upsell-text strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.pdf-upsell-banner .upsell-text span {
  font-size: 0.8rem;
  color: #475569;
}

.btn-pdf-upsell {
  background: #1a56ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-pdf-upsell:hover { background: #0f3acc; transform: translateY(-1px); }

/* ---- AFFILIATE BANNERS ---------------------------------------- */
.affiliate-banner {
  background: #ffffff;
  border: 1px solid #c7d9f8;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color 0.2s;
}

.affiliate-banner:hover { border-color: rgba(26,86,255,0.2); }

.aff-icon { font-size: 1.6rem; flex-shrink: 0; }

.aff-text { flex: 1; min-width: 0; }
.aff-text strong { display: block; font-size: 0.88rem; color: #0f172a; margin-bottom: 0.15rem; font-weight: 600; }
.aff-text span   { font-size: 0.78rem; color: #475569; }

.btn-affiliate {
  background: transparent;
  color: #1a56ff;
  border: 1px solid rgba(26,86,255,0.4);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-affiliate:hover { background: rgba(26,86,255,0.1); border-color: #1a56ff; text-decoration: none; }

.aff-ad-label { font-size: 0.62rem; color: #94a3b8; margin-top: 0.2rem; display: block; }

/* ---- LEGAL PAGES ---------------------------------------------- */
.legal-page { padding: 3rem 0 5rem; }

.legal-page .page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid #c7d9f8;
  margin-bottom: 2.5rem;
}

.legal-page .page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.legal-page .page-header p {
  color: #475569;
  font-size: 0.9rem;
}

.legal-toc {
  background: rgba(26,86,255,0.04);
  border: 1px solid #c7d9f8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-toc p { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 0.75rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal-toc li a { font-size: 0.85rem; color: #475569; transition: color 0.2s; }
.legal-toc li a:hover { color: #1a56ff; text-decoration: none; }

.legal-section { margin-bottom: 2.5rem; }

.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f0f5ff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(26,86,255,0.06);
  color: #1a56ff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section p { color: #475569; font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.85rem; }
.legal-section ul, .legal-section ol { color: #475569; font-size: 0.88rem; line-height: 1.7; padding-left: 1.5rem; margin: 0.5rem 0 0.85rem; }
.legal-section li { margin-bottom: 0.4rem; }
.legal-section strong { color: #1e3a6e; font-weight: 600; }

.legal-callout {
  padding: 1rem 1.1rem;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
}

.legal-callout strong { color: #f5c542; }

/* ---- PRICING PAGE --------------------------------------------- */
.pricing-hero {
  text-align: center;
  padding: 5rem 0 3rem;
  position: relative;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(26,86,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #0f172a; margin-bottom: 0.75rem; position: relative; }
.pricing-hero p  { color: #475569; font-size: 1rem; max-width: 480px; margin: 0 auto 3rem; position: relative; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: #ffffff;
  border: 1px solid #c7d9f8;
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover { border-color: rgba(26,86,255,0.3); transform: translateY(-4px); }

.pricing-card.featured {
  border-color: rgba(26,86,255,0.4);
  background: linear-gradient(160deg, #112040, #ffffff);
  box-shadow: 0 0 40px rgba(26,86,255,0.06);
}

.featured-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #1a56ff, #0f3acc);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 0.25rem; font-family: 'Outfit', sans-serif; }
.plan-price span { font-size: 1rem; color: #475569; font-family: 'Outfit', sans-serif; font-weight: 400; }
.plan-desc { font-size: 0.83rem; color: #475569; margin-bottom: 1.5rem; line-height: 1.5; }

.plan-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: #475569; }
.plan-features li .feat-check { color: #22c55e; flex-shrink: 0; font-weight: 700; }
.plan-features li .feat-cross { color: #94a3b8; flex-shrink: 0; }
.plan-features li.muted { color: #94a3b8; }

.btn-plan {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-plan-free { background: #f0f5ff; color: #475569; }
.btn-plan-free:hover { background: #e8f0fe; }

.btn-plan-paid {
  background: linear-gradient(135deg, #1a56ff, #0f3acc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,86,255,0.4);
}
.btn-plan-paid:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,255,0.5); }

.pricing-faq { margin-top: 3rem; }
.pricing-faq h2 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 1.25rem; text-align: center; }

.faq-item { border-bottom: 1px solid #f0f5ff; padding: 1.1rem 0; }
.faq-item summary { font-size: 0.9rem; font-weight: 600; color: #1e3a6e; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::after { content: '+'; color: #1a56ff; font-size: 1.1rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 0.85rem; color: #475569; line-height: 1.65; margin-top: 0.75rem; padding-left: 0.1rem; }

/* ---- COOKIE BANNER -------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #f8faff;
  border-top: 1px solid #e2ecfd;
  z-index: 8000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideUpCookie 0.4s ease;
}

@keyframes slideUpCookie { from { transform: translateY(100%); } to { transform: translateY(0); } }

.cookie-text { flex: 1; font-size: 0.82rem; color: #475569; line-height: 1.5; min-width: 200px; }
.cookie-text a { color: #1a56ff; }

.cookie-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }

.btn-cookie-accept {
  padding: 0.5rem 1.1rem;
  background: #1a56ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cookie-accept:hover { background: #0f3acc; }

.btn-cookie-decline {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #e2ecfd;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cookie-decline:hover { color: #475569; border-color: rgba(255,255,255,0.15); }

/* ---- ANIMATIONS ---------------------------------------------- */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
