/* ==========================================================================
   EmailHelp — Pricing page styles (css/pages/pricing.css)
   Only pricing-specific rules live here: the "best for" label on plan cards,
   the satisfaction note, comparison-table sub labels, the billing section
   backdrop and small responsive tweaks. Everything else is css/style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */
.pricing-hero .page-hero__content { max-width: 820px; }
.pricing-hero h1 { letter-spacing: -.03em; }
/* Each wrapped line gets its own full gradient sweep so the hue does not jump at a line break */
.pricing-hero h1 .gradient-text {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(90deg, #818CF8 0%, #A78BFA 45%, #22D3EE 100%);
}
.pricing-hero .lead { max-width: 640px; }

/* Content + "plans at a glance" card side by side on wide screens; the card is a desktop-only summary
   (on phones the three plan cards sit directly below the hero, so it would only repeat them) */
.pricing-hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.price-glance { display: none; }
@media (min-width: 1024px) {
  .pricing-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 400px); }
  .price-glance { display: flex; gap: 14px; padding: 22px 22px 20px; justify-self: end; width: 100%; }
}
.price-glance,
.price-glance:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .6); } /* .card--static:hover would swap in the light shadow */
.price-glance__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.price-glance__title .icon { width: 18px; height: 18px; color: var(--cyan); }
.price-glance__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-glance__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.price-glance__list a:hover { background: rgba(255, 255, 255, .07); border-color: rgba(129, 140, 248, .5); transform: translateX(2px); }
.price-glance__list a:focus-visible { outline: none; box-shadow: var(--ring); }
.price-glance__list .is-featured a { border-color: rgba(129, 140, 248, .45); background: rgba(99, 102, 241, .14); }
.price-glance__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; font-size: .95rem; }
.price-glance__name small { font-size: .78rem; font-weight: 400; color: var(--text-muted-dark); }
.price-glance__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: #fff;
}
.price-glance__price small { font-family: var(--font-body, inherit); font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted-dark); }
.price-glance__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-muted-dark);
}
.price-glance__foot .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */
.pricing-grid { align-items: stretch; }

/* "Best for …" label above the plan name */
.pricing__for {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 -6px;                      /* pull the plan name up: the card's 20px flex gap is too generous here */
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-600);
}
.pricing__for .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.card--pricing.is-featured .pricing__for { color: var(--violet); }
.card--pricing .pricing__foot a { color: var(--primary-600); font-weight: 500; }

/* Satisfaction note under the three cards */
.pricing-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: clamp(32px, 4vw, 44px) auto 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}
.pricing-note .icon { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
.pricing-note a { color: var(--primary-600); font-weight: 500; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.compare-table th:first-child { width: 34%; }
.compare-table thead th { vertical-align: bottom; padding-top: 18px; padding-bottom: 16px; }
.compare-table__price {
  display: block;
  margin-top: 4px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}
.compare-table th.is-featured .compare-table__price { color: var(--primary-600); opacity: .85; }
.compare-table tbody th,
.compare-table tbody td { vertical-align: middle; }
.compare-table tbody td { font-size: .92rem; color: var(--text); line-height: 1.45; }
.compare-table tbody td.is-featured { font-weight: 500; }
.compare-table__sub {
  display: block;
  margin-top: 2px;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
}
.compare-table td .visually-hidden { position: absolute; }
.compare__hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.compare__hint .icon { width: 16px; height: 16px; color: var(--primary); }
.compare__note {
  max-width: 640px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   How billing works (dark)
   -------------------------------------------------------------------------- */
.billing { position: relative; }
.billing .hero__bg { z-index: 0; }
.billing .container { position: relative; z-index: 1; }
.billing__promises { margin-top: clamp(48px, 6vw, 72px); }
.billing__promises .card h3 { font-size: 1.1rem; margin-top: 4px; }
.billing__promises .card p { font-size: .95rem; }
.billing__promises .card a { color: #C7D2FE; font-weight: 500; }
.billing__promises .card a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Tablets: three plan cards side by side get cramped below ~960px — stack them, one per row, centred */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
    gap: 24px;
  }
  .card--pricing.is-featured { transform: none; }
  .pricing-grid .card--pricing.is-featured { margin-top: 10px; } /* room for the floating "Most popular" badge */
}
@media (max-width: 720px) {
  .billing__promises { margin-top: 40px; }
  .compare__hint { display: flex; }
  .compare-table { min-width: 620px; }
  .compare-table th:first-child { width: 150px; min-width: 150px; }
  .compare-table th:first-child,
  .compare-table td:first-child { padding-left: 14px; padding-right: 12px; }
  .compare-table tbody th { font-size: .9rem; }
  .compare-table__sub { font-size: .74rem; }
}
@media (max-width: 560px) {
  .pricing-note { font-size: .9rem; }
  .pricing-hero .hero__actions .btn { width: 100%; }
}
