/* Pricing page styles */

/* Nav links (self-contained copy from about.css) */
.navbar-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--active {
  color: var(--accent);
}

/* Page layout */
.pricing-page {
  min-height: 100vh;
  padding: 100px 32px 80px;
}

.pricing-container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.pricing-header {
  margin-bottom: 64px;
  text-align: center;
}

.pricing-headline {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.pricing-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Tier grid */
.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .pricing-tier-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tier-card-featured {
  border-left: 3px solid var(--accent);
}

/* Card internals */
.tier-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tier-price {
  line-height: 1;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-period {
  font-size: 18px;
  color: var(--text-muted);
}

.tier-price-placeholder {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.tier-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  padding: 0;
  margin: 0;
}

.tier-features li::before {
  content: '✓ ';
  color: var(--accent);
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.tier-badge-popular {
  align-self: flex-start;
  white-space: nowrap;
}

.tier-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* CTAs */
.tier-cta {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: auto;
}

.tier-cta-primary {
  background: var(--accent);
  color: #0A0A0D;
}

.tier-cta-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tier-cta:hover {
  opacity: 0.85;
}

.pricing-mobile-cta {
  display: none;
}

/* Pricing FAQ (5 objection Q&As) */
.pricing-faq {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.pricing-faq-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.pricing-faq-list {
  display: flex;
  flex-direction: column;
}
.pricing-faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-faq-item:first-child {
  border-top: 1px solid var(--border);
}
.pricing-faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.pricing-faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 768px) {
  .pricing-faq { margin-top: 56px; padding-top: 40px; }
}

/* Comparison matrix */
.compare-matrix {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.compare-matrix-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
}

.compare-table th:first-child {
  text-align: left;
}

.compare-price {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.compare-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-size: 14px;
}

.compare-table tbody tr:hover {
  background: var(--surface-2);
}

.compare-check {
  color: var(--accent);
  font-size: 16px;
}

.compare-dash {
  color: var(--border);
}

@media (max-width: 640px) {
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table th,
  .compare-table td,
  .compare-table tr {
    display: block;
  }

  .compare-table thead tr {
    display: none;
  }

  .compare-table tr {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }

  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .compare-table td:last-child {
    border-bottom: none;
  }

  .compare-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .compare-table td:first-child {
    background: var(--surface-2);
    font-weight: 600;
    font-size: 13px;
  }

  .compare-table td:first-child::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .pricing-page {
    padding-bottom: calc(80px + 80px + env(safe-area-inset-bottom, 0px));
  }

  .pricing-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--border);
  }

  .pricing-mobile-cta-copy {
    flex: 1;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .pricing-mobile-cta .tier-cta {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .pricing-page + .footer {
    padding-bottom: calc(48px + 80px + env(safe-area-inset-bottom, 0px));
  }
}
