/*
  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: var(--header-height);
  overflow-x: hidden; /* prevent horizontal scroll on small screens */
}

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

/* 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); }

/* 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%;
  }
}

/* Header */
.lp-header {
  position: fixed;
  top: 0; 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 */

/* 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;
}

/* 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-card-subtitle { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

/* 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);
}

@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: #374151; 
  border: 1px solid #e5e7eb; 
  background: #f8fafc; 
  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; }

/* 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: center; }
.lp-footer .lp-footer-links { margin: var(--spacing-sm) 0; display: inline-flex; gap: var(--spacing-lg); align-items: center; }
.lp-footer .lp-footer-links a { color: var(--brand-primary-600); 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; }

/* 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: #f3f4f6; 
  color: #374151; 
  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: #1d5ce6; border: 1px solid #cfe2ff; }

@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 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; }
}
