/* LegacyLift — Main Stylesheet */

:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-light: #dbeafe;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-card: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --accent-purple: #7c3aed;
  --accent-green: #059669;
  --accent-amber: #d97706;
  --error-red: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1120px;
  --section-pad: 80px;
  --section-pad-lg: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Section Headings (global) --- */
.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-logo svg { height: 32px; width: auto; }

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

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

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

.nav-cta {
  background: var(--brand-blue) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--brand-blue-dark) !important; text-decoration: none !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger svg { width: 24px; height: 24px; stroke: var(--text-primary); }

/* Nav scroll state */
.nav-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
}

.nav-scrolled .nav-inner {
  padding: 10px 0;
  transition: padding 0.3s ease;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: var(--section-pad-lg) 0 var(--section-pad);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-blue-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  text-align: center;
  width: 100%;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  transition: background 0.15s, box-shadow 0.25s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-muted); text-decoration: none; }

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-green);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.trust-item:hover svg {
  transform: scale(1.15);
}

/* --- Pricing Cards --- */
.pricing {
  padding: var(--section-pad) 0;
}

.pricing h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
  transform: translateY(-4px);
}

.pricing-card .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.pricing-card .label.excel { color: var(--brand-blue); }
.pricing-card .label.access { color: var(--accent-purple); }
.pricing-card .label.bulk { color: var(--accent-green); }

.pricing-card .price {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card .price-unit {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-card li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Push bottom button/placeholder to bottom of card */
.pricing-card .btn,
.pricing-card .checkout-button {
  margin-top: auto;
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--bg-light);
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.how-it-works .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-number.pop {
  transform: scale(1);
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Features / What Gets Fixed --- */
.features {
  padding: var(--section-pad) 0;
}

.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.features .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.features h3 {
  text-align: center;
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-4px);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: var(--section-pad-lg) 0;
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-blue);
}

.cta-banner .btn-primary:hover { background: #f0f0f0; }

.cta-banner .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}

.cta-banner .btn-secondary:hover { border-color: #fff; }

/* --- Footer --- */
.footer {
  padding: 64px 0 36px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 12px; }

.footer li a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer li a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --section-pad-lg: 64px;
  }

  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero .container { max-width: 100%; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 32px; max-width: 360px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .trust-bar { flex-direction: column; align-items: center; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .security-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-banner h2 { font-size: 26px; }
  .pricing h2, .features h2, .how-it-works h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Page-specific --- */
.page-header {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Form Styles --- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Security Page --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 48px 0;
  max-width: 880px;
  margin: 0 auto;
}

.security-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.security-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-4px);
}

.security-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.security-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Comparison Tables --- */
.comparison-table {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 32px;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table th {
  font-weight: 600;
  background: var(--bg-light);
}

.comparison-table tr:hover { background: var(--bg-light); }

/* --- Checkout Buttons --- */
.checkout-button {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.checkout-button:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 48px 0;
  max-width: 880px;
  margin: 0 auto;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-body { padding: 24px; }

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.blog-card .tag {
  display: inline-block;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero badge shimmer */
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes shimmer {
  0% { left: -100%; }
  30% { left: 120%; }
  100% { left: 120%; }
}

/* --- Dark Theme (IT Teams) --- */
[data-theme="dark"] {
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-white: #0f172a;
  --bg-light: #1e293b;
  --bg-card: #1e293b;
  --border: #334155;
  --border-light: #1e293b;
  --brand-blue-light: rgba(59, 130, 246, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
}

[data-theme="dark"] body,
[data-theme="dark"] {
  background: #0f172a;
  color: var(--text-primary);
}

[data-theme="dark"] .nav {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-links a {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-links a:hover {
  color: var(--text-primary);
}

[data-theme="dark"] .nav-hamburger svg {
  stroke: var(--text-primary);
}

[data-theme="dark"] .nav-links.open {
  background: #0f172a;
  border-bottom-color: var(--border);
}

[data-theme="dark"] .hero-badge {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--text-secondary);
}

[data-theme="dark"] .trust-bar {
  background: #1e293b;
  border-color: var(--border);
}

[data-theme="dark"] .pricing-card {
  background: #1e293b;
  border-color: var(--border);
}

[data-theme="dark"] .pricing-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15), 0 4px 6px -4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .feature-card {
  background: #1e293b;
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .how-it-works {
  background: #1e293b;
}

[data-theme="dark"] .step-number {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .cta-banner {
  background: #1d4ed8;
}

[data-theme="dark"] .cta-banner .btn-primary:hover {
  background: #e2e8f0;
}

[data-theme="dark"] .footer {
  border-top-color: var(--border);
}

[data-theme="dark"] .footer h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--border);
}

[data-theme="dark"] .checkout-button {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="dark"] .checkout-button:hover {
  border-color: var(--brand-blue);
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .comparison-table th {
  background: #1e293b;
}

[data-theme="dark"] .comparison-table tr:hover {
  background: #1e293b;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .step-number { transform: scale(1); transition: none; }
  .hero-badge::after { animation: none; }
  .pricing-card:hover,
  .feature-card:hover,
  .security-card:hover,
  .blog-card:hover,
  .btn-primary:hover { transform: none; }
}
