/* ═══════════════════════════════════════════════════════════
   LEXAPP — LANDING.CSS  v2
   Light hero with square texture, premium law firm aesthetic
   Palette: #313b50 (navy), #d3ae62 (gold), #f7f5f0 (off-white)
   Fonts:   Cormorant Garamond (display) · DM Sans (body)
═══════════════════════════════════════════════════════════ */

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

:root {
  --dark:        #313b50;
  --deep:        #1a2133;
  --gold:        #d3ae62;
  --gold-light:  #e8c97e;
  --gold-dim:    rgba(211,174,98,.12);
  --gold-border: rgba(211,174,98,.25);
  --off-white:   #f7f5f0;
  --white:       #ffffff;
  --muted:       #8a9ab5;
  --text:        #2c3547;
  --text-light:  #5a6a8a;
  --border-light:rgba(49,59,80,.1);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.07);
  --shadow-md:   0 8px 40px rgba(0,0,0,.12);
  --shadow-lg:   0 24px 80px rgba(0,0,0,.18);
  --font-d:      'Cormorant Garamond', Georgia, serif;
  --font-b:      'DM Sans', 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::selection { background: var(--gold); color: var(--deep); }


/* ═══════ NAVBAR ═══════ */
.lex-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(247,245,240,.0);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.lex-nav.scrolled {
  background: rgba(247,245,240,.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-light), 0 4px 24px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 32px; height: 70px;
  display: flex; align-items: center; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), #b8913d);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #1a2133; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(211,174,98,.3);
}
.logo-text {
  font-family: var(--font-d); font-size: 1.5rem;
  font-weight: 600; color: var(--dark); letter-spacing: -.01em;
}
.logo-text em { color: var(--gold); font-style: normal; }

.nav-links { display: flex; list-style: none; gap: 2px; margin-left: auto; }
.nav-links a {
  display: block; padding: 8px 15px;
  color: var(--text-light); text-decoration: none;
  font-size: .875rem; font-weight: 400; border-radius: 7px;
  letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--gold); background: var(--gold-dim); }

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

.btn-signup-nav {
  background: var(--dark); color: var(--white);
  border: none; padding: 9px 20px; border-radius: 8px;
  font-family: var(--font-b); font-weight: 600; font-size: .85rem;
  letter-spacing: .02em; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-signup-nav:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211,174,98,.3);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: .25s var(--ease);
}


/* ═══════ HERO ═══════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Square texture — the preserved element */
.hero-texture {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* Soft edge vignette so texture fades toward center */
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 70% 80% at 60% 50%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.2) 100%);
}

.hero-inner {
  position: relative; z-index: 2; flex: 1;
  max-width: 1300px; margin: 0 auto;
  padding: 120px 32px 80px;
  display: flex; align-items: center; gap: 64px;
}

/* ── Login card: right on desktop, top on mobile ── */
.hero-login-wrap { flex-shrink: 0; width: 100%; max-width: 400px; }

.login-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
/* Gold top accent line */
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
}

.login-card-header { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), #b8913d);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #1a2133;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(211,174,98,.28);
}
.login-card-header h2 {
  font-family: var(--font-d); font-size: 1.5rem;
  font-weight: 600; color: var(--dark); margin-bottom: 3px;
}
.login-card-header p { font-size: .82rem; color: var(--muted); }

.login-form { display: flex; flex-direction: column; gap: 16px; }

/* Login type radio */
.login-type-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--off-white); border-radius: 8px;
  border: 1px solid var(--border-light);
}
.lt-label { font-size: .8rem; color: var(--muted); white-space: nowrap; font-weight: 500; }
.lt-options { display: flex; gap: 16px; }
.lt-opt {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--text); cursor: pointer;
}
.lt-opt input[type="radio"] { accent-color: var(--gold); cursor: pointer; }
.lt-opt span { font-weight: 500; }

/* Field groups */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label {
  font-size: .8rem; font-weight: 600; color: var(--text-light);
  letter-spacing: .03em; text-transform: uppercase;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i:first-child {
  position: absolute; left: 13px;
  color: var(--muted); font-size: .85rem; pointer-events: none;
  transition: color .2s;
}
.input-wrap:focus-within > i:first-child { color: var(--gold); }

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: var(--off-white);
  border: 1.5px solid var(--border-light);
  border-radius: 9px;
  padding: 11px 13px 11px 38px;
  color: var(--dark); font-family: var(--font-b); font-size: .9rem;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input-wrap input::placeholder { color: #b0bcc8; }
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--gold);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(211,174,98,.15);
}

.toggle-pass {
  position: absolute; right: 11px;
  background: none; border: none;
  color: var(--muted); cursor: pointer; padding: 4px;
  transition: color .2s;
}
.toggle-pass:hover { color: var(--gold); }

.forgot-link {
  font-size: .82rem; color: var(--muted);
  text-decoration: none; align-self: flex-end;
  margin-top: -4px;
  transition: color .2s;
}
.forgot-link:hover { color: var(--gold); }

.btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--dark), #222b3c);
  color: var(--white); border: none;
  padding: 13px; border-radius: 9px;
  font-family: var(--font-b); font-weight: 600; font-size: .93rem;
  cursor: pointer; transition: all .2s;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--gold), #b8913d);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(211,174,98,.35);
}

.otp-note {
  text-align: center; font-size: .75rem; color: #aab5c8;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.otp-note i { color: var(--gold); opacity: .7; }

.login-card-footer {
  text-align: center; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: .85rem; color: var(--muted);
}
.login-card-footer a, a.open-signup {
  color: var(--gold); text-decoration: none; font-weight: 600;
  transition: color .2s;
}
.login-card-footer a:hover, a.open-signup:hover { color: #b8913d; }

.hidden { display: none !important; }

/* ── Hero copy ── */
.hero-copy { flex: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: #8a6b30; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 13px; border-radius: 100px; margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-heading {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 600; line-height: 1.1;
  color: var(--dark); letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-heading em {
  font-style: italic; font-weight: 300; color: var(--gold);
}

.hero-sub {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.75; max-width: 500px;
  margin-bottom: 30px; font-weight: 300;
}

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border-light);
  color: var(--text-light); font-size: .8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill i { font-size: .75rem; color: var(--gold); }

.btn-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), #b8913d);
  color: #1a2133; border: none;
  padding: 14px 32px; border-radius: 10px;
  font-family: var(--font-b); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.btn-hero-cta::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15); opacity: 0; transition: opacity .2s;
}
.btn-hero-cta:hover::after { opacity: 1; }
.btn-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(211,174,98,.35); }
.btn-hero-cta i { transition: transform .2s; }
.btn-hero-cta:hover i { transform: translateX(4px); }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.scroll-arrow { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }


/* ═══════ SECTION COMMONS ═══════ */
.section-inner { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

.section-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold);
  margin-bottom: 12px;
}
.section-label.light { color: var(--gold-light); }

.section-heading {
  font-family: var(--font-d); font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600; color: var(--dark); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-heading em { font-style: italic; font-weight: 300; color: var(--gold); }
.section-heading.light { color: var(--white); }

.section-sub {
  font-size: .97rem; color: var(--text-light);
  max-width: 580px; line-height: 1.7; margin-bottom: 52px; font-weight: 300;
}
.section-sub.light { color: rgba(255,255,255,.55); }


/* ═══════ FEATURES ═══════ */
.features-section { padding: 96px 0; background: var(--off-white); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.feat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 26px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(18px);
}
.feat-card.revealed { opacity: 1; transform: translateY(0); }
.feat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity .25s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-border); }
.feat-card:hover::after { opacity: 1; }

.fc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--c); margin-bottom: 16px;
}
.feat-card h3 {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 600;
  color: var(--dark); margin-bottom: 8px; letter-spacing: -.01em;
}
.feat-card > p { font-size: .86rem; color: var(--text-light); line-height: 1.65; margin-bottom: 14px; }
.feat-card ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.feat-card ul li {
  font-size: .8rem; color: var(--muted);
  padding-left: 14px; position: relative;
}
.feat-card ul li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
}


/* ═══════ SECURITY ═══════ */
.security-section {
  padding: 96px 0; background: var(--dark); position: relative; overflow: hidden;
}
.security-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(211,174,98,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211,174,98,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.sec-layout {
  display: flex; align-items: center; gap: 72px; position: relative;
}
.sec-copy { flex: 1; }
.sec-visual { flex-shrink: 0; width: 320px; }

.sec-pillars { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .9rem;
}
.pillar > div { display: flex; flex-direction: column; gap: 3px; }
.pillar strong { font-size: .93rem; font-weight: 600; color: var(--white); }
.pillar span { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.5; }

.sec-card-stack { display: flex; flex-direction: column; gap: 14px; }
.sec-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(211,174,98,.15);
  border-radius: 12px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: .25s var(--ease); position: relative; overflow: hidden;
}
.sec-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); opacity: 0; transition: opacity .25s;
}
.sec-card:hover {
  background: rgba(211,174,98,.07); border-color: rgba(211,174,98,.3);
  transform: translateX(4px);
}
.sec-card:hover::before { opacity: 1; }
.sec-card > i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.sec-card span { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; color: var(--white); display: block; }
.sec-card small { font-size: .78rem; color: rgba(255,255,255,.4); display: block; }


/* ═══════ PRICING ═══════ */
.pricing-section { padding: 96px 0; background: var(--white); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: start;
}

.price-card {
  background: var(--off-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; transition: transform .25s var(--ease), box-shadow .25s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.price-card-featured {
  background: var(--dark); border-color: var(--gold);
  box-shadow: 0 12px 60px rgba(49,59,80,.2);
  transform: scale(1.02);
}
.price-card-featured:hover { transform: scale(1.02) translateY(-5px); }

.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #b8913d);
  color: #1a2133; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 16px; border-radius: 100px;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(211,174,98,.25);
}

.pc-tier {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold); margin-bottom: 10px;
}
.pc-price {
  display: flex; align-items: baseline; gap: 3px; margin-bottom: 12px;
}
.pc-currency { font-size: .85rem; color: var(--muted); margin-top: 8px; align-self: flex-start; }
.price-card-featured .pc-currency { color: rgba(255,255,255,.45); }
.pc-amount {
  font-family: var(--font-d); font-size: 2.8rem; font-weight: 600;
  color: var(--dark); line-height: 1; letter-spacing: -.03em;
}
.price-card-featured .pc-amount { color: var(--white); }
.pc-period { font-size: .82rem; color: var(--muted); }
.price-card-featured .pc-period { color: rgba(255,255,255,.4); }

.pc-desc {
  font-size: .86rem; color: var(--text-light); line-height: 1.6;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.price-card-featured .pc-desc { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.1); }

.pc-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.pc-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: .86rem; color: var(--text);
}
.price-card-featured .pc-features li { color: rgba(255,255,255,.8); }
.pc-features li.dim { color: var(--muted); }
.price-card-featured .pc-features li.dim { color: rgba(255,255,255,.28); }
.pc-features li > i { width: 16px; text-align: center; flex-shrink: 0; }
.pc-features li .fa-check { color: #20c997; }
.pc-features li .fa-circle-xmark { color: #ccc; }
.price-card-featured .pc-features li .fa-circle-xmark { color: rgba(255,255,255,.2); }

.btn-price {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--white); border: 1.5px solid var(--border-light);
  color: var(--dark); padding: 12px; border-radius: 9px;
  font-family: var(--font-b); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .2s;
}
.btn-price:hover { background: var(--dark); border-color: var(--dark); color: var(--white); transform: translateY(-1px); }

.btn-price-gold {
  background: linear-gradient(135deg, var(--gold), #b8913d);
  border-color: transparent; color: #1a2133;
}
.btn-price-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent; color: #1a2133;
  box-shadow: 0 8px 22px rgba(211,174,98,.4);
}

.pricing-note {
  margin-top: 36px; text-align: center;
  font-size: .84rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pricing-note i { color: var(--gold); }
.pricing-note strong { color: var(--dark); }


/* ═══════ CTA BAND ═══════ */
.cta-band {
  padding: 90px 32px; background: var(--off-white);
  text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--border-light);
}
.cta-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ctab-inner {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.ctab-copy h2 {
  font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--dark); letter-spacing: -.02em; margin-bottom: 10px;
}
.ctab-copy h2 em { font-style: italic; font-weight: 300; color: var(--gold); }
.ctab-copy p { font-size: .97rem; color: var(--text-light); max-width: 460px; margin: 0 auto; line-height: 1.7; font-weight: 300; }

.btn-cta-large {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--dark), #222b3c);
  color: var(--white); border: none;
  padding: 16px 40px; border-radius: 11px;
  font-family: var(--font-b); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em; cursor: pointer; transition: all .25s;
}
.btn-cta-large:hover {
  background: linear-gradient(135deg, var(--gold), #b8913d);
  color: #1a2133;
  transform: translateY(-2px); box-shadow: 0 12px 40px rgba(211,174,98,.35);
}
.btn-cta-large i { font-size: .9rem; }


/* ═══════ FOOTER ═══════ */
.lex-footer { background: var(--deep); padding: 64px 0 0; }

.footer-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 32px 52px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}

.footer-logo {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo i { color: var(--gold); }
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-brand > p { font-size: .86rem; color: rgba(255,255,255,.38); line-height: 1.65; }

.footer-links { display: flex; flex-direction: column; }
.footer-links h4 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.25); margin-bottom: 14px;
}
.footer-links a {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .86rem; padding: 4px 0; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  padding: 18px 32px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .79rem; color: rgba(255,255,255,.22);
}
.footer-bottom strong { color: var(--gold); }


/* ═══════ MODAL ═══════ */
.modal-backdrop-custom {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(17,24,39,.6);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-backdrop-custom.active { opacity: 1; pointer-events: all; }

.lex-modal-overlay {
  position: fixed; inset: 0; z-index: 9910;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0; transform: translateY(20px) scale(.97);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lex-modal-overlay.active { opacity: 1; transform: none; pointer-events: all; }

.lex-modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 40px 120px rgba(0,0,0,.3);
  position: relative;
}
/* gold top bar */
.lex-modal-box::before {
  content: ''; position: sticky; display: block; top: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), #b8913d, transparent);
  border-radius: 20px 20px 0 0; flex-shrink: 0;
}

.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  background: var(--off-white); border: 1px solid var(--border-light);
  border-radius: 7px; font-size: 1.1rem; line-height: 1;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s; z-index: 1;
}
.modal-x:hover { background: #ffe8e8; color: #c0392b; border-color: #ffc0c0; }

.modal-header-block {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 24px 0;
}
.modal-logo-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #b8913d);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #1a2133;
  box-shadow: 0 4px 14px rgba(211,174,98,.25);
}
.modal-header-block h3 {
  font-family: var(--font-d); font-size: 1.4rem;
  font-weight: 600; color: var(--dark); margin: 0 0 2px;
}
.modal-header-block p { font-size: .82rem; color: var(--muted); margin: 0; }

.modal-fields {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 24px 0;
}

.mfield { display: flex; flex-direction: column; gap: 5px; }
.mfield label {
  font-size: .78rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .04em;
}
.req { color: var(--gold); }

/* reuse .input-wrap styles — inputs inherit from above */
.mfield .input-wrap input,
.mfield .input-wrap select {
  background: var(--off-white);
}

.select-wrap .sel-arrow {
  position: absolute; right: 12px; color: var(--muted);
  font-size: .72rem; pointer-events: none;
}
.mfield .input-wrap select { padding-right: 32px; }

.field-err {
  font-size: .77rem; color: #e63950;
  display: none; padding-left: 2px;
}
.field-err.show { display: block; }

.btn-modal-submit {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 48px); margin: 20px 24px 24px;
  background: linear-gradient(135deg, var(--dark), #222b3c);
  color: var(--white); border: none;
  padding: 14px; border-radius: 9px;
  font-family: var(--font-b); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .2s;
}
.btn-modal-submit:hover {
  background: linear-gradient(135deg, var(--gold), #b8913d);
  color: #1a2133;
  box-shadow: 0 8px 22px rgba(211,174,98,.35);
  transform: translateY(-1px);
}
.btn-modal-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Success */
.modal-success {
  text-align: center; padding: 48px 32px;
}
.success-anim {
  font-size: 3.5rem; color: #20c997; margin-bottom: 18px;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.modal-success h3 {
  font-family: var(--font-d); font-size: 1.7rem;
  font-weight: 600; color: var(--dark); margin-bottom: 10px;
}
.modal-success p {
  font-size: .9rem; color: var(--text-light);
  line-height: 1.7; max-width: 320px; margin: 0 auto 24px;
}
.modal-success strong { color: var(--gold); }
.btn-success-close {
  background: var(--off-white); border: 1.5px solid var(--border-light);
  color: var(--dark); padding: 10px 26px; border-radius: 8px;
  font-family: var(--font-b); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: .2s;
}
.btn-success-close:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }


/* ═══════ REVEAL ANIMATIONS ═══════ */
[data-reveal] {
  opacity: 0; transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].revealed { opacity: 1; transform: none; }


/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1060px) {
  .hero-inner { gap: 44px; }
  .sec-layout { gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(247,245,240,.97);
    backdrop-filter: blur(20px);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    gap: 2px;
  }
  .nav-links.open a { padding: 11px 14px; font-size: .95rem; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    flex-direction: column;
    padding-top: 100px; gap: 36px;
  }
  /* login card first on mobile */
  .hero-login-wrap { order: -1; max-width: 100%; }
  .hero-copy { max-width: 100%; }

  .sec-layout { flex-direction: column; }
  .sec-visual { width: 100%; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card-featured { transform: scale(1); }
  .price-card-featured:hover { transform: translateY(-5px); }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 18px; }
  .section-inner { padding: 0 18px; }
  .features-section, .security-section, .pricing-section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 96px 18px 60px; }
  .hero-pills { gap: 6px; }
  .login-card { padding: 26px 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .cta-band { padding: 60px 18px; }
  .btn-signup-nav span { display: none; }
}