/* pricing.css — Pricing page styles. Depends on theme.css for CSS variables. */

/* ── Nav ── */
.pricing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--fg-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg-primary);
}

.btn-nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: opacity 0.15s !important;
}

.btn-nav-cta:hover { opacity: 0.85 !important; }

/* ── Hero ── */
.pricing-hero {
  text-align: center;
  padding: 80px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-badge {
  display: inline-block;
  background: rgba(124, 106, 255, 0.12);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(124, 106, 255, 0.25);
  margin-bottom: 28px;
}

.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.pricing-lede {
  color: var(--fg-secondary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Plans grid ── */
.plans-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 64px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  position: relative;
}

/* ── Plan card ── */
.plan-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.plan-card:first-child {
  border-radius: 16px 0 0 16px;
}

.plan-card:last-child {
  border-radius: 0 16px 16px 0;
}

.plan-card--featured {
  background: var(--bg-card);
  border-color: var(--accent);
  border-width: 1.5px;
  border-radius: 16px;
  margin: -8px -1px;
  padding: 44px 32px 40px;
  z-index: 2;
  box-shadow: 0 0 40px rgba(124, 106, 255, 0.12);
}

.plan-badge-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.plan-header {
  margin-bottom: 28px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.plan-card--featured .plan-name {
  color: var(--accent-bright);
}

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

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-primary);
}

.price-period {
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 400;
}

.plan-tagline {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

/* ── Features list ── */
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.45;
}

.plan-features li strong {
  color: var(--fg-primary);
}

.check {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--accent-bright);
  margin-top: 1px;
}

.check.muted {
  color: var(--fg-muted);
}

.feature-muted {
  color: var(--fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--fg-muted);
}

/* ── Plan buttons ── */
.btn-plan {
  width: 100%;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity 0.15s, transform 0.12s;
}

.btn-plan:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-plan-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 106, 255, 0.3);
}

.btn-plan-secondary {
  background: transparent;
  color: var(--fg-primary);
  border: 1.5px solid var(--border);
}

.btn-plan-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.plan-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
}

/* ── Annual note ── */
.annual-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}

.annual-note a {
  color: var(--accent-bright);
  text-decoration: none;
}

.annual-note a:hover { text-decoration: underline; }

/* ── Comparison ── */
.pricing-comparison {
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-comparison h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.comparison-sub {
  color: var(--fg-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 48px;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 16px 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.comparison-table th.briefly-col {
  color: var(--accent-bright);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.comparison-table td:first-child {
  color: var(--fg-primary);
  font-weight: 500;
}

.competitor-val {
  color: var(--fg-muted) !important;
}

.briefly-val {
  color: var(--accent-bright) !important;
  font-weight: 500 !important;
}

.highlight-row {
  background: rgba(124, 106, 255, 0.07);
  font-weight: 600 !important;
}

/* ── FAQ ── */
.faq-section {
  padding: 80px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.faq-item + .faq-item {
  margin-top: 6px;
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--fg-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent-bright);
  text-decoration: none;
}

.faq-item a:hover { text-decoration: underline; }

/* ── Closing ── */
.pricing-closing {
  padding: 100px 24px;
  text-align: center;
  position: relative;
}

.pricing-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 106, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.pricing-closing h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 640px;
  margin: 0 auto 20px;
  position: relative;
}

.pricing-closing p {
  color: var(--fg-secondary);
  font-size: 18px;
  margin: 0 auto 40px;
  position: relative;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.btn-waitlist-cta {
  padding: 14px 28px;
  background: transparent;
  color: var(--fg-primary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-waitlist-cta:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #15151f;
  border: 1px solid rgba(124, 106, 255, 0.3);
  border-radius: 16px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--fg-primary);
  background: var(--border);
}

.modal-tier-badge {
  display: inline-block;
  background: rgba(124, 106, 255, 0.15);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin: 0 0 10px;
}

.modal-sub {
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.form-field {
  margin-bottom: 12px;
}

.form-field input {
  width: 100%;
  background: #0e0e17;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--fg-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.form-field input::placeholder {
  color: var(--fg-muted);
}

.form-field input:focus {
  border-color: var(--accent);
}

.btn-modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 8px;
}

.btn-modal-submit:hover { opacity: 0.88; }
.btn-modal-submit:disabled { opacity: 0.6; cursor: wait; }

.modal-success {
  text-align: center;
  padding: 16px 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 106, 255, 0.15);
  color: var(--accent-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.modal-success h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 0 0 8px;
}

.modal-success p {
  color: var(--fg-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.modal-success a {
  color: var(--accent-bright);
  text-decoration: none;
}

.modal-success a:hover { text-decoration: underline; }

.modal-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
}

.modal-error a {
  color: #fca5a5;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plan-card,
  .plan-card:first-child,
  .plan-card:last-child,
  .plan-card--featured {
    border-radius: 12px;
    margin: 0;
  }

  .pricing-nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a:not(.btn-nav-cta) {
    display: none;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 14px;
  }

  .faq-section {
    padding: 60px 20px;
  }

  .pricing-closing {
    padding: 72px 20px;
  }

  .modal-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 56px 20px 40px;
  }
}

/* ── ROI Calculator ── */
.roi-calculator {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.roi-inner {
  max-width: 800px;
  margin: 0 auto;
}

.roi-header {
  text-align: center;
  margin-bottom: 52px;
}

.roi-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.roi-subhead {
  color: var(--fg-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Sliders */
.roi-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.slider-group {
  position: relative;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.slider-label-row label {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.slider-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-bright);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
  transition: box-shadow 0.15s;
}

.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.roi-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(124, 106, 255, 0.35);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--fg-muted);
}

/* Tooltip */
.tooltip-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--fg-muted);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
  padding: 0;
}

.tooltip-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.tooltip-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(124, 106, 255, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.6;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Result box */
.roi-result {
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.08) 0%, rgba(124, 106, 255, 0.03) 100%);
  border: 1.5px solid rgba(124, 106, 255, 0.35);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.roi-result::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 106, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.roi-loss-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.roi-loss-amount {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg-primary);
  line-height: 1;
  margin-bottom: 16px;
  transition: all 0.12s ease-out;
}

.roi-payback {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.roi-payback strong {
  color: var(--fg-primary);
}

.roi-ratio {
  display: inline-block;
  margin-left: 10px;
  background: rgba(124, 106, 255, 0.15);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(124, 106, 255, 0.3);
}

/* CTA box */
.roi-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
}

.roi-cta-prompt {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-primary);
  margin-bottom: 20px;
}

.roi-email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.roi-email-input {
  flex: 1;
  background: #0e0e17;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--fg-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.roi-email-input::placeholder {
  color: var(--fg-muted);
}

.roi-email-input:focus {
  border-color: var(--accent);
}

.roi-email-btn {
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.12s;
  box-shadow: 0 4px 16px rgba(124, 106, 255, 0.3);
}

.roi-email-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.roi-email-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.roi-email-success {
  font-size: 15px;
  color: #4ade80;
  font-weight: 500;
  padding: 8px 0;
}

.roi-email-error {
  font-size: 13px;
  color: #fca5a5;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  margin-top: 12px;
}

.roi-email-error a { color: #fca5a5; }

/* Mobile ROI */
@media (max-width: 600px) {
  .roi-calculator {
    padding: 56px 20px;
  }

  .roi-result {
    padding: 28px 24px;
  }

  .roi-email-form {
    flex-direction: column;
  }

  .roi-email-btn {
    width: 100%;
  }

  .slider-label-row label {
    font-size: 14px;
  }
}

/* ICP persona links in hero */
.pricing-icp-links {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 20px; font-size: 13px;
}
.pricing-icp-links span { color: #52525b; }
.pricing-icp-links a {
  color: #a1a1aa; text-decoration: none; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px solid #27272a;
  padding: 4px 12px; border-radius: 99px; transition: border-color .15s, color .15s;
}
.pricing-icp-links a:hover { border-color: #6366f1; color: #a5b4fc; }
