/* Landing Page UI - Desktop layout unchanged; mobile fits viewport with same design */
/* Desktop: unchanged. Mobile: responsive so all sections/cards fit inside screen, no horizontal scroll. */

/* Mobile: prevent horizontal scroll, allow content to fit viewport */
@media (max-width: 768px) {
  html.landing-page {
    overflow-x: hidden;
  }
  body.landing-page {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }
}

/* Desktop only: fixed min-width (unchanged desktop behavior) */
@media (min-width: 769px) {
  html.landing-page {
    overflow-x: auto;
  }
  body.landing-page {
    min-width: 1280px;
  }
  /* Navbar: desktop nav visible, hamburger hidden */
  body.landing-page .nav-menu {
    position: relative !important;
    left: 0 !important;
    flex-direction: row !important;
    display: flex !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    top: auto !important;
  }
  body.landing-page .hamburger {
    display: none !important;
  }
}

/* Typography - match reference */
.lp-ui-hero,
.lp-ui-features,
.lp-ui-auto-apply,
.lp-ui-how-it-works,
.lp-ui-modules,
.lp-ui-metrics,
.lp-ui-cta,
.lp-ui-footer {
  font-family: 'Ubuntu', 'Inter', sans-serif;
}

/* Design tokens from reference */
.lp-ui-hero,
.lp-ui-features,
.lp-ui-auto-apply,
.lp-ui-how-it-works,
.lp-ui-modules,
.lp-ui-metrics,
.lp-ui-cta,
.lp-ui-footer {
  --lp-primary: #2563EB;
  --lp-secondary: #10B981;
  --lp-heading: #1E293B;
  --lp-body: #475569;
  --lp-surface: #F8FAFC;
}

/* Hero Section */
  .lp-ui-hero {
    padding: 7rem 0 4rem;
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
  }
  .lp-ui-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--lp-surface);
    opacity: 0.5;
    transform: skewX(-12deg) translateX(5%);
    z-index: 0;
  }
  .lp-ui-hero .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
  }
  .lp-ui-hero .lp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .lp-ui-hero .lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: var(--lp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #dbeafe;
    margin-bottom: 1rem;
  }
  .lp-ui-hero .lp-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--lp-heading);
    margin: 0 0 1rem;
  }
  .lp-ui-hero .lp-hero-title .lp-highlight {
    color: var(--lp-primary);
    position: relative;
    display: inline-block;
  }
  .lp-ui-hero .lp-hero-title .lp-highlight svg {
    position: absolute;
    width: 100%;
    height: 0.75rem;
    bottom: -0.25rem;
    left: 0;
    opacity: 0.3;
  }
  .lp-ui-hero .lp-hero-desc {
    font-size: 1.25rem;
    color: var(--lp-body);
    line-height: 1.6;
    max-width: 42rem;
    margin: 0 0 1.5rem;
    font-weight: 500;
  }
  .lp-ui-hero .lp-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  .lp-ui-hero .lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lp-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s;
  }
  .lp-ui-hero .lp-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  }
  .lp-ui-hero .lp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--lp-primary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border: 2px solid var(--lp-primary);
    cursor: pointer;
    transition: all 0.2s;
    width: 53vh;
  }
  .lp-ui-hero .lp-btn-outline:hover {
    background: #eff6ff;
  }
  .lp-ui-hero .lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--lp-body);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .lp-ui-hero .lp-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--lp-heading);
  }
  .lp-ui-hero .lp-trust-line {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--lp-body);
  }
  .lp-ui-hero .lp-trust-line span {
    display: flex;
    align-items: center;
  }
  .lp-ui-hero .lp-trust-line i {
    color: var(--lp-secondary);
    margin-right: 0.5rem;
  }
  /* Hero visual - dashboard mockup */
  .lp-ui-hero .lp-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .lp-ui-hero .lp-dashboard-mockup {
    width: 100%;
    max-width: 28rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px -15px rgba(37,99,235,0.4);
    border: 1px solid #f1f5f9;
    overflow: hidden;
  }
  .lp-ui-hero .lp-mockup-header {
    height: 3rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .lp-ui-hero .lp-mockup-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
  }
  .lp-ui-hero .lp-mockup-dot.red { background: #f87171; }
  .lp-ui-hero .lp-mockup-dot.yellow { background: #facc15; }
  .lp-ui-hero .lp-mockup-dot.green { background: #4ade80; }
  .lp-ui-hero .lp-mockup-content {
    padding: 1.5rem;
  }
  .lp-ui-hero .lp-mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .lp-ui-hero .lp-stat-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
  }
  .lp-ui-hero .lp-stat-box.blue {
    background: #eff6ff;
    border-color: #dbeafe;
  }
  .lp-ui-hero .lp-stat-box.blue .lp-stat-num { color: var(--lp-primary); }
  .lp-ui-hero .lp-stat-box.green {
    background: #f0fdf4;
    border-color: #dcfce7;
  }
  .lp-ui-hero .lp-stat-box.green .lp-stat-num { color: var(--lp-secondary); }
  .lp-ui-hero .lp-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  .lp-ui-hero .lp-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
  }
  .lp-ui-hero .lp-activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  .lp-ui-hero .lp-activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #64748b;
  }
  .lp-ui-hero .lp-activity-title { font-weight: 700; font-size: 0.875rem; color: var(--lp-heading); }
  .lp-ui-hero .lp-activity-meta { font-size: 0.75rem; color: #64748b; }
  .lp-ui-hero .lp-activity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  .lp-ui-hero .lp-activity-badge.pending { background: #fef3c7; color: #b45309; }
  .lp-ui-hero .lp-activity-badge.interview { background: #dcfce7; color: #15803d; }
  .lp-ui-hero .lp-floating-card {
    position: absolute;
    right: -1rem;
    top: 5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    animation: lp-bounce 3s ease-in-out infinite;
  }
  @keyframes lp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .lp-ui-hero .lp-floating-card .lp-score-num { font-size: 1.125rem; font-weight: 700; color: var(--lp-heading); }

  /* Features Section */
  .lp-ui-features {
    padding: 5rem 0;
    background: var(--lp-surface);
  }
  .lp-ui-features .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lp-ui-features .lp-section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
  }
  .lp-ui-features .lp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 1rem;
  }
  .lp-ui-features .lp-section-desc {
    font-size: 1.125rem;
    color: var(--lp-body);
  }
  .lp-ui-features .lp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .lp-ui-features .lp-feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.05);
    transition: all 0.3s;
  }
  .lp-ui-features .lp-feature-card:hover {
    box-shadow: 0 10px 30px -5px rgba(37,99,235,0.08);
    transform: translateY(-4px);
  }
  .lp-ui-features .lp-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #eff6ff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .lp-ui-features .lp-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.75rem;
  }
  .lp-ui-features .lp-feature-card p {
    color: var(--lp-body);
    line-height: 1.6;
    margin: 0;
  }

  /* Auto-Apply Section */
  .lp-ui-auto-apply {
    padding: 5rem 0;
    background: white;
    position: relative;
    overflow: hidden;
  }
  .lp-ui-auto-apply .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
  }
  .lp-ui-auto-apply .lp-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f0fdf4;
    color: var(--lp-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #dcfce7;
    margin-bottom: 1rem;
  }
  .lp-ui-auto-apply .lp-feature-showcase {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #dbeafe;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px -5px rgba(37,99,235,0.08);
  }
  .lp-ui-auto-apply .lp-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  .lp-ui-auto-apply .lp-job-demo {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
  }
  /* Job demo specific layout to match provided image */
  .lp-ui-auto-apply .lp-job-demo {
    width: 445px;
    height: 285px;
    display: flex;
    flex-direction: column;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-header {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-mockup-dot.red { background:#f87171; }
  .lp-ui-auto-apply .lp-job-demo .lp-mockup-dot.yellow { background:#facc15; }
  .lp-ui-auto-apply .lp-job-demo .lp-mockup-dot.green { background:#4ade80; }
  .lp-ui-auto-apply .lp-job-demo .lp-job-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-title {
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-company {
    font-size: 0.75rem;
    color: var(--lp-body);
    margin: 0;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-tag {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-tag-blue {
    background: #dbeafe;
    color: #1d4ed8;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-tag-green {
    background: #dcfce7;
    color: #15803d;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg,#0b74e6 0%,#1678f2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11,116,230,0.12);
    width: 100%;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11,116,230,0.18);
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    color: #92400e;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    animation: lp-pulse 1.5s infinite;
  }
  @keyframes lp-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
  .lp-ui-auto-apply .lp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .lp-ui-auto-apply .lp-benefit-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
  }
  .lp-ui-auto-apply .lp-benefit-item h4 {
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.25rem;
  }
  .lp-ui-auto-apply .lp-benefit-item p {
    font-size: 0.875rem;
    color: var(--lp-body);
    margin: 0;
  }
  .lp-ui-auto-apply .lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .lp-ui-auto-apply .lp-step-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.05);
  }
  .lp-ui-auto-apply .lp-step-icon {
    width: 3rem;
    height: 3rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .lp-ui-auto-apply .lp-step-card h4 {
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
  }
  .lp-ui-auto-apply .lp-step-card p {
    font-size: 0.75rem;
    color: var(--lp-body);
    line-height: 1.5;
    margin: 0;
  }
  .lp-ui-auto-apply .lp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lp-secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s;
  }
  .lp-ui-auto-apply .lp-cta-btn:hover {
    background: #059669;
    transform: translateY(-2px);
  }

  /* How It Works */
  .lp-ui-how-it-works {
    padding: 5rem 0;
    background: white;
  }
  .lp-ui-how-it-works .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lp-ui-how-it-works .lp-section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  .lp-ui-how-it-works .lp-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
  }
  .lp-ui-how-it-works .lp-step-circle {
    width: 6rem;
    height: 6rem;
    background: white;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    z-index: 1;
  }
  .lp-ui-how-it-works .lp-step-inner {
    width: 5rem;
    height: 5rem;
    background: var(--lp-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lp-ui-how-it-works .lp-step-item {
    text-align: center;
  }
  .lp-ui-how-it-works .lp-step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.75rem;
  }
  .lp-ui-how-it-works .lp-step-item p {
    color: var(--lp-body);
    max-width: 20rem;
    margin: 0 auto;
    line-height: 1.5;
  }

  /* Modules Section */
  .lp-ui-modules {
    padding: 5rem 0;
    background: var(--lp-surface);
  }
  .lp-ui-modules .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lp-ui-modules .lp-modules-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
  }
  .lp-ui-modules .lp-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .lp-ui-modules .lp-module-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
  }
  .lp-ui-modules .lp-module-card:hover {
    border-color: rgba(37,99,235,0.5);
  }
  .lp-ui-modules .lp-module-icon {
    width: 3rem;
    height: 3rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
  }
  .lp-ui-modules .lp-module-card:hover .lp-module-icon {
    background: var(--lp-primary);
    color: white;
  }
  .lp-ui-modules .lp-module-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 0.5rem;
  }
  .lp-ui-modules .lp-module-card p {
    font-size: 0.875rem;
    color: var(--lp-body);
    margin: 0 0 1rem;
    min-height: 2.5rem;
  }
  .lp-ui-modules .lp-module-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lp-primary);
    text-decoration: none;
  }
  .lp-ui-modules .lp-module-link:hover { text-decoration: underline; }

  /* Metrics Section */
  .lp-ui-metrics {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
  }
  .lp-ui-metrics .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lp-ui-metrics .lp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .lp-ui-metrics .lp-metric-item {
    text-align: center;
    padding: 1rem;
  }
  .lp-ui-metrics .lp-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
  }
  .lp-ui-metrics .lp-metric-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lp-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .lp-ui-metrics .lp-metric-desc {
    font-size: 0.75rem;
    color: var(--lp-body);
    margin-top: 0.25rem;
  }

  /* Primary CTA Section */
  .lp-ui-cta {
    padding: 6rem 0;
    background: var(--lp-primary);
    position: relative;
    overflow: hidden;
  }
  .lp-ui-cta .lp-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .lp-ui-cta .lp-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem;
  }
  .lp-ui-cta .lp-cta-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }
  .lp-ui-cta .lp-cta-btn-white {
    display: inline-block;
    background: white;
    color: var(--lp-primary);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.2s;
  }
  .lp-ui-cta .lp-cta-btn-white:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-2px);
  }
  .lp-ui-cta .lp-cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
  }

  /* Footer */
  .lp-ui-footer {
    padding: 4rem 0 2rem;
    background: var(--lp-surface);
    border-top: 1px solid #e2e8f0;
  }
  .lp-ui-footer .lp-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lp-ui-footer .lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  .lp-ui-footer .lp-footer-brand {
    max-width: 20rem;
  }
  .lp-ui-footer .lp-footer-brand .lp-brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .lp-ui-footer .lp-footer-brand .lp-brand-icon {
    width: 2rem;
    height: 2rem;
    background: var(--lp-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
  }
  .lp-ui-footer .lp-footer-brand .lp-brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--lp-heading);
  }
  .lp-ui-footer .lp-footer-brand p {
    font-size: 0.875rem;
    color: var(--lp-body);
    line-height: 1.6;
    margin: 0 0 1.5rem;
  }
  .lp-ui-footer .lp-footer-social {
    display: flex;
    gap: 1rem;
  }
  .lp-ui-footer .lp-footer-social a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
  }
  .lp-ui-footer .lp-footer-social a:hover {
    color: var(--lp-primary);
    border-color: var(--lp-primary);
  }
  .lp-ui-footer .lp-footer-column h4 {
    font-weight: 700;
    color: var(--lp-heading);
    margin: 0 0 1.5rem;
  }
  .lp-ui-footer .lp-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .lp-ui-footer .lp-footer-column li {
    margin-bottom: 1rem;
  }
  .lp-ui-footer .lp-footer-column a {
    font-size: 0.875rem;
    color: var(--lp-body);
    text-decoration: none;
    transition: color 0.2s;
  }
  .lp-ui-footer .lp-footer-column a:hover {
    color: var(--lp-primary);
  }
  .lp-ui-footer .lp-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .lp-ui-footer .lp-footer-bottom p,
  .lp-ui-footer .lp-footer-bottom span {
    font-size: 0.75rem;
    color: #9ca3af;
  }

/* ========== Mobile: fit viewport, same design, no horizontal scroll ========== */
@media (max-width: 768px) {
  .lp-container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hero – prevent overlap and clipping; keep card and content fully visible */
  .lp-ui-hero {
    padding: 5rem 0 3rem;
    overflow: visible;
  }
  .lp-ui-hero::before {
    display: none;
  }
  .lp-ui-hero .lp-container {
    max-width: 100%;
  }
  .lp-ui-hero .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
  .lp-ui-hero .lp-hero-text {
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .lp-ui-hero .lp-hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    overflow-wrap: break-word;
  }
  .lp-ui-hero .lp-hero-desc {
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .lp-ui-hero .lp-hero-cta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .lp-ui-hero .lp-btn-primary,
  .lp-ui-hero .lp-btn-outline,
  .lp-ui-hero .lp-btn-secondary {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  /* Mobile-specific refinement for secondary CTA: keep visual parity with design and improve tap target */
  .lp-ui-hero .lp-btn-secondary {
    background: rgba(15,23,42,0.03);
    color: var(--lp-primary);
    border: 1px solid rgba(15,23,42,0.06);
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: none;
    align-items: center;
    justify-content: center;
  }
  .lp-ui-hero .lp-btn-secondary:hover {
    background: rgba(37,99,235,0.06);
    color: var(--lp-primary);
    transform: none;
  }
  .lp-ui-hero .lp-trust-line {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .lp-ui-hero .lp-trust-line span {
    flex-shrink: 0;
  }
  .lp-ui-hero .lp-hero-visual {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .lp-ui-hero .lp-dashboard-mockup {
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
  }
  .lp-ui-hero .lp-floating-card {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  /* Features */
  .lp-ui-features .lp-container {
    max-width: 100%;
  }
  .lp-ui-features .lp-section-header {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .lp-ui-features .lp-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lp-ui-features .lp-feature-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Auto-Apply */
  .lp-ui-auto-apply .lp-container {
    max-width: 100%;
  }
  .lp-ui-auto-apply .lp-feature-showcase {
    padding: 1.5rem;
  }
  .lp-ui-auto-apply .lp-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lp-ui-auto-apply .lp-job-demo {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }
  .lp-ui-auto-apply .lp-job-demo .lp-job-content {
    min-width: 0;
  }
  .lp-ui-auto-apply .lp-steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lp-ui-auto-apply .lp-step-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* How It Works */
  .lp-ui-how-it-works .lp-container {
    max-width: 100%;
  }
  .lp-ui-how-it-works .lp-steps-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lp-ui-how-it-works .lp-step-item p {
    max-width: 100%;
  }

  /* Modules */
  .lp-ui-modules .lp-container {
    max-width: 100%;
  }
  .lp-ui-modules .lp-modules-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .lp-ui-modules .lp-modules-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lp-ui-modules .lp-module-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Metrics */
  .lp-ui-metrics .lp-container {
    max-width: 100%;
  }
  .lp-ui-metrics .lp-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lp-ui-metrics .lp-metric-item {
    min-width: 0;
  }

  /* CTA */
  .lp-ui-cta .lp-container {
    max-width: 100%;
  }
  .lp-ui-cta .lp-cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  .lp-ui-cta .lp-cta-desc {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Footer */
  .lp-ui-footer .lp-container {
    max-width: 100%;
  }
  .lp-ui-footer .lp-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lp-ui-footer .lp-footer-brand {
    max-width: 100%;
  }
  .lp-ui-footer .lp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Global: prevent any fixed width from exceeding viewport */
  .lp-ui-hero img,
  .lp-ui-features img,
  .lp-ui-auto-apply img,
  .lp-ui-modules img {
    max-width: 100%;
    height: auto;
  }
  [class^="lp-"] {
    box-sizing: border-box;
  }
}
