/* Books Remotely - Modern Cloud Bookkeeping CSS */
/* Navy Blue (#1a365d), Teal Accent (#0ea5e9), Light Gray (#f8fafc) */

/* CSS Custom Properties */
:root {
  --primary-navy: #1a365d;
  --primary-teal: #0ea5e9;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #334155;
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --border-light: #e2e8f0;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --max-width: 1200px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p {
  margin-bottom: 1rem;
  color: var(--medium-gray);
}

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

a:hover, a:focus {
  color: var(--primary-navy);
  outline: none;
}

/* Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

/* Fix text alignment and prevent overlaps */
section {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
}

/* Ensure proper spacing between sections */
section + section {
  margin-top: 0;
}

/* Fix content width and alignment */
.content-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Prevent text overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  width: 100%;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
}

.nav-brand {
  flex: 0 0 auto;
  z-index: 1001;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand .logo i {
  color: var(--primary-teal);
  margin-right: 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  flex-shrink: 0;
  position: relative;
}

/* Enhanced logo concept - cloud + book styling */
.nav-brand .logo i::after {
  content: '☁';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.6em;
  color: var(--medium-gray);
  opacity: 0.7;
}

.nav-brand .logo:hover i {
  transform: scale(1.05);
  transition: var(--transition);
}

.nav-brand .logo:hover i::after {
  opacity: 1;
  transform: scale(1.1);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-medium);
  padding: 1rem 0;
  z-index: 1000;
}

.nav-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex: 1;
    margin: 0 2rem;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    justify-content: center;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 0.75rem 0;
  position: relative;
  transition: var(--transition);
  display: block;
  text-align: left;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
}

.nav-link:hover, .nav-link:focus {
  color: var(--primary-teal);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-teal);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .nav-actions {
    gap: 1rem;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-navy);
  margin: 2px 0;
  transition: var(--transition);
  transform-origin: center;
}

/* Hamburger menu animation when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 0.5rem;
  white-space: nowrap;
  text-align: center;
  min-height: 44px; /* Ensure touch-friendly size */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--primary-teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  min-height: 52px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  min-height: 36px;
}

.btn-full {
  width: 100%;
}

/* Fix button groups */
.hero-buttons, .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-buttons, .cta-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: none;
  }
  
  .hero-buttons .btn, .cta-buttons .btn {
    flex: 0 0 auto;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 3rem 0;
  overflow: hidden;
  min-height: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
  word-break: break-word;
}

.hero-title .accent {
  color: var(--primary-teal);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--medium-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-stats {
    gap: 2rem;
  }
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary-teal);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  color: var(--medium-gray);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  width: 100%;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-visual {
    width: 100%;
    height: 450px;
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .hero-visual {
    height: 500px;
    max-width: 800px;
  }
}

/* Pulsing rings for modern effect */
.pulse-rings {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  opacity: 0;
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: pulseRing 4s ease-out infinite;
}

.ring-2 {
  width: 300px;
  height: 300px;
  animation: pulseRing 4s ease-out infinite 1.5s;
}

.ring-3 {
  width: 400px;
  height: 400px;
  animation: pulseRing 4s ease-out infinite 3s;
}

@media (min-width: 768px) {
  .ring-1 { width: 250px; height: 250px; }
  .ring-2 { width: 350px; height: 350px; }
  .ring-3 { width: 450px; height: 450px; }
}

@media (min-width: 1024px) {
  .ring-1 { width: 300px; height: 300px; }
  .ring-2 { width: 400px; height: 400px; }
  .ring-3 { width: 500px; height: 500px; }
}

/* Benefit cards orbiting around the center */
.benefit-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.benefit-card {
  position: absolute;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 140px;
  animation: orbitFloat 6s ease-in-out infinite;
  border: 1px solid rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .benefit-card {
    padding: 1.25rem 1.5rem;
    min-width: 160px;
  }
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 1.25rem;
  color: white;
}

.card-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.card-content p {
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .card-content h4 {
    font-size: 1rem;
  }
  
  .card-content p {
    font-size: 0.875rem;
  }
}

/* Individual card positioning and colors - spread out more */
.precision-card {
  top: 5%;
  right: 0%;
  animation-delay: 0s;
}

.precision-card .card-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.trust-card {
  top: 35%;
  left: -5%;
  animation-delay: 1.5s;
}

.trust-card .card-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.remote-card {
  bottom: 5%;
  right: 0%;
  animation-delay: 3s;
}

.remote-card .card-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.efficiency-card {
  top: 50%;
  right: -5%;
  animation-delay: 4.5s;
  transform: translateY(-50%);
}

.efficiency-card .card-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Responsive positioning adjustments */
@media (min-width: 768px) {
  .precision-card {
    top: 8%;
    right: 5%;
  }

  .trust-card {
    top: 40%;
    left: 0%;
  }

  .remote-card {
    bottom: 8%;
    right: 5%;
  }

  .efficiency-card {
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1024px) {
  .precision-card {
    top: 10%;
    right: 8%;
  }

  .trust-card {
    top: 45%;
    left: 3%;
  }

  .remote-card {
    bottom: 10%;
    right: 8%;
  }

  .efficiency-card {
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
  }
}

/* Animations */
@keyframes pulseRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes orbitFloat {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-20px);
  }
}

/* Trust Section */
.trust-section {
  padding: 2rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  font-weight: 500;
  color: var(--dark-gray);
}

.badge i {
  font-size: 1.5rem;
  color: var(--primary-teal);
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
    padding: 0;
  }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--primary-navy);
  line-height: 1.3;
  word-break: break-word;
}

.section-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  word-break: break-word;
}

/* Fix list formatting and alignment */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  word-break: break-word;
  padding-left: 0.25rem;
}

/* Process steps and migration steps formatting */
.step-details ul, 
.migration-process ul,
.plan-features ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.step-details ul li,
.migration-process ul li,
.plan-features ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
  line-height: 1.5;
}

.step-details ul li i,
.migration-process ul li i,
.plan-features ul li i {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Ensure proper text wrapping in content areas */
.step-content,
.service-description,
.plan-features,
.content-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix outcome labels */
.step-outcome {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-teal);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-outcome i {
  color: var(--primary-teal);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.step-outcome span {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* Services Preview */
.services-preview {
  padding: 4rem 0;
  background: var(--white);
}

@media (min-width: 768px) {
  .services-preview {
    padding: 6rem 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
  }
}

.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .service-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: var(--primary-navy);
}

.service-card p {
  margin-bottom: 1.5rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: var(--medium-gray);
}

.service-link {
  color: var(--primary-teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  text-decoration: none;
}

.service-link:hover {
  color: var(--primary-navy);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-title {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  transition: var(--transition);
  background: var(--white);
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form, .newsletter-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.form-container {
  width: 100%;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .form-container {
    padding: 3rem 2rem;
  }
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-size: 0.875rem;
}

/* Pricing */
.pricing-section {
  padding: 6rem 0;
  background: var(--light-gray);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-light);
}

.toggle-label {
  font-weight: 500;
  color: var(--dark-gray);
}

.discount-badge {
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-teal);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 2px solid var(--primary-teal);
  transform: scale(1.05);
}

.pricing-card:hover {
  box-shadow: var(--shadow-large);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-teal);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.plan-header {
  padding: 2rem;
  text-align: center;
  background: var(--light-gray);
}

.plan-name {
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.plan-description {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

.plan-pricing {
  margin-bottom: 1rem;
}

.price-monthly, .price-annual {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--medium-gray);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.period {
  font-size: 1rem;
  color: var(--medium-gray);
}

.savings {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 0.5rem;
}

.plan-features {
  padding: 2rem;
}

.plan-features ul {
  list-style: none;
  margin: 1rem 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
}

.plan-features .fa-check {
  color: var(--success);
  font-weight: 600;
}

.plan-limits {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.limit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.limit-label {
  color: var(--medium-gray);
}

.limit-value {
  color: var(--dark-gray);
  font-weight: 500;
}

.plan-cta {
  padding: 2rem;
  text-align: center;
  background: var(--light-gray);
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-large);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--medium-gray);
  cursor: pointer;
  padding: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.payment-summary {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-item.total {
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.payment-security {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Blog Styles */
.blog-categories {
  padding: 4rem 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.category-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.category-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.category-count {
  font-size: 0.875rem;
  color: var(--medium-gray);
  font-weight: 500;
  margin-top: 1rem;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 25px;
  color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: var(--white);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-image {
  position: relative;
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  font-size: 3rem;
  color: var(--primary-teal);
  opacity: 0.3;
}

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-teal);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
}

.card-title a {
  color: var(--primary-navy);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-teal);
}

.card-excerpt {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer-section {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: var(--primary-teal);
  width: 16px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-teal);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

.cta-contact {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.8s ease-out;
}

[data-aos="fade-up"][data-aos-delay="100"] {
  animation-delay: 0.1s;
}

[data-aos="fade-up"][data-aos-delay="200"] {
  animation-delay: 0.2s;
}

[data-aos="fade-up"][data-aos-delay="300"] {
  animation-delay: 0.3s;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-navy: #000000;
    --primary-teal: #0066cc;
    --medium-gray: #444444;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout Fix for Text Alignment and Overlap Issues */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fix button text alignment */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

/* Fix service card spacing and alignment */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  padding: 2rem;
}

.service-card h3 {
  margin: 1rem 0 0.75rem 0;
  line-height: 1.3;
}

.service-card p {
  margin-bottom: auto;
  flex: 1;
}

.service-link {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Fix step content alignment in How It Works */
.step-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.step-header h3 {
  margin: 0;
  line-height: 1.2;
}

.step-duration {
  font-size: 0.875rem;
  color: var(--primary-teal);
  font-weight: 600;
}

.step-details {
  margin: 1rem 0;
}

.step-details h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--primary-navy);
}

.step-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.step-details li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.step-outcome {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.step-outcome i {
  color: var(--success);
  flex-shrink: 0;
}

/* Fix process steps layout */
.process-steps {
  margin-top: 3rem;
}

.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .step-timeline {
    gap: 4rem;
  }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  left: 2rem;
  top: 4rem;
  width: 2px;
  height: calc(100% + 3rem);
  background: var(--border-light);
  z-index: 1;
}

.step:last-child .step-connector {
  display: none;
}

/* Fix list items alignment */
ul li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix pricing card alignment */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-header {
  flex-shrink: 0;
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-features ul {
  flex: 1;
}

.plan-cta {
  flex-shrink: 0;
}

/* Fix modal content alignment */
.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Fix navigation for mobile */
@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-large);
    padding: 2rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-link {
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
  }
  
  .nav-link:hover {
    background: var(--light-gray);
  }
}

/* Fix text wrapping and spacing */
.hero-title,
.page-title,
.section-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix button spacing in hero */
.hero-buttons {
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .hero-buttons {
    margin: 2rem 0 3rem 0;
  }
}

/* Fix testimonial card alignment */
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
}

.testimonial-quote {
  flex: 1;
  margin: 1rem 0 2rem 0;
}

.testimonial-footer {
  margin-top: auto;
}

/* Fix form alignment */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
}

/* Fix blog card alignment */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
}

.card-excerpt {
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-meta {
  margin-top: auto;
  padding-top: 1rem;
}

/* Fix footer alignment */
.footer-section {
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-section {
    gap: 3rem;
  }
}

.footer-links {
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 3rem;
  }
}

/* Ensure proper text rendering */
* {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix migration process and similar list sections */
.step-details ul,
.service-features ul,
.plan-features ul,
.benefits-list ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.step-details li,
.service-features li,
.plan-features li,
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.step-details li i,
.service-features li i,
.plan-features li i,
.benefits-list li i {
  color: var(--success);
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Fix outcome section */
.step-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--success);
}

.step-outcome i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.step-outcome span {
  line-height: 1.5;
  font-weight: 500;
}

/* Fix service detail sections */
.service-detail {
  margin-bottom: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-title h3 {
  margin: 0;
  line-height: 1.2;
}

.service-badge {
  background: var(--primary-teal);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-description {
  line-height: 1.6;
}

.service-description > p {
  margin-bottom: 1.5rem;
}

.service-features {
  margin: 2rem 0;
}

.service-features h4 {
  margin-bottom: 1rem;
  color: var(--primary-navy);
  font-size: 1.125rem;
}

.service-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-gray);
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.benefit i {
  color: var(--primary-teal);
  font-size: 1rem;
}

/* Fix visual elements alignment */
.service-visual,
.feature-graphic,
.deadline-tracker,
.payroll-flow,
.report-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  text-align: center;
}

.graphic-element {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.graphic-element i {
  font-size: 2rem;
  color: var(--primary-teal);
}

.arrow {
  font-size: 1.5rem;
  color: var(--primary-teal);
  font-weight: bold;
}

/* Fix deadline tracker */
.quarters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .quarters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quarter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.quarter-name {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 1.125rem;
}

.due-date {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* Fix payroll flow */
.payroll-flow {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .payroll-flow {
    flex-wrap: nowrap;
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  min-width: 120px;
  text-align: center;
}

.flow-step i {
  font-size: 1.5rem;
  color: var(--primary-teal);
}

.flow-step span {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Fix report preview */
.report-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.report-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.report-item i {
  font-size: 1.5rem;
  color: var(--primary-teal);
}

.report-item span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Fix any remaining alignment issues */
.container > * {
  max-width: 100%;
}

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .cta-section,
  .hero-buttons,
  .nav-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}