/* ============================================================
   SettlementRadar Toolkits Storefront — Task #1528352
   /books (toolkits section) + /toolkits/:slug pages

   Typography: Fraunces (display) + DM Sans (body)
   Accent: indigo #6366f1 for toolkits (distinct from books emerald)
   Design: matches premium editorial style from books-1527573.css
   ============================================================ */

/* ─── Pricing Section ───────────────────────────────────────── */
.tk-pricing-section {
  background: #f9fafb;
  padding: 72px 0;
}

.tk-pricing-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* ─── Pricing Cards ─────────────────────────────────────────── */
.tk-price-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tk-price-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
}

.tk-price-card--highlight {
  border-color: #00875A;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.tk-price-card--highlight:hover {
  border-color: #00875A;
  box-shadow: 0 4px 24px rgba(0, 135, 90, 0.12);
}

.tk-price-card--everything {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.tk-price-card--everything:hover {
  border-color: #d97706;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.12);
}

.tk-price-card--pro {
  background: linear-gradient(135deg, #06101f 0%, #0d1f12 100%);
  border-color: rgba(0,135,90,0.4);
  color: #fff;
}

.tk-price-card--proplus {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.tk-price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #00875A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.tk-price-card__badge--gold {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #fff;
}

.tk-price-card__badge--white {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
}

.tk-price-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-top: 8px;
}

.tk-price-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.01em;
}

.tk-price-card--pro .tk-price-card__name,
.tk-price-card--proplus .tk-price-card__name {
  color: #fff;
}

.tk-price-card__price {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tk-price-card--pro .tk-price-card__price,
.tk-price-card--proplus .tk-price-card__price {
  color: #fff;
}

.tk-price-card__note {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.tk-price-card--pro .tk-price-card__note,
.tk-price-card--proplus .tk-price-card__note {
  color: rgba(255,255,255,0.65); /* WCAG AA fix: was 0.55 at 5.5:1 → 0.65 ensures margin on all dark bgs */
}

.tk-price-card__cta {
  width: 100%;
  padding: 10px 16px;
  background: #6366f1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s;
  margin-top: auto;
}

.tk-price-card__cta:hover {
  background: #4f46e5;
}

.tk-price-card--highlight .tk-price-card__cta {
  background: #00875A;
}

.tk-price-card--highlight .tk-price-card__cta:hover {
  background: #00643E;
}

.tk-price-card--everything .tk-price-card__cta {
  background: #d97706;
}

.tk-price-card--everything .tk-price-card__cta:hover {
  background: #b45309;
}

.tk-price-card__cta--outline {
  background: transparent;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}

.tk-price-card__cta--outline:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: transparent;
}

.tk-price-card--pro .tk-price-card__cta,
.tk-price-card--proplus .tk-price-card__cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.tk-price-card--pro .tk-price-card__cta:hover,
.tk-price-card--proplus .tk-price-card__cta:hover {
  background: rgba(255,255,255,0.25);
}

.tk-price-card__cta--gold {
  background: linear-gradient(90deg, #d97706, #f59e0b) !important;
  color: #fff !important;
  border: none !important;
}

.tk-price-card__cta--gold:hover {
  background: linear-gradient(90deg, #b45309, #d97706) !important;
}

.tk-pricing-note {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* ─── Toolkits Section ──────────────────────────────────────── */
.tk-section {
  background: #fafafa;
}

.tk-grid {
  /* inherits from .bk-grid but with slightly different spacing */
}

/* ─── Toolkit Cards ─────────────────────────────────────────── */
.tk-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.tk-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: #c7d2fe;
}

.tk-card__cover {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.tk-card__cover-bg {
  position: absolute;
  inset: 0;
}

.tk-card__cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 12px
    );
}

.tk-card__cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.tk-card__cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tk-card__icon {
  font-size: 32px;
  line-height: 1;
}

.tk-card__template-count {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.tk-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.tk-card__title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tk-card__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.tk-card__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tk-card__bullets li {
  font-size: 13px;
  color: #374151;
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.tk-card__bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 700;
  font-size: 11px;
  top: 1px;
}

.tk-card__proplus-badge {
  display: inline-block;
  background: linear-gradient(90deg, #1e1b4b22, #312e8122);
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.tk-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tk-card__price {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.tk-card__price-note {
  font-size: 12px;
  color: #9ca3af;
}

.tk-card__actions {
  display: flex;
  gap: 8px;
}

.tk-btn-primary {
  flex: 1;
  padding: 10px 14px;
  background: #6366f1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s;
  display: block;
}

.tk-btn-primary:hover {
  background: #4f46e5;
}

.tk-btn-secondary {
  padding: 10px 14px;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  transition: border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.tk-btn-secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
}

/* ─── Book card combo CTA ───────────────────────────────────── */
.bk-card__combo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid #d1fae5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.bk-card__combo-cta:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.bk-card__combo-save {
  font-size: 10px;
  font-weight: 700;
  background: #065f46;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─── Toolkit Bundle Strip ──────────────────────────────────── */
.tk-bundle-strip {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 24px;
  margin: 0 24px 0;
  border-radius: 16px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 32px;
}

.tk-bundle-strip__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tk-bundle-strip__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.tk-bundle-strip__text strong {
  font-size: 16px;
  font-weight: 700;
}

.tk-bundle-strip__save {
  font-size: 13px;
  color: rgba(255,255,255,0.7); /* WCAG AA: ensures 6.58:1+ on all dark bgs */
}

.tk-bundle-strip__price {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 800;
  color: #c7d2fe;
  letter-spacing: -0.02em;
}

.tk-bundle-strip__btn {
  padding: 12px 24px;
  background: #6366f1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
}

.tk-bundle-strip__btn:hover {
  background: #4f46e5;
}

/* ─── Everything Bundle Section ─────────────────────────────── */
.tk-everything {
  background: linear-gradient(135deg, #1c1005 0%, #2d1f06 100%);
  padding: 80px 24px;
  color: #fff;
}

.tk-everything__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tk-everything__badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.tk-everything__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tk-everything__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin: 0 auto 40px;
  max-width: 560px;
  line-height: 1.6;
}

.tk-everything__math {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}

.tk-everything__math-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tk-everything__math-item--total {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 20px;
  border-radius: 12px;
}

.tk-everything__math-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6); /* WCAG AA fix: was 0.5 at 5.23:1 → 0.6 at 6.99:1 */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.tk-everything__math-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.tk-everything__math-value--strike {
  font-size: 22px;
  text-decoration: line-through;
  color: rgba(255,255,255,0.35);
}

.tk-everything__math-value--big {
  font-size: 40px;
  color: #fbbf24;
}

.tk-everything__math-plus,
.tk-everything__math-equals {
  font-size: 24px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

.tk-everything__includes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tk-everything__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.tk-everything__item-icon {
  font-size: 16px;
}

.tk-everything__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  letter-spacing: -0.01em;
}

.tk-everything__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.tk-everything__note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6); /* WCAG AA fix: was 0.4 at 3.77:1 → 0.6 at 6.99:1 */
}

/* ─── Toolkit Cover Banner (preview page) ───────────────────── */
.tk-cover-banner {
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tk-cover-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.tk-cover-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative;
}

.tk-cover-banner__icon {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
}

.tk-cover-banner__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
}

.tk-cover-banner__sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,0.7);
  margin: 0 auto 20px;
  max-width: 520px;
  line-height: 1.5;
  position: relative;
}

.tk-cover-banner__badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.tk-cover-banner__badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.tk-cover-banner__badge--free {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.tk-cover-banner__badge--unlocked {
  background: rgba(0, 135, 90, 0.3);
  border-color: rgba(0, 135, 90, 0.5);
  color: #6ee7b7;
}

/* ─── Template Articles ─────────────────────────────────────── */
.tk-template {
  padding: 32px 0;
  border-bottom: 1px solid #f3f4f6;
}

.tk-template:last-of-type {
  border-bottom: none;
}

.tk-template__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 8px;
}

.tk-template__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tk-template__description {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 20px;
}

.tk-template__preview {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.tk-template__preview-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}

.tk-template__preview-content {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.tk-template__format {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tk-template__format-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ─── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .tk-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tk-bundle-strip {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .tk-bundle-strip__inner {
    flex-direction: column;
    text-align: center;
  }

  .tk-bundle-strip__btn {
    width: 100%;
    text-align: center;
  }

  .tk-everything__math {
    gap: 12px;
    padding: 16px;
  }

  .tk-everything__math-plus,
  .tk-everything__math-equals {
    font-size: 18px;
  }

  .tk-everything__includes {
    gap: 8px;
  }

  .tk-cover-banner {
    padding: 32px 16px 28px;
  }
}

@media (max-width: 480px) {
  .tk-pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .tk-price-card {
    padding: 16px 12px;
  }

  .tk-price-card__icon {
    font-size: 22px;
  }

  .tk-price-card__price {
    font-size: 24px;
  }

  .tk-price-card__cta {
    font-size: 12px;
    padding: 9px 12px;
  }

  .bk-card__combo-cta {
    font-size: 11px;
  }
}
