/* ===============================================================
   Relay Me — pricing page styles
   Plan grid, comparison table, FAQ, and the contact-sales dialog.
   Loaded after site.css, which holds the shared tokens, nav,
   buttons and footer.
   =============================================================== */

/* HERO */
.hero {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #c8d0dd;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #aab3c2;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
/* PRICING GRID */
.pricing {
  padding: 40px 0 100px;
}
.plans {
  display: grid;
  /* Four plans. They wrap to two columns before collapsing to one, because at
     four across on a laptop each card is too narrow to read. */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan:hover {
  transform: translateY(-4px);
}
.plan.popular,
.plan.featured {
  background: linear-gradient(160deg, rgba(47, 103, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%);
  border-color: rgba(47, 103, 255, 0.4);
  box-shadow: 0 30px 60px -20px rgba(31, 80, 242, 0.4);
}
.plan.popular:hover,
.plan.featured:hover {
  border-color: rgba(47, 103, 255, 0.6);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(45deg, var(--blue-1) 0%, var(--blue-2) 100%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(31, 80, 242, 0.6);
}
.plan-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #aab3c2;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.plan-price .amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #aab3c2;
}
.plan-price .per {
  font-size: 0.95rem;
  color: #6b7585;
  font-weight: 500;
}
.plan-desc {
  color: #aab3c2;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 44px;
}
.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-bottom: 28px;
}
.plan-cta.primary {
  background: linear-gradient(45deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(31, 80, 242, 0.6);
}
.plan-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px rgba(31, 80, 242, 0.7);
}
.plan-cta.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e6eaf2;
  border-color: rgba(255, 255, 255, 0.1);
}
.plan-cta.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
/* Paid tiers cannot be bought yet. The CTA is rendered as a <span>, so it is
   not focusable and there is nothing to click — the styling only has to make
   that visible rather than enforce it. */
.plan-cta.disabled {
  background: rgba(255, 255, 255, 0.03);
  color: #6b7585;
  border-color: rgba(255, 255, 255, 0.07);
  cursor: not-allowed;
}
.plan-cta.disabled:hover {
  transform: none;
}

/* ── contact-sales dialog ───────────────────────────────────────────
   A centred modal holding one address, with a copy button, because the
   point of the button is to get the address into someone's clipboard. */
.sales-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 16, 0.72);
  backdrop-filter: blur(4px);
}
.sales-dialog {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 16px;
  background: #10141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  text-align: center;
}
.sales-dialog h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.sales-dialog p {
  color: #aab3c2;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.sales-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}
.sales-address a {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: #e6eaf2;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sales-address a:hover {
  text-decoration: underline;
}
.sales-close {
  background: none;
  border: none;
  color: #6b7585;
  font-size: 0.88rem;
  cursor: pointer;
}
.sales-close:hover {
  color: #aab3c2;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: #c8d0dd;
  line-height: 1.45;
}
.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 103, 255, 0.18);
  border: 1px solid rgba(47, 103, 255, 0.35);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.plan.popular .check-icon,
.plan.featured .check-icon {
  background: rgba(47, 103, 255, 0.28);
  border-color: rgba(47, 103, 255, 0.5);
}
.check-icon svg {
  width: 11px;
  height: 11px;
  stroke: #8eb1ff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-features li strong {
  color: #fff;
  font-weight: 600;
}
/* COMPARE TABLE */
.compare {
  padding: 40px 0 100px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.table-wrap {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
}
.compare-table thead th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aab3c2;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-table thead th.featured-col {
  color: #fff;
  background: linear-gradient(180deg, rgba(47, 103, 255, 0.18) 0%, rgba(47, 103, 255, 0.08) 100%);
}
.compare-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-table tbody tr:last-child {
  border-bottom: none;
}
.compare-table tbody td {
  color: #c8d0dd;
}
.compare-table tbody td:first-child {
  font-weight: 500;
  color: #e6eaf2;
}
.compare-table tbody td.featured-col {
  background: rgba(47, 103, 255, 0.04);
}
.cell-yes {
  color: #6ee7a0;
  font-weight: 600;
}
.cell-no {
  color: #6b7585;
}
.cell-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 160, 0.12);
  border: 1px solid rgba(110, 231, 160, 0.25);
  color: #6ee7a0;
  font-size: 0.82rem;
  font-weight: 600;
}
.row-group td {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-1);
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
}
@media (max-width: 720px) {
  .table-wrap { overflow-x: auto; }
  .compare-table { min-width: 600px; }
}
/* FAQ */
.faq {
  padding: 0 0 100px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.faq-item {
  padding: 24px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  color: #aab3c2;
  font-size: 0.93rem;
  line-height: 1.55;
}
/* CTA */
.cta-section {
  padding: 40px 0 100px;
}
/* FOOTER */
/* Note under the plan grid. A class rather than an inline style attribute:
   the strict CSP in main.go has no 'unsafe-inline' for style-src, so an
   inline style= would simply be dropped by the browser. */
.plans-note {
  text-align: center;
  color: #6b7585;
  font-size: 0.88rem;
  margin-top: 28px;
}
.plans-note a { color: #8eb1ff; }
.plans-note a:hover { text-decoration: underline; }

/* The alternative billing interval, under the headline price. The saving in it
   is computed from the two prices (pricing.YearlySavingText), never typed. */
.plan-alt {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-faint, #7a8598);
}

@media (max-width: 1100px) and (min-width: 761px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
