/* Pricing page blocks for /pricing.

   Loaded on top of landing-v2/styles.css and landing-v2/v2-page.css so the
   plan cards, billing steps, and route comparison read as one system with
   the landing and gallery pages. */

/* The shipped app shell lays every .section-head out as a row. This page
   gives that row the full container width so heading and lead never collide
   or squeeze the heading onto two lines. */
.v2-page .section-head {
  max-width: none;
  gap: 36px;
}

.v2-page .section-head > h2 {
  flex: 0 0 auto;
}

.v2-page .section-head > .section-lead {
  flex: 1 1 320px;
  max-width: 46ch;
}

/* Keep the hero lead to a readable measure instead of the full 1180px grid. */
.v2-page .page-hero .section-lead {
  max-width: 68ch;
}

/* ---------- credit packages ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.plan:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.plan.is-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), rgba(21, 21, 26, 0) 46%),
    var(--surface);
  box-shadow: 0 30px 70px -55px rgba(91, 141, 239, 0.95);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.18);
  color: #cddffd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plan-name {
  min-height: 20px;
  padding-right: 88px;
  color: var(--muted-2);
  font-size: 13px;
}

.plan-credits {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.plan-credits small {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
}

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

.plan-price strong {
  font-size: 26px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.plan-price span {
  color: var(--muted-2);
  font-size: 13px;
}

.plan-unit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
}

.plan-save {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(91, 141, 239, 0.14);
  color: #9ec2ff;
  font-size: 12px;
  font-style: normal;
}

.plan-features {
  display: grid;
  gap: 9px;
  margin: 14px 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: #c9c9d3;
  font-size: 14px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 13px;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.plan-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- route comparison ---------- */

.pricing-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  text-transform: none;
  vertical-align: top;
}

.pricing-table thead th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pricing-table tbody th {
  width: 132px;
  color: var(--muted);
  font-weight: 550;
}

.pricing-table tbody td {
  color: #d5d5de;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Below the desktop row layout, the heading and lead stack so nothing is
   pushed past the viewport edge. */
@media (max-width: 900px) {
  .v2-page .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: none;
  }

  .v2-page .section-head > .section-lead {
    flex: 0 0 auto;
    margin-top: 0;
    max-width: 52ch;
  }
}

@media (max-width: 720px) {
  .plan {
    padding: 26px 22px;
  }

  .plan-credits {
    font-size: 34px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 14px 16px;
  }
}
