:root {
  --primary: #25258f;
  --primary-foreground: #ffffff;
  --secondary: #ffaa00;
  --secondary-foreground: #ffffff;
  --accent: #c2c2ef;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  /* --border: #e2e8f0; */
  --border: #e0e0ea;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.575rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--primary);
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Header */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  padding: 10px 5px;
  transition: color 0.3s ease;
}
nav a:hover,
nav a.active {
  color: #ff9800;
}
nav a.btn.active {
  color: #fff;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--muted-foreground);
  margin: 2px 0;
  transition: 0.4s;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--primary);
}

a.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.3rem;
  border-radius: 0.375rem; /* rounded-md */
  font-weight: 600; /* font-semibold */
  font-size: 1rem; /* text-sm */
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1e1e7a;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
}

.btn-secondary:hover {
  color: white;
  background-color: rgba(255, 170, 0, 0.9); /* bg-secondary/90 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl */
}

/* Hero Section */
.hero {
  padding: 6rem 0 6rem;
  background-color: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to right,
      rgba(128, 128, 128, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom right,
    rgba(37, 37, 143, 0.05),
    transparent,
    rgba(255, 170, 0, 0.05)
  );
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-desc {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0 5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  background-color: rgba(37, 37, 143, 0.1);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.highlight {
  color: var(--secondary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-card-section {
  padding: 4rem 0 0;
  background-color: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card {
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(37, 37, 143, 0.05);
  color: var(--secondary);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.bg-muted {
  background-color: rgba(241, 245, 249, 0.5);
}

.section-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 3rem;
}

.section-title-lg {
  font-size: 4rem;
}

.section-desc {
  font-size: 1.25rem;
}

.cta-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section .card-title {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--foreground);
}
.card {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-transparent {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.card-transparent:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Pricing Cards */
.card-pro {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(1.05);
  position: relative;
  z-index: 10;
}

.card-pro:hover {
  transform: scale(1.05) translateY(-2px);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title-alt {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  flex: 1;
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.icon-check {
  color: var(--primary);
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.card-pro .icon-check {
  color: var(--secondary);
}

/* Comparison Table */
.comparison-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-col-bad {
  padding: 1rem;
  background-color: rgba(241, 245, 249, 0.5);
  font-weight: 700;
  color: var(--muted-foreground);
}

.comparison-col-good {
  padding: 1rem;
  background-color: rgba(37, 37, 143, 0.05);
  font-weight: 700;
  color: var(--primary);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.5fr;
  padding: 0.675rem 0.9rem;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.comparison-row:last-child {
  border-bottom: none;
  padding-bottom: 2rem;
}

.comparison-cell {
  text-align: center;
  color: #f8b4b4;
  opacity: 0.8;
}

.comparison-cell-bad {
  text-align: center;
  color: #ef4444;
  opacity: 0.8;
}

.comparison-cell-good {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(37, 37, 143, 0.05);
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.comparison-cell-good i {
  color: var(--secondary);
}

/* Comparison Layout */
.comparison-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .comparison-layout {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

/* Process Steps */
.process-step {
  font-size: 4rem;
  color: #eee;
  font-weight: 800;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
  font-family: var(--font-heading);
}

.section-dark {
  background-color: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Who We Help Grid */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .help-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.help-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--font-body);
  font-weight: 600;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.help-item:hover {
  border-color: rgba(37, 37, 143, 0.3);
}

.help-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(37, 37, 143, 0.05);
  color: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
  color: var(--foreground);
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 60%;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.footer-col a {
  color: var(--primary);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.social-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Button */
.mobile-menu-btn,
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.mobile-menu-btn span,
.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s;
}

/* Animate hamburger to X */
.mobile-menu-btn.active span:nth-child(1),
.menu-toggle.active span:nth-child(1),
.menu-toggle.open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2),
.menu-toggle.active span:nth-child(2),
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3),
.menu-toggle.active span:nth-child(3),
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  h1,
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  h2,
  .section-title,
  .section-title-lg {
    font-size: 2rem;
  }

  .logo img {
    height: 32px; /* Reduce logo size on mobile */
    width: auto;
  }

  .mobile-menu-btn {
    display: flex; /* Show on mobile */
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile styles */
  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  nav a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  nav a,
  .nav-btn {
    margin: 0;
  }

  .nav-links {
    display: none; /* Hide by default on mobile */
  }

  .header-content {
    /* Keep flex row to align logo and burger */
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .hero-desc {
    font-size: 1.125rem;
    padding: 0;
    margin-bottom: 2rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-desc {
    font-size: 1.125rem;
  }

  .section-header {
    margin: 0 auto 2.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }

  /* Grid adjustments for mobile */
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Comparison Table Mobile */
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .comparison-header {
    display: none; /* Hide standard header on mobile */
  }

  .comparison-cell {
    font-weight: 700;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  /* Add labels for mobile context */
  .comparison-cell::before {
    content: "Feature: ";
    font-weight: 400;
    opacity: 0.7;
  }

  .comparison-cell-bad::before {
    content: "Traditional: ";
    font-weight: 700;
    color: var(--muted-foreground);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .comparison-cell-good::before {
    content: "Northstar: ";
    font-weight: 700;
    color: var(--primary);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
}

/* Legal Pages */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
