﻿/* Pricing page styles — extracted from inline <style> block in pricing.html */
@import url('./tokens.css');

.pricing-wrap {
  max-width: 1020px;
  margin: 32px auto;
  padding: 0 16px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 28px;
}
.pricing-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', var(--font-ui);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
.pricing-header .subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Trial banner */
.trial-banner {
  background: linear-gradient(135deg, #0ea5e9 0%, var(--color-accent) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: center;
}
.trial-banner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.trial-banner p { opacity: 0.92; font-size: 0.95rem; margin: 0; }
.trial-banner .trial-price {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Plan grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.plan-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  background: var(--color-surface);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.plan-card.featured { border-color: var(--color-accent); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; color: var(--color-text-primary); }
.plan-price { font-size: 1.7rem; font-weight: 800; margin-bottom: 2px; color: var(--color-text-primary); font-family: var(--font-mono); }
.plan-price-note { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.plan-features {
  color: var(--color-text-primary);
  margin-bottom: 18px;
  padding-left: 0;
  list-style: none;
}
.plan-features li {
  margin: 7px 0;
  padding-left: 22px;
  position: relative;
  font-size: var(--text-sm);
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.plan-action { display: flex; flex-direction: column; gap: 8px; }
.plan-btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-trial { background: var(--color-accent); color: #fff; }
.btn-trial:hover { background: var(--color-accent-hover); }
.btn-trial:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-subscribe { background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-subscribe:hover { background: var(--color-bg); }
.btn-subscribe:disabled { opacity: 0.5; cursor: not-allowed; }

/* Timeline stepper */
.timeline {
  max-width: 680px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.timeline-step .step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.timeline-step .step-label { font-size: 0.82rem; color: var(--color-text-primary); font-weight: 500; }
.timeline-step .step-detail { font-size: 0.72rem; color: var(--color-text-muted); }

/* Status */
.status-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  display: none;
  text-align: center;
}
.status-error { border-color: #fecaca; background: #fef2f2; color: var(--color-danger); }
.status-success { border-color: #bbf7d0; background: #f0fdf4; color: var(--color-success); }

/* Terms */
.terms-note { text-align: center; font-size: 0.82rem; color: var(--color-text-muted); margin-top: 8px; }
.terms-note a { color: var(--color-text-muted); text-decoration: underline; }

/* Current sub banner */
.current-sub-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: center;
  display: none;
}
.current-sub-banner.active { display: block; }
.current-sub-banner .sub-status { font-weight: 600; color: var(--color-success); }
