/* ══════════════════════════════════════════════════════════
   Shiyos Technologies  –  Payment / Pricing  (payment.css)
   ══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2463eb;
  --primary-dark:  #1a4fc4;
  --primary-light: #eff4ff;
  --bg:            #f6f6f8;
  --bg-white:      #ffffff;
  --text:          #0f172a;
  --text-mid:      #475569;
  --text-muted:    #94a3b8;
  --border:        #e2e8f0;
  --radius:        1rem;
  --font:          'Inter', sans-serif;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow-lg:     0 20px 60px rgba(36,99,235,.15);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

/* ── Shared header slot ───────────────────────────────────── */
#shared-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; }

/* Glass (used by injected header) */
.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.35);
}
#mobile-menu {
  transition: max-height .4s ease, opacity .3s ease;
  max-height: 0; overflow: hidden; opacity: 0;
}
#mobile-menu.open { max-height: 600px; opacity: 1; }

/* ── Gradient text ────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════
   HERO / HEADER SECTION
   ══════════════════════════════════════════════════════════ */
.pricing-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.pricing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  margin-bottom: 1.25rem;
}
.pricing-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.pricing-hero__sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* product context pill (passed via query param) */
.product-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-mid);
}
.product-pill .material-symbols-outlined { font-size: 1rem; color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   PRICING GRID
   ══════════════════════════════════════════════════════════ */
.pricing-section { padding: 4rem 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 640px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pricing-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Plan Card ────────────────────────────────────────────── */
.plan-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  position: relative;
}
.plan-card:hover {
  box-shadow: 0 8px 32px rgba(36,99,235,.1);
  border-color: #bfdbfe;
  transform: translateY(-4px);
}
.plan-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(1.02);
  z-index: 1;
}
.plan-card--featured:hover {
  transform: translateY(-12px) scale(1.02);
}
.plan-card--dark {
  background: #0f172a;
  border-color: rgba(255,255,255,.1);
}
.plan-card--dark:hover { border-color: rgba(255,255,255,.2); }

/* popular badge */
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.popular-badge .material-symbols-outlined { font-size: .9rem; color: #fbbf24; }
.popular-badge--gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.popular-badge--gold .material-symbols-outlined { color: #fff9c4; }

/* card top row */
.plan-header { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.plan-card--dark .plan-name { color: #f8fafc; }

.plan-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.plan-badge--starter  { background: #f1f5f9; color: #64748b; }
.plan-badge--pro      { background: var(--primary-light); color: var(--primary); }
.plan-badge--scale    { background: #f8fafc; color: #334155; }

/* price */
.plan-price { display: flex; align-items: baseline; gap: .25rem; margin: 1rem 0 .5rem; }
.plan-price__amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--text);
  line-height: 1;
}
.plan-card--dark .plan-price__amount { color: #f8fafc; }
.plan-price__period { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.plan-desc { font-size: .85rem; color: var(--text-mid); line-height: 1.55; }
.plan-card--dark .plan-desc { color: #94a3b8; }

/* CTA button */
.plan-btn {
  width: 100%;
  padding: .85rem;
  border-radius: .75rem;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .2s ease;
}
.plan-btn--default {
  background: #f1f5f9;
  color: var(--text);
}
.plan-btn--default:hover { background: var(--primary); color: #fff; }

.plan-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(36,99,235,.35);
}
.plan-btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.plan-btn--dark {
  background: #f8fafc;
  color: #0f172a;
}
.plan-btn--dark:hover { background: #e2e8f0; }

/* feature list */
.plan-features { display: flex; flex-direction: column; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.plan-card--dark .plan-features { border-color: rgba(255,255,255,.08); }

.feature-row { display: flex; align-items: center; gap: .65rem; font-size: .84rem; color: var(--text); }
.plan-card--dark .feature-row { color: #cbd5e1; }
.feature-row--crossed { color: var(--text-muted); text-decoration: line-through; }
.plan-card--dark .feature-row--crossed { color: #475569; }
.feature-row .material-symbols-outlined { font-size: 1.05rem; flex-shrink: 0; }
.check--green   { color: #22c55e; font-variation-settings: 'FILL' 1; }
.check--blue    { color: var(--primary); font-variation-settings: 'FILL' 1; }
.check--white   { color: #94a3b8; font-variation-settings: 'FILL' 1; }
.check--crossed { color: #cbd5e1; font-variation-settings: 'FILL' 0; }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════ */
.how-section {
  padding: 4rem 0 5rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.section-sub { font-size: .95rem; color: var(--text-mid); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  position: relative;
}
@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(4, 1fr); }
  /* connector line */
  .how-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: var(--border);
    z-index: 0;
  }
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--bg);
  border-radius: 1rem;
  border: 1.5px solid var(--border);
  position: relative;
  z-index: 1;
  transition: border-color .2s, box-shadow .2s;
}
.how-step:hover { border-color: #bfdbfe; box-shadow: 0 4px 20px rgba(36,99,235,.08); }

.how-step__icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.how-step__num {
  position: absolute;
  top: -.65rem;
  right: -.65rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step__title { font-size: .9rem; font-weight: 800; margin-bottom: .4rem; }
.how-step__desc  { font-size: .77rem; color: var(--text-mid); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════ */
.cta-section { padding: 3rem 0 5rem; }
.cta-banner {
  background: var(--primary-light);
  border: 1.5px solid #bfdbfe;
  border-radius: 2rem;
  padding: 3.5rem 2rem;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.cta-banner__quote {
  font-style: italic;
  color: var(--text-mid);
  font-size: .92rem;
  margin-bottom: 2.5rem;
}
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 1rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(36,99,235,.35);
  transition: all .2s ease;
}
.cta-banner__btn:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.02); }

/* payment partners */
.payment-partners {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.payment-partners__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .3s, filter .3s;
}
.payment-logos:hover { opacity: 1; filter: none; }
.payment-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  font-size: .95rem;
  color: var(--text);
}
.payment-logo .material-symbols-outlined { font-size: 1.75rem; }

/* ── Toast ────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2rem; right: 2rem; z-index: 9999;
  background: #1e293b; color: #fff;
  padding: .9rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  font-size: .85rem; font-weight: 600;
  transform: translateY(120%);
  transition: transform .35s ease;
  max-width: 340px;
}
#toast.show { transform: translateY(0); }

/* ── Footer ───────────────────────────────────────────────── */
.pricing-footer {
  background: #0f172a;
  color: rgba(255,255,255,.4);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pricing-footer a { color: var(--primary); text-decoration: none; }
.pricing-footer a:hover { text-decoration: underline; }
.pricing-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
@media (min-width: 640px) {
  .pricing-footer__inner { flex-direction: row; justify-content: space-between; }
}
.footer-links { display: flex; gap: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .plan-card--featured { transform: none; }
  .plan-card--featured:hover { transform: translateY(-4px); }
  .pricing-hero { padding: 2.5rem 1rem 2rem; }
}

/* ── Gold / Quarterly card ────────────────────────────────── */
.plan-card--gold {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
}
.plan-card--gold:hover {
  box-shadow: 0 8px 32px rgba(217,119,6,.15);
  border-color: #f59e0b;
  transform: translateY(-4px);
}
.plan-badge--gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.popular-badge--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.plan-btn--gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217,119,6,.35);
}
.plan-btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Credit Box ───────────────────────────────────────────── */
.credit-box {
  background: var(--primary-light);
  border: 1.5px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.credit-box--gold {
  background: #fef9c3;
  border-color: #fcd34d;
}

.credit-box__header {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.credit-box__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  flex: 1;
}
.credit-box__count {
  font-size: .88rem;
  font-weight: 900;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 999px;
  padding: .15rem .65rem;
}
.credit-box__count--gold { color: #92400e; border-color: #fcd34d; }

.credit-box__note {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.credit-box__extra-label {
  font-size: .73rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Credit add buttons */
.credit-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.credit-btn {
  padding: .3rem .7rem;
  border-radius: .5rem;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  transition: all .15s ease;
}
.credit-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.credit-btn--gold {
  border-color: #f59e0b;
  color: #92400e;
}
.credit-btn--gold:hover {
  background: #f59e0b;
  color: #fff;
}
.credit-btn--reset {
  border-color: #cbd5e1;
  color: var(--text-muted);
  background: transparent;
}
.credit-btn--reset:hover {
  background: #f1f5f9;
  color: var(--text);
}

/* Animated total row */
.credit-box__total {
  font-size: .78rem;
  color: var(--text-mid);
  background: rgba(255,255,255,.8);
  border-radius: .5rem;
  padding: .4rem .65rem;
  border: 1px solid rgba(0,0,0,.06);
  animation: fadeInUp .25s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #bfdbfe; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

