/* SoVael Pricing Page — SoVael vs Zapier Comparison */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #181825;
  --bg-table-alt: #0f0f18;
  --border: #1e1e30;
  --border-accent: #2a2a44;
  --text-primary: #e8e8ed;
  --text-secondary: #9090a0;
  --text-muted: #606070;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.15);
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --green: #34d399;
  --green-bg: rgba(52,211,153,0.1);
  --red: #f87171;
  --red-bg: rgba(248,113,113,0.08);
  --amber: #fbbf24;
  --amber-bg: rgba(251,191,36,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Background glow */
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--accent-gradient);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
}

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e8e8ed 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero .sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--bg-card);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* Pain statement */
.pain-statement {
  text-align: center;
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.pain-statement h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pain-statement p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Comparison Table */
.comparison-section {
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 1;
}

.comparison-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-table-alt);
}

thead th:first-child { width: 38%; }
thead th:nth-child(2) { text-align: center; }
thead th:nth-child(3) { text-align: center; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-card-hover); }

tbody td {
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

tbody td:first-child {
  font-weight: 500;
  font-size: 0.9rem;
}

tbody td:nth-child(2),
tbody td:nth-child(3) {
  text-align: center;
  vertical-align: middle;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.warning-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
}

.winner-row {
  background: rgba(99,102,241,0.04) !important;
}

.winner-row td:first-child {
  color: #a5b4fc;
}

/* N8N SECTION */
.n8n-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.n8n-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.n8n-section .sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.n8n-section .sub strong {
  color: var(--text-primary);
}

.n8n-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.n8n-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.2s;
}

.n8n-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.n8n-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.n8n-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.n8n-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* n8n vs Zapier mini comparison */
.comparison-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.comparison-mini-col ul {
  list-style: none;
}

.comparison-mini-col li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comparison-mini-col li:last-child {
  border-bottom: none;
}

.comparison-mini-header {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid;
  margin-bottom: 0.5rem;
}

.comparison-mini-header.zapier {
  color: var(--red);
  border-color: var(--red);
}

.comparison-mini-header.sovael {
  color: var(--green);
  border-color: var(--green);
}

.comparison-mini-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-mini-vs span {
  background: var(--accent-gradient);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cross-item {
  color: #f87171 !important;
}

.check-item {
  color: #34d399 !important;
}

.n8n-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.n8n-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* PRICING */
.pricing-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.pricing-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.pricing-section .sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(99,102,241,0.1), inset 0 0 30px rgba(99,102,241,0.03);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 1.2rem;
  border-radius: 100px;
}

.pricing-card .plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .price-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-card .features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card .features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card .features li .check-small {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .features li .feature-label {
  color: var(--text-primary);
}

.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
}

.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Included badge */
.included-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-weight: 600;
  margin-left: 0.3rem;
}

/* Trap warning */
.trap-warning {
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem auto 0;
  max-width: 680px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trap-warning .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.trap-warning .text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.trap-warning .text strong {
  color: var(--red);
  font-weight: 600;
}

/* Calculator */
.calc-section {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 1;
}

.calc-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.calc-section .sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-row:last-child { border-bottom: none; }

.calc-row .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.calc-row .value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.calc-row .value.zapier-total {
  color: var(--red);
}

.calc-row .value.sovael-total {
  color: var(--green);
}

.calc-row .value.savings {
  color: var(--green);
}

.calc-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.calc-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  width: 80px;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

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

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  margin-top: 1rem;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99,102,241,0.3);
}

/* Statistical proof */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-item .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero .sub { font-size: 1rem; }
  .pain-statement h2 { font-size: 1.5rem; }
  .n8n-grid { grid-template-columns: 1fr 1fr; }
  .comparison-mini { grid-template-columns: 1fr; gap: 1rem; }
  .comparison-mini-vs { order: -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .table-wrapper { margin: 0 -1.5rem; border-radius: 0; border-left: 0; border-right: 0; }
  table { min-width: 550px; }
  thead th, tbody td { padding: 0.9rem 1rem; font-size: 0.82rem; }
  .pricing-card { padding: 1.75rem 1.25rem; }
  .calc-card { padding: 1.5rem; }
  .n8n-grid { grid-template-columns: 1fr; }
}
