/*
  Caast Hub design export – portable stylesheet for static landing pages
  Usage: <link rel="stylesheet" href="./styles.css" />
*/

/* CSS Reset (minimal) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

:root {
  /* Brand Colors */
  --brand-primary-700: #00359e;
  --brand-primary-600: #1d5ce6;
  --brand-primary-500: #2970ff; /* primary CTA */
  --brand-surface-50: #eff4ff;  /* soft blue background */

  /* Semantic Colors */
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent: #f093fb;
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-error: #ef4444;

  /* Text */
  --text-primary: #1f2937;   /* slate-800 */
  --text-secondary: #4b5563; /* slate-600 */
  --text-muted: #9ca3af;     /* slate-400 */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(229, 231, 235, 0.25);
  --glass-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --glass-blur: blur(4px);

  /* Component metrics */
  --hero-min-height: 70vh;
  --header-height: 72px; /* Increased for 40px elements with proper spacing */
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  padding-top: calc(var(--header-height, 72px) + var(--announce-height, 36px));
  overflow-x: hidden; /* prevent horizontal scroll on small screens */
}

/* Reserve space when consent banner is visible */
body.lp-consent-active {
  padding-bottom: 56px;
}

/* Simple consent banner */
.lp-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70; /* above header (50) and announce (60) */
  padding: var(--spacing-md);
  pointer-events: none; /* child container will handle clicks */
}
.lp-consent-banner[hidden] {
  display: none;
}
.lp-consent-banner-visible {
  display: block;
}
.lp-consent-inner {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background: #111827;
  color: #f9fafb;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: space-between;
}
.lp-consent-text {
  flex: 1 1 220px;
  font-size: 0.8rem;
}
.lp-consent-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lp-consent-button {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.lp-consent-button-primary {
  background: var(--brand-primary-500);
  color: #ffffff;
}
.lp-consent-button-primary:hover {
  background: var(--brand-primary-600);
}
.lp-consent-button-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(156, 163, 175, 0.7);
}
.lp-consent-button-secondary:hover {
  background: rgba(31, 41, 55, 0.6);
}

@media (max-width: 640px) {
  .lp-consent-banner {
    padding: 0;
  }
  .lp-consent-inner {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 0.5rem 0.75rem 0.6rem;
    align-items: center;
  }
  .lp-consent-text {
    font-size: 0.75rem;
  }
  .lp-consent-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Smooth in-page anchor scrolling and offset for fixed header */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-height, 72px) + var(--announce-height, 36px)); }

/* Typography helpers */
.lp-text-gradient {
  background: linear-gradient(135deg, var(--brand-primary-700) 0%, var(--brand-primary-500) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: lp-gradientShift 3s ease-in-out infinite;
}

@keyframes lp-gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Layout */
.lp-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--spacing-lg); }
.lp-section { padding: var(--spacing-3xl) 0; }

/* Section polish */
.lp-section h2 { margin-bottom: var(--spacing-lg); }
main > .lp-section:nth-of-type(even) { background: var(--brand-surface-50); }

/* Simple section divider for subtle separation */
.lp-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  margin: var(--spacing-lg) 0;
}

/* Special gradient section for Private Finance Data Platform */
.lp-section.lp-gradient-section {
  background: linear-gradient(135deg, var(--brand-primary-700) 0%, var(--brand-primary-500) 100%) !important;
  background-size: 200% 200%;
  animation: lp-gradientShift 6s ease-in-out infinite;
  color: #ffffff;
}
.lp-section.lp-gradient-section .lp-section-text h2,
.lp-section.lp-gradient-section .lp-section-text p,
.lp-section.lp-gradient-section .lp-card-title,
.lp-section.lp-gradient-section .lp-card-subtitle {
  color: #ffffff;
}
.lp-section.lp-gradient-section .lp-glass-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
/* .lp-section.lp-gradient-section .lp-glass-card:hover - Disabled for static cards */

/* Special AI Agents card with blue-purple gradient */
.lp-section.lp-gradient-section .lp-ai-agents-card {
  background: linear-gradient(-45deg, #4C1D95, #9e009e, #3B0764, #9e009e) !important;
  background-size: 400% 400% !important;
  animation: lp-aiGradientShift 1s ease infinite !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-animation: lp-aiGradientShift 1s ease infinite !important;
  position: relative;
  overflow: visible;
}
.lp-ai-agents-card .lp-card-title,
.lp-ai-agents-card .lp-card-subtitle {
  color: #ffffff !important;
}
.lp-ai-agents-card .lp-card-title { font-weight: 800 !important; }
.lp-ai-agents-card .lp-card-subtitle { font-weight: 600 !important; }

/* Sparkle stars decoration for AI Agents card */
.lp-ai-agents-card::before,
.lp-ai-agents-card::after {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 0 9 9 0 12C9 15 12 24 12 24C12 24 15 15 24 12C15 9 12 0 12 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: lp-starTwinkle 2s ease-in-out infinite alternate;
}

.lp-ai-agents-card::before {
  top: 0.75rem;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  animation-delay: 0s;
}

.lp-ai-agents-card::after {
  top: 0.5rem;
  right: 1.75rem;
  width: 0.75rem;
  height: 0.75rem;
  animation-delay: 0.5s;
}

@keyframes lp-starTwinkle {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.1); }
}

@-webkit-keyframes lp-starTwinkle {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.1); }
}
/* .lp-section.lp-gradient-section .lp-ai-agents-card:hover - Disabled for static cards */

@keyframes lp-aiGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Puzzle piece effects removed - cards back to clean layout */

@-webkit-keyframes lp-aiGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Announcement bar */
.lp-announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--announce-height, 36px);
  z-index: 60; /* above header (50), below overlay (100) */
  background: var(--brand-primary-700, #00359e);
  color: #f0f4ff;
  overflow: hidden;
}
.lp-announce a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #f0f4ff; text-decoration: none; }
.lp-announce-track {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: var(--announce-height, 36px);
  padding: 0 var(--spacing-md);
  font-weight: 800;
  text-align: center;
}
.lp-announce-text { display: inline; }
.lp-announce-text.desktop-only { display: inline; }
.lp-announce-text.mobile-only { display: none; }
.lp-announce-sep { display: none; }

@media (max-width: 768px) {
  .lp-announce-track { 
    font-size: 0.85rem;
    padding: 0 var(--spacing-sm);
  }
  .lp-announce-text.desktop-only { display: none; }
  .lp-announce-text.mobile-only { display: inline; }
}

/* Header */
.lp-header {
  position: fixed;
  top: var(--announce-height, 36px); left: 0; right: 0;
  height: var(--header-height);
  z-index: 50;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.lp-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.lp-brand { display: inline-flex; align-items: center; gap: var(--spacing-sm); text-decoration: none; color: var(--text-primary); font-weight: 700; }
.lp-brand span { font-size: 1.4rem; /* 50% larger for better prominence */ }
.lp-brand img { width: 40px; height: 40px; }
.lp-header .lp-cta { display: inline-flex; gap: var(--spacing-sm); align-items: center; }
.lp-header .lp-cta .lp-glass-button { 
  padding: 0 var(--spacing-lg); 
  height: 40px; 
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger menu button - always visible on all screen sizes */
.lp-mobile-menu-button {
  display: inline-flex;
  background: transparent; border: 0; padding: 0;
  align-items: center; justify-content: center; cursor: pointer;
  flex-direction: column; gap: 2px; /* proper spacing between bars */
  height: 40px; width: 40px; min-width: 40px; /* consistent header element height */
  border-radius: var(--radius-md); /* subtle rounding */
  transition: background-color var(--transition-fast);
}
.lp-mobile-menu-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.lp-mobile-menu-bar { 
  display: block; 
  width: 27px; /* 50% larger for desktop */
  height: 5px; /* 50% larger for desktop */ 
  background: var(--brand-primary-700); 
  border-radius: 3px; /* proportionally larger radius */
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  /* keep CTA row aligned and avoid wrap */
  .lp-header .lp-cta { align-items: center; display: inline-flex; }
  /* order: language select, contact, burger */
  .lp-header .lp-cta #lp-lang-select { order: 0; }
  .lp-header .lp-cta .lp-button-primary { order: 1; }
  .lp-header .lp-cta .lp-mobile-menu-button { order: 2; }
}

/* Overlay navigation menu */
.lp-mobile-menu { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: none; z-index: 100; }
.lp-mobile-menu[aria-hidden="false"] { display: block; }
.lp-mobile-menu-content { position: absolute; top: 0; left: auto; right: 0; width: 82%; max-width: 360px; height: 100%; background: #fff; box-shadow: -2px 0 12px rgba(0,0,0,0.1); padding: var(--spacing-xl) var(--spacing-lg); display: grid; grid-template-rows: auto 1fr; gap: var(--spacing-lg); }
.lp-mobile-menu-close { 
  position: absolute; 
  top: calc(var(--header-height) / 2 - 20px); /* center vertically in header */
  right: var(--spacing-lg); /* match container padding exactly */
  width: 40px; 
  height: 40px; 
  min-width: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  background: transparent; 
  border: 0; 
  color: var(--brand-primary-700); 
  font-size: 1.8rem; 
  font-weight: 700; 
  line-height: 1; 
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}
.lp-mobile-menu-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.lp-mobile-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--spacing-md); }
.lp-mobile-toc a { color: var(--text-primary); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.lp-mobile-toc a:hover { text-decoration: underline; }

/* Language select */
.lp-lang-select { 
  border: 1px solid var(--glass-border); 
  background: var(--glass-bg); 
  backdrop-filter: var(--glass-blur); 
  -webkit-backdrop-filter: var(--glass-blur); 
  border-radius: var(--radius-lg); 
  padding: 0 var(--spacing-md); 
  height: 40px;
  min-height: 40px;
  font-weight: 600; 
  font-size: 1.44rem; /* 44% larger for emoji flags (20% + 20%) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Glass morphism primitives */
.lp-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* transition: all var(--transition-normal); - Disabled for static effect */
}
/* .lp-glass-card:hover - Disabled for static cards */

.lp-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  /* transition: all var(--transition-normal); - Disabled for static effect */
  box-shadow: var(--glass-shadow);
}
/* .lp-glass-button:hover - Disabled for static buttons */
/* .lp-glass-button:active - Disabled for static buttons */

/* Selectable cards (pricing) */
.lp-selectable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-lg); }
.lp-selectable-card { 
  cursor: pointer; 
  user-select: none; 
  outline: none; 
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: var(--spacing-lg);
}
.lp-selectable-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.lp-selectable-card.active { 
  border-color: var(--brand-primary-500); 
  box-shadow: 0 0 0 3px rgba(41,112,255,0.2);
  background: rgba(41,112,255,0.04);
}
.lp-selectable-card .lp-card-subtitle { margin-top: 4px; margin-bottom: var(--spacing-md); }
.lp-selectable-card .agent-price { 
  display: block; 
  font-size: 1.5rem; 
  color: var(--brand-primary-700); 
  margin-bottom: var(--spacing-sm);
}

/* KPI row */
.lp-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); }
.lp-kpi { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); box-shadow: var(--glass-shadow); padding: var(--spacing-lg); }
.lp-kpi-label { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.lp-kpi-value { font-weight: 800; font-size: 1.5rem; color: var(--text-primary); }

/* Compact agent row visuals */
.lp-row-select img { width: 24px; height: 24px; border-radius: 6px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.lp-agent-name { display: inline-flex; align-items: center; gap: 8px; }
.lp-agent-name img { width: 40px; height: 40px; border-radius: var(--radius-lg); object-fit: contain; }

/* Glass table */
.lp-table-wrapper { overflow: auto; border-radius: var(--radius-xl); border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lp-table td { vertical-align: middle; }
.lp-table thead th { text-align: left; padding: 12px 14px; color: var(--text-secondary); font-weight: 700; border-bottom: 1px solid rgba(229,231,235,0.6); background: rgba(255,255,255,0.35); }
.lp-table tbody td, .lp-table tfoot td { padding: 12px 14px; border-bottom: 1px solid rgba(229,231,235,0.4); }
.lp-table tbody tr { transition: background-color var(--transition-fast), box-shadow var(--transition-fast); }
.lp-table tbody tr.lp-clickable-row { cursor: pointer; }
.lp-table tbody tr.lp-clickable-row:hover { background: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1px var(--glass-border); }
.lp-table tfoot td { font-weight: 800; background: rgba(255,255,255,0.35); }
.lp-table-notes { display: block; margin-top: 8px; color: var(--text-secondary); }
.lp-table-wrapper { margin-bottom: var(--spacing-lg); }

/* KPI row layout: equal widths and spacing */
.lp-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); align-items: stretch; }

/* Add-ons cell */
.lp-addons-cell { display: grid; gap: 8px; align-items: center; }
.lp-addon-field { display: grid; grid-template-columns: 1fr 100px auto; gap: 8px; align-items: center; }
.lp-addon-field input { width: 100%; padding: 8px 10px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); }
.lp-addon-price { color: var(--text-secondary); }

/* Form */
.lp-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg); }
.lp-form-field { display: grid; gap: 6px; }
.lp-form-field span { font-weight: 700; color: var(--text-secondary); }
.lp-form-field input { height: 44px; padding: 0 12px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); }
.lp-form-note { display: block; color: var(--text-secondary); margin-top: var(--spacing-md); }

.lp-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--spacing-md); margin-top: var(--spacing-sm); align-items: stretch; }
.lp-choice-card { border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); box-shadow: var(--glass-shadow); padding: var(--spacing-lg); font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); text-align: center; display: flex; align-items: center; justify-content: center; min-height: 88px; position: relative; }
.lp-choice-card:hover, .lp-choice-card:focus-visible { border-color: rgba(124,58,237,0.4); box-shadow: 0 12px 28px -18px rgba(124,58,237,0.45); outline: none; }
.lp-choice-card.active { border-color: rgba(124,58,237,0.6); color: #7c3aed; background: rgba(124,58,237,0.12); box-shadow: 0 16px 34px -18px rgba(124,58,237,0.5); }
.lp-choice-card.active::after { content: '\2713'; position: absolute; top: 12px; right: 16px; font-size: 1rem; color: #7c3aed; }

.lp-pricing-toggle { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 8px 0 var(--spacing-md) 0; }
#lp-toggle-left-label { font-weight: 600; color: var(--text-secondary); display:none; }
#lp-toggle-right-label { color: #7c3aed; font-weight: 700; opacity: 0; transition: opacity 0.3s ease; min-width: 140px; display: none; text-align: left; }

.lp-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-md); }
.lp-agent-option { display: grid; grid-template-columns: auto 40px 1fr; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); box-shadow: var(--glass-shadow); cursor: pointer; transition: box-shadow var(--transition-fast), border-color var(--transition-fast); }
.lp-agent-option:hover { border-color: rgba(124, 58, 237, 0.4); box-shadow: 0 8px 16px -12px rgba(124, 58, 237, 0.45); }
.lp-agent-option.active { border-color: rgba(124,58,237,0.6); box-shadow: 0 12px 24px -14px rgba(124,58,237,0.45); background: rgba(124,58,237,0.12); }
.lp-agent-option input { width: 18px; height: 18px; }
.lp-agent-option img { width: 40px; height: 40px; border-radius: var(--radius-lg); object-fit: contain; }
.lp-agent-option-details { display: grid; gap: 4px; }
.lp-agent-option-name { font-weight: 700; color: var(--text-primary); }
.lp-agent-option-price { color: var(--text-secondary); font-weight: 600; }
.lp-agent-option-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.lp-agent-option-badge { display: inline-flex; align-items: center; width: max-content; padding: 2px 8px; border-radius: 999px; background: rgba(124,58,237,0.12); color: #7c3aed; font-size: 0.75rem; font-weight: 700; }

/* Report row layout under pricing table */
.lp-report-row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--spacing-lg); align-items: start; }
.lp-report-row > .lp-section-divider { grid-column: 1 / -1; }
.lp-report-left { display: grid; gap: var(--spacing-md); justify-items: start; }
.lp-report-right { display: grid; }

@media (max-width: 768px) {
  .lp-kpi-row { grid-template-columns: 1fr; }
  .lp-form-grid { grid-template-columns: 1fr; }
  .lp-report-row { grid-template-columns: 1fr; }
  .lp-choice-grid { grid-template-columns: 1fr; }
  .lp-checkbox-grid { grid-template-columns: 1fr; }
  .lp-agent-option { grid-template-columns: auto 32px 1fr; gap: 10px; }
  .lp-agent-option img { width: 32px; height: 32px; }
  
  /* Make pricing table mobile responsive */
  .lp-table-wrapper { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
  }
  .lp-table { 
    min-width: 600px; /* force horizontal scroll on small screens */
  }
  .lp-table thead th { 
    padding: 8px 6px; 
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .lp-table tbody td, .lp-table tfoot td { 
    padding: 10px 6px; 
    font-size: 0.85rem;
  }
  .lp-table tfoot td {
    font-size: 0.9rem;
  }
  /* Agent name images smaller on mobile */
  .lp-agent-name img { 
    width: 32px; 
    height: 32px; 
  }
}

/* Force left alignment for Pricing & ROI section */
#pricing-roi .lp-hero-title,
#pricing-roi .lp-hero-subtitle { text-align: left; }
#pricing-roi .lp-hero-subtitle { margin-left: 0; margin-right: 0; }
#pricing-roi .lp-kpi-row { justify-items: start; }
#pricing-roi .lp-hero-actions { justify-content: flex-start !important; }
#pricing-roi .lp-table-wrapper { margin-left: 0; }

/* Visible-section alternating background (JS-applied) */
main > .lp-section.lp-alt { background: var(--brand-surface-50); }
main > .lp-section:not(.lp-alt):not(.lp-gradient-section) { background: transparent; }

/* CTA button variant */
.lp-button-primary {
  background: var(--brand-primary-500);
  color: #ffffff;
  border: 1px solid var(--brand-primary-500);
}
.lp-button-primary:hover {
  background: var(--brand-primary-600);
  border-color: var(--brand-primary-600);
  color: #ffffff;
}

/* Purple gradient CTA with twinkling stars (matches AI Agents aesthetic) */
.lp-button-purple {
  position: relative;
  background: linear-gradient(-45deg, #4C1D95, #9e009e, #3B0764, #9e009e);
  background-size: 400% 400%;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 6px 16px rgba(158, 0, 158, 0.25);
}
.lp-button-purple::before,
.lp-button-purple::after {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 0 9 9 0 12C9 15 12 24 12 24C12 24 15 15 24 12C15 9 12 0 12 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  animation: lp-starTwinkle 2s ease-in-out infinite alternate;
  opacity: 0.95;
  pointer-events: none;
}
.lp-button-purple::before {
  top: 6px;
  right: 10px;
  width: 12px;
  height: 12px;
  animation-delay: 0s;
}
.lp-button-purple::after {
  top: 2px;
  right: 24px;
  width: 8px;
  height: 8px;
  animation-delay: 0.5s;
}

/* Card component (extracted from Hub service card) */
.lp-card {
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* transition: all var(--transition-normal); - Disabled for static effect */
  cursor: default;
}
/* Sleeker card hover - Disabled for static cards */
/* .lp-card:hover { transform: none; background: var(--glass-bg); border-color: var(--glass-border); box-shadow: var(--glass-shadow); } */

.lp-card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.lp-card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--spacing-sm); color: var(--text-primary); line-height: 1.3; }
.lp-section .lp-card .lp-card-title::before { content: ""; }

/* Centered emoji header for Agents section */
#agents-heading .lp-card::before {
  content: "";
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: var(--radius-lg);
}
/* Agent-specific icons (from assets) */
#agents-heading .lp-grid .lp-card:nth-child(1)::before { background-image: url("./assets/invoice_recoverer_icon_512.png"); } /* Invoice Recoverer */
#agents-heading .lp-grid .lp-card:nth-child(2)::before { background-image: url("./assets/bank_controller_icon_512.png"); } /* Bank Controller */
#agents-heading .lp-grid .lp-card:nth-child(3)::before { background-image: url("./assets/budget_sentinel_icon_512.png"); } /* Budget Sentinel */
#agents-heading .lp-grid .lp-card:nth-child(4)::before { background-image: url("./assets/financial_reporter_icon_512.png"); } /* Financial Reporter */
#agents-heading .lp-grid .lp-card:nth-child(5)::before { background-image: url("./assets/business_planner_icon_512.png"); } /* Business Planner */
.lp-card-subtitle { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* Agents section: center content and force 2+1 pills layout */
#agents-heading .lp-card { align-items: center; text-align: center; min-height: 260px; padding-bottom: calc(var(--spacing-xl) / 2); }
#agents-heading .lp-card-title, 
#agents-heading .lp-card-subtitle { text-align: center; }
#agents-heading .lp-vc-chips {
  display: grid !important;
  grid-template-columns: repeat(2, auto);
  grid-auto-rows: minmax(0, auto);
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
#agents-heading .lp-vc-chips .lp-vc-chip:nth-child(3) {
  grid-column: 1 / -1; /* force third pill to a new centered row */
  justify-self: center;
}
.lp-card-subtitle { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* Agents section: keep CTA left-aligned under the subheading on all viewports */
#agents-heading .lp-hero-actions {
  display: flex; /* allow alignment control */
  width: 100%;
  justify-content: flex-start;
}

/* Wide card variant (for founder/leadership card) */
.lp-card-wide { max-width: none; width: 100%; overflow: visible; }

/* Hero section */
.lp-hero {
  min-height: var(--hero-min-height);
  display: grid;
  place-items: center;
  background: #ffffff;
}
.lp-hero-inner { text-align: center; display: grid; gap: var(--spacing-lg); }
.lp-hero-eyebrow { font-size: 0.875rem; color: var(--text-secondary); letter-spacing: 0.06em; text-transform: uppercase; }
.lp-hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; }
.lp-hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text-secondary); max-width: 48ch; margin: 0 auto; }
.lp-hero-actions { display: inline-flex; gap: var(--spacing-md); justify-content: center; align-items: center; }

/* Founder section */
.lp-founder-photo { width: 150px; height: 150px; border-radius: 50% !important; object-fit: cover !important; max-width: none !important; clip-path: circle(50% at 50% 50%); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border: 2px solid #fff; display: block; }
.lp-founder-header { display: grid; gap: var(--spacing-sm); justify-items: start; }
.lp-founder-meta { display: inline-flex; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 0.9rem; }
.lp-founder-name-row { display: inline-flex; align-items: center; gap: 8px; }
.lp-linkedin-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; /* transition: transform var(--transition-fast); - Disabled for static effect */ }
.lp-linkedin-icon svg { width: 18px; height: 18px; display: inline-block; }
/* .lp-linkedin-icon:hover - Disabled for static icons */
.lp-founder-content { grid-template-columns: 1fr 3fr; }
.lp-founder-exp { margin-top: var(--spacing-md); color: var(--text-secondary); }
.lp-founder-exp h4 { margin: 0 0 6px 0; font-size: 0.95rem; color: var(--text-primary); }
.lp-founder-exp ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; font-size: 0.9rem; }
.lp-founder-exp li { line-height: 1.4; }

/* Founder card: photo centered at top, slightly outside */
.lp-founder-card { position: relative; display: grid; gap: var(--spacing-lg); padding: var(--spacing-2xl); padding-top: calc(95px + var(--spacing-lg)); overflow: visible; }
.lp-founder-card .lp-founder-photo { position: absolute; top: 0; left: 50%; transform: translate(-50%, -30%); }

/* Founder story cards in carousel */
.lp-founder-story-card {
  min-height: 220px;
  padding: var(--spacing-xl);
}

.lp-founder-intro {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.lp-founder-photo-small {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #fff;
}

/* Full-width founder story carousel */
.lp-founder-story-carousel-section {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
  background: var(--brand-surface-50);
}

.lp-founder-story-carousel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Side-by-side layout */
.lp-founder-story-layout {
  display: grid;
  grid-template-columns: 240px 1fr; /* narrower left column */
  gap: var(--spacing-2xl); /* tighter gap */
  align-items: start;
}

/* Sticky founder info on the left */
.lp-founder-info-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-xl));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md); /* reduce vertical spacing */
  padding: var(--spacing-md); /* lighter padding */
}

.lp-founder-photo-side {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06); /* softer shadow */
  border: 2px solid #fff;
}

.lp-founder-header-side {
  display: flex;
  flex-direction: column;
  gap: 4px; /* tighter */
  align-items: center;
}

.lp-founder-meta-side {
  color: var(--text-secondary);
  font-size: 0.85rem; /* slightly smaller */
  font-weight: 500;
}

/* Right side carousel */
.lp-founder-carousel-right .lp-carousel-track,
.lp-founder-story-carousel .lp-carousel-track {
  padding: var(--spacing-md);
  grid-auto-columns: minmax(448px, 1fr); /* reduced width by 30% from 640px */
}

.lp-founder-story-card-large {
  min-height: 280px;
  max-width: 560px; /* reduced width by 30% from 800px */
  padding: var(--spacing-2xl);
}

.lp-founder-story-card-large .lp-card-subtitle {
  font-size: 0.95rem; /* same as other cards */
  line-height: 1.5;
  text-align: left;
  margin-bottom: 0.75rem; /* add spacing between paragraphs */
}

/* Center hero founder card content */
.lp-founder-hero-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--spacing-md);
  min-height: 320px;
  padding: var(--spacing-2xl) !important;
  overflow: visible;
}
.lp-founder-hero-card .lp-founder-photo {
  position: static !important;
  transform: none !important;
  margin: 0 auto; /* center block image */
}
.lp-founder-hero-card .lp-founder-header { 
  text-align: center; 
  justify-items: center !important;
}

/* Ensure leadership/founder subheading wraps and doesn't overflow */
@media (max-width: 768px) {
  #founder-heading + .lp-hero-subtitle,
  [data-i18n="founder.subheading"] {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* Desktop: keep leadership subheading on a single line */
@media (min-width: 769px) {
  #founder-heading + .lp-hero-subtitle,
  [data-i18n="founder.subheading"] {
    white-space: nowrap !important;
    max-width: none !important;
  }
}

/* Hero intro spacing and justification */
.lp-founder-hero-intro {
  margin-top: var(--spacing-lg);
  text-align: justify;
}

@media (max-width: 768px) {
  .lp-founder-story-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .lp-founder-info-sticky {
    position: static;
    flex-direction: row;
    text-align: left;
    padding: var(--spacing-lg);
  }
  
  .lp-founder-photo-side {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  
  .lp-founder-header-side {
    align-items: flex-start;
  }
  
  .lp-founder-carousel-right .lp-carousel-track {
    grid-auto-columns: 90%;
    padding: var(--spacing-md);
  }
  
  .lp-founder-story-card-large {
    min-height: 240px;
    max-width: none;
    padding: var(--spacing-lg);
  }
  
  .lp-founder-story-card-large .lp-card-subtitle {
    font-size: 1rem;
  }
}

/* Inline highlight: unmatched automation */
.lp-highlight-unmatched {
  position: relative;
  font-weight: 800;
  color: #9e009e; /* requested purple */
}
.lp-highlight-unmatched .lp-highlight-stars {
  pointer-events: none;
  position: absolute;
  top: -0.2em;
  right: -1.1em;
  width: 1em;
  height: 1em;
}
.lp-highlight-unmatched .lp-highlight-stars::before,
.lp-highlight-unmatched .lp-highlight-stars::after {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239e009e' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 0 9 9 0 12C9 15 12 24 12 24C12 24 15 15 24 12C15 9 12 0 12 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  animation: lp-starTwinkle 2s ease-in-out infinite alternate;
}
.lp-highlight-unmatched .lp-highlight-stars::before {
  top: 0;
  right: 0;
  width: 0.9em;
  height: 0.9em;
  animation-delay: 0s;
}
.lp-highlight-unmatched .lp-highlight-stars::after {
  top: -0.35em;
  right: 0.65em;
  width: 0.6em;
  height: 0.6em;
  animation-delay: 0.5s;
}

/* Anchor the stars to the end of the specific word "automation" */
.lp-highlight-word {
  position: relative;
  display: inline-block;
  white-space: nowrap; /* keep stars with the word */
}
.lp-highlight-word .lp-highlight-stars {
  position: relative; /* in-flow to reserve space */
  display: inline-block;
  vertical-align: -0.1em; /* baseline alignment similar to emoji */
  margin-left: 0.4em; /* explicit gap before stars */
  width: 1.15em;
  height: 1.15em;
  left: auto; right: auto; top: auto; /* override earlier rules */
}
.lp-highlight-word .lp-highlight-stars::before,
.lp-highlight-word .lp-highlight-stars::after {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239e009e' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 0 9 9 0 12C9 15 12 24 12 24C12 24 15 15 24 12C15 9 12 0 12 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
  animation: lp-starTwinkle 2s ease-in-out infinite alternate;
}
.lp-highlight-word .lp-highlight-stars::before {
  top: 0.05em;
  left: 0;
  width: 0.95em;
  height: 0.95em;
}
.lp-highlight-word .lp-highlight-stars::after {
  top: -0.25em;
  left: 0.7em;
  width: 0.65em;
  height: 0.65em;
}

/* Grid */
.lp-grid { display: grid; gap: var(--spacing-lg); }
.lp-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-grid.columns-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Two-column section layout */
.lp-section-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.lp-section-text {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-xl));
}

.lp-section-text h2 {
  margin-bottom: var(--spacing-md);
}

.lp-section-text p {
  margin-bottom: var(--spacing-lg);
}
/* Compact chip row under section subheadings when present */
.lp-section-text + .lp-vc-chips,
.lp-section-text .lp-vc-chips {
  margin-top: calc(var(--spacing-sm) * -0.25);
}

@media (max-width: 768px) {
  .lp-grid.columns-3, .lp-grid.columns-2 { grid-template-columns: 1fr; }
  .lp-section-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  .lp-section-text {
    position: static;
  }
  /* Global container padding reduction on mobile */
  .lp-container { padding: 0 var(--spacing-md); }
  /* Header CTA mobile adjustments */
  .lp-header .lp-cta .lp-glass-button { 
    padding: 0 var(--spacing-md); 
    font-size: 0.9rem; 
    height: 36px;
    min-height: 36px;
  }
  .lp-lang-select { 
    padding: 0 var(--spacing-sm); 
    font-size: 1.296rem; /* 44% larger for emoji flags on mobile (20% + 20%) */
    height: 36px;
    min-height: 36px;
  }
  .lp-mobile-menu-button {
    height: 36px;
    width: 36px;
    min-width: 36px;
  }
  .lp-mobile-menu-close {
    top: calc(var(--header-height) / 2 - 18px);
    right: var(--spacing-md); /* match mobile container padding */
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.6rem;
  }
  .lp-brand img { 
    width: 36px; 
    height: 36px; 
  }
  .lp-brand span {
    font-size: 1.35rem; /* 50% larger for mobile */
  }
  .lp-mobile-menu-bar {
    width: 27px; /* 50% larger for mobile */
    height: 5px; /* 50% larger for mobile */
    border-radius: 3px; /* proportionally larger radius */
  }
  /* Header layout tightening on mobile */
  .lp-header .lp-container { padding: 0 var(--spacing-md); }
  .lp-header-inner { gap: var(--spacing-sm); min-width: 0; }
  .lp-header .lp-cta { gap: var(--spacing-sm); min-width: 0; }
  
  /* Mobile logo improvements */
  .lp-logos { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: var(--spacing-xl) !important; 
    row-gap: var(--spacing-2xl) !important;
    align-items: center;
    justify-items: center;
  }
  .lp-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px; /* taller to allow larger logos */
  }
  .lp-logos img { 
    max-height: 120px !important; /* ensure larger than base 40px */
    max-width: 100%;
    object-fit: contain;
  }
  .lp-logos img[src*="fairmoney"],
  .lp-logos img[src*="ynstant"] {
    max-height: 150px !important; /* ensure larger than desktop override */
  }
  /* Center Swan on mobile */
  .lp-logos a[href*="swan"] {
    justify-content: center !important;
    justify-self: center !important;
    width: 100% !important;
    padding-left: 0 !important;
  }
  /* Founder card/mobile: keep circular photo and fixed LinkedIn icon */
  .lp-founder-card .lp-founder-photo { width: 120px; height: 120px; }
  .lp-linkedin-icon { width: 22px; height: 22px; min-width: 22px; min-height: 22px; flex: 0 0 22px; overflow: hidden; border-radius: 4px; }
  .lp-linkedin-icon svg { width: 18px; height: 18px; }
}

/* Logo row (simplified) */
.lp-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-xl); align-items: start; justify-items: center; }
.lp-logo-cell { display: grid; gap: var(--spacing-sm); justify-items: center; }
.lp-logos a { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; height: 60px; }
.lp-logos img { max-height: 40px; opacity: 0.9; transition: opacity var(--transition-fast); }
.lp-logo-meta { display: grid; gap: 6px; justify-items: center; }
.lp-funding-amount { margin-top: 2px; font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }
.lp-vc-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lp-vc-chip { 
  font-size: 0.65rem; 
  color: var(--brand-primary-700, #00359e); 
  border: 1px solid #e5e7eb; 
  background: var(--brand-surface-50, #eff4ff); 
  padding: 2px 6px; 
  border-radius: 999px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-logos a:hover img { opacity: 1; }

/* Trust: second partner banner row (same visual language) */
.lp-trust-partners-heading { margin-top: var(--spacing-2xl); }
.lp-logos-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-3xl);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}
.lp-logos-partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 60px; /* match first logo row */
}
.lp-logos-partners img {
  height: 40px; /* same pixel height across partner logos */
  width: auto;
  max-width: min(220px, 60vw);
  object-fit: contain; /* no cropping/distortion */
  display: block;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}
.lp-logos-partners a:hover img { opacity: 1; }

/* Trust: partner logo size tweaks (+20% for OVHcloud + Pennylane only)
   Use classes (not src*=) so this survives renames/CDN rewrites. */
.lp-logos-partners img.lp-partner-logo { height: 48px; }

/* Trust: match title-to-logos spacing (same for both rows) */
section#trust-heading h2.lp-hero-eyebrow { margin-bottom: var(--spacing-md); }
section#trust-heading .lp-logos-partners { margin-top: var(--spacing-md); }
.lp-trust-partners-heading { margin-bottom: var(--spacing-md); }

/* Logo cards in carousel */
.lp-logo-card { 
  display: grid; 
  grid-template-rows: 80px auto 1fr; 
  gap: var(--spacing-md); 
  justify-items: center; 
  text-align: center;
  min-height: 180px;
  padding: var(--spacing-xl);
}
.lp-logo-card .lp-logo-link { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none; 
  width: 100%; 
  height: 80px; 
}
.lp-logo-card img { 
  max-height: 60px; 
  opacity: 0.9; 
  transition: opacity var(--transition-fast); 
}
.lp-logo-card .lp-logo-link:hover img { opacity: 1; }
.lp-logo-card .lp-logo-meta { 
  display: grid; 
  gap: var(--spacing-sm); 
  justify-items: center; 
  width: 100%;
  grid-template-rows: auto 1fr;
  align-content: start;
}
.lp-logo-card .lp-funding-amount { 
  font-size: 1rem; 
  font-weight: 800; 
  color: var(--text-primary);
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.lp-logo-card .lp-vc-chips { 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap; 
  justify-content: center;
  align-content: flex-start;
  min-height: 2rem;
}

/* Specific logo sizing */
.lp-logos img[src*="fairmoney"],
.lp-logos img[src*="ynstant"] {
  max-height: 80px;
}

/* Specific logo sizing for carousel cards */
.lp-logo-card img[src*="fairmoney"],
.lp-logo-card img[src*="ynstant"] {
  max-height: 90px;
}

/* Center Swan on desktop */
.lp-logos a[href*="swan"] {
  justify-content: center;
  padding-left: 0;
}

/* Footer */
.lp-footer { padding: var(--spacing-xl) 0; color: var(--text-secondary); text-align: left; }
.lp-footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  gap: var(--spacing-2xl);
  align-items: flex-start;
}
.lp-footer-brand-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}
.lp-footer-columns {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}
.lp-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--spacing-xl); text-align: left; }
.lp-footer-column { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.lp-footer-heading { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.lp-footer .lp-footer-links { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.lp-footer .lp-footer-links a { color: #0c2480; text-decoration: none; font-weight: 600; }
.lp-footer .lp-footer-links a:hover { text-decoration: underline; }
.lp-footer .lp-social-link svg { vertical-align: middle; }
.lp-footer-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.5), transparent); margin: var(--spacing-xl) 0; }
.lp-footer-brand { display: inline-flex; align-items: center; gap: var(--spacing-sm); font-weight: 800; color: #0c2480; }
.lp-footer-brand img { width: 40px; height: 40px; }
.lp-footer-bottom-text { display: flex; flex-direction: column; gap: 0.35rem; text-align: center; align-items: center; }
.lp-footer-bottom-text p { margin: 0; }
@media (max-width: 640px) {
  .lp-footer-inner { flex-direction: column; padding: 0 var(--spacing-md); }
  .lp-footer-grid { grid-template-columns: 1fr; }
}

/* Carousel */
.lp-carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--spacing-md); align-items: center; }
.lp-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: var(--spacing-lg); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--spacing-md); -webkit-overflow-scrolling: touch; }
.lp-carousel-track > * { scroll-snap-align: start; }
.lp-carousel-track::-webkit-scrollbar { height: 6px; }
.lp-carousel-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 999px; }
.lp-carousel-nav { border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.lp-carousel-prev { justify-self: start; }
.lp-carousel-next { justify-self: end; }

.lp-feedback-card { scroll-snap-align: start; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); box-shadow: var(--glass-shadow); padding: var(--spacing-xl); min-height: 220px; display: grid; gap: var(--spacing-md); }
.lp-feedback-rating { display: flex; align-items: baseline; gap: var(--spacing-sm); color: var(--text-primary); font-weight: 700; }
.lp-feedback-rating span { color: #f59e0b; letter-spacing: 1px; }
.lp-feedback-rating small { color: var(--text-secondary); font-weight: 500; }
.lp-feedback-quote { color: var(--text-primary); font-size: 0.98rem; }
.lp-feedback-tags { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.lp-feedback-tags span { 
  background: var(--brand-surface-50, #eff4ff); 
  color: var(--brand-primary-700, #00359e); 
  border: 1px solid #e5e7eb; 
  padding: 4px 12px; 
  border-radius: 999px; 
  font-size: 0.75rem; 
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.lp-feedback-foot { color: var(--text-secondary); font-size: 0.85rem; }
.lp-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; vertical-align: middle; }
.lp-badge-top { background: #e7f1ff; color: var(--brand-primary-500, #2970ff); border: 1px solid #cfe2ff; }
.lp-badge-live { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.lp-badge-soon { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
/* Status badges for agents */
.lp-badge-live { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.lp-badge-soon { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

/* Agents: pin status text to bottom, plain text (no pill) */
#agents-heading .lp-card .lp-badge-live,
#agents-heading .lp-card .lp-badge-soon {
  margin-top: auto;
  align-self: center; /* center horizontally within the card */
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  display: inline-block;
  width: auto;
  margin-bottom: 0.25rem; /* half the previous offset to bottom edge */
}

/* subtle color tweaks */
#agents-heading .lp-card .lp-badge-live { color: #059669; }
#agents-heading .lp-card .lp-badge-soon { color: #6b7280; }

/* Create extra breathing space above the status text */
#agents-heading .lp-card p.lp-card-subtitle { margin-bottom: 1.25rem; }

@media (max-width: 768px) {
  .lp-carousel { grid-template-columns: 1fr; }
  .lp-carousel-prev, .lp-carousel-next { display: none; }
  .lp-carousel-track { grid-auto-columns: 85%; }
  /* Keep annual discount toggle width stable on mobile */
  .lp-pricing-toggle { 
    display: grid !important; 
    grid-template-columns: 1fr auto auto; 
    align-items: center; 
    gap: 6px !important; 
    width: 100%;
  }
  #lp-toggle-left-label { 
    white-space: normal; 
    font-size: 0.8rem; 
    line-height: 1.2;
    max-width: 120px;
  }
  .lp-switch { flex: 0 0 auto; margin-left: 8px; }
  #lp-toggle-right-label { 
    min-width: auto !important; 
    display: inline-block !important; 
    text-align: left; 
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
    max-width: 140px;
  }
}

/* Keep brand text visible on all screen sizes */

/* Extra small screens: maintain consistent heights */
@media (max-width: 360px) {
  .lp-header .lp-cta .lp-button-primary { 
    display: inline-flex; 
    padding: 0 var(--spacing-sm); 
    font-size: 0.8rem; 
    height: 32px;
    min-height: 32px;
  }
  .lp-lang-select { 
    padding: 0 6px; 
    font-size: 1.152rem; /* 44% larger for emoji flags on small screens (20% + 20%) */
    height: 32px;
    min-height: 32px;
  }
  .lp-mobile-menu-button {
    height: 32px;
    width: 32px;
    min-width: 32px;
  }
  .lp-mobile-menu-close {
    top: calc(var(--header-height) / 2 - 16px);
    right: var(--spacing-md); /* match extra small screen container padding */
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.4rem;
  }
  .lp-brand img { 
    width: 32px; 
    height: 32px; 
  }
  .lp-brand span {
    font-size: 1.2rem; /* 50% larger for small screens */
  }
  .lp-mobile-menu-bar {
    width: 24px; /* 50% larger for small screens */
    height: 4px; /* proportionally larger */
    border-radius: 2px; /* maintain radius */
  }
}

/* Accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-glass-card, .lp-glass-button, .lp-text-gradient { transition: none; animation: none; }
}

/* Mobile-specific override to ensure one full founder card per viewport */
@media (max-width: 768px) {
  .lp-founder-story-carousel .lp-carousel-track {
    grid-auto-columns: 96% !important; /* slight peek of next card */
    padding: var(--spacing-sm);
    padding-left: 0 !important; /* align first card flush left on mobile */
    gap: var(--spacing-sm) !important; /* tighter gap between cards */
  }
  .lp-founder-story-carousel { padding: 0 var(--spacing-md); } /* match container padding */
}

/* Responsive behavior - puzzle pieces removed */

@media print {
  .lp-glass-card { background: white; border: 1px solid #ccc; box-shadow: none; }
}

/* Shiny iOS-style switch */
.lp-switch { position: relative; display:inline-block; width: 48px; height: 28px; border-radius: 28px; background: rgba(255,255,255,0.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 6px 18px rgba(76,29,149,0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background var(--transition-fast), box-shadow var(--transition-fast); }
.lp-switch:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 8px 22px rgba(76,29,149,0.22); }
.lp-switch:active .lp-switch-knob { transform: scale(0.95); }
.lp-switch .lp-switch-knob { position:absolute; left:2px; top:2px; width:24px; height:24px; border-radius:999px; background: linear-gradient(180deg,#ffffff,#f3f4f6); box-shadow: 0 8px 20px rgba(0,0,0,0.22), inset 0 -3px 5px rgba(0,0,0,0.08), 0 0 0 3px rgba(0,0,0,0.1); transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.lp-switch::before { content:""; position:absolute; inset:-2px; border-radius:inherit; background: radial-gradient(120px 40px at 10% 10%, rgba(255,255,255,0.25), transparent 40%), radial-gradient(80px 40px at 80% 0%, rgba(255,255,255,0.2), transparent 50%); pointer-events:none; }
.lp-switch-on { background: linear-gradient(135deg,#4C1D95,#7c3aed); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 10px 26px rgba(124,58,237,0.35); }
.lp-switch-on .lp-switch-knob { box-shadow: 0 8px 22px rgba(124,58,237,0.5), inset 0 -3px 5px rgba(0,0,0,0.1), 0 0 0 3px rgba(0,0,0,0.1); }

/* Discount applied label */
.lp-discount-label { display:inline-flex; align-items:center; gap:6px; font-size: 0.85rem; color: var(--text-secondary); background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2); padding: 4px 8px; border-radius: 999px; margin-top: 6px; }
.lp-discount-label::before { content:""; width:10px; height:10px; border-radius:999px; background: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
 
/* Legal library */
.lp-legal-section {
  background: #020617;
  color: #e2e8f0;
}
.lp-legal-section .lp-section-header h2,
.lp-legal-section .lp-section-header p,
.lp-legal-section .lp-section-header .lp-eyebrow {
  color: #e2e8f0;
}
.lp-legal-links,
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--spacing-md);
}
.lp-legal-links a,
.lp-footer-links a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.lp-legal-links a:hover,
.lp-footer-links a:hover {
  text-decoration: underline;
}
.lp-legal-article {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
}
.lp-legal-article-header h3 {
  color: #fff;
  margin-bottom: var(--spacing-sm);
}
.lp-legal-content p {
  color: #e2e8f0;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}
.lp-legal-block + .lp-legal-block {
  margin-top: var(--spacing-lg);
}
.lp-legal-block h4 {
  color: #fff;
  margin-bottom: var(--spacing-sm);
}
.lp-legal-subblock h5 {
  color: #cbd5f5;
  margin-bottom: var(--spacing-xs);
}
.lp-legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: #cbd5f5;
}
.lp-legal-content a {
  color: #93c5fd;
  text-decoration: underline;
}
.lp-setup-image {
  display: block;
  width: 50%;
  max-width: 360px;
  margin: var(--spacing-md) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.lp-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}
.lp-legal-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #e2e8f0;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.35);
}
.lp-legal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow: 0 15px 30px rgba(2, 6, 23, 0.55);
}
.lp-legal-card h3 {
  margin: 0;
  color: #fff;
}
.lp-legal-card p {
  margin: 0;
  color: #cbd5f5;
  line-height: 1.5;
}
.lp-legal-card span {
  margin-top: auto;
  font-weight: 600;
  color: #93c5fd;
}
.lp-legal-accordion details {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
}
.lp-legal-accordion summary {
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  outline: none;
}
.lp-legal-accordion summary::-webkit-details-marker {
  display: none;
}
.lp-legal-accordion details div {
  margin-top: var(--spacing-sm);
}
.lp-legal-section .lp-legal-article:last-of-type {
  margin-bottom: 0;
}
body.lp-legal-page {
  background: #020617;
  color: #e2e8f0;
  padding-top: var(--spacing-3xl);
}
.lp-legal-document {
  max-width: 900px;
  margin: 0 auto;
}
.lp-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}
.lp-legal-back:hover {
  text-decoration: underline;
}
.lp-legal-document-header h1 {
  margin-top: 0.5rem;
  margin-bottom: var(--spacing-sm);
  color: #fff;
}
.lp-legal-document-header p {
  color: #cbd5f5;
  margin-bottom: var(--spacing-sm);
}
.lp-legal-note {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: var(--spacing-sm);
}
@media (max-width: 768px) {
  .lp-legal-article {
    padding: var(--spacing-lg);
  }
  .lp-legal-links,
  .lp-footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-legal-grid {
    grid-template-columns: 1fr;
  }
}
