/* ─────────────────────────────────────────────────────────────
   Pricing / subscription page — builds on styles.css design tokens.
   ───────────────────────────────────────────────────────────── */

.pricing-page { padding-top: 84px; overflow-x: clip; }

/* Header */
.pricing-head { padding: 72px 0 8px; }
.pricing-head .breadcrumb { margin-bottom: 28px; }
.pricing-kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.pricing-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 100px);
  line-height: .98; letter-spacing: -0.01em;
  margin: 18px 0 0;
}
.pricing-title em { font-style: italic; color: var(--accent-deep); }
.pricing-intro {
  margin: 26px 0 0; max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2);
}

/* Free-intro banner */
.intro-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 20px 24px;
  background: var(--accent);
  color: var(--paper-card, #fff);
  border-radius: 16px;
}
.intro-banner .ib-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); flex: none;
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--yellow) 28%, transparent);
}
.intro-banner p { margin: 0; font-size: 15px; line-height: 1.5; }
.intro-banner strong { color: var(--yellow); font-weight: 600; }
.intro-banner .ib-cta {
  margin-inline-start: auto;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  background: var(--paper-card, #fff); color: var(--accent-deep);
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  transition: transform .2s ease;
}
.intro-banner .ib-cta:hover { transform: translateY(-2px); }

/* Grid of plans */
.pricing-grid {
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pricing-grid { grid-template-columns: 1fr; } }

/* Plan card */
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-card, #fff);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 24px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px color-mix(in oklch, var(--accent) 50%, transparent);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--rule));
}

/* Featured plan */
.plan.featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-card, #fff);
}
.plan-flag {
  position: absolute; top: -11px; inset-inline-start: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--yellow); color: var(--accent-deep);
  padding: 5px 12px; border-radius: 999px;
}

.plan-cat {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.plan.featured .plan-cat { color: var(--yellow); }

.plan-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.1; letter-spacing: -.01em;
  margin: 10px 0 0; color: var(--ink);
}
.plan.featured .plan-name { color: var(--paper-card, #fff); }

.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 16px 0 2px;
}
.plan-price .pp-amt {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1; color: var(--ink);
}
.plan.featured .plan-price .pp-amt { color: var(--paper-card, #fff); }
.plan-price .pp-cur { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.plan.featured .plan-price .pp-cur { color: color-mix(in oklch, var(--paper) 75%, transparent); }
.plan-period { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.plan.featured .plan-period { color: color-mix(in oklch, var(--paper) 70%, transparent); }

.plan-rule { height: 1px; background: var(--rule); margin: 0 0 18px; }
.plan.featured .plan-rule { background: color-mix(in oklch, var(--paper) 28%, transparent); }

.plan-feats {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.plan-feats li {
  display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start;
  font-size: 14px; line-height: 1.4; color: var(--ink-2);
}
.plan.featured .plan-feats li { color: color-mix(in oklch, var(--paper) 88%, transparent); }
.plan-feats svg { width: 15px; height: 15px; margin-top: 2px; color: var(--accent); flex: none; }
.plan.featured .plan-feats svg { color: var(--yellow); }

/* Card actions */
.plan-actions { display: flex; flex-direction: column; gap: 10px; }
.plan-book {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 13px 18px; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.plan-book:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.plan.featured .plan-book { background: var(--yellow); border-color: var(--yellow); color: var(--accent-deep); }
.plan.featured .plan-book:hover { background: var(--paper-card, #fff); border-color: var(--paper-card, #fff); }

.plan-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
  color: #1f8a5b;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, #1f8a5b 40%, transparent);
  transition: background .2s ease, color .2s ease;
}
.plan-wa svg { width: 15px; height: 15px; }
.plan-wa:hover { background: #1f8a5b; color: #fff; border-color: #1f8a5b; }
.plan.featured .plan-wa { color: var(--paper-card, #fff); border-color: color-mix(in oklch, var(--paper) 45%, transparent); }
.plan.featured .plan-wa:hover { background: var(--paper-card, #fff); color: #1f8a5b; border-color: var(--paper-card, #fff); }

/* Discount / note strip */
.pricing-note {
  margin: 40px 0 0;
  padding: 22px 26px;
  border: 1px dashed var(--rule);
  border-radius: 16px;
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.pricing-note strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.pricing-faq { margin: 80px 0 110px; }
.pricing-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px); line-height: 1.05;
  margin: 0 0 28px; color: var(--ink);
}
.pricing-faq h2 em { font-style: italic; color: var(--accent-deep); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { border-top: 1px solid var(--rule); padding-top: 18px; }
.faq-item h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin: 0 0 7px; color: var(--ink); }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* RTL */
html[dir="rtl"] .pricing-title { font-family: var(--font-display-ar, var(--font-display)); font-weight: 600; line-height: 1.06; letter-spacing: 0; font-size: clamp(44px, 6.5vw, 92px); }
html[dir="rtl"] .pricing-title em { font-style: normal; }
html[dir="rtl"] .plan-feats li { grid-template-columns: 18px 1fr; }


/* ─── Enhanced mobile responsiveness (phones & small tablets) ─── */
@media (max-width: 640px) {
  .pricing-page { padding-top: 70px; }
  .pricing-head { padding: 40px 0 4px; }
  .pricing-head .breadcrumb { margin-bottom: 18px; }
  .pricing-title { font-size: clamp(40px, 12vw, 64px); }
  .pricing-intro { font-size: 16px; }

  /* One clean column — 2-up is too cramped for these cards on phones */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .plan { padding: 22px 20px 22px; }

  /* Free-intro banner stacks vertically */
  .intro-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }
  .intro-banner .ib-cta { margin-inline-start: 0; width: 100%; text-align: center; }

  .pricing-note { padding: 18px 20px; font-size: 14px; }
  .pricing-faq { margin: 56px 0 80px; }
}

@media (max-width: 380px) {
  .pricing-title { font-size: clamp(34px, 13vw, 48px); }
  .plan-price .pp-amt { font-size: 34px; }
  .intro-banner p { font-size: 14px; }
}
