:root {
  --lf-blue: #111c57;
  --lf-blue-soft: #1b2b75;
  --lf-paper: #f8f5fd;
  --lf-line: rgba(17, 28, 87, 0.14);
}

body {
  color: var(--lf-blue);
  background: #fff;
}

.text-ink,
.text-blue-700,
.text-blue-800,
.hover\:text-blue-700:hover {
  color: var(--lf-blue) !important;
}

.bg-ink,
.bg-blue-600,
.hover\:bg-blue-700:hover,
.group:hover .group-hover\:bg-blue-700 {
  background-color: var(--lf-blue) !important;
}

.border-blue-100,
.border-blue-100\/80,
.border-blue-200,
.border-blue-500,
.border-blue-600,
.hover\:border-blue-300:hover,
.hover\:border-blue-400:hover {
  border-color: var(--lf-line) !important;
}

.bg-blue-50,
.hover\:bg-blue-50:hover,
.bg-sand {
  background-color: var(--lf-paper) !important;
}

.bg-\[linear-gradient\(180deg\2c \#f8fbff_0\%\2c \#ffffff_85\%\)\] {
  background-image: linear-gradient(180deg, var(--lf-paper) 0%, #fff 82%) !important;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(17, 28, 87, 0.055) 1px, transparent 0),
    linear-gradient(90deg, rgba(17, 28, 87, 0.055) 1px, transparent 0) !important;
}

.pattern-surface {
  background-image:
    linear-gradient(135deg, rgba(17, 28, 87, 0.16) 12%, transparent 12% 50%, rgba(17, 28, 87, 0.16) 50% 62%, transparent 62%),
    linear-gradient(135deg, transparent 0 37%, rgba(17, 28, 87, 0.16) 37% 49%, transparent 49%) !important;
  background-size: 42px 42px !important;
}

header a[aria-label="LegalFlow Expert"] img,
footer .lf-brand-logo {
  display: block;
  height: auto;
}

.lf-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--lf-blue);
}

.lf-brand-lockup-footer {
  color: #fff;
}

.lf-brand-site-name {
  max-width: 7.5rem;
  font-family: Finlandica, system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

header .lf-brand-site-name {
  display: none;
}

header a[aria-label="LegalFlow Expert"] {
  flex: 0 0 auto;
  max-width: 172px;
}

.lf-header-logo {
  width: clamp(128px, 13vw, 172px);
}

.lf-footer-logo {
  width: clamp(138px, 16vw, 196px);
}

.lf-portrait-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0 0 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.lf-portrait-card img {
  width: 100%;
  height: clamp(240px, 32vw, 360px);
  object-fit: cover;
  object-position: 52% 34%;
}

.lf-portrait-card figcaption {
  padding: 1rem 1.15rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.lf-portrait-card figcaption span {
  color: rgba(255, 255, 255, 0.68);
}

.lf-portrait-card-about {
  max-width: 520px;
  margin: 1.5rem 0 0;
  border-color: var(--lf-line);
  background: #fff;
  box-shadow: 0 24px 80px rgba(19, 47, 89, 0.12);
}

.lf-portrait-card-about figcaption {
  color: var(--lf-blue);
}

.lf-portrait-card-about img {
  height: clamp(300px, 48vw, 560px);
}

@media (max-width: 640px) {
  header .min-h-20 {
    min-height: 4.25rem;
  }

  header .rounded-full[href="/contact"] {
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .lf-brand-lockup {
    gap: 0.55rem;
  }

  .lf-header-logo {
    width: 116px;
  }

  .lf-brand-site-name {
    max-width: 5.1rem;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .lf-portrait-card img {
    height: 250px;
  }

  footer .overflow-x-auto {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  footer .inline-flex.shrink-0 {
    flex-shrink: 1 !important;
    max-width: 100%;
  }
}
