/* Landing Page Specific Styles */
:root {
  --lp-primary: #00508B;
  --lp-orange: #FF6F00;
  --lp-text: #242424;
  --lp-bg-white: #FFFFFF;
  --lp-bg-alt: #F6F9FC;
  --lp-bg-tint: #EDF5FA;
  --lp-border: #E5EAF0;
}

body.landing-page {
  font-family: 'Calibri', 'Inter', sans-serif;
  background: var(--lp-bg-white);
  color: var(--lp-text);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Typography */
.landing-page h1, .landing-page h2, .landing-page h3, .landing-page h4 {
  color: var(--lp-primary);
  margin-top: 0;
  font-weight: 700;
}
.landing-page h1 {
  font-size: 4rem; /* 64px */
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.landing-page h2 {
  font-size: 2.875rem; /* 46px */
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.landing-page h3 {
  font-size: 1.625rem; /* 26px */
  line-height: 1.3;
}
.landing-page p {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 1.5rem;
}
@media(max-width: 768px) {
  .landing-page h1 { font-size: 2.5rem; }
  .landing-page h2 { font-size: 2rem; }
}

/* Utility layout */
.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.lp-section {
  padding: 5rem 0;
}
.lp-section-alt {
  background: var(--lp-bg-alt);
}
.lp-section-tint {
  background: var(--lp-bg-tint);
}
.lp-section-primary {
  background: var(--lp-primary);
  color: white;
}
.lp-section-primary h1, .lp-section-primary h2, .lp-section-primary h3 {
  color: white;
}
.lp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.lp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.lp-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media(max-width: 768px) {
  .lp-grid-2, .lp-grid-3, .lp-grid-4 {
    grid-template-columns: 1fr;
  }
}


.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media(max-width: 1024px) {
  .lp-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 768px) {
  .lp-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.lp-btn-primary {
  background: var(--lp-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 80, 139, 0.2);
}
.lp-btn-primary:hover {
  background: #003f6f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 80, 139, 0.3);
}
.lp-btn-accent {
  background: var(--lp-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.2);
}
.lp-btn-accent:hover {
  background: #e66400;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 111, 0, 0.3);
}
.lp-btn-secondary {
  background: transparent;
  color: var(--lp-primary);
  border: 2px solid var(--lp-primary);
}
.lp-btn-secondary:hover {
  background: rgba(0, 80, 139, 0.05);
}

/* Nav */
.lp-nav {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: var(--lp-bg-white);
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lp-nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lp-primary);
  text-decoration: none;
}
.lp-nav-links {
  display: flex;
  gap: 2.5rem;
}
.lp-nav-links a {
  color: var(--lp-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lp-nav-actions .login-link {
  color: var(--lp-text);
  text-decoration: none;
  font-weight: 600;
}
@media(max-width: 768px) {
  .lp-nav-links { display: none; }
}

/* Feature Cards */
.lp-card {
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s ease;
}
.lp-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* Badges / Eyebrows */
.lp-eyebrow {
  display: inline-block;
  background: rgba(255, 111, 0, 0.1);
  color: var(--lp-orange);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Comparison Table */
.lp-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.lp-compare-table th, .lp-compare-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--lp-border);
}
.lp-compare-table th {
  background: var(--lp-bg-alt);
  font-size: 1.125rem;
  color: var(--lp-primary);
}
.lp-compare-table tr:last-child td {
  border-bottom: none;
}
.lp-compare-table td:first-child {
  color: #666;
}
.lp-compare-table td:last-child {
  font-weight: 600;
  color: var(--lp-text);
  background: rgba(0, 80, 139, 0.02);
}

/* Phone Mockup Placeholder */
.lp-phone-mockup {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/19;
  background: #fff;
  border: 8px solid #222;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-phone-mockup.overlay {
  position: absolute;
  top: 10%;
  right: -10%;
  z-index: 2;
}

/* FAQ Accordion */
.lp-faq-item {
  border-bottom: 1px solid var(--lp-border);
  padding: 1.5rem 0;
}
.lp-faq-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-faq-answer {
  display: none;
  padding-top: 1rem;
  color: #555;
}

/* Footer */
.lp-footer {
  background: #0A192F;
  color: white;
  padding: 4rem 5% 2rem;
}
.lp-footer a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.lp-footer a:hover {
  color: white;
}
.lp-footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

/* =========================================================================
   Mobile UI/UX Optimization (Max-Width: 768px)
   ========================================================================= */
.lp-mobile-menu-btn { display: none; }
.lp-mobile-drawer { display: none; }
.lp-mobile-drawer-overlay { display: none; }
.lp-sticky-cta-mobile { display: none; }
.lp-back-to-top { display: none; }

@media(max-width: 768px) {
  /* Hide Desktop Nav Actions */
  .lp-nav-actions { display: none; }
  
  /* Hamburger Button */
  .lp-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--lp-text);
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    z-index: 101;
  }
  
  /* Mobile Drawer */
  .lp-mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--lp-bg-white);
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
  }
  .lp-mobile-drawer.active {
    right: 0;
  }
  .lp-mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .lp-mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .lp-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
  .lp-drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--lp-text);
    padding: 8px;
    cursor: pointer;
  }
  .lp-mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .lp-mobile-drawer-links a {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
  }
  
  /* General Spacing and Typography */
  .lp-container {
    padding: 0 20px;
    overflow: hidden;
  }
  body.landing-page, .landing-page p {
    font-size: 16px;
  }
  .lp-section {
    padding: 3rem 0;
  }

  /* Buttons Minimum Touch Targets */
  .lp-btn {
    min-height: 48px;
  }
  
  /* Hero Section Stacking */
  .lp-grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lp-grid-2 .lp-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Product Phone Visual Layout Fix for Mobile */
  .lp-phone-mockup {
    transform: scale(0.85);
    transform-origin: top center;
  }
  .lp-phone-mockup.overlay {
    top: auto;
    bottom: -10%;
    right: 0;
    transform: scale(0.75);
    transform-origin: bottom right;
  }

  /* Comparison Table Before/After Cards */
  .lp-compare-table thead {
    display: none;
  }
  .lp-compare-table, .lp-compare-table tbody, .lp-compare-table tr, .lp-compare-table td {
    display: block;
    width: 100%;
  }
  .lp-compare-table tr {
    margin-bottom: 1.5rem;
    background: white;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  }
  .lp-compare-table td {
    border: none;
    padding: 1rem 1.25rem;
    position: relative;
  }
  .lp-compare-table td:first-child {
    border-bottom: 1px solid var(--lp-border);
    padding-top: 2.5rem;
  }
  .lp-compare-table td:last-child {
    padding-top: 2.5rem;
    background: rgba(0, 80, 139, 0.04);
  }
  .lp-compare-table td:first-child::before {
    content: "Without LinkOrder";
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
  }
  .lp-compare-table td:last-child::before {
    content: "With LinkOrder";
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--lp-primary);
  }

  /* FAQ Accessibility */
  .lp-faq-question {
    padding: 12px 0;
    min-height: 48px;
    align-items: center;
  }

  /* Floating CTA */
  .lp-sticky-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--lp-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    height: 60px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .lp-sticky-cta-mobile.visible {
    transform: translateY(0);
  }
  
  /* Back To Top Button */
  .lp-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--lp-primary);
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .lp-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Adjust body padding so floating CTA doesn't cover footer content */
  body.landing-page {
    padding-bottom: 60px;
  }
}
