/* ============================================================
   PULSE PLATFORM · SHARED STYLES
   Extracted from index.html, features.html, contact.html
   ============================================================ */

/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --pulse-purple:        #7B2FF2;
  --pulse-purple-dark:   #5A1DB8;
  --pulse-magenta:       #D946EF;
  --pulse-gradient:      linear-gradient(135deg, #D946EF 0%, #7B2FF2 100%);
  --pulse-gradient-hover: linear-gradient(135deg, #E068F5 0%, #8F47F5 100%);
  --pulse-gradient-soft: linear-gradient(135deg, rgba(217,70,239,0.08) 0%, rgba(123,47,242,0.08) 100%);
  --pulse-slate:         #6B7280;
  --pulse-slate-dark:    #374151;
  --pulse-slate-light:   #9CA3AF;
  --pulse-white:         #FFFFFF;
  --pulse-off-white:     #F9FAFB;
  --pulse-light-gray:    #F3F4F6;
  --pulse-border:        #E5E7EB;
  --pulse-dark:          #111827;
  --pulse-success:       #10B981;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--pulse-dark);
  background: var(--pulse-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pulse-border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo { height: 56px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--pulse-slate-dark);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--pulse-purple); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--pulse-gradient);
  color: white !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(123,47,242,0.25);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,47,242,0.35);
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 200; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--pulse-dark); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--pulse-slate-dark);
  border-bottom: 1px solid var(--pulse-border);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--pulse-purple); }
.mobile-menu .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--pulse-gradient);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 14px 28px;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--pulse-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(123,47,242,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,47,242,0.35);
}
.btn-secondary {
  background: var(--pulse-white);
  color: var(--pulse-slate-dark);
  border: 1.5px solid var(--pulse-border);
  padding: 13px 28px;
}
.btn-secondary:hover {
  border-color: var(--pulse-purple);
  color: var(--pulse-purple);
}
.btn-ghost {
  background: transparent;
  color: var(--pulse-purple);
  font-weight: 600;
  padding: 14px 4px;
}
.btn-ghost:hover { opacity: 0.8; }
.btn-dark {
  background: var(--pulse-dark);
  color: white;
}
.btn-dark:hover { background: #1F2937; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 100px 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pulse-magenta);
  margin-bottom: 12px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 17px;
  color: var(--pulse-slate);
  line-height: 1.7;
  max-width: 580px;
}
.section-header {
  margin-bottom: 56px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin: 0 auto;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--pulse-dark);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(217,70,239,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -10%;
  width: 40%; height: 200%;
  background: radial-gradient(circle, rgba(123,47,242,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: 44px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-content h2 .gradient {
  background: var(--pulse-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-content p {
  font-size: 17px;
  color: #9CA3AF;
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; }
.cta-note { margin-top: 24px; font-size: 13px; color: #6B7280; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A0F1A;
  padding: 64px 0 32px;
  color: #9CA3AF;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: #6B7280;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E5E7EB;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: #6B7280;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--pulse-magenta); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid #1F2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #4B5563;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #4B5563; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #9CA3AF; }

/* ============================================================
   SHARED RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-content h2 { font-size: 28px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== BILLING TOGGLE ===== */
.billing-toggle {
  display: inline-flex;
  margin: 24px auto 0;
  padding: 4px;
  background: var(--pulse-off-white, #f5f2fc);
  border: 1px solid rgba(123,47,242,0.12);
  border-radius: 100px;
  gap: 2px;
}
.billing-toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--pulse-text-muted, #666);
  background: transparent;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.billing-toggle-option:hover {
  color: var(--pulse-text, #1a1a2e);
}
.billing-toggle-option.active {
  background: var(--pulse-gradient, linear-gradient(135deg, #7b2ff2 0%, #d946ef 100%));
  color: #fff;
  box-shadow: 0 4px 12px rgba(123,47,242,0.3);
}
.billing-save {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.billing-toggle-option:not(.active) .billing-save {
  background: rgba(217,70,239,0.12);
  color: #d946ef;
}

/* ===== PRICING COMPARISON TABLE ===== */
.pricing-compare {
  max-width: 1100px;
  margin: 80px auto 0;
}
.pricing-compare-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--pulse-text, #1a1a2e);
}
.pricing-compare-wrap {
  overflow-x: auto;
  border: 1px solid rgba(123,47,242,0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(123,47,242,0.05);
}
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.pricing-compare-table th,
.pricing-compare-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(123,47,242,0.08);
}
.pricing-compare-table thead th {
  font-weight: 700;
  font-size: 15px;
  color: var(--pulse-text, #1a1a2e);
  background: var(--pulse-off-white, #faf8ff);
  position: sticky;
  top: 0;
}
.pricing-compare-table thead th.popular-col {
  color: #7b2ff2;
  background: linear-gradient(135deg, rgba(123,47,242,0.08), rgba(217,70,239,0.08));
}
.pricing-compare-table tbody td {
  color: var(--pulse-text-muted, #555);
}
.pricing-compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--pulse-text, #1a1a2e);
}
.pricing-compare-table td.popular-col {
  background: rgba(123,47,242,0.03);
  color: var(--pulse-text, #1a1a2e);
  font-weight: 500;
}
.pricing-compare-table tr:last-child td {
  border-bottom: 0;
}
.pc-muted { color: #999; font-weight: 400; font-size: 13px; }
.pc-dash { color: #ccc; }

@media (max-width: 768px) {
  .pricing-compare-title { font-size: 22px; }
  .pricing-compare-table th,
  .pricing-compare-table td {
    padding: 14px 16px;
    font-size: 13px;
  }
  .billing-toggle-option {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ============================================================
   COMPARISON / ALTERNATIVES PAGES (shared)
   ============================================================ */
.compare-wrap {
  padding: 140px 0 80px;
  background: var(--pulse-white);
}
.compare-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
}
.compare-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pulse-magenta);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(217,70,239,0.08);
  border-radius: 100px;
}
.compare-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.compare-hero h1 .gradient {
  background: var(--pulse-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-hero .tldr {
  font-size: 19px;
  line-height: 1.65;
  color: var(--pulse-slate-dark);
  max-width: 780px;
  margin: 0 auto 28px;
}
.compare-hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* At-a-glance table */
.compare-section {
  max-width: 1040px;
  margin: 0 auto 64px;
}
.compare-section h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.compare-section h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.compare-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--pulse-slate-dark);
  margin-bottom: 16px;
}
.compare-section .lead {
  font-size: 18px;
  color: var(--pulse-slate);
  margin-bottom: 28px;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--pulse-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0 40px;
  background: var(--pulse-white);
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  font-size: 15px;
  text-align: left;
  border-bottom: 1px solid var(--pulse-border);
  vertical-align: top;
  line-height: 1.55;
}
.compare-table th {
  background: var(--pulse-off-white);
  color: var(--pulse-slate-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child {
  font-weight: 600;
  color: var(--pulse-dark);
  width: 34%;
}
.compare-table .pulse-cell {
  background: rgba(217,70,239,0.04);
  color: var(--pulse-purple);
  font-weight: 600;
}
.compare-table .pulse-head {
  background: var(--pulse-gradient);
  color: white;
}

/* Split comparison cards (who it's for) */
.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.compare-split-card {
  padding: 28px;
  border: 1px solid var(--pulse-border);
  border-radius: 16px;
  background: var(--pulse-white);
}
.compare-split-card.us {
  border-top: 4px solid var(--pulse-purple);
  background: linear-gradient(180deg, rgba(217,70,239,0.03) 0%, rgba(255,255,255,0) 100%);
}
.compare-split-card.them {
  border-top: 4px solid var(--pulse-slate-light);
}
.compare-split-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.compare-split-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-split-card ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15px;
  color: var(--pulse-slate-dark);
  line-height: 1.55;
}
.compare-split-card.us ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pulse-purple);
  font-weight: 700;
}
.compare-split-card.them ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pulse-slate);
  font-weight: 700;
}

/* Migration / switching callout */
.compare-callout {
  padding: 32px;
  background: var(--pulse-off-white);
  border-radius: 16px;
  border-left: 4px solid var(--pulse-purple);
  margin: 32px 0;
}
.compare-callout h3 {
  margin-top: 0;
  color: var(--pulse-dark);
}

/* FAQ accordion */
.compare-faq { margin: 32px 0; }
.compare-faq details {
  border-bottom: 1px solid var(--pulse-border);
  padding: 20px 0;
}
.compare-faq details[open] summary { color: var(--pulse-purple); }
.compare-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding-right: 32px;
  position: relative;
  list-style: none;
}
.compare-faq summary::-webkit-details-marker { display: none; }
.compare-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.2s;
}
.compare-faq details[open] summary::after {
  content: "−";
}
.compare-faq details p {
  margin-top: 12px;
  color: var(--pulse-slate-dark);
  font-size: 15px;
  line-height: 1.7;
}

/* Final CTA */
.compare-cta {
  text-align: center;
  padding: 56px 40px;
  background: var(--pulse-dark);
  color: white;
  border-radius: 20px;
  margin: 48px 0 0;
  position: relative;
  overflow: hidden;
}
.compare-cta::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--pulse-gradient);
  opacity: 0.25;
  filter: blur(60px);
}
.compare-cta h2 {
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
}
.compare-cta p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  position: relative;
  font-size: 17px;
}
.compare-cta .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Alternatives hub cards */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.alt-card {
  padding: 26px;
  border: 1px solid var(--pulse-border);
  border-radius: 14px;
  background: var(--pulse-white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.alt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  border-color: var(--pulse-purple);
}
.alt-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.alt-card p {
  color: var(--pulse-slate);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.alt-card a {
  color: var(--pulse-purple);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 900px) {
  .compare-hero h1 { font-size: 34px; }
  .compare-section h2 { font-size: 24px; }
  .compare-split { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
  .compare-wrap { padding: 110px 0 60px; }
}
