/*
 * Service plans page — pricing cards, comparison table, plan hero only.
 * Site-wide font, colors, header, footer: preview.css (locked template).
 */

/* Plans header: slightly larger logo */
.plans-el-brand .brand-logo-img {
  height: 2.75rem;
  max-width: min(230px, 55vw);
}

/* Public plans content */
.plans-el-public {
  --p-primary: #0345bf;
  --p-hover: #044cd0;
  --p-dark: #1a1a2e;
  --p-light-bg: #f7f9fc;
  --p-text-gray: #555;
  --p-border: #e0e0e0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: #252525;
}

.plans-el-hero {
  background: var(--p-dark) !important;
  background-color: var(--p-dark) !important;
  color: #fff !important;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem clamp(3rem, 6vw, 4rem);
}

.plans-el-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 40rem;
  margin: 0 auto 1rem;
  color: #fff !important;
  font-family: "Nunito Sans", system-ui, sans-serif !important;
}

.plans-el-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c0c8d8 !important;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
}

.plans-el-section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
}

.plans-el-section-white {
  background: #fff;
}

.plans-el-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .plans-el-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media (max-width: 560px) {
  .plans-el-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.plans-el-card {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  /* Stretch card to row height and push button to bottom */
  display: flex;
  flex-direction: column;
}

/* Push the CTA button to the bottom of every card */
.plans-el-card > a {
  margin-top: auto;
}

.plans-el-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.plans-el-card.featured {
  background: var(--p-primary) !important;
  background-color: var(--p-primary) !important;
  color: #fff !important;
  border-color: var(--p-primary) !important;
  transform: scale(1.02);
}

.plans-el-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plans-el-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plans-el-card.featured .plans-el-badge {
  background: rgba(255, 255, 255, 0.25);
}

.plans-el-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.plans-el-card .tier-desc {
  font-size: 0.82rem;
  color: var(--p-text-gray);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.plans-el-card.featured .tier-desc {
  color: #c0c8d8;
}

.plans-el-card .price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--p-primary);
  margin-bottom: 0.2rem;
}

.plans-el-card.featured .price {
  color: #fff;
}

.plans-el-card .price-note {
  font-size: 0.72rem;
  color: #999;
  margin: 0 0 1.25rem;
}

.plans-el-card.featured .price-note {
  color: #a0a8c8;
}

.plans-el-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
}

.plans-el-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
  color: #555;
}

.plans-el-card.featured li {
  color: #e0e8f5;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.plans-el-card li:last-child {
  border-bottom: none;
}

.plans-el-btn-primary {
  display: inline-block;
  background: var(--p-primary);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.plans-el-btn-primary:hover {
  background: var(--p-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 69, 191, 0.3);
}

.plans-el-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--p-primary) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.plans-el-btn-white:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comparison toggle + table */
.plans-el-compare-wrap {
  padding-top: 0.5rem;
}

.plans-el-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1.75rem;
  background: var(--p-light-bg);
  border: 1px solid var(--p-border);
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--p-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.plans-el-toggle:hover {
  background: #eef2f8;
  border-color: #0345bf44;
}

.plans-el-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.plans-el-toggle .arrow.open {
  transform: rotate(180deg);
}

.plans-el-table-outer {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plans-el-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 760px;
  font-size: 0.88rem;
}

.plans-el-table thead tr {
  border-bottom: 2px solid var(--p-primary);
}

.plans-el-table th {
  text-align: center;
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  word-break: break-word;
}

.plans-el-table th:first-child {
  text-align: left;
  width: 28%;
}

/* Plan columns: remaining 72% split equally (4 cols = 18% each) */
.plans-el-table th:not(:first-child) {
  width: 18%;
}

.plans-el-table th.plans-el-th-featured {
  background: rgba(3, 69, 191, 0.06);
  color: var(--p-primary);
}

.plans-el-cat-row td {
  background: var(--p-light-bg);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p-primary);
  border-top: 2px solid var(--p-border);
}

.plans-el-table tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}

.plans-el-table tbody tr.alt td {
  background: #fafbfc;
}

.plans-el-table tbody tr.alt td.plans-el-fp {
  background: rgba(3, 69, 191, 0.04);
}

.plans-el-table tbody td.plans-el-fp {
  background: rgba(3, 69, 191, 0.03);
}

.plans-el-table sup {
  color: var(--p-primary);
  font-size: 0.65em;
  margin-left: 2px;
}

.plans-tc {
  text-align: center;
  font-weight: 600;
  color: #16a34a;
}

.plans-tc.no {
  color: #ccc;
  font-weight: 400;
}

.plans-tc.txt {
  color: #555;
  font-weight: 500;
  font-size: 0.8rem;
}

.plans-tc.hi {
  color: var(--p-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.plans-tc.vip {
  color: #e6960a;
  font-weight: 600;
  font-size: 0.82rem;
}

.plans-tc.qt {
  color: #999;
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
}

.plans-el-notes {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--p-light-bg);
  border-radius: 10px;
  border: 1px solid var(--p-border);
}

.plans-el-notes h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 0.65rem;
}

.plans-el-notes .fn-line {
  font-size: 0.82rem;
  color: var(--p-text-gray);
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.plans-el-notes sup {
  color: var(--p-primary);
  font-weight: 700;
}

/* Bottom CTA */
.plans-el-cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.75rem) 1.5rem;
  background: var(--p-light-bg);
}

.plans-el-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #252525;
}

.plans-el-cta p {
  font-size: 1rem;
  color: var(--p-text-gray);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
