/* ============================================================ */
/* INSTABOOKS — Pricing page styles                              */
/* Builds on main.css; adds the plan cards, the per-company      */
/* volume table, worked examples, and the pricing FAQ.           */
/* ============================================================ */

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */

.pricing-hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.pricing-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-hero .section-eyebrow { margin-bottom: 16px; }

.pricing-hero .page-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 600);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: var(--display-tracking, -0.03em);
  margin: 0 0 20px 0;
  color: var(--ink);
}

.pricing-hero .page-title em {
  font-style: var(--em-style, normal);
  color: var(--em-color, var(--brand));
  font-weight: inherit;
}

.pricing-hero .page-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* Trial reassurance pill, echoing .hero-eyebrow */
.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--section);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.trial-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* ============================================================ */
/* PLAN CARDS                                                    */
/* ============================================================ */

.pricing-plans {
  background: var(--section);
  border-bottom: 1px solid var(--line);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.plan-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-card);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-badge.badge-now { color: var(--brand); background: var(--brand-tint); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 4px;
}

.plan-amount {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 600);
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.plan-price-custom .plan-amount {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.plan-tagline {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 24px;
  min-height: 3em; /* align the feature lists across both cards */
}

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1; /* push the CTA to the bottom so both cards align */
}

.plan-features li {
  padding-left: 28px;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233c8d52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 2px;
  background-size: 16px 16px;
}

.plan-features li strong { color: var(--ink); font-weight: 600; }

.plan-cta {
  width: 100%;
  justify-content: center;
}

.plan-cta-alt {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

a.plan-cta-alt { color: var(--brand); }
a.plan-cta-alt:hover { color: var(--brand-deep); }

.try-banner {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 18px 24px;
  text-align: center;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.try-banner strong { color: var(--brand-deep); font-weight: 600; }

/* ============================================================ */
/* FIRM CARD VOLUME TIERS                                        */
/* ============================================================ */

.plan-tiers {
  list-style: none;
  margin: 0 0 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.plan-tiers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pt-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pt-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-deep);
  white-space: nowrap;
}

.pt-price span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-eg {
  margin: 0 0 22px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ============================================================ */
/* PRICING FAQ                                                   */
/* ============================================================ */

.pricing-faq {
  background: var(--section);
  border-bottom: 1px solid var(--line);
}

.faq-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-item {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.faq-item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

.faq-item a { color: var(--brand); border-bottom: 1px solid currentColor; }
.faq-item a:hover { color: var(--brand-deep); }

/* ============================================================ */
/* FINAL CTA                                                     */
/* ============================================================ */

.pricing-cta {
  background: var(--section-2);
  text-align: center;
}

.pricing-cta .section-title {
  margin: 0 auto 16px;
  max-width: 24ch;
  white-space: normal;
}

.pricing-cta .section-lede { margin: 0 auto 32px; max-width: 48ch; }

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */

@media (max-width: 1000px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; }
  .plan-tagline { min-height: 0; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pricing-hero { padding: 56px 0 40px; }
  .plan-card { padding: 28px 24px; }
}
