/* ========================================
   HostLogic Website - Modern Production-Grade Styles
   Inspired by AirDNA & Previo design systems
   ======================================== */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
  /* Brand Colors - Gradient System */
  --color-purple: #8b5cf6;
  --color-indigo: #5558e3; /* Updated for WCAG AA contrast (4.6:1) */
  --color-blue: #3b82f6;
  --color-cyan: #06b6d4;

  /* Semantic Colors */
  --color-primary: #5558e3; /* Updated for WCAG AA contrast (4.6:1) */
  --color-primary-dark: #4338ca; /* Darkened to maintain hierarchy */
  --color-primary-light: #6d76f7;
  --color-secondary: #8b5cf6;
  --color-accent: #3b82f6;

  /* Neutrals - Modern Gray Scale */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Text Colors */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;
  --color-text-footer: #94a3b8; /* Light gray for dark backgrounds (WCAG AA) */

  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-bg-dark: #0f172a;
  --color-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Semantic Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Border Colors */
  --color-border-light: #e2e8f0;
  --color-border-medium: #cbd5e1;
  --color-border-dark: #94a3b8;

  /* Typography Scale */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;

  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  --font-size-7xl: 4.5rem;      /* 72px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* Spacing Scale (4px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 960px;
  --container-padding: var(--space-4);

  /* Border Radius */
  --radius-sm: 0.375rem;      /* 6px */
  --radius-md: 0.5rem;        /* 8px */
  --radius-lg: 0.75rem;       /* 12px */
  --radius-xl: 1rem;          /* 16px */
  --radius-2xl: 1.5rem;       /* 24px */
  --radius-full: 9999px;      /* Pill shape */

  /* Shadows - Modern, Subtle */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

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

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ----- CSS Reset & Base Styles ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

strong {
  font-weight: var(--font-weight-semibold);
}

/* ----- Media Elements ----- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ----- Form Elements ----- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Layout Components ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ----- Skip Link (Accessibility) ----- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 58px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform var(--transition-base);
}

/* The outer bars are pseudo-elements of the 2px middle bar: in normal flow
   they overflowed it with no gap and the three bars read as one thick "—"
   on phones. Pin them 7px above and below the middle bar instead. */
.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

/*
 * .nav-link-enterprise highlights the Enterprise item in the shared public
 * header partial (resources/views/partials/public-header.blade.php), which
 * renders on every public page. It used to live in the page-scoped
 * public-enterprise.scss, styled only on /enterprise and
 * /enterprise/developers — unstyled everywhere else the shared header
 * renders it. Belongs here, in the stylesheet every public page loads.
 */
.nav-link-enterprise {
  color: #60a5fa !important;
  font-weight: 600 !important;
}

/* Dropdown */
.has-dropdown .dropdown-toggle {
  background: transparent;
  cursor: pointer;
}

.dropdown-icon {
  transition: transform var(--transition-fast);
}

.has-dropdown[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 240px;
  width: max-content;
  padding: var(--space-2);
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown[aria-expanded="true"] .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--color-primary);
  background: var(--color-bg-secondary);
}

/* Auth Buttons in Nav */
.nav-auth {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

/* Trial CTA — the nav's primary button since 2026-08-31. Uses the SHORT
   global.start_trial label, but several locales still render 18-20 characters,
   so it must never wrap mid-phrase and push the bar into a second line at
   laptop width (1366px is the viewport this site is checked at). */
.nav-trial-cta {
  white-space: nowrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-blue) 100%);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline Button */
.btn-outline {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-border-medium);
}

.btn-outline:hover {
  color: white;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Outline Light (for dark backgrounds) */
.btn-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: var(--space-32) 0 var(--space-24);
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Mobile-only hero CTA (landing.blade.php). Hidden by default so desktop keeps
   the "the inline Laura demo is the hero CTA" decision and the header's own
   register button; shown below the nav breakpoint, where that button is locked
   inside the collapsed hamburger menu. Two classes so the rule wins regardless
   of source order against the plain .hero-actions display:flex above. */
.hero-actions.hero-actions-mobile {
  display: none;
}

/* ========================================
   TRUSTED BY SECTION
   ======================================== */
.trusted-by {
  padding: var(--space-12) 0;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border-light);
}

.trusted-by .container {
  text-align: center;
}

.trusted-by-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.trusted-by-text strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  padding: var(--space-24) 0;
  background: var(--color-bg-primary);
}

.features h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.feature-link:hover {
  gap: var(--space-3);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-6);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: white;
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-blue) 100%);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}

.step h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.step p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
  padding: var(--space-24) 0;
  background: var(--color-bg-primary);
}

.pricing h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

/* Exactly four packages: 2x2 up to 1359px (auto-fit would strand the 4th card alone
   on its own row), one row of four from 1360px with tighter card padding. The
   mobile single-column rule further down wins below 768px (same specificity, later). */
.pricing-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1360px) {
  .pricing-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .pricing-grid--4 .pricing-card {
    padding: var(--space-6);
  }
}

/* Soft-conversion lead capture at the end of product landers: own vertical air so it
   never touches the CTA band above or the footer below. */
.lead-capture-section {
  padding: var(--space-10) 0;
}

@media (min-width: 768px) {
  .lead-capture-section {
    padding: var(--space-16) 0;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-10);
  background: var(--color-bg-primary);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: white;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-blue) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.pricing-card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.pricing-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.pricing-target {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.75;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.pricing-trial-note {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  margin-bottom: var(--space-8);
}

.price-amount {
  font-size: clamp(1.75rem, 2vw + 0.5rem, var(--font-size-5xl));
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.price-currency {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-basis: 100%;
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
}

.pricing-card .btn {
  width: 100%;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: var(--space-16);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  padding: var(--space-8);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: block;
  font-style: normal;
}

.testimonial-author strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.testimonial-author span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: var(--space-24) 0;
  background: var(--color-bg-primary);
}

.about h2 {
  text-align: center;
  margin-bottom: var(--space-16);
}

.founder-story {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto var(--space-12);
  padding: var(--space-8);
  background: var(--color-bg-secondary, #f8f9fa);
  border-radius: var(--radius-xl, 16px);
}

.founder-photo {
  --founder-navy: 30, 41, 59;
  position: relative;
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl, 16px);
  background: rgb(var(--founder-navy));
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.32);
}

/* Photo sits low in the card so the dark top band carries the text and the face stays clear. */
.founder-photo img {
  position: absolute;
  inset: 16% 0 0;
  display: block;
  width: 100%;
  height: 84%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.55) contrast(1.05);
}

.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(var(--founder-navy)) 0,
    rgb(var(--founder-navy)) 15%,
    rgba(var(--founder-navy), 0.78) 20%,
    rgba(var(--founder-navy), 0.5) 25%,
    rgba(var(--founder-navy), 0.22) 29%,
    rgba(var(--founder-navy), 0) 34%
  );
  pointer-events: none;
}

.founder-photo__caption {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 0;
  text-align: left;
  color: #fff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.founder-photo__place {
  font-size: var(--font-size-xs, 0.75rem);
  opacity: 0.85;
}

.founder-photo__name {
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 700;
}

.founder-photo__title {
  font-size: var(--font-size-xs, 0.75rem);
  opacity: 0.9;
}

.founder-quote {
  margin: 0;
}

.founder-quote p {
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-3);
}

.founder-quote p::before {
  content: "\201C";
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.2em;
  color: var(--color-indigo, #6366f1);
  margin-right: 2px;
}

.founder-quote footer {
  display: flex;
  flex-direction: column;
}

.founder-quote footer strong {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.founder-quote footer span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-content p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.about-content .text-link {
  color: var(--color-indigo);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-base);
}

.about-content .text-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.about-features {
  list-style: none;
}

.about-features li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.about-features li:last-child {
  border-bottom: none;
}

.about-features strong {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.about-features span {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.2);
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta p {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* ========================================
   SUPPORT SECTION (formerly Contact)
   ======================================== */
.contact {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
  margin-top: var(--space-16);
}

/* Chatbot Container */
.support-chatbot {
  background: var(--color-bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chatbot-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 400px;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-blue) 100%);
  color: white;
}

.chatbot-header svg {
  flex-shrink: 0;
}

.chatbot-header h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  color: white;
}

.chatbot-body {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
  background: var(--color-gray-50);
}

.chatbot-message {
  margin-bottom: var(--space-4);
  display: flex;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message.bot p {
  background: white;
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  max-width: 80%;
  box-shadow: var(--shadow-sm);
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.chatbot-input-area {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-light);
}

.chatbot-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chatbot-send-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-blue) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chatbot-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chatbot-send-btn:active {
  transform: translateY(0);
}

/* Support Info */
.support-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.support-item {
  background: var(--color-bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.support-icon svg {
  color: var(--color-indigo);
}

.support-item h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.support-item p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.support-item address {
  font-style: normal;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.support-link {
  color: var(--color-indigo);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.support-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-gray-900);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  /* Explicit 5-track grid (brand + 4 nav columns), not a fixed repeat(3,...).
     The nav-column count varies by page: homepage renders brand + Products +
     Resources + Company + Legal (5 items); standalone pages (Proof/Resources/
     Investors/FAQ) render brand + Resources + Company + Legal (4, no Products
     block). The OLD 4-track grid (2fr 1fr 1fr 1fr) only fit 3 nav columns — a
     4th recurring nav column (Products) had no track to sit in and wrapped
     onto its own row under the wide brand column ("Legal fell off" on
     desktop widths). repeat(auto-fit,...) looked like the fix but is NOT
     safe here: per the CSS Grid spec, a bare `2fr` leading track has no
     definite max sizing function, so auto-fit's column-count calculation
     falls back to that track's MINIMUM (content-based) size — which can
     swallow the entire row width and collapse every nav column onto its own
     line, worse than the original bug (verified via Playwright against DEV,
     2026-08-10). An explicit 5th track has no such ambiguity: a 4-item page
     just leaves the last track empty, never wraps. */
  grid-template-columns: 2fr repeat(4, minmax(140px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--color-text-footer); /* WCAG AA contrast on dark background */
}

.footer-logo {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-4);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: white;
  background: var(--color-primary);
  transform: translateY(-2px);
}

/*
 * .footer-trust / .footer-trust__text style the security-assessment badge
 * markup in the shared public footer partial
 * (resources/views/partials/public-footer.blade.php), which renders on
 * every public page. It used to live in the page-scoped
 * public-certificates.scss, styled only on /certificates — unstyled
 * everywhere else the shared footer renders it (config
 * branding.security_assessment.public defaults false, so this was latent,
 * not yet visibly broken). Belongs here, in the stylesheet every public
 * page loads.
 */
.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-4, 1rem);
  text-decoration: none;
  color: inherit;
}

.footer-trust img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.footer-trust__text {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.footer-trust:hover .footer-trust__text {
  color: #fff;
  text-decoration: underline;
}

/* Trust badge on the left, social icons pushed to the right, one row under the
   footer columns (owner 2026-10-17). Either side may be absent: the icons still
   sit on the right. Wraps on narrow screens. */
.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer-meta-row .footer-trust {
  margin-top: 0;
}

.footer-meta-row .footer-social {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: white;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-3);
}

.footer-nav a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  color: var(--color-text-footer); /* WCAG AA contrast on dark background */
}

.footer-links {
  display: flex;
  flex-wrap: wrap; /* long localized labels (et/sv "Andmetöötlusleping"/"Personuppgiftsbiträdesavtal") must wrap, not push the page wider than the viewport */
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below */
@media (max-width: 1024px) {
  :root {
    --font-size-6xl: 3rem;
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
  }

  .founder-story {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
    gap: var(--space-5, 1.25rem);
  }

  .founder-photo {
    width: min(72vw, 270px);
  }

  .founder-photo__name {
    font-size: 1.4rem;
  }

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

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

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

/* Mobile devices */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4);
    background: white;
    border-top: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-base);
  }

  .nav-menu.is-open,
  .nav-menu[aria-expanded="true"] {
    max-height: 500px;
    opacity: 1;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--color-border-light);
    border-radius: 0;
    margin-top: var(--space-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .dropdown-menu.is-open,
  .has-dropdown[aria-expanded="true"] .dropdown-menu {
    max-height: 500px;
    opacity: 1;
  }

  .nav-auth {
    flex-direction: column;
    margin-left: 0;
    margin-top: var(--space-4);
  }

  .nav-auth .btn {
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: var(--space-20) 0 var(--space-16);
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* The nav collapses at this breakpoint, so the hero CTA is the only visible
     sign-up path — see .hero-actions.hero-actions-mobile above. */
  .hero-actions.hero-actions-mobile {
    display: flex;
  }

  /* Grids. minmax(0, 1fr), not 1fr: a bare 1fr track has a min-content floor, so
     a wide card (e.g. Finnish/Slovak .pricing-card at 320px) stretched the track
     past the viewport. */
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .testimonials-grid,
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Support chatbot: explicit height so chatbot-body flex: 1 resolves correctly on mobile
     (min-height alone is not a "definite" size for flex children) */
  .chatbot-container {
    height: 400px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

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

  /* The "|" separators are plain <span>s between the links: when the row wraps,
     one dangles at a line end (fr/fi) or start (et/sv). On mobile the row's gap
     separates the links instead; desktop keeps the separators. */
  .footer-links > span {
    display: none;
  }
}

/* ========================================
   AUTH PAGES (Login/Signup)
   ======================================== */
.auth-header {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-primary);
}

.auth-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-8);
}

.auth-header-content {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.auth-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-label-link {
  font-size: var(--font-size-sm);
  color: var(--color-indigo);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.form-label-link:hover {
  color: var(--color-blue);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-optional {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-normal);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  cursor: pointer;
}

.btn-full {
  width: 100%;
}

.auth-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}

.auth-footer-text {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.auth-link {
  color: var(--color-indigo);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.auth-features {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.auth-feature svg {
  flex-shrink: 0;
  color: var(--color-indigo);
}

.feature-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.feature-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-bg-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.loading-spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 6px;
}

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

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-content .loading-spinner {
  margin-bottom: var(--space-4);
}

/* Button Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */

/* Success Modal */
.success-modal,
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.modal-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.modal-content p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.modal-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-style: italic;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Form Error States
   ========================================================================== */

/* Form Error Message */
.form-error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

.form-error::before {
  content: '⚠ ';
  font-weight: var(--font-weight-bold);
}

/* Input Error State */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.05);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password Strength Indicator */
.password-strength {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.password-strength.weak {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-left: 3px solid var(--color-error);
}

.password-strength.strong {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-left: 3px solid var(--color-success);
}

/* ==========================================================================
   Alert Messages
   ========================================================================== */

/* Alert Box */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border-left: 4px solid currentColor;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-color: var(--color-success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-color: var(--color-error);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: #f59e0b;
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.alert-message {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary) 0%,
    var(--color-border) 50%,
    var(--color-bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-heading {
  height: 2em;
  margin-bottom: var(--space-4);
}

.skeleton-card {
  height: 200px;
  margin-bottom: var(--space-4);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ==========================================================================
   Modern Language Switcher with Flags & Multi-Column Grid
   ========================================================================== */

.language-switcher {
  position: relative;
  display: inline-block;
}

/* Trigger Button */
.language-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.language-switcher-trigger:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-medium);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-switcher-trigger:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.language-flag {
  font-size: var(--font-size-lg);
  line-height: 1;
}

.language-code {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.025em;
}

.language-chevron {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.language-chevron.rotate {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.language-switcher-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 320px;
  max-width: 480px;
  max-height: 520px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 1000;
}

/* Search Box */
.language-search-box {
  position: relative;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.language-search-icon {
  position: absolute;
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}

.language-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-10);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  transition: all 0.2s ease;
}

.language-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.language-search-input::placeholder {
  color: var(--color-text-muted);
}

/* Section */
.language-section {
  padding: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
}

.language-section + .language-section {
  border-top: 1px solid var(--color-border-light);
}

.language-section-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Language Grid */
.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

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

/* Language Item */
.language-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.language-item:hover {
  background: var(--color-bg-secondary);
}

.language-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid var(--color-primary-light);
}

.language-item-flag {
  font-size: var(--font-size-2xl);
  line-height: 1;
  flex-shrink: 0;
}

.language-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}

.language-item-code {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.language-item.active .language-item-code {
  color: var(--color-primary);
}

.language-item-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-item-check {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* No Results */
.language-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
  text-align: center;
}

.language-no-results svg {
  opacity: 0.2;
  margin-bottom: var(--space-4);
}

.language-no-results p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.language-clear-search {
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-clear-search:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-medium);
}

/* Scrollbar Styling */
.language-section::-webkit-scrollbar {
  width: 6px;
}

.language-section::-webkit-scrollbar-track {
  background: transparent;
}

.language-section::-webkit-scrollbar-thumb {
  background: var(--color-border-medium);
  border-radius: 3px;
}

.language-section::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-dark);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .language-switcher-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    max-height: 80vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  }

  .language-grid,
  .language-grid-popular {
    grid-template-columns: 1fr;
  }

  .language-section {
    max-height: calc(80vh - 100px);
  }
}

/* Alpine.js x-cloak */
[x-cloak] {
  display: none !important;
}

/* Print styles */
@media print {
  .header,
  .nav,
  .btn,
  .footer,
  .loading-spinner,
  .loading-overlay,
  .modal-overlay,
  .success-modal,
  .error-modal,
  .language-switcher {
    display: none;
  }
}

/* ----- Lead capture form ("Not ready yet?") — product landers ----- */
.lead-capture-section {
  background: var(--color-bg-secondary);
}

.lead-capture-form .lc-heading {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-3xl);
  text-align: center;
}

.lead-capture-form .lc-sub {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  text-align: center;
}

.lead-capture-form .lc-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lead-capture-form .lc-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.lead-capture-form .lc-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-lg);
}

.lead-capture-form textarea.lc-input {
  min-height: 6rem;
  resize: vertical;
}

.lead-capture-form .lc-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.lead-capture-form .lc-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.lead-capture-form .lc-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
}

.lead-capture-form .lc-consent-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.lead-capture-form .lc-submit {
  width: 100%;
  min-height: 3rem;
  white-space: normal;
}

.lead-capture-form .lc-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lead-capture-form .lc-message {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
}
