/* ============================================================
   Pricing - audience switch, member view, creator plans,
   top-ups, how minutes work, FAQ, contact
   ============================================================ */

/* ---------- audience switch (member ⇄ circle creator) ----------
   Two complete page bodies; the switch decides which one exists. */
.aud-panel[hidden] { display: none; }

/* sits above the headline, so the gap below it is what separates the two */
.aud-switch {
  margin: 0 auto clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.aud-switch-label {
  font: 700 0.74rem/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
/* light-background variant of the dark .audience-toggle in main.css */
.audience-toggle.light {
  background: var(--paper-soft);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.audience-toggle.light button { color: var(--ink-dim); }
.audience-toggle.light button:hover { color: var(--ink-soft); }
.audience-toggle.light button.on { color: #fff; }
.audience-toggle.light .thumb {
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(107, 93, 255, 0.35);
}

/* ---------- hero CTA (member view) ---------- */
.hero-cta {
  margin-top: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-cta-note { font-size: 0.82rem; color: var(--ink-dim); }

/* ---------- member view: the four steps ---------- */
.journey-band { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 38px);
}
.j-step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.j-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.j-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 800 0.9rem var(--font-head);
  box-shadow: 0 6px 16px rgba(107, 93, 255, 0.35);
  margin-bottom: 13px;
}
.j-step h3 { font-size: 0.97rem; font-weight: 800; }
.j-step p { margin-top: 6px; font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- member view: the one exception ---------- */
.exception-facts {
  list-style: none;
  max-width: 660px;
  margin: clamp(24px, 3vw, 34px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exception-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.exception-facts li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.faq-band { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans-note a { color: var(--blue); font-weight: 700; }
.plans-note a:hover { color: var(--violet); }

/* ---------- plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: var(--gap-block);
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  box-shadow: 0 18px 44px rgba(107, 93, 255, 0.22);
  transform: scale(1.04);
  z-index: 1;
}
.plan.featured:hover { transform: scale(1.04) translateY(-5px); }
.plan .ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font: 700 0.68rem/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(107, 93, 255, 0.4);
}
.plan h3 { font-size: 1.05rem; font-weight: 800; }
.plan .for { font-size: 0.75rem; color: var(--ink-dim); margin-top: 4px; min-height: 2.2em; }
.plan .price { margin: 14px 0 2px; font: 800 2rem/1 var(--font-head); }
.plan .price small { font: 600 0.8rem var(--font-body); color: var(--ink-dim); }
.plan .mins {
  font: 700 0.82rem var(--font-head);
  color: var(--blue);
  background: var(--grad-soft);
  border-radius: 9px;
  padding: 9px 12px;
  margin: 14px 0;
  text-align: center;
}
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { font-size: 0.8rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.plan li.na { color: var(--ink-dim); opacity: 0.65; }
.plan li.na::before { content: "-"; color: var(--ink-dim); }
.plan .btn { width: 100%; margin-top: 18px; }
.plans-note { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--ink-dim); }

/* compare table */
.compare-toggle { display: flex; justify-content: center; margin-top: 22px; }
.compare-wrap { overflow-x: auto; margin-top: 22px; display: none; }
.compare-wrap.open { display: block; animation: fade-slide 0.4s ease; }
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--paper-soft); }
.compare th { font: 700 0.85rem var(--font-head); background: var(--paper-soft); }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 600; color: var(--ink-soft); }
.compare th.feat { color: var(--blue); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: var(--ink-dim); }

/* ---------- top-ups ---------- */
.topup-band { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topup-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: var(--gap-block);
}
.topup {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  /* One gap governs the whole card, so icon -> name -> price -> minutes ->
     badge share a single rhythm instead of each carrying its own margin. */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.topup:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(107, 93, 255, 0.4); }
.topup h3 { font-size: 0.95rem; font-weight: 800; }
.topup .t-price { font: 800 1.5rem/1 var(--font-head); margin: 0; }
.topup .t-mins { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.topup .t-value {
  display: inline-block;
  margin: 2px 0 0;
  font: 700 0.68rem/1 var(--font-head);
  color: #047857;
  background: var(--green-soft);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 5px 10px;
  border-radius: 99px;
}
.topup.best {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #34d399, #4a72ff) border-box;
  border: 2px solid transparent;
}
.topup-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.topup-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.topup-note b { display: block; font: 700 0.92rem var(--font-head); color: var(--ink); margin-bottom: 6px; }

/* ---------- how minutes work ---------- */
.minutes-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  margin-top: 20px;
}
.minutes-copy .lead { margin-top: 18px; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.minutes-copy .lead b { color: var(--ink); }
.min-facts { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.min-fact { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.min-fact .ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--grad-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.min-fact .ico svg { width: 17px; height: 17px; }
.min-fact b { color: var(--ink); }

/* usage-order pipeline */
.pipeline {
  background: var(--deep);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(24px, 3.4vw, 38px);
  position: relative;
  overflow: hidden;
}
.pipeline::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(191, 72, 255, 0.3);
  filter: blur(70px);
  right: -60px; top: -60px;
}
.pipeline h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 22px; position: relative; }
.pipe-step { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.pipe-step:last-child { padding-bottom: 0; }
.pipe-step::before {
  content: "";
  position: absolute;
  left: 17px; top: 38px; bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.6), rgba(167, 139, 250, 0.1));
}
.pipe-step:last-child::before { display: none; }
.pipe-step .p-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font: 800 0.95rem var(--font-head);
  box-shadow: 0 6px 16px rgba(107, 93, 255, 0.45);
  position: relative;
  z-index: 1;
}
.pipe-step h4 { font-size: 0.95rem; font-weight: 700; }
.pipe-step p { margin-top: 4px; font-size: 0.83rem; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }

/* ---------- transaction fee ---------- */
.fee-band { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fee-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.fee-copy .lead { margin-top: 18px; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.fee-copy .lead b { color: var(--ink); }
.fee-table { display: flex; flex-direction: column; gap: 10px; }
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 22px;
  font: 700 0.95rem var(--font-head);
}
.fee-row .fee {
  font: 800 1.1rem var(--font-head);
  color: var(--ink-dim);
}
.fee-row.zero .fee { color: var(--green); }
.fee-row .plan-name span { display: block; font: 500 0.72rem var(--font-body); color: var(--ink-dim); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: var(--gap-block) auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq.open { border-color: rgba(107, 93, 255, 0.4); box-shadow: var(--shadow-md); }
.faq button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font: 700 0.95rem var(--font-head);
  color: var(--ink);
  padding: 16px 22px;
}
.faq .chev {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq.open .chev { transform: rotate(180deg); background: var(--grad); color: #fff; }
.faq .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq .faq-a p { padding: 0 22px 18px; font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-5px); }
  .topup-grid { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .minutes-cols, .fee-cols { grid-template-columns: 1fr; }
  .topup-notes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .plans-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .plans-grid { grid-template-columns: 1fr; }
  .topup-grid { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; }
  /* stack the switch so both labels stay readable at small widths */
  .audience-toggle.light { width: 100%; }
  .audience-toggle.light button { flex: 1; padding: 11px 12px; font-size: 0.8rem; }
}
