/* ==========================================================================
   Bature Digital — Marketing-as-a-Service additions
   ========================================================================== */

/* ============================
   Hero badge under CTAs
   ============================ */
.hero-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  background: rgba(59, 14, 106, .04);
  border: 1px solid var(--brand-purple-100);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .01em;
}
.hero-badge strong {
  color: var(--brand-purple-700);
  font-weight: 700;
}
.hero-badge .sep {
  width: 4px; height: 4px; border-radius: 99px;
  background: var(--brand-mustard-500);
  display: inline-block;
}
.hero-badge.hero-badge-link {
  text-decoration: none;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .22s var(--ease-out);
}
.hero-badge.hero-badge-link:hover {
  background: rgba(59, 14, 106, .08);
  border-color: var(--brand-purple-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================
   Module / Channel cards (Build Your Stack)
   ============================ */
.module-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 28px 26px;
  position: relative;
  overflow: hidden;
  transition: all .32s var(--ease-out);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 340px;
}
.module-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-purple-700), var(--brand-mustard-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--ease-out);
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-purple-100);
}
.module-card:hover::before { transform: scaleX(1); }

.module-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.module-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-purple-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-card.feature .module-icon { background: var(--brand-mustard-500); color: var(--brand-purple-900); }

.module-price {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: var(--fg-subtle);
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}
.module-price strong {
  display: block;
  font-family: var(--font-body);
  font-size: 18px; font-weight: 700;
  color: var(--brand-purple-700);
  letter-spacing: -.01em;
}

.module-card h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 20px; line-height: 1.2; letter-spacing: -.01em;
  color: var(--fg); margin: 0;
}
.module-prop {
  font-size: 14px; line-height: 1.55; color: var(--fg-muted);
  margin: 0;
}
.module-bullets {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px;
}
.module-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--fg);
  line-height: 1.5;
}
.module-bullets li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--brand-mustard-500);
  margin-top: 8px;
}

.module-add {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--fg-subtle);
  letter-spacing: .02em;
  transition: color .22s var(--ease-out);
}
.module-add .add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--fg-muted);
  font-size: 12px; font-weight: 600;
  letter-spacing: .02em;
  transition: all .22s var(--ease-out);
}
.module-add .add-btn .plus {
  width: 14px; height: 14px;
  border-radius: 99px;
  background: var(--fg-subtle); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: all .22s var(--ease-out);
}
.module-card:hover .module-add { color: var(--brand-purple-700); }
.module-card:hover .module-add .add-btn {
  background: var(--brand-mustard-500);
  color: var(--brand-purple-900);
}
.module-card:hover .module-add .add-btn .plus {
  background: var(--brand-purple-900);
  color: var(--brand-mustard-500);
  transform: rotate(90deg);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.modules-grid .module-card:nth-child(4),
.modules-grid .module-card:nth-child(5) {
  grid-column: span 1;
}
@media (min-width: 1081px) {
  .modules-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .modules-grid .module-card { grid-column: span 2; }
  /* 5 cards on a 6-col grid: top row 3×2, bottom row centered 2×2+offset */
  .modules-grid .module-card:nth-child(4) { grid-column: 2 / span 2; }
  .modules-grid .module-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ============================
   How the Subscription Works
   ============================ */
.subscription {
  padding: var(--space-13) 0;
  background: var(--neutral-50);
  border-top: 1px solid var(--border);
}
.sub-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--space-10);
  position: relative;
}
.sub-steps::before {
  content: "";
  position: absolute;
  left: 12.5%; right: 12.5%; top: 28px;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent,
    var(--brand-purple-200) 12%,
    var(--brand-purple-200) 88%,
    transparent);
}
.sub-step {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 4px;
}
.sub-step-num {
  width: 56px; height: 56px;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--brand-purple-200);
  color: var(--brand-purple-700);
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(59, 14, 106, .08);
}
.sub-step-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 99px;
  border: 1px dashed var(--brand-mustard-300);
  opacity: .7;
}
.sub-step h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 17px; line-height: 1.25;
  color: var(--fg); margin: 0;
  letter-spacing: -.01em;
}
.sub-step p {
  font-size: 14px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.sub-trust {
  margin-top: var(--space-10);
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 10px 28px;
  padding: 18px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
  font-size: 13.5px;
  color: var(--fg-muted);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.sub-trust span {
  display: inline-flex; align-items: center; gap: 8px;
}
.sub-trust span:not(:last-child)::after {
  content: "·";
  color: var(--brand-mustard-500);
  font-weight: 800;
  margin-left: 28px;
}
.sub-trust .check {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--brand-purple-700);
}

/* ============================
   Comparison table — Why Subscription
   ============================ */
.compare {
  padding: var(--space-13) 0;
  background: var(--bg);
}
.compare-table {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-cell {
  padding: 22px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  font-size: 14.5px; line-height: 1.45;
  color: var(--fg-muted);
}
.compare-cell.row-label {
  font-weight: 600;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--neutral-50);
}
.compare-row:last-child .compare-cell { border-bottom: 0; }
.compare-cell.col-head {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  text-transform: none;
  letter-spacing: -.01em;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 28px 22px;
  flex-direction: column; align-items: flex-start; gap: 4px;
}
.compare-cell.col-head .col-sub {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* Highlighted Bature column */
.compare-table .col-bature {
  position: relative;
  background: linear-gradient(180deg, var(--brand-purple-700) 0%, var(--brand-purple-900) 100%);
  color: #fff;
}
.compare-cell.col-bature {
  border-bottom-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  position: relative;
}
.compare-cell.col-bature.col-head {
  background: linear-gradient(180deg, var(--brand-purple-700) 0%, var(--brand-purple-800) 100%);
  color: #fff;
  border-bottom: 1.5px solid rgba(241,197,24,.3);
  font-size: 17px;
}
.compare-cell.col-bature.col-head .col-sub {
  color: var(--brand-mustard-500);
}
.compare-cell.col-bature .check-mark {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-right: 10px;
  color: var(--brand-mustard-500);
}
/* Top mustard accent on bature column */
.compare-table .col-bature-top {
  position: absolute;
  pointer-events: none;
}
.compare-cell.col-bature.col-head::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--brand-mustard-500);
}

.compare-cell .x-mark,
.compare-cell .ok-mark,
.compare-cell .meh-mark {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.compare-cell .x-mark   { background: rgba(212, 58, 47, .12); color: var(--danger); }
.compare-cell .meh-mark { background: rgba(229, 162, 11, .14); color: var(--warning); }
.compare-cell .ok-mark  { background: rgba(31, 168, 102, .14); color: var(--success); }

/* ============================
   Plans preview
   ============================ */
.plans {
  padding: var(--space-13) 0;
  background: var(--neutral-50);
  border-top: 1px solid var(--border);
}
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: all .32s var(--ease-out);
  position: relative;
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-purple-100);
}
.plan-name {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-purple-700);
}
.plan-card h3 {
  font-family: var(--font-body); font-weight: 800;
  font-size: 26px; line-height: 1.15; letter-spacing: -.015em;
  color: var(--fg); margin: 0;
}
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 4px 0 4px;
}
.plan-price .from {
  font-size: 13px; color: var(--fg-subtle);
  letter-spacing: .04em;
  font-weight: 500;
}
.plan-price .num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 48px; line-height: 1; letter-spacing: -.03em;
  color: var(--brand-purple-700);
}
.plan-price .num .curr { font-size: .55em; vertical-align: top; margin-right: 2px; }
.plan-price .per { font-size: 14px; color: var(--fg-subtle); letter-spacing: .02em; }
.plan-card p {
  font-size: 15px; line-height: 1.6; color: var(--fg-muted);
  margin: 0;
  flex: 1;
}
.plan-cta-line {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-subtle);
}
.plan-cta-line .channels {
  display: flex; gap: 4px;
}
.plan-cta-line .channels .ch {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--brand-purple-100);
  color: var(--brand-purple-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.plan-card.plan-popular .plan-cta-line .channels .ch {
  background: rgba(241,197,24,.18);
  color: var(--brand-mustard-700);
}

/* Most-popular highlight */
.plan-card.plan-popular {
  background: linear-gradient(180deg, var(--brand-purple-700) 0%, var(--brand-purple-900) 100%);
  color: #fff;
  border-color: var(--brand-mustard-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-card.plan-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px; left: 32px;
  padding: 5px 14px;
  background: var(--brand-mustard-500);
  color: var(--brand-purple-900);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px;
  box-shadow: var(--shadow-mustard);
}
.plan-card.plan-popular .plan-name { color: var(--brand-mustard-500); }
.plan-card.plan-popular h3 { color: #fff; }
.plan-card.plan-popular p { color: rgba(255,255,255,.78); }
.plan-card.plan-popular .plan-price .num { color: var(--brand-mustard-500); }
.plan-card.plan-popular .plan-price .from,
.plan-card.plan-popular .plan-price .per { color: rgba(255,255,255,.65); }
.plan-card.plan-popular .plan-cta-line {
  border-top-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
}
.plan-card.plan-popular:hover {
  transform: translateY(-12px);
}

.plans-cta-row {
  margin-top: var(--space-9);
  display: flex; justify-content: center;
}

/* ============================
   Responsive — MaaS additions
   ============================ */
@media (max-width: 1080px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table {
    grid-template-columns: 1fr;
  }
  .compare-cell {
    border-bottom: 1px solid var(--border);
  }
  .compare-cell.col-head {
    border-top: 1.5px solid var(--border);
  }
  .compare-cell.col-bature.col-head::before { display: none; }
  .compare-cell.col-bature {
    border-left: 4px solid var(--brand-mustard-500);
  }
  .plans-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan-card.plan-popular { transform: none; }
  .plan-card.plan-popular:hover { transform: translateY(-4px); }
  .sub-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .sub-steps::before { display: none; }
}
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
  .sub-steps { grid-template-columns: 1fr; }
  .sub-trust { border-radius: 18px; flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .sub-trust span:not(:last-child)::after { display: none; }
  .compare { padding: var(--space-11) 0; }
  .subscription, .plans { padding: var(--space-11) 0; }
}
