/* eTenders Pricing Table — Frontend Styles
   Brand color: #8E9100 (olive gold)
   Theme: Light / clean
   Font: Inter */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Root variables (light theme default) ───────────────────── */
.ept-root {
  --ept-brand:      #8E9100;
  --ept-brand-lt:   #a0a400;
  --ept-brand-bg:   #f5f6e8;
  --ept-brand-dim:  #6b6e00;
  --ept-bg:         #f8f9fa;
  --ept-surface:    #ffffff;
  --ept-surface-2:  #f1f2e9;
  --ept-border:     #e4e5d0;
  --ept-border-2:   #c8ca90;
  --ept-muted:      #9a9c7a;
  --ept-text:       #1a1b0e;
  --ept-text-dim:   #6b6d52;
  --ept-radius:     18px;
  --ept-font:       'Inter', sans-serif;
  --ept-shadow:     0 4px 24px rgba(142,145,0,.10);
  --ept-shadow-lg:  0 16px 48px rgba(142,145,0,.16);
  --ept-glow:       0 0 0 4px rgba(142,145,0,.10);
}

/* dark override still available if admin selects dark */
.ept-root.ept-dark {
  --ept-bg:         #0c0d07;
  --ept-surface:    #121408;
  --ept-surface-2:  #1a1c0d;
  --ept-border:     rgba(142,145,0,.14);
  --ept-border-2:   rgba(142,145,0,.30);
  --ept-muted:      #5a5c3a;
  --ept-text:       #edeee0;
  --ept-text-dim:   #888a60;
  --ept-shadow:     0 4px 24px rgba(0,0,0,.40);
  --ept-shadow-lg:  0 16px 48px rgba(0,0,0,.55);
  --ept-glow:       0 0 0 4px rgba(142,145,0,.12);
}

/* ── Wrapper ────────────────────────────────────────────────── */
.ept-root {
  background: var(--ept-bg);
  font-family: var(--ept-font);
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle top-left brand wash */
.ept-root::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%,   rgba(142,145,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(142,145,0,.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────────── */
.ept-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

.ept-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ept-brand-dim);
  background: var(--ept-brand-bg);
  border: 1px solid var(--ept-border-2);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.ept-header__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ept-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.ept-header__headline {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--ept-text);
  line-height: 1.1;
  letter-spacing: -.8px;
  margin: 0 0 16px;
}

.ept-header__headline span {
  color: var(--ept-brand);
}

.ept-header__sub {
  color: var(--ept-text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* ── Grid ───────────────────────────────────────────────────── */
.ept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Card ───────────────────────────────────────────────────── */
.ept-card {
  background: var(--ept-surface);
  border: 1.5px solid var(--ept-border);
  border-radius: var(--ept-radius);
  padding: 30px 24px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: ept-fade-in .45s ease backwards;
}

.ept-card:nth-child(1) { animation-delay: .04s; }
.ept-card:nth-child(2) { animation-delay: .08s; }
.ept-card:nth-child(3) { animation-delay: .12s; }
.ept-card:nth-child(4) { animation-delay: .16s; }
.ept-card:nth-child(5) { animation-delay: .20s; }

@keyframes ept-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ept-shadow-lg);
  border-color: var(--ept-border-2);
}

/* Featured card */
.ept-card--featured {
  background: #8E9100;
  border: 1.5px solid #7a7c00;
  box-shadow: var(--ept-shadow-lg);
  transform: scale(1.04);
  z-index: 2;
}

.ept-card--featured:hover {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 24px 60px rgba(142,145,0,.30);
}

/* ── Badge ──────────────────────────────────────────────────── */
.ept-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #8E9100;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1.5px solid #c8ca90;
  box-shadow: 0 2px 8px rgba(142,145,0,.15);
}

/* ── Duration / Name ────────────────────────────────────────── */
.ept-duration {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ept-brand-dim);
  margin-bottom: 4px;
  opacity: .85;
}

.ept-card--featured .ept-duration {
  color: rgba(255,255,255,.75);
}

.ept-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ept-text);
  letter-spacing: -.3px;
  margin-bottom: 22px;
  line-height: 1.2;
}

.ept-card--featured .ept-name {
  color: #fff;
}

/* ── Price ──────────────────────────────────────────────────── */
.ept-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ept-border);
}

.ept-card--featured .ept-price-wrap {
  border-bottom-color: rgba(255,255,255,.25);
}

.ept-price {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.ept-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--ept-brand);
  margin-top: 4px;
  line-height: 1;
}

.ept-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--ept-text);
  line-height: 1;
  letter-spacing: -2px;
}

.ept-card--featured .ept-currency,
.ept-card--featured .ept-amount {
  color: #fff;
}

/* ── Savings pill ────────────────────────────────────────────── */
.ept-savings {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #4a6000;
  background: #eef2c2;
  border: 1px solid #c8cc6a;
  padding: 4px 12px;
  border-radius: 100px;
}

.ept-savings::before {
  content: '↓';
  font-size: 12px;
  font-weight: 800;
}

.ept-card--featured .ept-savings {
  color: #7a7c00;
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.6);
}

/* ── Features ───────────────────────────────────────────────── */
.ept-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ept-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 450;
}

.ept-feature--on  { color: var(--ept-text); }
.ept-feature--off { color: var(--ept-muted); text-decoration: line-through; text-decoration-color: var(--ept-border-2); }

.ept-card--featured .ept-feature--on  { color: #fff; }
.ept-card--featured .ept-feature--off { color: rgba(255,255,255,.45); text-decoration-color: rgba(255,255,255,.25); }

.ept-feature__icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  margin-top: 1px;
}

.ept-feature--on  .ept-feature__icon { background: rgba(142,145,0,.14); color: var(--ept-brand); }
.ept-feature--off .ept-feature__icon { background: rgba(0,0,0,.05);     color: var(--ept-muted); }

.ept-card--featured .ept-feature--on  .ept-feature__icon { background: rgba(255,255,255,.22); color: #fff; }
.ept-card--featured .ept-feature--off .ept-feature__icon { background: rgba(255,255,255,.10); color: rgba(255,255,255,.45); }

/* ── CTA Button ─────────────────────────────────────────────── */
.ept-btn-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--ept-font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1px;
  padding: 13px 20px;
  border-radius: 10px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ept-btn-cta--default {
  background: var(--ept-brand-bg);
  color: var(--ept-brand-dim);
  border: 1.5px solid var(--ept-border-2);
}

.ept-btn-cta--default:hover {
  background: var(--ept-brand);
  color: #fff;
  border-color: var(--ept-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142,145,0,.25);
}

.ept-btn-cta--featured {
  background: #fff;
  color: #7a7c00;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.ept-btn-cta--featured:hover {
  background: #f5f6e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

/* ── Note ───────────────────────────────────────────────────── */
.ept-note {
  text-align: center;
  color: var(--ept-text-dim);
  font-size: 13px;
  line-height: 1.7;
  max-width: 600px;
  margin: 44px auto 0;
  padding: 18px 24px;
  background: var(--ept-surface);
  border: 1.5px solid var(--ept-border);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.ept-note a { color: var(--ept-brand); text-decoration: none; font-weight: 600; }
.ept-note a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ept-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .ept-card--featured { transform: scale(1); }
  .ept-card--featured:hover { transform: translateY(-5px); }
}

@media (max-width: 600px) {
  .ept-root { padding: 44px 14px 52px; }
  .ept-grid { grid-template-columns: 1fr; gap: 12px; }
  .ept-header { margin-bottom: 36px; }
}
