/* FELEX Landing Page — 1:1 recreation of felexcrm Landing.tsx */
/* Isolated from app.css — do not merge */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
  --lp-primary: hsl(215, 30%, 15%);
  --lp-primary-fg: #ffffff;
  --lp-bronze: hsl(24, 54%, 46%);
  --lp-bronze-light: hsl(28, 52%, 54%);
  --lp-cream: hsl(30, 33%, 94%);
  --lp-cream-soft: hsl(30, 33%, 97%);
  --lp-cream-card: hsl(30, 20%, 93%);
  --lp-cream-line: hsl(28, 20%, 88%);
  --lp-white: #ffffff;
  --lp-gray: hsl(207, 14%, 60%);
  --lp-radius: 1.125rem;
  --lp-scrollbar-thumb: hsla(215, 30%, 15%, 0.58);
  --lp-scrollbar-track: hsla(28, 20%, 88%, 0.86);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--lp-scrollbar-thumb) var(--lp-scrollbar-track);
}

body.lp-body,
body.lp-body * {
  scrollbar-width: thin;
  scrollbar-color: var(--lp-scrollbar-thumb) var(--lp-scrollbar-track);
}

body.lp-body::-webkit-scrollbar,
body.lp-body *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.lp-body::-webkit-scrollbar-track,
body.lp-body *::-webkit-scrollbar-track {
  background: var(--lp-scrollbar-track);
}

body.lp-body::-webkit-scrollbar-thumb,
body.lp-body *::-webkit-scrollbar-thumb {
  background: var(--lp-scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--lp-scrollbar-track);
}

body.lp-body::-webkit-scrollbar-corner,
body.lp-body *::-webkit-scrollbar-corner {
  background: var(--lp-scrollbar-track);
}

body.lp-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--lp-primary);
  background: var(--lp-cream);
  line-height: 1.6;
  -webkit-user-select: none;
  user-select: none;
}

body.lp-body input,
body.lp-body textarea,
body.lp-body select,
body.lp-body [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* ── NAVIGATION ── */
.lp-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--lp-primary);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-primary-fg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lp-nav-brand svg { flex-shrink: 0; }

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.lp-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.lp-nav-links a:hover { color: #fff; }

.lp-nav-actions { display: flex; gap: 12px; align-items: center; }

/* ── BUTTONS ── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  white-space: nowrap;
}

.lp-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-bronze { background: var(--lp-bronze); color: #fff; }
.lp-btn-primary { background: var(--lp-primary); color: #fff; }
.lp-btn-white { background: #fff; color: var(--lp-primary); }
.lp-btn-ghost-white { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.lp-btn-ghost-white:hover { background: rgba(255,255,255,0.18); }
.lp-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }

/* ── HERO ── */
.lp-hero {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--lp-cream-soft) 0%, var(--lp-cream) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}

.lp-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  animation: lp-fade-in 0.8s ease both;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--lp-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: lp-fade-in 0.8s 0.1s ease both;
}

.lp-hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  color: var(--lp-gray);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: lp-fade-in 0.8s 0.2s ease both;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: lp-fade-in 0.8s 0.3s ease both;
}

/* ── SECTIONS ── */
.lp-section { padding: 80px 48px; }
.lp-section-inner { max-width: 1100px; margin: 0 auto; }

.lp-section-dark {
  background: var(--lp-primary);
  color: var(--lp-primary-fg);
}

.lp-section-white { background: var(--lp-cream-soft); }
.lp-section-cream { background: var(--lp-cream); }

/* Vision */
.lp-vision { text-align: center; max-width: 680px; margin: 0 auto; }
.lp-vision p { font-size: clamp(18px, 3vw, 24px); line-height: 1.7; opacity: 0.9; }
.lp-vision p + p { margin-top: 16px; opacity: 0.75; }

/* Label above headings */
.lp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-bronze);
  margin-bottom: 12px;
}

.lp-label-light { color: var(--lp-bronze-light); }

/* Benefits grid */
.lp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.lp-benefit-card {
  background: var(--lp-cream-card);
  border-radius: var(--lp-radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(15,23,42,0.07);
  transition: transform 0.55s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.28s ease;
  will-change: transform;
  perspective: 900px;
  transform-style: preserve-3d;
  cursor: default;
}

.lp-benefit-card:hover { box-shadow: 0 14px 36px rgba(15,23,42,0.14); }

.lp-benefit-icon {
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--lp-bronze);
}

.lp-benefit-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--lp-primary); }
.lp-benefit-card p { font-size: 14px; color: var(--lp-gray); line-height: 1.6; }

/* Kanzlei section two-col */
.lp-kanzlei-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.lp-kanzlei-left h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; margin-bottom: 28px; }

.lp-kanzlei-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.lp-kanzlei-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; opacity: 0.9; }
.lp-kanzlei-bullets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-bronze); flex-shrink: 0; margin-top: 7px; }

.lp-kanzlei-features { display: flex; flex-direction: column; gap: 16px; }
.lp-kanzlei-feature { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px 24px; box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.lp-kanzlei-feature h4 { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.lp-kanzlei-feature p { font-size: 13px; opacity: 0.7; }

/* Etymology grid */
.lp-etymology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  text-align: center;
}

.lp-etymology-col { padding: 40px 32px; will-change: transform; }
.lp-etymology-col:nth-child(2) { border-left: 1px solid var(--lp-cream-line); border-right: 1px solid var(--lp-cream-line); }
.lp-etymology-col .lp-label { margin-bottom: 8px; }
.lp-etymology-col h3 { font-family: 'Fraunces', Georgia, serif; font-size: 2.5rem; font-weight: 400; color: var(--lp-primary); margin-bottom: 8px; }
.lp-etymology-col p { font-size: 14px; color: var(--lp-gray); }

/* History */
.lp-history-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.lp-history-bar { width: 4px; min-height: 200px; background: linear-gradient(to bottom, var(--lp-bronze), transparent); border-radius: 4px; }
.lp-history-text { display: flex; flex-direction: column; gap: 20px; }
.lp-history-text p { font-size: 15px; color: var(--lp-gray); line-height: 1.8; }

/* Trust grid */
.lp-trust-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 14px; margin-top: 12px; overflow: visible; will-change: transform; }
.lp-trust-card { background: var(--lp-cream-card); border-radius: 14px; padding: 18px; text-align: left; display:grid; grid-template-columns:28px 1fr; grid-template-rows:auto auto; gap:4px 10px; align-items:start; box-shadow: 0 3px 10px rgba(15,23,42,0.07); transition: box-shadow 0.18s ease; will-change: transform; }
.lp-trust-card:hover { box-shadow: 0 8px 22px rgba(15,23,42,0.09); }
.lp-trust-card svg { grid-row: 1/3; color: var(--lp-bronze); flex-shrink:0; align-self:start; margin-top:2px; width:28px; height:28px; }
.lp-trust-card h4 { font-size: 14px; font-weight: 600; color: var(--lp-primary); margin:0; min-width:0; word-break:break-word; }
.lp-trust-card p { margin:0; font-size: 12px; color: var(--lp-gray); line-height: 1.45; min-width:0; word-break:break-word; }

/* Contact */
.lp-contact { text-align: center; }
.lp-contact .lp-label { margin-bottom: 20px; }
.lp-contact h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; margin-bottom: 16px; }
.lp-contact > p { font-size: 18px; opacity: 0.8; margin-bottom: 40px; }
.lp-contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 48px; }

.lp-contact-form { max-width: 560px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.lp-contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-contact-form input, .lp-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.lp-contact-form input::placeholder, .lp-contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.lp-contact-form textarea { min-height: 100px; resize: vertical; }
.lp-contact-form-feedback { font-size: 13px; color: var(--lp-bronze-light); text-align: center; min-height: 20px; }

/* Footer */
.lp-footer {
  background: var(--lp-primary);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; }
.lp-footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── LOGIN OVERLAY ── */
.lp-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: lp-fade-in 0.15s ease;
}

.lp-login-overlay.hidden { display: none; }

.lp-login-card {
  background: var(--lp-cream-soft);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  animation: lp-slide-up 0.2s ease both;
}

.lp-login-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.lp-login-logo span { font-weight: 500; font-size: 16px; color: var(--lp-primary); letter-spacing: 0.04em; }

.lp-login-title { font-size: 22px; font-weight: 500; color: var(--lp-primary); margin-bottom: 6px; }
.lp-login-subtitle { font-size: 13px; color: var(--lp-gray); margin-bottom: 24px; }

.lp-portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lp-portal-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--lp-cream-line);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--lp-gray);
  transition: all 0.12s;
}
.lp-portal-tab.active { background: var(--lp-primary); color: #fff; border-color: var(--lp-primary); }
.lp-portal-tab:hover:not(.active) { border-color: var(--lp-primary); color: var(--lp-primary); }

.lp-login-form { display: flex; flex-direction: column; gap: 14px; }
.lp-login-field { display: flex; flex-direction: column; gap: 4px; }
.lp-login-field label { font-size: 12px; font-weight: 500; color: var(--lp-primary); }
.lp-login-field input {
  padding: 10px 14px;
  border: 1px solid hsl(214, 16%, 88%);
  border-radius: 8px;
  font-size: 14px;
  color: var(--lp-primary);
  font-family: inherit;
  transition: border-color 0.12s;
}
.lp-login-field input:focus { outline: none; border-color: var(--lp-primary); }

.lp-login-error { font-size: 13px; color: hsl(0, 70%, 42%); min-height: 18px; }
.lp-login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.lp-login-divider { text-align: center; font-size: 12px; color: var(--lp-gray); }
.lp-login-close { position: absolute; top: 12px; right: 16px; background: none; border: none; cursor: pointer; color: var(--lp-gray); font-size: 20px; line-height: 1; }
.lp-login-card-wrap { position: relative; }

/* Section headings */
.lp-section h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; margin-bottom: 16px; }
.lp-section-dark h2 { color: #fff; }

/* Animations */
@keyframes lp-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-slide-up { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Responsive */
@media (max-width: 768px) {
  .lp-nav { padding: 0 20px; }
  .lp-nav-links { display: none; }
  .lp-section { padding: 60px 20px; }
  .lp-kanzlei-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-etymology-grid { grid-template-columns: 1fr; }
  .lp-etymology-col:nth-child(2) { border-left: 0; border-right: 0; border-top: 1px solid hsl(214, 16%, 88%); border-bottom: 1px solid hsl(214, 16%, 88%); }
  .lp-footer { flex-direction: column; padding: 20px; }
  .lp-contact-form-row { grid-template-columns: 1fr; }
  .lp-hero { padding: 100px 20px 60px; }
}

/* Parallax fade-in */
.lp-fadein {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.2,0.7,0.2,1), transform 0.55s cubic-bezier(0.2,0.7,0.2,1);
}
.lp-fadein.lp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children fade-in */
.lp-benefit-card:nth-child(2).lp-fadein { transition-delay: 0.08s; }
.lp-benefit-card:nth-child(3).lp-fadein { transition-delay: 0.16s; }
.lp-benefit-card:nth-child(4).lp-fadein { transition-delay: 0.24s; }
.lp-trust-card:nth-child(2).lp-fadein { transition-delay: 0.07s; }
.lp-trust-card:nth-child(3).lp-fadein { transition-delay: 0.14s; }
.lp-trust-card:nth-child(4).lp-fadein { transition-delay: 0.21s; }
.lp-trust-card:nth-child(5).lp-fadein { transition-delay: 0.28s; }
.lp-trust-card:nth-child(6).lp-fadein { transition-delay: 0.35s; }

/* Contact form 3D will-change */
.lp-contact-form {
  will-change: transform;
  transform-origin: 50% 0%;
}
