/**
 * Postura - Modern Landing Page Styles
 * Enterprise-grade, clean, professional design
 * Matching assessment page styling level
 */

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --color-healthy: #10b981;
  --color-sound: #3b82f6;
  --color-unhealthy: #f59e0b;
  --color-atrisk: #ef4444;

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* =========================================
   ACCESSIBILITY: SKIP LINK
   ========================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-600);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary-300);
  outline-offset: 2px;
}

/* =========================================
   BASE STYLES
   ========================================= */
.landing-page {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

/* =========================================
   HEADER
   ========================================= */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-500);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.lang-switcher .lang-current {
  font-weight: 600;
  color: var(--primary-600);
  font-size: 0.8125rem;
}

.lang-switcher .lang-link {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}

.lang-switcher .lang-link:hover {
  color: var(--primary-600);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 12px;
}

.mobile-lang-link {
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-lang-link:hover,
.mobile-lang-link.active {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-600);
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: clamp(0.875rem, 0.85rem + 0.2vw, 0.8rem);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gray-900);
}

.nav-link.active {
  color: var(--primary-600);
  font-weight: 600;
}

/* User dropdown in navbar */
.nav-user {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s;
}

.nav-user-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.nav-user-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
}

.nav-user-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.nav-dropdown.active + .nav-user-btn .nav-chevron,
.nav-user-btn:focus .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 100;
  overflow: hidden;
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--gray-50);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
}

.dropdown-item.logout-btn {
  color: var(--color-atrisk);
}

.dropdown-item.logout-btn svg {
  color: var(--color-atrisk);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 0;
}

/* PRO Dropdown Navigation */
.nav-pro-dropdown {
  position: relative;
}

.nav-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-pro-btn:hover {
  background: var(--gray-100);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  text-transform: uppercase;
}

.nav-pro-chevron {
  color: var(--gray-500);
  transition: transform 0.2s ease;
}

.nav-pro-dropdown:hover .nav-pro-chevron {
  transform: rotate(180deg);
}

.nav-pro-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 180px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.nav-pro-dropdown:hover .nav-pro-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pro-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}

.pro-menu-item:hover {
  background: var(--gray-50);
  color: var(--primary-600);
}

.pro-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.pro-menu-item:hover svg {
  color: var(--primary-500);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--primary-500);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.nav-cta:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-700);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px;
  z-index: 99;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav-link:hover {
  color: var(--primary-600);
}

.mobile-nav-link.active {
  color: var(--primary-600);
  font-weight: 600;
}

.mobile-nav-link.logout-btn {
  color: var(--color-atrisk);
  border-bottom: none;
  margin-top: 8px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.mobile-user-info svg {
  width: 20px;
  height: 20px;
  color: var(--primary-500);
}

.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--primary-500);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 8px;
}

/* Mobile PRO Section */
.mobile-pro-section {
  border-bottom: 1px solid var(--gray-200);
}

.mobile-pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mobile-pro-header .pro-badge {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.mobile-pro-chevron {
  color: var(--gray-500);
  transition: transform 0.2s ease;
}

.mobile-pro-section.active .mobile-pro-chevron {
  transform: rotate(180deg);
}

.mobile-pro-links {
  display: none;
  padding-bottom: 8px;
}

.mobile-pro-section.active .mobile-pro-links {
  display: block;
}

.mobile-pro-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px !important;
  margin-left: 8px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 6px;
  border-bottom: none !important;
}

.mobile-pro-link svg {
  color: var(--primary-500);
  flex-shrink: 0;
}

.mobile-pro-link:last-child {
  margin-bottom: 0;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  padding: calc(var(--header-height, 64px) + 56px) 24px 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

.hero-container.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--primary-500);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary-large:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.btn-primary-large svg {
  width: 20px;
  height: 20px;
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  background: white;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.btn-secondary-large:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.score-card-preview {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  width: 340px;
}

.preview-header {
  text-align: center;
  margin-bottom: 24px;
}

.preview-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
}

.score-ring-large {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
}

.score-value-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.score-max {
  font-size: 1rem;
  color: var(--gray-400);
  font-weight: 500;
}

.preview-rating {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-sound);
  margin-bottom: 24px;
}

.preview-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  width: 70px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  animation: float 3s ease-in-out infinite;
}

.floating-card svg {
  width: 20px;
  height: 20px;
}

.card-1 {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 15%;
  left: -30px;
  animation-delay: 1.5s;
}

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

/* =========================================
   SECTION COMMON STYLES
   ========================================= */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
  padding: 100px 24px;
  background: #fff;
  scroll-margin-top: var(--header-height, 64px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.icon-posture {
  background: #fef3c7;
  color: #d97706;
}
.icon-chair {
  background: #dbeafe;
  color: #2563eb;
}
.icon-desk {
  background: #d1fae5;
  color: #059669;
}
.icon-equipment {
  background: #e0e7ff;
  color: #4f46e5;
}
.icon-environment {
  background: #fce7f3;
  color: #db2777;
}
.icon-routine {
  background: #f3e8ff;
  color: #9333ea;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.how-section {
  padding: 100px 24px;
  background: var(--gray-50);
  scroll-margin-top: var(--header-height, 64px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 40px;
  height: 40px;
  background: var(--primary-500);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.step-content {
  margin-bottom: 24px;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
  margin-top: 16px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.step-visual {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* Mock Elements */
.mock-question {
  text-align: left;
}

.mock-text {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.mock-buttons {
  display: flex;
  gap: 8px;
}

.mock-yes,
.mock-no {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.mock-yes {
  background: var(--color-healthy);
  color: white;
}

.mock-no {
  background: var(--gray-200);
  color: var(--gray-600);
}

.mock-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mock-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 6px solid var(--primary-500);
  border-top-color: var(--gray-200);
}

.mock-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.mock-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-action {
  display: block;
  padding: 10px 16px;
  background: white;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  border: 1px solid var(--gray-200);
}

/* =========================================
   SCALE SECTION
   ========================================= */
.scale-section {
  padding: 100px 24px;
  background: #fff;
}

.scale-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scale-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid;
  text-align: center;
}

.scale-card.scale-healthy {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.scale-card.scale-sound {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.scale-card.scale-unhealthy {
  background: #fffbeb;
  border-color: #fde68a;
}

.scale-card.scale-atrisk {
  background: #fef2f2;
  border-color: #fecaca;
}

.scale-range {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scale-healthy .scale-range {
  color: var(--color-healthy);
}
.scale-sound .scale-range {
  color: var(--color-sound);
}
.scale-unhealthy .scale-range {
  color: var(--color-unhealthy);
}
.scale-atrisk .scale-range {
  color: var(--color-atrisk);
}

.scale-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.scale-card p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* =========================================
   B2B SECTION
   ========================================= */
.b2b-section {
  padding: 100px 24px;
  background: var(--gray-900);
  scroll-margin-top: var(--header-height, 64px);
}

.b2b-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.b2b-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.b2b-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.b2b-subtitle {
  font-size: 1.125rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.b2b-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  color: var(--gray-300);
  font-size: 1rem;
}

.b2b-features svg {
  width: 22px;
  height: 22px;
  color: var(--color-healthy);
  flex-shrink: 0;
  margin-top: 2px;
}

/* B2B Form */
.b2b-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.b2b-form .form-header {
  background: rgba(99, 102, 241, 0.15);
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.b2b-form .form-header h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.b2b-form .form-header p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.b2b-form .form-body {
  padding: 18px;
  color: var(--color-sound);
}

.b2b-form .form-group {
  margin-bottom: 20px;
}

.b2b-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.b2b-form label {
  display: block;
  color: var(--gray-400);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.b2b-form input,
.b2b-form select,
.b2b-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
}

.b2b-form input::placeholder,
.b2b-form textarea::placeholder {
  color: var(--gray-500);
}

.b2b-form input:focus,
.b2b-form select:focus,
.b2b-form textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.12);
}

.b2b-form select {
  cursor: pointer;
}

.b2b-form select option {
  background: var(--gray-800);
  color: white;
}

/* B2B Form Consent Checkbox */
.b2b-form .consent-group {
  margin-top: 8px;
}

.b2b-form .consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-300);
}

.b2b-form .consent-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.b2b-form .consent-checkbox .checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-500);
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 1px;
}

.b2b-form .consent-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.b2b-form .consent-checkbox input:checked + .checkmark {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

.b2b-form .consent-checkbox input:checked + .checkmark::after {
  display: block;
}

.b2b-form .consent-checkbox input:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.b2b-form .consent-checkbox:hover .checkmark {
  border-color: var(--primary-400);
}

.b2b-form .consent-text {
  flex: 1;
}

.b2b-form .consent-text a {
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 500;
}

.b2b-form .consent-text a:hover {
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary-500);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.form-submit svg.btn-arrow {
  width: 20px;
  height: 20px;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--gray-950, #0a0a0f);
  color: var(--gray-400);
  padding: 64px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.footer-logo .logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-column h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-column li {
  margin: 0;
}

.footer-column a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-contact {
  font-style: normal;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--primary-400);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .scale-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .b2b-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-container.landing-hero {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary-large,
  .btn-secondary-large {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
  }

  .score-card-preview {
    width: 100%;
    max-width: 320px;
  }

  .features-section,
  .how-section,
  .scale-section,
  .b2b-section {
    padding: 64px 20px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .scale-cards {
    grid-template-columns: 1fr;
  }

  .b2b-title {
    font-size: 1.875rem;
  }

  .b2b-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .step-card {
    padding: 24px;
  }
}

/* =========================================
   TOOLS & FEATURES SECTION
   ========================================= */
.tools-section {
  padding: 80px 20px;
  background: var(--gray-50);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tool-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card-featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--primary-500), #8b5cf6) border-box;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.tool-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-500);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.tool-cta:hover {
  gap: 10px;
}

.tool-cta svg {
  width: 16px;
  height: 16px;
}

.tool-cta-muted {
  color: var(--gray-400);
  font-style: italic;
  font-weight: 500;
}

/* =========================================
   MORE FEATURES SECTION
   ========================================= */
.more-features-section {
  padding: 80px 0;
  background: #fff;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.more-card {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.more-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.more-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.more-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-500);
}

.more-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.more-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* =========================================
   TOOLS & MORE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-section,
  .more-features-section {
    padding: 48px 20px;
  }
  .tools-grid,
  .more-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tool-card {
    padding: 24px;
  }
  .more-card {
    padding: 20px;
  }
}

/* =========================================
   PLATFORM HERO - Multi-tool Visual
   ========================================= */
.hero-container.platform-hero {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 64px;
  align-items: center;
}

/* Platform preview - multi-card stack */
.platform-preview {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card-stack {
  position: relative;
  width: 300px;
  height: 380px;
}

.preview-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-100);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Score Card (front, largest) */
.preview-card.card-score {
  width: 240px;
  top: 20px;
  left: 10px;
  z-index: 3;
  transform: rotate(-2deg);
}

.preview-card.card-score:hover {
  transform: rotate(-2deg) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* AI Card (top-right) */
.preview-card.card-ai {
  width: 200px;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(4deg);
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}

.preview-card.card-ai:hover {
  transform: rotate(4deg) translateY(-4px);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.2);
}

/* Checklist Card (bottom-left) */
.preview-card.card-checklist {
  width: 220px;
  bottom: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
}

.preview-card.card-checklist:hover {
  transform: rotate(-4deg) translateY(-4px);
  box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2);
}

/* Card mini header */
.card-mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.card-ai .card-mini-header {
  border-color: #fde68a;
}

.card-checklist .card-mini-header {
  border-color: #a7f3d0;
}

.mini-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.card-mini-header svg {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
  flex-shrink: 0;
}

.card-ai .card-mini-header svg {
  color: #d97706;
}

.card-checklist .card-mini-header svg {
  color: #059669;
}

/* Score card internals */
.mini-score-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 12px auto;
}

.mini-ring-svg {
  width: 100%;
  height: 100%;
}

.mini-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.mini-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.mini-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}

/* AI Chat bubble */
.mini-chat-bubble {
  background: white;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.mini-chat-bubble p {
  font-size: 0.8125rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

/* Checklist items */
.mini-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-700);
}

.check-item.pending {
  opacity: 0.5;
}

.check-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.check-item.done .check-icon {
  color: #059669;
}

/* =========================================
   ASSESSMENT HIGHLIGHT SECTION
   ========================================= */
.assessment-highlight-section {
  padding: 100px 24px;
  background: var(--gray-50);
  scroll-margin-top: var(--header-height, 64px);
}

.assessment-highlight-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.assessment-highlight-content .section-badge {
  margin-bottom: 20px;
  display: inline-block;
}

.assessment-highlight-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.assessment-highlight-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.assessment-highlight-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.assessment-highlight-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.assessment-highlight-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* =========================================
   RESPONSIVE: PLATFORM HERO + ASSESSMENT
   ========================================= */
@media (max-width: 1024px) {
  .hero-container.platform-hero {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-container.platform-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-container.platform-hero .hero-cta-group {
    justify-content: center;
  }

  .hero-container.platform-hero .hero-stats {
    justify-content: center;
  }

  .platform-preview {
    height: 340px;
  }

  .preview-card-stack {
    transform: scale(0.85);
  }

  .assessment-highlight-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .assessment-highlight-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .assessment-highlight-cta-group {
    justify-content: center;
  }

  .assessment-highlight-stats {
    justify-content: center;
  }

  .assessment-highlight-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .platform-preview {
    height: 280px;
  }

  .preview-card-stack {
    transform: scale(0.7);
  }

  .assessment-highlight-section {
    padding: 60px 24px;
  }

  .assessment-highlight-title {
    font-size: 1.875rem;
  }

  .assessment-highlight-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .assessment-highlight-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .platform-preview {
    height: 240px;
  }

  .preview-card-stack {
    transform: scale(0.6);
  }

  .assessment-highlight-container {
    gap: 32px;
  }
}
